]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Fix an internal compiler error when attempting to create a second $GDB_DEBUG$ section.
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
c8693053
RO
12020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * configure, config.in: Regenerate.
4
05a6b8c2
EZ
52020-07-26 Eli Zaretskii <eliz@gnu.org>
6
7 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
8 When checking whether socklen_t type is defined, use ws2tcpip.h if
9 it is available and sys/socket.h isn't.
10 * configure: Regenerate.
11 * config.in: Regenerate.
12
028a4603
PA
132020-07-22 Pedro Alves <pedro@palves.net>
14
15 * inferiors.cc (switch_to_process): New, moved here from
16 thread-db.cc, and made extern.
17 * inferiors.h (switch_to_process): Declare.
18 * server.cc: Include "gdbsupport/scoped_restore.h".
19 (handle_qxfer_threads_proper): Now returns bool. Prepare to
20 access memory around target calls.
21 (handle_qxfer_threads): Handle errors.
22 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
23
05c309a8
SM
242020-07-21 Simon Marchi <simon.marchi@efficios.com>
25
26 * linux-low.cc (stopped_pids): Make static.
27
0e267416
AB
282020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * tdesc.cc (allocate_target_description): Add header comment.
31 (target_desc_deleter::operator()): New function.
32 * tdesc.h (struct target_desc): Declare as final.
33
b315b67d
SM
342020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * server.cc (handle_query): Use std::vector of
37 std::string for `qsupported` vector. Use separate
38 vector for unknowns.
39 * target.h (class process_stratum_target) <process_qsupported>:
40 Change parameters to array_view of const char *.
41 (target_process_qsupported): Remove `count` parameter.
42 * target.cc (process_stratum_target::process_qsupported): Change
43 parameters to array_view of const char *.
44 * linux-x86-low.cc (class x86_target) <process_qsupported>:
45 Likewise.
46
f638ed73
TV
472020-06-29 Tom de Vries <tdevries@suse.de>
48
49 * ax.h: Include gdbsupport/debug_agent.h.
50
fbf42f4e
AB
512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * tdesc.cc (struct tdesc_compatible_info): New struct.
54 (tdesc_compatible_info_list): New function.
55 (tdesc_compatible_info_arch_name): New function.
56
013e3554
TBA
572020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
58
59 Use std::list to stop pending signal instead of manually-created
60 linked list.
61 * linux-low.h: Include <list>.
62 (struct pending_signal): Move here from linux-low.cc.
63 (struct lwp_info) <pending_signals>
64 <pending_signals_to_report>: Update the type.
65 * linux-low.cc (struct pending_signals): Remove.
66 (linux_process_target::delete_lwp)
67 (linux_process_target::add_lwp)
68 (enqueue_one_deferred_signal)
69 (dequeue_one_deferred_signal)
70 (enqueue_pending_signal)
71 (linux_process_target::resume_one_lwp_throw)
72 (linux_process_target::thread_needs_step_over)
73 (linux_process_target::resume_one_thread)
74 (linux_process_target::proceed_one_lwp): Update the use of pending
75 signal list.
76
7d458ea5
SM
772020-06-17 Simon Marchi <simon.marchi@efficios.com>
78
79 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
80 Remove.
81
84b300de
SM
822020-06-12 Simon Marchi <simon.marchi@efficios.com>
83
84 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
85 * configure.srv: Remove mingw32ce cases.
86 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
87 * win32-low.h (to_back_slashes): Remove.
88 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
89
96c16e2b
SM
902020-06-12 Simon Marchi <simon.marchi@efficios.com>
91
92 * Makefile.in (SFILES): linux-tile-low.cc.
93 * configure.srv: Remove tilegx case.
94 * linux-tile-low.cc: Remove.
95
bd1467ae
SM
962020-06-12 Simon Marchi <simon.marchi@efficios.com>
97
98 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
99 * configure.srv: Remove m32r case.
100 * linux-m32r-low.cc: Remove.
101
7b46bf6f
SM
1022020-06-12 Simon Marchi <simon.marchi@efficios.com>
103
104 * Makefile.in (SFILES): Remove linux-cris-low.c.
105 * configure.srv: Remove cris cases.
106 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
107
1fa29f56
SM
1082020-06-12 Simon Marchi <simon.marchi@efficios.com>
109
110 * Makefile.in (SFILES): Remove linux-bfin-low.c.
111 * configure.srv: Remove bfin case.
112 * linux-bfin-low.cc: Remove.
113 * linux-low.cc: Remove BFIN-conditional code.
114
613f149a
SM
1152020-06-12 Simon Marchi <simon.marchi@efficios.com>
116
117 * configure: Re-generate.
118 * configure.ac: Remove srv_qnx test.
119 * configure.srv: Remove nto case.
120 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
121 * remote-utils.c: Remove __QNX__-guarded code.
122
fdb95bf5
SM
1232020-06-12 Simon Marchi <simon.marchi@efficios.com>
124
125 * configure: Re-generate.
126 * configure.ac: Remove srv_lynxos test.
127 * configure.srv: Remove lynxos cases.
128 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
129 Remove.
130
c00094dc
SM
1312020-06-12 Simon Marchi <simon.marchi@efficios.com>
132
133 * README: Fix a few outdated or incoherent things.
134
6479bf85
HD
1352020-05-27 Hannes Domani <ssbssa@yahoo.de>
136
137 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
138 (win32_clear_inferiors): Use open_process_used.
139 (get_child_debug_event): Likewise.
140
bea571eb
MW
1412020-05-25 Michael Weghorn <m.weghorn@posteo.de>
142
143 PR gdbserver/25893
144 * linux-low.cc (linux_process_target::create_inferior),
145 lynx-low.cc (lynx_process_target::create_inferior),
146 win32-low.cc (win32_process_target::create_inferior): Use
147 construct_inferior_arguments instead of stringify_argv
148 to get string representation which properly escapes
149 special characters.
150 * server.cc (handle_v_run): Just pass empty program arg
151 as such, since any further processing is now handled via
152 construct_inferior_arguments.
153
ace6b919
MW
1542020-05-25 Michael Weghorn <m.weghorn@posteo.de>
155
156 * nto-low.cc (nto_process_target::create_inferior): Pass
157 argv to spawnp function as char **.
158
b69ca137
MW
1592020-05-25 Michael Weghorn <m.weghorn@posteo.de>
160
161 * server.cc (captured_main), (handle_v_run): No longer
162 insert extra NULL element to args vector.
163
51e2cfa2
PA
1642020-05-23 Pedro Alves <palves@redhat.com>
165
166 * gdb-safe-ctype.h: New.
167
8bbf0394
TBA
1682020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
169
170 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
171 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
172 (ia64_target::low_breakpoint_at): Ditto.
173
01370779
HD
1742020-05-15 Hannes Domani <ssbssa@yahoo.de>
175
176 * win32-i386-low.cc (i386_supports_z_point_type): Handle
177 Z_PACKET_HW_BP z_type.
178 (i386_insert_point): Handle raw_bkpt_type type.
179 (i386_remove_point): Likewise.
180
7d186bc0
HD
1812020-04-30 Hannes Domani <ssbssa@yahoo.de>
182
183 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
184 Add arch/i386.o.
185 * win32-arm-low.cc (arm_num_regs): New function.
186 (struct win32_target_ops): Use arm_num_regs.
187 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
188 processes.
189 (i386_get_thread_context): Likewise.
190 (i386_prepare_to_resume): Likewise.
191 (i386_thread_added): Likewise.
192 (i386_single_step): Likewise.
193 (i386_fetch_inferior_register): Likewise.
194 (i386_store_inferior_register): Likewise.
195 (i386_arch_setup): Likewise.
196 (i386_win32_num_regs): New function.
197 (struct win32_target_ops): Use i386_win32_num_regs.
198 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
199 processes.
200 (win32_require_context): Likewise.
201 (child_add_thread): Likewise.
202 (do_initial_child_stuff): Likewise.
203 (continue_one_thread): Likewise.
204 (win32_process_target::resume): Likewise.
205 (load_psapi): Likewise.
206 (win32_add_all_dlls): Likewise.
207 (maybe_adjust_pc): Likewise.
208 (win32_process_target::qxfer_siginfo): Likewise.
209 (initialize_low): Likewise.
210 * win32-low.h (struct win32_target_ops): Change num_regs to
211 callback function.
212
1eb39914
SM
2132020-04-27 Simon Marchi <simon.marchi@efficios.com>
214
215 * configure.ac: Remove check for fs_base/gs_base in
216 user_regs_struct.
217 * configure: Re-generate.
218 * config.in: Re-generate.
219 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
220 x86_store_gregset): Adjust.
221
51ac8e22
HD
2222020-04-22 Hannes Domani <ssbssa@yahoo.de>
223
224 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
225 comparison.
226
a010605f
TT
2272020-04-16 Tom Tromey <tromey@adacore.com>
228
229 * win32-low.cc (windows_nat::handle_access_violation): New
230 function.
231
e2275c6e
SM
2322020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
233
234 * win32-low.cc (get_child_debug_event): Fix format string warning.
235
73944e9f
TT
2362020-04-13 Tom Tromey <tom@tromey.com>
237
238 * server.h (gdb_fildes_t): Remove typedef.
239 * remote-utils.c (remote_desc, list_desc): Now int.
240 (INVALID_DESCRIPTOR): Remove.
241 (gdb_connected, remote_close)
242 (check_remote_input_interrupt_request): Update.
243 * utils.h (pfildes): Don't declare.
244 * utils.c (pfildes): Remove.
245
55d7aec8
TT
2462020-04-13 Tom Tromey <tom@tromey.com>
247
248 * server.h (handle_serial_event, handle_target_event): Update.
249 * server.c: Don't call initialize_event_loop.
250 (keep_processing_events): New global.
251 (handle_serial_event): Return void. Set keep_processing_events.
252 (handle_target_event): Return void.
253 (start_event_loop): Move from event-loop.c. Rewrite.
254 * remote-utils.c (handle_accept_event): Return void.
255 (reset_readchar): Use delete_timer.
256 (process_remaining): Return void.
257 (reschedule): Use create_timer.
258 * event-loop.h: Remove.
259 * event-loop.cc: Remove.
260 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
261
e487f994
TT
2622020-04-13 Tom Tromey <tom@tromey.com>
263
264 * server.c (invoke_async_signal_handlers)
265 (check_async_event_handlers, flush_streams, gdb_select): New
266 functions.
267
8ae8e197
TT
2682020-04-13 Tom Tromey <tom@tromey.com>
269
270 * configure: Rebuild.
271 * config.in: Rebuild.
272
360ad8b3
TT
2732020-04-08 Tom Tromey <tromey@adacore.com>
274
275 PR gdb/22992
276 * win32-low.c (child_continue): Call matching_pending_stop.
277 (get_child_debug_event): Call fetch_pending_stop. Push pending
278 stop when needed.
279
523d4f80
TT
2802020-04-08 Tom Tromey <tromey@adacore.com>
281
282 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
283 (win32_process_target::supports_stopped_by_sw_breakpoint):
284 Declare.
285 * win32-low.c (win32_supports_z_point_type): Always handle
286 Z_PACKET_SW_BP.
287 (win32_insert_point): Call insert_memory_breakpoint when needed.
288 (win32_remove_point): Call remove_memory_breakpoint when needed.
289 (win32_process_target::stopped_by_sw_breakpoint)
290 (win32_process_target::supports_stopped_by_sw_breakpoint): New
291 methods.
292 (win32_target_ops): Update.
293 (maybe_adjust_pc): New function.
294 (win32_wait): Call maybe_adjust_pc.
295
e54e5929
TT
2962020-04-08 Tom Tromey <tromey@adacore.com>
297
298 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
299 field.
300 * win32-i386-low.c (the_low_target): Update.
301 * win32-arm-low.c (the_low_target): Update.
302
d6225aff
TT
3032020-04-08 Tom Tromey <tromey@adacore.com>
304
305 * win32-low.h (win32_process_target::read_pc)
306 (win32_process_target::write_pc): Declare.
307 * win32-low.c (win32_process_target::read_pc)
308 (win32_process_target::write_pc): New methods.
309 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
310 functions.
311 (the_low_target): Update.
312 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
313 functions.
314 (the_low_target): Update.
315
2c1d95e8
TT
3162020-04-08 Tom Tromey <tromey@adacore.com>
317
318 * win32-low.c (win32_kill, get_child_debug_event): Use
319 wait_for_debug_event.
320
e758e19c
TT
3212020-04-08 Tom Tromey <tromey@adacore.com>
322
323 * win32-low.c (child_continue): Call continue_last_debug_event.
324
8d30e395
TT
3252020-04-08 Tom Tromey <tromey@adacore.com>
326
327 * win32-low.c (handle_exception): Remove.
328 (windows_nat::handle_ms_vc_exception): New function.
329 (get_child_debug_event): Add "continue_status" parameter.
330 Update.
331 (win32_wait): Update.
332
a816ba18
TT
3332020-04-08 Tom Tromey <tromey@adacore.com>
334
335 * win32-low.c (windows_nat::handle_load_dll): Rename from
336 handle_load_dll. No longer static.
337 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
338 No longer static.
339
d41b524f
TT
3402020-04-08 Tom Tromey <tromey@adacore.com>
341
342 * win32-low.c (handle_output_debug_string): Add parameter. Change
343 return type.
344 (win32_kill, get_child_debug_event): Update.
345
3c76026d
TT
3462020-04-08 Tom Tromey <tromey@adacore.com>
347
348 * win32-low.c (current_process_handle, current_process_id)
349 (main_thread_id, last_sig, current_event, siginfo_er): Move to
350 nat/windows-nat.c.
351
9d8679cc
TT
3522020-04-08 Tom Tromey <tromey@adacore.com>
353
354 * win32-low.c (get_image_name): Remove.
355 (handle_load_dll): Update.
356
28688adf
TT
3572020-04-08 Tom Tromey <tromey@adacore.com>
358
359 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
360 No longer static. Change parameters.
361 (child_add_thread, child_fetch_inferior_registers)
362 (child_store_inferior_registers, win32_resume)
363 (win32_get_tib_address): Update.
364
4834dad0
TT
3652020-04-08 Tom Tromey <tromey@adacore.com>
366
367 * win32-low.h (struct win32_target_ops): Use qualified names where
368 needed.
369 * win32-i386-low.c: Add "using namespace".
370 * win32-low.c: Add "using namespace".
371 * win32-arm-low.c: Add "using namespace".
372
65bafd5b
TT
3732020-04-08 Tom Tromey <tromey@adacore.com>
374
375 * win32-low.c (delete_thread_info): Don't call CloseHandle.
376
98a03287
TT
3772020-04-08 Tom Tromey <tromey@adacore.com>
378
379 * win32-low.c (win32_require_context, suspend_one_thread): Use
380 windows_thread_info::suspend.
381 (continue_one_thread): Use windows_thread_info::resume.
382 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
383
62fe396b
TT
3842020-04-08 Tom Tromey <tromey@adacore.com>
385
386 * win32-i386-low.c (update_debug_registers)
387 (i386_prepare_to_resume, i386_thread_added): Update.
388
e9534bd2
TT
3892020-04-08 Tom Tromey <tromey@adacore.com>
390
391 * win32-low.c (child_add_thread): Use new.
392 (delete_thread_info): Use delete.
393
ae1f8880
TT
3942020-04-08 Tom Tromey <tromey@adacore.com>
395
396 * win32-low.h (struct windows_thread_info): Remove.
397
e56f8ccb
TT
3982020-04-08 Tom Tromey <tromey@adacore.com>
399
400 * win32-low.h (struct windows_thread_info): Rename from
401 win32_thread_info. Remove typedef.
402 (struct win32_target_ops, win32_require_context): Update.
403 * win32-low.c (win32_get_thread_context)
404 (win32_set_thread_context, win32_prepare_to_resume)
405 (win32_require_context, thread_rec, child_add_thread)
406 (delete_thread_info, continue_one_thread)
407 (child_fetch_inferior_registers, child_store_inferior_registers)
408 (win32_resume, suspend_one_thread, win32_get_tib_address):
409 Update.
410 * win32-i386-low.c (update_debug_registers)
411 (win32_get_current_dr, i386_get_thread_context)
412 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
413 (i386_fetch_inferior_register, i386_store_inferior_register):
414 Update.
415 * win32-arm-low.c (arm_get_thread_context)
416 (arm_fetch_inferior_register, arm_store_inferior_register):
417 Update.
418
0dd7b52e
TBA
4192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
420
421 * linux-low.h (struct linux_target_ops): Remove.
422 (the_low_target): Remove.
423 * linux-x86-low.cc (the_low_target): Remove.
424 * linux-aarch64-low.cc (the_low_target): Ditto.
425 * linux-arm-low.cc (the_low_target): Ditto.
426 * linux-bfin-low.cc (the_low_target): Ditto.
427 * linux-cris-low.cc (the_low_target): Ditto.
428 * linux-crisv32-low.cc (the_low_target): Ditto.
429 * linux-ia64-low.cc (the_low_target): Ditto.
430 * linux-m32r-low.cc (the_low_target): Ditto.
431 * linux-m68k-low.cc (the_low_target): Ditto.
432 * linux-mips-low.cc (the_low_target): Ditto.
433 * linux-nios2-low.cc (the_low_target): Ditto.
434 * linux-ppc-low.cc (the_low_target): Ditto.
435 * linux-riscv-low.cc (the_low_target): Ditto.
436 * linux-s390-low.cc (the_low_target): Ditto.
437 * linux-sh-low.cc (the_low_target): Ditto.
438 * linux-sparc-low.cc (the_low_target): Ditto.
439 * linux-tic6x-low.cc (the_low_target): Ditto.
440 * linux-tile-low.cc (the_low_target): Ditto.
441 * linux-xtensa-low.cc (the_low_target): Ditto.
442
fc5ecdb6
TBA
4432020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
444
445 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
446 linux target define the op by overriding the declaration in
447 process_stratum_target.
448
449 * linux-low.h (struct linux_target_ops): Remove the op.
450 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
451 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
452 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
453 (x86_get_ipa_tdesc_idx): Turn into...
454 (x86_target::get_ipa_tdesc_idx): ...this.
455 (the_low_target): Remove the op field.
456 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
457 (ppc_get_ipa_tdesc_idx): Turn into...
458 (ppc_target::get_ipa_tdesc_idx): ...this.
459 (the_low_target): Remove the op field.
460 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
461 (s390_get_ipa_tdesc_idx): Turn into...
462 (s390_target::get_ipa_tdesc_idx): ...this.
463 (the_low_target): Remove the op field.
464
9eedd27d
TBA
4652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
466
467 Turn the 'get_syscall_trapinfo' linux target op into a method
468 of process_stratum_target.
469
470 * linux-low.h (struct linux_target_ops): Remove the op.
471 (class linux_process_target) <get_syscall_trapinfo>
472 <gdb_catch_this_syscall>
473 <low_supports_catch_syscall>
474 <low_get_syscall_trapinfo>: Declare.
475 * linux-low.cc (get_syscall_trapinfo): Turn into...
476 (linux_process_target::get_syscall_trapinfo): ...this.
477 (linux_process_target::low_get_syscall_trapinfo): Define.
478 (gdb_catch_this_syscall_p): Turn into...
479 (linux_process_target::gdb_catch_this_syscall): ...this.
480 (linux_process_target::low_supports_catch_syscall): Define.
481
482 Update the callers below.
483
484 (linux_process_target::wait_1)
485 (linux_process_target::supports_catch_syscall)
486
487 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
488 <low_get_syscall_trapinfo>: Declare.
489 (x86_target::low_supports_catch_syscall): Define.
490 (x86_get_syscall_trapinfo): Turn into...
491 (x86_target::low_get_syscall_trapinfo): ...this.
492 (the_low_target): Remove the op field.
493 * linux-aarch64-low.cc (class aarch64_target)
494 <low_supports_catch_syscall>
495 <low_get_syscall_trapinfo>: Declare.
496 (aarch64_target::low_supports_catch_syscall): Define.
497 (aarch64_get_syscall_trapinfo): Turn into...
498 (aarch64_target::low_get_syscall_trapinfo): ...this.
499 (the_low_target): Remove the op field.
500 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
501 <low_get_syscall_trapinfo>: Declare.
502 (arm_target::low_supports_catch_syscall): Define.
503 (arm_get_syscall_trapinfo): Turn into...
504 (arm_target::low_get_syscall_trapinfo): ...this.
505 (the_low_target): Remove the op field.
506 * linux-ppc-low.cc (the_low_target): Remove the op field.
507 * linux-s390-low.cc (the_low_target): Remove the op field.
508
b31cdfa6
TBA
5092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
510
511 Remove the 'supports_hardware_single_step' linux target op and
512 override the process_stratum_target's op definition in
513 linux_process_target to return true.
514
515 * linux-low.h (struct linux_target_ops): Remove the op.
516 (class linux_process_target) <finish_step_over>
517 <maybe_hw_step>: Declare.
518 * linux-low.cc (can_hardware_single_step): Remove.
519 (maybe_hw_step): Turn into...
520 (linux_process_target::maybe_hw_step): ...this.
521 (finish_step_over): Turn into...
522 (linux_process_target::finish_step_over): ...this.
523 (linux_process_target::supports_hardware_single_step): Update
524 to return true.
525
526 Update the callers below.
527
528 (linux_process_target::single_step)
529 (linux_process_target::resume_one_lwp_throw)
530
531 * linux-arm-low.cc (class arm_target)
532 <supports_hardware_single_step>: Declare.
533 (arm_supports_hardware_single_step): Turn into...
534 (arm_target::supports_hardware_single_step): ...this.
535 (the_low_target): Remove the op field.
536 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
537 (the_low_target): Remove the op field.
538 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
539 Remove.
540 (the_low_target): Remove the op field.
541 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
542 (the_low_target): Remove the op field.
543 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
544 (the_low_target): Remove the op field.
545 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
546 (the_low_target): Remove the op field.
547 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
548 (the_low_target): Remove the op field.
549 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
550 (the_low_target): Remove the op field.
551 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
552 (the_low_target): Remove the op field.
553 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
554 (the_low_target): Remove the op field.
555 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
556 (the_low_target): Remove the op field.
557 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
558 (the_low_target): Remove the op field.
559 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
560 Remove.
561 (the_low_target): Remove the op field.
562
9cfd8715
TBA
5632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
564
565 Turn the 'supports_range_stepping' linux target op into a method
566 of linux_process_target.
567
568 * linux-low.h (struct linux_target_ops): Remove the op.
569 (class linux_process_target) <low_supports_range_stepping>: Declare.
570 * linux-low.cc (linux_process_target::low_supports_range_stepping):
571 Define.
572 (linux_process_target::supports_range_stepping): Update the call
573 site.
574 * linux-x86-low.cc (class x86_target)
575 <low_supports_range_stepping>: Declare.
576 (x86_supports_range_stepping): Turn into...
577 (x86_target::low_supports_range_stepping): ...this.
578 (the_low_target): Remove the op field.
579 * linux-aarch64-low.cc (class aarch64_target)
580 <low_supports_range_stepping>: Declare.
581 (aarch64_supports_range_stepping): Turn into...
582 (aarch64_target::low_supports_range_stepping): ...this.
583 (the_low_target): Remove the op field.
584 * linux-arm-low.cc (the_low_target): Remove the op field.
585 * linux-bfin-low.cc (the_low_target): Ditto.
586 * linux-crisv32-low.cc (the_low_target): Ditto.
587 * linux-m32r-low.cc (the_low_target): Ditto.
588 * linux-m68k-low.cc (the_low_target): Ditto.
589 * linux-ppc-low.cc (the_low_target): Ditto.
590 * linux-s390-low.cc (the_low_target): Ditto.
591 * linux-sh-low.cc (the_low_target): Ditto.
592 * linux-tic6x-low.cc (the_low_target): Ditto.
593 * linux-tile-low.cc (the_low_target): Ditto.
594 * linux-xtensa-low.cc (the_low_target): Ditto.
595
ab64c999
TBA
5962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
597
598 Remove the 'emit_ops' linux target ops and let the concrete
599 linux target define the op by overriding the declaration of
600 process_stratum_target.
601
602 * linux-low.h (struct linux_target_ops): Remove the op.
603 (class linux_process_target) <emit_ops>: Remove.
604 * linux-low.cc (linux_process_target::emit_ops): Remove.
605 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
606 (x86_emit_ops): Turn into...
607 (x86_target::emit_ops): ...this.
608 (the_low_target): Remove the op field.
609 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
610 (aarch64_emit_ops): Turn into...
611 (aarch64_target::emit_ops): ...this.
612 (the_low_target): Remove the op field.
613 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
614 (ppc_emit_ops): Turn into...
615 (ppc_target::emit_ops): ...this.
616 (the_low_target): Remove the op field.
617 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
618 (s390_emit_ops): Turn into...
619 (s390_target::emit_ops): ...this.
620 (the_low_target): Remove the op field.
621 * linux-arm-low.cc (the_low_target): Remove the op field.
622 * linux-bfin-low.cc (the_low_target): Ditto.
623 * linux-crisv32-low.cc (the_low_target): Ditto.
624 * linux-m32r-low.cc (the_low_target): Ditto.
625 * linux-m68k-low.cc (the_low_target): Ditto.
626 * linux-sh-low.cc (the_low_target): Ditto.
627 * linux-tic6x-low.cc (the_low_target): Ditto.
628 * linux-tile-low.cc (the_low_target): Ditto.
629 * linux-xtensa-low.cc (the_low_target): Ditto.
630
809a0c35
TBA
6312020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
632
633 Remove the 'install_fast_tracepoint_jump_pad' and
634 'get_min_fast_tracepoint_insn_len' linux target ops to let the
635 concrete linux target define the ops by overriding the declarations
636 of process_stratum_target.
637
638 * linux-low.h (struct linux_target_ops): Remove the ops.
639 (class linux_process_target) <supports_fast_tracepoints>
640 <install_fast_tracepoint_jump_pad>
641 <get_min_fast_tracepoint_insn_len>: Remove.
642 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
643 (linux_process_target::install_fast_tracepoint_jump_pad)
644 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
645 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
646 <install_fast_tracepoint_jump_pad>
647 <get_min_fast_tracepoint_insn_len>: Declare.
648 (x86_target::supports_fast_tracepoints): Define.
649 (x86_install_fast_tracepoint_jump_pad): Turn into...
650 (x86_target::install_fast_tracepoint_jump_pad): ...this.
651 (x86_get_min_fast_tracepoint_insn_len): Turn into...
652 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
653 (the_low_target): Remove the op fields.
654 * linux-aarch64-low.cc (class aarch64_target)
655 <supports_fast_tracepoints>
656 <install_fast_tracepoint_jump_pad>
657 <get_min_fast_tracepoint_insn_len>: Declare.
658 (aarch64_target::supports_fast_tracepoints): Define.
659 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
660 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
661 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
662 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
663 (the_low_target): Remove the op fields.
664 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
665 <install_fast_tracepoint_jump_pad>
666 <get_min_fast_tracepoint_insn_len>: Declare.
667 (ppc_target::supports_fast_tracepoints): Define.
668 (ppc_install_fast_tracepoint_jump_pad): Turn into...
669 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
670 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
671 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
672 (the_low_target): Remove the op fields.
673 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
674 <install_fast_tracepoint_jump_pad>
675 <get_min_fast_tracepoint_insn_len>: Declare.
676 (s390_target::supports_fast_tracepoints): Define.
677 (s390_install_fast_tracepoint_jump_pad): Turn into...
678 (s390_target::install_fast_tracepoint_jump_pad): ...this.
679 (s390_get_min_fast_tracepoint_insn_len): Turn into...
680 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
681 (the_low_target): Remove the op fields.
682 * linux-arm-low.cc (the_low_target): Remove the op fields.
683 * linux-bfin-low.cc (the_low_target): Ditto.
684 * linux-crisv32-low.cc (the_low_target): Ditto.
685 * linux-m32r-low.cc (the_low_target): Ditto.
686 * linux-m68k-low.cc (the_low_target): Ditto.
687 * linux-sh-low.cc (the_low_target): Ditto.
688 * linux-tic6x-low.cc (the_low_target): Ditto.
689 * linux-tile-low.cc (the_low_target): Ditto.
690 * linux-xtensa-low.cc (the_low_target): Ditto.
691
13e567af
TBA
6922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
693
694 Turn the 'get_thread_area' linux target op into a method of
695 process_stratum_target.
696
697 * linux-low.h (struct linux_target_ops): Remove the op.
698 (class linux_process_target) <stuck_in_jump_pad>
699 <linux_fast_tracepoint_collecting>
700 <low_get_thread_area>: Declare.
701 * linux-low.cc (supports_fast_tracepoints): Remove.
702 (linux_fast_tracepoint_collecting): Turn into...
703 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
704 (linux_process_target::low_get_thread_area): Define.
705 (stuck_in_jump_pad_callback): Turn into...
706 (linux_process_target::stuck_in_jump_pad): ...this.
707
708 Update the caller below.
709
710 (linux_process_target::stabilize_threads)
711
712 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
713 Declare.
714 (x86_get_thread_area): Turn into...
715 (x86_target::low_get_thread_area): ...this.
716 (the_low_target): Remove the op field.
717 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
718 Declare.
719 (aarch64_get_thread_area): Turn into...
720 (aarch64_target::low_get_thread_area): ...this.
721 (the_low_target): Remove the op field.
722 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
723 Declare.
724 (ppc_get_thread_area): Turn into...
725 (ppc_target::low_get_thread_area): ...this.
726 (the_low_target): Remove the op field.
727 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
728 Declare.
729 (s390_get_thread_area): Turn into...
730 (s390_target::low_get_thread_area): ...this.
731 (the_low_target): Remove the op field.
732 * linux-arm-low.cc (the_low_target): Remove the op field.
733 * linux-bfin-low.cc (the_low_target): Ditto.
734 * linux-crisv32-low.cc (the_low_target): Ditto.
735 * linux-m32r-low.cc (the_low_target): Ditto.
736 * linux-m68k-low.cc (the_low_target): Ditto.
737 * linux-sh-low.cc (the_low_target): Ditto.
738 * linux-tic6x-low.cc (the_low_target): Ditto.
739 * linux-tile-low.cc (the_low_target): Ditto.
740 * linux-xtensa-low.cc (the_low_target): Ditto.
741
47f70aa7
TBA
7422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
743
744 Remote the 'supports_tracepoints' linux target op and let the
745 concrete linux target define it by overriding the op declared in
746 process_stratum_target.
747
748 * linux-low.h (struct linux_target_ops): Remove the op.
749 (class linux_process_target) <supports_tracepoints>: Remove.
750 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
751 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
752 Declare.
753 (x86_supports_tracepoints): Turn into...
754 (x86_target::supports_tracepoints): ...this.
755 (the_low_target): Remove the op field.
756 * linux-aarch64-low.cc (class aarch64_target)
757 <supports_tracepoints>: Declare.
758 (aarch64_supports_tracepoints): Turn into...
759 (aarch64_target::supports_tracepoints): ...this.
760 (the_low_target): Remove the op field.
761 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
762 Declare.
763 (ppc_supports_tracepoints): Turn into...
764 (ppc_target::supports_tracepoints): ...this.
765 (the_low_target): Remove the op field.
766 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
767 Declare.
768 (s390_supports_tracepoints): Turn into...
769 (s390_target::supports_tracepoints): ...this.
770 (the_low_target): Remove the op field.
771 * linux-arm-low.cc (the_low_target): Remove the op field.
772 * linux-bfin-low.cc (the_low_target): Ditto.
773 * linux-crisv32-low.cc (the_low_target): Ditto.
774 * linux-m32r-low.cc (the_low_target): Ditto.
775 * linux-m68k-low.cc (the_low_target): Ditto.
776 * linux-sh-low.cc (the_low_target): Ditto.
777 * linux-tic6x-low.cc (the_low_target): Ditto.
778 * linux-tile-low.cc (the_low_target): Ditto.
779 * linux-xtensa-low.cc (the_low_target): Ditto.
780
a5b5da92
TBA
7812020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
782
783 Remove the 'process_qsupported' linux target op and let a concrete
784 linux target define the op by overriding the op declaration in
785 process_stratum_target.
786
787 * linux-low.h (struct linux_target_ops): Remove the op.
788 (class linux_process_target) <process_qsupported>: Remove.
789 * linux-low.cc (linux_process_target::process_qsupported): Remove.
790 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
791 (x86_linux_process_qsupported): Turn into...
792 (x86_target::process_qsupported): ...this.
793 (the_low_target): Remove the op field.
794 * linux-aarch64-low.cc (the_low_target): Remove the op
795 field.
796 * linux-arm-low.cc (the_low_target): Ditto.
797 * linux-bfin-low.cc (the_low_target): Ditto.
798 * linux-crisv32-low.cc (the_low_target): Ditto.
799 * linux-m32r-low.cc (the_low_target): Ditto.
800 * linux-m68k-low.cc (the_low_target): Ditto.
801 * linux-ppc-low.cc (the_low_target): Ditto.
802 * linux-s390-low.cc (the_low_target): Ditto.
803 * linux-sh-low.cc (the_low_target): Ditto.
804 * linux-tic6x-low.cc (the_low_target): Ditto.
805 * linux-tile-low.cc (the_low_target): Ditto.
806 * linux-xtensa-low.cc (the_low_target): Ditto.
807
d7599cc0
TBA
8082020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
809
810 Turn the 'prepare_to_resume' linux target op into a method of
811 linux_process_target.
812
813 * linux-low.h (struct linux_target_ops): Remove the op.
814 (class linux_process_target) <low_prepare_to_resume>: Declare.
815 * linux-low.cc (linux_process_target::low_prepare_to_resume):
816 Define.
817
818 Update the callers below:
819
820 (linux_process_target::resume_one_lwp_throw)
821 (linux_process_target::low_prepare_to_resume)
822
823 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
824 Declare.
825 (x86_target::low_prepare_to_resume): Define.
826 (the_low_target): Remove the op field.
827 * linux-aarch64-low.cc (class aarch64_target)
828 <low_prepare_to_resume>: Declare.
829 (aarch64_target::low_prepare_to_resume): Define.
830 (the_low_target): Remove the op field.
831 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
832 Declare.
833 (arm_prepare_to_resume): Turn into...
834 (arm_target::low_prepare_to_resume): ...this.
835 (the_low_target): Remove the op field.
836 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
837 Declare.
838 (mips_linux_prepare_to_resume): Turn into...
839 (mips_target::low_prepare_to_resume): ...this.
840 (the_low_target): Remove the op field.
841 * linux-bfin-low.cc (the_low_target): Remove the op field.
842 * linux-crisv32-low.cc (the_low_target): Ditto.
843 * linux-m32r-low.cc (the_low_target): Ditto.
844 * linux-m68k-low.cc (the_low_target): Ditto.
845 * linux-ppc-low.cc (the_low_target): Ditto.
846 * linux-s390-low.cc (the_low_target): Ditto.
847 * linux-sh-low.cc (the_low_target): Ditto.
848 * linux-tic6x-low.cc (the_low_target): Ditto.
849 * linux-tile-low.cc (the_low_target): Ditto.
850 * linux-xtensa-low.cc (the_low_target): Ditto.
851
fd000fb3
TBA
8522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
853
854 Turn the 'new_process', 'delete_process', 'new_thread',
855 'delete_thread', and 'new_fork' linux target ops into methods
856 of linux_process_target.
857
858 * linux-low.h (struct linux_target_ops): Remove the ops.
859 (class linux_process_target) <add_linux_process>
860 <add_lwp>
861 <delete_lwp>
862 <attach_lwp>
863 <detach_one_lwp>
864 <check_zombie_leaders>
865 <filter_exit_event>
866 <low_new_process>
867 <low_delete_process>
868 <low_new_thread>
869 <low_delete_thread>
870 <low_new_fork>: Declare.
871 * linux-low.cc (delete_lwp): Turn into...
872 (linux_process_target::delete_lwp): ...this.
873 (linux_process_target::low_delete_thread): Define.
874 (linux_add_process): Turn into...
875 (linux_process_target::add_linux_process): ...this.
876 (linux_process_target::low_new_process): Define.
877 (linux_process_target::low_delete_process): Define.
878 (linux_process_target::low_new_fork): Define.
879 (add_lwp): Turn into...
880 (linux_process_target::add_lwp): ...this.
881 (linux_process_target::low_new_thread): Define.
882 (linux_attach_lwp): Turn into...
883 (linux_process_target::attach_lwp): ...this.
884 (linux_detach_one_lwp): Turn into...
885 (linux_process_target::detach_one_lwp): ...this.
886 (linux_detach_lwp_callback): Remove and inline...
887 (linux_process_target::detach): ...here.
888 (check_zombie_leaders): Turn into...
889 (linux_process_target::check_zombie_leaders): ...this.
890 (filter_exit_event): Turn into...
891 (linux_process_target::filter_exit_event): ...this.
892
893 Update the callers below.
894
895 (linux_process_target::handle_extended_wait)
896 (linux_process_target::create_inferior)
897 (attach_proc_task_lwp_callback)
898 (linux_process_target::attach)
899 (linux_process_target::detach)
900 (linux_process_target::mourn)
901 * thread-db.cc (attach_thread)
902
903 * linux-x86-low.cc (class x86_target) <low_new_process>
904 <low_delete_process>
905 <low_new_thread>
906 <low_delete_thread>
907 <low_new_fork>: Declare.
908 (x86_linux_new_process): Turn into...
909 (x86_target::low_new_process): ...this.
910 (x86_linux_delete_process): Turn into...
911 (x86_target::low_delete_process): ...this.
912 (x86_target::low_new_thread): Define.
913 (x86_target::low_delete_thread): Define.
914 (x86_linux_new_fork): Turn into...
915 (x86_target::low_new_fork): ...this.
916 (the_low_target): Remove the op fields.
917 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
918 <low_delete_process>
919 <low_new_thread>
920 <low_delete_thread>
921 <low_new_fork>: Declare.
922 (aarch64_linux_new_process): Turn into...
923 (aarch64_target::low_new_process): ...this.
924 (aarch64_linux_delete_process): Turn into...
925 (aarch64_target::low_delete_process): ...this.
926 (aarch64_target::low_new_thread): Define.
927 (aarch64_target::low_delete_thread): Define.
928 (aarch64_linux_new_fork): Turn into...
929 (aarch64_target::low_new_fork): ...this.
930 (the_low_target): Remove the op fields.
931 * linux-arm-low.cc (class arm_target) <low_new_process>
932 <low_delete_process>
933 <low_new_thread>
934 <low_delete_thread>
935 <low_new_fork>: Declare.
936 (arm_new_process): Turn into...
937 (arm_target::low_new_process): ...this.
938 (arm_delete_process): Turn into...
939 (arm_target::low_delete_process): ...this.
940 (arm_new_thread): Turn into...
941 (arm_target::low_new_thread): ...this.
942 (arm_delete_thread): Turn into...
943 (arm_target::low_delete_thread): ...this.
944 (arm_new_fork): Turn into...
945 (arm_target::low_new_fork): ...this.
946 (the_low_target): Remove the op fields.
947 * linux-mips-low.cc (class mips_target) <low_new_process>
948 <low_delete_process>
949 <low_new_thread>
950 <low_delete_thread>
951 <low_new_fork>: Declare.
952 (mips_linux_new_process): Turn into...
953 (mips_target::low_new_process): ...this.
954 (mips_linux_delete_process): Turn into...
955 (mips_target::low_delete_process): ...this.
956 (mips_linux_new_thread): Turn into...
957 (mips_target::low_new_thread): ...this.
958 (mips_linux_delete_thread): Turn into...
959 (mips_target::low_delete_thread): ...this.
960 (mips_linux_new_fork): Turn into...
961 (mips_target::low_new_fork): ...this.
962 (the_low_target): Remove the op fields.
963 * linux-bfin-low.cc (the_low_target): Remove the op fields.
964 * linux-crisv32-low.cc (the_low_target): Ditto.
965 * linux-m32r-low.cc (the_low_target): Ditto.
966 * linux-m68k-low.cc (the_low_target): Ditto.
967 * linux-ppc-low.cc (the_low_target): Ditto.
968 * linux-s390-low.cc (the_low_target): Ditto.
969 * linux-sh-low.cc (the_low_target): Ditto.
970 * linux-tic6x-low.cc (the_low_target): Ditto.
971 * linux-tile-low.cc (the_low_target): Ditto.
972 * linux-xtensa-low.cc (the_low_target): Ditto.
973
cb63de7c
TBA
9742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
975
976 Turn the 'siginfo_fixup' linux target op into a method of
977 linux_process_target.
978
979 * linux-low.h (struct linux_target_ops): Remove the op.
980 (class linux_process_target) <siginfo_fixup>
981 <low_siginfo_fixup>: Declare.
982 * linux-low.cc (siginfo_fixup): Turn into...
983 (linux_process_target::siginfo_fixup): ...this.
984 (linux_process_target::low_siginfo_fixup): Define.
985 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
986 (x86_siginfo_fixup): Turn into...
987 (x86_target::low_siginfo_fixup): ...this.
988 (the_low_target): Remove the op field.
989 * linux-aarch64-low.cc (class aarch64_target):
990 <low_siginfo_fixup>: Declare.
991 (aarch64_linux_siginfo_fixup): Turn into...
992 (aarch64_target::low_siginfo_fixup): ...this.
993 (the_low_target): Remove the op field.
994 * linux-arm-low.cc (the_low_target): Remove the op field.
995 * linux-bfin-low.cc (the_low_target): Ditto.
996 * linux-crisv32-low.cc (the_low_target): Ditto.
997 * linux-m32r-low.cc (the_low_target): Ditto.
998 * linux-m68k-low.cc (the_low_target): Ditto.
999 * linux-mips-low.cc (the_low_target): Ditto.
1000 * linux-ppc-low.cc (the_low_target): Ditto.
1001 * linux-s390-low.cc (the_low_target): Ditto.
1002 * linux-sh-low.cc (the_low_target): Ditto.
1003 * linux-tic6x-low.cc (the_low_target): Ditto.
1004 * linux-tile-low.cc (the_low_target): Ditto.
1005 * linux-xtensa-low.cc (the_low_target): Ditto.
1006
b35db733
TBA
10072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1008
1009 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1010 linux target ops into methods of linux_process_target.
1011
1012 * linux-low.h (struct linux_target_ops): Remove the ops.
1013 (class linux_process_target) <low_collect_ptrace_register>
1014 <low_store_ptrace_register>: Declare.
1015 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1016 (linux_process_target::low_supply_ptrace_register): Define.
1017
1018 Update the callers below.
1019
1020 (linux_process_target::fetch_register)
1021 (linux_process_target::store_register)
1022
1023 * linux-x86-low.cc (the_low_target): Remove the op fields.
1024 * linux-aarch64-low.cc (the_low_target): Ditto.
1025 * linux-arm-low.cc (the_low_target): Ditto.
1026 * linux-bfin-low.cc (the_low_target): Ditto.
1027 * linux-crisv32-low.cc (the_low_target): Ditto.
1028 * linux-m32r-low.cc (the_low_target): Ditto.
1029 * linux-m68k-low.cc (the_low_target): Ditto.
1030 * linux-sh-low.cc (the_low_target): Ditto.
1031 * linux-sparc-low.cc (the_low_target): Ditto.
1032 * linux-tic6x-low.cc (the_low_target): Ditto.
1033 * linux-tile-low.cc (the_low_target): Ditto.
1034 * linux-xtensa-low.cc (the_low_target): Ditto.
1035 * linux-mips-low.cc (class mips_target)
1036 <low_collect_ptrace_register>
1037 <low_supply_ptrace_register>: Declare.
1038 (mips_collect_ptrace_register): Turn into ...
1039 (mips_target::low_collect_ptrace_register): ...this.
1040 (mips_supply_ptrace_register): Turn into...
1041 (mips_target::low_supply_ptrace_register): ...this.
1042 (the_low_target): Remove the op fields.
1043 * linux-ppc-low.cc (class ppc_target)
1044 <low_collect_ptrace_register>
1045 <low_supply_ptrace_register>: Declare.
1046 (ppc_collect_ptrace_register): Turn into ...
1047 (ppc_target::low_collect_ptrace_register): ...this.
1048 (ppc_supply_ptrace_register): Turn into ...
1049 (ppc_target::low_supply_ptrace_register): ...this.
1050 (ppc_fill_gregset): Update for the calls to
1051 low_collect_ptrace_register.
1052 (the_low_target): Remove the op fields.
1053 * linux-s390-low.cc (class s390_target)
1054 <low_collect_ptrace_register>
1055 <low_supply_ptrace_register>: Declare.
1056 (s390_collect_ptrace_register): Turn into ...
1057 (s390_target::low_collect_ptrace_register): ...this.
1058 (s390_supply_ptrace_register): Turn into ...
1059 (s390_target::low_supply_ptrace_register): ...this.
1060 (s390_fill_gregset): Update for the calls to
1061 low_collect_ptrace_register.
1062 (the_low_target): Remove the op fields.
1063
ac1bbaca
TBA
10642020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1065
1066 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1067 target ops into methods of linux_process_target.
1068
1069 * linux-low.h (struct linux_target_ops): Remove the ops.
1070 (class linux_process_target) <check_stopped_by_watchpoint>
1071 <low_stopped_by_watchpoint>
1072 <low_stopped_data_address>: Declare.
1073 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1074 (linux_process_target::check_stopped_by_watchpoint): ...this.
1075 (linux_process_target::low_stopped_by_watchpoint): Define.
1076 (linux_process_target::low_stopped_data_address): Define.
1077 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1078 <low_stopped_data_address>: Declare.
1079 (x86_stopped_by_watchpoint): Turn into...
1080 (x86_target::low_stopped_by_watchpoint): ...this.
1081 (x86_stopped_data_address): Turn into...
1082 (x86_target::low_stopped_data_address): ...this.
1083 (the_low_target): Remove the op fields.
1084 * linux-aarch64-low.cc (class aarch64_target)
1085 <low_stopped_by_watchpoint>
1086 <low_stopped_data_address>: Declare.
1087 (aarch64_stopped_by_watchpoint): Turn into...
1088 (aarch64_target::low_stopped_by_watchpoint): ...this.
1089 (aarch64_stopped_data_address): Turn into...
1090 (aarch64_target::low_stopped_data_address): ...this.
1091 (the_low_target): Remove the op fields.
1092 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1093 <low_stopped_data_address>: Declare.
1094 (arm_stopped_by_watchpoint): Turn into...
1095 (arm_target::low_stopped_by_watchpoint): ...this.
1096 (arm_stopped_data_address): Turn into...
1097 (arm_target::low_stopped_data_address): ...this.
1098 (the_low_target): Remove the op fields.
1099 * linux-crisv32-low.cc (class crisv32_target)
1100 <low_stopped_by_watchpoint>
1101 <low_stopped_data_address>: Declare.
1102 (cris_stopped_by_watchpoint): Turn into...
1103 (crisv32_target::low_stopped_by_watchpoint): ...this.
1104 (cris_stopped_data_address): Turn into...
1105 (crisv32_target::low_stopped_data_address): ...this.
1106 (the_low_target): Remove the op fields.
1107 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1108 <low_stopped_data_address>: Declare.
1109 (mips_stopped_by_watchpoint): Turn into...
1110 (mips_target::low_stopped_by_watchpoint): ...this.
1111 (mips_stopped_data_address): Turn into...
1112 (mips_target::low_stopped_data_address): ...this.
1113 (the_low_target): Remove the op fields.
1114 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1115 * linux-m32r-low.cc (the_low_target): Ditto.
1116 * linux-m68k-low.cc (the_low_target): Ditto.
1117 * linux-ppc-low.cc (the_low_target): Ditto.
1118 * linux-s390-low.cc (the_low_target): Ditto.
1119 * linux-sh-low.cc (the_low_target): Ditto.
1120 * linux-sparc-low.cc (the_low_target): Ditto.
1121 * linux-tic6x-low.cc (the_low_target): Ditto.
1122 * linux-tile-low.cc (the_low_target): Ditto.
1123 * linux-xtensa-low.cc (the_low_target): Ditto.
1124
9db9aa23
TBA
11252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1126
1127 Turn the 'insert_point' and 'remove_point' linux target ops into
1128 methods of linux_process_target.
1129
1130 * linux-low.h (struct linux_target_ops): Remove the ops.
1131 (class linux_process_target) <low_insert_point>
1132 <low_remove_point>: Declare.
1133 * linux-low.cc (linux_process_target::low_insert_point)
1134 (linux_process_target::low_remove_point): Define.
1135 (linux_process_target::insert_point)
1136 (linux_process_target::remove_point): Update for calls to
1137 low_insert_point and low_remove_point.
1138 * linux-x86-low.cc (class x86_target) <low_insert_point>
1139 <low_remove_point>: Declare.
1140 (x86_insert_point): Turn into...
1141 (x86_target::low_insert_point): ...this.
1142 (x86_remove_point): Turn into...
1143 (x86_target::low_remove_point): ...this.
1144 (the_low_target): Remove the op fields.
1145 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1146 <low_remove_point>: Declare.
1147 (aarch64_insert_point): Turn into...
1148 (aarch64_target::low_insert_point): ...this.
1149 (aarch64_remove_point): Turn into...
1150 (aarch64_target::low_remove_point): ...this.
1151 (the_low_target): Remove the op fields.
1152 * linux-arm-low.cc (class arm_target) <low_insert_point>
1153 <low_remove_point>: Declare.
1154 (arm_insert_point): Turn into...
1155 (arm_target::low_insert_point): ...this.
1156 (arm_remove_point): Turn into...
1157 (arm_target::low_remove_point): ...this.
1158 (the_low_target): Remove the op fields.
1159 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1160 <low_remove_point>: Declare.
1161 (crisv32_insert_point): Turn into...
1162 (crisv32_target::low_insert_point): ...this.
1163 (crisv32_remove_point): Turn into...
1164 (crisv32_target::low_remove_point): ...this.
1165 (the_low_target): Remove the op fields.
1166 * linux-mips-low.cc (class mips_target) <low_insert_point>
1167 <low_remove_point>: Declare.
1168 (mips_insert_point): Turn into...
1169 (mips_target::low_insert_point): ...this.
1170 (mips_remove_point): Turn into...
1171 (mips_target::low_remove_point): ...this.
1172 (the_low_target): Remove the op fields.
1173 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1174 <low_remove_point>: Declare.
1175 (ppc_insert_point): Turn into...
1176 (ppc_target::low_insert_point): ...this.
1177 (ppc_remove_point): Turn into...
1178 (ppc_target::low_remove_point): ...this.
1179 (the_low_target): Remove the op fields.
1180 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1181 * linux-m32r-low.cc (the_low_target): Ditto.
1182 * linux-m68k-low.cc (the_low_target): Ditto.
1183 * linux-s390-low.cc (the_low_target): Ditto.
1184 * linux-sh-low.cc (the_low_target): Ditto.
1185 * linux-sparc-low.cc (the_low_target): Ditto.
1186 * linux-tic6x-low.cc (the_low_target): Ditto.
1187 * linux-tile-low.cc (the_low_target): Ditto.
1188 * linux-xtensa-low.cc (the_low_target): Ditto.
1189
007c9b97
TBA
11902020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1191
1192 Remove the 'supports_z_point_type' linux target op and let the
1193 concrete linux target define it by overriding the op declared in
1194 process_stratum_target.
1195
1196 * linux-low.cc (linux_process_target::supports_z_point_type):
1197 Remove.
1198 * linux-low.h (struct linux_target_ops): Remove the op.
1199 (class linux_process_target) <supports_z_point_type>: Remove.
1200 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1201 Declare.
1202 (x86_supports_z_point_type): Turn into...
1203 (x86_target::supports_z_point_type): ...this.
1204 (the_low_target): Remove the op field.
1205 * linux-aarch64-low.cc (class aarch64_target)
1206 <supports_z_point_type>: Declare.
1207 (aarch64_supports_z_point_type): Turn into...
1208 (aarch64_target::supports_z_point_type): ...this.
1209 (the_low_target): Remove the op field.
1210 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1211 Declare.
1212 (arm_supports_z_point_type): Turn into...
1213 (arm_target::supports_z_point_type): ...this.
1214 (the_low_target): Remove the op field.
1215 * linux-crisv32-low.cc (class crisv32_target)
1216 <supports_z_point_type>: Declare.
1217 (cris_supports_z_point_type): Turn into...
1218 (crisv32_target::supports_z_point_type): ...this.
1219 (the_low_target): Remove the op field.
1220 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1221 Declare.
1222 (mips_supports_z_point_type): Turn into...
1223 (mips_target::supports_z_point_type): ...this.
1224 (the_low_target): Remove the op field.
1225 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1226 Declare.
1227 (ppc_supports_z_point_type): Turn into...
1228 (ppc_target::supports_z_point_type): ...this.
1229 (the_low_target): Remove the op field.
1230 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1231 Declare.
1232 (s390_supports_z_point_type): Turn into...
1233 (s390_target::supports_z_point_type): ...this.
1234 (the_low_target): Remove the op field.
1235 * linux-bfin-low.cc (the_low_target): Remove the op field.
1236 * linux-m32r-low.cc (the_low_target): Ditto.
1237 * linux-m68k-low.cc (the_low_target): Ditto.
1238 * linux-sh-low.cc (the_low_target): Ditto.
1239 * linux-sparc-low.cc (the_low_target): Ditto.
1240 * linux-tic6x-low.cc (the_low_target): Ditto.
1241 * linux-tile-low.cc (the_low_target): Ditto.
1242 * linux-xtensa-low.cc (the_low_target): Ditto.
1243
d7146cda
TBA
12442020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1245
1246 Turn the 'breakpoint_at' linux target op into a method of
1247 linux_process_target.
1248
1249 * linux-low.h (struct linux_target_ops): Remove the op.
1250 (class linux_process_target) <low_breakpoint_at>: Declare.
1251
1252 Update the callers below:
1253
1254 * linux-low.cc (linux_process_target::save_stop_reason)
1255 (linux_process_target::thread_still_has_status_pending)
1256 (linux_process_target::wait_1)
1257
1258 * linux-x86-low.cc (class x86_target)
1259 <low_breakpoint_at>: Declare.
1260 (x86_breakpoint_at): Turn into...
1261 (x86_target::low_breakpoint_at): ...this.
1262 (the_low_target): Remove the op field.
1263 * linux-aarch64-low.cc (class aarch64_target)
1264 <low_breakpoint_at>: Declare.
1265 (aarch64_breakpoint_at): Turn into...
1266 (aarch64_target::low_breakpoint_at): ...this.
1267 (the_low_target): Remove the op field.
1268 * linux-arm-low.cc (class arm_target)
1269 <low_breakpoint_at>: Declare.
1270 (arm_target::low_breakpoint_at): Define.
1271 (the_low_target): Remove the op field.
1272 * linux-bfin-low.cc (class bfin_target)
1273 <low_breakpoint_at>: Declare.
1274 (bfin_breakpoint_at): Turn into...
1275 (bfin_target::low_breakpoint_at): ...this.
1276 (the_low_target): Remove the op field.
1277 * linux-cris-low.cc (class cris_target)
1278 <low_breakpoint_at>: Declare.
1279 (cris_breakpoint_at): Turn into...
1280 (cris_target::low_breakpoint_at): ...this.
1281 (the_low_target): Remove the op field.
1282 * linux-crisv32-low.cc (class crisv32_target)
1283 <low_breakpoint_at>: Declare.
1284 (crisv32_breakpoint_at): Turn into...
1285 (crisv32_target::low_breakpoint_at): ...this.
1286 (the_low_target): Remove the op field.
1287 * linux-ia64-low.cc (class ia64_target)
1288 <low_breakpoint_at>: Declare.
1289 (ia64_target::low_breakpoint_at): Define.
1290 * linux-m32r-low.cc (class m32r_target)
1291 <low_breakpoint_at>: Declare.
1292 (m32r_breakpoint_at): Turn into...
1293 (m32r_target::low_breakpoint_at): ...this.
1294 (the_low_target): Remove the op field.
1295 * linux-m68k-low.cc (class m68k_target)
1296 <low_breakpoint_at>: Declare.
1297 (m68k_breakpoint_at): Turn into...
1298 (m68k_target::low_breakpoint_at): ...this.
1299 (the_low_target): Remove the op field.
1300 * linux-mips-low.cc (class mips_target)
1301 <low_breakpoint_at>: Declare.
1302 (mips_breakpoint_at): Turn into...
1303 (mips_target::low_breakpoint_at): ...this.
1304 (the_low_target): Remove the op field.
1305 * linux-nios2-low.cc (class nios2_target)
1306 <low_breakpoint_at>: Declare.
1307 (nios2_breakpoint_at): Turn into...
1308 (nios2_target::low_breakpoint_at): ...this.
1309 (the_low_target): Remove the op field.
1310 * linux-ppc-low.cc (class ppc_target)
1311 <low_breakpoint_at>: Declare.
1312 (ppc_breakpoint_at): Turn into...
1313 (ppc_target::low_breakpoint_at): ...this.
1314 (the_low_target): Remove the op field.
1315 * linux-riscv-low.cc (class riscv_target)
1316 <low_breakpoint_at>: Declare.
1317 (riscv_breakpoint_at): Turn into...
1318 (riscv_target::low_breakpoint_at): ...this.
1319 (the_low_target): Remove the op field.
1320 * linux-s390-low.cc (class s390_target)
1321 <low_breakpoint_at>: Declare.
1322 (s390_breakpoint_at): Turn into...
1323 (s390_target::low_breakpoint_at): ...this.
1324 (the_low_target): Remove the op field.
1325 * linux-sh-low.cc (class sh_target)
1326 <low_breakpoint_at>: Declare.
1327 (sh_breakpoint_at): Turn into...
1328 (sh_target::low_breakpoint_at): ...this.
1329 (the_low_target): Remove the op field.
1330 * linux-sparc-low.cc (class sparc_target)
1331 <low_breakpoint_at>: Declare.
1332 (sparc_breakpoint_at): Turn into...
1333 (sparc_target::low_breakpoint_at): ...this.
1334 (the_low_target): Remove the op field.
1335 * linux-tic6x-low.cc (class tic6x_target)
1336 <low_breakpoint_at>: Declare.
1337 (tic6x_breakpoint_at): Turn into...
1338 (tic6x_target::low_breakpoint_at): ...this.
1339 (the_low_target): Remove the op field.
1340 * linux-tile-low.cc (class tile_target)
1341 <low_breakpoint_at>: Declare.
1342 (tile_breakpoint_at): Turn into...
1343 (tile_target::low_breakpoint_at): ...this.
1344 (the_low_target): Remove the op field.
1345 * linux-xtensa-low.cc (class xtensa_target)
1346 <low_breakpoint_at>: Declare.
1347 (xtensa_breakpoint_at): Turn into...
1348 (xtensa_target::low_breakpoint_at): ...this.
1349 (the_low_target): Remove the op field.
1350
d4807ea2
TBA
13512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1352
1353 Turn the 'decr_pc_after_break' linux_target_ops field into
1354 a method of linux_process_target.
1355
1356 * linux-low.h (struct linux_target_ops)
1357 <decr_pc_after_break>: Remove.
1358 (class linux_process_target) <low_decr_pc_after_break>: New method
1359 declaration.
1360 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1361 New method implementation.
1362
1363 Update the users below.
1364
1365 (linux_process_target::save_stop_reason)
1366 (linux_process_target::wait_1)
1367 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1368 New declaration.
1369 (x86_target::low_decr_pc_after_break): New method implementation.
1370 (the_low_target): Remove the field.
1371 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1372 New declaration.
1373 (bfin_target::low_decr_pc_after_break): New method implementation.
1374 (the_low_target): Remove the field.
1375 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1376 New declaration.
1377 (m68k_target::low_decr_pc_after_break): New method implementation.
1378 (the_low_target): Remove the field.
1379 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1380 New declaration.
1381 (s390_target::low_decr_pc_after_break): New method implementation.
1382 (the_low_target): Remove the field.
1383 * linux-aarch64-low.cc (the_low_target): Remove the field.
1384 * linux-arm-low.cc (the_low_target): Remove the field.
1385 * linux-cris-low.cc (the_low_target): Remove the field.
1386 * linux-crisv32-low.cc (the_low_target): Remove the field.
1387 * linux-m32r-low.cc (the_low_target): Remove the field.
1388 * linux-mips-low.cc (the_low_target): Remove the field.
1389 * linux-nios2-low.cc (the_low_target): Remove the field.
1390 * linux-ppc-low.cc (the_low_target): Remove the field.
1391 * linux-riscv-low.cc (the_low_target): Remove the field.
1392 * linux-sh-low.cc (the_low_target): Remove the field.
1393 * linux-sparc-low.cc (the_low_target): Remove the field.
1394 * linux-tic6x-low.cc (the_low_target): Remove the field.
1395 * linux-tile-low.cc (the_low_target): Remove the field.
1396 * linux-xtensa-low.cc (the_low_target): Remove the field.
1397
7582c77c
TBA
13982020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1399
1400 Remove the 'supports_software_single_step' linux target op and let
1401 the concrete linux target define it by overriding the op in
1402 process_stratum_target.
1403 Turn the 'get_next_pcs' linux target op into a method of
1404 linux_process_target.
1405
1406 * linux-low.h (struct linux_target_ops): Remove the ops.
1407 (class linux_process_target) <supports_software_single_step>:
1408 Remove.
1409 <low_get_next_pcs>: Declare.
1410 * linux-low.cc (can_software_single_step): Remove.
1411 (linux_process_target::low_get_next_pcs): Define.
1412 (linux_process_target::supports_software_single_step): Remove.
1413
1414 Update the callers below.
1415
1416 (linux_process_target::handle_extended_wait)
1417 (linux_process_target::wait_1)
1418 (linux_process_target::install_software_single_step_breakpoints)
1419 (linux_process_target::single_step)
1420 (linux_process_target::thread_needs_step_over)
1421 (linux_process_target::proceed_one_lwp)
1422 (linux_process_target::supports_range_stepping)
1423
1424 * linux-x86-low.cc (the_low_target): Remove the op field.
1425 * linux-aarch64-low.cc (the_low_target): Ditto.
1426 * linux-bfin-low.cc (the_low_target): Ditto.
1427 * linux-cris-low.cc (the_low_target): Ditto.
1428 * linux-crisv32-low.cc (the_low_target): Ditto.
1429 * linux-m32r-low.cc (the_low_target): Ditto.
1430 * linux-m68k-low.cc (the_low_target): Ditto.
1431 * linux-mips-low.cc (the_low_target): Ditto.
1432 * linux-nios2-low.cc (the_low_target): Ditto.
1433 * linux-ppc-low.cc (the_low_target): Ditto.
1434 * linux-riscv-low.cc (the_low_target): Ditto.
1435 * linux-s390-low.cc (the_low_target): Ditto.
1436 * linux-sh-low.cc (the_low_target): Ditto.
1437 * linux-sparc-low.cc (the_low_target): Ditto.
1438 * linux-tic6x-low.cc (the_low_target): Ditto.
1439 * linux-tile-low.cc (the_low_target): Ditto.
1440 * linux-xtensa-low.cc (the_low_target): Ditto.
1441 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1442 <supports_software_single_step>: Declare.
1443 (arm_target::supports_software_single_step): Define.
1444 (arm_gdbserver_get_next_pcs): Turn into...
1445 (arm_target::low_get_next_pcs): ...this.
1446 (the_low_target): Remove the op field.
1447
3ca4edb6
TBA
14482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1449
1450 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1451 the concrete linux target define it by overriding the op
1452 in process_stratum_target.
1453
1454 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1455 Remove.
1456 * linux-low.h (struct linux_target_ops): Remove the op.
1457 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1458 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1459 Declare.
1460 (x86_sw_breakpoint_from_kind): Turn into...
1461 (x86_target::sw_breakpoint_from_kind): ...this.
1462 (the_low_target): Remove the op field.
1463 * linux-aarch64-low.cc (class aarch64_target)
1464 <sw_breakpoint_from_kind>: Declare.
1465 (aarch64_sw_breakpoint_from_kind): Turn into...
1466 (aarch64_target::sw_breakpoint_from_kind): ...this.
1467 (the_low_target): Remove the op field.
1468 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1469 Declare.
1470 (arm_target::sw_breakpoint_from_kind): Define.
1471 (the_low_target): Remove the op field.
1472 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1473 Declare.
1474 (bfin_sw_breakpoint_from_kind): Turn into...
1475 (bfin_target::sw_breakpoint_from_kind): ...this.
1476 (the_low_target): Remove the op field.
1477 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1478 Declare.
1479 (cris_sw_breakpoint_from_kind): Turn into...
1480 (cris_target::sw_breakpoint_from_kind): ...this.
1481 (the_low_target): Remove the op field.
1482 * linux-crisv32-low.cc (class crisv32_target)
1483 <sw_breakpoint_from_kind>: Declare.
1484 (cris_sw_breakpoint_from_kind): Turn into...
1485 (crisv32_target::sw_breakpoint_from_kind): ...this.
1486 (the_low_target): Remove the op field.
1487 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1488 Declare.
1489 (ia64_target::sw_breakpoint_from_kind): Define.
1490 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1491 Declare.
1492 (m32r_sw_breakpoint_from_kind): Turn into...
1493 (m32r_target::sw_breakpoint_from_kind): ...this.
1494 (the_low_target): Remove the op field.
1495 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1496 Declare.
1497 (m68k_sw_breakpoint_from_kind): Turn into...
1498 (m68k_target::sw_breakpoint_from_kind): ...this.
1499 (the_low_target): Remove the op field.
1500 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1501 Declare.
1502 (mips_sw_breakpoint_from_kind): Turn into...
1503 (mips_target::sw_breakpoint_from_kind): ...this.
1504 (the_low_target): Remove the op field.
1505 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1506 Declare.
1507 (nios2_sw_breakpoint_from_kind): Turn into...
1508 (nios2_target::sw_breakpoint_from_kind): ...this.
1509 (the_low_target): Remove the op field.
1510 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1511 Declare.
1512 (ppc_sw_breakpoint_from_kind): Turn into...
1513 (ppc_target::sw_breakpoint_from_kind): ...this.
1514 (the_low_target): Remove the op field.
1515 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1516 Declare.
1517 (riscv_sw_breakpoint_from_kind): Turn into...
1518 (riscv_target::sw_breakpoint_from_kind): ...this.
1519 (the_low_target): Remove the op field.
1520 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1521 Declare.
1522 (s390_sw_breakpoint_from_kind): Turn into...
1523 (s390_target::sw_breakpoint_from_kind): ...this.
1524 (the_low_target): Remove the op field.
1525 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1526 Declare.
1527 (sh_sw_breakpoint_from_kind): Turn into...
1528 (sh_target::sw_breakpoint_from_kind): ...this.
1529 (the_low_target): Remove the op field.
1530 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1531 Declare.
1532 (sparc_sw_breakpoint_from_kind): Turn into...
1533 (sparc_target::sw_breakpoint_from_kind): ...this.
1534 (the_low_target): Remove the op field.
1535 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1536 Declare.
1537 (tic6x_sw_breakpoint_from_kind): Turn into...
1538 (tic6x_target::sw_breakpoint_from_kind): ...this.
1539 (the_low_target): Remove the op field.
1540 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1541 Declare.
1542 (tile_sw_breakpoint_from_kind): Turn into...
1543 (tile_target::sw_breakpoint_from_kind): ...this.
1544 (the_low_target): Remove the op field.
1545 * linux-xtensa-low.cc (class xtensa_target)
1546 <sw_breakpoint_from_kind>: Declare.
1547 (xtensa_sw_breakpoint_from_kind): Turn into...
1548 (xtensa_target::sw_breakpoint_from_kind): ...this.
1549 (the_low_target): Remove the op field.
1550
06250e4e
TBA
15512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1552
1553 Remove the 'breakpoint_kind_from_pc' and
1554 'breakpoint_kind_from_current_state' linux target ops, and let the
1555 concrete linux target define them by overriding the ops of
1556 process_stratum_target.
1557
1558 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1559 Remove.
1560 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1561 * linux-low.h (struct linux_target_ops): Remove ops.
1562 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1563 <breakpoint_kind_from_current_state>: Remove.
1564 * linux-x86-low.cc (the_low_target): Remove the op fields.
1565 * linux-bfin-low.cc (the_low_target): Ditto.
1566 * linux-cris-low.cc (the_low_target): Ditto.
1567 * linux-crisv32-low.cc (the_low_target): Ditto.
1568 * linux-m32r-low.cc (the_low_target): Ditto.
1569 * linux-m68k-low.cc (the_low_target): Ditto.
1570 * linux-mips-low.cc (the_low_target): Ditto.
1571 * linux-nios2-low.cc (the_low_target): Ditto.
1572 * linux-ppc-low.cc (the_low_target): Ditto.
1573 * linux-s390-low.cc (the_low_target): Ditto.
1574 * linux-sh-low.cc (the_low_target): Ditto.
1575 * linux-sparc-low.cc (the_low_target): Ditto.
1576 * linux-tic6x-low.cc (the_low_target): Ditto.
1577 * linux-tile-low.cc (the_low_target): Ditto.
1578 * linux-xtensa-low.cc (the_low_target): Ditto.
1579 * linux-aarch64-low.cc (class aarch64_target)
1580 <breakpoint_kind_from_pc>
1581 <breakpoint_kind_from_current_state>: Declare.
1582 (aarch64_breakpoint_kind_from_pc): Turn into...
1583 (aarch64_target::breakpoint_kind_from_pc): ...this.
1584 (aarch64_breakpoint_kind_from_current_state): Turn into...
1585 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1586 (the_low_target): Remove the op fields.
1587 * linux-arm-low.cc (class arm_target):
1588 <breakpoint_kind_from_pc>
1589 <breakpoint_kind_from_current_state>: Declare.
1590 (arm_target::breakpoint_kind_from_pc): Define.
1591 (arm_target::breakpoint_kind_from_current_state): Define.
1592 (the_low_target): Remove the op fields.
1593 * linux-riscv-low.cc (class riscv_target):
1594 <breakpoint_kind_from_pc>: Declare.
1595 (riscv_breakpoint_kind_from_pc): Turn into...
1596 (riscv_target::breakpoint_kind_from_pc): ...this.
1597 (the_low_target): Remove the op fields.
1598
bf9ae9d8
TBA
15992020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1600
1601 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1602 of linux_process_target.
1603
1604 * linux-low.h (struct linux_target_ops): Remove the ops.
1605 (class linux_process_target) <low_supports_breakpoints>
1606 <low_get_pc>
1607 <low_set_pc>: Declare.
1608 * linux-low.cc (supports_breakpoints): Turn into...
1609 (linux_process_target::low_supports_breakpoints): ...this.
1610 (linux_process_target::low_get_pc): Define.
1611 (linux_process_target::low_set_pc): Define.
1612
1613 Update the callers below.
1614
1615 (linux_process_target::get_pc)
1616 (linux_process_target::save_stop_reason)
1617 (linux_process_target::maybe_move_out_of_jump_pad)
1618 (linux_process_target::wait_1)
1619 (linux_process_target::resume_one_lwp_throw)
1620 (linux_process_target::resume)
1621 (linux_process_target::proceed_all_lwps)
1622 (linux_process_target::read_pc)
1623 (linux_process_target::write_pc)
1624
1625 * linux-x86-low.cc (class linux_process_target)
1626 <low_supports_breakpoints>
1627 <low_get_pc>
1628 <low_set_pc>: Declare.
1629 (x86_target::low_supports_breakpoints): Define.
1630 (x86_get_pc): Turn into...
1631 (x86_target::low_get_pc): ...this.
1632 (x86_set_pc): Turn into...
1633 (x86_target::low_set_pc): ...this.
1634 (the_low_target): Remove the op fields.
1635 * linux-arm-low.cc (class arm_target)
1636 <low_supports_breakpoints>
1637 <low_get_pc>
1638 <low_set_pc>: Declare.
1639 (arm_target::low_supports_breakpoints)
1640 (arm_target::low_get_pc)
1641 (arm_target::low_set_pc): Define.
1642 (the_low_target): Remove the op fields.
1643 * linux-bfin-low.cc (class bfin_target)
1644 <low_supports_breakpoints>
1645 <low_get_pc>
1646 <low_set_pc>: Declare.
1647 (bfin_target::low_supports_breakpoints)
1648 (bfin_target::low_get_pc)
1649 (bfin_target::low_set_pc): Define.
1650 (the_low_target): Remove the op fields.
1651 * linux-cris-low.cc (class cris_target)
1652 <low_supports_breakpoints>
1653 <low_get_pc>
1654 <low_set_pc>: Declare.
1655 (cris_target::low_supports_breakpoints)
1656 (cris_target::low_get_pc)
1657 (cris_target::low_set_pc): Define.
1658 (the_low_target): Remove the op fields.
1659 * linux-crisv32-low.cc (class crisv32_target)
1660 <low_supports_breakpoints>
1661 <low_get_pc>
1662 <low_set_pc>: Declare.
1663 (crisv32_target::low_supports_breakpoints)
1664 (crisv32_target::low_get_pc)
1665 (crisv32_target::low_set_pc): Define.
1666 (the_low_target): Remove the op fields.
1667 * linux-m32r-low.cc (class m32r_target)
1668 <low_supports_breakpoints>
1669 <low_get_pc>
1670 <low_set_pc>: Declare.
1671 (m32r_target::low_supports_breakpoints)
1672 (m32r_target::low_get_pc)
1673 (m32r_target::low_set_pc): Define.
1674 (the_low_target): Remove the op fields.
1675 * linux-m68k-low.cc (class m68k_target)
1676 <low_supports_breakpoints>
1677 <low_get_pc>
1678 <low_set_pc>: Declare.
1679 (m68k_target::low_supports_breakpoints)
1680 (m68k_target::low_get_pc)
1681 (m68k_target::low_set_pc): Define.
1682 (the_low_target): Remove the op fields.
1683 * linux-nios2-low.cc (class nios2_target)
1684 <low_supports_breakpoints>
1685 <low_get_pc>
1686 <low_set_pc>: Declare.
1687 (nios2_target::low_supports_breakpoints)
1688 (nios2_target::low_get_pc)
1689 (nios2_target::low_set_pc): Define.
1690 (the_low_target): Remove the op fields.
1691 * linux-sh-low.cc (class sh_target)
1692 <low_supports_breakpoints>
1693 <low_get_pc>
1694 <low_set_pc>: Declare.
1695 (sh_target::low_supports_breakpoints)
1696 (sh_target::low_get_pc)
1697 (sh_target::low_set_pc): Define.
1698 (the_low_target): Remove the op fields.
1699 * linux-xtensa-low.cc (class xtensa_target)
1700 <low_supports_breakpoints>
1701 <low_get_pc>
1702 <low_set_pc>: Declare.
1703 (xtensa_target::low_supports_breakpoints)
1704 (xtensa_target::low_get_pc)
1705 (xtensa_target::low_set_pc): Define.
1706 (the_low_target): Remove the op fields.
1707 * linux-sparc-low.cc (class sparc_target)
1708 <low_supports_breakpoints>
1709 <low_get_pc>: Declare.
1710 (sparc_target::low_supports_breakpoints)
1711 (sparc_target::low_get_pc): Define.
1712 (the_low_target): Remove the op fields.
1713 * linux-tile-low.cc (class tile_target)
1714 <low_supports_breakpoints>
1715 <low_get_pc>
1716 <low_set_pc>: Declare.
1717 (tile_target::low_supports_breakpoints)
1718 (tile_target::low_get_pc)
1719 (tile_target::low_set_pc): Define.
1720 (the_low_target): Remove the op fields.
1721 * linux-aarch64-low.cc (class aarch64_target)
1722 <low_supports_breakpoints>
1723 <low_get_pc>
1724 <low_set_pc>: Declare.
1725 (aarch64_target::low_supports_breakpoints): Define.
1726 (aarch64_get_pc): Turn into...
1727 (aarch64_target::low_get_pc): ...this.
1728 (aarch64_set_pc): Turn into...
1729 (aarch64_target::low_set_pc): ...this.
1730 (the_low_target): Remove the op fields.
1731 * linux-mips-low.cc (class mips_target)
1732 <low_supports_breakpoints>
1733 <low_get_pc>
1734 <low_set_pc>: Declare.
1735 (mips_target::low_supports_breakpoints): Define.
1736 (mips_get_pc): Turn into...
1737 (mips_target::low_get_pc): ...this.
1738 (mips_set_pc): Turn into...
1739 (mips_target::low_set_pc): ...this.
1740 (the_low_target): Remove the op fields.
1741 * linux-ppc-low.cc (class ppc_target)
1742 <low_supports_breakpoints>
1743 <low_get_pc>
1744 <low_set_pc>: Declare.
1745 (ppc_target::low_supports_breakpoints): Define.
1746 (ppc_get_pc): Turn into...
1747 (ppc_target::low_get_pc): ...this.
1748 (ppc_set_pc): Turn into...
1749 (ppc_target::low_set_pc): ...this.
1750 (the_low_target): Remove the op fields.
1751 * linux-riscv-low.cc (class riscv_target)
1752 <low_supports_breakpoints>
1753 <low_get_pc>
1754 <low_set_pc>: Declare.
1755 (riscv_target::low_supports_breakpoints): Define.
1756 (riscv_get_pc): Turn into...
1757 (riscv_target::low_get_pc): ...this.
1758 (riscv_set_pc): Turn into...
1759 (riscv_target::low_set_pc): ...this.
1760 (the_low_target): Remove the op fields.
1761 * linux-s390-low.cc (class s390_target)
1762 <low_supports_breakpoints>
1763 <low_get_pc>
1764 <low_set_pc>: Declare.
1765 (s390_target::low_supports_breakpoints): Define.
1766 (s390_get_pc): Turn into...
1767 (s390_target::low_get_pc): ...this.
1768 (s390_set_pc): Turn into...
1769 (s390_target::low_set_pc): ...this.
1770 (the_low_target): Remove the op fields.
1771 * linux-tic6x-low.cc (class tic6x_target)
1772 <low_supports_breakpoints>
1773 <low_get_pc>
1774 <low_set_pc>: Declare.
1775 (tic6x_target::low_supports_breakpoints): Define.
1776 (tic6x_get_pc): Turn into...
1777 (tic6x_target::low_get_pc): ...this.
1778 (tic6x_set_pc): Turn into...
1779 (tic6x_target::low_set_pc): ...this.
1780 (the_low_target): Remove the op fields.
1781
df95181f
TBA
17822020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1783
1784 Turn some more static methods in linux-low into private methods
1785 of linux_process_target.
1786
1787 * linux-low.cc (get_pc): Turn into...
1788 (linux_process_target::get_pc): ...this.
1789 (save_stop_reason): Turn into...
1790 (linux_process_target::save_stop_reason): ...this.
1791 (thread_still_has_status_pending_p): Turn into...
1792 (linux_process_target::thread_still_has_status_pending): ...this.
1793 (status_pending_p_callback): Turn into...
1794 (linux_process_target::status_pending_p_callback): ...this.
1795 (resume_stopped_resumed_lwps): Turn into...
1796 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1797 (install_software_single_step_breakpoints): Turn into...
1798 (linux_process_target::install_software_single_step_breakpoints):
1799 ...this.
1800 (single_step): Turn into...
1801 (linux_process_target::single_step): ...this.
1802 (linux_resume_one_lwp_throw): Turn into...
1803 (linux_process_target::resume_one_lwp_throw): ...this.
1804 (linux_resume_one_lwp): Turn into...
1805 (linux_process_target::resume_one_lwp): ...this.
1806 (resume_status_pending_p): Turn into...
1807 (linux_process_target::resume_status_pending): ...this.
1808 (need_step_over_p): Turn into...
1809 (linux_process_target::thread_needs_step_over): ...this.
1810 (linux_resume_one_thread): Turn into...
1811 (linux_process_target::resume_one_thread): ...this.
1812 (proceed_one_lwp): Turn into...
1813 (linux_process_target::proceed_one_lwp): ...this.
1814 (unsuspend_and_proceed_one_lwp): Turn into...
1815 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1816
1817 Update the calls/references to the above functions below.
1818
1819 (linux_process_target::handle_extended_wait)
1820 (linux_process_target::filter_event)
1821 (linux_process_target::wait_for_event_filtered)
1822 (linux_process_target::wait_1)
1823 (linux_process_target::move_out_of_jump_pad)
1824 (linux_process_target::start_step_over)
1825 (linux_process_target::resume)
1826 (linux_process_target::proceed_all_lwps)
1827 (regsets_store_inferior_registers)
1828 (linux_process_target::store_register)
1829
1830 * linux-low.h (class linux_process_target)
1831 <get_pc>
1832 <save_stop_reason>
1833 <thread_still_has_status_pending>
1834 <status_pending_p_callback>
1835 <resume_stopped_resumed_lwps>
1836 <install_software_single_step_breakpoints>
1837 <single_step>
1838 <resume_one_lwp_throw>
1839 <resume_one_lwp>
1840 <resume_status_pending>
1841 <thread_needs_step_over>
1842 <resume_one_thread>
1843 <proceed_one_lwp>
1844 <unsuspend_and_proceed_one_lwp>: Declare.
1845
bd70b1f2
TBA
18462020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1847
1848 Turn the 'fetch_register' linux target op into a method of
1849 linux_process_target.
1850
1851 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1852 (class linux_process_target) <low_fetch_register>: Declare.
1853 * linux-x86-low.cc (the_low_target)
1854 * linux-aarch64-low.cc (the_low_target)
1855 * linux-arm-low.cc (the_low_target)
1856 * linux-bfin-low.cc (the_low_target)
1857 * linux-cris-low.cc (the_low_target)
1858 * linux-crisv32-low.cc (the_low_target)
1859 * linux-m32r-low.cc (the_low_target)
1860 * linux-m68k-low.cc (the_low_target)
1861 * linux-nios2-low.cc (the_low_target)
1862 * linux-ppc-low.cc (the_low_target)
1863 * linux-s390-low.cc (the_low_target)
1864 * linux-sh-low.cc (the_low_target)
1865 * linux-sparc-low.cc (the_low_target)
1866 * linux-tic6x-low.cc (the_low_target)
1867 * linux-tile-low.cc (the_low_target)
1868 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1869 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1870 Declare.
1871 (ia64_fetch_register): Turn into...
1872 (ia64_target::low_fetch_register): ...this.
1873 (the_low_target): Remove the op field.
1874 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1875 Declare.
1876 (mips_fetch_register): Turn into...
1877 (mips_target::low_fetch_register): ...this.
1878 (the_low_target): Remove the op field.
1879 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1880 Declare.
1881 (riscv_fetch_register): Turn into...
1882 (riscv_target::low_fetch_register): ...this.
1883 (the_low_target): Remove the op field.
1884
1885 Update the callers below.
1886
1887 * linux-low.cc (linux_process_target::fetch_registers)
1888 (linux_process_target::low_fetch_register)
1889
daca57a7
TBA
18902020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1891
1892 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1893 linux target ops into methods of linux_process_target.
1894
1895 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1896 (class linux_process_target) <fetch_register>
1897 <store_register>
1898 <usr_fetch_inferior_registers>
1899 <usr_store_inferior_registers>
1900 <low_cannot_fetch_register>
1901 <low_cannot_fetch_register> Declare.
1902 * linux-low.cc (fetch_register): Turn into...
1903 (linux_process_target::fetch_register): ...this.
1904 (store_register): Turn into ...
1905 (linux_process_target::store_register): ...this.
1906 (usr_fetch_inferior_registers): Turn into...
1907 (linux_process_target::usr_fetch_inferior_registers): ...this.
1908 (usr_store_inferior_registers): Turn into...
1909 (linux_process_target::usr_store_inferior_registers): ...this.
1910 * linux-x86-low.cc (class x86_target)
1911 <low_cannot_fetch_register>
1912 <low_cannot_store_register>: Declare.
1913 (x86_cannot_store_register): Turn into...
1914 (x86_target::low_cannot_store_register): ...this.
1915 (x86_cannot_fetch_register): Turn into...
1916 (x86_target::low_cannot_fetch_register): ...this.
1917 (the_low_target): Remove the target op fields.
1918 * linux-aarch64-low.cc (class aarch64_target)
1919 <low_cannot_fetch_register>
1920 <low_cannot_store_register>: Declare.
1921 (aarch64_target::low_cannot_fetch_register)
1922 (aarch64_target::low_cannot_store_register): Define.
1923 (the_low_target): Remove the op fields.
1924 * linux-arm-low.cc (class arm_target)
1925 <low_cannot_fetch_register>
1926 <low_cannot_store_register>: Declare.
1927 (arm_cannot_fetch_register): Turn into...
1928 (arm_target::low_cannot_fetch_register): ...this.
1929 (arm_cannot_store_register): Turn into...
1930 (arm_target::low_cannot_store_register): ...this.
1931 (the_low_target): Remove the op fields.
1932 * linux-bfin-low.cc (class bfin_target)
1933 <low_cannot_fetch_register>
1934 <low_cannot_store_register>: Declare.
1935 (bfin_cannot_fetch_register): Turn into...
1936 (bfin_target::low_cannot_fetch_register): ...this.
1937 (bfin_cannot_store_register): Turn into...
1938 (bfin_target::low_cannot_store_register): ...this.
1939 (the_low_target): Remove the op fields.
1940 * linux-cris-low.cc (class cris_target)
1941 <low_cannot_fetch_register>
1942 <low_cannot_store_register>: Declare.
1943 (cris_cannot_fetch_register): Turn into...
1944 (cris_target::low_cannot_fetch_register): ...this.
1945 (cris_cannot_store_register): Turn into...
1946 (cris_target::low_cannot_store_register): ...this.
1947 (the_low_target): Remove the op fields.
1948 * linux-crisv32-low.cc (class crisv32_target)
1949 <low_cannot_fetch_register>
1950 <low_cannot_store_register>: Declare.
1951 (crisv32_target::low_cannot_fetch_register)
1952 (crisv32_target::low_cannot_store_register): Define.
1953 (the_low_target): Remove the op fields.
1954 * linux-ia64-low.cc (class ia64_target)
1955 <low_cannot_fetch_register>
1956 <low_cannot_store_register>: Declare.
1957 (ia64_cannot_fetch_register): Turn into...
1958 (ia64_target::low_cannot_fetch_register): ...this.
1959 (ia64_cannot_store_register): Turn into...
1960 (ia64_target::low_cannot_store_register): ...this.
1961 (the_low_target): Remove the op fields.
1962 * linux-m32r-low.cc (class m32r_target)
1963 <low_cannot_fetch_register>
1964 <low_cannot_store_register>: Declare.
1965 (m32r_cannot_fetch_register): Turn into...
1966 (m32r_target::low_cannot_fetch_register): ...this.
1967 (m32r_cannot_store_register): Turn into...
1968 (m32r_target::low_cannot_store_register): ...this.
1969 (the_low_target): Remove the op fields.
1970 * linux-m68k-low.cc (class m68k_target)
1971 <low_cannot_fetch_register>
1972 <low_cannot_store_register>: Declare.
1973 (m68k_cannot_fetch_register): Turn into...
1974 (m68k_target::low_cannot_fetch_register): ...this.
1975 (m68k_cannot_store_register): Turn into...
1976 (m68k_target::low_cannot_store_register): ...this.
1977 (the_low_target): Remove the op fields.
1978 * linux-mips-low.cc (class mips_target)
1979 <low_cannot_fetch_register>
1980 <low_cannot_store_register>: Declare.
1981 (mips_cannot_fetch_register): Turn into...
1982 (mips_target::low_cannot_fetch_register): ...this.
1983 (mips_cannot_store_register): Turn into...
1984 (mips_target::low_cannot_store_register): ...this.
1985 (get_usrregs_info): Inline at the call sites in
1986 low_cannot_fetch_register and low_cannot_store_register,
1987 and remove.
1988 (the_low_target): Remove the op fields.
1989 * linux-nios2-low.cc (class nios2_target)
1990 <low_cannot_fetch_register>
1991 <low_cannot_store_register>: Declare.
1992 (nios2_cannot_fetch_register): Turn into...
1993 (nios2_target::low_cannot_fetch_register): ...this.
1994 (nios2_cannot_store_register): Turn into...
1995 (nios2_target::low_cannot_store_register): ...this.
1996 (the_low_target): Remove the op fields.
1997 * linux-ppc-low.cc (class ppc_target)
1998 <low_cannot_fetch_register>
1999 <low_cannot_store_register>: Declare.
2000 (ppc_cannot_fetch_register): Turn into...
2001 (ppc_target::low_cannot_fetch_register): ...this.
2002 (ppc_cannot_store_register): Turn into...
2003 (ppc_target::low_cannot_store_register): ...this.
2004 (the_low_target): Remove the op fields.
2005 * linux-riscv-low.cc (class riscv_target)
2006 <low_cannot_fetch_register>
2007 <low_cannot_store_register>: Declare.
2008 (riscv_target::low_cannot_fetch_register)
2009 (riscv_target::low_cannot_store_register): Define.
2010 (the_low_target): Remove the op fields.
2011 * linux-s390-low.cc (class s390_target)
2012 <low_cannot_fetch_register>
2013 <low_cannot_store_register>: Declare.
2014 (s390_cannot_fetch_register): Turn into...
2015 (s390_target::low_cannot_fetch_register): ...this.
2016 (s390_cannot_store_register): Turn into...
2017 (s390_target::low_cannot_store_register): ...this.
2018 (the_low_target): Remove the op fields.
2019 * linux-sh-low.cc (class sh_target)
2020 <low_cannot_fetch_register>
2021 <low_cannot_store_register>: Declare.
2022 (sh_cannot_fetch_register): Turn into...
2023 (sh_target::low_cannot_fetch_register): ...this.
2024 (sh_cannot_store_register): Turn into...
2025 (sh_target::low_cannot_store_register): ...this.
2026 (the_low_target): Remove the op fields.
2027 * linux-sparc-low.cc (class sparc_target)
2028 <low_cannot_fetch_register>
2029 <low_cannot_store_register>: Declare.
2030 (sparc_cannot_fetch_register): Turn into...
2031 (sparc_target::low_cannot_fetch_register): ...this.
2032 (sparc_cannot_store_register): Turn into...
2033 (sparc_target::low_cannot_store_register): ...this.
2034 (the_low_target): Remove the op fields.
2035 * linux-tic6x-low.cc (class tic6x_target)
2036 <low_cannot_fetch_register>
2037 <low_cannot_store_register>: Declare.
2038 (tic6x_cannot_fetch_register): Turn into...
2039 (tic6x_target::low_cannot_fetch_register): ...this.
2040 (tic6x_cannot_store_register): Turn into...
2041 (tic6x_target::low_cannot_store_register): ...this.
2042 (the_low_target): Remove the op fields.
2043 * linux-tile-low.cc (class tile_target)
2044 <low_cannot_fetch_register>
2045 <low_cannot_store_register>: Declare.
2046 (tile_cannot_fetch_register): Turn into...
2047 (tile_target::low_cannot_fetch_register): ...this.
2048 (tile_cannot_store_register): Turn into...
2049 (tile_target::low_cannot_store_register): ...this.
2050 (the_low_target): Remove the op fields.
2051 * linux-xtensa-low.cc (class xtensa_target)
2052 <low_cannot_fetch_register>
2053 <low_cannot_store_register>: Declare.
2054 (xtensa_target::low_cannot_fetch_register)
2055 (xtensa_target::low_cannot_store_register): Define.
2056 (the_low_target): Remove the op fields.
2057
aa8d21c9
TBA
20582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2059
2060 Turn the 'regs_info' linux target op into a method of
2061 linux_process_target.
2062
2063 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2064 (class linux_process_target) <get_regs_info>: Define.
2065
2066 Update the callers below.
2067
2068 * linux-low.cc (linux_process_target::fetch_registers)
2069 (linux_process_target::store_registers)
2070 * proc-service.cc (gregset_info)
2071
2072 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2073 (x86_linux_regs_info): Turn into ...
2074 (x86_target::get_regs_info): ...this.
2075 (the_low_target): Remove the op field.
2076 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2077 Declare.
2078 (aarch64_regs_info): Turn into ...
2079 (aarch64_target::get_regs_info): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2082 (arm_regs_info): Turn into ...
2083 (arm_target::get_regs_info): ...this.
2084 (the_low_target): Remove the op field.
2085 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2086 (bfin_regs_info): Turn into ...
2087 (bfin_target::get_regs_info): ...this.
2088 (the_low_target): Remove the op field.
2089 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2090 (cris_regs_info): Turn into ...
2091 (cris_target::get_regs_info): ...this.
2092 (the_low_target): Remove the op field.
2093 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2094 Declare.
2095 (crisv32_regs_info): Turn into ...
2096 (crisv32_target::get_regs_info): ...this.
2097 (the_low_target): Remove the op field.
2098 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2099 (ia64_regs_info): Turn into ...
2100 (ia64_target::get_regs_info): ...this.
2101 (the_low_target): Remove the op field.
2102 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2103 (m32r_regs_info): Turn into ...
2104 (m32r_target::get_regs_info): ...this.
2105 (the_low_target): Remove the op field.
2106 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2107 (m68k_regs_info): Turn into ...
2108 (m68k_target::get_regs_info): ...this.
2109 (the_low_target): Remove the op field.
2110 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2111 (mips_regs_info): Turn into ...
2112 (mips_target::get_regs_info): ...this.
2113 (the_low_target): Remove the op field.
2114 (get_usrregs_info): Update the call to the op.
2115 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2116 (nios2_regs_info): Turn into ...
2117 (nios2_target::get_regs_info): ...this.
2118 (the_low_target): Remove the op field.
2119 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2120 (ppc_regs_info): Turn into ...
2121 (ppc_target::get_regs_info): ...this.
2122 (the_low_target): Remove the op field.
2123 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2124 (riscv_regs_info): Turn into ...
2125 (riscv_target::get_regs_info): ...this.
2126 (the_low_target): Remove the op field.
2127 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2128 (s390_regs_info): Turn into ...
2129 (s390_target::get_regs_info): ...this.
2130 (the_low_target): Remove the op field.
2131 (s390_collect_ptrace_register)
2132 (s390_supply_ptrace_register)
2133 (s390_fill_gregset): Update the call to the op.
2134 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2135 (sh_regs_info): Turn into ...
2136 (sh_target::get_regs_info): ...this.
2137 (the_low_target): Remove the op field.
2138 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2139 (sparc_regs_info): Turn into ...
2140 (sparc_target::get_regs_info): ...this.
2141 (the_low_target): Remove the op field.
2142 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2143 (tic6x_regs_info): Turn into ...
2144 (tic6x_target::get_regs_info): ...this.
2145 (the_low_target): Remove the op field.
2146 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2147 (tile_regs_info): Turn into ...
2148 (tile_target::get_regs_info): ...this.
2149 (the_low_target): Remove the op field.
2150 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2151 Declare.
2152 (xtensa_regs_info): Turn into ...
2153 (xtensa_target::get_regs_info): ...this.
2154 (the_low_target): Remove the op field.
2155
797bcff5
TBA
21562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2157
2158 Turn the 'arch_setup' linux target op into a method of
2159 linux_process_target.
2160
2161 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2162 (class linux_process_target) <arch_setup_thread>
2163 <low_arch_setup>: New declarations.
2164 * linux-low.cc (linux_arch_setup): Delete.
2165 (linux_arch_setup_thread): Turn into...
2166 (linux_process_target::arch_setup_thread): ... this.
2167
2168 Update the callers below.
2169
2170 (linux_process_target::handle_extended_wait)
2171 (linux_process_target::post_create_inferior)
2172 (linux_process_target::filter_event)
2173
2174 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2175 declaration.
2176 (x86_linux_update_xmltarget): Turn into...
2177 (x86_target::update_xmltarget): ...this.
2178 (x86_linux_process_qsupported): Update the call to
2179 x86_linux_update_xmltarget.
2180 (x86_arch_setup): Turn into ...
2181 (x86_target::low_arch_setup): ...this.
2182 (the_low_target): Remove the op field.
2183 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2184 declaration.
2185 (aarch64_arch_setup): Turn into ...
2186 (aarch64_target::low_arch_setup): ...this.
2187 (the_low_target): Remove the op field.
2188 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2189 declaration.
2190 (arm_arch_setup): Turn into ...
2191 (arm_target::low_arch_setup): ...this.
2192 (the_low_target): Remove the op field.
2193 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2194 declaration.
2195 (bfin_arch_setup): Turn into ...
2196 (bfin_target::low_arch_setup): ...this.
2197 (the_low_target): Remove the op field.
2198 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2199 declaration.
2200 (cris_arch_setup): Turn into ...
2201 (cris_target::low_arch_setup): ...this.
2202 (the_low_target): Remove the op field.
2203 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2204 declaration.
2205 (crisv32_arch_setup): Turn into ...
2206 (crisv32_target::low_arch_setup): ...this.
2207 (the_low_target): Remove the op field.
2208 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2209 declaration.
2210 (ia64_arch_setup): Turn into ...
2211 (ia64_target::low_arch_setup): ...this.
2212 (the_low_target): Remove the op field.
2213 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2214 declaration.
2215 (m32r_arch_setup): Turn into ...
2216 (m32r_target::low_arch_setup): ...this.
2217 (the_low_target): Remove the op field.
2218 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2219 declaration.
2220 (m68k_arch_setup): Turn into ...
2221 (m68k_target::low_arch_setup): ...this.
2222 (the_low_target): Remove the op field.
2223 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2224 declaration.
2225 (mips_arch_setup): Turn into ...
2226 (mips_target::low_arch_setup): ...this.
2227 (the_low_target): Remove the op field.
2228 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2229 declaration.
2230 (nios2_arch_setup): Turn into ...
2231 (nios2_target::low_arch_setup): ...this.
2232 (the_low_target): Remove the op field.
2233 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2234 declaration.
2235 (ppc_arch_setup): Turn into ...
2236 (ppc_target::low_arch_setup): ...this.
2237 (the_low_target): Remove the op field.
2238 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2239 declaration.
2240 (riscv_arch_setup): Turn into ...
2241 (riscv_target::low_arch_setup): ...this.
2242 (the_low_target): Remove the op field.
2243 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2244 declaration.
2245 (s390_arch_setup): Turn into ...
2246 (s390_target::low_arch_setup): ...this.
2247 (the_low_target): Remove the op field.
2248 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2249 declaration.
2250 (sh_arch_setup): Turn into ...
2251 (sh_target::low_arch_setup): ...this.
2252 (the_low_target): Remove the op field.
2253 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2254 declaration.
2255 (sparc_arch_setup): Turn into ...
2256 (sparc_target::low_arch_setup): ...this.
2257 (the_low_target): Remove the op field.
2258 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2259 declaration.
2260 (tic6x_arch_setup): Turn into ...
2261 (tic6x_target::low_arch_setup): ...this.
2262 (the_low_target): Remove the op field.
2263 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2264 declaration.
2265 (tile_arch_setup): Turn into ...
2266 (tile_target::low_arch_setup): ...this.
2267 (the_low_target): Remove the op field.
2268 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2269 declaration.
2270 (xtensa_arch_setup): Turn into ...
2271 (xtensa_target::low_arch_setup): ...this.
2272 (the_low_target): Remove the op field.
2273
ef0478f6
TBA
22742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2275
2276 * linux-low.h (the_linux_target): New extern declaration.
2277 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2278 'the_target'.
2279 (the_linux_target): Remove.
2280 * linux-x86-low.cc (class x86_target): New class.
2281 (the_x86_target): New static object.
2282 (the_linux_target): Define as pointer to the_x86_target.
2283 * linux-aarch64-low.cc (class aarch64_target): New class.
2284 (the_aarch64_target): New static object.
2285 (the_linux_target): Define as pointer to the_aarch64_target.
2286 * linux-arm-low.cc (class arm_target): New class.
2287 (the_arm_target): New static object.
2288 (the_linux_target): Define as pointer to the_arm_target.
2289 * linux-bfin-low.cc (class bfin_target): New class.
2290 (the_bfin_target): New static object.
2291 (the_linux_target): Define as pointer to the_bfin_target.
2292 * linux-cris-low.cc (class cris_target): New class.
2293 (the_cris_target): New static object.
2294 (the_linux_target): Define as pointer to the_cris_target.
2295 * linux-crisv32-low.cc (class crisv32_target): New class.
2296 (the_crisv32_target): New static object.
2297 (the_linux_target): Define as pointer to the_crisv32_target.
2298 * linux-ia64-low.cc (class ia64_target): New class.
2299 (the_ia64_target): New static object.
2300 (the_linux_target): Define as pointer to the_ia64_target.
2301 * linux-m32r-low.cc (class m32r_target): New class.
2302 (the_m32r_target): New static object.
2303 (the_linux_target): Define as pointer to the_m32r_target.
2304 * linux-m68k-low.cc (class m68k_target): New class.
2305 (the_m68k_target): New static object.
2306 (the_linux_target): Define as pointer to the_m68k_target.
2307 * linux-mips-low.cc (class mips_target): New class.
2308 (the_mips_target): New static object.
2309 (the_linux_target): Define as pointer to the_mips_target.
2310 * linux-nios2-low.cc (class nios2_target): New class.
2311 (the_nios2_target): New static object.
2312 (the_linux_target): Define as pointer to the_nios2_target.
2313 * linux-ppc-low.cc (class ppc_target): New class.
2314 (the_ppc_target): New static object.
2315 (the_linux_target): Define as pointer to the_ppc_target.
2316 * linux-riscv-low.cc (class riscv_target): New class.
2317 (the_riscv_target): New static object.
2318 (the_linux_target): Define as pointer to the_riscv_target.
2319 * linux-s390-low.cc (class s390_target): New class.
2320 (the_s390_target): New static object.
2321 (the_linux_target): Define as pointer to the_s390_target.
2322 * linux-sh-low.cc (class sh_target): New class.
2323 (the_sh_target): New static object.
2324 (the_linux_target): Define as pointer to the_sh_target.
2325 * linux-sparc-low.cc (class sparc_target): New class.
2326 (the_sparc_target): New static object.
2327 (the_linux_target): Define as pointer to the_sparc_target.
2328 * linux-tic6x-low.cc (class tic6x_target): New class.
2329 (the_tic6x_target): New static object.
2330 (the_linux_target): Define as pointer to the_tic6x_target.
2331 * linux-tile-low.cc (class tile_target): New class.
2332 (the_tile_target): New static object.
2333 (the_linux_target): Define as pointer to the_tile_target.
2334 * linux-xtensa-low.cc (class xtensa_target): New class.
2335 (the_xtensa_target): New static object.
2336 (the_linux_target): Define as pointer to the_xtensa_target.
2337
d16f3f6c
TBA
23382020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2339
2340 Turn some static functions in linux-low.cc into private methods of
2341 linux_process_target.
2342
2343 * linux-low.cc (handle_extended_wait): Turn into ...
2344 (linux_process_target::handle_extended_wait): ...this. Call
2345 'mourn' on 'this' object instead of 'the_target'.
2346 (maybe_move_out_of_jump_pad): Turn into...
2347 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2348 (linux_low_filter_event): Turn into...
2349 (linux_process_target::filter_event): ...this.
2350 (linux_wait_for_event_filtered): Turn into...
2351 (linux_process_target::wait_for_event_filtered): ...this.
2352 (linux_wait_for_event): Turn into...
2353 (linux_process_target::wait_for_event): ...this.
2354 (linux_wait_1): Turn into...
2355 (linux_process_target::wait_1): ...this.
2356 (wait_for_sigstop): Turn into...
2357 (linux_process_target::wait_for_sigstop): ...this.
2358 (move_out_of_jump_pad_callback): Turn into...
2359 (linux_process_target::move_out_of_jump_pad): ...this.
2360 (stop_all_lwps): Turn into...
2361 (linux_process_target::stop_all_lwps): ...this.
2362 (start_step_over): Turn into...
2363 (linux_process_target::start_step_over): ...this.
2364 (complete_ongoing_step_over): Turn into...
2365 (linux_process_target::complete_ongoing_step_over): ...this.
2366 (proceed_all_lwps): Turn into...
2367 (linux_process_target::proceed_all_lwps): ...this.
2368 (unstop_all_lwps): Turn into...
2369 (linux_process_target::unstop_all_lwps): ...this.
2370
2371 * linux-low.h (class linux_process_target)
2372 <handle_extended_wait>
2373 <maybe_move_out_of_jump_pad>
2374 filter_event>
2375 <wait_for_event_filtered>
2376 <wait_for_event>
2377 <wait_1>
2378 <wait_for_sigstop>
2379 <move_out_of_jump_pad>
2380 <stop_all_lwps>
2381 <start_step_over>
2382 <complete_ongoing_step_over>
2383 <proceed_all_lwps>
2384 <unstop_all_lwps>: Declare.
2385
2386 Update the callers below.
2387
2388 * linux-low.cc (linux_process_target::attach): Update.
2389 (linux_process_target::stabilize_threads): Ditto.
2390 (linux_process_target::wait): Ditto.
2391
a5863204
TBA
23922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2393
2394 * linux-low.h (struct linux_target_ops): Update the comment for
2395 'cannot_store_register' to return 0 or 1.
2396 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2397 of 2.
2398
c884cc46
SM
23992020-03-20 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * config.in: Re-generate.
2402 * configure: Re-generate.
2403
5a82b8a1
KR
24042020-03-17 Kamil Rytarowski <n54@gmx.com>
2405
2406 * regcache.cc (find_register_by_number): Update.
2407 * tdesc.cc (init_target_desc): Likewise.
2408 * tdesc.h (target_desc::reg_defs): Likewise.
2409
4635ff97
TT
24102020-03-12 Tom Tromey <tom@tromey.com>
2411
2412 * configure: Rebuild.
2413 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2414 (WIN32APILIBS): New subst.
2415 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2416 gdbsupport files.
2417 (gdbsupport/%.o): Remove target.
2418 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2419 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2420 (WIN32APILIBS): New variable.
2421 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2422 (gdbreplay$(EXEEXT)): Likewise.
2423
9a665d62
TT
24242020-03-12 Tom Tromey <tom@tromey.com>
2425
2426 * config.in, configure: Rebuild.
2427 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2428 * acinclude.m4: Include gettext-sister.m4.
2429 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2430 variables.
2431 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2432 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2433
272cd5a3
SM
24342020-03-12 Simon Marchi <simon.marchi@efficios.com>
2435
2436 * acinclude.m4: Update path to selftest.m4.
2437
db6878ac
SM
24382020-03-12 Simon Marchi <simon.marchi@efficios.com>
2439
2440 * configure.ac: Don't source bfd/development.sh, move
2441 GDB_AC_COMMON higher.
2442 * configure: Re-generate.
2443
4d696a5c
SM
24442020-03-12 Simon Marchi <simon.marchi@efficios.com>
2445
2446 * configure: Re-generate.
2447
a0761e34
SM
24482020-03-11 Simon Marchi <simon.marchi@efficios.com>
2449
2450 * configure: Re-generate.
2451
20ea4a60
AB
24522020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2453
2454 * .dir-locals.el: New file.
2455
842806cb
TBA
24562020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2457
2458 * .gitattributes: New file.
2459
442131c1
AB
24602020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2461
2462 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2463 reply into an S reply.
2464 * server.cc (disable_packet_T): New global.
2465 (captured_main): Set new global when appropriate.
2466 * server.h (disable_packet_T): Declare.
2467
dda42c0b
TT
24682020-02-21 Tom Tromey <tom@tromey.com>
2469
2470 * Makefile.in (mostlyclean): New target.
2471
52405d85
TBA
24722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2473
2474 * target.h (struct process_stratum_target): Remove.
2475 (class process_target): Rename to ...
2476 (class process_stratum_target): ... this.
2477 * linux-low.h (class linux_process_target): Derive from
2478 'process_stratum_target'.
2479 * linux-low.cc (linux_target_ops): Remove.
2480 (initialize_low): Set the_target to the singleton instance of
2481 linux_process_target.
2482 * lynx-low.h (class lynx_process_target): Derive from
2483 'process_stratum_target'.
2484 * lynx-low.cc (lynx_target_ops): Remove.
2485 (initialize_low): Set the_target to the singleton instance of
2486 lynx_process_target.
2487 * nto-low.h (class nto_process_target): Derive from
2488 'process_stratum_target'.
2489 * nto-low.cc (nto_target_ops): Remove.
2490 (initialize_low): Set the_target to the singleton instance of
2491 nto_process_target.
2492 * win32-low.h (class win32_process_target): Derive from
2493 'process_stratum_target'.
2494 * win32-low.cc (win32_target_ops): Remove.
2495 (initialize_low): Set the_target to the singleton instance of
2496 win32_process_target.
2497
2498 Replace 'the_target->pt' with 'the_target' in the uses below.
2499
2500 * hostio.cc (hostio_error)
2501 (handle_setfs)
2502 (handle_open)
2503 (handle_unlink)
2504 (handle_readlink)
2505 * linux-aarch32-low.cc (arm_breakpoint_at)
2506 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2507 * linux-arm-low.cc (arm_sigreturn_next_pc)
2508 (arm_get_hwcap)
2509 (arm_get_syscall_trapinfo)
2510 * linux-cris-low.cc (cris_breakpoint_at)
2511 * linux-crisv32-low.cc (cris_breakpoint_at)
2512 * linux-low.cc (handle_extended_wait)
2513 (linux_wait_1)
2514 (linux_read_memory)
2515 (linux_process_target::breakpoint_kind_from_pc)
2516 (linux_get_auxv)
2517 * linux-m32r-low.cc (m32r_breakpoint_at)
2518 * linux-mips-low.cc (mips_breakpoint_at)
2519 * linux-nios2-low.cc (nios2_breakpoint_at)
2520 * linux-ppc-low.cc (ppc_breakpoint_at)
2521 * linux-s390-low.cc (s390_get_hwcap)
2522 * linux-sh-low.cc (sh_breakpoint_at)
2523 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2524 (sparc_store_gregset_from_stack)
2525 (sparc_breakpoint_at)
2526 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2527 * linux-tile-low.cc (tile_breakpoint_at)
2528 * linux-x86-low.cc (x86_breakpoint_at)
2529 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2530 * mem-break.cc (bp_size)
2531 (bp_opcode)
2532 (insert_memory_breakpoint)
2533 (set_raw_breakpoint_at)
2534 (delete_raw_breakpoint)
2535 (z_type_supported)
2536 (uninsert_raw_breakpoint)
2537 (reinsert_raw_breakpoint)
2538 (validate_inserted_breakpoint)
2539 * regcache.cc (regcache_read_pc)
2540 (regcache_write_pc)
2541 * remote-utils.cc (putpkt_binary_1)
2542 (input_interrupt)
2543 (getpkt)
2544 (prepare_resume_reply)
2545 * server.cc (handle_general_set)
2546 (handle_detach)
2547 (handle_qxfer_auxv)
2548 (handle_qxfer_exec_file)
2549 (handle_qxfer_libraries_svr4)
2550 (handle_qxfer_osdata)
2551 (handle_qxfer_siginfo)
2552 (handle_qxfer_fdpic)
2553 (handle_query)
2554 (resume)
2555 (handle_v_requests)
2556 (queue_stop_reply_callback)
2557 (captured_main)
2558 * target.cc (prepare_to_access_memory)
2559 (done_accessing_memory)
2560 (read_inferior_memory)
2561 (target_write_memory)
2562 (target_stop_and_wait)
2563 (target_wait)
2564 (target_mourn_inferior)
2565 (target_continue_no_signal)
2566 (target_continue)
2567 (target_supports_multi_process)
2568 (kill_inferior)
2569 * target.h
2570 (target_create_inferior)
2571 (target_post_create_inferior)
2572 (myattach)
2573 (target_supports_fork_events)
2574 (target_supports_vfork_events)
2575 (target_supports_exec_events)
2576 (target_handle_new_gdb_connection)
2577 (detach_inferior)
2578 (mythread_alive)
2579 (fetch_inferior_registers)
2580 (store_inferior_registers)
2581 (join_inferior)
2582 (target_supports_non_stop)
2583 (target_async)
2584 (target_process_qsupported)
2585 (target_supports_catch_syscall)
2586 (target_get_ipa_tdesc_idx)
2587 (target_supports_tracepoints)
2588 (target_supports_fast_tracepoints)
2589 (target_get_min_fast_tracepoint_insn_len)
2590 (target_thread_stopped)
2591 (target_pause_all)
2592 (target_unpause_all)
2593 (target_stabilize_threads)
2594 (target_install_fast_tracepoint_jump_pad)
2595 (target_emit_ops)
2596 (target_supports_disable_randomization)
2597 (target_supports_agent)
2598 (target_enable_btrace)
2599 (target_disable_btrace)
2600 (target_read_btrace)
2601 (target_read_btrace_conf)
2602 (target_supports_range_stepping)
2603 (target_supports_stopped_by_sw_breakpoint)
2604 (target_stopped_by_sw_breakpoint)
2605 (target_supports_stopped_by_hw_breakpoint)
2606 (target_supports_hardware_single_step)
2607 (target_stopped_by_hw_breakpoint)
2608 (target_breakpoint_kind_from_pc)
2609 (target_breakpoint_kind_from_current_state)
2610 (target_supports_software_single_step)
2611 (target_core_of_thread)
2612 (target_thread_name)
2613 (target_thread_handle)
2614 * win32-low.cc (do_initial_child_stuff)
2615
2616 Rename target op default definitions listed below.
2617
2618 * target.cc (process_target::post_create_inferior): Rename as ...
2619 (process_stratum_target::post_create_inferior): ... this.
2620 (process_target::prepare_to_access_memory): Rename as ...
2621 (process_stratum_target::prepare_to_access_memory): ... this.
2622 (process_target::done_accessing_memory): Rename as ...
2623 (process_stratum_target::done_accessing_memory): ... this.
2624 (process_target::look_up_symbols): Rename as ...
2625 (process_stratum_target::look_up_symbols): ... this.
2626 (process_target::supports_read_auxv): Rename as ...
2627 (process_stratum_target::supports_read_auxv): ... this.
2628 (process_target::read_auxv): Rename as ...
2629 (process_stratum_target::read_auxv): ... this.
2630 (process_target::supports_z_point_type): Rename as ...
2631 (process_stratum_target::supports_z_point_type): ... this.
2632 (process_target::insert_point): Rename as ...
2633 (process_stratum_target::insert_point): ... this.
2634 (process_target::remove_point): Rename as ...
2635 (process_stratum_target::remove_point): ... this.
2636 (process_target::stopped_by_sw_breakpoint): Rename as ...
2637 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2638 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2639 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2640 (process_target::stopped_by_hw_breakpoint): Rename as ...
2641 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2642 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2643 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2644 (process_target::supports_hardware_single_step): Rename as ...
2645 (process_stratum_target::supports_hardware_single_step): ... this.
2646 (process_target::stopped_by_watchpoint): Rename as ...
2647 (process_stratum_target::stopped_by_watchpoint): ... this.
2648 (process_target::stopped_data_address): Rename as ...
2649 (process_stratum_target::stopped_data_address): ... this.
2650 (process_target::supports_read_offsets): Rename as ...
2651 (process_stratum_target::supports_read_offsets): ... this.
2652 (process_target::read_offsets): Rename as ...
2653 (process_stratum_target::read_offsets): ... this.
2654 (process_target::supports_get_tls_address): Rename as ...
2655 (process_stratum_target::supports_get_tls_address): ... this.
2656 (process_target::get_tls_address): Rename as ...
2657 (process_stratum_target::get_tls_address): ... this.
2658 (process_target::hostio_last_error): Rename as ...
2659 (process_stratum_target::hostio_last_error): ... this.
2660 (process_target::supports_qxfer_osdata): Rename as ...
2661 (process_stratum_target::supports_qxfer_osdata): ... this.
2662 (process_target::qxfer_osdata): Rename as ...
2663 (process_stratum_target::qxfer_osdata): ... this.
2664 (process_target::supports_qxfer_siginfo): Rename as ...
2665 (process_stratum_target::supports_qxfer_siginfo): ... this.
2666 (process_target::qxfer_siginfo): Rename as ...
2667 (process_stratum_target::qxfer_siginfo): ... this.
2668 (process_target::supports_non_stop): Rename as ...
2669 (process_stratum_target::supports_non_stop): ... this.
2670 (process_target::async): Rename as ...
2671 (process_stratum_target::async): ... this.
2672 (process_target::start_non_stop): Rename as ...
2673 (process_stratum_target::start_non_stop): ... this.
2674 (process_target::supports_multi_process): Rename as ...
2675 (process_stratum_target::supports_multi_process): ... this.
2676 (process_target::supports_fork_events): Rename as ...
2677 (process_stratum_target::supports_fork_events): ... this.
2678 (process_target::supports_vfork_events): Rename as ...
2679 (process_stratum_target::supports_vfork_events): ... this.
2680 (process_target::supports_exec_events): Rename as ...
2681 (process_stratum_target::supports_exec_events): ... this.
2682 (process_target::handle_new_gdb_connection): Rename as ...
2683 (process_stratum_target::handle_new_gdb_connection): ... this.
2684 (process_target::handle_monitor_command): Rename as ...
2685 (process_stratum_target::handle_monitor_command): ... this.
2686 (process_target::core_of_thread): Rename as ...
2687 (process_stratum_target::core_of_thread): ... this.
2688 (process_target::supports_read_loadmap): Rename as ...
2689 (process_stratum_target::supports_read_loadmap): ... this.
2690 (process_target::read_loadmap): Rename as ...
2691 (process_stratum_target::read_loadmap): ... this.
2692 (process_target::process_qsupported): Rename as ...
2693 (process_stratum_target::process_qsupported): ... this.
2694 (process_target::supports_tracepoints): Rename as ...
2695 (process_stratum_target::supports_tracepoints): ... this.
2696 (process_target::read_pc): Rename as ...
2697 (process_stratum_target::read_pc): ... this.
2698 (process_target::write_pc): Rename as ...
2699 (process_stratum_target::write_pc): ... this.
2700 (process_target::supports_thread_stopped): Rename as ...
2701 (process_stratum_target::supports_thread_stopped): ... this.
2702 (process_target::thread_stopped): Rename as ...
2703 (process_stratum_target::thread_stopped): ... this.
2704 (process_target::supports_get_tib_address): Rename as ...
2705 (process_stratum_target::supports_get_tib_address): ... this.
2706 (process_target::get_tib_address): Rename as ...
2707 (process_stratum_target::get_tib_address): ... this.
2708 (process_target::pause_all): Rename as ...
2709 (process_stratum_target::pause_all): ... this.
2710 (process_target::unpause_all): Rename as ...
2711 (process_stratum_target::unpause_all): ... this.
2712 (process_target::stabilize_threads): Rename as ...
2713 (process_stratum_target::stabilize_threads): ... this.
2714 (process_target::supports_fast_tracepoints): Rename as ...
2715 (process_stratum_target::supports_fast_tracepoints): ... this.
2716 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2717 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2718 (process_target::emit_ops): Rename as ...
2719 (process_stratum_target::emit_ops): ... this.
2720 (process_target::supports_disable_randomization): Rename as ...
2721 (process_stratum_target::supports_disable_randomization): ... this.
2722 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2723 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2724 (process_target::qxfer_libraries_svr4): Rename as ...
2725 (process_stratum_target::qxfer_libraries_svr4): ... this.
2726 (process_target::supports_agent): Rename as ...
2727 (process_stratum_target::supports_agent): ... this.
2728 (process_target::enable_btrace): Rename as ...
2729 (process_stratum_target::enable_btrace): ... this.
2730 (process_target::disable_btrace): Rename as ...
2731 (process_stratum_target::disable_btrace): ... this.
2732 (process_target::read_btrace): Rename as ...
2733 (process_stratum_target::read_btrace): ... this.
2734 (process_target::read_btrace_conf): Rename as ...
2735 (process_stratum_target::read_btrace_conf): ... this.
2736 (process_target::supports_range_stepping): Rename as ...
2737 (process_stratum_target::supports_range_stepping): ... this.
2738 (process_target::supports_pid_to_exec_file): Rename as ...
2739 (process_stratum_target::supports_pid_to_exec_file): ... this.
2740 (process_target::pid_to_exec_file): Rename as ...
2741 (process_stratum_target::pid_to_exec_file): ... this.
2742 (process_target::supports_multifs): Rename as ...
2743 (process_stratum_target::supports_multifs): ... this.
2744 (process_target::multifs_open): Rename as ...
2745 (process_stratum_target::multifs_open): ... this.
2746 (process_target::multifs_unlink): Rename as ...
2747 (process_stratum_target::multifs_unlink): ... this.
2748 (process_target::multifs_readlink): Rename as ...
2749 (process_stratum_target::multifs_readlink): ... this.
2750 (process_target::breakpoint_kind_from_pc): Rename as ...
2751 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2752 (process_target::breakpoint_kind_from_current_state): Rename as ...
2753 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2754 (process_target::thread_name): Rename as ...
2755 (process_stratum_target::thread_name): ... this.
2756 (process_target::thread_handle): Rename as ...
2757 (process_stratum_target::thread_handle): ... this.
2758 (process_target::supports_software_single_step): Rename as ...
2759 (process_stratum_target::supports_software_single_step): ... this.
2760 (process_target::supports_catch_syscall): Rename as ...
2761 (process_stratum_target::supports_catch_syscall): ... this.
2762 (process_target::get_ipa_tdesc_idx): Rename as ...
2763 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2764
478f9adf
PA
27652020-02-20 Pedro Alves <palves@redhat.com>
2766
2767 * target.cc (set_target_ops): Simply copy the given target pointer
2768 instead of creating a copy of the pointed object.
2769
d633e831
TBA
27702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2771
2772 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2773 of process_target.
2774
2775 * target.h (struct process_stratum_target): Remove the target op.
2776 (class process_target): Add the target op.
2777 (target_get_ipa_tdesc_idx): Update the macro.
2778 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2779
2780 Update the derived classes and callers below.
2781
2782 * linux-low.cc (linux_target_ops): Update.
2783 (linux_get_ipa_tdesc_idx): Turn into ...
2784 (linux_process_target::get_ipa_tdesc_idx): ... this.
2785 * linux-low.h (class linux_process_target): Update.
2786 * lynx-low.cc (lynx_target_ops): Update.
2787 * nto-low.cc (nto_target_ops): Update.
2788 * win32-low.cc (win32_target_ops): Update.
2789
bc8d3ae4
TBA
27902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2791
2792 Turn process_stratum_target's supports_catch_syscall op into a
2793 method of process_target.
2794
2795 * target.h (struct process_stratum_target): Remove the target op.
2796 (class process_target): Add the target op.
2797 (target_supports_catch_syscall): Update the macro.
2798 * target.cc (process_target::supports_catch_syscall): Define.
2799
2800 Update the derived classes and callers below.
2801
2802 * linux-low.cc (linux_target_ops): Update.
2803 (linux_supports_catch_syscall): Turn into ...
2804 (linux_process_target::supports_catch_syscall): ... this.
2805 * linux-low.h (class linux_process_target): Update.
2806 * lynx-low.cc (lynx_target_ops): Update.
2807 * nto-low.cc (nto_target_ops): Update.
2808 * win32-low.cc (win32_target_ops): Update.
2809
5303a34f
TBA
28102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2811
2812 Turn process_stratum_target's supports_software_single_step op
2813 into a method of process_target.
2814
2815 * target.h (struct process_stratum_target): Remove the target op.
2816 (class process_target): Add the target op.
2817 (target_supports_software_single_step): Update the macro.
2818 * target.cc (process_target::supports_software_single_step): Define.
2819
2820 Update the derived classes and callers below.
2821
2822 * linux-low.cc (linux_target_ops): Update.
2823 (linux_supports_software_single_step): Turn into ...
2824 (linux_process_target::supports_software_single_step): ... this.
2825 * linux-low.h (class linux_process_target): Update.
2826 * lynx-low.cc (lynx_target_ops): Update.
2827 * nto-low.cc (nto_target_ops): Update.
2828 * win32-low.cc (win32_target_ops): Update.
2829
7f63b89b
TBA
28302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2831
2832 Turn process_stratum_target's thread_name and thread_handle ops
2833 into methods of process_target.
2834
2835 * target.h (struct process_stratum_target): Remove the target ops.
2836 (class process_target): Add the target ops.
2837 (target_thread_name): Update the macro.
2838 (target_thread_handle): Update the macro.
2839 * target.cc (process_target::thread_name): Define.
2840 (process_target::thread_handle): Define.
2841
2842 Update the derived classes and callers below.
2843
2844 * linux-low.cc (linux_target_ops): Update.
2845 (linux_process_target::thread_name): Define.
2846 (linux_process_target::thread_handle): Define.
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
d367006f
TBA
28522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2853
2854 Turn process_stratum_target's breakpoint_kind_from_pc,
2855 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2856 ops into methods of process_target.
2857
2858 * target.h (struct process_stratum_target): Remove the target op.
2859 (class process_target): Add the target op.
2860 (target_breakpoint_kind_from_pc): Update the macro.
2861 (target_breakpoint_kind_from_current_state): Update the macro.
2862 (default_breakpoint_kind_from_pc): Remove declaration.
2863 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2864 (process_target::breakpoint_kind_from_pc): ... this.
2865 (process_target::breakpoint_kind_from_current_state): Define.
2866
2867 Update the derived classes and callers below.
2868
2869 * mem-break.cc (bp_size): Update.
2870 (bp_opcode): Update.
2871 * linux-low.cc (linux_target_ops): Update.
2872 (linux_wait_1): Update.
2873 (linux_breakpoint_kind_from_pc): Turn into ...
2874 (linux_process_target::breakpoint_kind_from_pc): ... this.
2875 (linux_sw_breakpoint_from_kind): Turn into ...
2876 (linux_process_target::sw_breakpoint_from_kind): ... this.
2877 (linux_breakpoint_kind_from_current_state): Turn into ...
2878 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2879 * linux-low.h (class linux_process_target): Update.
2880 * lynx-low.cc (lynx_target_ops): Update.
2881 (lynx_process_target::sw_breakpoint_from_kind): Define.
2882 * lynx-low.h (class lynx_process_target): Update.
2883 * nto-low.cc (nto_target_ops): Update.
2884 (nto_sw_breakpoint_from_kind): Turn into ...
2885 (nto_process_target::sw_breakpoint_from_kind): ... this.
2886 * nto-low.h (class nto_process_target): Update.
2887 * win32-low.cc (win32_target_ops): Update.
2888 (win32_sw_breakpoint_from_kind): Turn into ...
2889 (win32_process_target::sw_breakpoint_from_kind): ... this.
2890 * win32-low.h (class win32_process_target): Update.
2891
c9b7b804
TBA
28922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2893
2894 Turn process_stratum_target's multifs_open, multifs_readlink,
2895 multifs_unlink ops into methods of process_target.
2896
2897 * target.h (struct process_stratum_target): Remove the target ops.
2898 (class process_target): Add the target ops. Also add
2899 'supports_multifs'.
2900 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2901 "sys/stat.h".
2902 (process_target::supports_multifs): Define.
2903 (process_target::multifs_open): Define.
2904 (process_target::multifs_readlink): Define.
2905 (process_target::multifs_unlink): Define.
2906
2907 Update the derived classes and callers below.
2908
2909 * hostio.cc (handle_setfs): Update.
2910 (handle_open): Update.
2911 (handle_unlink): Update.
2912 (handle_readlink): Update.
2913 * linux-low.cc (linux_target_ops): Update.
2914 (linux_process_target::supports_multifs): Define.
2915 (linux_process_target::multifs_open): Define.
2916 (linux_process_target::multifs_readlink): Define.
2917 (linux_process_target::multifs_unlink): Define.
2918 * linux-low.h (class linux_process_target): Update.
2919 * lynx-low.cc (lynx_target_ops): Update.
2920 * nto-low.cc (nto_target_ops): Update.
2921 * win32-low.cc (win32_target_ops): Update.
2922
8247b823
TBA
29232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2924
2925 Turn process_stratum_target's pid_to_exec_file op into a method
2926 of process_target.
2927
2928 * target.h (struct process_stratum_target): Remove the target op.
2929 (class process_target): Add the target op. Also add
2930 'supports_pid_to_exec_file'.
2931 * target.cc (process_target::pid_to_exec_file): Define.
2932 (process_target::supports_pid_to_exec_file): Define.
2933
2934 Update the derived classes and callers below.
2935
2936 * server.cc (handle_qxfer_exec_file): Update.
2937 (handle_query): Update.
2938 * linux-low.cc (linux_target_ops): Update.
2939 (linux_process_target::supports_pid_to_exec_file): Define.
2940 (linux_process_target::pid_to_exec_file): Define.
2941 * linux-low.h (class linux_process_target): Update.
2942 * lynx-low.cc (lynx_target_ops): Update.
2943 * nto-low.cc (nto_target_ops): Update.
2944 * win32-low.cc (win32_target_ops): Update.
2945
2526e0cd
TBA
29462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2947
2948 Turn process_stratum_target's supports_range_stepping op into a
2949 method of process_target.
2950
2951 * target.h (struct process_stratum_target): Remove the target op.
2952 (class process_target): Add the target op.
2953 (target_supports_range_stepping): Update the macro.
2954 * target.cc (process_target::supports_range_stepping): Define.
2955
2956 Update the derived classes and callers below.
2957
2958 * linux-low.cc (linux_target_ops): Update.
2959 (linux_supports_range_stepping): Turn into ...
2960 (linux_process_target::supports_range_stepping): ... this.
2961 * linux-low.h (class linux_process_target): Update.
2962 * lynx-low.cc (lynx_target_ops): Update.
2963 * nto-low.cc (nto_target_ops): Update.
2964 * win32-low.cc (win32_target_ops): Update.
2965
79597bdd
TBA
29662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2967
2968 Turn process_stratum_target's btrace-related ops (enable_btrace,
2969 disable_btrace, read_btrace, read_btrace_conf) into methods of
2970 process_target.
2971
2972 * target.h (struct process_stratum_target): Remove the target ops.
2973 (class process_target): Add the target ops.
2974 (target_enable_btrace): Update.
2975 (target_disable_btrace): Update.
2976 (target_read_btrace): Update.
2977 (target_read_btrace_conf): Update.
2978 * target.cc (process_target::enable_btrace): Define.
2979 (process_target::disable_btrace): Define.
2980 (process_target::read_btrace): Define.
2981 (process_target::read_btrace_conf): Define.
2982
2983 Update the derived classes and callers below.
2984
2985 * linux-low.cc (linux_target_ops): Update.
2986 (linux_process_target:enable_btrace): Define as a wrapper around
2987 linux_enable_btrace.
2988 (linux_low_disable_btrace): Turn into ...
2989 (linux_process_target::disable_btrace): ... this.
2990 (linux_low_read_btrace): Turn into ...
2991 (linux_process_target::read_btrace): ... this.
2992 (linux_low_btrace_conf): Turn into ...
2993 (linux_process_target::read_btrace_conf): ... this.
2994 * linux-low.h (class linux_process_target): Update.
2995 * lynx-low.cc (lynx_target_ops): Update.
2996 * nto-low.cc (nto_target_ops): Update.
2997 * win32-low.cc (win32_target_ops): Update.
2998
c0245cb9
TBA
29992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3000
3001 Turn process_stratum_target's supports_agent op into a method of
3002 process_target.
3003
3004 * target.h (struct process_stratum_target): Remove the target op.
3005 (class process_target): Add the target op.
3006 (target_supports_agent): Update the macro.
3007 * target.cc (process_target::supports_agent): Define.
3008
3009 Update the derived classes and callers below.
3010
3011 * linux-low.cc (linux_target_ops): Update.
3012 (linux_supports_agent): Turn into ...
3013 (linux_process_target::supports_agent): ... this.
3014 * linux-low.h (class linux_process_target): Update.
3015 * lynx-low.cc (lynx_target_ops): Update.
3016 * nto-low.cc (nto_target_ops): Update.
3017 * win32-low.cc (win32_target_ops): Update.
3018
974387bb
TBA
30192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3020
3021 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3022 method of process_target.
3023
3024 * target.h (struct process_stratum_target): Remove the target op.
3025 (class process_target): Add the target op. Also add
3026 'supports_qxfer_libraries_svr4'.
3027 * target.cc (process_target::qxfer_libraries_svr4): Define.
3028 (process_target::supports_qxfer_libraries_svr4): Define.
3029
3030 Update the derived classes and callers below.
3031
3032 * server.cc (handle_qxfer_libraries_svr4): Update.
3033 (handle_query): Update.
3034 * linux-low.cc (linux_target_ops): Update.
3035 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3036 (linux_qxfer_libraries_svr4): Turn into ...
3037 (linux_process_target::qxfer_libraries_svr4): ... this.
3038 * linux-low.h (class linux_process_target): Update.
3039 * lynx-low.cc (lynx_target_ops): Update.
3040 * nto-low.cc (nto_target_ops): Update.
3041 * win32-low.cc (win32_target_ops): Update.
3042
c756403b
TBA
30432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3044
3045 Turn process_stratum_target's supports_disable_randomization op
3046 into a method of process_target.
3047
3048 * target.h (struct process_stratum_target): Remove the target op.
3049 (class process_target): Add the target op.
3050 (target_supports_disable_randomization): Update the macro.
3051 * target.cc (process_target::supports_disable_randomization): Define.
3052
3053 Update the derived classes and callers below.
3054
3055 * linux-low.cc (linux_target_ops): Update.
3056 (linux_supports_disable_randomization): Turn into ...
3057 (linux_process_target::supports_disable_randomization): ... this.
3058 * linux-low.h (class linux_process_target): Update.
3059 * lynx-low.cc (lynx_target_ops): Update.
3060 * nto-low.cc (nto_target_ops): Update.
3061 * win32-low.cc (win32_target_ops): Update.
3062
345dafad
TBA
30632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3064
3065 Turn process_stratum_target's emit_ops op into a method of
3066 process_target.
3067
3068 * target.h (struct process_stratum_target): Remove the target op.
3069 (class process_target): Add the target op.
3070 (target_emit_ops): Update the macro.
3071 * target.cc (process_target::emit_ops): Define.
3072
3073 Update the derived classes and callers below.
3074
3075 * linux-low.cc (linux_target_ops): Update.
3076 (linux_emit_ops): Turn into ...
3077 (linux_process_target::emit_ops): ... this.
3078 * linux-low.h (class linux_process_target): Update.
3079 * lynx-low.cc (lynx_target_ops): Update.
3080 * nto-low.cc (nto_target_ops): Update.
3081 * win32-low.cc (win32_target_ops): Update.
3082
c23c9391
TBA
30832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3084
3085 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3086 and get_min_fast_tracepoint_insn_len ops into methods of
3087 process_target.
3088
3089 * target.h (struct process_stratum_target): Remove the target ops.
3090 (class process_target): Add the target ops. Also add
3091 'supports_fast_tracepoints'.
3092 (target_supports_fast_tracepoints): Update the macro.
3093 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3094 (install_fast_tracepoint_jump_pad): Update and rename the macro
3095 to ...
3096 (target_install_fast_tracepoint_jump_pad): ... this.
3097 * target.cc (process_target::supports_fast_tracepoints): Define.
3098 (process_target::install_fast_tracepoint_jump_pad): Define.
3099 (process_target::get_min_fast_tracepoint_insn_len): Define.
3100
3101 Update the derived classes and callers below.
3102
3103 * tracepoint.cc (install_fast_tracepoint): Update.
3104 * linux-low.cc (linux_target_ops): Update.
3105 (linux_process_target::supports_fast_tracepoints): Define.
3106 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3107 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3108 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3109 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3110 * linux-low.h (class linux_process_target): Update.
3111 * lynx-low.cc (lynx_target_ops): Update.
3112 * nto-low.cc (nto_target_ops): Update.
3113 * win32-low.cc (win32_target_ops): Update.
3114
5c9eb2f2
TBA
31152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3116
3117 Turn process_stratum_target's stabilize_threads op into a
3118 method of process_target.
3119
3120 * target.h (struct process_stratum_target): Remove the target op.
3121 (class process_target): Add the target op.
3122 (target_stabilize_threads): Update the macro.
3123 * target.cc (process_target::stabilize_threads): Define.
3124
3125 Update the derived classes and callers below.
3126
3127 * server.cc (handle_status): Update.
3128 * tracepoint.cc (cmd_qtdp): Update.
3129 (cmd_qtstart): Update.
3130 * linux-low.cc (linux_target_ops): Update.
3131 (linux_stabilize_threads): Turn into ...
3132 (linux_process_target::stabilize_threads): ... this.
3133 (linux_wait_1): Update.
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
29e8dc09
TBA
31392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3140
3141 Turn process_stratum_target's pause_all and unpause_all ops
3142 into methods of process_target.
3143
3144 * target.h (struct process_stratum_target): Remove the target ops.
3145 (class process_target): Add the target ops.
3146 (pause_all): Update the macro and rename to...
3147 (target_pause_all): ... this.
3148 (unpause_all): Update the macro and rename to...
3149 (target_unpause_all): ... this.
3150 * target.cc (process_target::pause_all): Define.
3151 (process_target::unpause_all): Define.
3152
3153 Update the derived classes and callers below.
3154
3155 * server.cc (handle_status): Update.
3156 * tracepoint.cc (clear_installed_tracepoints): Update.
3157 (cmd_qtdp): Update.
3158 (cmd_qtstart): Update.
3159 (stop_tracing): Update.
3160 (cmd_qtstatus): Update.
3161 (upload_fast_traceframes): Update.
3162 (run_inferior_command): Update.
3163 * linux-low.cc (linux_target_ops): Update.
3164 (linux_pause_all): Turn into ...
3165 (linux_process_target::pause_all): ... this.
3166 (linux_unpause_all): Turn into ...
3167 (linux_process_target::unpause_all): ... this.
3168 (linux_process_target::prepare_to_access_memory): Update.
3169 (linux_process_target::done_accessing_memory): Update.
3170 * linux-low.h (class linux_process_target): Update.
3171 * lynx-low.cc (lynx_target_ops): Update.
3172 * nto-low.cc (nto_target_ops): Update.
3173 * win32-low.cc (win32_target_ops): Update.
3174
4e2e869c
TBA
31752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3176
3177 Turn process_stratum_target's get_tib_address op into a method of
3178 process_target.
3179
3180 * target.h (struct process_stratum_target): Remove the target op.
3181 (class process_target): Add the target op. Also add
3182 'supports_get_tib_address'.
3183 * target.cc (process_target::get_tib_address): Define.
3184 (process_target::supports_get_tib_address): Define.
3185
3186 Update the derived classes and callers below.
3187
3188 * server.cc (handle_query): Update.
3189 * linux-low.cc (win32_target_ops): Update.
3190 * lynx-low.cc (lynx_target_ops): Update.
3191 * nto-low.cc (nto_target_ops): Update.
3192 * win32-low.cc (win32_target_ops): Update.
3193 (win32_process_target::supports_get_tib_address): Define.
3194 (win32_get_tib_address): Turn into ...
3195 (win32_process_target::get_tib_address): ... this.
3196 * win32-low.h (class win32_process_target): Update.
3197
68119632
TBA
31982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3199
3200 Turn process_stratum_target's thread_stopped op into a method of
3201 process_target.
3202
3203 * target.h (struct process_stratum_target): Remove the target op.
3204 (class process_target): Add the target op. Also add
3205 'supports_thread_stopped'.
3206 (target_thread_stopped): Update the macro.
3207 * target.cc (process_target::thread_stopped): Define.
3208 (process_target::supports_thread_stopped): Define.
3209 (prepare_to_access_memory): Update.
3210
3211 Update the derived classes and callers below.
3212
3213 * server.cc (queue_stop_reply_callback): Update.
3214 * linux-low.cc (linux_target_ops): Update.
3215 (linux_process_target::supports_thread_stopped): Define.
3216 (linux_thread_stopped): Turn into ...
3217 (linux_process_target::thread_stopped): ... this.
3218 * linux-low.h (class linux_process_target): Update.
3219 * lynx-low.cc (lynx_target_ops): Update.
3220 * nto-low.cc (nto_target_ops): Update.
3221 * win32-low.cc (win32_target_ops): Update.
3222
770d8f6a
TBA
32232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3224
3225 Turn process_stratum_target's read_pc and write_pc ops into
3226 methods of process_target.
3227
3228 * target.h (struct process_stratum_target): Remove the target ops.
3229 (class process_target): Add the target ops.
3230 * target.cc (process_target::read_pc): Define.
3231 (process_target::write_pc): Define.
3232
3233 Update the derived classes and callers below.
3234
3235 * regcache.cc (regcache_read_pc): Update.
3236 (regcache_write_pc): Update.
3237 * linux-low.cc (linux_target_ops): Update.
3238 (linux_read_pc): Turn into ...
3239 (linux_process_target::read_pc): ... this.
3240 (linux_write_pc): Turn into ...
3241 (linux_process_target::write_pc): ... this.
3242 * linux-low.h (class linux_process_target): Update.
3243 * lynx-low.cc (lynx_target_ops): Update.
3244 * nto-low.cc (nto_target_ops): Update.
3245 * win32-low.cc (win32_target_ops): Update.
3246
290732bf
TBA
32472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3248
3249 Turn process_stratum_target's supports_tracepoints op into a
3250 method of process_target.
3251
3252 * target.h (struct process_stratum_target): Remove the target op.
3253 (class process_target): Add the target op.
3254 (target_supports_tracepoints): Update the macro.
3255 * target.cc (process_target::supports_tracepoints): Define.
3256
3257 Update the derived classes and callers below.
3258
3259 * linux-low.cc (linux_target_ops): Update.
3260 (linux_supports_tracepoints): Turn into ...
3261 (linux_process_target::supports_tracepoints): ... this.
3262 * linux-low.h (class linux_process_target): Update.
3263 * lynx-low.cc (lynx_target_ops): Update.
3264 * nto-low.cc (nto_target_ops): Update.
3265 * win32-low.cc (win32_target_ops): Update.
3266
0df28b1b
TBA
32672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3268
3269 Turn process_stratum_target's process_qsupported op into a method
3270 of process_target.
3271
3272 * target.h (struct process_stratum_target): Remove the target op.
3273 (class process_target): Add the target op.
3274 (target_process_qsupported): Update the macro.
3275 * target.cc (process_target::process_qsupported): Define.
3276
3277 Update the derived classes and callers below.
3278
3279 * linux-low.cc (linux_target_ops): Update.
3280 (linux_process_qsupported): Turn into ...
3281 (linux_process_target::process_qsupported): ... this.
3282 * linux-low.h (class linux_process_target): Update.
3283 * lynx-low.cc (lynx_target_ops): Update.
3284 * nto-low.cc (nto_target_ops): Update.
3285 * win32-low.cc (win32_target_ops): Update.
3286
9da41fda
TBA
32872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3288
3289 Turn process_stratum_target's read_loadmap op into a method of
3290 process_target.
3291
3292 * target.h (struct process_stratum_target): Remove the target op.
3293 (class process_target): Add the target op. Also add
3294 'supports_read_loadmap'.
3295 * target.cc (process_target::read_loadmap): Define.
3296 (process_target::supports_read_loadmap): Define.
3297
3298 Update the derived classes and callers below.
3299
3300 * server.cc (handle_qxfer_fdpic): Update.
3301 (handle_query): Update.
3302 * linux-low.cc (linux_target_ops): Update.
3303 (linux_process_target::supports_read_loadmap): Define.
3304 (linux_read_loadmap): Turn into ...
3305 (linux_process_target::read_loadmap): ... this.
3306 * linux-low.h (class linux_process_target): Update.
3307 * lynx-low.cc (lynx_target_ops): Update.
3308 * nto-low.cc (nto_target_ops): Update.
3309 * win32-low.cc (win32_target_ops): Update.
3310
95a45fc1
TBA
33112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3312
3313 Turn process_stratum_target's core_of_thread op into a method of
3314 process_target.
3315
3316 * target.h (struct process_stratum_target): Remove the target op.
3317 (class process_target): Add the target op.
3318 (target_core_of_thread): Update the macro.
3319 * target.cc (process_target::core_of_thread): Define.
3320
3321 Update the derived classes and callers below.
3322
3323 * linux-low.cc (linux_target_ops): Update.
3324 (linux_process_target::core_of_thread): Define.
3325 * linux-low.h (class linux_process_target): Update.
3326 * lynx-low.cc (lynx_target_ops): Update.
3327 * nto-low.cc (nto_target_ops): Update.
3328 * win32-low.cc (win32_target_ops): Update.
3329
55cf3021
TBA
33302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3331
3332 Turn process_stratum_target's handle_monitor_command op into a
3333 method of process_target.
3334
3335 * target.h (struct process_stratum_target): Remove the target op.
3336 (class process_target): Add the target op.
3337 (target_handle_monitor_command): Update the macro.
3338 * target.cc (process_target::handle_monitor_command): Define.
3339
3340 Update the derived classes and callers below.
3341
3342 * server.cc (handle_query): Update.
3343 * linux-low.cc (linux_target_ops): Update.
3344 (linux_process_target::handle_monitor_command): Define.
3345 * linux-low.h (class linux_process_target): Update.
3346 * lynx-low.cc (lynx_target_ops): Update.
3347 * nto-low.cc (nto_target_ops): Update.
3348 * win32-low.cc (win32_target_ops): Update.
3349
fb00dfce
TBA
33502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3351
3352 Turn process_stratum_target's handle_new_gdb_connection op into a
3353 method of process_target.
3354
3355 * target.h (struct process_stratum_target): Remove the target op.
3356 (class process_target): Add the target op.
3357 (target_handle_new_gdb_connection): Update the macro.
3358 * target.cc (process_target::handle_new_gdb_connection): Define.
3359
3360 Update the derived classes and callers below.
3361
3362 * linux-low.cc (linux_target_ops): Update.
3363 (linux_handle_new_gdb_connection): Turn into ...
3364 (linux_process_target::handle_new_gdb_connection): ... this.
3365 * linux-low.h (class linux_process_target): Update.
3366 * lynx-low.cc (lynx_target_ops): Update.
3367 * nto-low.cc (nto_target_ops): Update.
3368 * win32-low.cc (win32_target_ops): Update.
3369
9690a72a
TBA
33702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3371
3372 Turn process_stratum_target's supports_fork_events,
3373 supports_vfork_events, and supports_exec_events ops into methods
3374 of process_target.
3375
3376 * target.h (struct process_stratum_target): Remove the target ops.
3377 (class process_target): Add the target ops.
3378 (target_supports_fork_events): Update the macro.
3379 (target_supports_vfork_events): Update the macro.
3380 (target_supports_exec_events): Update the macro.
3381 * target.cc (process_target::supports_fork_events): Define.
3382 (process_target::supports_vfork_events): Define.
3383 (process_target::supports_exec_events): Define.
3384
3385 Update the derived classes and callers below.
3386
3387 * linux-low.cc (linux_target_ops): Update.
3388 (linux_supports_fork_events): Turn into ...
3389 (linux_process_target::supports_fork_events): ... this.
3390 (linux_supports_vfork_events): Turn into ...
3391 (linux_process_target::supports_vfork_events): ... this.
3392 (linux_supports_exec_events): Turn into ...
3393 (linux_process_target::supports_exec_events): ... this.
3394 * linux-low.h (class linux_process_target): Update.
3395 * lynx-low.cc (lynx_target_ops): Update.
3396 * nto-low.cc (nto_target_ops): Update.
3397 * win32-low.cc (win32_target_ops): Update.
3398
652aef77
TBA
33992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3400
3401 Turn process_stratum_target's supports_multi_process op into a
3402 method of process_target.
3403
3404 * target.h (struct process_stratum_target): Remove the target op.
3405 (class process_target): Add the target op.
3406 * target.cc (process_target::supports_multi_process): Define.
3407 (target_supports_multi_process): Update.
3408
3409 Update the derived classes and callers below.
3410
3411 * linux-low.cc (linux_target_ops): Update.
3412 (linux_supports_multi_process): Turn into ...
3413 (linux_process_target::supports_multi_process): ... this.
3414 * linux-low.h (class linux_process_target): Update.
3415 * lynx-low.cc (lynx_target_ops): Update.
3416 * nto-low.cc (nto_target_ops): Update.
3417 * win32-low.cc (win32_target_ops): Update.
3418
0dc587d4
TBA
34192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3420
3421 Turn process_stratum_target's supports_non_stop, async, and
3422 start_non_stop ops into methods of process_target.
3423
3424 * target.h (struct process_stratum_target): Remove the target ops.
3425 (class process_target): Add the target ops.
3426 (target_supports_non_stop): Update the macro.
3427 (target_async): Update the macro.
3428 (start_non_stop): Remove declaration.
3429 * target.cc (process_target::supports_non_stop): Define.
3430 (process_target::async): Define.
3431 (process_target::start_non_stop): Define.
3432 (start_non_stop): Remove.
3433
3434 Update the derived classes and callers below.
3435
3436 * server.cc (handle_qxfer_siginfo): Update.
3437 (handle_query): Update.
3438 * linux-low.cc (linux_target_ops): Update.
3439 (linux_supports_non_stop): Turn into ...
3440 (linux_process_target::supports_non_stop): ... this.
3441 (linux_async): Turn into ...
3442 (linux_process_target::async): ... this.
3443 (linux_start_non_stop): Turn into ...
3444 (linux_process_target::start_non_stop): ... this.
3445 * linux-low.h (class linux_process_target): Update.
3446 * lynx-low.cc (lynx_target_ops): Update.
3447 * nto-low.cc (nto_target_ops): Update.
3448 (nto_supports_non_stop): Remove; rely on the default behavior
3449 instead.
3450 * win32-low.cc (win32_target_ops): Update.
3451
d7abedf7
TBA
34522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3453
3454 Turn process_stratum_target's qxfer_siginfo op into a method of
3455 process_target.
3456
3457 * target.h (struct process_stratum_target): Remove the target op.
3458 (class process_target): Add the target op. Also add
3459 'supports_qxfer_siginfo'.
3460 * target.cc (process_target::qxfer_siginfo): Define.
3461 (process_target::supports_qxfer_siginfo): Define.
3462
3463 Update the derived classes and callers below.
3464
3465 * server.cc (handle_qxfer_siginfo): Update.
3466 (handle_query): Update.
3467 * linux-low.cc (linux_target_ops): Update.
3468 (linux_process_target::supports_qxfer_siginfo): Define.
3469 (linux_xfer_siginfo): Turn into ...
3470 (linux_process_target::qxfer_siginfo): ... this.
3471 * linux-low.h (class linux_process_target): Update.
3472 * lynx-low.cc (lynx_target_ops): Update.
3473 * nto-low.cc (nto_target_ops): Update.
3474 * win32-low.cc (win32_target_ops): Update.
3475
2d0795ee
TBA
34762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3477
3478 Turn process_stratum_target's qxfer_osdata op into a method of
3479 process_target.
3480
3481 * target.h (struct process_stratum_target): Remove the target op.
3482 (class process_target): Add the target op. Also add
3483 'supports_qxfer_osdata'.
3484 * target.cc (process_target::qxfer_osdata): Define.
3485 (process_target::supports_qxfer_osdata): Define.
3486
3487 Update the derived classes and callers below.
3488
3489 * server.cc (handle_qxfer_osdata): Update.
3490 (handle_query): Update.
3491 * linux-low.cc (linux_target_ops): Update.
3492 (linux_process_target::supports_qxfer_osdata): Define.
3493 (linux_qxfer_osdata): Turn into ...
3494 (linux_process_target::qxfer_osdata): ... this.
3495 * linux-low.h (class linux_process_target): Update.
3496 * lynx-low.cc (lynx_target_ops): Update.
3497 * nto-low.cc (nto_target_ops): Update.
3498 * win32-low.cc (win32_target_ops): Update.
3499
ea06bbaa
TBA
35002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3501
3502 Turn process_stratum_target's hostio_last_error op into a
3503 method of process_target.
3504
3505 * target.h (struct process_stratum_target): Remove the target op.
3506 (class process_target): Add the target op.
3507 * target.cc: Add "hostio.h" to includes.
3508 (process_target::hostio_last_error): Define.
3509
3510 Update the derived classes and callers below.
3511
3512 * hostio.cc (hostio_error): Update.
3513 * linux-low.cc: Remove "hostio.h" from includes.
3514 (linux_target_ops): Update.
3515 * lynx-low.cc (lynx_target_ops): Update.
3516 * nto-low.cc (nto_target_ops): Update.
3517 * win32-low.h (class win32_process_target): Update.
3518 * win32-low.cc (win32_target_ops): Update.
3519 (wince_hostio_last_error): Turn into ...
3520 (win32_process_target::hostio_last_error): ... this.
3521
6e3fd7e9
TBA
35222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3523
3524 Turn process_stratum_target's get_tls_address op into a method of
3525 process_target.
3526
3527 * target.h (struct process_stratum_target): Remove the target op.
3528 (class process_target): Add the target op. Also add
3529 'supports_get_tls_address'.
3530 * target.cc (process_target::get_tls_address): Define.
3531 (process_target::supports_get_tls_address): Define.
3532
3533 Update the derived classes and callers below.
3534
3535 * server.cc (handle_query): Update.
3536 * linux-low.cc (linux_target_ops): Update.
3537 (linux_process_target::supports_get_tls_address): Define.
3538 (linux_process_target::get_tls_address): Define.
3539 * linux-low.h (class linux_process_target): Update.
3540 * lynx-low.cc (lynx_target_ops): Update.
3541 * nto-low.cc (nto_target_ops): Update.
3542 * win32-low.cc (win32_target_ops): Update.
3543
5203ae1e
TBA
35442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3545
3546 Turn process_stratum_target's read_offsets op into a method of
3547 process_target.
3548
3549 * target.h (struct process_stratum_target): Remove the target op.
3550 (class process_target): Add the target op. Also add
3551 'supports_read_offsets'.
3552 * target.cc (process_target::read_offsets): Define.
3553 (process_target::supports_read_offsets): Define.
3554
3555 Update the derived classes and callers below.
3556
3557 * server.cc (handle_query): Update.
3558 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3559 (linux_target_ops): Update.
3560 (linux_process_target::supports_read_offsets): Define.
3561 (linux_read_offsets): Turn into ...
3562 (linux_process_target::read_offsets): ... this.
3563 * linux-low.h (class linux_process_target): Update.
3564 * lynx-low.cc (lynx_target_ops): Update.
3565 * nto-low.cc (nto_target_ops): Update.
3566 * win32-low.cc (win32_target_ops): Update.
3567
6eeb5c55
TBA
35682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3569
3570 Turn process_stratum_target's stopped_by_watchpoint and
3571 stopped_data_address ops into methods of process_target.
3572
3573 * target.h (struct process_stratum_target): Remove the target ops.
3574 (class process_target): Add the target ops.
3575 * target.cc (process_target::stopped_by_watchpoint): Define.
3576 (process_target::stopped_data_address): Define.
3577
3578 Update the derived classes and callers below.
3579
3580 * remote-utils.cc (prepare_resume_reply): Update.
3581 * linux-low.cc (linux_target_ops): Update.
3582 (linux_stopped_by_watchpoint): Turn into ...
3583 (linux_process_target::stopped_by_watchpoint): ... this.
3584 (linux_stopped_data_address): Turn into ...
3585 (linux_process_target::stopped_data_address): ... this.
3586 * linux-low.h (class linux_process_target): Update.
3587 * lynx-low.cc (lynx_target_ops): Update.
3588 * nto-low.cc (nto_target_ops): Update.
3589 (nto_stopped_by_watchpoint): Turn into ...
3590 (nto_process_target::stopped_by_watchpoint): ... this.
3591 (nto_stopped_data_address): Turn into ...
3592 (nto_process_target::stopped_data_address): ... this.
3593 * nto-low.h (class nto_process_target): Update.
3594 * win32-low.cc (win32_target_ops): Update.
3595 (win32_stopped_by_watchpoint): Turn into ...
3596 (win32_process_target::stopped_by_watchpoint): ... this.
3597 (win32_stopped_data_address): Turn into ...
3598 (win32_process_target::stopped_data_address): ... this.
3599 * win32-low.h (class win32_process_target): Update.
3600
22aa6223
TBA
36012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3602
3603 Turn process_stratum_target's supports_hardware_single_step op into
3604 a method of process_target.
3605
3606 * target.h (struct process_stratum_target): Remove the target op.
3607 (class process_target): Add the target op.
3608 (target_supports_hardware_single_step): Update the macro.
3609 (target_can_do_hardware_single_step): Remove declaration.
3610 * target.cc (process_target::supports_hardware_single_step): Define.
3611 (target_can_do_hardware_single_step): Remove.
3612
3613 Update the derived classes and callers below.
3614
3615 * linux-low.h (class linux_process_target): Update.
3616 * linux-low.cc (linux_target_ops): Update.
3617 (linux_supports_hardware_single_step): Turn into ...
3618 (linux_process_target::supports_hardware_single_step): ... this.
3619 * lynx-low.h (class lynx_process_target): Update.
3620 * lynx-low.cc (lynx_target_ops): Update.
3621 (lynx_process_target::supports_hardware_single_step): Define.
3622 * nto-low.h (class nto_process_target): Update.
3623 * nto-low.cc (nto_target_ops): Update.
3624 (nto_process_target::supports_hardware_single_step): Define.
3625 * win32-low.h (class win32_process_target): Update.
3626 * win32-low.cc (win32_target_ops): Update.
3627 (win32_process_target::supports_hardware_single_step): Define.
3628
93fe88b2
TBA
36292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3630
3631 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3632 ops into methods of process_target.
3633
3634 * target.h (struct process_stratum_target): Remove the target ops.
3635 (class process_target): Add the target ops.
3636 (target_stopped_by_hw_breakpoint): Update the macro.
3637 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3638 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3639 (process_target::supports_stopped_by_hw_breakpoint): Define.
3640
3641 Update the derived classes and callers below.
3642
3643 * linux-low.cc (linux_target_ops): Update.
3644 (linux_stopped_by_hw_breakpoint): Turn into ...
3645 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3646 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3647 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3648 * linux-low.h (class linux_process_target): Update.
3649 * lynx-low.cc (lynx_target_ops): Update.
3650 * nto-low.cc (nto_target_ops): Update.
3651 * win32-low.cc (win32_target_ops): Update.
3652
84320c4e
TBA
36532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3654
3655 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3656 ops into methods of process_target.
3657
3658 * target.h (struct process_stratum_target): Remove the target ops.
3659 (class process_target): Add the target ops.
3660 (target_stopped_by_sw_breakpoint): Update the macro.
3661 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3662 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3663 (process_target::supports_stopped_by_sw_breakpoint): Define.
3664
3665 Update the derived classes and callers below.
3666
3667 * linux-low.cc (linux_target_ops): Update.
3668 (linux_stopped_by_sw_breakpoint): Turn into ...
3669 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3670 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3671 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3672 * linux-low.h (class linux_process_target): Update.
3673 * lynx-low.cc (lynx_target_ops): Update.
3674 * nto-low.cc (nto_target_ops): Update.
3675 * win32-low.cc (win32_target_ops): Update.
3676
7e0bde70
TBA
36772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3678
3679 Turn process_stratum_target's insert_point and remove_point ops
3680 into methods of process_target.
3681
3682 * target.h (struct process_stratum_target): Remove the target ops.
3683 (class process_target): Add the target ops.
3684 * target.cc (process_target::insert_point): Define.
3685 (process_target::remove_point): Define.
3686
3687 Update the derived classes and callers below.
3688
3689 * mem-break.cc (set_raw_breakpoint_at): Update.
3690 (delete_raw_breakpoint): Update.
3691 (uninsert_raw_breakpoint): Update.
3692 (reinsert_raw_breakpoint): Update.
3693 * linux-low.cc (linux_target_ops): Update.
3694 (linux_insert_point): Turn into ...
3695 (linux_process_target::insert_point): ... this.
3696 (linux_remove_point): Turn into ...
3697 (linux_process_target::remove_point): ... this.
3698 * linux-low.h (class linux_process_target): Update.
3699 * lynx-low.cc (lynx_target_ops): Update.
3700 * nto-low.cc (nto_target_ops): Update.
3701 (nto_insert_point): Turn into ...
3702 (nto_process_target::insert_point): ... this.
3703 (nto_remove_point): Turn into ...
3704 (nto_process_target::remove_point): ... this.
3705 * nto-low.h (class nto_process_target): Update.
3706 * win32-low.cc (win32_target_ops): Update.
3707 (win32_insert_point): Turn into ...
3708 (win32_process_target::insert_point): ... this.
3709 (win32_remove_point): Turn into ...
3710 (win32_process_target::remove_point): ... this.
3711 * win32-low.h (class win32_process_target): Update.
3712
a2b2297a
TBA
37132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3714
3715 Turn process_stratum_target's supports_z_point_type op into a
3716 method of process_target.
3717
3718 * target.h (struct process_stratum_target): Remove the target op.
3719 (class process_target): Add the target op.
3720 * target.cc (process_target::supports_z_point_type): Define.
3721
3722 Update the derived classes and callers below.
3723
3724 * mem-break.cc (z_type_supported): Update.
3725 * linux-low.cc (linux_target_ops): Update.
3726 (linux_supports_z_point_type): Turn into ...
3727 (linux_process_target::supports_z_point_type): ... this.
3728 * linux-low.h (class linux_process_target): Update.
3729 * lynx-low.cc (lynx_target_ops): Update.
3730 * nto-low.cc (nto_target_ops): Update.
3731 (nto_supports_z_point_type): Turn into ...
3732 (nto_process_target::supports_z_point_type): ... this.
3733 * nto-low.h (class nto_process_target): Update.
3734 * win32-low.cc (win32_target_ops): Update.
3735 (win32_supports_z_point_type): Turn into ...
3736 (win32_process_target::supports_z_point_type): ... this.
3737 * win32-low.h (class win32_process_target): Update.
3738
eac215cc
TBA
37392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3740
3741 Turn process_stratum_target's read_auxv op into a method of
3742 process_target.
3743
3744 * target.h (class process_stratum_target): Remove the target op.
3745 (struct process_target): Add the target op. Also add
3746 'supports_read_auxv'.
3747 * target.cc (process_target::read_auxv): Define.
3748 (process_target::supports_read_auxv): Define.
3749
3750 Update the derived classes and callers below.
3751
3752 * server.cc (handle_qxfer_auxv): Update.
3753 (handle_query): Update.
3754 * linux-low.cc (linux_target_ops): Update.
3755 (linux_process_target::supports_read_auxv): Define.
3756 (linux_read_auxv): Turn into ...
3757 (linux_process_target::read_auxv): ... this.
3758 * linux-low.h (class linux_process_target): Update.
3759 * lynx-low.cc (lynx_target_ops): Update.
3760 * nto-low.cc (nto_target_ops): Update.
3761 (nto_process_target::supports_read_auxv): Define.
3762 (nto_read_auxv): Turn into ...
3763 (nto_process_target::read_auxv): ... this.
3764 * nto-low.h (class nto_process_target): Update.
3765 * win32-low.cc (win32_target_ops): Update.
3766
eb497a2a
TBA
37672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3768
3769 Turn process_stratum_target's request_interrupt op into a method of
3770 process_target.
3771
3772 * target.h (struct process_stratum_target): Remove the target op.
3773 (class process_target): Add the target op.
3774
3775 Update the derived classes and callers below.
3776
3777 * remote-utils.cc (putpkt_binary_1): Update.
3778 (input_interrupt): Update.
3779 (getpkt): Update.
3780 * server.cc (handle_v_requests): Update.
3781 * linux-low.cc (linux_target_ops): Update.
3782 (linux_request_interrupt): Turn into ...
3783 (linux_process_target::request_interrupt): ... this.
3784 * linux-low.h (class linux_process_target): Update.
3785 * lynx-low.cc (lynx_target_ops): Update.
3786 (lynx_request_interrupt): Turn into ...
3787 (lynx_process_target::request_interrupt): ... this.
3788 * lynx-low.h (class lynx_process_target): Update.
3789 * nto-low.cc (nto_target_ops): Update.
3790 (nto_request_interrupt): Turn into ...
3791 (nto_process_target::request_interrupt): ... this.
3792 * nto-low.h (class nto_process_target): Update.
3793 * win32-low.cc (win32_target_ops): Update.
3794 (win32_request_interrupt): Turn into ...
3795 (win32_process_target::request_interrupt): ... this.
3796 * win32-low.h (class win32_process_target): Update.
3797
2a31c7aa
TBA
37982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3799
3800 Turn process_stratum_target's look_up_symbols op into a method of
3801 process_target.
3802
3803 * target.h (struct process_stratum_target): Remove the target op.
3804 (class process_target): Add the target op.
3805 * target.cc (process_target::look_up_symbols): Define.
3806
3807 Update the derived classes and callers below.
3808
3809 * server.cc (handle_query): Update.
3810 * linux-low.cc (linux_target_ops): Update.
3811 (linux_look_up_symbols): Turn into ...
3812 (linux_process_target::look_up_symbols): ... this.
3813 * linux-low.h (class linux_process_target): Update.
3814 * lynx-low.cc (lynx_target_ops): Update.
3815 * nto-low.cc (nto_target_ops): Update.
3816 * win32-low.cc (win32_target_ops): Update.
3817
e2558df3
TBA
38182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3819
3820 Turn process_stratum_target's read_memory and write_memory
3821 ops into methods of process_target.
3822
3823 * target.h (struct process_stratum_target): Remove the target ops.
3824 (class process_target): Add the target ops.
3825
3826 Update the derived classes and callers below.
3827
3828 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3829 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3830 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3831 (arm_get_syscall_trapinfo): Update.
3832 * linux-cris-low.cc (cris_breakpoint_at): Update.
3833 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3834 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3835 * linux-mips-low.cc (mips_breakpoint_at): Update.
3836 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3837 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3838 * linux-sh-low.cc (sh_breakpoint_at): Update.
3839 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3840 (sparc_store_gregset_from_stack): Update.
3841 (sparc_breakpoint_at): Update.
3842 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3843 * linux-tile-low.cc (tile_breakpoint_at): Update.
3844 * linux-x86-low.cc (x86_breakpoint_at): Update.
3845 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3846 * mem-brea.cc (insert_memory_breakpoint): Update.
3847 (validate_inserted_breakpoint): Update.
3848 * target.cc (read_inferior_memory): Update.
3849 (target_write_memory): Update.
3850 * linux-low.cc (linux_target_ops): Update.
3851 (linux_read_memory): Make a wrapper around the read_memory target
3852 op call.
3853 (linux_process_target::read_memory): Rename from linux_read_memory.
3854 (linux_write_memory): Turn into ...
3855 (linux_process_target::write_memory): ... this.
3856 * linux-low.h (class linux_process_target): Update.
3857 * lynx-low.cc (lynx_target_ops): Update.
3858 (lynx_read_memory): Turn into ...
3859 (lynx_process_target::read_memory): ... this.
3860 (lynx_write_memory): Turn into ...
3861 (lynx_process_target::write_memory): ... this.
3862 * lynx-low.h (class lynx_process_target): Update.
3863 * nto-low.cc (nto_target_ops): Update.
3864 (nto_read_memory): Turn into ...
3865 (nto_process_target::read_memory): ... this.
3866 (nto_write_memory): Turn into ...
3867 (nto_process_target::write_memory): ... this.
3868 * nto-low.h (class nto_process_target): Update.
3869 * win32-low.cc (win32_target_ops): Update.
3870 (win32_read_inferior_memory): Turn into ...
3871 (win32_process_target::read_memory): ... this.
3872 (win32_write_inferior_memory): Turn into ...
3873 (win32_process_target::write_memory): ... this.
3874 * win32-low.h (class win32_process_target): Update.
3875
79b44087
TBA
38762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3877
3878 Turn process_stratum_target's prepare_to_access_memory and
3879 done_accessing_memory ops into methods of process_target.
3880
3881 * target.h (struct process_stratum_target): Remove the target ops.
3882 (class process_target): Add the target ops.
3883 * target.cc (process_target::prepare_to_access_memory): Define.
3884 (process_target::done_accessing_memory): Define.
3885 (prepare_to_access_memory): Update.
3886 (done_accessing_memory): Update.
3887
3888 Update the derived classes and callers below.
3889
3890 * linux-low.cc (linux_target_ops): Update.
3891 (linux_prepare_to_access_memory): Turn into ...
3892 (linux_process_target::prepare_to_access_memory): ... this.
3893 (linux_done_accessing_memory): Turn into ...
3894 (linux_process_target::done_accessing_memory): ... this.
3895 * linux-low.h (class linux_process_target): Update.
3896 * lynx-low.cc (lynx_target_ops): Update.
3897 * nto-low.cc (nto_target_ops): Update.
3898 * win32-low.cc (win32_target_ops): Update.
3899
a5a4d4cd
TBA
39002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3901
3902 Turn process_stratum_target's fetch_registers and store_registers
3903 ops into methods of process_target.
3904
3905 * target.h (struct process_stratum_target): Remove the target ops.
3906 (class process_target): Add the target ops.
3907 (fetch_inferior_registers): Update the macro.
3908 (store_inferior_registers): Update the macro.
3909
3910 Update the derived classes and callers below.
3911
3912 * linux-low.cc (linux_target_ops): Update.
3913 (linux_fetch_registers): Turn into ...
3914 (linux_process_target::fetch_registers): ... this.
3915 (linux_store_registers): Turn into ...
3916 (linux_process_target::store_registers): ... this.
3917 * linux-low.h (class linux_process_target): Update.
3918 * lynx-low.cc (lynx_target_ops): Update.
3919 (lynx_fetch_registers): Turn into ...
3920 (lynx_process_target::fetch_registers): ... this.
3921 (lynx_store_registers): Turn into ...
3922 (lynx_process_target::store_registers): ... this.
3923 * lynx-low.h (class lynx_process_target): Update.
3924 * nto-low.cc (nto_target_ops): Update.
3925 (nto_fetch_registers): Turn into ...
3926 (nto_process_target::fetch_registers): ... this.
3927 (nto_store_registers): Turn into ...
3928 (nto_process_target::store_registers): ... this.
3929 * nto-low.h (class nto_process_target): Update.
3930 * win32-low.cc (win32_target_ops): Update.
3931 (win32_fetch_inferior_registers): Turn into ...
3932 (win32_process_target::fetch_registers): ... this.
3933 (win32_store_inferior_registers): Turn into ...
3934 (win32_process_target::store_registers): ... this.
3935 * win32-low.h (class win32_process_target): Update.
3936
6532e7e3
TBA
39372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3938
3939 Turn process_stratum_target's wait op into a method of
3940 process_target.
3941
3942 * target.h (struct process_stratum_target): Remove the target op.
3943 (class process_target): Add the target op.
3944
3945 Update the derived classes and callers below.
3946
3947 * target.cc (target_wait): Update.
3948 * linux-low.cc (linux_target_ops): Update.
3949 (linux_wait): Turn into ...
3950 (linux_process_target::wait): ... this.
3951 * linux-low.h (class linux_process_target): Update.
3952 * lynx-low.cc (lynx_target_ops): Update.
3953 (lynx_wait): Turn into ...
3954 (lynx_process_target::wait): ... this.
3955 * lynx-low.h (class lynx_process_target): Update.
3956 * nto-low.cc (nto_target_ops): Update.
3957 (nto_wait): Turn into ...
3958 (nto_process_target::wait): ... this.
3959 * nto-low.h (class nto_process_target): Update.
3960 * win32-low.cc (win32_target_ops): Update.
3961 (win32_wait): Turn into ...
3962 (win32_process_target::wait): ... this.
3963 (do_initial_child_stuff): Update.
3964 * win32-low.h (class win32_process_target): Update.
3965
0e4d7e35
TBA
39662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3967
3968 Turn process_stratum_target's resume op into a method of
3969 process_target.
3970
3971 * target.h (struct process_stratum_target): Remove the target op.
3972 (class process_target): Add the target op.
3973
3974 Update the derived classes and callers below.
3975
3976 * server.cc (resume): Update.
3977 * target.cc (target_stop_and_wait): Update.
3978 (target_continue_no_signal): Update.
3979 (target_continue): Update.
3980 * linux-low.cc (linux_target_ops): Update.
3981 (linux_resume): Turn into ...
3982 (linux_process_target::resume): ... this.
3983 * linux-low.h (class linux_process_target): Update.
3984 * lynx-low.cc (lynx_target_ops): Update.
3985 (lynx_resume): Turn into ...
3986 (lynx_process_target::resume): ... this.
3987 * lynx-low.h (class lynx_process_target): Update.
3988 * nto-low.cc (nto_target_ops): Update.
3989 (nto_resume): Turn into ...
3990 (nto_process_target::resume): ... this.
3991 * nto-low.h (class nto_process_target): Update.
3992 * win32-low.cc (win32_target_ops): Update.
3993 (win32_resume): Turn into ...
3994 (win32_process_target::resume): ... this.
3995 (win32_process_target::detach): Update.
3996 (do_initial_child_stuff): Update.
3997 * win32-low.h (class win32_process_target): Update.
3998
13d3d99b
TBA
39992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4000
4001 Turn process_stratum_target's thread_alive op into a method of
4002 process_target.
4003
4004 * target.h (struct process_stratum_target): Remove the target op.
4005 (class process_target): Add the target op.
4006 (mythread_alive): Update the macro.
4007
4008 Update the derived classes and callers below.
4009
4010 * linux-low.cc (linux_target_ops): Update.
4011 (linux_thread_alive): Turn into ...
4012 (linux_process_target::thread_alive): ... this.
4013 (wait_for_sigstop): Update.
4014 * linux-low.h (class linux_process_target): Update.
4015 * lynx-low.cc (lynx_target_ops): Update.
4016 (lynx_thread_alive): Turn into ...
4017 (lynx_process_target::thread_alive): ... this.
4018 * lynx-low.h (class lynx_process_target): Update.
4019 * nto-low.cc (nto_target_ops): Update.
4020 (nto_thread_alive): Turn into ...
4021 (nto_process_target::thread_alive): ... this.
4022 * nto-low.h (class nto_process_target): Update.
4023 * win32-low.cc (win32_target_ops): Update.
4024 (win32_thread_alive): Turn into ...
4025 (win32_process_target::thread_alive): ... this.
4026 * win32-low.h (class win32_process_target): Update.
4027
95a49a39
TBA
40282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4029
4030 Turn process_stratum_target's join op into a method of
4031 process_target.
4032
4033 * target.h (struct process_stratum_target): Remove the target op.
4034 (class process_target): Add the target op.
4035 (join_inferior): Update the macro.
4036
4037 Update the derived classes and callers below.
4038
4039 * linux-low.cc (linux_target_ops): Update.
4040 (linux_join): Turn into ...
4041 (linux_process_target::join): ... this.
4042 * linux-low.h (class linux_process_target): Update.
4043 * lynx-low.cc (lynx_target_ops): Update.
4044 (lynx_join): Turn into ...
4045 (lynx_process_target::join): ... this.
4046 * lynx-low.h (class lynx_process_target): Update.
4047 * nto-low.cc (nto_target_ops): Update.
4048 (nto_process_target::join): Define.
4049 * nto-low.h (class nto_process_target): Update.
4050 * win32-low.cc (win32_target_ops): Update.
4051 (win32_join): Turn into ...
4052 (win32_process_target::join): ... this.
4053 * win32-low.h (class win32_process_target): Update.
4054
8adb37b9
TBA
40552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4056
4057 Turn process_stratum_target's mourn op into a method of
4058 process_target.
4059
4060 * target.h (struct process_stratum_target): Remove the target op.
4061 (class process_target): Add the target op.
4062
4063 Update the derived classes and callers below.
4064
4065 * target.cc (target_mourn_inferior): Update.
4066 * linux-low.cc (linux_target_ops): Update.
4067 (linux_mourn): Turn into ...
4068 (linux_process_target::mourn): ... this.
4069 (handle_extended_wait): Update.
4070 (linux_process_target::kill): Update.
4071 (linux_process_target::detach): Update.
4072 * linux-low.h (class linux_process_target): Update.
4073 * lynx-low.cc (lynx_target_ops): Update.
4074 (lynx_mourn): Turn into ...
4075 (lynx_process_target::mourn): ... this.
4076 * lynx-low.h (class lynx_process_target): Update.
4077 * nto-low.cc (nto_target_ops): Update.
4078 (nto_mourn): Turn into ...
4079 (nto_process_target::mourn): ... this.
4080 * nto-low.h (class nto_process_target): Update.
4081 * win32-low.cc (win32_target_ops): Update.
4082 (win32_mourn): Turn into ...
4083 (win32_process_target::mourn): ... this.
4084 * win32-low.h (class win32_process_target): Update.
4085
9061c9cf
TBA
40862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4087
4088 Turn process_stratum_target's detach op into a method of
4089 process_target.
4090
4091 * target.h (struct process_stratum_target): Remove the target op.
4092 (class process_target): Add the target op.
4093 (detach_inferior): Update the macro.
4094
4095 Update the derived classes and callers below.
4096
4097 * linux-low.cc (linux_target_ops): Update.
4098 (linux_detach): Turn into ...
4099 (linux_process_target::detach): ... this.
4100 * linux-low.h (class linux_process_target): Update.
4101 * lynx-low.cc (lynx_target_ops): Update.
4102 (lynx_detach): Turn into ...
4103 (lynx_process_target::detach): ... this.
4104 * lynx-low.h (class lynx_process_target): Update.
4105 * nto-low.cc (nto_target_ops): Update.
4106 (nto_detach): Turn into ...
4107 (nto_process_target::detach): ... this.
4108 * nto-low.h (class nto_process_target): Update.
4109 * win32-low.cc (win32_target_ops): Update.
4110 (win32_detach): Turn into ...
4111 (win32_process_target::detach): ... this.
4112 * win32-low.h (class win32_process_target): Update.
4113
c6885a57
TBA
41142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4115
4116 Turn process_stratum_target's kill op into a method of
4117 process_target.
4118
4119 * target.h (struct process_stratum_target): Remove the target op.
4120 (class process_target): Add the target op.
4121
4122 Update the derived classes and callers below.
4123
4124 * target.cc (kill_inferior): Update.
4125 * linux-low.cc (linux_target_ops): Update.
4126 (linux_kill): Turn into ...
4127 (linux_process_target::kill): ... this.
4128 * linux-low.h (class linux_process_target): Update.
4129 * lynx-low.cc (lynx_target_ops): Update.
4130 (lynx_kill): Turn into ...
4131 (lynx_process_target::kill): ... this.
4132 * lynx-low.h (class lynx_process_target): Update.
4133 * nto-low.cc (nto_target_ops): Update.
4134 (nto_kill): Turn into ...
4135 (nto_process_target::kill): ... this.
4136 * nto-low.h (class nto_process_target): Update.
4137 * win32-low.cc (win32_target_ops): Update.
4138 (win32_kill): Turn into ...
4139 (win32_process_target::kill): ... this.
4140 * win32-low.h (class win32_process_target): Update.
4141
ef03dad8
TBA
41422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4143
4144 Turn process_stratum_target's attach op into a method of
4145 process_target.
4146
4147 * target.h (struct process_stratum_target): Remove the target op.
4148 (class process_target): Add the target op.
4149 (myattach): Update the macro.
4150
4151 Update the derived classes and callers below.
4152
4153 * linux-low.cc (linux_target_ops): Update.
4154 (linux_attach): Turn into ...
4155 (linux_process_target::attach): ... this.
4156 * linux-low.h (class linux_process_target): Update.
4157 * lynx-low.cc (lynx_target_ops): Update.
4158 (lynx_attach): Turn into ...
4159 (lynx_process_target::attach): ... this.
4160 * lynx-low.h (class lynx_process_target): Update.
4161 * nto-low.cc (nto_target_ops): Update.
4162 (nto_attach): Turn into ...
4163 (nto_process_target::attach): ... this.
4164 * nto-low.h (class nto_process_target): Update.
4165 * win32-low.cc (win32_target_ops): Update.
4166 (win32_attach): Turn into ...
4167 (win32_process_target::attach): ... this.
4168 * win32-low.h (class win32_process_target): Update.
4169
6dee9afb
TBA
41702020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4171
4172 Turn process_stratum_target's post_create_inferior op into a method
4173 of process_target.
4174
4175 * target.h (struct process_stratum_target): Remove the target op.
4176 (class process_target): Add the target op.
4177 (target_post_create_inferior): Update the macro.
4178 * target.cc (process_target::post_create_inferior): Define.
4179
4180 Update the derived classes and callers below.
4181
4182 * linux-low.cc (linux_target_ops): Update.
4183 (linux_post_create_inferior): Turn into ...
4184 (linux_process_target::post_create_inferior): ... this.
4185 * linux-low.h (class linux_process_target): Update.
4186 * lynx-low.cc (lynx_target_ops): Update.
4187 * nto-low.cc (nto_target_ops): Update.
4188 * win32-low.cc (win32_target_ops): Update.
4189
15295543
TBA
41902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4191
4192 Turn process_stratum_target's create_inferior op into a method of
4193 process_target.
4194
4195 * target.h (struct process_stratum_target): Remove the target op.
4196 (class process_target): Add the target op.
4197 (create_inferior): Rename the macro to ...
4198 (target_create_inferior): ... this.
4199
4200 Update the derived classes and callers below.
4201
4202 * server.cc (handle_v_run): Update.
4203 (captured_main): Update.
4204 (process_serial_event): Update.
4205 * linux-low.cc (linux_target_ops): Update.
4206 (linux_create_inferior): Turn into ...
4207 (linux_process_target::create_inferior): ... this.
4208 * linux-low.h (class linux_process_target): Update.
4209 * lynx-low.cc (lynx_target_ops): Update.
4210 (lynx_create_inferior): Turn into ...
4211 (lynx_process_target::create_inferior): ... this.
4212 * lynx-low.h (class lynx_process_target): Update.
4213 * nto-low.cc (nto_target_ops): Update.
4214 (nto_create_inferior): Turn into ...
4215 (nto_process_target::create_inferior): ... this.
4216 * nto-low.h (class nto_process_target): Update.
4217 * win32-low.cc (win32_target_ops): Update.
4218 (win32_create_inferior): Turn into ...
4219 (win32_process_target::create_inferior): ... this.
4220 * win32-low.h (class win32_process_target): Update.
4221
5ef9273d
TBA
42222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4223
4224 * target.h (class process_target): New class definition.
4225 (struct process_stratum_target) <pt>: New field with type
4226 'process_target*'.
4227 * linux-low.h (class linux_process_target): Define as a derived
4228 class of 'process_target'.
4229 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4230 as the 'pt' field.
4231 * lynx-low.h (class lynx_process_target): Define as a derived
4232 class of 'process_target'.
4233 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4234 as the 'pt' field.
4235 * nto-low.h (class nto_process_target): Define as a derived
4236 class of 'process_target'.
4237 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4238 as the 'pt' field.
4239 * win32-low.h (class win32_process_target): Define as a derived
4240 class of 'process_target'.
4241 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4242 as the 'pt' field.
4243
9f1528a1
AB
42442020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4245
4246 * configure: Regenerate.
4247
bf84f706
MR
42482020-02-19 Maciej W. Rozycki <macro@wdc.com>
4249 Andrew Burgess <andrew.burgess@embecosm.com>
4250
4251 * linux-riscv-low.cc: New file.
4252 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4253 and nat/riscv-linux-tdesc.c.
4254 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4255 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4256 Define.
4257
1a627e7e
TT
42582020-02-14 Tom Tromey <tom@tromey.com>
4259
4260 * acinclude.m4: Don't include acx_configure_dir.m4.
4261 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4262 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4263 (all, install-only, uninstall, clean-info, clean)
4264 (maintainer-clean): Don't recurse.
4265 (subdir_do, all-lib): Remove.
4266 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4267 (GNULIB_H): Remove.
4268 (generated_files): Update.
4269 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4270 * configure: Rebuild.
4271 * configure.ac: Don't configure gnulib or libiberty.
4272 (GNULIB): Update.
4273
a9b34532
EZ
42742020-02-14 Eli Zaretskii <eliz@gnu.org>
4275
4276 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4277 preparing the command line for CreateProcess.
4278 (win32_create_inferior): Reflect the program name in debugging
4279 output that shows the process and its command line.
4280
feacfcac
SM
42812020-02-13 Simon Marchi <simon.marchi@efficios.com>
4282
4283 * Makefile.in: Rename source files from .c to .cc.
4284 * %.c: Rename to %.cc.
4285 * configure.ac: Rename server.c to server.cc.
4286 * configure: Re-generate.
4287
06b3c5bd
SM
42882020-02-13 Simon Marchi <simon.marchi@efficios.com>
4289
4290 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4291
052793ad
HD
42922020-02-12 Hannes Domani <ssbssa@yahoo.de>
4293
4294 * win32-low.c (win32_create_inferior): Set signal_pid.
4295
f20e3e82
MR
42962020-02-12 Maciej W. Rozycki <macro@wdc.com>
4297 Pedro Alves <palves@redhat.com>
4298
4299 Skip building gdbserver in a cross-configuration.
4300 * configure.srv: Set $gdbserver_host depending on whether $target
4301 is $host. Use $gdbserver_host instead of $host.
4302
8ddd8e0e
SM
43032020-02-11 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * configure: Re-generate.
4306
898e7f60
SM
43072020-02-11 Simon Marchi <simon.marchi@efficios.com>
4308
4309 * configure: Re-generate.
4310
58df732b
SM
43112020-02-11 Simon Marchi <simon.marchi@efficios.com>
4312
4313 * acinclude.m4: Update warning.m4 path.
4314
7928d571
HD
43152020-02-09 Hannes Domani <ssbssa@yahoo.de>
4316
4317 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4318 (handle_exception): Set siginfo_er.
4319 (win32_xfer_siginfo): New function.
4320
919adfe8
TT
43212020-02-07 Tom Tromey <tom@tromey.com>
4322 Pedro Alves <palves@redhat.com>
4323
4324 * README: Update build documentation.
4325 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4326 host, not target.
4327 * configure.ac: Update paths.
4328 * configure: Rebuild.
4329 * acinclude.m4: Update paths.
4330 * Makefile.in: Update include paths.
4331 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4332 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4333 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4334 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4335 (%-generated.c): Update paths.
4336 * Move entire directory from ../gdb/gdbserver.
4337
287c844a
MR
43382020-01-29 Maciej W. Rozycki <macro@wdc.com>
4339
4340 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4341
548a204f
PFC
43422020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4343
4344 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4345 assignment instead of srv_linux_obj.
4346
a2236a08
HD
43472020-01-28 Hannes Domani <ssbssa@yahoo.de>
4348
4349 * server.c (handle_qxfer_libraries): Write segment-address with
4350 paddress.
4351
bdaed379
HD
43522020-01-24 Hannes Domani <ssbssa@yahoo.de>
4353
4354 * Makefile.in (install-strip): New target.
4355 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4356 * aclocal.m4: Regenerate.
4357 * configure: Regenerate.
4358 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4359
42cd72aa
MR
43602020-01-24 Maciej W. Rozycki <macro@wdc.com>
4361
4362 * Makefile.in (SFILES): Adjust paths to point to real files.
4363 (OBS): Move waitstatus.o to target/waitstatus.o.
4364 (TAGS): Transform paths appropriately.
4365 (%.o): Rename to...
4366 (nat/%.o): ... this pattern rule.
4367 (%.o): Rename to...
4368 (target/%.o): ... this pattern rule.
4369 * configure.srv: Adjust paths throughout to include nat/ prefix
4370 with the revant files.
4371 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4372 * configure: Regenerate.
4373
42ba50ec
MR
43742020-01-24 Maciej W. Rozycki <macro@wdc.com>
4375
4376 * Makefile.in (TAGS): Remove config files from the recipe.
4377
05ea2a05
TT
43782020-01-14 Tom Tromey <tom@tromey.com>
4379
4380 * configure: Rebuild.
4381 * configure.ac: Remove any checks that were added to common.m4.
4382 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4383 lib-link.m4.
4384
01027315
TT
43852020-01-14 Tom Tromey <tom@tromey.com>
4386
4387 * server.h: Include config.h.
4388 * gdbreplay.c: Include config.h.
4389 * configure: Rebuild.
4390 * configure.ac: Don't source common.host.
4391 * acinclude.m4: Update path.
4392 * Makefile.in (INCSUPPORT): New variable.
4393 (INCLUDE_CFLAGS): Add INCSUPPORT.
4394 (SFILES): Update paths.
4395 (version-generated.c): Update path to create-version.sh.
4396 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4397
b2ceabe8
TT
43982020-01-14 Tom Tromey <tom@tromey.com>
4399
4400 * configure.ac (LIBS): Use WIN32APILIBS.
4401 (USE_WIN32API): Don't define.
4402 * configure: Rebuild.
4403
25c51f71
TT
44042020-01-14 Tom Tromey <tom@tromey.com>
4405
4406 * configure: Rebuild.
4407
c0bd321d
SM
44082020-01-13 Simon Marchi <simon.marchi@efficios.com>
4409
4410 * Makefile.in (%-generated.c): Remove rule for files from
4411 regformats/i386.
4412
bb564c58
SM
44132020-01-13 Simon Marchi <simon.marchi@efficios.com>
4414
4415 * configure: Re-generate.
4416
6e37c371
SM
44172020-01-13 Simon Marchi <simon.marchi@efficios.com>
4418
4419 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4420 Define to static.
4421 * tracepoint.c (stop_tracing, flush_trace_buffer,
4422 about_to_request_buffer_space, get_trace_state_variable_value,
4423 set_trace_state_variable_value, gdb_collect): Add declaration.
4424
df4a0200
SM
44252020-01-13 Simon Marchi <simon.marchi@efficios.com>
4426
4427 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4428 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4429 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4430 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4431 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4432 static.
4433
89e94ec9
SM
44342020-01-13 Simon Marchi <simon.marchi@efficios.com>
4435
4436 * inferiors.c: Include gdbsupport/common-inferior.h.
4437
2552728a
SM
44382020-01-13 Simon Marchi <simon.marchi@efficios.com>
4439
4440 * hostio-errno.c: Include hostio.h.
4441
4025fa09
SM
44422020-01-13 Simon Marchi <simon.marchi@efficios.com>
4443
4444 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4445 prerequisite.
4446
c0b0a142
SM
44472020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4448
4449 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4450 * linux-arm-tdesc.h: Include arch/arm.h.
4451
bb1183e2
SM
44522020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4453
4454 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4455
f5df0b5f
SM
44562020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4457
4458 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4459 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4460
5b6d1e4f
PA
44612020-01-10 Pedro Alves <palves@redhat.com>
4462
4463 * fork-child.c (post_fork_inferior): Pass target down to
4464 startup_inferior.
4465 * inferiors.c (switch_to_thread): Add process_stratum_target
4466 parameter.
4467 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4468 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4469 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4470 * remote-utils.c (prepare_resume_reply): Pass the target to
4471 switch_to_thread.
4472 * target.c (the_target): Now a process_stratum_target.
4473 (done_accessing_memory): Pass the target to switch_to_thread.
4474 (set_target_ops): Ajust to use process_stratum_target.
4475 * target.h (struct target_ops): Rename to ...
4476 (struct process_stratum_target): ... this.
4477 (the_target, set_target_ops): Adjust.
4478 (prepare_to_access_memory): Adjust comment.
4479 * win32-low.c (child_xfer_memory): Adjust to use
4480 process_stratum_target.
4481 (win32_target_ops): Now a process_stratum_target.
4482
559e7e50
EZ
44832020-01-06 Eli Zaretskii <eliz@gnu.org>
4484 Pedro Alves <palves@redhat.com>
4485
4486 * win32-low.c (get_child_debug_event): Extract the fatal exception
4487 from the exit status and convert to the equivalent Posix signal
4488 number.
4489 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4490 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4491
48189bec
HD
44922020-01-01 Hannes Domani <ssbssa@yahoo.de>
4493
4494 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4495
5dd8bf88
JB
44962020-01-01 Joel Brobecker <brobecker@adacore.com>
4497
4498 * server.c (gdbserver_version): Change copyright year to 2020.
4499 * gdbreplay.c (gdbreplay_version): Likewise.
4500
0ad6b8ee
CB
45012019-12-19 Christian Biesinger <cbiesinger@google.com>
4502
4503 * configure: Regenerate.
4504 * configure.ac: Quote variable arguments of test.
4505
1ee7b812
BE
45062019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4507
4508 * Makefile.in: Fix build with GNU Make 3.81
4509
d9fa87f4
TT
45102019-12-16 Tom Tromey <tromey@adacore.com>
4511
4512 * server.c (get_exec_file): Constify result.
4513
ab7d13f0
CB
45142019-12-10 Christian Biesinger <cbiesinger@google.com>
4515
4516 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4517 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4518 * config.in: Regenerate.
4519 * configure: Regenerate.
4520 * configure.ac: Don't check for strerror.
4521 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4522 Call safe_strerror instead of strerror.
4523 * server.h (strerror): Remove this now-unnecessary declaration.
4524 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4525 strerror.
4526 (gdb_agent_helper_thread): Likewise.
4527 * utils.c (perror_with_name): Likewise.
4528
4da8c3a8
TT
45292019-11-26 Tom Tromey <tom@tromey.com>
4530
4531 * configure, config.in: Rebuild.
4532
21987b9c
TT
45332019-11-26 Tom Tromey <tom@tromey.com>
4534
4535 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4536 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4537 gdb_sigmask.
4538 * configure, config.in: Rebuild.
4539
5e030278
TT
45402019-11-26 Tom Tromey <tom@tromey.com>
4541
4542 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4543 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4544 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4545 * acinclude.m4: Include ax_pthread.m4.
4546 * config.in, configure: Rebuild.
4547
6d91ce9a
CB
45482019-11-26 Christian Biesinger <cbiesinger@google.com>
4549
4550 * debug.c (debug_set_output): Call safe_strerror instead of
4551 strerror.
4552 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4553 (linux_kill_one_lwp): Likewise.
4554 (linux_detach_one_lwp): Likewise.
4555 (linux_wait_for_event_filtered): Likewise.
4556 (store_register): Likewise.
4557 * lynx-low.c (lynx_attach): Likewise.
4558 * mem-break.c (insert_memory_breakpoint): Likewise.
4559 (remove_memory_breakpoint): Likewise.
4560 (delete_fast_tracepoint_jump): Likewise.
4561 (set_fast_tracepoint_jump): Likewise.
4562 (uninsert_fast_tracepoint_jumps_at): Likewise.
4563 (reinsert_fast_tracepoint_jumps_at): Likewise.
4564 * nto-low.c (nto_xfer_memory): Likewise.
4565 (nto_resume): Likewise.
4566
6cdd651f
LM
45672019-11-20 Luis Machado <luis.machado@linaro.org>
4568
4569 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4570 instead of register count.
4571 * tdesc.c (tdesc_contains_feature): New function.
4572 * tdesc.h (tdesc_contains_feature): New prototype.
4573
cd850b40
CB
45742019-11-15 Christian Biesinger <cbiesinger@google.com>
4575
4576 * Makefile.in: Add safe-strerror.c.
4577 * configure: Regenerate.
4578 * configure.ac: Don't source common.host.
4579
5abebf3c
CB
45802019-11-15 Christian Biesinger <cbiesinger@google.com>
4581
4582 * config.in: Regenerate.
4583 * configure: Regenerate.
4584
e06f3d6e
AB
45852019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4586
4587 * ax.c (ax_printf): Handle size_t_arg.
4588
ca3a04f6
CB
45892019-11-06 Christian Biesinger <cbiesinger@google.com>
4590
4591 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4592 * mi/mi-main.c (output_cores): Likewise.
4593 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4594 (linux_xfer_osdata_modules): Likewise.
4595 * remote.c (register_remote_support_xml): Likewise.
4596 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4597 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4598
e48f6033
CB
45992019-11-01 Christian Biesinger <cbiesinger@google.com>
4600
4601 * configure: Regenerate.
4602 * configure.ac: Remove check for strerror_r.
4603
e7e97a2e
CB
46042019-10-31 Christian Biesinger <cbiesinger@google.com>
4605
4606 * config.in: Regenerate.
4607 * configure: Regenerate.
4608 * configure.ac: Also check for strerror_r.
4609
75cafaa6
CB
46102019-10-31 Christian Biesinger <cbiesinger@google.com>
4611
4612 * ax.h (debug_agent): Remove duplicate declaration.
4613
30baf67b
TV
46142019-10-26 Tom de Vries <tdevries@suse.de>
4615
4616 * linux-aarch64-low.c: Fix typos in comments.
4617 * linux-arm-low.c: Same.
4618 * linux-low.c: Same.
4619 * linux-ppc-low.c: Same.
4620 * proc-service.c: Same.
4621 * regcache.h: Same.
4622 * server.c: Same.
4623 * tracepoint.c: Same.
4624 * win32-low.c: Same.
4625
52c64cf7
TT
46262019-10-25 Tom Tromey <tromey@adacore.com>
4627
4628 * utils.c (xstrdup): Remove.
4629
c12d372d
TT
46302019-10-23 Tom Tromey <tom@tromey.com>
4631
4632 * configure, config.in: Rebuild.
4633
4d0b984b
TT
46342019-10-23 Tom Tromey <tom@tromey.com>
4635
4636 * configure: Rebuild.
4637 * acinclude.m4: Use m4_include, not sinclude.
4638
c5adaa19
TT
46392019-10-17 Tom Tromey <tromey@adacore.com>
4640
4641 * configure: Rebuild.
4642 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4643 in AC_CONFIG_FILES invocation.
4644 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4645 invocation.
4646
fec4e896
CB
46472019-10-16 Christian Biesinger <cbiesinger@google.com>
4648
4649 * server.c: Include xml-builtin.h.
4650 (get_xml_features): Don't declare xml_builtins here.
4651
00975ff6
AB
46522019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4653
4654 * Makefile.in: Remove references to vec-ipa.o.
4655
0dc32745
AB
46562019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4657
4658 * Makefile.in: Remove references to vec.c.
4659
3e6ec53a
CB
46602019-10-02 Christian Biesinger <cbiesinger@google.com>
4661
4662 * server.c (server_waiting): Change to bool.
4663 (extended_protocol): Likewise.
4664 (response_needed): Likewise.
4665 (exit_requested): Likewise.
4666 (run_once): Likewise.
4667 (report_no_resumed): Likewise.
4668 (non_stop): Likewise.
4669 (disable_packet_vCont): Likewise.
4670 (disable_packet_Tthread): Likewise.
4671 (disable_packet_qC): Likewise.
4672 (disable_packet_qfThreadInfo): Likewise.
4673 (handle_general_set): Update.
4674 (handle_detach): Update.
4675 (handle_monitor_command): Update.
4676 (handle_query): Update.
4677 (captured_main): Update.
4678 (process_serial_event): Update.
4679 * server.h (server_waiting): Change to bool.
4680 (disable_packet_vCont): Likewise.
4681 (disable_packet_Tthread): Likewise.
4682 (disable_packet_qC): Likewise.
4683 (disable_packet_qfThreadInfo): Likewise.
4684 (run_once): Likewise.
4685 (non_stop): Likewise.
4686 * target.c (target_stop_and_wait): Update.
4687
80fd2826
TT
46882019-10-02 Tom Tromey <tromey@adacore.com>
4689
4690 * Makefile.in (SFILES): Add common-inferior.c.
4691 (OBS): Add common-inferior.o.
4692 * server.c (startup_with_shell): Don't define.
4693
46f29a9a
AB
46942019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4695
4696 * linux-low.c (linux_low_read_btrace): Update for change to
4697 std::vector.
4698
f9d949fb
CB
46992019-09-20 Christian Biesinger <cbiesinger@google.com>
4700
4701 * debug.c (debug_threads): Remove comment in favor of the header.
4702 * debug.h (using_threads): Add declaration.
4703 (debug_threads): Add comment.
4704 * linux-aarch64-low.c: Include debug.h and remove declaration of
4705 debug_threads.
4706 * nto-low.c: Likewise.
4707 * remote-utils.c: Likewise.
4708 * thread-db.c: Likewise.
4709
abf516c6
UW
47102019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4711
4712 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4713 and powerpc-cell64l-ipa.o.
4714 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4715 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4716 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4717 (spu*-*-*): Remove.
4718
4719 * spu-low.c: Remove file.
4720
4721 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4722 (parse_spufs_run): Remove.
4723 (ppc_get_pc): Remove Cell/B.E. support.
4724 (ppc_set_pc): Likewise.
4725 (ppc_breakpoint_at): Likewise.
4726 (ppc_arch_setup): Likewise.
4727 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4728 tdesc_powerpc_cell32l.
4729 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4730 or init_registers_powerpc_cell32l.
4731 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4732 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4733 or init_registers_powerpc_cell32l.
4734 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4735 (init_registers_powerpc_cell32l): Remove prototype.
4736 (init_registers_powerpc_cell64l): Likewise.
4737
4738 * target.h (struct target_ops): Remove qxfer_spu member.
4739 * server.c (handle_qxfer_spu): Remove.
4740 (qxfer_packets): Remove entry for "spu".
4741 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4742 * linux-low.c (SPUFS_MAGIC): Remove.
4743 (spu_enumerate_spu_ids): Remove.
4744 (linux_qxfer_spu): Remove.
4745 (linux_target_ops): Remove qxfer_spu member.
4746 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4747 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4748 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4749
2d41fa11
SDJ
47502019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4751
4752 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4753 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4754 * config.in: Regenerate.
4755 * configure: Regenerate.
4756
d59b55f0
TT
47572019-08-15 Tom Tromey <tromey@adacore.com>
4758
4759 * target.c (target_write_memory): Use gdb::byte_vector.
4760
4196ab2a
TT
47612019-08-15 Tom Tromey <tromey@adacore.com>
4762
4763 * tracepoint.c (write_inferior_data_pointer)
4764 (write_inferior_integer, write_inferior_int8)
4765 (write_inferior_uinteger, m_tracepoint_action_download)
4766 (r_tracepoint_action_download, x_tracepoint_action_download)
4767 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4768 (download_agent_expr, download_tracepoint_1)
4769 (download_trace_state_variables, upload_fast_traceframes): Update.
4770 * server.c (gdb_write_memory): Update.
4771 * remote-utils.c (relocate_instruction): Update.
4772 * proc-service.c (ps_pdwrite): Update.
4773 * mem-break.c (remove_memory_breakpoint)
4774 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4775 (uninsert_fast_tracepoint_jumps_at)
4776 (reinsert_fast_tracepoint_jumps_at): Update.
4777 * linux-x86-low.c (append_insns)
4778 (i386_install_fast_tracepoint_jump_pad)
4779 (amd64_write_goto_address, i386_write_goto_address): Update.
4780 * linux-s390-low.c (append_insns, s390_write_goto_address):
4781 Update.
4782 * linux-ppc-low.c (ppc_relocate_instruction)
4783 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4784 (ppc_write_goto_address): Update.
4785 * linux-aarch64-low.c (append_insns): Update.
4786 * target.h (struct target_ops): Update.
4787 (write_inferior_memory): Don't declare.
4788 * target.c (target_write_memory): Rename from
4789 write_inferior_memory. Remove old target_write_memory.
4790
c6778d00
TT
47912019-08-15 Tom Tromey <tromey@adacore.com>
4792
4793 * target.c (write_inferior_memory): Use std::vector.
4794
404f2902
FCE
47952019-08-06 Frank Ch. Eigler <fche@redhat.com>
4796
4797 PR build/24886
4798 * configure.ac: Drop enable-libmcheck support.
4799 * configure, config.in: Rebuild.
4800 * acinclude.m4: Don't include it.
4801
4c5aa8e0
AH
48022019-07-19 Alan Hayward <alan.hayward@arm.com>
4803
4804 * configure.srv: Remove Arm xml files.
4805
7cc17433
AH
48062019-07-19 Alan Hayward <alan.hayward@arm.com>
4807
4808 * configure.srv: Add new files. Remove xml generated files.
4809 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4810 registers.
4811 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4812 * linux-aarch32-tdesc.c: New file.
4813 * linux-aarch32-tdesc.h: New file.
4814 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4815 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4816 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4817 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4818 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4819 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4820 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4821 (arm_read_description): Call arm_linux_read_description.
4822 (initialize_low_arch): Don't init registers.
4823 * linux-arm-tdesc.c: New file.
4824 * linux-arm-tdesc.h: New file.
4825
166a82be
AH
48262019-07-10 Alan Hayward <alan.hayward@arm.com>
4827
4828 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4829 Move counter inside for.
4830 (arm_read_description): Check ptrace earlier.
4831 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4832
268a13a5
TT
48332019-07-09 Tom Tromey <tom@tromey.com>
4834
4835 * configure: Rebuild.
4836 * configure.ac: Change common to gdbsupport.
4837 * acinclude.m4: Change common to gdbsupport.
4838 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4839 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4840 common to gdbsupport.
4841 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4842 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4843 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4844 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4845 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4846 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4847 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4848 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4849 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4850 common to gdbsupport.
4851
350fab54
AH
48522019-07-04 Alan Hayward <alan.hayward@arm.com>
4853
4854 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4855 defines.
4856 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4857
2b40fda7
AH
48582019-07-04 Alan Hayward <alan.hayward@arm.com>
4859
4860 * configure.srv: Remove legacy xml.
4861 * linux-aarch64-low.c (initialize_low_arch): Remove
4862 initialize_low_tdesc call.
4863 * linux-aarch64-tdesc-selftest.c: Remove file.
4864 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4865 * linux-x86-low.c (initialize_low_arch): Remove
4866 initialize_low_tdesc call.
4867 * linux-x86-tdesc-selftest.c: Remove file.
4868 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4869
7d10623d
TV
48702019-06-20 Tom de Vries <tdevries@suse.de>
4871
4872 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4873 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4874
8d6a48df
TV
48752019-06-19 Tom de Vries <tdevries@suse.de>
4876
4877 * debug.h (debug_write): Change return type to ssize_t.
4878 * debug.c (debug_write): Same.
4879
73cc7272
TT
48802019-06-14 Tom Tromey <tom@tromey.com>
4881
4882 * configure.ac: Use new path to gnulib.
4883 * configure: Rebuild.
4884 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4885 to gnulib.
4886
08f10e02
TT
48872019-06-11 Tom Tromey <tom@tromey.com>
4888
4889 * Makefile.in (SFILES): Add alloc.c.
4890 (OBS): Add alloc.o.
4891 (IPA_OBJS): Add alloc-ipa.o.
4892 (alloc-ipa.o): New target.
4893 (%.o: ../%.c): New pattern rule.
4894
422186a9
TT
48952019-06-10 Tom Tromey <tromey@adacore.com>
4896
4897 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4898 end warning with a newline.
4899 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4900 newline.
4901 * thread-db.c (attach_thread): Don't end warning with a newline.
4902 (thread_db_notice_clone): Likewise.
4903 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4904 newline.
4905 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4906 end warning with a newline.
4907
b02f78f9
PA
49082019-06-04 Pedro Alves <palves@redhat.com>
4909
4910 * server.c (captured_main): Use make_unique_xstrdup.
4911
88ed7edb
TT
49122019-06-02 Tom Tromey <tom@tromey.com>
4913
4914 * gdbreplay.c (fromhex): Remove.
4915 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4916
33a6bc35
TT
49172019-05-29 Tom Tromey <tromey@adacore.com>
4918
4919 * configure: Rebuild.
4920
e90a813d
KB
49212019-05-06 Kevin Buettner <kevinb@redhat.com>
4922
4923 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4924 sign extension code on 32-bit builds.
4925
353ea2d1
EZ
49262019-05-03 Eli Zaretskii <eliz@gnu.org>
4927
4928 * remote-utils.c:
4929 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4930
b494cdff
TT
49312019-04-19 Tom Tromey <tom@tromey.com>
4932
4933 * server.c (struct vstop_notif): Derive from notif_event.
4934 <base>: Remove.
4935 (queue_stop_reply): Update.
4936 (remove_all_on_match_ptid): Change type. Rewrite.
4937 (discard_queued_stop_replies): Rewrite.
4938 (in_queued_stop_replies_ptid): Change type.
4939 (in_queued_stop_replies): Rewrite.
4940 (notif_stop): Update.
4941 (queue_stop_reply_callback): Update.
4942 (captured_main): Don't call initialize_notif.
4943 (push_stop_notification): Update.
4944 * notif.c (notif_write_event, handle_notif_ack)
4945 (notif_event_enque, notif_push): Update.
4946 (notif_event_xfree, initialize_notif): Remove.
4947 * notif.h (struct notif_event): Include <list>, not
4948 "common/queue.h".
4949 (struct notif_server) <queue>: Now a std::list.
4950 (notif_event_p): Remove typedef.
4951 (initialize_notif): Don't declare.
4952 (struct notif_event): Add virtual destructor.
4953
a7e559cc
AH
49542019-04-17 Alan Hayward <alan.hayward@arm.com>
4955
4956 * ax.c (ax_vdebug): Call debug_printf.
4957 * debug.c (debug_write): New function.
4958 * debug.h (debug_write): New declaration.
4959 * linux-low.c (sigchld_handler): Call debug_write.
4960
aeb2e706
AH
49612019-04-17 Alan Hayward <alan.hayward@arm.com>
4962
4963 * debug.c (debug_set_output): New function.
4964 (debug_vprintf): Send output to debug_file.
4965 (debug_flush): Likewise.
4966 * debug.h (debug_set_output): New declaration.
4967 * server.c (handle_monitor_command): Add debug-file option.
4968 (captured_main): Likewise.
4969
c1bc0935
AH
49702019-04-17 Alan Hayward <alan.hayward@arm.com>
4971
4972 * debug.c (remote_debug): Add definition.
4973 * debug.h (remote_debug): Add declaration.
4974 * hostio.c (remote_debug): Remove declaration.
4975 * remote-utils.c (struct ui_file): Likewise.
4976 (remote_debug): Likewise.
4977 * remote-utils.h (remote_debug): Likewise,
4978 * server.c (remote_debug): Remove definition.
4979
3f52fdbc
KB
49802019-04-10 Kevin Buettner <kevinb@redhat.com>
4981
4982 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4983 when using a 64-bit gdbserver.
4984
b0319eaa
TT
49852019-04-09 Tom Tromey <tromey@adacore.com>
4986
4987 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4988
eedc3f4f
TT
49892019-04-08 Tom Tromey <tom@tromey.com>
4990
4991 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4992 throw.
4993 (linux_resume_one_lwp): Likewise.
4994
230d2906
TT
49952019-04-08 Tom Tromey <tom@tromey.com>
4996
4997 * gdbreplay.c: Update.
4998 * linux-low.c: Update.
4999 * server.c: Update.
5000
a70b8144
TT
50012019-04-08 Tom Tromey <tom@tromey.com>
5002
5003 * server.c: Use C++ exception handling.
5004 * linux-low.c: Use C++ exception handling.
5005 * gdbreplay.c: Use C++ exception handling.
5006
3d6e9d23
TT
50072019-04-08 Tom Tromey <tom@tromey.com>
5008
5009 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5010 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5011 (captured_main, main): Update.
5012 * gdbreplay.c (main): Update.
5013
0570503d
PFC
50142019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5015
5016 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5017 value in argument pointer, return 1 if the entry is found and 0
5018 otherwise. Move comment.
5019 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5020 * linux-low.h (linux_get_auxv): Declare.
5021 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5022
227a9e65
TT
50232019-04-05 Tom Tromey <tromey@adacore.com>
5024
5025 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5026 variables.
5027
69f4c9cc
AH
50282019-03-28 Alan Hayward <alan.hayward@arm.com>
5029
5030 * linux-low.c (AT_HWCAP2): Add define if not already included.
5031
974c89e0
AH
50322019-03-26 Alan Hayward <alan.hayward@arm.com>
5033
5034 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5035 (aarch64_arch_setup): Call linux_get_hwcap.
5036 * linux-arm-low.c (arm_get_hwcap): Remove function.
5037 (arm_read_description): Call linux_get_hwcap.
5038 * linux-low.c (linux_get_auxv): New function.
5039 (linux_get_hwcap): Likewise.
5040 (linux_get_hwcap2): Likewise.
5041 * linux-low.h (linux_get_hwcap): New declaration.
5042 (linux_get_hwcap2): Likewise.
5043 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5044 (ppc_arch_setup): Call linux_get_hwcap.
5045 * linux-s390-low.c (s390_get_hwcap): Remove function.
5046 (s390_arch_setup): Call linux_get_hwcap.
5047
1ef53e6b
AH
50482019-03-22 Alan Hayward <alan.hayward@arm.com>
5049 Jiong Wang <jiong.wang@arm.com>
5050
5051 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5052 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5053 to fail.
5054 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5055
ee4fbcfa
AH
50562019-03-22 Alan Hayward <alan.hayward@arm.com>
5057 Jiong Wang <jiong.wang@arm.com>
5058
5059 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5060 (aarch64_get_hwcap): New function.
5061 (aarch64_arch_setup): Read APIA hwcap.
5062
6dc0ebde
AH
50632019-03-22 Alan Hayward <alan.hayward@arm.com>
5064 Jiong Wang <jiong.wang@arm.com>
5065
5066 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5067 (initialize_low_tracepoint): Likewise.
5068 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5069 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5070 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5071 (aarch64_linux_read_description): Likewise.
5072 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5073
1163a4b7
JB
50742019-03-12 John Baldwin <jhb@FreeBSD.org>
5075
5076 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5077 i386_create_target_description for 'segments' parameter.
5078 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5079 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5080 * win32-i386-low.c (i386_arch_setup): Likewise.
5081
d3a70e03
TT
50822019-03-12 Tom Tromey <tromey@adacore.com>
5083
5084 * linux-low.c (iterate_over_lwps): Update.
5085
37991b4f
TT
50862019-03-06 Tom Tromey <tom@tromey.com>
5087
5088 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5089 (captured_main): Use SCOPE_EXIT.
5090
45950eb6
SDJ
50912019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5092
5093 * configure.srv: Use '$enable_unittest' instead of '$development'
5094 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5095 case.
5096
43ac54fc
TT
50972019-02-27 Tom Tromey <tromey@adacore.com>
5098
5099 * gdbreplay.c (logchar): Handle \r\n.
5100
df0da8a2
AH
51012019-02-07 Alan Hayward <alan.hayward@arm.com>
5102
5103 * linux-low.c (linux_attach): Add process before lwp.
5104 * server.c (attach_inferior): Check if already attached.
5105
1a5c2598
TT
51062019-02-07 Tom Tromey <tom@tromey.com>
5107
5108 * x86-tdesc.h: Rename include guard.
5109 * x86-low.h: Add include guard.
5110 * wincecompat.h: Rename include guard.
5111 * win32-low.h: Add include guard.
5112 * utils.h: Rename include guard.
5113 * tracepoint.h: Rename include guard.
5114 * tdesc.h: Rename include guard.
5115 * target.h: Rename include guard.
5116 * server.h: Rename include guard.
5117 * remote-utils.h: Rename include guard.
5118 * regcache.h: Rename include guard.
5119 * nto-low.h: Rename include guard.
5120 * notif.h: Add include guard.
5121 * mem-break.h: Rename include guard.
5122 * lynx-low.h: Add include guard.
5123 * linux-x86-tdesc.h: Add include guard.
5124 * linux-s390-tdesc.h: Add include guard.
5125 * linux-ppc-tdesc-init.h: Add include guard.
5126 * linux-low.h: Add include guard.
5127 * linux-aarch64-tdesc.h: Add include guard.
5128 * linux-aarch32-low.h: Add include guard.
5129 * inferiors.h: Rename include guard.
5130 * i387-fp.h: Rename include guard.
5131 * hostio.h: Rename include guard.
5132 * gdbthread.h: Rename include guard.
5133 * gdb_proc_service.h: Rename include guard.
5134 * event-loop.h: Rename include guard.
5135 * dll.h: Rename include guard.
5136 * debug.h: Rename include guard.
5137 * ax.h: Rename include guard.
5138
956cc47c
SN
51392018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5140
5141 PR gdb/23985
5142 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5143 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5144
a0707f3c
TT
51452019-01-25 Tom Tromey <tom@tromey.com>
5146
5147 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5148
0747795c
TT
51492019-01-25 Tom Tromey <tom@tromey.com>
5150
5151 * win32-low.c: Fix common/ includes.
5152 * win32-i386-low.c: Fix common/ includes.
5153 * tracepoint.c: Fix common/ includes.
5154 * thread-db.c: Fix common/ includes.
5155 * target.h: Fix common/ includes.
5156 * symbol.c: Fix common/ includes.
5157 * spu-low.c: Fix common/ includes.
5158 * server.h: Fix common/ includes.
5159 * server.c: Fix common/ includes.
5160 * remote-utils.c: Fix common/ includes.
5161 * regcache.h: Fix common/ includes.
5162 * regcache.c: Fix common/ includes.
5163 * nto-x86-low.c: Fix common/ includes.
5164 * notif.h: Fix common/ includes.
5165 * mem-break.h: Fix common/ includes.
5166 * lynx-low.c: Fix common/ includes.
5167 * lynx-i386-low.c: Fix common/ includes.
5168 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5169 * linux-x86-low.c: Fix common/ includes.
5170 * linux-low.c: Fix common/ includes.
5171 * inferiors.h: Fix common/ includes.
5172 * i387-fp.c: Fix common/ includes.
5173 * hostio.c: Fix common/ includes.
5174 * hostio-errno.c: Fix common/ includes.
5175 * gdbthread.h: Fix common/ includes.
5176 * gdbreplay.c: Fix common/ includes.
5177 * fork-child.c: Fix common/ includes.
5178 * event-loop.c: Fix common/ includes.
5179 * ax.c:
5180 (enum gdb_agent_op): Fix common/ includes.
5181
be6d4f74
TT
51822019-01-21 Tom Tromey <tom@tromey.com>
5183
5184 * tracepoint.c: Fix includes.
5185 * remote-utils.c: Fix includes.
5186 * linux-x86-low.c: Fix includes.
5187
66d91b39
JB
51882019-01-01 Joel Brobecker <brobecker@adacore.com>
5189
5190 * gdbreplay.c (gdbreplay_version): Update copyright year in
5191 version message.
5192 * server.c (gdbserver_version): Likewise.
5193
754e3168
AH
51942018-12-05 Alan Hayward <alan.hayward@arm.com>
5195
5196 * linux-low.c (add_lwp): Switch ordering.
5197
d105de22
TT
51982018-11-29 Tom Tromey <tom@tromey.com>
5199
5200 * win32-low.c (win32_join): Take pid, not process.
5201 * target.h (struct target_ops) <join>: Change argument type.
5202 (join_inferior): Change argument name.
5203 * spu-low.c (spu_join): Take pid, not process.
5204 * server.c (handle_detach): Preserve pid before destroying
5205 process.
5206 * lynx-low.c (lynx_join): Take pid, not process.
5207 * linux-low.c (linux_join): Take pid, not process.
5208
50138245
AH
52092018-11-23 Alan Hayward <alan.hayward@arm.com>
5210
5211 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5212 (aarch64_cannot_fetch_register): Likewise.
5213 (struct linux_target_ops): Update references.
5214
64f57f3d
PFC
52152018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5216
5217 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5218
8d619c01
EBM
52192018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5220
5221 * configure.srv (ipa_ppc_linux_regobj): Add
5222 powerpc-isa207-htm-vsx32l-ipa.o and
5223 powerpc-isa207-htm-vsx64l-ipa.o.
5224 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5225 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5226 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5227 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5228 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5229 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5230 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5231 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5232 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5233 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5234 (init_registers_powerpc_isa207_htm_vsx32l)
5235 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5236 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5237 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5238 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5239 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5240 (ppc_store_tm_ctarregset): New functions.
5241 (ppc_regsets): Add entries for HTM regsets.
5242 (ppc_arch_setup): Set htm in features struct when needed. Set
5243 sizes for the HTM regsets.
5244 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5245 (initialize_low_arch): Call
5246 init_registers_powerpc_isa207_htm_vsx32l and
5247 init_registers_powerpc_isa207_htm_vsx64l.
5248 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5249 PPC_TDESC_ISA207_HTM_VSX.
5250 (initialize_low_tracepoint): Call
5251 init_registers_powerpc_isa207_htm_vsx32l and
5252 init_registers_powerpc_isa207_htm_vsx64l.
5253
232bfb86
EBM
52542018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5255
5256 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5257 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5258 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5259 (ppc_store_pmuregset): New functions.
5260 (ppc_regsets): Add entries for ebb and pmu regsets.
5261 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5262 pmu regsets are available. Set sizes for these regsets.
5263
f2cf6173
EBM
52642018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5265
5266 * configure.srv (ipa_ppc_linux_regobj): Add
5267 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5268 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5269 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5270 rs6000/powerpc-isa207-vsx32l.xml, and
5271 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5272 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5273 <PPC_TDESC_ISA207_VSX>: New enum value.
5274 (init_registers_powerpc_isa207_vsx32l): Declare.
5275 (init_registers_powerpc_isa207_vsx64l): Declare.
5276 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5277 (ppc_store_tarregset): New function.
5278 (ppc_regsets): Add entry for the TAR regset.
5279 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5280 size for the TAR regsets.
5281 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5282 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5283 and init_registers_powerpc_isa207_vsx64l.
5284 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5285 (initialize_low_tracepoint): Call
5286 init_registers_powerpc_isa207_vsx32l and
5287 init_registers_powerpc_isa207_vsx64l.
5288
7ca18ed6
EBM
52892018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5290 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5291
5292 * configure.srv (ipa_ppc_linux_regobj): Add
5293 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5294 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5295 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5296 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5297 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5298 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5299 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5300 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5301 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5302 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5303 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5304 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5305 (ppc_hwcap): Add comment.
5306 (ppc_hwcap2): New global.
5307 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5308 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5309 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5310 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5311 when needed. Set sizes for the the DSCR and PPR regsets.
5312 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5313 (initialize_low_arch): Call
5314 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5315 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5316 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5317 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5318 (initialize_low_tracepoint): Call
5319 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5320 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5321
5c849b22
PFC
53222018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5323
5324 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5325
8ecfd7bd
SDJ
53262018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5327 Simon Marchi <simark@simark.ca>
5328
5329 * acinclude.m4: Include "../selftest.m4".
5330 * configure: Regenerate.
5331 * configure.ac: Use "GDB_AC_SELFTEST".
5332 * configure.srv: Use "$enable_unittests" instead of
5333 "$development" when checking whether unit tests have been
5334 enabled.
5335 * server.c (captured_main): Update message informing that
5336 selftests have been disabled.
5337
96643e35
TT
53382018-10-04 Tom Tromey <tom@tromey.com>
5339
5340 * configure: Rebuild.
5341
da4ae14a
TT
53422018-10-04 Tom Tromey <tom@tromey.com>
5343
5344 * server.c (handle_status): Rename inner "thread".
5345 (process_serial_event): Declare "res" in 'm' case.
5346 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5347 (iterate_over_lwps): Rename inner "thread".
5348 (linux_qxfer_libraries_svr4): Rename inner "len".
5349 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5350
7c619dbd
GB
53512018-10-01 Gary Benson <gbenson@redhat.com>
5352
5353 * gdb_proc_service.h: Moved common code to
5354 common/gdb_proc_service.h.
5355
3795e814
GB
53562018-10-01 Gary Benson <gbenson@redhat.com>
5357
5358 * gdb_proc_service.h: Synchronize comments and whitespace with
5359 GDB's version of this file.
5360
49b036f1
TT
53612018-09-25 Tom Tromey <tom@tromey.com>
5362
5363 * configure: Rebuild.
5364 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5365
8ff03f0b
SM
53662018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5367
5368 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5369 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5370 ($(IPA_LIB)): Sort IPA_OBJS.
5371
a1cd91dc
SM
53722018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5373
5374 * Makefile.in: Remove references to $(ADD_DEPS).
5375
752312ba
TT
53762018-09-16 Tom Tromey <tom@tromey.com>
5377
5378 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5379 variables.
5380 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5381 variables.
5382
f1628857
TT
53832018-09-05 Tom Tromey <tom@tromey.com>
5384
5385 * configure: Rebuild.
5386
ad202fcc
SM
53872018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5388
5389 PR build/23399
5390 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5391
d3d8724a
TT
53922018-08-27 Tom Tromey <tom@tromey.com>
5393
5394 PR build/23087:
5395 * configure: Rebuild.
5396
b4f183d2
TT
53972018-08-27 Tom Tromey <tom@tromey.com>
5398
5399 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5400 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5401 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5402 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5403 (s390x_emit_stack_adjust): Add casts to unsigned char.
5404
4e2aa472
SM
54052018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5406
5407 PR gdb/23374
5408 PR gdb/23375
5409 * server.h (struct client_state) <disable_randomization>:
5410 Initialize to 1.
5411
cf4088a9
SM
54122018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5413
5414 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5415 variable.
5416 (mips_supply_ptrace_register): Likewise.
5417
a0de763e
TT
54182018-07-22 Tom Tromey <tom@tromey.com>
5419
5420 * configure: Rebuild.
5421
b0a7723d
TT
54222018-07-22 Tom Tromey <tom@tromey.com>
5423
5424 * win32-low.c (win32_create_inferior): Remove unused variables.
5425 * gdbreplay.c (remote_open): Remove unused variable.
5426 * remote-utils.c (remote_prepare): Remove unused variable.
5427 * x86-tdesc.h (X86_TDESC_H): Define.
5428 (amd64_expedite_regs): Define conditionally.
5429 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5430 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5431 * remote-utils.c (readchar): Remove unused variable.
5432
a780ef4f
PA
54332018-07-13 Pedro Alves <palves@redhat.com>
5434
5435 * linux-low.c (linux_kill): Change parameter to process_info
5436 pointer instead of pid. Adjust.
5437 * lynx-low.c (lynx_kill): Likewise.
5438 * nto-low.c (nto_kill): Likewise.
5439 * spu-low.c (spu_kill): Likewise.
5440 * win32-low.c (win32_kill): Likewise.
5441 * server.c (handle_v_kill, kill_inferior_callback)
5442 (detach_or_kill_for_exit): Adjust.
5443 * target.c (kill_inferior): Change parameter to process_info
5444 pointer instead of pid. Adjust.
5445 * target.h (struct target_ops) <kill>: Change parameter to
5446 process_info pointer instead of pid. Adjust all implementations
5447 and callers.
5448 (kill_inferior): Likewise.
5449
ef2ddb33
PA
54502018-07-13 Pedro Alves <palves@redhat.com>
5451
5452 * linux-low.c (linux_detach, linux_join): Change parameter to
5453 process_info pointer instead of pid. Adjust.
5454 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5455 * nto-low.c (nto_detach): Likewise.
5456 * spu-low.c (spu_detach, spu_join): Likewise.
5457 * win32-low.c (win32_detach, win32_join): Likewise.
5458 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5459 * target.h (struct target_ops) <detach, join>: Change parameter to
5460 process_info pointer instead of pid. Adjust all implementations
5461 and callers.
5462 (detach_inferior, join_inferior): Rename 'pid' parameter to
5463 'proc'.
5464
c7ab0aef
SDJ
54652018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5466 Jan Kratochvil <jan.kratochvil@redhat.com>
5467 Paul Fertser <fercerpav@gmail.com>
5468 Tsutomu Seki <sekiriki@gmail.com>
5469
5470 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5471 (OBS): Add 'common/netstuff.o'.
5472 (GDBREPLAY_OBS): Likewise.
5473 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5474 (remote_open): Implement support for IPv6
5475 connections.
5476 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5477 and 'wspiapi.h'.
5478 (handle_accept_event): Accept connections from IPv6 sources.
5479 (remote_prepare): Handle IPv6-style hostnames; implement
5480 support for IPv6 connections.
5481 (remote_open): Implement support for printing connections from
5482 IPv6 sources.
5483
31445d10
PA
54842018-07-11 Pedro Alves <palves@redhat.com>
5485
5486 PR gdb/23377
5487 * mem-break.c (any_persistent_commands): Add process_info
5488 parameter and use it instead of relying on the current process.
5489 Change return type to bool.
5490 * mem-break.h (any_persistent_commands): Add process_info
5491 parameter and change return type to bool.
5492 * server.c (handle_detach): Remove require_running_or_return call.
5493 Look up the process_info for the process we're about to detach.
5494 If not found, return back error to GDB. Adjust
5495 any_persistent_commands call to pass down a process pointer.
5496
cb197132
PA
54972018-07-11 Pedro Alves <palves@redhat.com>
5498
5499 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5500 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5501 instead of collect_register_by_name.
5502 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5503 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5504
1b919490
VB
55052018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5506 Pedro Alves <palves@redhat.com>
5507
5508 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5509
d7e15655
TT
55102018-07-03 Tom Tromey <tom@tromey.com>
5511
5512 * linux-low.c: Update.
5513 * lynx-low.c: Update.
5514 * mem-break.c: Update.
5515 * nto-low.c: Update.
5516 * remote-utils.c: Update.
5517 * server.c: Update.
5518 * spu-low.c: Update.
5519 * target.c: Update.
5520 * win32-low.c: Update.
5521
26a57c92
TT
55222018-07-03 Tom Tromey <tom@tromey.com>
5523
5524 * server.c: Update.
5525
0e998d96
TT
55262018-07-03 Tom Tromey <tom@tromey.com>
5527
5528 * linux-low.c: Update.
5529
cc6bcb54
TT
55302018-07-03 Tom Tromey <tom@tromey.com>
5531
5532 * target.c: Update.
5533
e38504b3
TT
55342018-07-03 Tom Tromey <tom@tromey.com>
5535
5536 * linux-low.c: Update.
5537 * linux-mips-low.c: Update.
5538 * lynx-low.c: Update.
5539 * nto-low.c: Update.
5540 * remote-utils.c: Update.
5541 * server.c: Update.
5542 * spu-low.c: Update.
5543 * target.c: Update.
5544 * thread-db.c: Update.
5545
e99b03dc
TT
55462018-07-03 Tom Tromey <tom@tromey.com>
5547
5548 * linux-low.c: Update.
5549 * linux-mips-low.c: Update.
5550 * lynx-low.c: Update.
5551 * mem-break.c: Update.
5552 * nto-low.c: Update.
5553 * remote-utils.c: Update.
5554 * server.c: Update.
5555 * spu-low.c: Update.
5556 * target.c: Update.
5557 * tracepoint.c: Update.
5558
f2907e49
TT
55592018-07-03 Tom Tromey <tom@tromey.com>
5560
5561 * linux-low.c: Update.
5562 * linux-ppc-low.c: Update.
5563 * linux-x86-low.c: Update.
5564 * proc-service.c: Update.
5565 * server.c: Update.
5566 * spu-low.c: Update.
5567 * thread-db.c: Update.
5568 * win32-low.c: Update.
5569
fd79271b
TT
55702018-07-03 Tom Tromey <tom@tromey.com>
5571
5572 * linux-low.c: Update.
5573 * lynx-low.c: Update.
5574 * nto-low.c: Update.
5575 * remote-utils.c: Update.
5576 * spu-low.c: Update.
5577 * thread-db.c: Update.
5578 * win32-low.c: Update.
5579
c0867626
SDJ
55802018-06-29 Joel Brobecker <brobecker@adacore.com>
5581
5582 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5583 parameter in call to 'amd64_create_target_description'.
5584
2512d7ef
JK
55852018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5586
5587 * x86-tdesc.h: Remove executable permission flag.
5588
d0ac1c44
SM
55892018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5590
5591 * configure.ac: Remove AC_PREREQ, add missing quoting.
5592 * configure: Re-generate.
5593 * config.in: Re-generate.
5594 * aclocal.m4: Re-generate.
5595
c4eb05ff
SM
55962018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5597
5598 * tracepoint.h (current_traceframe): Remove declaration.
5599
02895270
AH
56002018-06-18 Alan Hayward <alan.hayward@arm.com>
5601
5602 * linux-aarch64-low.c (is_sve_tdesc): New function.
5603 (aarch64_sve_regs_copy_to_regcache): Likewise.
5604 (aarch64_sve_regs_copy_from_regcache): Likewise.
5605 (aarch64_regs_info): Add SVE checks.
5606 (initialize_low_arch): Initialize SVE.
5607
e9902bfc
AH
56082018-06-18 Alan Hayward <alan.hayward@arm.com>
5609
5610 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5611
fefa175e
AH
56122018-06-11 Alan Hayward <alan.hayward@arm.com>
5613
5614 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5615 (initialize_low_tracepoint): Likewise
5616 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5617 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5618 param.
5619 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5620 checks.
5621 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5622
b91ad3ff
AH
56232018-06-11 Alan Hayward <alan.hayward@arm.com>
5624
5625 * server.h (PBUFSIZ): Increase size
5626
f868386e
AH
56272018-06-11 Alan Hayward <alan.hayward@arm.com>
5628
5629 * regcache.c (regcache::raw_compare): New function.
5630 * regcache.h (regcache::raw_compare): New declaration.
5631
9c861883
AH
56322018-06-11 Alan Hayward <alan.hayward@arm.com>
5633
5634 * regcache.c (new_register_cache): Use new.
5635 (free_register_cache): Use delete.
5636 (register_data): Use const.
5637 (supply_register): Move body inside regcache.
5638 (regcache::raw_supply): New override function.
5639 (collect_register): Move body inside regcache.
5640 (regcache::raw_collect): New override function.
5641 (regcache::get_register_status): New override function.
5642 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5643
40591844
TT
56442018-06-09 Tom Tromey <tom@tromey.com>
5645
5646 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5647 declare queue.
5648 (event_queue): Use std::queue.
5649 (gdb_event_xfree): Remove.
5650 (initialize_event_loop, process_event, wait_for_event): Update.
5651
6341380d
SC
56522018-06-08 Stan Cox <scox@redhat.com>
5653
5654 * win32-low.c (win32_create_inferior): last_ptid and last_status
5655 moved to client_state.
5656
03349c93
PA
56572018-06-08 Pedro Alves <palves@redhat.com>
5658
5659 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5660 common/common-exceptions.o, common/common-utils.o,
5661 common/errors.o, common/print-utils.o and utils.o.
5662 * gdbreplay.c: Include "common-defs.h" instead of the two
5663 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5664 string.h or alloca.h.
5665 (perror_with_name): Delete.
5666 (remote_open): Use xstrdup instead of strdup.
5667 (main): Rename to ...
5668 (captured_main): ... this.
5669 (main): New.
5670
8dcc53b3
TT
56712018-06-08 Tom Tromey <tom@tromey.com>
5672
5673 * linux-low.c (linux_low_read_btrace): Update.
5674
c12a5089
SC
56752018-06-04 Stan Cox <scox@redhat.com>
5676
5677 * server.h (struct client_state): New.
5678 * server.c (cont_thread, general_thread, multi_process)
5679 (report_fork_events, report_vfork_events, report_exec_events)
5680 (report_thread_events, swbreak_feature, hwbreak_feature)
5681 (vCont_supported, disable_randomization, pass_signals)
5682 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5683 Moved to client_state.
5684 * remote-utils.c (remote_debug, noack_mode)
5685 (transport_is_reliable): Moved to client_state.
5686 * tracepoint.c (current_traceframe): Moved to client_state.
5687
5688 Update all callers.
5689 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5690 linux-low.c, remote-utils.h, target.c: Use client_state.
5691
122394f1
AH
56922018-05-31 Alan Hayward <alan.hayward@arm.com>
5693
5694 * configure.srv: Add new c/h file.
5695
95228a0d
AH
56962018-05-31 Alan Hayward <alan.hayward@arm.com>
5697
5698 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5699 null VQ.
5700
d8dab6c3
MR
57012018-05-25 Maciej W. Rozycki <macro@mips.com>
5702
5703 * gdb.arch/mips-fpregset-core.exp: New test.
5704 * gdb.arch/mips-fpregset-core.c: New test source.
5705
81e25b7c
EK
57062018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5707
5708 PR server/23198
5709 * hostio.c (require_int): Do not report overflow for integers
5710 between 0xfffffff and 0x7fffffff.
5711
7e947ad3
MR
57122018-05-22 Maciej W. Rozycki <macro@mips.com>
5713
5714 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5715 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5716 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5717 functions.
5718 (the_low_target): Wire them.
5719
1d75a658
PFC
57202018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5721
5722 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5723 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5724 mode. Call collect_register_by_name with vscr using
5725 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5726 (ppc_store_vrregset): Add and set vscr_offset variable as in
5727 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5728 vscr_offset.
5729
d078308a
PFC
57302018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5731
5732 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5733 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5734 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5735
7273b5fc
PFC
57362018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5737
5738 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5739 (ppc_store_vsxregset): Likewise.
5740 (ppc_fill_vrregset): Likewise.
5741 (ppc_store_vrregset): Likewise.
5742 (ppc_fill_evrregset): Likewise.
5743 (ppc_store_evrregset): Likewise.
5744 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5745 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5746 needed.
5747
2e077f5e
PFC
57482018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5749
5750 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5751 wordsize of the inferior. Call ppc_linux_target_wordsize.
5752
bd64614e
PFC
57532018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5754
5755 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5756 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5757 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5758 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5759 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5760 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5761 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5762 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5763 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5764 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5765 (tdesc_powerpc_e500l): Remove.
5766 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5767 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5768 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5769 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5770 linux-ppc-tdesc.h.
5771 (ppc_arch_setup): Remove target description matching code. Fill a
5772 ppc_linux_features struct and call ppc_linux_match_description
5773 with it.
5774
75d74cca
MR
57752018-05-22 Maciej W. Rozycki <macro@mips.com>
5776
5777 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5778 width of the requested register exceeds the width of the
5779 `ptrace' data type.
5780 (mips_cannot_store_register): Likewise.
5781
e4439e43
MR
57822018-05-21 Maciej W. Rozycki <macro@mips.com>
5783
5784 * linux-mips-low.c (mips_fetch_register): New function. Update
5785 preceding comment.
5786 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5787 (the_low_target): Wire `mips_fetch_register'.
5788
55271bf9
JB
57892018-05-10 Joel Brobecker <brobecker@adacore.com>
5790
5791 * lynx-i386-low.c (LYNXOS_178): New macro.
5792 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5793 the layout on LynxOS-178.
5794 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5795 handle floating point registers that are not supported by
5796 LynxOS-178.
5797
1a34f210
TT
57982018-05-10 Tom Tromey <tom@tromey.com>
5799
5800 * configure: Rebuild.
5801
190852c8
JB
58022018-05-10 Joel Brobecker <brobecker@adacore.com>
5803
5804 PR server/23158:
5805 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5806 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5807 Use it to set the expedite_regs field in the given tdesc.
5808 * x86-tdesc.h: New file.
5809 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5810 Adjust following the addition of the new expedite_regs parameter
5811 to init_target_desc.
5812 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5813 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5814 (i386_linux_read_description, amd64_linux_read_description):
5815 Adjust following the addition of the new expedite_regs parameter
5816 to init_target_desc.
5817 * lynx-i386-low.c: #include "x86-tdesc.h".
5818 (lynx_i386_arch_setup): Adjust following the addition of the new
5819 expedite_regs parameter to init_target_desc.
5820 * nto-x86-low.c: #include "x86-tdesc.h".
5821 (nto_x86_arch_setup): Adjust following the addition of the new
5822 expedite_regs parameter to init_target_desc.
5823 * win32-i386-low.c: #include "x86-tdesc.h".
5824 (i386_arch_setup): Adjust following the addition of the new
5825 expedite_regs parameter to init_target_desc.
5826
7dbac825
JB
58272018-05-10 Joel Brobecker <brobecker@adacore.com>
5828
5829 PR server/23158:
5830 * win32-low.c (win32_create_inferior): Add call to my_wait
5831 setting last_status global.
5832
906994d9
JB
58332018-05-10 Joel Brobecker <brobecker@adacore.com>
5834
5835 PR server/23158:
5836 * win32-low.c (create_process): Only call gdb_tilde_expand if
5837 inferior_cwd is not NULL.
5838
8ee22052
AB
58392018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5840
5841 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5842 registers to the cache if their values have changed.
5843 (i387_xsave_to_cache): Provide default values for x87 control
5844 registers when these features are available, but disabled.
5845 * regcache.c (supply_register_by_name_zeroed): New function.
5846 * regcache.h (supply_register_by_name_zeroed): Declare new
5847 function.
5848
aff689d3
TT
58492018-05-07 Tom Tromey <tom@tromey.com>
5850
5851 * configure: Rebuild.
5852
85e26832
TT
58532018-05-04 Tom Tromey <tom@tromey.com>
5854
5855 * configure: Rebuild.
5856
a3b60e45
JK
58572018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5858 Pedro Alves <palves@redhat.com>
5859
5860 * linux-aarch64-low.c (aarch64_stopped_data_address):
5861 Likewise.
5862
632e107b
TT
58632018-04-27 Tom Tromey <tom@tromey.com>
5864
5865 * configure: Rebuild.
5866
458412c3
TT
58672018-04-23 Tom Tromey <tom@tromey.com>
5868
5869 * configure: Rebuild.
5870
f31c089e
SM
58712018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5872
5873 * Makefile.in (depcomp): Add "..".
5874 (all_deps_files): New and use it.
5875
b319b098
AH
58762018-04-18 Alan Hayward <alan.hayward@arm.com>
5877
5878 * configure.srv (aarch64*-*-linux*): Don't include xml.
5879 (i[34567]86-*-cygwin*): Likewise.
5880 (i[34567]86-*-linux*): Likewise.
5881 (i[34567]86-*-lynxos*): Likewise.
5882 (i[34567]86-*-mingw32ce*): Likewise.
5883 (i[34567]86-*-mingw*): Likewise.
5884 (i[34567]86-*-nto*): Likewise.
5885 (tic6x-*-uclinux): Likewise.
5886 (x86_64-*-linux*): Likewise.
5887 (x86_64-*-mingw*): Likewise.
5888 (x86_64-*-cygwin*): Likewise.
5889
3b74854b
AH
58902018-04-18 Alan Hayward <alan.hayward@arm.com>
5891
5892 * tdesc.c: Remove xml parameter.
5893
e98577a9
AH
58942018-04-18 Alan Hayward <alan.hayward@arm.com>
5895
5896 * server.c (get_features_xml): Remove cast.
5897 * tdesc.c (void target_desc::accept): Fill in function.
5898 (tdesc_get_features_xml): Remove old xml creation.
5899 (print_xml_feature::visit_pre): Add xml vistor.
5900 * tdesc.h (struct target_desc): Make xmltarget mutable.
5901 (tdesc_get_features_xml): Remove declaration.
5902
d278f585
AH
59032018-04-18 Alan Hayward <alan.hayward@arm.com>
5904
5905 * tdesc.c (tdesc_architecture_name): Add new function.
5906 (tdesc_osabi_name): Likewise.
5907 (tdesc_get_features_xml): Use new functions.
5908
eee8a18d
AH
59092018-04-18 Alan Hayward <alan.hayward@arm.com>
5910
5911 * tdesc.c (tdesc_create_flags): Remove.
5912 (tdesc_add_flag): Likewise.
5913 (tdesc_named_type): Likewise.
5914 (tdesc_create_union): Likewise.
5915 (tdesc_create_struct): Likewise.
5916 (tdesc_create_vector): Likewise.
5917 (tdesc_add_bitfield): Likewise.
5918 (tdesc_add_field): Likewise.
5919 (tdesc_set_struct_size): Likewise.
5920
82ec9bc7
AH
59212018-04-18 Alan Hayward <alan.hayward@arm.com>
5922
5923 * tdesc.c (~target_desc): Remove implictly deleted items.
5924 (init_target_desc): Iterate all features.
5925 (tdesc_get_features_xml): Use vector.
5926 (tdesc_create_feature): Create feature.
5927 * tdesc.h (tdesc_feature) Remove
5928 (target_desc): Add features.
5929
ea3e7d71
AH
59302018-04-18 Alan Hayward <alan.hayward@arm.com>
5931
5932 * Makefile.in: Add common/tdesc.c
5933 * tdesc.c (init_target_desc): init all reg_defs from register
5934 vector.
5935 (tdesc_create_reg): Create tdesc_reg.
5936 * tdesc.h (tdesc_feature): Add register vector.
5937
17d08cd4
SM
59382018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5939
5940 * tdesc.h (struct target_desc) <features>: Change type to
5941 std::vector<std::string>.
5942 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5943 changes.
5944 (tdesc_get_features_xml): Likewise.
5945 (tdesc_create_feature): Likewise.
5946
5cd3e386
AH
59472018-03-26 Alan Hayward <alan.hayward@arm.com>
5948
5949 * regcache.c (find_register_by_number): Return a ref.
5950 (find_regno): Use references.
5951 (register_size): Likewise.
5952 (register_data): Likewise.
5953 * tdesc.c (target_desc::~target_desc): Remove free calls.
5954 (target_desc::operator==): Use std::vector compare.
5955 (init_target_desc): Use reference.
5956 (tdesc_create_reg): Use reg constructors.
5957 * tdesc.h (struct target_desc): Replace pointer with object.
5958
dff7492c
AH
59592018-03-23 Alan Hayward <alan.hayward@arm.com>
5960
5961 * regcache.c (find_register_by_number): Make static.
5962 (find_regno): Use find_register_by_number
5963 * regcache.h (struct reg): Remove declaration.
5964
d80e5242
AH
59652018-03-23 Alan Hayward <alan.hayward@arm.com>
5966
5967 * tdesc.c (target_desc::~target_desc): Move to here.
5968 (target_desc::operator==): Likewise.
5969 * tdesc.h (target_desc::~target_desc): Move from here.
5970 (target_desc::operator==): Likewise.
5971
f69c5afb
AA
59722018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5973
5974 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5975
ce29f843
AA
59762018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5977
5978 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5979 S390_TDESC_GS.
5980 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5981 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5982 and init_registers_s390_gs_linux64.
5983
c49bd90b
AA
59842018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5985
5986 * linux-s390-low.c (s390_fill_gs): Remove function.
5987 (s390_fill_gsbc): Remove function.
5988 (s390_regsets): Set fill functions for the guarded storage regsets
5989 to NULL.
5990
7edb9bd3
AA
59912018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5992
5993 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5994 the word size. Add comment.
5995 (s390_get_wordsize): New function.
5996 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5997 pswm with it. Instead, use s390_get_wordsize to determine the
5998 word size first and derive the correct tdesc from that directly.
5999
39be3c7e
SM
60002018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6001
6002 * Makefile.in: Include silent-rules.mk.
6003 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6004 (COMPILE): Add ECHO_CXX.
6005 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6006 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6007 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6008 (version-generated.c): Add ECHO_GEN.
6009 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6010 (IPAGENT_COMPILE): Add ECHO_CXX.
6011 (%-generated.c): Add ECHO_REGDAT.
6012
3ae9ce5d
TT
60132018-03-14 Tom Tromey <tom@tromey.com>
6014
6015 PR cli/14977:
6016 * ax.c (ax_printf): Special case for NULL.
6017
e6a58aa8
SM
60182018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6019
6020 * linux-low.c (linux_qxfer_libraries_svr4): Use
6021 xml_escape_text_append.
6022
f6e8a41e
SM
60232018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6024
6025 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6026
b9671caf
SM
60272018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6028
6029 * server.c (handle_general_set): Remove unnecessary xstrdup.
6030
e80aaf61
SM
60312018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6032
6033 * server.c (parse_debug_format_options): Adjust to
6034 delim_string_to_char_ptr_vec changes.
6035 * thread-db.c (thread_db_load_search): Adjust to
6036 dirnames_to_char_ptr_vec changes.
6037
b1223e78
MM
60382018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6039
6040 * target.h (target_enable_btrace, target_disable_btrace)
6041 (target_read_btrace, target_read_btrace_conf): Turn macro into
6042 inline function. Throw error if target method is not defined.
6043 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6044 check for btrace target method. Be prepared to handle exceptions
6045 from btrace target methods.
6046
81561546
SDJ
60472018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6048
6049 * server.c (captured_main): Change order of error message printed
6050 when the current working directory cannot be found.
6051
25e3c82c
SDJ
60522018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6053
6054 * server.c: Include "filenames.h" and "pathstuff.h".
6055 (program_name): Delete variable.
6056 (program_path): New anonymous class.
6057 (get_exec_wrapper): Use "program_path" instead of
6058 "program_name".
6059 (handle_v_run): Likewise.
6060 (captured_main): Likewise.
6061 (process_serial_event): Likewise.
6062
b4987c95
SDJ
60632018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6064
6065 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6066 (OBJS): Add "pathstuff.o".
6067 * server.c (current_directory): New global variable.
6068 (captured_main): Initialize "current_directory".
6069
f46cd62a
AH
60702018-02-26 Alan Hayward <alan.hayward@arm.com>
6071
6072 * tdesc.c: Use common/tdesc.h.
6073 * tdesc.h: Likewise.
6074
a543c5ca
AH
60752018-02-20 Alan Hayward <alan.hayward@arm.com>
6076 Simon Marchi <simon.marchi@ericsson.com>
6077
6078 * Makefile.in: Switch order of make rules.
6079
b5884fa7
AH
60802018-02-19 Alan Hayward <alan.hayward@arm.com>
6081
6082 * Makefile.in: Add common directory in build.
6083 * configure.ac: Add common reference.
6084 * configure: Regenerate.
6085
de6242d3
MM
60862018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6087
6088 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6089 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6090 * spu-low.c (spu_target_ops): Likewise.
6091 * win32-low.c (win32_target_ops): Likewise.
6092 * server.c (supported_btrace_packets): Report packets unconditionally.
6093 * target.h (target_ops) <supports_btrace>: Remove.
6094 (target_supports_btrace): Remove.
6095
9ee23a85
MM
60962018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6097
6098 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6099 (handle_btrace_disable): Change return type to void. Use exceptions
6100 to report errors.
6101 (handle_btrace_general_set): Catch exception and copy message to
6102 return message.
6103
8ce47547
TT
61042018-02-08 Tom Tromey <tom@tromey.com>
6105
6106 * linux-low.c (install_software_single_step_breakpoints): Use
6107 make_scoped_restore.
6108 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6109 (do_restore_current_thread_cleanup): Remove.
6110 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6111 declare.
6112
45dd3607
TT
61132018-02-08 Tom Tromey <tom@tromey.com>
6114
6115 * mem-break.c (set_raw_breakpoint_at): Use
6116 gdb::unique_xmalloc_ptr.
6117
e671cd59
PA
61182018-01-30 Pedro Alves <palves@redhat.com>
6119
6120 PR gdb/13211
6121 * target.c (target_terminal::terminal_state): Rename to ...
6122 (target_terminal::m_terminal_state): ... this.
6123
a0aad537
JC
61242018-01-19 James Clarke <jrtc27@jrtc27.com>
6125
6126 * linux-low.c (handle_extended_wait): Surround call to
6127 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6128
4d9b86e1
SM
61292018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6130
6131 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6132 linux_ptrace_attach_fail_reason_string now returning an
6133 std::string.
6134 (linux_attach): Likewise.
6135 * thread-db.c (attach_thread): Likewise.
6136
f517c180
EA
61372018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6138
6139 PR gdb/21559
6140 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6141 checking for fs_base/gs_base fields in struct user_regs_struct.
6142 * configure: Regenerate.
6143
9a70f35c
YQ
61442018-01-16 Yao Qi <yao.qi@linaro.org>
6145
6146 PR gdb/18749
6147 * linux-low.c (fetch_register): Call supply_register instead of
6148 error.
6149
605fd3c6
YQ
61502018-01-08 Yao Qi <yao.qi@linaro.org>
6151 Simon Marchi <simon.marchi@ericsson.com>
6152
6153 * Makefile.in (OBS): Remove selftest.o.
6154 * configure.ac: Set srv_selftest_objs if $development is true.
6155 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6156 * configure: Re-generated.
6157 * server.c (captured_main): Wrap variable selftest_filter with
6158 GDB_SELF_TEST.
6159
2cc05030
SM
61602018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6161
6162 * server.c (parse_debug_format_options): Return std::string.
6163 (handle_monitor_command, captured_main): Adjust.
6164
e379cee6
PA
61652018-01-05 Pedro Alves <palves@redhat.com>
6166
6167 PR gdb/18653
6168 * server.c (captured_main): Pass quiet=false to
6169 save_original_signals_state.
6170
82e1e79a
JB
61712018-01-01 Joel Brobecker <brobecker@adacore.com>
6172
6173 * gdbreplay.c (gdbreplay_version): Update copyright year in
6174 version message.
6175 * server.c (gdbserver_version): Likewise.
6176
8e481c3b
TT
61772017-12-08 Tom Tromey <tom@tromey.com>
6178
6179 * ax.c (ax_printf): Update.
6180
a8806230
YQ
61812017-12-07 Yao Qi <yao.qi@linaro.org>
6182
6183 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6184 aarch64_linux_read_description.
6185 * linux-amd64-ipa.c (idx2mask): New array.
6186 (get_ipa_tdesc): Move idx2mask out.
6187 (initialize_low_tracepoint): Initialize target descriptions.
6188 * linux-i386-ipa.c (idx2mask): New array.
6189 (get_ipa_tdesc): Move idx2mask out.
6190 (initialize_low_tracepoint): Initialize target descriptions.
6191
d4a0e8b5
SM
61922017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * tdesc.c (struct tdesc_type): Change return type.
6195 (tdesc_add_flag): Change parameter type.
6196 (tdesc_add_bitfield): Likewise.
6197 (tdesc_add_field): Likewise.
6198 (tdesc_set_struct_size): Likewise.
6199
798a7429
SM
62002017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6201
6202 * regcache.c (registers_to_string): Remove unused variable.
6203
c0e15c9b
SM
62042017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6205
6206 * inferiors.c (for_each_inferior_with_data): Remove.
6207 * inferiors.h (for_each_inferior_with_data): Remove.
6208 * server.c (handle_qxfer_threads_worker): Change parameter type.
6209 (handle_qxfer_threads_proper): Use for_each_thread.
6210
f0045347
SM
62112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6212
6213 * inferiors.c (for_each_inferior): Remove.
6214 (clear_inferiors): Use for_each_thread.
6215 * inferiors.h (for_each_inferior): Remove.
6216 * linux-low.c (linux_wait_for_event_filtered): Use
6217 for_each_thread.
6218 (linux_stabilize_threads): Likewise.
6219 * regcache.c (regcache_release): Likewise.
6220 * server.c (gdb_wants_all_threads_stopped): Likewise.
6221 (clear_pending_status_callback): Remove.
6222 (handle_status): Use for_each_thread.
6223 (captured_main): Likewise.
6224 * win32-low.c (child_init_thread_list): Likewise.
6225 (win32_clear_inferiors): Likewise.
6226 (fake_breakpoint_event): Likewise.
6227
9521758b
SM
62282017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6229
6230 * inferiors.h (find_inferior): Remove.
6231 * inferiors.c (find_inferior): Remove.
6232
8f86d7aa
SM
62332017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6234
6235 * linux-low.c (resume_status_pending_p): Update comment.
6236 (need_step_over_p): Update comment.
6237
e2b44075
SM
62382017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6239
6240 * linux-low.c (proceed_one_lwp): Return void, change parameter
6241 type.
6242 (unsuspend_and_proceed_one_lwp): Likewise.
6243 (proceed_all_lwps): Use for_each_thread.
6244 (unstop_all_lwps): Likewise.
6245
c80825ff
SM
62462017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6247
6248 * linux-low.c (linux_resume_one_thread): Return void, take
6249 parameter directly.
6250 (linux_resume): Use for_each_thread.
6251
df3e4dbe
SM
62522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6253
6254 * linux-low.c (send_sigstop_callback): Return void, change
6255 parameter type. Rename to...
6256 (send_sigstop): ... this.
6257 (suspend_and_send_sigstop_callback): Return void, change parameter
6258 type. Rename to...
6259 (suspend_and_send_sigstop): ... this.
6260 (stop_all_lwps): Use for_each_thread.
6261
5a6b0a41
SM
62622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6263
6264 * linux-low.c (lwp_running): Return bool, remove unused
6265 argument.
6266 (linux_stabilize_threads): Use find_thread.
6267
39a64da5
SM
62682017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6269
6270 * linux-low.c (select_singlestep_lwp_callback): Remove.
6271 (count_events_callback): Remove.
6272 (select_event_lwp_callback): Remove.
6273 (select_event_lwp): Use find_thread/for_each_thread.
6274
a1385b7b
SM
62752017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6276
6277 * linux-low.c (not_stopped_callback): Return bool, take filter
6278 argument directly.
6279 (linux_wait_for_event_filtered): Use find_thread.
6280 (linux_wait_1): Likewise.
6281
454296a2
SM
62822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6283
6284 * linux-low.c (same_lwp): Remove.
6285 (find_lwp_pid): Use find_thread.
6286
6b2a85da
SM
62872017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6288
6289 * linux-low.c (delete_lwp_callback): Remove.
6290 (linux_mourn): Use for_each_thread.
6291
798a38e8
SM
62922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6293
6294 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6295 args parameter, don't check for pid.
6296 (linux_detach): Use for_each_thread.
6297
e4eb0dec
SM
62982017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6299
6300 * linux-low.c (struct counter): Remove.
6301 (second_thread_of_pid_p): Remove.
6302 (last_thread_of_process_p): Use find_thread.
6303
83e1b6c1
SM
63042017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6305
6306 * inferiors.c (find_inferior_in_random): Remove.
6307 * inferiors.h (find_inferior_in_random): Remove.
6308 * linux-low.c (status_pending_p_callback): Return bool, accept
6309 parameter ptid directly.
6310 (linux_wait_for_event_filtered): Use find_thread_in_random.
6311 (linux_wait_1): Likewise.
6312
8dc7b443
SM
63132017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6314
6315 * inferiors.c (find_inferior_id): Remove.
6316 (find_thread_ptid): Move implemention from find_inferior_id to
6317 here.
6318 * inferiors.h (find_inferior_id): Remove.
6319 * server.c (handle_status): Use find_thread_ptid.
6320 (process_serial_event): Likewise.
6321 * thread-db.c (find_one_thread): Likewise.
6322 (thread_db_thread_handle): Likewise.
6323 * win32-low.c (thread_rec): Likewise.
6324 (child_delete_thread): Likewise.
6325 (win32_thread_alive): Likewise.
6326 (get_child_debug_event): Likewise.
6327
da25033c
SM
63282017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6329
6330 * linux-mips-low.c (update_watch_registers_callback): Return
6331 void, remove pid_p parameter, don't check for pid.
6332 (mips_insert_point, mips_remove_point): Use for_each_thread.
6333
c91bb56b
SM
63342017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6335
6336 * lynx.low (lynx_delete_thread_callback): Remove.
6337 (lynx_mourn): Use for_each_thread.
6338
634a3254
SM
63392017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6340
6341 * regcache.c (regcache_invalidate_one): Remove.
6342 (regcache_invalidate_pid): use for_each_thread.
6343
41272101
TT
63442017-11-26 Tom Tromey <tom@tromey.com>
6345
6346 * linux-low.c (linux_create_inferior): Update.
6347
f5291a6f
UW
63482017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6349
6350 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6351
6654d750
AH
63522017-11-24 Alan Hayward <alan.hayward@arm.com>
6353
6354 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6355 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6356 * linux-aarch64-tdesc-selftest.c: New file.
6357 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6358
63592017-11-24 Alan Hayward <alan.hayward@arm.com>
6360
6361 * configure.srv: Add new file.
6362 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6363 * linux-aarch64-tdesc-selftest.c: New file.
6364 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6365
49bdb7ee
AH
63662017-11-24 Alan Hayward <alan.hayward@arm.com>
6367
6368 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6369 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6370 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6371
d6d7ce56
AH
63722017-11-24 Alan Hayward <alan.hayward@arm.com>
6373
6374 * configure.srv: Add new files.
6375 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6376 aarch64_linux_read_description.
6377 * linux-aarch64-low.c (aarch64_linux_read_description):
6378 Merge with aarch64_arch_setup.
6379 (aarch64_arch_setup): Call aarch64_linux_read_description.
6380 * linux-aarch64-tdesc.c: New file.
6381 * linux-aarch64-tdesc.h: New file.
6382
506fe5f4
YQ
63832017-11-24 Yao Qi <yao.qi@linaro.org>
6384
6385 * configure.srv: Set $srv_regobj for tic6x-linux.
6386 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6387 (tic6x_read_description): Move some code to tic6x_arch_setup.
6388 (tic6x_tdesc_test): New function.
6389 (initialize_low_arch): Call selftests::register_test.
6390
29f9a567
YQ
63912017-11-22 Yao Qi <yao.qi@linaro.org>
6392
6393 * remote-utils.c (prepare_resume_reply): Use memcpy.
6394
578290ec
SM
63952017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6396
6397 * linux-low.c (kill_one_lwp_callback): Return void, take
6398 argument directly, don't filter on pid.
6399 (linux_kill): Use for_each_thread.
6400
eca55aec
SM
64012017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6402
6403 * linux-low.c (need_step_over_p): Return bool, remove dummy
6404 argument.
6405 (linux_resume, proceed_all_lwps): Use find_thread.
6406
25c28b4d
SM
64072017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6408
6409 * linux-low.c (resume_status_pending_p): Return bool, remove
6410 flag_p argument.
6411 (linux_resume): Use find_thread.
6412
5fdda392
SM
64132017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6414
6415 * linux-low.c (struct thread_resume_array): Remove.
6416 (linux_set_resume_request): Return void, take arguments
6417 directly.
6418 (linux_resume): Use for_each_thread.
6419
fcb056a5
SM
64202017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6421
6422 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6423 return bool, remove data argument.
6424 (linux_stabilize_threads): Use find_thread.
6425
139720c5
SM
64262017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6427
6428 * linux-low.c (unsuspend_one_lwp): Remove.
6429 (unsuspend_all_lwps): Use for_each_thread, inline code from
6430 unsuspend_one_lwp.
6431
6d1e5673
SM
64322017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6433
6434 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6435 * linux-low.c (struct iterate_over_lwps_args): Remove.
6436 (iterate_over_lwps_filter): Remove.
6437 (iterate_over_lwps): Use find_thread.
6438
bbf550d5
SM
64392017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6440
6441 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6442 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6443 code from reset_lwp_ptrace_options_callback.
6444
00192f77
SM
64452017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6446
6447 * linux-arm-low.c (struct update_registers_data): Remove.
6448 (update_registers_callback): Return void, take arguments
6449 directly, don't check thread's pid.
6450 (arm_insert_point, arm_remove_point): Use for_each_thread.
6451
2bee2b6c
SM
64522017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6453
6454 * win32-low.c (continue_one_thread): Return void, take argument
6455 directly.
6456 (child_continue): Use for_each_thread.
6457
0b360f19
SM
64582017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6459
6460 * win32-i386-low.c (update_debug_registers_callback): Rename
6461 to ...
6462 (update_debug_registers): ... this, return void, remove pid_p arg.
6463 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6464
f27866ba
SM
64652017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6466
6467 * inferiors.h (struct process_info): Add constructor, initialize
6468 fields..
6469 <syscalls_to_catch>: Change type to std::vector<int>.
6470 * inferiors.c (add_process): Allocate process_info with new.
6471 (remove_process): Free process_info with delete.
6472 * linux-low.c (handle_extended_wait): Adjust.
6473 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6474 * server.c (handle_general_set): Adjust.
6475
e849ea89
PA
64762017-11-16 Pedro Alves <palves@redhat.com>
6477
6478 * remote-utils.c (remote_close): Block SIGIO signals instead of
6479 uninstalling the SIGIO handler.
6480
1d0aa65c
AH
64812017-11-16 Alan Hayward <alan.hayward@arm.com>
6482
6483 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6484
3491a34c
YQ
64852017-11-16 Yao Qi <yao.qi@linaro.org>
6486
6487 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6488 (tic6x_store_gregset): Likewise.
6489 (tic6x_usrregs_info): Move it up.
6490
a602f924
AH
64912017-11-15 Alan Hayward <alan.hayward@arm.com>
6492
6493 * Makefile.in: Update arch rules.
6494 * configure.srv: Explicitly mark arch/ files.
6495
5616b6c3
AS
64962017-11-13 Andreas Schwab <schwab@suse.de>
6497
6498 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6499 function.
6500 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6501
d1928160
PA
65022017-11-06 Pedro Alves <palves@redhat.com>
6503
6504 * config.in, configure: Regenerate.
6505
bac608e7
SM
65062017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6507
6508 * target.c (struct thread_search): Remove.
6509 (thread_search_callback): Remove.
6510 (prepare_to_access_memory): Use for_each_thread instead of
6511 find_inferior. Inline code from thread_search_callback.
6512
eaddb425
SM
65132017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6514
6515 * server.c (struct visit_actioned_threads_data): Remove.
6516 (visit_actioned_threads): Change prototype to take arguments
6517 directly.
6518 (resume): Use find_thread instead of find_inferior.
6519
99078d34
SM
65202017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6521
6522 * server.c (queue_stop_reply_callback): Change prototype, return
6523 void.
6524 (find_status_pending_thread_callback): Remove.
6525 (handle_status): Replace find_inferior with find_thread and
6526 for_each_thread.
6527
cc628f3d
AH
65282017-10-25 Alan Hayward <alan.hayward@arm.com>
6529
6530 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6531 with REGNO.
6532 (aarch64_store_gregset): Likewise.
6533 (aarch64_fill_fpregset): Likewise.
6534 (aarch64_store_fpregset): Likewise.
6535
4d3bb80e
SM
65362017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6537
6538 * gdbthread.h (find_thread, for_each_thread): New functions.
6539 * inferiors.c (thread_of_pid): Remove.
6540 (find_any_thread_of_pid): Use find_thread.
6541 * linux-low.c (num_lwps): Use for_each_thread.
6542
7a7cdfa0
YQ
65432017-10-17 Yao Qi <yao.qi@linaro.org>
6544
6545 * Makefile.in: Remove one rule.
6546 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6547
e675d170
YQ
65482017-10-17 Yao Qi <yao.qi@linaro.org>
6549
6550 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6551 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6552
7eb4e0f9
YQ
65532017-10-17 Yao Qi <yao.qi@linaro.org>
6554
6555 * configure.srv: Rename arm.o with arch/arm.o.
6556
60d6cfc9
YQ
65572017-10-17 Yao Qi <yao.qi@linaro.org>
6558
6559 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6560 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6561 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6562 (arch-i386.o, arch-amd64.o): Remove rules.
6563 (arch/%.o): New rule.
6564 Update POSTCOMPILE and COMPILE.pre.
6565 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6566 * configure: Re-generated.
6567 * configure.srv: Replace arch-i386.o with arch/i386.o.
6568 Replace arch-amd64.o with arch/amd64.o.
6569
5bfda255
YQ
65702017-10-16 Yao Qi <yao.qi@linaro.org>
6571
6572 * configure: Regenerated.
6573
9c80ecd6
SM
65742017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6575
6576 * inferiors.h: (struct inferior_list): Remove.
6577 (struct inferior_list_entry); Remove.
6578 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6579 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6580 get_first_inferior): Remove.
6581 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6582 find_inferior_id, find_inferior_in_random): Change signature.
6583 * inferiors.c (all_threads): Change type to
6584 std::list<thread_info *>.
6585 (get_thread): Remove macro.
6586 (find_inferior, find_inferior_id): Change signature, implement
6587 using find_thread.
6588 (find_inferior_in_random): Change signature, implement using
6589 find_thread_in_random.
6590 (for_each_inferior, for_each_inferior_with_data): Change
6591 signature, implement using for_each_thread.
6592 (add_inferior_to_list, remove_inferior): Remove.
6593 (add_thread, get_first_thread, thread_of_pid,
6594 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6595 (get_first_inferior, one_inferior_p, clear_inferior_list):
6596 Remove.
6597 (clear_inferiors, get_thread_process): Update.
6598 * gdbthread.h: Include <list>.
6599 (struct thread_info) <entry>: Remove field.
6600 <id>: New field.
6601 (all_threads): Change type to std::list<thread_info *>.
6602 (get_first_inferior): Add doc.
6603 (find_thread, for_each_thread, find_thread_in_random): New
6604 functions.
6605 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6606 * linux-arm-low.c (update_registers_callback): Update.
6607 * linux-low.c (second_thread_of_pid_p): Update.
6608 (kill_one_lwp_callback, linux_detach_lwp_callback,
6609 delete_lwp_callback, status_pending_p_callback, same_lwp,
6610 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6611 iterate_over_lwps, not_stopped_callback,
6612 resume_stopped_resumed_lwps, count_events_callback,
6613 select_singlestep_lwp_callback, select_event_lwp_callback,
6614 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6615 suspend_and_send_sigstop_callback, wait_for_sigstop,
6616 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6617 lwp_running, linux_set_resume_request, resume_status_pending_p,
6618 need_step_over_p, start_step_over, linux_resume_one_thread,
6619 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6620 reset_lwp_ptrace_options_callback): Update.
6621 * linux-mips-low.c (update_watch_registers_callback): Update.
6622 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6623 Update.
6624 (free_register_cache_thread_one): Remove.
6625 (regcache_release): Update.
6626 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6627 handle_qxfer_threads_worker): Update.
6628 (handle_query): Update, use list iterator.
6629 (visit_actioned_threads, handle_pending_status,
6630 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6631 clear_pending_status_callback, set_pending_status_callback,
6632 find_status_pending_thread_callback, handle_status,
6633 process_serial_event): Update.
6634 * target.c (thread_search_callback): Update.
6635 * thread-db.c (thread_db_get_tls_address): Update.
6636 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6637 Update.
6638 * win32-i386-low.c (update_debug_registers_callback): Update.
6639 * win32-low.c (delete_thread_info, child_delete_thread,
6640 continue_one_thread, suspend_one_thread,
6641 get_child_debug_event): Adjust.
6642
9179355e
SM
66432017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6644
6645 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6646 * inferiors.h: Include <list>.
6647 (struct process_info) <entry>: Remove field.
6648 <pid>: New field.
6649 (pid_of): Change macro to function.
6650 (ptid_of, lwpid_of): Remove macro.
6651 (all_processes): Change type to std::list<process_info *>.
6652 (ALL_PROCESSES): Remove macro.
6653 (for_each_process, find_process): New function.
6654 * inferiors.c (all_processes): Change type to
6655 std::list<process_info *>.
6656 (find_thread_process): Adjust.
6657 (add_process): Likewise.
6658 (remove_process): Likewise.
6659 (find_process_pid): Likewise.
6660 (get_first_process): Likewise.
6661 (started_inferior_callback): Remove.
6662 (have_started_inferiors_p): Adjust.
6663 (attached_inferior_callback): Remove.
6664 (have_attached_inferiors_p): Adjust.
6665 * linux-low.c (check_zombie_leaders): Likewise.
6666 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6667 (x86_linux_update_xmltarget): Adjust.
6668 * server.c (handle_query): Likewise.
6669 (gdb_reattached_process): Remove.
6670 (handle_status): Adjust.
6671 (kill_inferior_callback): Likewise.
6672 (detach_or_kill_inferior): Remove.
6673 (print_started_pid): Likewise.
6674 (print_attached_pid): Likewise.
6675 (detach_or_kill_for_exit): Update.
6676 (process_serial_event): Likewise.
6677 * linux-arm-low.c (arm_new_fork): Likewise.
6678
c9cb8905
SM
66792017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6680
6681 * dll.h: Include <list>.
6682 (struct dll_info): Add constructor.
6683 <entry>: Remove field.
6684 (all_dlls): Change type to std::list<dll_info>.
6685 * dll.c: Include <algorithm>.
6686 (get_dll): Remove macro.
6687 (all_dlls): Change type to std::list<dll_info *>.
6688 (free_one_dll): Remove.
6689 (match_dll): Likewise.
6690 (loaded_dll): Adjust.
6691 (unloaded_dll): Adjust to all_dlls type change, use
6692 std::find_if. Inline code from match_dll.
6693 (clear_dlls): Adjust to all_dlls type change.
6694 * server.c (emit_dll_description): Remove.
6695 (handle_qxfer_libraries): Adjust to all_dlls type change,
6696 integrate emit_dll_description's functionality.
6697
04ec7890
SM
66982017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6699
6700 * linux-low.h (struct linux_target_ops) <delete_process>: New
6701 field.
6702 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6703 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6704 (struct linux_target_ops): Add delete_process callback.
6705 * linux-arm-low.c (arm_delete_process): New.
6706 (struct linux_target_ops): Add delete_process callback.
6707 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6708 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6709 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6710 * linux-mips-low.c (mips_linux_delete_process): New.
6711 (struct linux_target_ops): Add delete_process callback.
6712 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6713 * linux-s390-low.c (struct linux_target_ops): Likewise.
6714 * linux-sh-low.c (struct linux_target_ops): Likewise.
6715 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6716 * linux-tile-low.c (struct linux_target_ops): Likewise.
6717 * linux-x86-low.c (x86_linux_delete_process): New.
6718 (struct linux_target_ops): Add delete_process callback.
6719 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6720
466eecee
SM
67212017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6722
6723 * linux-aarch64-low.c (the_low_target): Add thread delete
6724 callback.
6725 * linux-arm-low.c (arm_delete_thread): New function.
6726 (the_low_target): Add thread delete callback.
6727 * linux-bfin-low.c (the_low_target): Likewise.
6728 * linux-crisv32-low.c (the_low_target): Likewise.
6729 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6730 set.
6731 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6732 field.
6733 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6734 * linux-mips-low.c (mips_linux_delete_thread): New function.
6735 (the_low_target): Add thread delete callback.
6736 * linux-ppc-low.c (the_low_target): Likewise.
6737 * linux-s390-low.c (the_low_target): Likewise.
6738 * linux-sh-low.c (the_low_target): Likewise.
6739 * linux-tic6x-low.c (the_low_target): Likewise.
6740 * linux-tile-low.c (the_low_target): Likewise.
6741 * linux-x86-low.c (the_low_target): Likewise.
6742 * linux-xtensa-low.c (the_low_target): Likewise.
6743
b79f7801
YZ
67442017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6745
6746 * win32-low.c: Include "common-inferior.h".
6747
bc3b087d
SDJ
67482017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6749
6750 * inferiors.c (set_inferior_cwd): New function.
6751 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6752 (handle_query): Inform that QSetWorkingDir is supported.
6753 * win32-low.c (create_process): Pass the inferior's cwd to
6754 CreateProcess.
6755
d092c5a2
SDJ
67562017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6757
6758 * inferiors.c (current_inferior_cwd): New global variable.
6759 (get_inferior_cwd): New function.
6760 * inferiors.h (struct process_info) <cwd>: New field.
6761
7da0a886
SDJ
67622017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6763
6764 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6765 (OBS): Add gdb_tilde_expand.o.
6766
289a6840
SM
67672017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6768
6769 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6770 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6771
256642e8
PA
67722017-09-29 Pedro Alves <palves@redhat.com>
6773
6774 * ax.c (gdb_parse_agent_expr): Constify.
6775 * ax.h (gdb_parse_agent_expr): Constify.
6776 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6777 Constify.
6778 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6779 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6780 * remote-utils.h (read_ptid): Constify.
6781 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6782 (process_point_options, process_serial_event): Constify.
6783 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6784 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6785 (cmd_qtbuffer): Constify.
6786
5b9ca4d4
PA
67872017-09-29 Pedro Alves <palves@redhat.com>
6788
6789 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6790 fails.
6791
94c207e0
PA
67922017-09-29 Pedro Alves <palves@redhat.com>
6793
6794 * linux-low.c (handle_extended_wait): Pass parent thread instead
6795 of process to thread_db_notice_clone.
6796 * linux-low.h (thread_db_notice_clone): Replace parent process
6797 parameter with parent thread parameter.
6798 * thread-db.c (find_one_thread): Add comment.
6799 (thread_db_notice_clone): Replace parent process parameter with
6800 parent thread parameter. Temporarily switch to the parent thread.
6801
75352e28
SDJ
68022017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6803
6804 * gdbthread.h: Include "common-gdbthread.h".
6805 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6806 "if" when validating the ptid.
6807 * remote-utils.c: Include "gdbthread.h".
6808 (prepare_resume_reply): Use "switch_to_thread".
6809 * target.c (done_accessing_memory): Likewise.
6810
ad339634
AA
68112017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6812
6813 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6814 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6815 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6816 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6817 s390x-gs-linux64-ipa.o to ipa_obj.
6818 * linux-s390-low.c (HWCAP_S390_GS): New define.
6819 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6820 New functions.
6821 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6822 (s390_arch_setup): Check for guarded-storage support and choose
6823 appropriate tdesc.
6824 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6825 init_registers_s390x_gs_linux64.
6826 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6827 enum value.
6828 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6829 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6830
cc4d742f
SM
68312017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6832
6833 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6834
f6327dcb
KB
68352017-09-21 Kevin Buettner <kevinb@redhat.com>
6836
6837 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6838 (thread_db_thread_handle): Declare.
6839 * linux-low.c (linux_target_ops): Initialize thread_handle.
6840 * server.c (handle_qxfer_threads_worker): Add support for
6841 "handle" attribute.
6842 * target.h (struct target_ops): Add new function pointer,
6843 thread_handle.
6844 (target_thread_handle): Define.
6845 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6846 field in lwp.
6847 (thread_db_thread_handle): New function.
6848
86299109
KB
68492017-09-21 Kevin Buettner <kevinb@redhat.com>
6850
6851 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6852 * linux-low.h (thread_db_notice_clone): Declare.
6853 * thread-db.c (thread_db_notice_clone): New function.
6854
f557a88a
PA
68552017-09-21 Pedro Alves <palves@redhat.com>
6856
6857 * server.c (gdb_read_memory, handle_status, process_serial_event)
6858 (handle_serial_event, handle_target_event): Adjust to
6859 set_desired_thread prototype change.
6860 * target.c (set_desired_thread): Remove 'use_general' parameter
6861 and adjust.
6862 * target.h (set_desired_thread): Remove 'use_general' parameter.
6863
223ffa71
TT
68642017-09-20 Tom Tromey <tom@tromey.com>
6865
6866 * target.c (target_terminal::terminal_state): Define.
6867 (target_terminal::init): Rename from target_terminal_init.
6868 (target_terminal::inferior): Rename from
6869 target_terminal_inferior.
6870 (target_terminal::ours): Rename from target_terminal_ours.
6871 (target_terminal::ours_for_output, target_terminal::info): New.
6872
04fd3ba9
SM
68732017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6874
6875 * server.c (accumulate_file_name_length): Remove.
6876 (emit_dll_description): Adjust to std::string change.
6877 (handle_qxfer_libraries): Use std::string to hold document.
6878
5e187554
SM
68792017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6880
6881 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6882 return type of xml_escape_text.
6883 * server.c (emit_dll_description): Likewise.
6884
1526853e
SM
68852017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6886
6887 * server.c (captured_main): Accept argument for --selftest.
6888 Update run_tests call.
6889 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6890 when registering selftests.
6891
c4dfafab
SDJ
68922017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6893
6894 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6895 instead of "VEC" for "target_desc.reg_defs".
6896 (regcache_cpy): Likewise.
6897 (registers_to_string): Likewise.
6898 (registers_from_string): Likewise.
6899 (find_regno): Likewise.
6900 (supply_regblock): Likewise.
6901 (regcache_raw_read_unsigned): Likewise.
6902 * tdesc.c (init_target_desc): Likewise.
6903 (tdesc_create_reg): Likewise.
6904 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6905 (struct target_desc) <reg_defs>: Convert to "std::vector".
6906 (target_desc): Do not initialize "reg_defs".
6907 (~target_desc): Update code to use "std::vector" instead of "VEC"
6908 for "target_desc.reg_defs".
6909 (operator==): Likewise.
6910
124aceb4
SM
69112017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6912
6913 * inferiors.h (thread_to_gdb_id): Remove.
6914 * inferiors.c (thread_to_gdb_id): Remove.
6915 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6916 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6917 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6918 Likewise.
6919 * nto-low.c (nto_fetch_registers, nto_store_registers,
6920 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6921
96cde54f
SM
69222017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6923
6924 * inferiors.h (gdb_id_to_thread_id): Remove.
6925 * inferiors.c (gdb_id_to_thread_id): Remove.
6926 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6927 removal. Move pid declaration closer to where it's used.
6928
e8ca139e
SM
69292017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6930
6931 * server.c (handle_detach): New function.
6932 (process_serial_event): Move code out, call handle_detach.
6933
f8a4e119
SM
69342017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6935
6936 * server.c (require_running): Rename to ...
6937 (require_running_or_return): ... this ...
6938 (require_running_or_break): ... and this.
6939 (handle_query, process_serial_event): Adjust.
6940
0eb0a407
SM
69412017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6942
6943 * linux-low.c (linux_set_resume_request): Remove unused
6944 variables.
6945
785922a5
SM
69462017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6947
6948 * server.c (first_thread_of): Remove.
6949 (process_serial_event): Replace usage of first_thread_of with
6950 find_any_thread_of_pid.
6951 * tracepoint.c (same_process_p): Remove.
6952 (gdb_agent_about_to_close): Replace usage of same_process_p with
6953 find_any_thread_of_pid.
6954 * linux-x86-low.c (same_process_callback): Remove.
6955 (x86_arch_setup_process_callback): Replace usage of
6956 same_process_callback with find_any_thread_of_pid.
6957 * thread-db.c (any_thread_of): Remove.
6958 (switch_to_process): Replace usage of any_thread_of with
6959 find_any_thread_of_pid.
6960 * inferiors.c (thread_pid_matches_callback): Remove.
6961 (find_thread_process): Adjust to use find_any_thread_of_pid.
6962
a059f00c
SDJ
69632017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6964
6965 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6966 with "!VEC_empty".
a059f00c 6967
cc397f3a
SDJ
69682017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6969
6970 * linux-low.c (handle_extended_wait): Use
6971 "allocate_target_description" instead of "XNEW".
6972 * linux-x86-low.c (initialize_low_arch): Likewise.
6973
22916b07
YQ
69742017-09-05 Yao Qi <yao.qi@linaro.org>
6975
6976 * configure.srv (srv_i386_regobj): Remove.
6977 (srv_amd64_regobj): Remove.
6978 (srv_regobj): Set it to "" for x86 non-linux targets.
6979 * linux-x86-tdesc.c (i386_linux_read_description):
6980 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6981 (init_registers_i386): Remove the declaration.
6982 (tdesc_i386): Remove the declaration.
6983 (lynx_i386_arch_setup): Call i386_create_target_description.
6984 * nto-x86-low.c: Likewise.
6985 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6986 [!__x86_64__]: include arch/i386.h.
6987 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6988
38602d55
YQ
69892017-09-05 Yao Qi <yao.qi@linaro.org>
6990
6991 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6992 i386/amd64-XXX-linux from it.
6993
44b886ff
YQ
69942017-09-05 Yao Qi <yao.qi@linaro.org>
6995
6996 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6997 false.
6998 (ipa_amd64_linux_regobj): Remove.
6999 (ipa_x32_linux_regobj): Remove.
7000
b4570e4b
YQ
70012017-09-05 Yao Qi <yao.qi@linaro.org>
7002
7003 * Makefile.in (arch-amd64.o): New rule.
7004 * configure.srv: Append arch-amd64.o.
7005 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7006 (get_ipa_tdesc): Call amd64_linux_read_description.
7007 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7008 and init_registers_amd64_XXX.
7009 * linux-x86-low.c (x86_linux_read_description): Call
7010 amd64_linux_read_description.
7011 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7012 (initialize_low_arch): Don't call init_registers_x32_XXX and
7013 init_registers_amd64_XXX.
7014 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7015 and tdesc_amd64_XXX.
7016 [__x86_64__] (amd64_tdesc_test): New function.
7017 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7018 and init_registers_amd64_XXX.
7019 * linux-x86-tdesc.c: Include arch/amd64.h.
7020 (xcr0_to_tdesc_idx): New function.
7021 (i386_linux_read_description): New function.
7022 (amd64_get_ipa_tdesc_idx): New function.
7023 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7024 (amd64_get_ipa_tdesc): Declare.
7025
d1f28ea2
YQ
70262017-09-05 Yao Qi <yao.qi@linaro.org>
7027
7028 * configure.srv (srv_i386_linux_xmlfiles): Remove
7029 i386/i386-XXX-linux.xml from it.
7030
25a93583
YQ
70312017-09-05 Yao Qi <yao.qi@linaro.org>
7032
7033 * configure.srv: Set srv_i386_linux_regobj empty if $development
7034 is false.
7035 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7036 initialize_low_tdesc.
7037 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7038 with #if initialize_low_tdesc.
7039 * linux-x86-tdesc-selftest.c: New file.
7040 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7041
5f035c07
YQ
70422017-09-05 Yao Qi <yao.qi@linaro.org>
7043
7044 * Makefile.in (arch-i386.o): New rule.
7045 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7046 (x86_64-*-linux*): Likewise.
7047 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7048 include arch/i386.h.
7049 (i386_linux_read_description): Remove code and call
7050 i386_create_target_description.
7051 * tdesc.c (allocate_target_description): New function.
7052 * tdesc.h (set_tdesc_architecture): Remove declaration.
7053 (set_tdesc_osabi): Likewise.
7054
0abe8a89
YQ
70552017-09-05 Yao Qi <yao.qi@linaro.org>
7056
7057 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7058 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7059 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7060 .xmltarget.
7061 * server.c (get_features_xml): Call tdesc_get_features_xml.
7062 * tdesc.c (set_tdesc_architecture): New function.
7063 (set_tdesc_osabi): New function.
7064 (tdesc_get_features_xml): New function.
7065 (tdesc_create_feature): Add an argument.
7066 * tdesc.h (struct target_desc) <features>: New field.
7067 <arch, osabi>: New field.
7068 (~target_desc): xfree features, arch, and osabi.
7069 (target_desc::oerator==): Don't compare .xmltarget.
7070 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7071 (set_tdesc_osabi): Likewise.
7072 (tdesc_get_features_xml): Likewise.
7073
0a188386
YQ
70742017-09-05 Yao Qi <yao.qi@linaro.org>
7075
7076 * linux-x86-tdesc.c: Include selftest.h.
7077 (i386_tdesc_test): New function.
7078 (initialize_low_tdesc): Call selftests::register_test.
7079 * tdesc.h: Include regdef.h.
7080 (target_desc): Override operator == and !=.
7081
f49ff000
YQ
70822017-09-05 Yao Qi <yao.qi@linaro.org>
7083
7084 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7085 (ipa_obj): Likewise.
7086 * linux-i386-ipa.c: Include common/x86-xstate.h
7087 (get_ipa_tdesc): Call i386_linux_read_description.
7088 (initialize_low_tracepoint): Don't call init_registers_XXX
7089 functions, call initialize_low_tdesc instead.
7090 * linux-x86-low.c (x86_linux_read_description): Call
7091 i386_linux_read_description.
7092 (initialize_low_arch): Don't call init_registers_i386_XXX
7093 functions, call initialize_low_tdesc.
7094 * linux-x86-tdesc.c: New file.
7095 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7096 (i386_get_ipa_tdesc_idx): Declare.
7097 (i386_get_ipa_tdesc): Declare.
7098 (initialize_low_tdesc): Declare.
7099
2b68ef2f
YQ
71002017-09-05 Yao Qi <yao.qi@linaro.org>
7101
7102 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7103 instead of 0.
7104
f7000548
YQ
71052017-09-05 Yao Qi <yao.qi@linaro.org>
7106
7107 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7108 * regcache.c (get_thread_regcache): Use VEC_length.
7109 (init_register_cache): Likewise.
7110 (regcache_cpy): Likewise.
7111 (registers_to_string): Iterate reg_defs via VEC_iterate.
7112 (find_regno): Likewise.
7113 (find_register_by_number): Use VEC_index.
7114 (register_size): Call find_register_by_number.
7115 (register_data): Call find_register_by_number.
7116 (supply_regblock): Use VEC_length.
7117 (regcache_raw_read_unsigned): Likewise.
7118 * tdesc.c (init_target_desc): Iterate reg_defs via
7119 VEC_iterate.
7120 (default_description): Update initializer.
7121 (copy_target_description): Don't update field num_registers.
7122 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7123 <num_registers>: Remove.
7124
50a421ac
SM
71252017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7126
7127 * Makefile.in (.SECONDARY): Define target.
7128
23fdd69e
SM
71292017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7130
7131 * linux-low.c (linux_wait_1): Adjust.
7132 * server.c (queue_stop_reply_callback): Adjust.
7133
0a2dde4a
SDJ
71342017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7135
7136 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7137 QEnvironmentUnset and QEnvironmentReset packets.
7138 (handle_query): Inform remote that QEnvironmentHexEncoded,
7139 QEnvironmentUnset and QEnvironmentReset are supported.
7140
6afd337d
SM
71412017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7142
7143 * inferiors.h (inferior_target_data): Rename to ...
7144 (thread_target_data): ... this.
7145 (inferior_regcache_data): Rename to ...
7146 (thread_regcache_data): ... this.
7147 (set_inferior_regcache_data): Rename to ...
7148 (set_thread_regcache_data): ... this.
7149 * inferiors.c (inferior_target_data): Rename to ...
7150 (thread_target_data): ... this.
7151 (inferior_regcache_data): Rename to ...
7152 (thread_regcache_data): ... this.
7153 (set_inferior_regcache_data): Rename to ...
7154 (set_thread_regcache_data): ... this.
7155 (free_one_thread): Update.
7156 * linux-low.h (get_thread_lwp): Update.
7157 * regcache.c (get_thread_regcache): Update.
7158 (regcache_invalidate_thread): Update.
7159 (free_register_cache_thread): Update.
7160 * win32-i386-low.c (update_debug_registers_callback): Update.
7161 (win32_get_current_dr): Update.
7162 * win32-low.c (thread_rec): Update.
7163 (delete_thread_info): Update.
7164 (continue_one_thread): Update.
7165 (suspend_one_thread): Update.
7166
a160cc46
SM
71672017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7168
7169 * inferiors.c (set_inferior_target_data): Remove.
7170 * inferiors.h (set_inferior_target_data): Remove.
7171
6d580b63
YQ
71722017-08-18 Yao Qi <yao.qi@linaro.org>
7173
7174 * Makefile.in (OBS): Add selftest.o.
7175 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7176 * configure, config.in: Re-generated.
7177 * server.c: Include common/sefltest.h.
7178 (captured_main): Handle option --selftest.
7179
f5a29eb0
YQ
71802017-08-09 Yao Qi <yao.qi@linaro.org>
7181
7182 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7183 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7184 i386-avx-mpx.o and i386-mmx.o.
7185 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7186 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7187 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7188 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7189 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7190 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7191 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7192 i386/amd64-avx-mpx.xml.
7193
57757c2f
YQ
71942017-08-09 Yao Qi <yao.qi@linaro.org>
7195
7196 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7197 and x32-avx-avx512.o.
7198 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7199 i386/x32-avx-avx512.xml.
7200
229d26fc
SM
72012017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7202
7203 * tracepoint.h (enum class fast_tpoint_collect_result): New
7204 enumeration.
7205 (fast_tracepoint_collecting): Change return type to
7206 fast_tpoint_collect_result.
7207 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7208 * linux-low.h: Include tracepoint.h.
7209 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7210 fast_tpoint_collect_result.
7211 * linux-low.c (handle_tracepoints): Adjust.
7212 (linux_fast_tracepoint_collecting): Change return type to
7213 fast_tpoint_collect_result.
7214 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7215 linux_wait_1, stuck_in_jump_pad_callback,
7216 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7217 proceed_one_lwp): Adjust to type change.
7218
2e1e43e1
YQ
72192017-07-10 Yao Qi <yao.qi@linaro.org>
7220
7221 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7222
adc764e7
YQ
72232017-06-29 Yao Qi <yao.qi@linaro.org>
7224
7225 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7226 Remove.
7227 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7228
a206891a
SM
72292017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7230
7231 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7232
9a6c7d9c
SDJ
72332017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7234
7235 * linux-low.c (linux_create_inferior): Adjust code to access the
7236 environment information via 'gdb_environ' class.
7237 * lynx-low.c (lynx_create_inferior): Likewise.
7238 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7239 (get_environ): Return a pointer to 'our_environ'.
7240 (captured_main): Initialize 'our_environ'.
7241 * server.h (get_environ): Adjust prototype.
7242 * spu-low.c (spu_create_inferior): Adjust code to access the
7243 environment information via 'gdb_environ' class.
7244
ae3e2ccf
SM
72452017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7246
7247 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7248 usage of "register" keyword.
7249
3e019bdc
SM
72502017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7251
7252 * configure: Re-generate.
7253
8465943a
SM
72542017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7255
7256 * configure: Re-generate.
7257
cf0dd6f0
SM
72582017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7259
7260 * Makefile.in (COMPILE.pre): Add "-x c++".
7261
9845682b
SDJ
72622017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7263
7264 * fork-child.c: Conditionally include <signal.h>.
7265
aefd8b33
SDJ
72662017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7267
7268 * server.c (handle_general_set): Handle new packet
7269 "QStartupWithShell".
7270 (handle_query): Add "QStartupWithShell" to the list of supported
7271 packets.
7272 (gdbserver_usage): Add help text explaining the
7273 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7274 options.
7275 (captured_main): Recognize and act upon the presence of the new
7276 CLI options.
7277
2090129c
SDJ
72782017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7279 Pedro Alves <palves@redhat.com>
7280
7281 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7282 * configure: Regenerate.
7283 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7284 "fork-inferior.o".
7285 (i[34567]86-*-lynxos*): Likewise.
7286 (spu*-*-*): Likewise.
7287 * fork-child.c: New file.
7288 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7289 and "environ.h".
7290 (linux_ptrace_fun): New function.
7291 (linux_create_inferior): Adjust function prototype to reflect
7292 change on "target.h". Adjust function code to use
7293 "fork_inferior".
7294 (linux_request_interrupt): Delete "signal_pid".
7295 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7296 (lynx_ptrace_fun): New function.
7297 (lynx_create_inferior): Adjust function prototype to reflect
7298 change on "target.h". Adjust function code to use
7299 "fork_inferior".
7300 * nto-low.c (nto_create_inferior): Adjust function prototype and
7301 code to reflect change on "target.h". Update comments.
7302 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7303 "common-terminal.h" and "environ.h".
7304 (terminal_fd): Moved to fork-child.c.
7305 (old_foreground_pgrp): Likewise.
7306 (restore_old_foreground_pgrp): Likewise.
7307 (last_status): Make it global.
7308 (last_ptid): Likewise.
7309 (our_environ): New variable.
7310 (startup_with_shell): Likewise.
7311 (program_name): Likewise.
7312 (program_argv): Rename to...
7313 (program_args): ...this.
7314 (wrapper_argv): New variable.
7315 (start_inferior): Delete function.
7316 (get_exec_wrapper): New function.
7317 (get_exec_file): Likewise.
7318 (get_environ): Likewise.
7319 (prefork_hook): Likewise.
7320 (post_fork_inferior): Likewise.
7321 (postfork_hook): Likewise.
7322 (postfork_child_hook): Likewise.
7323 (handle_v_run): Update code to deal with arguments coming from the
7324 remote host. Update calls from "start_inferior" to
7325 "create_inferior".
7326 (captured_main): Likewise. Initialize environment variable. Call
7327 "have_job_control".
7328 * server.h (post_fork_inferior): New prototype.
7329 (get_environ): Likewise.
7330 (last_status): Declare.
7331 (last_ptid): Likewise.
7332 (signal_pid): Likewise.
7333 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7334 (spu_ptrace_fun): New function.
7335 (spu_create_inferior): Adjust function prototype to reflect change
7336 on "target.h". Adjust function code to use "fork_inferior".
7337 * target.c (target_terminal_init): New function.
7338 (target_terminal_inferior): Likewise.
7339 (target_terminal_ours): Likewise.
7340 * target.h: Include <vector>.
7341 (struct target_ops) <create_inferior>: Update prototype.
7342 (create_inferior): Update macro.
7343 * utils.c (gdb_flush_out_err): New function.
7344 * win32-low.c (win32_create_inferior): Adjust function prototype
7345 and code to reflect change on "target.h".
7346
043a4934
SDJ
73472017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7348
7349 * inferiors.c (switch_to_thread): New function.
7350
15652511
SDJ
73512017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7352
7353 * Makefile.in (SFILE): Add "common/job-control.c".
7354 (OBS): Add "job-control.o".
7355
21ea5acd
SDJ
73562017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7357
7358 * Makefile: Remove "@host_makefile_frag@".
7359
e13cb306
PA
73602017-05-05 Pedro Alves <palves@redhat.com>
7361
7362 * configure: Regenerate.
7363
c94fee56
SDJ
73642017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7365
7366 * configure: Regenerate.
7367
a0ff9e1a
SM
73682017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7369
7370 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7371 software_single_step change of return type to
7372 std::vector<CORE_ADDR>.
7373 * linux-low.c (install_software_single_step_breakpoints):
7374 Likewise.
7375 * linux-low.h (install_software_single_step_breakpoints):
7376 Likewise.
7377
be628ab8
SDJ
73782017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7379
7380 * remote-utils.c: Include "gdb_termios.h" instead of
7381 "terminal.h".
7382 * terminal.h: Delete file.
7383
7c5ded6a
SDJ
73842017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7385
7386 * server.c: Include <vector>.
7387 <program_argv, wrapper_argv>: Convert to std::vector.
7388 (start_inferior): Rewrite function to use C++.
7389 (handle_v_run): Likewise. Update code that calculates the argv
7390 based on the vRun packet; use C++.
7391 (captured_main): Likewise.
7392
436252de
SM
73932017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7394
7395 * server.c (handle_v_cont): Initialize thread_resume::thread
7396 with null_ptid.
7397
9bf2a700
PA
73982017-04-05 Pedro Alves <palves@redhat.com>
7399
7400 * configure: Regenerate.
7401
a121b7c1
PA
74022017-04-05 Pedro Alves <palves@redhat.com>
7403
7404 * gdbreplay.c (sync_error): Constify.
7405 * linux-x86-low.c (push_opcode): Constify.
7406
21c8a587
PA
74072017-04-05 Pedro Alves <palves@redhat.com>
7408
7409 * win32-low.c (get_child_debug_event)
7410 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7411 Report TARGET_WAITKIND_SPURIOUS instead.
7412
fb32b4f7
PA
74132017-04-05 Pedro Alves <palves@redhat.com>
7414
e79be6e5
SM
7415 * remote-utils.c (remote_prepare, remote_open): Constify.
7416 * remote-utils.h (remote_prepare, remote_open): Constify.
7417 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7418
65dd1e59
SM
74192017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7420
7421 * Makefile.in (clean): Clear .deps.
7422
8fa5b777
SM
74232017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7424
7425 * .gitignore: Remove generated files, replace with wildcard.
7426 * (clean): Replace removal of generated files with wildcard.
7427 (version.c): Replace with...
7428 (version-generated.c): ...this.
7429 (xml-builtin.c): Replace with...
7430 (xml-builtin-generated.c): ...this.
7431 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7432 (%.c: *regformats*): Replace with...
7433 (%-generated.c: *regformats*): ...this.
7434
a12e714b
MF
74352017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7436
7437 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7438 (xtensa_fill_gregset): Call collect_register_by_name for
7439 threadptr register.
7440 (xtensa_store_gregset): Call supply_register_by_name for
7441 threadptr register.
7442
1a09b50a
MF
74432017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7444
7445 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7446 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7447 (xtensa_store_gregset): Call supply_register for all registers in
7448 a0_regnum..a0_regnum + C0_NREGS range.
7449
1a01e7c6
SM
74502017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7451
7452 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7453 (ax-ipa.o: ax.c): Remove.
7454 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7455 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7456 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7457 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7458 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7459
36bc18a8
SM
74602017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7461
7462 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7463 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7464 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7465 (errors-ipa.o: ../common/errors.c): Remove.
7466 (format-ipa.o: ../common/format.c): Remove.
7467 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7468
a8ebe3d5
SM
74692017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7470
7471 * Makefile.in (%-ipa.o: %.c): New rule.
7472 (tracepoint-ipa.o: tracepoint.c): Remove.
7473 (utils-ipa.o: utils.c): Remove.
7474 (remote-utils-ipa.o: remote-utils.c): Remove.
7475 (regcache-ipa.o: regcache.c): Remove.
7476 (i386-linux-ipa.o: i386-linux.c): Remove.
7477 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7478 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7479 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7480 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7481 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7482 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7483 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7484 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7485 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7486 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7487 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7488 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7489 (aarch64-ipa.o: aarch64.c): Remove.
7490 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7491 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7492 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7493 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7494 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7495 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7496 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7497 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7498 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7499 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7500 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7501 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7502 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7503 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7504 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7505 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7506 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7507 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7508 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7509 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7510 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7511 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7512 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7513 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7514 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7515 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7516 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7517 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7518 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7519 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7520 (tdesc-ipa.o: tdesc.c): Remove.
7521 (x32-linux-ipa.o: x32-linux.c): Remove.
7522 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7523 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7524
50cfacb7
SM
75252017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7526
7527 * Makefile.in (%.o: ../arch/%.c): New rule.
7528 (arm.o: ../arch/arm.c): Remove.
7529 (arm-linux.o: ../arch/arm-linux.c): Remove.
7530 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7531 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7532
c5a22423
SM
75332017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7534
7535 * Makefile.in (%.o: ../nat/%.c): New rule.
7536 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7537 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7538 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7539 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7540 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7541 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7542 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7543 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7544 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7545 (linux-personality.o: ../nat/linux-personality.c): Remove.
7546 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7547 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7548 (x86-linux.o: ../nat/x86-linux.c): Remove.
7549 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7550 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7551
6bda016b
SM
75522017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7553
7554 * Makefile.in (%.o: ../common/%.c): New rule.
7555 (signals.o: ../common/signals.c): Remove.
7556 (print-utils.o: ../common/print-utils.c): Remove.
7557 (rsp-low.o: ../common/rsp-low.c): Remove.
7558 (common-utils.o: ../common/common-utils.c): Remove.
7559 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7560 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7561 (vec.o: ../common/vec.c): Remove.
7562 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7563 (xml-utils.o: ../common/xml-utils.c): Remove.
7564 (ptid.o: ../common/ptid.c): Remove.
7565 (buffer.o: ../common/buffer.c): Remove.
7566 (format.o: ../common/format.c): Remove.
7567 (filestuff.o: ../common/filestuff.c): Remove.
7568 (agent.o: ../common/agent.c): Remove.
7569 (errors.o: ../common/errors.c): Remove.
7570 (environ.o: ../common/environ.c): Remove.
7571 (common-debug.o: ../common/common-debug.c): Remove.
7572 (cleanups.o: ../common/cleanups.c): Remove.
7573 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7574 (fileio.o: ../common/fileio.c): Remove.
7575 (common-regcache.o: ../common/common-regcache.c): Remove.
7576 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7577 (new-op.o: ../common/new-op.c): Remove.
7578 (btrace-common.o: ../common/btrace-common.c): Remove.
7579
21122961
SM
75802017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7581
7582 * Makefile.in (%.o: ../target/%.c): New rule.
7583 (waitstatus.o: ../target/waitstatus.c): Remove.
7584
c362e621
SM
75852017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7586
7587 * Makefile.in
7588 (%.c: ../regformats/%.dat,
7589 (%.c: ../regformats/arm/%.dat,
7590 (%.c: ../regformats/i386/%.dat,
7591 (%.c: ../regformats/rs6000/%.dat): New rules.
7592 (aarch64.c): Remove.
7593 (reg-arm.c): Remove.
7594 (arm-with-iwmmxt.c): Remove.
7595 (arm-with-vfpv2.c): Remove.
7596 (arm-with-vfpv3.c): Remove.
7597 (arm-with-neon.c): Remove.
7598 (reg-bfin.c): Remove.
7599 (reg-cris.c): Remove.
7600 (reg-crisv32.c): Remove.
7601 (i386.c): Remove.
7602 (i386-linux.c): Remove.
7603 (i386-avx.c): Remove.
7604 (i386-avx-linux.c): Remove.
7605 (i386-avx-avx512.c): Remove.
7606 (i386-avx-avx512-linux.c): Remove.
7607 (i386-mpx.c): Remove.
7608 (i386-mpx-linux.c): Remove.
7609 (i386-avx-mpx-avx512-pku.c): Remove.
7610 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7611 (i386-avx-mpx.c): Remove.
7612 (i386-avx-mpx-linux.c): Remove.
7613 (i386-mmx.c): Remove.
7614 (i386-mmx-linux.c): Remove.
7615 (reg-ia64.c): Remove.
7616 (reg-m32r.c): Remove.
7617 (reg-m68k.c): Remove.
7618 (reg-cf.c): Remove.
7619 (mips-linux.c): Remove.
7620 (mips-dsp-linux.c): Remove.
7621 (mips64-linux.c): Remove.
7622 (mips64-dsp-linux.c): Remove.
7623 (nios2-linux.c): Remove.
7624 (powerpc-32.c): Remove.
7625 (powerpc-32l.c): Remove.
7626 (powerpc-altivec32l.c): Remove.
7627 (powerpc-cell32l.c): Remove.
7628 (powerpc-vsx32l.c): Remove.
7629 (powerpc-isa205-32l.c): Remove.
7630 (powerpc-isa205-altivec32l.c): Remove.
7631 (powerpc-isa205-vsx32l.c): Remove.
7632 (powerpc-e500l.c): Remove.
7633 (powerpc-64l.c): Remove.
7634 (powerpc-altivec64l.c): Remove.
7635 (powerpc-cell64l.c): Remove.
7636 (powerpc-vsx64l.c): Remove.
7637 (powerpc-isa205-64l.c): Remove.
7638 (powerpc-isa205-altivec64l.c): Remove.
7639 (powerpc-isa205-vsx64l.c): Remove.
7640 (s390-linux32.c): Remove.
7641 (s390-linux32v1.c): Remove.
7642 (s390-linux32v2.c): Remove.
7643 (s390-linux64.c): Remove.
7644 (s390-linux64v1.c): Remove.
7645 (s390-linux64v2.c): Remove.
7646 (s390-te-linux64.c): Remove.
7647 (s390-vx-linux64.c): Remove.
7648 (s390-tevx-linux64.c): Remove.
7649 (s390x-linux64.c): Remove.
7650 (s390x-linux64v1.c): Remove.
7651 (s390x-linux64v2.c): Remove.
7652 (s390x-te-linux64.c): Remove.
7653 (s390x-vx-linux64.c): Remove.
7654 (s390x-tevx-linux64.c): Remove.
7655 (tic6x-c64xp-linux.c): Remove.
7656 (tic6x-c64x-linux.c): Remove.
7657 (tic6x-c62x-linux.c): Remove.
7658 (reg-sh.c): Remove.
7659 (reg-sparc64.c): Remove.
7660 (reg-spu.c): Remove.
7661 (amd64.c): Remove.
7662 (amd64-linux.c): Remove.
7663 (amd64-avx.c): Remove.
7664 (amd64-avx-linux.c): Remove.
7665 (amd64-avx-avx512.c): Remove.
7666 (amd64-avx-avx512-linux.c): Remove.
7667 (amd64-mpx.c): Remove.
7668 (amd64-mpx-linux.c): Remove.
7669 (amd64-avx-mpx-avx512-pku.c): Remove.
7670 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7671 (amd64-avx-mpx.c): Remove.
7672 (amd64-avx-mpx-linux.c): Remove.
7673 (x32.c): Remove.
7674 (x32-linux.c): Remove.
7675 (x32-avx.c): Remove.
7676 (x32-avx-linux.c): Remove.
7677 (x32-avx-avx512.c): Remove.
7678 (x32-avx-avx512-linux.c): Remove.
7679 (reg-xtensa.c): Remove.
7680 (reg-tilegx.c): Remove.
7681 (reg-tilegx32.c): Remove.
7682
1672e0d9
SDJ
76832017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7684
7685 * Makefile.in (SFILES): Add "common/environ.c".
7686 (OBJS): Add "common/environ.h".
7687
239b6d10
WT
76882017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7689
7690 * configure.ac: Check if the fs_base and gs_base members of
7691 `struct user_regs_struct' exist.
7692 * config.in: Regenerated.
7693 * configure: Likewise.
7694
694b382c
AT
76952017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7696
7697 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7698 target_read_memory.
7699 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7700 (get_next_pcs_syscall_next_pc): Likewise.
7701
7dc53023
LM
77022016-12-23 Luis Machado <lgustavo@codesourcery.com>
7703
7704 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7705 * nto-x86-low.c: Likewise.
7706
ad02e4fe
SM
77072016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7708
7709 * Makefile.in: Include disable-implicit-rules.mk.
7710
dcb07cfa
PA
77112016-11-23 Pedro Alves <palves@redhat.com>
7712
7713 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7714 (debug_vprintf): Use std::chrono::steady_clock instead of
7715 gettimeofday. Use '.' instead of ':'.
7716 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7717 (get_timestamp): Use std::chrono::steady_clock instead of
7718 gettimeofday.
7719
8629c02c
SM
77202016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7721
7722 * Makefile.in: Fix whitespace formatting.
7723
b593ecca
SM
77242016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7725
7726 * Makefile.in (SFILES, OBS): Flatten list and order
7727 alphabetically.
7728
9986ba08
PA
77292016-11-23 Pedro Alves <palves@redhat.com>
7730
7731 * event-loop.c (handle_file_event): Use warning.
7732 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7733 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7734 Use warning.
7735
4eefa7bc
PA
77362016-11-23 Pedro Alves <palves@redhat.com>
7737
7738 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7739 output.
7740 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7741 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7742 debug_printf and debug_flush for debug output.
7743 * server.c (handle_general_set): Likewise.
7744 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7745 output.
7746
5443506e
SM
77472016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7748
7749 * Makefile.in (.c.o): Replace rule with ...
7750 (%.o: %.c): ... this one.
7751
3b165252
SM
77522016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7753
7754 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7755 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7756 make.
7757 * configure.ac: Remove checks for the make program.
7758 * configure: Re-generate.
7759
0bcda685
PA
77602016-10-28 Pedro Alves <palves@redhat.com>
7761
7762 * Makefile.in (CXX_DIALECT): Get from configure.
7763 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7764 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7765 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7766 * config.in: Regenerate.
7767 * configure: Regenerate.
7768
c3805894
YQ
77692016-10-27 Yao Qi <yao.qi@linaro.org>
7770
7771 * linux-low.c (linux_supports_range_stepping): Return true if
7772 can_software_single_step return true.
7773
89342618
YQ
77742016-10-27 Yao Qi <yao.qi@linaro.org>
7775
7776 * inferiors.c (find_inferior_in_random): New function.
7777 * inferiors.h (find_inferior_in_random): Declare.
7778 * linux-low.c (linux_wait_for_event_filtered): Call
7779 find_inferior_in_random instead of find_inferior.
7780
e3652c84
YQ
77812016-10-27 Yao Qi <yao.qi@linaro.org>
7782
7783 * linux-low.c (linux_wait_1): If single-step breakpoints are
7784 inserted, remove them.
7785
5a04c4cf
PA
77862016-10-26 Pedro Alves <palves@redhat.com>
7787
7788 * linux-low.c (handle_extended_wait): Link parent/child fork
7789 threads.
7790 (linux_wait_1): Unlink them.
7791 (linux_set_resume_request): Ignore resume requests for
7792 already-resumed and unhandled fork child threads.
7793 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7794 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7795 New functions.
7796 (handle_v_requests) <vCont>: Don't call require_running.
7797 * server.h (in_queued_stop_replies): New declaration.
7798
cb93dc7f
YQ
77992016-10-24 Yao Qi <yao.qi@linaro.org>
7800
7801 PR server/20733
7802 * linux-aarch64-low.c (append_insns): Cast the return value to
7803 'uint32_t *'.
7804
a1078bea
YQ
78052016-10-10 Yao Qi <yao.qi@linaro.org>
7806
7807 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7808
1fb77080
SDJ
78092016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7810
7811 * target.c (target_supports_multi_process): New function, moved
7812 from...
7813 * target.h (target_supports_multi_process): ... here. Remove
7814 macro.
7815
39b5a3b9
TT
78162016-10-05 Tom Tromey <tom@tromey.com>
7817
7818 PR remote/20655:
7819 * tracepoint.c (handle_tracepoint_bkpts): Check
7820 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7821
c1d0b70a
YQ
78222016-10-05 Yao Qi <yao.qi@linaro.org>
7823
7824 * configure.srv: Update the path of arm-*.xml files.
7825
0a69eedb
YQ
78262016-10-05 Terry Guo <terry.guo@arm.com>
7827 Yao Qi <yao.qi@linaro.org>
7828
7829 * Makefile.in: Adjust the path of rules.
7830 * configure.srv: Update the path of xml files.
7831 * regformats/arm-with-iwmmxt.dat: Regenerated.
7832 * regformats/arm-with-neon.dat: Likewise.
7833 * regformats/arm-with-vfpv2.dat: Likewise.
7834 * regformats/arm-with-vfpv3.dat Likewise.
7835
17e16485
YQ
78362016-09-30 Yao Qi <yao.qi@linaro.org>
7837
7838 PR gdbserver/20627
7839 * target.c (target_stop_and_wait): Don't call
7840 target_continue_no_signal, use resume_stop instead.
7841
edeeb602
YQ
78422016-09-26 Yao Qi <yao.qi@linaro.org>
7843
7844 * linux-low.c (linux_wait_1): Call debug_exit.
7845
503b1c39
PA
78462016-09-23 Pedro Alves <palves@redhat.com>
7847
7848 * Makefile.in (SFILES): Add common/new-op.c.
7849 (OBS): Add common/new-op.o.
7850 (new-op.o): New rule.
7851
74172ecf
SM
78522016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7853
7854 * .gitinore: Ignore more files.
7855
fc6cda2e
YQ
78562016-09-21 Yao Qi <yao.qi@linaro.org>
7857
7858 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7859 23.
7860
bc1e6c81
SDJ
78612016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7862
7863 * server.c (start_inferior): Call target_mourn_inferior instead of
7864 mourn_inferior; pass ptid_t argument to it.
7865 (resume): Likewise.
7866 (handle_target_event): Likewise.
7867 * target.c (target_mourn_inferior): New function.
7868 * target.h (mourn_inferior): Delete macro.
7869
0e00e962
AA
78702016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7871
7872 * linux-low.c (lwp_is_stepping): New function.
7873
1d8cb77d
CL
78742016-09-06 Carl Love <cel@us.ibm.com>
7875
7876 * server.c (start_inferior): Fixed comment, requested comment change
7877 didn't get updated correctly. Removed reference to ptrace () call as
7878 it is only true on Linux systems.
7879
7313bced
CL
78802016-09-06 Carl Love <cel@us.ibm.com>
7881
7882 * server.c (start_inferior): Do not call
7883 function target_post_create_inferior () if the
7884 inferior process has already exited.
7885
cf6de44d
PA
78862016-09-05 Pedro Alves <palves@redhat.com>
7887
7888 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7889 (COMPILE.pre, CC_LD): Use CXX directly.
7890 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7891 * acinclude.m4: Don't include build-with-cxx.m4.
7892 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7893 * configure: Regenerate.
7894
c1da6748
AT
78952016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7896
7897 PR gdb/19495
7898 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7899 call writing data to own_buf.
7900
f2b9e3df
SDJ
79012016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7902
7903 * target.c (mywait): Call target_wait instead of
7904 the_target->wait.
7905 (target_wait): New function.
7906
049a8570
SDJ
79072016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7908
7909 * server.c (start_inferior): New variable 'ptid'. Replace calls
7910 to the_target->resume by target_continue{,_no_signal}, depending
7911 on the case.
7912 * target.c (target_stop_and_wait): Call target_continue_no_signal
7913 instead of the_target->resume.
7914 (target_continue): New function.
7915
3aa5cfa0
AT
79162016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7917
7918 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7919
754653a7
AZ
79202016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7921
7922 PR server/20491
7923 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7924 ps_prochandle.
7925 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7926 * linux-arm-low.c (ps_get_thread_area): Likewise.
7927 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7928 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7929 * linux-mips-low.c (ps_get_thread_area): Likewise.
7930 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7931 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7932 * linux-x86-low.c (ps_get_thread_area): Likewise.
7933 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7934
ed036b40
PA
79352016-08-19 Pedro Alves <palves@redhat.com>
7936
7937 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7938
c8ef42ee
PA
79392016-08-19 Pedro Alves <palves@redhat.com>
7940
7941 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7942 comment. Use memcpy instead of casting through unsigned long.
7943
9c235a72
PA
79442016-08-19 Pedro Alves <palves@redhat.com>
7945
7946 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7947 allocating around 0x80000000.
7948
201506da
PA
79492016-08-19 Pedro Alves <palves@redhat.com>
7950
7951 PR gdb/20415
7952 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7953 (x32-avx512-linux-ipa.o): New rules.
7954 * configure.ac (x86_64-*-linux*): New x32 check.
7955 * configure.srv (ipa_x32_linux_regobj): New.
7956 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7957 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7958 descriptions.
7959 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7960 descriptions.
7961 * configure: Regenerate.
7962
f348d89a
PA
79632016-08-09 Pedro Alves <palves@redhat.com>
7964
7965 PR gdb/18653
7966 * Makefile.in (OBS): Add signals-state-save-restore.o.
7967 (signals-state-save-restore.o): New rule.
7968 * config.in: Regenerate.
7969 * configure: Regenerate.
7970 * linux-low.c: Include "signals-state-save-restore.h".
7971 (linux_create_inferior): Call
7972 restore_original_signals_state.
7973 * server.c: Include "dispositions-save-restore.h".
7974 (captured_main): Call save_original_signals_state.
7975
1baf5149
PA
79762016-08-05 Pedro Alves <palves@redhat.com>
7977
7978 * configure: Regenerate.
7979
fcd4a73d
YQ
79802016-08-04 Yao Qi <yao.qi@linaro.org>
7981
7982 * linux-low.c (regsets_fetch_inferior_registers): Check
7983 errno is ESRCH or not.
7984
979659d0
YQ
79852016-08-02 Yao Qi <yao.qi@linaro.org>
7986
7987 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7988 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7989 (thread_db_load_search): Update.
7990 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7991 td_ta_set_event and td_ta_event_getmsg.
7992
6598661d
PA
79932016-07-26 Pedro Alves <palves@redhat.com>
7994
7995 PR server/20414
7996 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7997 of unsigned long for 64-bit registers and use uint32_t instead of
7998 unsigned int for 32-bit registers.
7999
9cf12d57
PA
80002016-07-26 Pedro Alves <palves@redhat.com>
8001
8002 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8003 to 'ptrace'.
8004
305450ed
TT
80052016-07-21 Tom Tromey <tom@tromey.com>
8006
8007 * configure: Rebuild.
8008
2583da7c
YQ
80092016-07-21 Yao Qi <yao.qi@linaro.org>
8010
8011 * mem-break.c (find_gdb_breakpoint): Cast bp to
8012 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8013
21536b36
YQ
80142016-07-21 Yao Qi <yao.qi@linaro.org>
8015
8016 * server.c (handle_v_requests): Support s and S actions
8017 if target_supports_software_single_step return true.
8018
8901d193
YQ
80192016-07-21 Yao Qi <yao.qi@linaro.org>
8020
8021 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8022 is resume_step, call maybe_hw_step.
8023 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8024 and unstop them.
8025 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8026 breakpoints or not.
8027 (proceed_one_lwp): If resume request is resume_step, install
8028 reinsert breakpoints and call maybe_hw_step.
8029
0e9a339e
YQ
80302016-07-21 Yao Qi <yao.qi@linaro.org>
8031
8032 * linux-low.c (proceed_one_lwp): Declare.
8033 (linux_resume_one_thread): Remove local variable 'step'.
8034 Lift code enqueue signal. Call proceed_one_lwp instead of
8035 linux_resume_one_lwp.
8036
4281b351
YQ
80372016-07-21 Yao Qi <yao.qi@linaro.org>
8038
8039 * linux-low.c (linux_resume_one_thread): Call
8040 enqueue_pending_signal.
8041
984a2c04
YQ
80422016-07-21 Yao Qi <yao.qi@linaro.org>
8043
8044 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8045 * inferiors.c (do_restore_current_thread_cleanup): New function.
8046 (make_cleanup_restore_current_thread): Likewise.
8047 * linux-low.c (install_software_single_step_breakpoints): Call
8048 make_cleanup_restore_current_thread. Switch current_thread to
8049 thread.
8050
bec903c9
YQ
80512016-07-21 Yao Qi <yao.qi@linaro.org>
8052
8053 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8054 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8055 (clone_one_breakpoint): Likewise.
8056 (delete_reinsert_breakpoints): Change parameter to thread.
8057 Callers updated.
8058 (has_reinsert_breakpoints): Likewise.
8059 (uninsert_reinsert_breakpoints): Likewise.
8060 (reinsert_reinsert_breakpoints): Likewise.
8061 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8062 (delete_reinsert_breakpoints): Likewise.
8063 (reinsert_reinsert_breakpoints): Likewise.
8064 (uninsert_reinsert_breakpoints): Likewise.
8065 (has_reinsert_breakpoints): Likewise.
8066
63c40ec7
YQ
80672016-07-21 Yao Qi <yao.qi@linaro.org>
8068
8069 * inferiors.c (get_thread_process): Make parameter const.
8070 * inferiors.h (get_thread_process): Update declaration.
8071 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8072 Add new parameters child_thread and parent_thread. Callers
8073 updated.
8074 * mem-break.h (clone_all_breakpoints): Update declaration.
8075
9aa76cd0
YQ
80762016-07-21 Yao Qi <yao.qi@linaro.org>
8077
8078 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8079 <command_list, handler>: Remove.
8080 (struct gdb_breakpoint): New.
8081 (struct other_breakpoint): New.
8082 (struct reinsert_breakpoint): New.
8083 (is_gdb_breakpoint): New function.
8084 (any_persistent_commands): Update command_list if
8085 is_gdb_breakpoint returns true.
8086 (set_breakpoint): Create breakpoints according to their types.
8087 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8088 (set_gdb_breakpoint_1): Likewise.
8089 (set_gdb_breakpoint): Likewise.
8090 (clear_breakpoint_conditions): Change parameter type to
8091 'struct gdb_breakpoint *'.
8092 (clear_breakpoint_commands): Likewise.
8093 (clear_breakpoint_conditions_and_commands): Likewise.
8094 (add_condition_to_breakpoint): Likewise.
8095 (add_breakpoint_condition): Likewise.
8096 (add_commands_to_breakpoint): Likewise.
8097 (check_breakpoints): Check other_breakpoint.
8098 (clone_one_breakpoint): Clone breakpopint according to its type.
8099 * mem-break.h (struct gdb_breakpoint): Declare.
8100 (set_gdb_breakpoint): Update declaration.
8101 (clear_breakpoint_conditions_and_commands): Likewise.
8102 (add_breakpoint_condition): Likewise.
8103 (add_breakpoint_commands): Likewise.
8104 * server.c (process_point_options): Change parameter type to
8105 'struct gdb_breakpoint *'.
8106
811f8301
YQ
81072016-07-21 Yao Qi <yao.qi@linaro.org>
8108
8109 * mem-break.c (set_breakpoint_at): Rename it to ...
8110 (set_breakpoint_type_at): ... it.
8111 (set_breakpoint_at): Call set_breakpoint_type_at.
8112 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8113 * mem-break.h (set_breakpoint_at): Update comments.
8114
b1c51e36
CLT
81152016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8116
8117 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8118 to buf parameter.
8119 (nios2_store_gregset): Likewise.
8120
ced2dffb
PA
81212016-07-01 Pedro Alves <palves@redhat.com>
8122 Antoine Tremblay <antoine.tremblay@ericsson.com>
8123
8124 * linux-low.c: Change interface to take the target lwp_info
8125 pointer directly and return void. Handle detaching from a zombie
8126 thread.
8127 (linux_detach_lwp_callback): New function.
8128 (linux_detach): Detach from the leader thread after detaching from
8129 the clone threads.
8130
2ac09a5b
YQ
81312016-06-28 Yao Qi <yao.qi@linaro.org>
8132
8133 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8134 for variable new_offset.
8135 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8136 (aarch64_ftrace_insn_reloc_cb): Likewise.
8137 (aarch64_ftrace_insn_reloc_tb): Likewise.
8138 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8139 PRIx64 instead of PRIx32.
8140
79e7fd4f
YQ
81412016-06-28 Yao Qi <yao.qi@linaro.org>
8142
8143 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8144 (the_low_target): Install arm_get_syscall_trapinfo.
8145
061fc021
YQ
81462016-06-28 Yao Qi <yao.qi@linaro.org>
8147
8148 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8149 function.
8150 (the_low_target): Install aarch64_get_syscall_trapinfo.
8151
4cc32bec
YQ
81522016-06-28 Yao Qi <yao.qi@linaro.org>
8153
8154 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8155 Callers updated.
8156 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8157 Remove parameter sysno.
8158 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8159 sysret.
8160
782c1122
AA
81612016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8162
8163 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8164 (s390_emit_ne_goto): Likewise.
8165 (s390_emit_lt_goto): Likewise.
8166 (s390_emit_le_goto): Likewise.
8167 (s390_emit_gt_goto): Likewise.
8168 (s390_emit_ge_goto): Likewise.
8169 (s390x_emit_eq_goto): Likewise.
8170 (s390x_emit_ne_goto): Likewise.
8171 (s390x_emit_lt_goto): Likewise.
8172 (s390x_emit_le_goto): Likewise.
8173 (s390x_emit_gt_goto): Likewise.
8174 (s390x_emit_ge_goto): Likewise.
8175 (s390_emit_ops_impl): Mark variable static.
8176 (s390x_emit_ops): Likewise.
8177
2e7b624b
YQ
81782016-06-17 Yao Qi <yao.qi@linaro.org>
8179
8180 * linux-low.c (handle_extended_wait): Call
8181 uninsert_reinsert_breakpoints for the parent process. Remove
8182 reinsert breakpoints from the child process. Reinsert them to
8183 the parent process when vfork is done.
8184 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8185 (reinsert_reinsert_breakpoints): New function.
8186 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8187 (reinsert_reinsert_breakpoints): Declare.
8188
8a81c5d7
YQ
81892016-06-17 Yao Qi <yao.qi@linaro.org>
8190
8191 * linux-low.c (handle_extended_wait): If the parent is doing
8192 step-over, remove the reinsert breakpoints from the forked child.
8193
f50bf8e5
YQ
81942016-06-17 Yao Qi <yao.qi@linaro.org>
8195
8196 * linux-low.c (unsuspend_all_lwps): Declare.
8197 (linux_low_filter_event): If thread exited, call finish_step_over.
8198 If step-over is finished, unsuspend other threads.
8199
8376a3cb
YQ
82002016-06-17 Yao Qi <yao.qi@linaro.org>
8201
8202 * linux-low.c (linux_resume_one_lwp_throw): Assert
8203 has_reinsert_breakpoints returns false.
8204 * mem-break.c (delete_disabled_breakpoints): Assert
8205 bp type isn't reinsert_breakpoint.
8206
f79b145d
YQ
82072016-06-17 Yao Qi <yao.qi@linaro.org>
8208
8209 * linux-low.c (maybe_hw_step): New function.
8210 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8211 (finish_step_over): Switch current_thread to lwp temporarily,
8212 and assert has_reinsert_breakpoints returns true.
8213 (proceed_one_lwp): Call maybe_hw_step.
8214 * mem-break.c (has_reinsert_breakpoints): New function.
8215 * mem-break.h (has_reinsert_breakpoints): Declare.
8216
0ae534d2
JT
82172016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8218
8219 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8220
fcdad592
YQ
82212016-05-17 Yao Qi <yao.qi@linaro.org>
8222
8223 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8224 instead of find_inferior.
8225
9e784964
YQ
82262016-05-05 Yao Qi <yao.qi@linaro.org>
8227
8228 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8229 Initialize res to zero.
8230
cf2ebb6e
YQ
82312016-05-05 Yao Qi <yao.qi@linaro.org>
8232
8233 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8234 to uint32_t.
8235
c1aebf87
UW
82362016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8237
8238 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8239 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8240 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8241
35fd2deb 82422016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8243 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8244
8245 * tracepoint.c (write_inferior_int8): New function.
8246 (cmd_qtenable_disable): Write enable flag using
8247 write_inferior_int8.
8248
484b3c32
YQ
82492016-04-25 Yao Qi <yao.qi@linaro.org>
8250
8251 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8252 (need_step_over_p): Return zero if the LWP has pending signals
8253 can be delivered on software single step target.
8254
85ba7d86
YQ
82552016-04-25 Yao Qi <yao.qi@linaro.org>
8256
8257 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8258 return instead of error.
8259
3539aa13
YQ
82602016-04-22 Yao Qi <yao.qi@linaro.org>
8261
8262 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8263 to 23.
8264
5b061e98
YQ
82652016-04-22 Yao Qi <yao.qi@linaro.org>
8266
8267 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8268 signal when stepping over breakpoint with software single
8269 step.
8270
3451269c
PA
82712016-04-21 Pedro Alves <palves@redhat.com>
8272
8273 * linux-s390-low.c (s390_collect_ptrace_register)
8274 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8275 add casts.
8276 (s390_check_regset): Use void * instead of gdb_byte *.
8277
a2358508
PA
82782016-04-20 Pedro Alves <palves@redhat.com>
8279
8280 * configure: Renegerate.
8281
6885166d
YQ
82822016-04-20 Yao Qi <yao.qi@linaro.org>
8283
8284 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8285 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8286 number 16.
8287 (arm_store_gregset): Likewise.
8288
2b863f51
WT
82892016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8290
8291 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8292 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8293 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8294 (amd64-avx-mpx-linux.c): New rules.
8295 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8296 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8297 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8298 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8299 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8300 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8301 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8302 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8303 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8304 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8305 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8306 * linux-x86-low.c (x86_linux_read_description): Add case for
8307 X86_XSTATE_AVX_MPX_MASK.
8308 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8309 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8310 init_registers_i386_avx_mpx_linux.
8311 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8312 (initialize_low_tracepoint): Call
8313 init_registers_i386_avx_mpx_linux.
8314 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8315 (initialize_low_tracepoint): Call
8316 init_registers_amd64_avx_mpx_linux.
8317 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8318 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8319 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8320 declarations.
8321
9b30624b
PA
83222016-04-18 Pedro Alves <palves@redhat.com>
8323
8324 * configure: Regenerate.
8325
45e3745e
AT
83262016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8327
8328 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8329 (aarch64_emit_sub): Likewise.
8330
2afc13ff
PA
83312016-04-12 Pedro Alves <palves@redhat.com>
8332
8333 * utils.c (prepare_to_throw_exception): Delete.
8334
6e774b13
SM
83352016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8336
8337 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8338
4dca19f8
MK
83392016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8340
8341 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8342
d0a9981f
MK
83432016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8344
8345 * linux-aarch64-ipa.c: Add <elf.h> include.
8346 * linux-ppc-ipa.c: Add <elf.h> include.
8347 * linux-s390-ipa.c: Add <elf.h> include.
8348
252db07e
MK
83492016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8350
8351 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8352 (get_raw_reg_ptr): Likewise.
8353 (get_trace_state_variable_value_ptr): Likewise.
8354 (set_trace_state_variable_value_ptr): Likewise.
8355 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8356 char *.
8357
14e2b6d9
MK
83582016-03-31 Wei-cheng Wang <cole945@gmail.com>
8359 Marcin Kościelnicki <koriakin@0x04.net>
8360
8361 PR/17221
8362 * linux-ppc-low.c (emit_insns): New function.
8363 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8364 (ppc_emit_prologue): New function.
8365 (ppc_emit_epilogue): New function.
8366 (ppc_emit_add): New function.
8367 (ppc_emit_sub): New function.
8368 (ppc_emit_mul): New function.
8369 (ppc_emit_lsh): New function.
8370 (ppc_emit_rsh_signed): New function.
8371 (ppc_emit_rsh_unsigned): New function.
8372 (ppc_emit_ext): New function.
8373 (ppc_emit_zero_ext): New function.
8374 (ppc_emit_log_not): New function.
8375 (ppc_emit_bit_and): New function.
8376 (ppc_emit_bit_or): New function.
8377 (ppc_emit_bit_xor): New function.
8378 (ppc_emit_bit_not): New function.
8379 (ppc_emit_equal): New function.
8380 (ppc_emit_less_signed): New function.
8381 (ppc_emit_less_unsigned): New function.
8382 (ppc_emit_ref): New function.
8383 (ppc_emit_const): New function.
8384 (ppc_emit_reg): New function.
8385 (ppc_emit_pop): New function.
8386 (ppc_emit_stack_flush): New function.
8387 (ppc_emit_swap): New function.
8388 (ppc_emit_stack_adjust): New function.
8389 (ppc_emit_call): New function.
8390 (ppc_emit_int_call_1): New function.
8391 (ppc_emit_void_call_2): New function.
8392 (ppc_emit_if_goto): New function.
8393 (ppc_emit_goto): New function.
8394 (ppc_emit_eq_goto): New function.
8395 (ppc_emit_ne_goto): New function.
8396 (ppc_emit_lt_goto): New function.
8397 (ppc_emit_le_goto): New function.
8398 (ppc_emit_gt_goto): New function.
8399 (ppc_emit_ge_goto): New function.
8400 (ppc_write_goto_address): New function.
8401 (ppc_emit_ops_impl): New static variable.
8402 (ppc64v1_emit_prologue): New function.
8403 (ppc64v2_emit_prologue): New function.
8404 (ppc64_emit_epilogue): New function.
8405 (ppc64_emit_add): New function.
8406 (ppc64_emit_sub): New function.
8407 (ppc64_emit_mul): New function.
8408 (ppc64_emit_lsh): New function.
8409 (ppc64_emit_rsh_signed): New function.
8410 (ppc64_emit_rsh_unsigned): New function.
8411 (ppc64_emit_ext): New function.
8412 (ppc64_emit_zero_ext): New function.
8413 (ppc64_emit_log_not): New function.
8414 (ppc64_emit_bit_and): New function.
8415 (ppc64_emit_bit_or): New function.
8416 (ppc64_emit_bit_xor): New function.
8417 (ppc64_emit_bit_not): New function.
8418 (ppc64_emit_equal): New function.
8419 (ppc64_emit_less_signed): New function.
8420 (ppc64_emit_less_unsigned): New function.
8421 (ppc64_emit_ref): New function.
8422 (ppc64_emit_const): New function.
8423 (ppc64v1_emit_reg): New function.
8424 (ppc64v2_emit_reg): New function.
8425 (ppc64_emit_pop): New function.
8426 (ppc64_emit_stack_flush): New function.
8427 (ppc64_emit_swap): New function.
8428 (ppc64v1_emit_call): New function.
8429 (ppc64v2_emit_call): New function.
8430 (ppc64v1_emit_int_call_1): New function.
8431 (ppc64v2_emit_int_call_1): New function.
8432 (ppc64v1_emit_void_call_2): New function.
8433 (ppc64v2_emit_void_call_2): New function.
8434 (ppc64_emit_if_goto): New function.
8435 (ppc64_emit_eq_goto): New function.
8436 (ppc64_emit_ne_goto): New function.
8437 (ppc64_emit_lt_goto): New function.
8438 (ppc64_emit_le_goto): New function.
8439 (ppc64_emit_gt_goto): New function.
8440 (ppc64_emit_ge_goto): New function.
8441 (ppc64v1_emit_ops_impl): New static variable.
8442 (ppc64v2_emit_ops_impl): New static variable.
8443 (ppc_emit_ops): New function.
8444 (linux_low_target): Wire in ppc_emit_ops.
8445
a2174ba4
MK
84462016-03-31 Wei-cheng Wang <cole945@gmail.com>
8447 Marcin Kościelnicki <koriakin@0x04.net>
8448
8449 PR/17221
8450 * Makefile.in: Add powerpc-*-ipa.o
8451 * configure.srv: Add ipa_obj for powerpc*-linux.
8452 * linux-ppc-ipa.c: New file.
8453 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8454 includes.
8455 (PPC_FIELD): New macro.
8456 (PPC_SEXT): New macro.
8457 (PPC_OP6): New macro.
8458 (PPC_BO): New macro.
8459 (PPC_LI): New macro.
8460 (PPC_BD): New macro.
8461 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8462 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8463 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8464 (ppc_get_thread_area): New function.
8465 (is_elfv2_inferior): New function.
8466 (gen_ds_form): New function.
8467 (GEN_STD): New macro.
8468 (GEN_STDU): New macro.
8469 (GEN_LD): New macro.
8470 (GEN_LDU): New macro.
8471 (gen_d_form): New function.
8472 (GEN_ADDI): New macro.
8473 (GEN_ADDIS): New macro.
8474 (GEN_LI): New macro.
8475 (GEN_LIS): New macro.
8476 (GEN_ORI): New macro.
8477 (GEN_ORIS): New macro.
8478 (GEN_LWZ): New macro.
8479 (GEN_STW): New macro.
8480 (GEN_STWU): New macro.
8481 (gen_xfx_form): New function.
8482 (GEN_MFSPR): New macro.
8483 (GEN_MTSPR): New macro.
8484 (GEN_MFCR): New macro.
8485 (GEN_MTCR): New macro.
8486 (GEN_SYNC): New macro.
8487 (GEN_LWSYNC): New macro.
8488 (gen_x_form): New function.
8489 (GEN_OR): New macro.
8490 (GEN_MR): New macro.
8491 (GEN_LWARX): New macro.
8492 (GEN_STWCX): New macro.
8493 (GEN_CMPW): New macro.
8494 (gen_md_form): New function.
8495 (GEN_RLDICL): New macro.
8496 (GEN_RLDICR): New macro.
8497 (gen_i_form): New function.
8498 (GEN_B): New macro.
8499 (GEN_BL): New macro.
8500 (gen_b_form): New function.
8501 (GEN_BNE): New macro.
8502 (GEN_LOAD): New macro.
8503 (GEN_STORE): New macro.
8504 (gen_limm): New function.
8505 (gen_atomic_xchg): New function.
8506 (gen_call): New function.
8507 (ppc_relocate_instruction): New function.
8508 (ppc_install_fast_tracepoint_jump_pad): New function.
8509 (ppc_get_min_fast_tracepoint_insn_len): New function.
8510 (ppc_get_ipa_tdesc_idx): New function.
8511 (the_low_target): Wire in the new functions.
8512 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8513 tdescs.
8514 * linux-ppc-tdesc.h: New file.
8515
a13c4696
MK
85162016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8517
8518 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8519 (alloc_jump_pad_buffer): New function.
8520 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8521 (alloc_jump_pad_buffer): New function.
8522 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8523 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8524 (alloc_jump_pad_buffer): New function.
8525 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8526 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8527 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8528 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8529
1cda1512
MK
85302016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8531
8532 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8533 * linux-amd64-ipa.c: Likewise.
8534 * linux-i386-ipa.c: Likewise.
8535 * linux-s390-ipa.c: Likewise.
8536 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8537 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8538 set_trace_state_variable_value_ptr.
8539 (struct ipa_sym_addresses): Likewise.
8540 (symbol_list): Likewise.
8541 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8542 accessing gdb_collect directly.
8543 (gdb_collect_ptr_type): New typedef.
8544 (get_raw_reg_ptr_type): New typedef.
8545 (get_trace_state_variable_value_ptr_type): New typedef.
8546 (set_trace_state_variable_value_ptr_type): New typedef.
8547 (gdb_collect_ptr): New global.
8548 (get_raw_reg_ptr): New global.
8549 (get_trace_state_variable_value_ptr): New global.
8550 (set_trace_state_variable_value_ptr): New global.
8551 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8552 accessing get_raw_reg directly.
8553 (get_get_tsv_func_addr): Likewise for
8554 get_trace_state_variable_value_ptr.
8555 (get_set_tsv_func_addr): Likewise for
8556 set_trace_state_variable_value_ptr.
8557 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8558
72fb5488
SM
85592016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8560
8561 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8562
28170b88
MK
85632016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8564
8565 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8566 packets.
8567 (relocate_instruction): Remove own_buf.
8568 * server.c (own_buf): Make global.
8569 (handle_v_requests): Make global.
8570 * server.h (own_buf): New declaration.
8571 (handle_v_requests): New prototype.
8572
f39e8743
MK
85732016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8574
8575 PR 18377
8576 * linux-s390-low.c (add_insns): New function.
8577 (s390_emit_prologue): New function.
8578 (s390_emit_epilogue): New function.
8579 (s390_emit_add): New function.
8580 (s390_emit_sub): New function.
8581 (s390_emit_mul): New function.
8582 (s390_emit_lsh): New function.
8583 (s390_emit_rsh_signed): New function.
8584 (s390_emit_rsh_unsigned): New function.
8585 (s390_emit_ext): New function.
8586 (s390_emit_log_not): New function.
8587 (s390_emit_bit_and): New function.
8588 (s390_emit_bit_or): New function.
8589 (s390_emit_bit_xor): New function.
8590 (s390_emit_bit_not): New function.
8591 (s390_emit_equal): New function.
8592 (s390_emit_less_signed): New function.
8593 (s390_emit_less_unsigned): New function.
8594 (s390_emit_ref): New function.
8595 (s390_emit_if_goto): New function.
8596 (s390_emit_goto): New function.
8597 (s390_write_goto_address): New function.
8598 (s390_emit_litpool): New function.
8599 (s390_emit_const): New function.
8600 (s390_emit_call): New function.
8601 (s390_emit_reg): New function.
8602 (s390_emit_pop): New function.
8603 (s390_emit_stack_flush): New function.
8604 (s390_emit_zero_ext): New function.
8605 (s390_emit_swap): New function.
8606 (s390_emit_stack_adjust): New function.
8607 (s390_emit_set_r2): New function.
8608 (s390_emit_int_call_1): New function.
8609 (s390_emit_void_call_2): New function.
8610 (s390_emit_eq_goto): New function.
8611 (s390_emit_ne_goto): New function.
8612 (s390_emit_lt_goto): New function.
8613 (s390_emit_le_goto): New function.
8614 (s390_emit_gt_goto): New function.
8615 (s390_emit_ge_goto): New function.
8616 (s390x_emit_prologue): New function.
8617 (s390x_emit_epilogue): New function.
8618 (s390x_emit_add): New function.
8619 (s390x_emit_sub): New function.
8620 (s390x_emit_mul): New function.
8621 (s390x_emit_lsh): New function.
8622 (s390x_emit_rsh_signed): New function.
8623 (s390x_emit_rsh_unsigned): New function.
8624 (s390x_emit_ext): New function.
8625 (s390x_emit_log_not): New function.
8626 (s390x_emit_bit_and): New function.
8627 (s390x_emit_bit_or): New function.
8628 (s390x_emit_bit_xor): New function.
8629 (s390x_emit_bit_not): New function.
8630 (s390x_emit_equal): New function.
8631 (s390x_emit_less_signed): New function.
8632 (s390x_emit_less_unsigned): New function.
8633 (s390x_emit_ref): New function.
8634 (s390x_emit_if_goto): New function.
8635 (s390x_emit_const): New function.
8636 (s390x_emit_call): New function.
8637 (s390x_emit_reg): New function.
8638 (s390x_emit_pop): New function.
8639 (s390x_emit_stack_flush): New function.
8640 (s390x_emit_zero_ext): New function.
8641 (s390x_emit_swap): New function.
8642 (s390x_emit_stack_adjust): New function.
8643 (s390x_emit_int_call_1): New function.
8644 (s390x_emit_void_call_2): New function.
8645 (s390x_emit_eq_goto): New function.
8646 (s390x_emit_ne_goto): New function.
8647 (s390x_emit_lt_goto): New function.
8648 (s390x_emit_le_goto): New function.
8649 (s390x_emit_gt_goto): New function.
8650 (s390x_emit_ge_goto): New function.
8651 (s390_emit_ops): New function.
8652 (struct linux_target_ops): Fill in emit_ops hook.
8653
abd9baf9
MK
86542016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8655
8656 PR 18377
8657 * Makefile.in: Add s390 IPA files.
8658 * configure.srv: Build IPA for s390.
8659 * linux-s390-ipa.c: New file.
8660 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8661 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8662 (tdesc_s390_linux32): Likewise.
8663 (init_registers_s390_linux32v1): Likewise.
8664 (tdesc_s390_linux32v1): Likewise.
8665 (init_registers_s390_linux32v2): Likewise.
8666 (tdesc_s390_linux32v2): Likewise.
8667 (init_registers_s390_linux64): Likewise.
8668 (tdesc_s390_linux64): Likewise.
8669 (init_registers_s390_linux64v1): Likewise.
8670 (tdesc_s390_linux64v1): Likewise.
8671 (init_registers_s390_linux64v2): Likewise.
8672 (tdesc_s390_linux64v2): Likewise.
8673 (init_registers_s390_te_linux64): Likewise.
8674 (tdesc_s390_te_linux64): Likewise.
8675 (init_registers_s390_vx_linux64): Likewise.
8676 (tdesc_s390_vx_linux64): Likewise.
8677 (init_registers_s390_tevx_linux64): Likewise.
8678 (tdesc_s390_tevx_linux64): Likewise.
8679 (init_registers_s390x_linux64): Likewise.
8680 (tdesc_s390x_linux64): Likewise.
8681 (init_registers_s390x_linux64v1): Likewise.
8682 (tdesc_s390x_linux64v1): Likewise.
8683 (init_registers_s390x_linux64v2): Likewise.
8684 (tdesc_s390x_linux64v2): Likewise.
8685 (init_registers_s390x_te_linux64): Likewise.
8686 (tdesc_s390x_te_linux64): Likewise.
8687 (init_registers_s390x_vx_linux64): Likewise.
8688 (tdesc_s390x_vx_linux64): Likewise.
8689 (init_registers_s390x_tevx_linux64): Likewise.
8690 (tdesc_s390x_tevx_linux64): Likewise.
8691 (have_hwcap_s390_vx): New static variable.
8692 (s390_arch_setup): Fill have_hwcap_s390_vx.
8693 (s390_get_thread_area): New function.
8694 (s390_ft_entry_gpr_esa): New const.
8695 (s390_ft_entry_gpr_zarch): New const.
8696 (s390_ft_entry_misc): New const.
8697 (s390_ft_entry_fr): New const.
8698 (s390_ft_entry_vr): New const.
8699 (s390_ft_main_31): New const.
8700 (s390_ft_main_64): New const.
8701 (s390_ft_exit_fr): New const.
8702 (s390_ft_exit_vr): New const.
8703 (s390_ft_exit_misc): New const.
8704 (s390_ft_exit_gpr_esa): New const.
8705 (s390_ft_exit_gpr_zarch): New const.
8706 (append_insns): New function.
8707 (s390_relocate_instruction): New function.
8708 (s390_install_fast_tracepoint_jump_pad): New function.
8709 (s390_get_min_fast_tracepoint_insn_len): New function.
8710 (s390_get_ipa_tdesc_idx): New function.
8711 (struct linux_target_ops): Wire in the above functions.
8712 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8713 * linux-s390-tdesc.h: New file.
8714
a4105d04
MK
87152016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8716
8717 * linux-s390-low.c (s390_supports_tracepoints): New function.
8718 (struct linux_target_ops): Fill supports_tracepoints hook.
8719
35ac8b3e
YQ
87202016-03-18 Yao Qi <yao.qi@linaro.org>
8721
8722 * linux-low.c (lwp_signal_can_be_delivered): New function.
8723 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8724
94610ec4
YQ
87252016-03-18 Yao Qi <yao.qi@linaro.org>
8726
8727 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8728 0 if signal is enqueued. Remove 'signal' from one debugging
8729 message. Move one debugging message to some lines below.
8730 Remove code setting 'signal' to 0.
8731
80aea927
YQ
87322016-03-18 Yao Qi <yao.qi@linaro.org>
8733
8734 * linux-low.c (linux_low_filter_event): Remove redundant
8735 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8736
b04fd3be
MK
87372016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8738
8739 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8740 (struct linux_target_ops): Wire in the above.
8741
c40c8d4b
YQ
87422016-03-03 Yao Qi <yao.qi@linaro.org>
8743
8744 * linux-low.c: Update comments to start_step_over.
8745
0f8288ae
YQ
87462016-03-03 Yao Qi <yao.qi@linaro.org>
8747
8748 PR server/19736
8749 * linux-low.c (handle_extended_wait): Set child suspended
8750 if event_lwp->bp_reinsert isn't zero.
8751
fdbd04a8
YQ
87522016-03-02 Yao Qi <yao.qi@linaro.org>
8753
8754 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8755 enqueue_pending_signal.
8756
6896a8fa
MK
87572016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8758
8759 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8760 is actually loaded.
8761
ab503087
MK
87622016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8763
8764 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8765 (s390_regmap_3264) [!__s390x__]: New global.
8766 (s390_collect_ptrace_register): Skip map entries containing -1.
8767 (s390_supply_ptrace_register): Ditto.
8768 (s390_fill_gprs_high): New function.
8769 (s390_store_gprs_high): New function.
8770 (s390_regsets): Add NT_S390_HIGH_GPRS.
8771 (s390_get_hwcap): Enable on 31-bit.
8772 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8773 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8774 Detect NT_S390_HIGH_GPRS.
8775 (s390_usrregs_info_3264): Enable on 31-bit.
8776 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8777 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8778
ae91f625
MK
87792016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8780
8781 PR gdb/13808
8782 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8783 * configure.srv: Ditto.
8784 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8785 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8786 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8787 (init_registers_amd64_linux): Remove prototype.
8788 (tdesc_amd64_linux): Remove declaration.
8789 (get_ipa_tdesc): New function.
8790 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8791 initialize remaining tdescs.
8792 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8793 (init_registers_i386_linux): Remove prototype.
8794 (tdesc_i386_linux): Remove declaration.
8795 (get_ipa_tdesc): New function.
8796 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8797 initialize remaining tdescs.
8798 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8799 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8800 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8801 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8802 (x86_get_ipa_tdesc_idx): New function.
8803 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8804 * linux-x86-tdesc.h: New file.
8805 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8806 (target_get_ipa_tdesc_idx): New macro.
8807 * tracepoint.c (ipa_tdesc_idx): New macro.
8808 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8809 (symbol_list): Add ipa_tdesc_idx.
8810 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8811 (ipa_tdesc): Remove.
8812 (ipa_tdesc_idx): New variable.
8813 (get_context_regcache): Use get_ipa_tdesc.
8814 (gdb_collect): Ditto.
8815 (gdb_probe): Ditto.
8816 * tracepoint.h (get_ipa_tdesc): New prototype.
8817 (ipa_tdesc): Remove.
8818
e7ad2f14
PA
88192016-02-24 Pedro Alves <palves@redhat.com>
8820
8821 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8822 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8823 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8824 Factor out common code between the USE_SIGTRAP_SIGINFO and
8825 !USE_SIGTRAP_SIGINFO blocks.
8826 (linux_low_filter_event): Call save_stop_reason instead of
8827 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8828 Update comments.
8829 (linux_wait_1): Update comments.
8830
657f9cde
WW
88312016-02-24 Wei-cheng Wang <cole945@gmail.com>
8832
8833 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8834 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8835 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8836 ppc_insert_point, ppc_remove_point.
8837
b00b61e1
MK
88382016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8839
8840 * linux-s390-low.c (s390_supports_z_point_type): New function.
8841 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8842
553cb527
YQ
88432016-02-16 Yao Qi <yao.qi@linaro.org>
8844
8845 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8846 PC. Get pc from regcache_read_pc.
8847
a5652c21
YQ
88482016-02-12 Yao Qi <yao.qi@linaro.org>
8849
8850 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8851 or linux_get_pc_32bit.
8852 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8853
ed443b61
YQ
88542016-02-12 Yao Qi <yao.qi@linaro.org>
8855
8856 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8857 arm_linux_get_next_pcs_fixup.
8858
020ecd38
MK
88592016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8860
8861 * tracepoint.c (x_tracepoint_action_download): Change
8862 write_inferior_data_ptr to write_inferior_data_pointer.
8863 (cmd_qtstart): Likewise.
8864 (write_inferior_data_ptr): Remove.
8865 (download_agent_expr): Change write_inferior_data_ptr to
8866 write_inferior_data_pointer.
8867 (download_tracepoint_1): Likewise.
8868 (download_tracepoint): Likewise.
8869 (download_trace_state_variables): Likewise.
8870
7cae9051
WW
88712016-02-11 Wei-cheng Wang <cole945@gmail.com>
8872 Marcin Kościelnicki <koriakin@0x04.net>
8873
8874 * tracepoint.c (struct tracepoint_action_ops): Remove.
8875 (struct tracepoint_action): Remove ops.
8876 (m_tracepoint_action_download, r_tracepoint_action_download)
8877 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8878 size and offset accordingly.
8879 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8880 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8881 (tracepoint_action_send, tracepoint_action_download): New functions.
8882 Helpers for trace action handlers.
8883 (add_tracepoint_action): Remove setup actions ops.
8884 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8885
9f6a71b4
YQ
88862016-02-10 Yao Qi <yao.qi@linaro.org>
8887
8888 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8889
1e94266c
SM
88902016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8891
8892 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8893 to AC_OUTPUT.
8894 * configure: Regenerate.
8895
8adce034
SM
88962016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8897
8898 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8899 void * to gdb_byte *.
8900 * linux-low.c (siginfo_fixup): Likewise.
8901 (linux_xfer_siginfo): Likewise.
8902 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8903 Likewise.
8904 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8905
93813b37
WT
89062016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8907
8908 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8909 to srv_tgtobj.
8910 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8911 to srv_tgtobj.
8912 * linux-x86-low.c [__x86_64__]: Include
8913 "nat/amd64-linux-siginfo.h".
8914 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8915 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8916 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8917 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8918 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8919 (cpt_si_fd, si_timerid, si_overrun): Move from
8920 nat/amd64-linux-siginfo.c.
8921 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8922
8424cc97
SM
89232016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8924
8925 * server.c (skip_to_semicolon): Remove.
8926 (process_point_options): Use strchrnul instead of
8927 skip_to_semicolon.
8928
4d18591b
YQ
89292016-01-26 Yao Qi <yao.qi@linaro.org>
8930
8931 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8932 * linux-low.c (install_software_single_step_breakpoints): Don't
8933 call regcache_read_pc.
8934 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8935 argument pc.
8936
d8020970
YQ
89372016-01-26 Yao Qi <yao.qi@linaro.org>
8938
8939 * linux-low.c (install_software_single_step_breakpoints): Call
8940 regcache_read_pc instead of get_pc.
8941
8b207339
YQ
89422016-01-26 Yao Qi <yao.qi@linaro.org>
8943
8944 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8945 (unblock_async_io): Rename to ...
8946 (block_unblock_async_io): ... it. New function.
8947 (enable_async_io): Don't install SIGIO handler. Unblock it
8948 instead.
8949 (disable_async_io): Don't ignore SIGIO. Block it instead.
8950 (initialize_async_io): Install SIGIO handler. Don't call
8951 unblock_async_io.
8952
18879fef
YQ
89532016-01-26 Yao Qi <yao.qi@linaro.org>
8954
8955 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8956 first character is '\003', call *the_target->request_interrupt.
8957
a0f8e08a
YQ
89582016-01-25 Yao Qi <yao.qi@linaro.org>
8959
8960 * remote-utils.c (new_thread_notify): Remove.
8961 (dead_thread_notify): Likewise.
8962 * remote-utils.h (new_thread_notify): Remove declaration.
8963 (dead_thread_notify): Likewise.
8964
cc5fd9ab
MK
89652016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8966
8967 * gdb.trace/pending.exp: Fix expected message on continue.
8968
99e8eb11
MK
89692016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8970
8971 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8972 it works properly on big-endian machines where sizeof (CORE_ADDR)
8973 != sizeof (void *).
8974
a994041d
PA
89752016-01-21 Pedro Alves <palves@redhat.com>
8976
8977 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8978 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8979 * configure: Regenerate.
8980
f7a6a40d
YQ
89812016-01-21 Yao Qi <yao.qi@linaro.org>
8982
8983 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8984 is_thumb and set it according to CPSR saved on the stack.
8985 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8986 arm_sigreturn_next_pc.
8987
6f69e520
YQ
89882016-01-18 Yao Qi <yao.qi@linaro.org>
8989
8990 * linux-low.c (linux_set_pc_64bit): New function.
8991 (linux_get_pc_64bit): New function.
8992 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8993 Declare.
8994 * linux-sparc-low.c (debug_threads): Remove declaration.
8995 (sparc_get_pc): Remove.
8996 (the_low_target): Use linux_get_pc_64bit instead of
8997 sparc_get_pc.
8998 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8999 (the_low_target): Use linux_get_pc_64bit and
9000 linux_set_pc_64bit.
9001
276d4552
YQ
90022016-01-18 Yao Qi <yao.qi@linaro.org>
9003
9004 * linux-arm-low.c (debug_threads): Remove declaration.
9005 (arm_get_pc, arm_set_pc): Remove.
9006 (the_low_target): Use linux_get_pc_32bit and
9007 linux_set_pc_32bit.
9008 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9009 (the_low_target): Use linux_get_pc_32bit and
9010 linux_set_pc_32bit.
9011 * linux-cris-low.c (debug_threads): Remove declaration.
9012 (cris_get_pc, cris_set_pc,): Remove.
9013 (the_low_target): Use linux_get_pc_32bit and
9014 linux_set_pc_32bit.
9015 * linux-crisv32-low.c (debug_threads): Remove declaration.
9016 (cris_get_pc, cris_set_pc): Remove.
9017 (the_low_target): Use linux_get_pc_32bit and
9018 linux_set_pc_32bit.
9019 * linux-low.c: Include inttypes.h.
9020 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9021 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9022 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9023 (the_low_target): Use linux_get_pc_32bit and
9024 linux_set_pc_32bit.
9025 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9026 (the_low_target): Use linux_get_pc_32bit and
9027 linux_set_pc_32bit.
9028 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9029 (the_low_target): Use linux_get_pc_32bit and
9030 linux_set_pc_32bit.
9031 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9032 (the_low_target): Use linux_get_pc_32bit and
9033 linux_set_pc_32bit.
9034 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9035 (the_low_target): Use linux_get_pc_32bit and
9036 linux_set_pc_32bit.
9037
eb0edac8
GB
90382016-01-18 Gary Benson <gbenson@redhat.com>
9039
9040 * configure.ac (AC_FUNC_FORK): New check.
9041 * config.in: Regenerate.
9042 * configure: Likewise.
9043
1b451dda
YQ
90442016-01-14 Yao Qi <yao.qi@linaro.org>
9045
9046 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9047 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9048 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9049 arm_get_next_pcs_ctor.
9050
82075af2
JS
90512016-01-12 Josh Stone <jistone@redhat.com>
9052 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9053
9054 * inferiors.h: Include "gdb_vecs.h".
9055 (struct process_info): Add syscalls_to_catch.
9056 * inferiors.c (remove_process): Free syscalls_to_catch.
9057 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9058 syscall_return stops.
9059 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9060 * server.c (handle_general_set): Handle QCatchSyscalls.
9061 (handle_query): Report support for QCatchSyscalls.
9062 * target.h (struct target_ops): Add supports_catch_syscall.
9063 (target_supports_catch_syscall): New macro.
9064 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9065 (struct lwp_info): Add syscall_state.
9066 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9067 Maintain syscall_state and syscalls_to_catch across exec.
9068 (get_syscall_trapinfo): New function, proxy to the_low_target.
9069 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9070 (linux_low_filter_event): Toggle syscall_state entry/return for
9071 syscall traps, and set it ignored for all others.
9072 (gdb_catching_syscalls_p): New function.
9073 (gdb_catch_this_syscall_p): New function.
9074 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9075 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9076 (linux_supports_catch_syscall): New function.
9077 (linux_target_ops): Install it.
9078 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9079 (the_low_target): Install it.
9080
8f13a3ce
MF
90812016-01-12 Mike Frysinger <vapier@gentoo.org>
9082
9083 * acinclude.m4: Include new ../warning.m4 file.
9084 * configure: Regenerated.
9085 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9086
5b3da067
MF
90872016-01-12 Mike Frysinger <vapier@gentoo.org>
9088
9089 * ax.c (is_goto_target): Mark static.
9090 * linux-low.c (register_addr): Likewise.
9091 (linux_fetch_registers, linux_store_registers): Likewise.
9092 * mem-break.c (any_persistent_commands): Fix old prototype.
9093 (add_commands_to_breakpoint): Mark static.
9094 * regcache.c (find_register_by_name): Delete unused func.
9095 * remote-utils.c (hex_or_minus_one): Mark static.
9096 * server.c (monitor_show_help): Mark static.
9097 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9098 handle_v_requests): Likewise.
9099
bc504a31
PA
91002016-01-12 Pedro Alves <palves@redhat.com>
9101
9102 Remove use of the registered trademark symbol throughout.
9103
5a0dd67a
YQ
91042016-01-08 Yao Qi <yao.qi@linaro.org>
9105
9106 * remote-utils.c (getpkt): If c is '\003', call target hook
9107 request_interrupt.
9108
b2ca446f
YQ
91092016-01-06 Yao Qi <yao.qi@linaro.org>
9110
9111 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9112 linux-aarch32-low.c.
9113 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9114 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9115 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9116 (thumb2_breakpoint): Declare.
9117 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9118 linux-aarch32-low.h.
9119 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9120 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9121 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9122
edd88788
JB
91232016-01-01 Joel Brobecker <brobecker@adacore.com>
9124
9125 * gdbreplay.c (gdbreplay_version): Change copyright year in
9126 version message.
9127 * server.c (gdbserver_version): Likewise.
9128
65da7f14
PP
91292015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9130
9131 * server.c (crc32_table): Delete.
9132 (crc32): Use libiberty's xcrc32 function.
9133
4abd5ed2
JB
91342015-12-22 Joel Brobecker <brobecker@adacore.com>
9135
9136 * lynx-low.c (lynx_delete_thread_callback): New function.
9137 (lynx_mourn): Properly delete our process and all of its
9138 threads. Remove call to clear_inferiors.
9139
0e50fe5c
JB
91402015-12-22 Joel Brobecker <brobecker@adacore.com>
9141
9142 * target.c (thread_search_callback): Add check that
9143 the thread_stopped target callback is not NULL before
9144 calling it.
9145
35adc03f
YQ
91462015-12-21 Yao Qi <yao.qi@linaro.org>
9147
9148 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9149 arm breakpoint.
9150
bd2b2909
AT
91512015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9152
9153 * server.c (handle_query): Call target_supports_software_single_step.
9154
7fe5e27e
AT
91552015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9156
9157 * linux-low.c (single_step): New function.
9158 (linux_resume_one_lwp_throw): Call single_step.
9159 (start_step_over): Likewise.
9160
d9311bfa
AT
91612015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9162
9163 * Makefile.in (SFILES): Append arch/arm-linux.c,
9164 arch/arm-get-next-pcs.c.
9165 (arm-linux.o): New rule.
9166 (arm-get-next-pcs.o): New rule.
9167 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9168 arm-linux.o.
9169 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9170 to linux-aarch32-low.c.
9171 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9172 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9173 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9174 (thumb2_breakpoint_len): Likewise.
9175 (arm_is_thumb_mode): Make non-static.
9176 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9177 from linux-aarch32-low.c.
9178 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9179 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9180 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9181 (thumb2_breakpoint_len): Likewise.
9182 (arm_is_thumb_mode): New declaration.
9183 * linux-arm-low.c: Include arch/arm-linux.h
9184 aarch/arm-get-next-pcs.h, sys/syscall.h.
9185 (get_next_pcs_ops): New struct.
9186 (get_next_pcs_addr_bits_remove): New function.
9187 (get_next_pcs_is_thumb): New function.
9188 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9189 (arm_sigreturn_next_pc): Likewise.
9190 (get_next_pcs_syscall_next_pc): Likewise.
9191 (arm_gdbserver_get_next_pcs): Likewise.
9192 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9193 Initialize.
9194 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9195 * server.h: Include gdb_vecs.h.
9196
68ce2059
AT
91972015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9198
9199 * Makefile.in (SFILES): Append common/common-regcache.c.
9200 (OBS): Append common-regcache.o.
9201 (common-regcache.o): New rule.
9202 * regcache.c (init_register_cache): Initialize cache to
9203 REG_UNAVAILABLE.
9204 (regcache_raw_read_unsigned): New function.
9205 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9206 register_status enum.
9207
fa5308bd
AT
92082015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9209
9210 * linux-aarch64-low.c (the_low_targets): Rename
9211 breakpoint_reinsert_addr to get_next_pcs.
9212 * linux-arm-low.c (the_low_targets): Likewise.
9213 * linux-bfin-low.c (the_low_targets): Likewise.
9214 * linux-cris-low.c (the_low_targets): Likewise.
9215 * linux-crisv32-low.c (the_low_targets): Likewise.
9216 * linux-low.c (can_software_single_step): Likewise.
9217 (install_software_single_step_breakpoints): New function.
9218 (start_step_over): Use install_software_single_step_breakpoints.
9219 * linux-low.h: New CORE_ADDR vector.
9220 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9221 get_next_pcs.
9222 * linux-mips-low.c (the_low_targets): Likewise.
9223 * linux-nios2-low.c (the_low_targets): Likewise.
9224 * linux-sparc-low.c (the_low_targets): Likewise.
9225
4a6ed09b
PA
92262015-12-17 Pedro Alves <palves@redhat.com>
9227
9228 * linux-low.c (linux_kill_one_lwp): Remove references to
9229 LinuxThreads.
9230 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9231 to 'kill'.
9232 (linux_init_signals): Delete.
9233 (initialize_low): Adjust.
9234 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9235
7544db95
PA
92362015-12-16 Pedro Alves <palves@redhat.com>
9237
9238 * configure.ac (compiler warning flags): When testing a
9239 -Wno-foo option, check whether -Wfoo works instead.
9240 * configure: Regenerate.
9241
8020350c
DB
92422015-12-11 Don Breazeal <donb@codesourcery.com>
9243
9244 * server.c (process_serial_event): Don't exit from gdbserver
9245 in remote mode if there are still active inferiors.
9246
db91f502
YQ
92472015-12-11 Yao Qi <yao.qi@linaro.org>
9248
9249 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9250 arm_breakpoint_at if the process is 32-bit.
9251
b37a6290
YQ
92522015-12-11 Yao Qi <yao.qi@linaro.org>
9253
9254 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9255 arm breakpoint.
9256
17b1509a
YQ
92572015-12-07 Yao Qi <yao.qi@linaro.org>
9258
9259 * configure.srv: Append arm.o to srv_tgtobj for
9260 aarch64*-*-linux* target.
9261 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9262 from linux-arm-low.c.
9263 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9264 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9265 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9266 (thumb2_breakpoint_len): Likewise.
9267 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9268 (arm_breakpoint_kinds): Likewise.
9269 (arm_breakpoint_kind_from_pc): Likewise.
9270 (arm_sw_breakpoint_from_kind): Likewise.
9271 (arm_breakpoint_kind_from_current_state): Likewise.
9272 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9273 (arm_sw_breakpoint_from_kind): Declare.
9274 (arm_breakpoint_kind_from_current_state): Declare.
9275 (arm_breakpoint_at): Declare.
9276 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9277 arm_sw_breakpoint_from_kind if process is 32-bit.
9278 (aarch64_breakpoint_kind_from_pc): New function.
9279 (aarch64_breakpoint_kind_from_current_state): New function.
9280 (the_low_target): Initialize fields breakpoint_kind_from_pc
9281 and breakpoint_kind_from_current_state.
9282 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9283 linux-aarch32-low.c.
9284 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9285 (arm_breakpoint, arm_breakpoint_len): Likewise.
9286 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9287 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9288 (arm_is_thumb_mode): Likewise.
9289 (arm_breakpoint_at): Likewise.
9290 (arm_breakpoint_kind_from_pc): Likewise.
9291 (arm_sw_breakpoint_from_kind): Likewise.
9292 (arm_breakpoint_kind_from_current_state): Likewise.
9293
9294 Revert:
9295 2015-08-04 Yao Qi <yao.qi@linaro.org>
9296
9297 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9298 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9299 * server.c (extended_protocol): Remove "static".
9300 * server.h (extended_protocol): Declare it.
9301
ece66d65
JS
93022015-12-04 Josh Stone <jistone@redhat.com>
9303
9304 * target.h (struct target_ops) <arch_setup>: Rename to ...
9305 (struct target_ops) <post_create_inferior>: ... this.
9306 (target_arch_setup): Rename to ...
9307 (target_post_create_inferior): ... this, calling post_create_inferior.
9308 * server.c (start_inferior): Update target_arch_setup calls to
9309 target_post_create_inferior.
9310 * linux-low.c (linux_low_ptrace_options): Forward declare.
9311 (linux_arch_setup): Update its comment for general use.
9312 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9313 (struct linux_target_ops): Use linux_post_create_inferior.
9314 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9315 to post_create_inferior.
9316 * nto-low.c (struct nto_target_ops): Likewise.
9317 * spu-low.c (struct spu_target_ops): Likewise.
9318 * win32-low.c (struct win32_target_ops): Likewise.
9319
e58c48b4
AT
93202015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9321
9322 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9323
fbec8956
AT
93242015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9325
9326 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9327 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9328 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9329 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9330 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9331 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9332 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9333 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9334 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9335 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9336 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9337 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9338
9b4c5f87
AT
93392015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9340
9341 * linux-low.c (linux_look_up_symbols): Don't call
9342 linux_supports_traceclone.
9343 * linux-low.h (thread_db_init): Remove use_events argument.
9344 * thread-db.c (thread_db_use_event): Remove global variable.
9345 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9346 (struct thread_db) <td_create_bp>: Remove field.
9347 (thread_db_create_event): Remove function.
9348 (thread_db_enable_reporting): Likewise.
9349 (find_one_thread): Don't check for thread_db_use_events.
9350 (attach_thread): Likewise.
9351 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9352 (try_thread_db_load_1): Don't check for thread_db_use_events.
9353 (thread_db_init): Remove use_events argument and thread events
9354 handling.
9355 (remove_thread_event_breakpoints): Remove function.
9356 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9357
7d00775e
AT
93582015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9359
9360 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9361 New function.
9362 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9363 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9364 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9365 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9366 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9367 Initialize.
9368 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9369 New function.
9370 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9371 * linux-low.c (can_hardware_single_step): Use
9372 supports_hardware_single_step.
9373 (can_software_single_step): New function.
9374 (start_step_over): Call can_software_single_step.
9375 (linux_supports_hardware_single_step): New function.
9376 (struct target_ops) <supports_software_single_step>: Initialize.
9377 * linux-low.h (struct linux_target_ops)
9378 <supports_hardware_single_step>: Initialize.
9379 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9380 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9381 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9382 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9383 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9384 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9385 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9386 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9387 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9388 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9389 Initialize.
9390 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9391 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9392 Initialize.
9393 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9394 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9395 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9396 New function.
9397 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9398 * target.h (struct target_ops): <supports_software_single_step>:
9399 New field.
9400 (target_supports_software_single_step): New macro.
9401
2d97cd35
AT
94022015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9403
9404 * linux-low.c (linux_wait_1): Fix pc advance condition.
9405 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9406 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9407
769ef81f
AT
94082015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9409
9410 * linux-arm-low.c (arm_is_thumb_mode): New function.
9411 (arm_breakpoint_at): Use arm_is_thumb_mode.
9412 (arm_breakpoint_kind_from_current_state): New function.
9413 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9414 Initialize.
9415 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9416 (linux_breakpoint_kind_from_current_state): New function.
9417 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9418 * linux-low.h (struct linux_target_ops)
9419 <breakpoint_kind_from_current_state>: New field.
9420 * target.h (struct target_ops): Likewise.
9421 (target_breakpoint_kind_from_current_state): New macro.
9422
1bebeeca
PA
94232015-11-30 Pedro Alves <palves@redhat.com>
9424
9425 * linux-low.c (linux_resume): Wake up the event loop before
9426 returning.
9427
a67a9fae
PA
94282015-11-30 Pedro Alves <palves@redhat.com>
9429
9430 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9431 check.
9432 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9433 to -1.
9434 * target.c (struct thread_search): New structure.
9435 (thread_search_callback): New function.
9436 (prev_general_thread): New global.
9437 (prepare_to_access_memory, done_accessing_memory): New functions.
9438 * target.h (prepare_to_access_memory, done_accessing_memory):
9439 Replace macros with function declarations.
9440
f2faf941
PA
94412015-11-30 Pedro Alves <palves@redhat.com>
9442
9443 PR 14618
9444 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9445 report TARGET_WAITKIND_NO_RESUMED.
9446 * remote-utils.c (prepare_resume_reply): Handle
9447 TARGET_WAITKIND_NO_RESUMED.
9448 * server.c (report_no_resumed): New global.
9449 (handle_query) <qSupported>: Handle "no-resumed+". Report
9450 "no-resumed+" support.
9451 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9452 return error if the client doesn't support no-resumed events.
9453 (push_stop_notification): New function.
9454 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9455 events if the client supports them.
9456
a681f9c9
PA
94572015-11-30 Pedro Alves <palves@redhat.com>
9458
9459 * linux-low.c (thread_still_has_status_pending_p): Don't check
9460 vCont;t here.
9461 (lwp_resumed): New function.
9462 (status_pending_p_callback): Return early if the LWP is not
9463 supposed to be resumed.
9464
65706a29
PA
94652015-11-30 Pedro Alves <palves@redhat.com>
9466
9467 * linux-low.c (handle_extended_wait): Assert that the LWP's
9468 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9469 thread create events, leave the new child's status pending.
9470 (linux_low_filter_event): If GDB wants to hear about thread exit
9471 events, leave the LWP marked dead and don't delete it.
9472 (linux_wait_for_event_filtered): Don't check for thread exit.
9473 (filter_exit_event): New function.
9474 (linux_wait_1): Use it, when returning an exit event.
9475 (linux_resume_one_lwp_throw): Assert that the LWP's
9476 waitstatus is TARGET_WAITKIND_IGNORE.
9477 * remote-utils.c (prepare_resume_reply): Handle
9478 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9479 * server.c (report_thread_events): New global.
9480 (handle_general_set): Handle QThreadEvents.
9481 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9482 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9483 TARGET_WAITKIND_THREAD_EXITED.
9484 * server.h (report_thread_events): Declare.
9485
56cf4bed
PA
94862015-11-30 Pedro Alves <palves@redhat.com>
9487
9488 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9489 the thread's last_resume_kind was resume_stop.
9490
500c1d85
PA
94912015-11-30 Pedro Alves <palves@redhat.com>
9492
9493 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9494 before returning.
9495
de979965
PA
94962015-11-30 Pedro Alves <palves@redhat.com>
9497
9498 * server.c (handle_v_requests): Handle vCtrlC.
9499
34c65914
PA
95002015-11-30 Pedro Alves <palves@redhat.com>
9501
9502 * gdbthread.h (find_any_thread_of_pid): Declare.
9503 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9504 functions.
9505 * server.c (handle_query): If current_thread is NULL, look for
9506 another thread of the selected process.
9507
79efa585 95082015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9509 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9510
9511 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9512 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9513 name in reply.
9514 * target.h (struct target_ops) <thread_name>: New field.
9515 (target_thread_name): New macro.
9516
80d82c19
JB
95172015-11-23 Joel Brobecker <brobecker@adacore.com>
9518
9519 * regcache.h (regcache_invalidate_pid): Add declaration.
9520 * regcache.c (regcache_invalidate_pid): New function, extracted
9521 from regcache_invalidate.
9522 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9523 Add trivial documentation comment.
9524 * lynx-low.c: Use regcache_invalidate_pid instead of
9525 regcache_invalidate.
9526
64da5dd5
JB
95272015-11-23 Joel Brobecker <brobecker@adacore.com>
9528
9529 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9530 and Elf64_auxv_t if the target is Android.
9531
37ce4055
DE
95322015-11-22 Doug Evans <xdje42@gmail.com>
9533
9534 * target.h: #include <sys/types.h>.
9535
06e03fff
PA
95362015-11-19 Pedro Alves <palves@redhat.com>
9537
9538 * linux-low.c (linux_process_qsupported): Change prototype.
9539 Adjust.
9540 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9541 Change prototype.
9542 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9543 and adjust to loop over all features.
9544 * server.c (handle_query) <qSupported>: Adjust to call
9545 target_process_qsupported once, passing it a vector of unprocessed
9546 features.
9547 * target.h (struct target_ops) <process_qsupported>: Change
9548 prototype.
9549 (target_process_qsupported): Adjust.
9550
9a084706
PA
95512015-11-19 Pedro Alves <palves@redhat.com>
9552
9553 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9554 mode.
9555 * configure: Regenerate.
9556
dad44a1f
PA
95572015-11-19 Pedro Alves <palves@redhat.com>
9558
9559 * configure: Regenerate.
9560
231c0592
YQ
95612015-11-19 Yao Qi <yao.qi@linaro.org>
9562
9563 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9564 type to uint32_t.
9565
6c1c9a8b
YQ
95662015-11-19 Yao Qi <yao.qi@linaro.org>
9567
9568 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9569 (struct aarch64_operand): Move enum out.
9570
9caa3311
YQ
95712015-11-19 Yao Qi <yao.qi@linaro.org>
9572
9573 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9574 struct user_fpsimd_state *.
9575 (aarch64_store_fpregset): Likewise.
9576
6a69a054
YQ
95772015-11-19 Yao Qi <yao.qi@linaro.org>
9578
9579 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9580 struct user_pt_regs *.
9581 (aarch64_store_gregset): Likewise.
9582
1798301e
PA
95832015-11-18 Pedro Alves <palves@redhat.com>
9584
9585 * Makefile.in (all_object_files): Add $IPA_OBJS.
9586
ce7715e2
PA
95872015-11-17 Pedro Alves <palves@redhat.com>
9588
9589 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9590 GDB_SIGNAL_0 and gdb_signal_to_string.
9591
c0879059
PA
95922015-11-17 Pedro Alves <palves@redhat.com>
9593
9594 * win32-low.c (handle_output_debug_string): Remove parameter.
9595 (win32_kill): Remove our_status local and adjust call to
9596 handle_output_debug_string.
9597 (get_child_debug_event): Adjust call to
9598 handle_output_debug_string.
9599
1996e237
SM
96002015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9601
9602 * linux-mips-low.c (mips_fill_gregset): Add cast.
9603 (mips_store_gregset): Likewise.
9604 (mips_fill_fpregset): Likewise.
9605 (mips_store_fpregset): Likewise.
9606
cbec665b
SM
96072015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9608
9609 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9610 priv.
9611
eb3e3c67
SM
96122015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9613
9614 * linux-mips-low.c (mips_linux_new_thread): Change type of
9615 watch_type to enum target_hw_bp_type.
9616
171de4b8
SM
96172015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9618
9619 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9620 Change return type to arm_hwbp_type.
9621
04248ead
SM
96222015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9623
9624 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9625 (arm_store_gregset): Likewise.
9626 * linux-arm-low.c (arm_get_hwcap): Likewise.
9627 (arm_read_description): Likewise.
9628
04b3479c
SM
96292015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9630
9631 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9632
2bc84e8a
SM
96332015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9634
9635 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9636 (ppc_fill_vsxregset): Likewise.
9637 (ppc_store_vsxregset): Likewise.
9638 (ppc_fill_vrregset): Likewise.
9639 (ppc_store_vrregset): Likewise.
9640 (ppc_fill_evrregset): Likewise.
9641 (ppc_store_evrregset): Likewise.
9642
e6c5bb05
SM
96432015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9644
9645 * linux-ppc-low.c (ppc_usrregs_info): Remove
9646 forward-declaration.
9647 (ppc_arch_setup): Move lower in file.
9648
7ea45d72
SM
96492015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9650
9651 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9652 (ps_pdwrite): Likewise.
9653
69291610
HW
96542015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9655
9656 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9657 to after assert checks.
9658
b42945fd
SM
96592015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9660
9661 * proc-service.c (ps_pdread): Add/adjust casts.
9662 (ps_pdwrite): Add/adjust casts.
9663
d6f85c84
SM
96642015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9665
9666 * server.c (handle_search_memory_1): Cast return value of
9667 memmem.
9668
f98cd059
SM
96692015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9670
9671 * server.c (write_qxfer_response): Change type of data to
9672 gdb_byte *.
9673
d2412fa5
PA
96742015-10-29 Pedro Alves <palves@redhat.com>
9675
9676 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9677
c17414a2
PA
96782015-10-29 Pedro Alves <palves@redhat.com>
9679
9680 * tracepoint.c (clear_installed_tracepoints): Add casts.
9681
e053fbc4
PA
96822015-10-29 Pedro Alves <palves@redhat.com>
9683
9684 * server.c (handle_v_cont, process_serial_event): Add enum
9685 gdb_signal casts to signal parsing code.
9686
add67df8
PA
96872015-10-29 Pedro Alves <palves@redhat.com>
9688
9689 * linux-low.h (NULL_REGSET): Define.
9690 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9691 * linux-arm-low.c (arm_regsets): Likewise.
9692 * linux-crisv32-low.c (cris_regsets): Likewise.
9693 * linux-m68k-low.c (m68k_regsets): Likewise.
9694 * linux-mips-low.c (mips_regsets): Likewise.
9695 * linux-nios2-low.c (nios2_regsets): Likewise.
9696 * linux-ppc-low.c (ppc_regsets): Likewise.
9697 * linux-s390-low.c (s390_regsets): Likewise.
9698 * linux-sh-low.c (sh_regsets): Likewise.
9699 * linux-sparc-low.c (sparc_regsets): Likewise.
9700 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9701 * linux-tile-low.c (tile_regsets): Likewise.
9702 * linux-x86-low.c (x86_regsets): Likewise.
9703 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9704
50bc912a
PA
97052015-10-29 Pedro Alves <palves@redhat.com>
9706
9707 * linux-low.h (NULL_REGSET): Define.
9708 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9709 * linux-arm-low.c (arm_regsets): Likewise.
9710 * linux-crisv32-low.c (cris_regsets): Likewise.
9711 * linux-m68k-low.c (m68k_regsets): Likewise.
9712 * linux-mips-low.c (mips_regsets): Likewise.
9713 * linux-nios2-low.c (nios2_regsets): Likewise.
9714 * linux-ppc-low.c (ppc_regsets): Likewise.
9715 * linux-s390-low.c (s390_regsets): Likewise.
9716 * linux-sh-low.c (sh_regsets): Likewise.
9717 * linux-sparc-low.c (sparc_regsets): Likewise.
9718 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9719 * linux-tile-low.c (tile_regsets): Likewise.
9720 * linux-x86-low.c (x86_regsets): Likewise.
9721 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9722
682b2546
DE
97232015-10-26 Doug Evans <dje@google.com>
9724
9725 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9726
963843d4
DE
97272015-10-26 Doug Evans <dje@google.com>
9728
9729 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9730
d41401ac
DE
97312015-10-26 Doug Evans <dje@google.com>
9732
9733 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9734 for debug_printf.
9735 (attach_thread, find_new_threads_callback): Ditto.
9736
3db28855
AT
97372015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9738
9739 * mem-break.h (set_breakpoint_data): Remove.
9740
fb78e89c
AT
97412015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9742
9743 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9744 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9745 (initialize_low): Remove set_breakpoint_data call.
9746 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9747 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9748 (initialize_low): Remove set_breakpoint_data call.
9749 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9750 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9751 (initialize_low): Remove set_breakpoint_data call.
9752
2e6ee069
AT
97532015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9754
9755 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9756 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9757 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9758 * target.h (target_breakpoint_kind_from_pc): New macro.
9759
1652a986
AT
97602015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9761
9762 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9763 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9764 the default breakpoint kind.
9765
abeead09
AT
97662015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9767
9768 * linux-arm-low.c (arm_supports_z_point_type): Add software
9769 breakpoint support.
9770
b0b4b501
AT
97712015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9772
9773 * linux-arm-low.c: Refactor breakpoint definitions.
9774 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9775 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9776
8689682c
AT
97772015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9778
9779 * Makefile.in: Add arm.c/o.
9780 * configure.srv: Likewise.
9781 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9782 (arm_breakpoint_kind_from_pc): New function.
9783 (arm_sw_breakpoint_from_kind): Return proper kind.
9784 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9785
27165294
AT
97862015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9787
9788 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9789 removal.
9790 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9791 (struct raw_breakpoint) <size>: Remove.
9792 (struct raw_breakpoint) <kind>: Add.
9793 (bp_size): New function.
9794 (bp_opcode): Likewise.
9795 (find_raw_breakpoint_at): Adjust for kind.
9796 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9797 (remove_memory_breakpoint): Adjust for kind call bp_size.
9798 (set_raw_breakpoint_at): Adjust for kind.
9799 (set_breakpoint): Likewise.
9800 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9801 (delete_raw_breakpoint): Adjust for kind.
9802 (delete_breakpoint): Likewise.
9803 (find_gdb_breakpoint): Likewise.
9804 (set_gdb_breakpoint_1): Likewise.
9805 (set_gdb_breakpoint): Likewise.
9806 (delete_gdb_breakpoint_1): Likewise.
9807 (delete_gdb_breakpoint): Likewise.
9808 (uninsert_raw_breakpoint): Likewise.
9809 (reinsert_raw_breakpoint): Likewise.
9810 (set_breakpoint_data): Remove.
9811 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9812 (check_mem_read): Adjust for kind call bp_size.
9813 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9814 (clone_one_breakpoint): Adjust for kind.
9815 * mem-break.h (set_gdb_breakpoint): Likewise.
9816 (delete_gdb_breakpoint): Likewise.
9817 * server.c (process_serial_event): Likewise.
9818
dd373349
AT
98192015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9820
9821 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9822 (struct linux_target_ops) <breakpoint>: Remove.
9823 (struct linux_target_ops) <breakpoint_len>: Remove.
9824 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9825 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9826 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9827 (arm_sw_breakpoint_from_kind): New function.
9828 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9829 (struct linux_target_ops) <breakpoint>: Remove.
9830 (struct linux_target_ops) <breakpoint_len>: Remove.
9831 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9832 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9833 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9834 (struct linux_target_ops) <breakpoint>: Remove.
9835 (struct linux_target_ops) <breakpoint_len>: Remove.
9836 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9837 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9838 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9839 (struct linux_target_ops) <breakpoint>: Remove.
9840 (struct linux_target_ops) <breakpoint_len>: Remove.
9841 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9842 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9843 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9844 and sw_breakpoint_from_kind to increment the pc.
9845 (linux_breakpoint_kind_from_pc): New function.
9846 (linux_sw_breakpoint_from_kind): New function.
9847 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9848 (initialize_low): Call breakpoint_kind_from_pc and
9849 sw_breakpoint_from_kind to replace breakpoint_data/len.
9850 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9851 New field.
9852 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9853 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9854 (struct linux_target_ops) <breakpoint>: Remove.
9855 (struct linux_target_ops) <breakpoint_len>: Remove.
9856 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9857 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9858 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9859 (struct linux_target_ops) <breakpoint>: Remove.
9860 (struct linux_target_ops) <breakpoint_len>: Remove.
9861 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9862 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9863 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9864 (struct linux_target_ops) <breakpoint>: Remove.
9865 (struct linux_target_ops) <breakpoint_len>: Remove.
9866 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9867 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9868 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9869 (struct linux_target_ops) <breakpoint>: Remove.
9870 (struct linux_target_ops) <breakpoint_len>: Remove.
9871 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9872 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9873 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9874 (struct linux_target_ops) <breakpoint>: Remove.
9875 (struct linux_target_ops) <breakpoint_len>: Remove.
9876 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9877 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9878 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9879 (struct linux_target_ops) <breakpoint>: Remove.
9880 (struct linux_target_ops) <breakpoint_len>: Remove.
9881 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9882 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9883 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9884 (struct linux_target_ops) <breakpoint>: Remove.
9885 (struct linux_target_ops) <breakpoint_len>: Remove.
9886 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9887 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9888 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9889 (struct linux_target_ops) <breakpoint>: Remove.
9890 (struct linux_target_ops) <breakpoint_len>: Remove.
9891 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9892 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9893 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9894 (struct linux_target_ops) <breakpoint>: Remove.
9895 (struct linux_target_ops) <breakpoint_len>: Remove.
9896 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9897 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9898 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9899 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9900 (struct linux_target_ops) <breakpoint>: Remove.
9901 (struct linux_target_ops) <breakpoint_len>: Remove.
9902 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9903 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9904 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9905 (struct linux_target_ops) <breakpoint>: Remove.
9906 (struct linux_target_ops) <breakpoint_len>: Remove.
9907 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9908 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9909
4cd98a19
AT
99102015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9911
9912 * linux-cris-low.c (cris_get_pc): Remove void arg.
9913
774ee6d2
AR
99142015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9915
9916 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9917 variable name.
9918
833dcd29
AR
99192015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9920
9921 * inferiors.c (thread_pid_matches_callback): New function.
9922 (find_thread_process): New function.
9923 (remove_thread): Reset current_thread.
9924 (remove_process): Assert threads have been removed first.
9925
8d689ee5
YQ
99262015-10-15 Yao Qi <yao.qi@linaro.org>
9927
9928 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9929 if it is 3.
9930 (aarch64_remove_point): Likewise.
9931 * regcache.c (regcache_register_size): New function.
9932
1c2e1515
YQ
99332015-10-12 Yao Qi <yao.qi@linaro.org>
9934
9935 * linux-aarch64-low.c: Update all callers as emit_load_store
9936 is renamed to aarch64_emit_load_store.
9937
e1c587c3
YQ
99382015-10-12 Yao Qi <yao.qi@linaro.org>
9939
9940 * linux-aarch64-low.c: Update all callers of function renaming
9941 from emit_insn to aarch64_emit_insn.
9942
b6542f81
YQ
99432015-10-12 Yao Qi <yao.qi@linaro.org>
9944
9945 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9946 arch/aarch64-insn.h.
9947 (struct aarch64_memory_operand): Likewise.
9948 (ENCODE): Likewise.
9949 (emit_insn): Move to arch/aarch64-insn.c.
9950 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9951 (emit_load_store): Move to arch/aarch64-insn.c.
9952 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9953 (can_encode_int32): Remove.
9954
246994ce
YQ
99552015-10-12 Yao Qi <yao.qi@linaro.org>
9956
9957 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9958 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9959 (aarch64_relocate_instruction): Likewise.
9960 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9961 (struct aarch64_insn_visitor): Likewise.
9962
0badd99f
YQ
99632015-10-12 Yao Qi <yao.qi@linaro.org>
9964
9965 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9966 (struct aarch64_insn_visitor): New.
9967 (struct aarch64_insn_relocation_data): New.
9968 (aarch64_ftrace_insn_reloc_b): New function.
9969 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9970 (aarch64_ftrace_insn_reloc_cb): Likewise.
9971 (aarch64_ftrace_insn_reloc_tb): Likewise.
9972 (aarch64_ftrace_insn_reloc_adr): Likewise.
9973 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9974 (aarch64_ftrace_insn_reloc_others): Likewise.
9975 (visitor): New.
9976 (aarch64_relocate_instruction): Use visitor.
9977
dfaffe9d
YQ
99782015-10-12 Yao Qi <yao.qi@linaro.org>
9979
9980 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9981 int. Add argument buf.
9982 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9983 aarch64_relocate_instruction.
9984
70b439f0
YQ
99852015-10-12 Yao Qi <yao.qi@linaro.org>
9986
9987 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9988 argument insn. Remove local variable insn. Don't call
9989 target_read_uint32.
9990 (aarch64_install_fast_tracepoint_jump_pad): Call
9991 target_read_uint32.
9992
7781c06f
YQ
99932015-09-30 Yao Qi <yao.qi@linaro.org>
9994
9995 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9996 (emit_load_store_pair): Likewise.
9997
9a3c8263
SM
99982015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9999
10000 * dll.c (match_dll): Add cast(s).
10001 (unloaded_dll): Likewise.
10002 * linux-low.c (second_thread_of_pid_p): Likewise.
10003 (delete_lwp_callback): Likewise.
10004 (count_events_callback): Likewise.
10005 (select_event_lwp_callback): Likewise.
10006 (linux_set_resume_request): Likewise.
10007 * server.c (accumulate_file_name_length): Likewise.
10008 (emit_dll_description): Likewise.
10009 (handle_qxfer_threads_worker): Likewise.
10010 (visit_actioned_threads): Likewise.
10011 * thread-db.c (any_thread_of): Likewise.
10012 * tracepoint.c (same_process_p): Likewise.
10013 (match_blocktype): Likewise.
10014 (build_traceframe_info_xml): Likewise.
10015
224c3ddb
SM
100162015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10017
10018 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10019 assignment.
10020 (gdb_unparse_agent_expr): Likewise.
10021 * hostio.c (require_data): Likewise.
10022 (handle_pread): Likewise.
10023 * linux-low.c (disable_regset): Likewise.
10024 (fetch_register): Likewise.
10025 (store_register): Likewise.
10026 (get_dynamic): Likewise.
10027 (linux_qxfer_libraries_svr4): Likewise.
10028 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10029 (set_fast_tracepoint_jump): Likewise.
10030 (uninsert_fast_tracepoint_jumps_at): Likewise.
10031 (reinsert_fast_tracepoint_jumps_at): Likewise.
10032 (validate_inserted_breakpoint): Likewise.
10033 (clone_agent_expr): Likewise.
10034 * regcache.c (init_register_cache): Likewise.
10035 * remote-utils.c (putpkt_binary_1): Likewise.
10036 (decode_M_packet): Likewise.
10037 (decode_X_packet): Likewise.
10038 (look_up_one_symbol): Likewise.
10039 (relocate_instruction): Likewise.
10040 (monitor_output): Likewise.
10041 * server.c (handle_search_memory): Likewise.
10042 (handle_qxfer_exec_file): Likewise.
10043 (handle_qxfer_libraries): Likewise.
10044 (handle_qxfer): Likewise.
10045 (handle_query): Likewise.
10046 (handle_v_cont): Likewise.
10047 (handle_v_run): Likewise.
10048 (captured_main): Likewise.
10049 * target.c (write_inferior_memory): Likewise.
10050 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10051 * tracepoint.c (init_trace_buffer): Likewise.
10052 (add_tracepoint_action): Likewise.
10053 (add_traceframe): Likewise.
10054 (add_traceframe_block): Likewise.
10055 (cmd_qtdpsrc): Likewise.
10056 (cmd_qtdv): Likewise.
10057 (cmd_qtstatus): Likewise.
10058 (response_source): Likewise.
10059 (response_tsv): Likewise.
10060 (cmd_qtnotes): Likewise.
10061 (gdb_collect): Likewise.
10062 (initialize_tracepoint): Likewise.
10063
afbe19f8
PL
100642015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10065
10066 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10067 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10068 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10069 <NOP>: New.
10070 (enum aarch64_condition_codes): New enum.
10071 (w0): New static global.
10072 (fp): Likewise.
10073 (lr): Likewise.
10074 (struct aarch64_memory_operand) <type>: New
10075 MEMORY_OPERAND_POSTINDEX type.
10076 (postindex_memory_operand): New helper function.
10077 (emit_ret): New function.
10078 (emit_load_store_pair): New function, factored out of emit_stp
10079 with support for MEMORY_OPERAND_POSTINDEX.
10080 (emit_stp): Rewrite using emit_load_store_pair.
10081 (emit_ldp): New function.
10082 (emit_load_store): Likewise.
10083 (emit_ldr): Mention post-index instruction in comment.
10084 (emit_ldrh): New function.
10085 (emit_ldrb): New function.
10086 (emit_ldrsw): Mention post-index instruction in comment.
10087 (emit_str): Likewise.
10088 (emit_subs): New function.
10089 (emit_cmp): Likewise.
10090 (emit_and): Likewise.
10091 (emit_orr): Likewise.
10092 (emit_orn): Likewise.
10093 (emit_eor): Likewise.
10094 (emit_mvn): Likewise.
10095 (emit_lslv): Likewise.
10096 (emit_lsrv): Likewise.
10097 (emit_asrv): Likewise.
10098 (emit_mul): Likewise.
10099 (emit_sbfm): Likewise.
10100 (emit_sbfx): Likewise.
10101 (emit_ubfm): Likewise.
10102 (emit_ubfx): Likewise.
10103 (emit_csinc): Likewise.
10104 (emit_cset): Likewise.
10105 (emit_nop): Likewise.
10106 (emit_ops_insns): New helper function.
10107 (emit_pop): Likewise.
10108 (emit_push): Likewise.
10109 (aarch64_emit_prologue): New function.
10110 (aarch64_emit_epilogue): Likewise.
10111 (aarch64_emit_add): Likewise.
10112 (aarch64_emit_sub): Likewise.
10113 (aarch64_emit_mul): Likewise.
10114 (aarch64_emit_lsh): Likewise.
10115 (aarch64_emit_rsh_signed): Likewise.
10116 (aarch64_emit_rsh_unsigned): Likewise.
10117 (aarch64_emit_ext): Likewise.
10118 (aarch64_emit_log_not): Likewise.
10119 (aarch64_emit_bit_and): Likewise.
10120 (aarch64_emit_bit_or): Likewise.
10121 (aarch64_emit_bit_xor): Likewise.
10122 (aarch64_emit_bit_not): Likewise.
10123 (aarch64_emit_equal): Likewise.
10124 (aarch64_emit_less_signed): Likewise.
10125 (aarch64_emit_less_unsigned): Likewise.
10126 (aarch64_emit_ref): Likewise.
10127 (aarch64_emit_if_goto): Likewise.
10128 (aarch64_emit_goto): Likewise.
10129 (aarch64_write_goto_address): Likewise.
10130 (aarch64_emit_const): Likewise.
10131 (aarch64_emit_call): Likewise.
10132 (aarch64_emit_reg): Likewise.
10133 (aarch64_emit_pop): Likewise.
10134 (aarch64_emit_stack_flush): Likewise.
10135 (aarch64_emit_zero_ext): Likewise.
10136 (aarch64_emit_swap): Likewise.
10137 (aarch64_emit_stack_adjust): Likewise.
10138 (aarch64_emit_int_call_1): Likewise.
10139 (aarch64_emit_void_call_2): Likewise.
10140 (aarch64_emit_eq_goto): Likewise.
10141 (aarch64_emit_ne_goto): Likewise.
10142 (aarch64_emit_lt_goto): Likewise.
10143 (aarch64_emit_le_goto): Likewise.
10144 (aarch64_emit_gt_goto): Likewise.
10145 (aarch64_emit_ge_got): Likewise.
10146 (aarch64_emit_ops_impl): New static global variable.
10147 (aarch64_emit_ops): New target function, return
10148 &aarch64_emit_ops_impl.
10149 (struct linux_target_ops): Install it.
10150
bb903df0
PL
101512015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10152
10153 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10154 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10155 aarch64-ipa.o.
10156 * linux-aarch64-ipa.c: New file.
10157 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10158 and endian.h.
10159 (aarch64_get_thread_area): New target method.
10160 (extract_signed_bitfield): New helper function.
10161 (aarch64_decode_ldr_literal): New function.
10162 (enum aarch64_opcodes): New enum.
10163 (struct aarch64_register): New struct.
10164 (struct aarch64_operand): New struct.
10165 (x0): New static global.
10166 (x1): Likewise.
10167 (x2): Likewise.
10168 (x3): Likewise.
10169 (x4): Likewise.
10170 (w2): Likewise.
10171 (ip0): Likewise.
10172 (sp): Likewise.
10173 (xzr): Likewise.
10174 (aarch64_register): New helper function.
10175 (register_operand): Likewise.
10176 (immediate_operand): Likewise.
10177 (struct aarch64_memory_operand): New struct.
10178 (offset_memory_operand): New helper function.
10179 (preindex_memory_operand): Likewise.
10180 (enum aarch64_system_control_registers): New enum.
10181 (ENCODE): New macro.
10182 (emit_insn): New helper function.
10183 (emit_b): New function.
10184 (emit_bcond): Likewise.
10185 (emit_cb): Likewise.
10186 (emit_tb): Likewise.
10187 (emit_blr): Likewise.
10188 (emit_stp): Likewise.
10189 (emit_ldp_q_offset): Likewise.
10190 (emit_stp_q_offset): Likewise.
10191 (emit_load_store): Likewise.
10192 (emit_ldr): Likewise.
10193 (emit_ldrsw): Likewise.
10194 (emit_str): Likewise.
10195 (emit_ldaxr): Likewise.
10196 (emit_stxr): Likewise.
10197 (emit_stlr): Likewise.
10198 (emit_data_processing_reg): Likewise.
10199 (emit_data_processing): Likewise.
10200 (emit_add): Likewise.
10201 (emit_sub): Likewise.
10202 (emit_mov): Likewise.
10203 (emit_movk): Likewise.
10204 (emit_mov_addr): Likewise.
10205 (emit_mrs): Likewise.
10206 (emit_msr): Likewise.
10207 (emit_sevl): Likewise.
10208 (emit_wfe): Likewise.
10209 (append_insns): Likewise.
10210 (can_encode_int32_in): New helper function.
10211 (aarch64_relocate_instruction): New function.
10212 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10213 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10214 (struct linux_target_ops): Install aarch64_get_thread_area,
10215 aarch64_install_fast_tracepoint_jump_pad and
10216 aarch64_get_min_fast_tracepoint_insn_len.
10217
787749ea
PL
102182015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10219
10220 * Makefile.in (aarch64-insn.o): New rule.
10221 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10222
9812b2e6
YQ
102232015-09-21 Yao Qi <yao.qi@linaro.org>
10224
10225 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10226
18fe412b
YQ
102272015-09-21 Yao Qi <yao.qi@linaro.org>
10228
10229 * tracepoint.c (max_jump_pad_size): Remove.
10230
a0cc84cd
YQ
102312015-09-18 Yao Qi <yao.qi@linaro.org>
10232
10233 * linux-aarch64-low.c: Don't include sys/uio.h.
10234 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10235
d78908cf
WW
102362015-09-16 Wei-cheng Wang <cole945@gmail.com>
10237
10238 * tracepoint.c (eval_result_type): Change prototype.
10239 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10240
d57e0d50
PA
102412015-09-15 Pedro Alves <palves@redhat.com>
10242
10243 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10244 Check whether to report exec events instead of checking whether
10245 multiprocess is enabled.
10246
5a676acc
PA
102472015-09-15 Pedro Alves <palves@redhat.com>
10248
10249 PR remote/18965
10250 * remote-utils.c (prepare_resume_reply): Merge
10251 TARGET_WAITKIND_VFORK_DONE switch case with the
10252 TARGET_WAITKIND_FORKED case.
10253
7c5d0fad
YQ
102542015-09-15 Yao Qi <yao.qi@linaro.org>
10255
10256 * server.c (handle_query): Check string comparison using
10257 "else if" instead of "if".
10258
750ce8d1
YQ
102592015-09-15 Yao Qi <yao.qi@linaro.org>
10260
10261 * server.c (vCont_supported): New global variable.
10262 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10263 matches. Append ";vContSupported+" to own_buf.
10264 (handle_v_requests): Append ";s;S" to own_buf if target supports
10265 hardware single step or vCont_supported is false.
10266 (capture_main): Set vCont_supported to zero.
10267
70b90b91
YQ
102682015-09-15 Yao Qi <yao.qi@linaro.org>
10269
10270 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10271 it to ...
10272 (linux_supports_hardware_single_step): ... New function.
10273 (linux_target_ops): Update.
10274 * lynx-low.c (lynx_target_ops): Set field
10275 supports_hardware_single_step to target_can_do_hardware_single_step.
10276 * nto-low.c (nto_target_ops): Likewise.
10277 * spu-low.c (spu_target_ops): Likewise.
10278 * win32-low.c (win32_target_ops): Likewise.
10279 * target.c (target_can_do_hardware_single_step): New function.
10280 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10281 Remove. <supports_hardware_single_step>: New field.
10282 (target_supports_conditional_breakpoints): Remove.
10283 (target_supports_hardware_single_step): New macro.
10284 (target_can_do_hardware_single_step): Declare.
10285 * server.c (handle_query): Use target_supports_hardware_single_step
10286 instead of target_supports_conditional_breakpoints.
10287
ade90bde
YQ
102882015-09-15 Yao Qi <yao.qi@linaro.org>
10289
10290 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10291 function.
10292 (struct linux_target_ops the_low_target): Install
10293 aarch64_linux_siginfo_fixup.
10294
94585166
DB
102952015-09-11 Don Breazeal <donb@codesourcery.com>
10296 Luis Machado <lgustavo@codesourcery.com>
10297
10298 * linux-low.c (linux_mourn): Static declaration.
10299 (linux_arch_setup): Move in front of
10300 handle_extended_wait.
10301 (linux_arch_setup_thread): New function.
10302 (handle_extended_wait): Handle exec events. Call
10303 linux_arch_setup_thread. Make event_lwp argument a
10304 pointer-to-a-pointer.
10305 (check_zombie_leaders): Do not check stopped threads.
10306 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10307 (linux_low_filter_event): Add lwp and thread for exec'ing
10308 non-leader thread if leader thread has been deleted.
10309 Refactor code into linux_arch_setup_thread and call it.
10310 Pass child lwp pointer by reference to handle_extended_wait.
10311 (linux_wait_for_event_filtered): Update comment.
10312 (linux_wait_1): Prevent clobbering exec event status.
10313 (linux_supports_exec_events): New function.
10314 (linux_target_ops) <supports_exec_events>: Initialize new member.
10315 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10316 new member.
10317 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10318 * server.c (report_exec_events): New global variable.
10319 (handle_query): Handle qSupported query for exec-events feature.
10320 (captured_main): Initialize report_exec_events.
10321 * server.h (report_exec_events): Declare new global variable.
10322 * target.h (struct target_ops) <supports_exec_events>: New
10323 member.
10324 (target_supports_exec_events): New macro.
10325 * win32-low.c (win32_target_ops) <supports_exec_events>:
10326 Initialize new member.
10327
0568462b
MM
103282015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10329
10330 * linux-low.c (linux_low_enable_btrace): Remove.
10331 (linux_target_ops): Replace linux_low_enable_btrace with
10332 linux_enable_btrace.
10333
39edd165
YQ
103342015-09-03 Yao Qi <yao.qi@linaro.org>
10335
10336 * linux-aarch64-low.c (aarch64_insert_point): Call
10337 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10338 returns true.
10339
1db33b5a
UW
103402015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10341
10342 * linux-low.c (check_stopped_by_breakpoint): Use
10343 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10344
ab290430
PA
103452015-08-27 Pedro Alves <palves@redhat.com>
10346
10347 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10348
8d749320
SM
103492015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10350
6711b7f8
SM
10351 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10352 the XNEW-family equivalent.
8d749320
SM
10353 (compile_bytecodes): Likewise.
10354 * dll.c (loaded_dll): Likewise.
10355 * event-loop.c (append_callback_event): Likewise.
10356 (create_file_handler): Likewise.
10357 (create_file_event): Likewise.
10358 * hostio.c (handle_open): Likewise.
10359 * inferiors.c (add_thread): Likewise.
10360 (add_process): Likewise.
10361 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10362 * linux-arm-low.c (arm_new_process): Likewise.
10363 (arm_new_thread): Likewise.
10364 * linux-low.c (add_to_pid_list): Likewise.
10365 (linux_add_process): Likewise.
10366 (handle_extended_wait): Likewise.
10367 (add_lwp): Likewise.
10368 (enqueue_one_deferred_signal): Likewise.
10369 (enqueue_pending_signal): Likewise.
10370 (linux_resume_one_lwp_throw): Likewise.
10371 (linux_resume_one_thread): Likewise.
10372 (linux_read_memory): Likewise.
10373 (linux_write_memory): Likewise.
10374 * linux-mips-low.c (mips_linux_new_process): Likewise.
10375 (mips_linux_new_thread): Likewise.
10376 (mips_add_watchpoint): Likewise.
10377 * linux-x86-low.c (initialize_low_arch): Likewise.
10378 * lynx-low.c (lynx_add_process): Likewise.
10379 * mem-break.c (set_raw_breakpoint_at): Likewise.
10380 (set_breakpoint): Likewise.
10381 (add_condition_to_breakpoint): Likewise.
10382 (add_commands_to_breakpoint): Likewise.
10383 (clone_agent_expr): Likewise.
10384 (clone_one_breakpoint): Likewise.
10385 * regcache.c (new_register_cache): Likewise.
10386 * remote-utils.c (look_up_one_symbol): Likewise.
10387 * server.c (queue_stop_reply): Likewise.
10388 (start_inferior): Likewise.
10389 (queue_stop_reply_callback): Likewise.
10390 (handle_target_event): Likewise.
10391 * spu-low.c (fetch_ppc_memory): Likewise.
10392 (store_ppc_memory): Likewise.
10393 * target.c (set_target_ops): Likewise.
10394 * thread-db.c (thread_db_load_search): Likewise.
10395 (try_thread_db_load_1): Likewise.
10396 * tracepoint.c (add_tracepoint): Likewise.
10397 (add_tracepoint_action): Likewise.
10398 (create_trace_state_variable): Likewise.
10399 (cmd_qtdpsrc): Likewise.
10400 (cmd_qtro): Likewise.
10401 (add_while_stepping_state): Likewise.
10402 * win32-low.c (child_add_thread): Likewise.
10403 (get_image_name): Likewise.
10404
ed8b7b42
YQ
104052015-08-25 Yao Qi <yao.qi@linaro.org>
10406
10407 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10408
db3cb7cb
YQ
104092015-08-25 Yao Qi <yao.qi@linaro.org>
10410
10411 * Makefile.in (aarch64-linux.o): New rule.
10412 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10413 srv_tgtobj.
10414 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10415 (aarch64_init_debug_reg_state): Make it extern.
10416 (aarch64_linux_prepare_to_resume): Remove.
10417
f6011a1c
YQ
104182015-08-25 Yao Qi <yao.qi@linaro.org>
10419
10420 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10421 lwp_arch_private_info and ptid_of_lwp.
10422
88e2cf7e
YQ
104232015-08-25 Yao Qi <yao.qi@linaro.org>
10424
10425 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10426 Find proc_info by find_process_pid. All callers updated.
10427
5e35436e
YQ
104282015-08-25 Yao Qi <yao.qi@linaro.org>
10429
10430 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10431 Remove.
10432 (debug_reg_change_callback): Remove.
10433 (aarch64_notify_debug_reg_change): Remove.
10434
4a8a7965
YQ
104352015-08-25 Yao Qi <yao.qi@linaro.org>
10436
10437 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10438 Call current_lwp_ptid.
10439
32a271ee
YQ
104402015-08-25 Yao Qi <yao.qi@linaro.org>
10441
10442 * linux-aarch64-low.c (debug_reg_change_callback): Use
10443 debug_printf.
10444
0d51c8d7
YQ
104452015-08-25 Yao Qi <yao.qi@linaro.org>
10446
10447 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10448
31a43dd5
YQ
104492015-08-25 Yao Qi <yao.qi@linaro.org>
10450
10451 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10452
8ee52567
YQ
104532015-08-25 Yao Qi <yao.qi@linaro.org>
10454
10455 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10456 the code.
10457
ff3f0f45
YQ
104582015-08-25 Yao Qi <yao.qi@linaro.org>
10459
10460 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10461 Remove.
10462 (debug_reg_change_callback): Remove argument entry and add argument
10463 lwp. Remove local variable thread. Don't print thread id in the
10464 debugging output. Don't check whether pid of thread equals to pid.
10465 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10466 iterate_over_lwps instead find_inferior.
10467
3d40fbb5
PA
104682015-08-24 Pedro Alves <palves@redhat.com>
10469
10470 * inferiors.c (get_first_process): New function.
10471 * inferiors.h (get_first_process): New declaration.
10472 * remote-utils.c (read_ptid): Default to the first process in the
10473 list, instead of to the current thread's process.
10474
438e1e42
PA
104752015-08-24 Pedro Alves <palves@redhat.com>
10476
10477 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10478 * event-loop.c: Likewise.
10479 * remote-utils.c: Likewise.
10480 * tracepoint.c: Likewise.
10481
a8c6d4fc
PA
104822015-08-24 Pedro Alves <palves@redhat.com>
10483
10484 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10485 ptid_get_lwp.
10486
99b0bb12
PA
104872015-08-21 Pedro Alves <palves@redhat.com>
10488
10489 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10490 instead of literal 1.
10491
f8904751
PA
104922015-08-21 Pedro Alves <palves@redhat.com>
10493
10494 * tdesc.c (default_description): Explicitly zero-initialize.
10495
465a859e
PA
104962015-08-21 Pedro Alves <palves@redhat.com>
10497
10498 PR gdb/18749
10499 * inferiors.c (remove_thread): Discard any pending stop reply for
10500 this thread.
10501 * server.c (remove_all_on_match_pid): Rename to ...
10502 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10503 instead of a pid.
10504 (discard_queued_stop_replies): Change parameter to a ptid. Now
10505 extern.
10506 (handle_v_kill, kill_inferior_callback, captured_main)
10507 (process_serial_event): Adjust.
10508 * server.h (discard_queued_stop_replies): Declare.
10509
f0db101d
PA
105102015-08-21 Pedro Alves <palves@redhat.com>
10511
10512 * linux-low.c (wait_for_sigstop): Always switch to no thread
10513 selected if the previously current thread dies.
10514 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10515 process instead of the current thread's.
10516 * remote-utils.c (input_interrupt): Don't check if there's no
10517 current thread.
10518 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10519 current thread to the general thread fails, error out.
10520 (handle_qxfer_auxv, handle_qxfer_libraries)
10521 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10522 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10523 (handle_query): Check if there's a thread selected instead of
10524 checking whether there's any thread in the thread list.
10525 (handle_qxfer_threads, handle_qxfer_btrace)
10526 (handle_qxfer_btrace_conf): Don't error out early if there's no
10527 thread in the thread list.
10528 (handle_v_cont, myresume): Don't set the current thread to the
10529 continue thread.
10530 (process_serial_event) <Hg handling>: Also set thread_id if the
10531 previous general thread is still alive.
10532 (process_serial_event) <g/G handling>: If setting the current
10533 thread to the general thread fails, error out.
10534 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10535 thread's lwp instead of the current thread's.
10536 * target.c (set_desired_thread): If the desired thread was not
10537 found, leave the current thread pointing to NULL. Return an int
10538 (boolean) indicating success.
10539 * target.h (set_desired_thread): Change return type to int.
10540
40045d91
MF
105412015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10542
10543 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10544 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10545 #includes.
10546 (ps_get_thread_area): New function.
10547
45face3b
GB
105482015-08-19 Gary Benson <gbenson@redhat.com>
10549
10550 * hostio.c (handle_pread): Do not attempt to read more data
10551 than hostio_reply_with_data can fit in a packet.
10552
16d5f642
JB
105532015-08-18 Joel Brobecker <brobecker@adacore.com>
10554
10555 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10556
a738da3a
MF
105572015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10558
10559 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10560
33ebda9d
PA
105612015-08-06 Pedro Alves <palves@redhat.com>
10562
10563 * tracepoint.c (expr_eval_result): Now an int.
10564
a44892be
PA
105652015-08-06 Pedro Alves <palves@redhat.com>
10566
10567 * gdbthread.h (struct regcache): Forward declare.
10568 (struct thread_info) <regcache_data>: Now a struct regcache
10569 pointer.
10570 * inferiors.c (inferior_regcache_data)
10571 (set_inferior_regcache_data): Now work with struct regcache
10572 pointers.
10573 * inferiors.h (struct regcache): Forward declare.
10574 (inferior_regcache_data, set_inferior_regcache_data): Now work
10575 with struct regcache pointers.
10576 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10577 (free_register_cache_thread): Remove struct regcache pointer
10578 casts.
10579
608a1e46
PA
105802015-08-06 Pedro Alves <palves@redhat.com>
10581
10582 * server.c (captured_main): On error, print the exception message
10583 to stderr, and if run_once is set, throw a quit.
10584
f0ce0d3a
PA
105852015-08-06 Pedro Alves <palves@redhat.com>
10586
10587 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10588 the current thread.
10589
bf47e248
PA
105902015-08-06 Pedro Alves <palves@redhat.com>
10591
10592 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10593 reading beyond the passed in buffer length.
10594
b6b9ffcc
PL
105952015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10596
10597 * tracepoint.c (symbol_list) <required>: Remove.
10598
863d01bd
PA
105992015-08-06 Pedro Alves <palves@redhat.com>
10600
10601 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10602 count if stopping and suspending threads.
10603 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10604 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10605 (linux_detach): Complete an ongoing step-over.
10606 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10607 throughout.
10608 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10609 (linux_wait_1): If passing a signal to the inferior after
10610 finishing a step-over, unsuspend and re-resume all lwps. If we
10611 see a single-step event but the thread should be continuing, don't
10612 pass the trap to gdb.
10613 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10614 internal_error instead of gdb_assert.
10615 (enqueue_pending_signal): New function.
10616 (check_ptrace_stopped_lwp_gone): Add debug output.
10617 (start_step_over): Use internal_error instead of gdb_assert.
10618 (complete_ongoing_step_over): New function.
10619 (linux_resume_one_thread): Don't resume a suspended thread.
10620 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10621 it stepping.
10622
00db26fa
PA
106232015-08-06 Pedro Alves <palves@redhat.com>
10624
10625 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10626 (linux_thread_alive): Use lwp_is_marked_dead.
10627 (extended_event_reported): Delete.
10628 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10629 instead of extended_event_reported.
10630 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10631 as well.
10632 (lwp_is_marked_dead): New function.
10633 (lwp_running): Use lwp_is_marked_dead.
10634 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10635 comment.
10636
ad071a30
PA
106372015-08-06 Pedro Alves <palves@redhat.com>
10638
10639 * linux-low.c (linux_wait_1): Move fork event output out of the
10640 !report_to_gdb check. Pass event_child->waitstatus to
10641 target_waitstatus_to_string instead of ourstatus.
10642
524b57e6
YQ
106432015-08-04 Yao Qi <yao.qi@linaro.org>
10644
10645 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10646 if current_thread is 32 bit.
10647
6085d6f6
YQ
106482015-08-04 Yao Qi <yao.qi@linaro.org>
10649
10650 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10651 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10652 * server.c (extended_protocol): Remove "static".
10653 * server.h (extended_protocol): Declare it.
10654
8a7e4587
YQ
106552015-08-04 Yao Qi <yao.qi@linaro.org>
10656
10657 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10658 both aarch64 and aarch32.
10659 (aarch64_set_pc): Likewise.
10660
3b53ae99
YQ
106612015-08-04 Yao Qi <yao.qi@linaro.org>
10662
10663 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10664 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10665 arm-with-neon.xml to srv_xmlfiles.
10666 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10667 (is_64bit_tdesc): New function.
10668 (aarch64_linux_read_description): New function.
10669 (aarch64_arch_setup): Call aarch64_linux_read_description.
10670 (regs_info): Rename to regs_info_aarch64.
10671 (aarch64_regs_info): Return right regs_info.
10672 (initialize_low_arch): Call initialize_low_arch_aarch32.
10673
bd9e6534
YQ
106742015-08-04 Yao Qi <yao.qi@linaro.org>
10675
10676 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10677 * linux-aarch32-low.c: New file.
10678 * linux-aarch32-low.h: New file.
10679 * linux-arm-low.c (arm_fill_gregset): Move it to
10680 linux-aarch32-low.c.
10681 (arm_store_gregset): Likewise.
10682 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10683 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10684 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10685 (regs_info): Rename to regs_info_arm.
10686 (arm_regs_info): Return regs_info_aarch32 if
10687 have_ptrace_getregset is 1 and target description is
10688 arm_with_neon or arm_with_vfpv3.
10689 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10690 Call initialize_low_arch_aarch32 instead.
10691
ded48a5e
YQ
106922015-08-04 Yao Qi <yao.qi@linaro.org>
10693
10694 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10695 * linux-low.c: ... here.
10696 * linux-low.h (have_ptrace_getregset): Declare it.
10697
96e9210f
PA
106982015-08-04 Pedro Alves <palves@redhat.com>
10699
10700 * thread-db.c (struct thread_db): Use new typedefs.
10701 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10702 CHK calls.
10703 (disable_thread_event_reporting): Cast result of dlsym to
10704 destination function pointer type.
10705 (thread_db_mourn): Use td_ta_delete_ftype.
10706
af60a1ef
SL
107072015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10708
10709 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10710 arch variant.
10711 (CDX_BREAKPOINT): Define for R2.
10712 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10713 (the_low_target): Add comments.
10714
e8b41681
YQ
107152015-07-30 Yao Qi <yao.qi@linaro.org>
10716
10717 * linux-arm-low.c (arm_hwcap): Remove it.
10718 (arm_read_description): New local variable arm_hwcap. Don't
10719 set arm_hwcap to zero.
10720
89abb039
YQ
107212015-07-30 Yao Qi <yao.qi@linaro.org>
10722
10723 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10724 Use regcache->tdesc instead.
10725 (arm_store_wmmxregset): Likewise.
10726 (arm_fill_vfpregset): Likewise.
10727 (arm_store_vfpregset): Likewise.
10728
deca266c
YQ
107292015-07-30 Yao Qi <yao.qi@linaro.org>
10730
10731 * linux-arm-low.c: Include arch/arm.h.
10732 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10733 (arm_store_gregset): Likewise.
10734
aa58a496
SM
107352015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10736
10737 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10738 ptrace's 4th parameter.
10739
50904b25
YQ
107402015-07-27 Yao Qi <yao.qi@linaro.org>
10741
10742 * configure.srv (case aarch64*-*-linux*): Don't set
10743 srv_linux_usrregs.
10744
5826e159
PA
107452015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10746
10747 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10748 sys/ptrace.h.
10749 * linux-arm-low.c: Likewise.
10750 * linux-cris-low.c: Likewise.
10751 * linux-crisv32-low.c: Likewise.
10752 * linux-low.c: Likewise.
10753 * linux-m68k-low.c: Likewise.
10754 * linux-mips-low.c: Likewise.
10755 * linux-nios2-low.c: Likewise.
10756 * linux-s390-low.c: Likewise.
10757 * linux-sparc-low.c: Likewise.
10758 * linux-tic6x-low.c: Likewise.
10759 * linux-tile-low.c: Likewise.
10760 * linux-x86-low.c: Likewise.
10761
54019719
PA
107622015-07-24 Pedro Alves <palves@redhat.com>
10763
10764 * config.in: Regenerate.
10765 * configure: Regenerate.
10766
eb7aa561
PA
107672015-07-24 Pedro Alves <palves@redhat.com>
10768
10769 * acinclude.m4: Include ../ptrace.m4.
10770 * configure.ac: Call GDB_AC_PTRACE.
10771 * config.in, configure: Regenerate.
10772
55d7b841
YQ
107732015-07-24 Yao Qi <yao.qi@linaro.org>
10774
10775 * linux-low.c (linux_create_inferior): Remove setting to
10776 proc->priv->new_inferior.
10777 (linux_attach): Likewise.
10778 (linux_low_filter_event): Likewise.
10779 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10780
c06cbd92
YQ
107812015-07-24 Yao Qi <yao.qi@linaro.org>
10782
10783 * linux-low.c (linux_arch_setup): New function.
10784 (linux_low_filter_event): If proc->tdesc is NULL and
10785 proc->attached is true, call the_low_target.arch_setup.
10786 Otherwise, keep status pending, and return.
10787 (linux_resume_one_lwp_throw): Don't call get_pc if
10788 thread->while_stepping isn't NULL. Don't call
10789 get_thread_regcache if proc->tdesc is NULL.
10790 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10791 (linux_target_ops): Install arch_setup.
10792 * server.c (start_inferior): Call the_target->arch_setup.
10793 * target.h (struct target_ops) <arch_setup>: New field.
10794 (target_arch_setup): New marco.
10795 * lynx-low.c (lynx_target_ops): Update.
10796 * nto-low.c (nto_target_ops): Update.
10797 * spu-low.c (spu_target_ops): Update.
10798 * win32-low.c (win32_target_ops): Update.
10799
5ae3ebba
YQ
108002015-07-24 Yao Qi <yao.qi@linaro.org>
10801
10802 * linux-low.c (linux_add_process): Don't set
10803 proc->priv->new_inferior.
10804 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10805 (linux_attach): Likewise.
10806
eb97750b
YQ
108072015-07-24 Yao Qi <yao.qi@linaro.org>
10808
10809 * server.c (start_inferior): Code refactor.
10810
51aee833
YQ
108112015-07-24 Yao Qi <yao.qi@linaro.org>
10812
10813 * server.c (process_serial_event): Set general_thread.
10814
af1b22f3
YQ
108152015-07-21 Yao Qi <yao.qi@linaro.org>
10816
10817 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10818 aarch64_linux_get_debug_reg_capacity.
10819
554717a3
YQ
108202015-07-17 Yao Qi <yao.qi@linaro.org>
10821
10822 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10823 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10824 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10825 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10826 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10827 (AARCH64_HWP_ALIGNMENT): Likewise.
10828 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10829 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10830 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10831 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10832 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10833 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10834 (struct aarch64_debug_reg_state): Likewise.
10835 (struct arch_lwp_info): Likewise.
10836 (aarch64_align_watchpoint): Likewise.
10837 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10838 (aarch64_watchpoint_length): Likewise.
10839 (aarch64_point_encode_ctrl_reg): Likewise
10840 (aarch64_point_is_aligned): Likewise.
10841 (aarch64_align_watchpoint): Likewise.
10842 (aarch64_linux_set_debug_regs):
10843 (aarch64_dr_state_insert_one_point): Likewise.
10844 (aarch64_dr_state_remove_one_point): Likewise.
10845 (aarch64_handle_breakpoint): Likewise.
10846 (aarch64_handle_aligned_watchpoint): Likewise.
10847 (aarch64_handle_unaligned_watchpoint): Likewise.
10848 (aarch64_handle_watchpoint): Likewise.
10849
c67ca4de
YQ
108502015-07-17 Yao Qi <yao.qi@linaro.org>
10851
10852 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10853 and don't aarch64_get_debug_reg_state. All callers update.
10854 (aarch64_handle_aligned_watchpoint): Likewise.
10855 (aarch64_handle_unaligned_watchpoint): Likewise.
10856 (aarch64_handle_watchpoint): Likewise.
10857 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10858 (aarch64_remove_point): Likewise.
10859
25abf979
YQ
108602015-07-17 Yao Qi <yao.qi@linaro.org>
10861
10862 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10863 debug_printf.
10864 (aarch64_handle_unaligned_watchpoint): Likewise.
10865
db1ff28b
JK
108662015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10867
10868 Revert the previous 3 commits:
10869 Move gdb_regex* to common/
10870 Move linux_find_memory_regions_full & co.
10871 gdbserver build-id attribute generator
10872
700ca40f
JK
108732015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10874 Jan Kratochvil <jan.kratochvil@redhat.com>
10875
10876 gdbserver build-id attribute generator.
10877 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10878 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10879 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10880 (find_phdr): New.
10881 (get_dynamic): Use find_pdhr to traverse program headers.
10882 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10883 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10884 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10885 (get_hex_build_id): New.
10886 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10887 to reply XML document.
10888
9904185c
JK
108892015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10890 Jan Kratochvil <jan.kratochvil@redhat.com>
10891
10892 * target.c: Include target/target-utils.h and fcntl.h.
10893 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10894 (target_fileio_read_stralloc): New functions.
10895
6e5b4429
JK
108962015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10897
10898 * Makefile.in (OBS): Add gdb_regex.o.
10899 (gdb_regex.o): New.
10900 * config.in: Rebuilt.
10901 * configure: Rebuilt.
10902
ddc98fbf
JK
109032015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10904 Jan Kratochvil <jan.kratochvil@redhat.com>
10905
10906 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10907 * Makefile.in (OBS): Add target-utils.o.
10908 (linux-maps.o, target-utils.o): New.
10909 * configure.srv (srv_linux_obj): Add linux-maps.o.
10910
e57bb7a0
PL
109112015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10912
10913 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10914 function, return 1.
10915 (the_low_target): Install it.
10916
586b02a9
PA
109172015-07-14 Pedro Alves <palves@redhat.com>
10918
10919 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10920 Instead, ignore ECHILD, and throw an error for other errnos.
10921
58c1b36c
PA
109222015-07-10 Pedro Alves <palves@redhat.com>
10923
10924 * event-loop.c (struct callback_event) <data>: Change type to
10925 gdb_client_data instance instead of gdb_client_data pointer.
10926 (append_callback_event): Adjust.
10927
421530db
PL
109282015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10929
10930 * linux-aarch64-low.c: Add comments for each linux_target_ops
10931 method. Remove comments already covered in target_ops and
10932 linux_target_ops definitions.
10933 (the_low_target): Add comments for each unimplemented method.
10934
c2d65f38
YQ
109352015-07-09 Yao Qi <yao.qi@linaro.org>
10936
10937 * linux-aarch64-low.c (aarch64_regmap): Remove.
10938 (aarch64_usrregs_info): Remove.
10939 (regs_info): Set field usrregs to NULL.
10940
b20a6524
MM
109412015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10942
10943 * linux-low.c: Include "rsp-low.h"
10944 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10945 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10946 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10947 (handle_btrace_enable_pt): New.
10948 (handle_btrace_general_set): Support "pt".
10949 (handle_btrace_conf_general_set): Support "pt:size".
10950
96c97461
PL
109512015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10952
10953 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10954 Z_PACKET_SW_BP.
10955
37d66942
PL
109562015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10957
10958 * linux-aarch64-low.c: Remove comment about endianness.
10959 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10960 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10961 memcmp.
10962
dc06243f
GB
109632015-06-24 Gary Benson <gbenson@redhat.com>
10964
10965 * linux-i386-ipa.c (stdint.h): Do not include.
10966 * lynx-i386-low.c (stdint.h): Likewise.
10967 * lynx-ppc-low.c (stdint.h): Likewise.
10968 * mem-break.c (stdint.h): Likewise.
10969 * thread-db.c (stdint.h): Likewise.
10970 * tracepoint.c (stdint.h): Likewise.
10971 * win32-low.c (stdint.h): Likewise.
10972
124e13d9
SM
109732015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10974
10975 * server.c (write_qxfer_response): Update call to
10976 remote_escape_output.
10977
909c2cda
JK
109782015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10979 Jan Kratochvil <jan.kratochvil@redhat.com>
10980
10981 Merge multiple hex conversions.
10982 * gdbreplay.c (tohex): Rename to 'fromhex'.
10983 (logchar): Use fromhex.
10984
24c05f46
JK
109852015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10986
10987 * server.c (handle_qxfer_libraries): Set `version' attribute for
10988 <library-list>.
10989
14d2069a
GB
109902015-06-10 Gary Benson <gbenson@redhat.com>
10991
10992 * target.h (struct target_ops) <multifs_open>: New field.
10993 <multifs_unlink>: Likewise.
10994 <multifs_readlink>: Likewise.
10995 * linux-low.c (nat/linux-namespaces.h): New include.
10996 (linux_target_ops): Initialize the_target->multifs_open,
10997 the_target->multifs_unlink and the_target->multifs_readlink.
10998 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10999 * hostio.c (hostio_fs_pid): New static variable.
11000 (hostio_handle_new_gdb_connection): New function.
11001 (handle_setfs): Likewise.
11002 (handle_open): Use the_target->multifs_open as appropriate.
11003 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11004 (handle_readlink): Use the_target->multifs_readlink as
11005 appropriate.
11006 (handle_vFile): Handle vFile:setfs packets.
11007 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11008 after target_handle_new_gdb_connection.
11009
4b8b5e72
GB
110102015-06-10 Gary Benson <gbenson@redhat.com>
11011
11012 * configure.ac (AC_CHECK_FUNCS): Add setns.
11013 * config.in: Regenerate.
11014 * configure: Likewise.
11015 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11016 (linux-namespaces.o): New rule.
11017 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11018
3ac2e371
GB
110192015-06-09 Gary Benson <gbenson@redhat.com>
11020
11021 * hostio.c (handle_open): Process mode argument with
11022 fileio_to_host_mode.
11023
ca9b78ce
YQ
110242015-06-01 Yao Qi <yao.qi@linaro.org>
11025
11026 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11027 * linux-x86-low.c: Likewise.
11028
bfacd19d
DB
110292015-05-28 Don Breazeal <donb@codesourcery.com>
11030
11031 * linux-low.c (handle_extended_wait): Initialize
11032 thread_info.last_resume_kind for new fork children.
11033
452003ef
PA
110342015-05-15 Pedro Alves <palves@redhat.com>
11035
11036 * target.h (target_handle_new_gdb_connection): Rewrite using if
11037 wrapped in do/while.
11038
1041a03c
JB
110392015-05-14 Joel Brobecker <brobecker@adacore.com>
11040
11041 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11042 * configure, config.in: Regenerate.
11043 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11044 Declare typedef.
11045
c269dbdb
DB
110462015-05-12 Don Breazeal <donb@codesourcery.com>
11047
11048 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11049 PTRACE_EVENT_VFORK_DONE.
11050 (linux_low_ptrace_options, extended_event_reported): Add vfork
11051 events.
11052 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11053 and "vforkdone" for RSP 'T' Stop Reply Packet.
11054 * server.h (report_vfork_events): Declare
11055 global variable.
11056
3a8a0396
DB
110572015-05-12 Don Breazeal <donb@codesourcery.com>
11058
11059 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11060 (the_low_target) <new_fork>: Initialize new member.
11061 * linux-arm-low.c (arm_new_fork): New function.
11062 (the_low_target) <new_fork>: Initialize new member.
11063 * linux-low.c (handle_extended_wait): Call new target function
11064 new_fork.
11065 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11066 * linux-mips-low.c (mips_add_watchpoint): New function
11067 extracted from mips_insert_point.
11068 (the_low_target) <new_fork>: Initialize new member.
11069 (mips_linux_new_fork): New function.
11070 (mips_insert_point): Call mips_add_watchpoint.
11071 * linux-x86-low.c (x86_linux_new_fork): New function.
11072 (the_low_target) <new_fork>: Initialize new member.
11073
de0d863e
DB
110742015-05-12 Don Breazeal <donb@codesourcery.com>
11075
11076 * linux-low.c (handle_extended_wait): Implement return value,
11077 rename argument 'event_child' to 'event_lwp', handle
11078 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11079 (linux_low_ptrace_options): New function.
11080 (linux_low_filter_event): Call linux_low_ptrace_options,
11081 use different argument fo linux_enable_event_reporting,
11082 use return value from handle_extended_wait.
11083 (extended_event_reported): New function.
11084 (linux_wait_1): Call extended_event_reported and set
11085 status to report fork events.
11086 (linux_write_memory): Add pid to debug message.
11087 (reset_lwp_ptrace_options_callback): New function.
11088 (linux_handle_new_gdb_connection): New function.
11089 (linux_target_ops): Initialize new structure member.
11090 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11091 * lynx-low.c: Initialize new structure member.
11092 * remote-utils.c (prepare_resume_reply): Implement stop reason
11093 "fork" for "T" stop message.
11094 * server.c (handle_query): Call handle_new_gdb_connection.
11095 * server.h (report_fork_events): Declare global flag.
11096 * target.h (struct target_ops) <handle_new_gdb_connection>:
11097 New member.
11098 (target_handle_new_gdb_connection): New macro.
11099 * win32-low.c: Initialize new structure member.
11100
ddcbc397
DB
111012015-05-12 Don Breazeal <donb@codesourcery.com>
11102
11103 * mem-break.c (APPEND_TO_LIST): Define macro.
11104 (clone_agent_expr): New function.
11105 (clone_one_breakpoint): New function.
11106 (clone_all_breakpoints): New function.
11107 * mem-break.h: Declare new functions.
11108
89245bc0
DB
111092015-05-12 Don Breazeal <donb@codesourcery.com>
11110
11111 * linux-low.c (linux_supports_fork_events): New function.
11112 (linux_supports_vfork_events): New function.
11113 (linux_target_ops): Initialize new structure members.
11114 (initialize_low): Call linux_check_ptrace_features.
11115 * lynx-low.c (lynx_target_ops): Initialize new structure
11116 members.
11117 * server.c (report_fork_events, report_vfork_events):
11118 New global flags.
11119 (handle_query): Add new features to qSupported packet and
11120 response.
11121 (captured_main): Initialize new global variables.
11122 * target.h (struct target_ops) <supports_fork_events>:
11123 New member.
11124 <supports_vfork_events>: New member.
11125 (target_supports_fork_events): New macro.
11126 (target_supports_vfork_events): New macro.
11127 * win32-low.c (win32_target_ops): Initialize new structure
11128 members.
11129
835205d0
GB
111302015-05-12 Gary Benson <gbenson@redhat.com>
11131
11132 * server.c (handle_qxfer_exec_file): Use current process
11133 if annex is empty.
11134
21e94bd9
SL
111352015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11136
11137 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11138 Remove HAVE_PTRACE_GETREGS conditionals.
11139 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11140 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11141
45614f15
YQ
111422015-05-08 Yao Qi <yao.qi@linaro.org>
11143
11144 * linux-low.c (linux_supports_conditional_breakpoints): New
11145 function.
11146 (linux_target_ops): Install new target method.
11147 * lynx-low.c (lynx_target_ops): Install NULL hook for
11148 supports_conditional_breakpoints.
11149 * nto-low.c (nto_target_ops): Likewise.
11150 * spu-low.c (spu_target_ops): Likewise.
11151 * win32-low.c (win32_target_ops): Likewise.
11152 * server.c (handle_query): Check
11153 target_supports_conditional_breakpoints.
11154 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11155 New field.
11156 (target_supports_conditional_breakpoints): New macro.
11157
80ad801e
PA
111582015-05-06 Pedro Alves <palves@redhat.com>
11159
11160 PR server/18081
11161 * server.c (start_inferior): If the process exits, mourn it.
11162
819843c7
GB
111632015-04-21 Gary Benson <gbenson@redhat.com>
11164
11165 * hostio.c (fileio_open_flags_to_host): Factored out to
11166 fileio_to_host_openflags in common/fileio.c. Single use
11167 updated.
11168
a2d5a9d7
MF
111692015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11170
11171 * linux-xtensa-low.c (xtensa_fill_gregset)
11172 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11173 XCHAL_HAVE_LOOP.
11174
deb44829
MF
111752015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11176
11177 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11178 (regs_info): Replace usrregs pointer with NULL.
11179
e57f1de3
GB
111802015-04-17 Gary Benson <gbenson@redhat.com>
11181
11182 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11183 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11184 * server.c (handle_qxfer_exec_file): New function.
11185 (qxfer_packets): Add exec-file entry.
11186 (handle_query): Report qXfer:exec-file:read as supported packet.
11187
62828379
RN
111882015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11189
11190 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11191
b88bb450
GB
111922015-04-09 Gary Benson <gbenson@redhat.com>
11193
11194 * hostio-errno.c (errno_to_fileio_error): Remove function.
11195 Update caller to use remote_fileio_to_fio_error.
11196
c8f4bfdd
YQ
111972015-04-09 Yao Qi <yao.qi@linaro.org>
11198
11199 * linux-low.c (linux_insert_point): Call
11200 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11201 (linux_remove_point): Call remove_memory_breakpoint if type is
11202 raw_bkpt_type_sw.
11203 * linux-x86-low.c (x86_insert_point): Don't call
11204 insert_memory_breakpoint.
11205 (x86_remove_point): Don't call remove_memory_breakpoint.
11206
41f98f02
PA
112072015-04-01 Pedro Alves <palves@redhat.com>
11208 Cleber Rosa <crosa@redhat.com>
11209
11210 * server.c (gdbserver_usage): Reorganize and extend the usage
11211 message.
11212
2bf6fb9d
PA
112132015-03-24 Pedro Alves <palves@redhat.com>
11214
11215 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11216 output. Also dump TRAP_TRACE.
11217 (linux_low_filter_event): In debug output, distinguish a
11218 resume_stop SIGSTOP from a delayed SIGSTOP.
11219
369f6daa
GB
112202015-03-24 Gary Benson <gbenson@redhat.com>
11221
11222 * linux-x86-low.c (x86_linux_new_thread): Moved to
11223 nat/x86-linux.c.
11224 (x86_linux_prepare_to_resume): Likewise.
11225
8e5d4070
GB
112262015-03-24 Gary Benson <gbenson@redhat.com>
11227
11228 * Makefile.in (x86-linux-dregs.o): New rule.
11229 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11230 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11231 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11232 (x86_linux_dr_get): Likewise.
11233 (x86_linux_dr_set): Likewise.
11234 (update_debug_registers_callback): Likewise.
11235 (x86_linux_dr_set_addr): Likewise.
11236 (x86_linux_dr_get_addr): Likewise.
11237 (x86_linux_dr_set_control): Likewise.
11238 (x86_linux_dr_get_control): Likewise.
11239 (x86_linux_dr_get_status): Likewise.
11240 (x86_linux_update_debug_registers): Likewise.
11241
2b95d440
GB
112422015-03-24 Gary Benson <gbenson@redhat.com>
11243
11244 * linux-x86-low.c (x86_linux_update_debug_registers):
11245 New function, factored out from...
11246 (x86_linux_prepare_to_resume): ...this.
11247
14b0bc68
GB
112482015-03-24 Gary Benson <gbenson@redhat.com>
11249
11250 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11251 (x86_linux_dr_set): Likewise.
11252 (update_debug_registers_callback): Likewise.
11253 (x86_linux_dr_set_addr): Likewise.
11254 (x86_linux_dr_get_addr): Likewise.
11255 (x86_linux_dr_set_control): Likewise.
11256 (x86_linux_dr_get_control): Likewise.
11257 (x86_linux_dr_get_status): Likewise.
11258 (x86_linux_prepare_to_resume): Likewise.
11259
5dfe6ca8
GB
112602015-03-24 Gary Benson <gbenson@redhat.com>
11261
11262 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11263 Use perror_with_name. Pass string through gettext.
11264 (x86_linux_dr_set): Likewise.
11265
d33472ad
GB
112662015-03-24 Gary Benson <gbenson@redhat.com>
11267
11268 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11269 (x86_linux_dr_set_addr): ...this.
11270 (x86_dr_low_get_addr): Rename to...
11271 (x86_linux_dr_get_addr): ...this.
11272 (x86_dr_low_set_control): Rename to...
11273 (x86_linux_dr_set_control): ...this.
11274 (x86_dr_low_get_control): Rename to...
11275 (x86_linux_dr_get_control): ...this.
11276 (x86_dr_low_get_status): Rename to...
11277 (x86_linux_dr_get_status): ...this.
11278 (x86_dr_low): Update with new function names.
11279
4b134ca1
GB
112802015-03-24 Gary Benson <gbenson@redhat.com>
11281
11282 * Makefile.in (x86-linux.o): New rule.
11283 * configure.srv: Add x86-linux.o to relevant targets.
11284 * linux-low.c (lwp_set_arch_private_info): New function.
11285 (lwp_arch_private_info): Likewise.
11286 * linux-x86-low.c: Include nat/x86-linux.h.
11287 (arch_lwp_info): Removed structure.
11288 (update_debug_registers_callback):
11289 Use lwp_set_debug_registers_changed.
11290 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11291 and lwp_set_debug_registers_changed.
11292 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11293
34c703da
GB
112942015-03-24 Gary Benson <gbenson@redhat.com>
11295
11296 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11297 * linux-arm-low.c (arm_new_thread): Likewise.
11298 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11299 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11300 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11301 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11302
cff068da
GB
113032015-03-24 Gary Benson <gbenson@redhat.com>
11304
11305 * linux-low.c (ptid_of_lwp): New function.
11306 (lwp_is_stopped): Likewise.
11307 (lwp_stop_reason): Likewise.
11308 * linux-x86-low.c (update_debug_registers_callback):
11309 Use lwp_is_stopped.
11310 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11311 lwp_stop_reason.
11312
b2f7c7e8
GB
113132015-03-24 Gary Benson <gbenson@redhat.com>
11314
11315 * linux-low.h (linux_stop_lwp): Remove declaration.
11316
6d4ee8c6
GB
113172015-03-24 Gary Benson <gbenson@redhat.com>
11318
11319 * linux-low.h: Include nat/linux-nat.h.
11320 * linux-low.c (iterate_over_lwps_args): New structure.
11321 (iterate_over_lwps_filter): New function.
11322 (iterate_over_lwps): Likewise.
11323 * linux-x86-low.c (update_debug_registers_callback):
11324 Update signature to what iterate_over_lwps expects.
11325 Remove PID check that iterate_over_lwps now performs.
11326 (x86_dr_low_set_addr): Use iterate_over_lwps.
11327 (x86_dr_low_set_control): Likewise.
11328
70a0bb6b
GB
113292015-03-24 Gary Benson <gbenson@redhat.com>
11330
11331 * linux-x86-low.c (x86_debug_reg_state): New function.
11332 (x86_linux_prepare_to_resume): Use the above.
11333
7b669087
GB
113342015-03-24 Gary Benson <gbenson@redhat.com>
11335
11336 * linux-low.c (current_lwp_ptid): New function.
11337 * linux-x86-low.c: Include nat/linux-nat.h.
11338 (x86_dr_low_get_addr): Use current_lwp_ptid.
11339 (x86_dr_low_get_control): Likewise.
11340 (x86_dr_low_get_status): Likewise.
11341
eef49a3d
PA
113422015-03-20 Pedro Alves <palves@redhat.com>
11343
11344 * tracepoint.c (cmd_qtstatus): Make "str" const.
11345
b2333d22
PA
113462015-03-20 Pedro Alves <palves@redhat.com>
11347
11348 * server.c (handle_general_set): Make "req_str" const.
11349
23f238d3
PA
113502015-03-19 Pedro Alves <palves@redhat.com>
11351
11352 * linux-low.c (linux_resume_one_lwp): Rename to ...
11353 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11354 instead call perror_with_name.
11355 (check_ptrace_stopped_lwp_gone): New function.
11356 (linux_resume_one_lwp): Reimplement as wrapper around
11357 linux_resume_one_lwp_throw that swallows errors if the LWP is
11358 gone.
11359
91baf43f
PA
113602015-03-19 Pedro Alves <palves@redhat.com>
11361
11362 * linux-low.c (count_events_callback, select_event_lwp_callback):
11363 No longer check whether the thread has resume_stop as last resume
11364 kind.
11365
8bf3b159
PA
113662015-03-19 Pedro Alves <palves@redhat.com>
11367
11368 * linux-low.c (count_events_callback, select_event_lwp_callback):
11369 Use the lwp's status_pending_p field, not the thread's.
11370
b90fc188
PA
113712015-03-19 Pedro Alves <palves@redhat.com>
11372
11373 * linux-low.c (select_event_lwp_callback): Update comments to
11374 no longer mention SIGTRAP.
11375
464b0089
GB
113762015-03-18 Gary Benson <gbenson@redhat.com>
11377
11378 * server.c (handle_query): Do not report vFile:fstat as supported.
11379
aa9e327f
GB
113802015-03-11 Gary Benson <gbenson@redhat.com>
11381
11382 * hostio.c (sys/types.h): New include.
11383 (sys/stat.h): Likewise.
11384 (common-remote-fileio.h): Likewise.
11385 (handle_fstat): New function.
11386 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11387
791c0056
GB
113882015-03-11 Gary Benson <gbenson@redhat.com>
11389
11390 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11391 struct stat.st_blocks and struct stat.st_blksize.
11392 * configure: Regenerate.
11393 * config.in: Likewise.
11394 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11395 (OBS): Add common-remote-fileio.o.
11396 (common-remote-fileio.o): New rule.
11397
9a9df970
PA
113982015-03-09 Pedro Alves <palves@redhat.com>
11399
11400 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11401 'struct sockaddr' pointer in 'accept' call.
11402
9eb1356e
PA
114032015-03-09 Pedro Alves <palves@redhat.com>
11404
11405 Revert:
11406 2015-03-07 Pedro Alves <palves@redhat.com>
11407 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11408 or <winsock2.h> here. Instead include "gdb_socket.h".
11409 (remote_open): Use union gdb_sockaddr_u.
11410 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11411 or <winsock2.h> here. Instead include "gdb_socket.h".
11412 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11413 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11414 or <sys/un.h>.
11415 (init_named_socket, gdb_agent_helper_thread): Use union
11416 gdb_sockaddr_u.
11417
aac331e4
PA
114182015-03-07 Pedro Alves <palves@redhat.com>
11419
11420 * configure.ac (build_warnings): Move
11421 -Wdeclaration-after-statement to the C-specific set.
11422 * configure: Regenerate.
11423
366c75fc
PA
114242015-03-07 Pedro Alves <palves@redhat.com>
11425
11426 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11427 or <winsock2.h> here. Instead include "gdb_socket.h".
11428 (remote_open): Use union gdb_sockaddr_u.
11429 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11430 or <winsock2.h> here. Instead include "gdb_socket.h".
11431 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11432 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11433 or <sys/un.h>.
11434 (init_named_socket, gdb_agent_helper_thread): Use union
11435 gdb_sockaddr_u.
11436
492d29ea
PA
114372015-03-07 Pedro Alves <palves@redhat.com>
11438
11439 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11440 instead.
11441
60a191ed
YQ
114422015-03-06 Yao Qi <yao.qi@linaro.org>
11443
11444 * linux-aarch64-low.c (aarch64_insert_point): Use
11445 show_debug_regs as a boolean.
11446 (aarch64_remove_point): Likewise.
11447
f5771b1d
PA
114482015-03-05 Pedro Alves <palves@redhat.com>
11449
11450 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11451 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11452 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11453 * nto-low.c (nto_target_ops): Likewise.
11454 * spu-low.c (spu_target_ops): Likewise.
11455 * win32-low.c (win32_target_ops): Likewise.
11456
3e572f71
PA
114572015-03-04 Pedro Alves <palves@redhat.com>
11458
72f4393d 11459 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11460 Decide whether a breakpoint triggered based on the SIGTRAP's
11461 siginfo.si_code.
72f4393d
L
11462 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11463 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11464 (linux_low_filter_event): Check for breakpoints before checking
11465 watchpoints.
11466 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11467 siginfo.si_code.
72f4393d
L
11468 (linux_stopped_by_sw_breakpoint)
11469 (linux_supports_stopped_by_sw_breakpoint)
11470 (linux_stopped_by_hw_breakpoint)
11471 (linux_supports_stopped_by_hw_breakpoint): New functions.
11472 (linux_target_ops): Install new target methods.
3e572f71 11473
1ec68e26
PA
114742015-03-04 Pedro Alves <palves@redhat.com>
11475
11476 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11477 * server.c (swbreak_feature, hwbreak_feature): New globals.
11478 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11479 (captured_main): Clear swbreak_feature and hwbreak_feature.
11480 * server.h (swbreak_feature, hwbreak_feature): Declare.
11481 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11482 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11483 supports_stopped_by_hw_breakpoint>: New fields.
11484 (target_supports_stopped_by_sw_breakpoint)
11485 (target_stopped_by_sw_breakpoint)
11486 (target_supports_stopped_by_hw_breakpoint)
11487 (target_stopped_by_hw_breakpoint): Declare.
11488
15c66dd6
PA
114892015-03-04 Pedro Alves <palves@redhat.com>
11490
11491 enum lwp_stop_reason -> enum target_stop_reason
11492 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11493 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11494 (linux_wait_1, stuck_in_jump_pad_callback)
11495 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11496 (linux_stopped_by_watchpoint):
11497 * linux-low.h (enum lwp_stop_reason): Delete.
11498 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11499 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11500
98fc70d6
YQ
115012015-03-04 Yao Qi <yao.qi@linaro.org>
11502
11503 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11504
dd2ac174
GB
115052015-03-03 Gary Benson <gbenson@redhat.com>
11506
11507 * hostio.c (handle_vFile): Fix prefix lengths.
11508
d68e53f4
MM
115092015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11510
11511 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11512 ptr_bits.
11513
bf2d68ab
AA
115142015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11515
11516 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11517 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11518 (clean): Add "rm -f" for above C files.
11519 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11520 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11521 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11522 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11523 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11524 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11525 (init_registers_s390x_vx_linux64)
11526 (init_registers_s390x_tevx_linux64)
11527 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11528 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11529 declarations.
11530 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11531 (s390_store_vxrs_high): New functions.
11532 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11533 NT_S390_VXRS_HIGH.
11534 (s390_arch_setup): Add logic for selecting one of the new target
11535 descriptions. Activate the new vector regsets if applicable.
11536 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11537 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11538 and init_registers_s390x_tevx_linux64.
11539
c966a859
PA
115402015-03-01 Pedro Alves <palves@redhat.com>
11541
11542 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11543 parameter.
11544
4180215b
PA
115452015-02-27 Pedro Alves <palves@redhat.com>
11546
11547 * linux-x86-low.c (u_debugreg_offset): New function.
11548 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11549
749bab01
PA
115502015-02-27 Pedro Alves <palves@redhat.com>
11551
11552 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11553 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11554 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11555 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11556 (ps_lsetfpregs, ps_getpid)
11557 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11558 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11559 (ps_lsetxregs, ps_plog): Declare.
11560
3c14e5a3
PA
115612015-02-27 Pedro Alves <palves@redhat.com>
11562
11563 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11564 IP_AGENT_EXPORT_FUNC.
11565 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11566 IP_AGENT_EXPORT_FUNC.
11567 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11568 (IP_AGENT_EXPORT): Delete.
11569 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11570 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11571 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11572 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11573 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11574 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11575 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11576 (traceframe_read_count, traceframe_write_count)
11577 (traceframes_created, trace_state_variables, get_raw_reg)
11578 (get_trace_state_variable_value, set_trace_state_variable_value)
11579 (ust_loaded, helper_thread_id, cmd_buf): Use
11580 IPA_SYM_EXPORTED_NAME.
11581 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11582 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11583 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11584 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11585 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11586 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11587 EXTERN_C_PUSH/EXTERN_C_POP.
11588 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11589 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11590 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11591 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11592 (traceframe_write_count, traceframe_read_count)
11593 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11594 (about_to_request_buffer_space, get_trace_state_variable_value)
11595 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11596 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11597 EXTERN_C_PUSH/EXTERN_C_POP.
11598 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11599 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11600 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11601 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11602 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11603 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11604 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11605 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11606 Define.
11607 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11608 (IP_AGENT_EXPORT_VAR_DECL): Define.
11609 (tracing): Declare.
11610 (gdb_agent_get_raw_reg): Declare.
11611
fe978cb0
PA
116122015-02-27 Tom Tromey <tromey@redhat.com>
11613 Pedro Alves <palves@redhat.com>
11614
11615 Rename symbols whose names are reserved C++ keywords throughout.
11616
3bc3d82a
PA
116172015-02-27 Pedro Alves <palves@redhat.com>
11618
11619 * Makefile.in (COMPILER): New, get it from autoconf.
11620 (CXX): Get from autoconf instead.
11621 (COMPILE.pre): Use COMPILER.
11622 (CC-LD): Rename to ...
11623 (CC_LD): ... this. Use COMPILER.
11624 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11625 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11626 * acinclude.m4: Include build-with-cxx.m4.
11627 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11628 Disable -Werror by default if building in C++ mode.
11629 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11630 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11631 the C++ compiler. Save/restore CXXFLAGS too.
11632 * configure: Regenerate.
11633
07697489
PA
116342015-02-27 Pedro Alves <palves@redhat.com>
11635
11636 * acinclude.m4: Include libiberty.m4.
11637 * configure.ac: Call libiberty_INIT.
11638 * config.in, configure: Regenerate.
11639
9beb7c4e
PA
116402015-02-26 Pedro Alves <palves@redhat.com>
11641
11642 * linux-low.c (linux_wait_1): When incrementing the PC past a
11643 program breakpoint always use the_low_target.breakpoint_len as
11644 increment, rather than the maximum between that and
11645 the_low_target.decr_pc_after_break.
11646
8090aef2
PA
116472015-02-23 Pedro Alves <palves@redhat.com>
11648
11649 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11650 thread was doing a step-over; always adjust the PC if
11651 we stepped over a permanent breakpoint.
11652 (linux_wait_1): If we stepped over breakpoint that was on top of a
11653 permanent breakpoint, manually advance the PC past it.
11654
bc9540e8
PA
116552015-02-23 Pedro Alves <palves@redhat.com>
11656
11657 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11658 modes.
11659 (x86_fill_gregset, x86_store_gregset): Use it when handling
11660 $orig_eax.
11661
2db9a427
PA
116622015-02-20 Pedro Alves <palves@redhat.com>
11663
11664 * thread-db.c: Include "nat/linux-procfs.h".
11665 (thread_db_init): Skip listing new threads if the kernel supports
11666 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11667
afa8d396
PA
116682015-02-20 Pedro Alves <palves@redhat.com>
11669
11670 * linux-low.c (status_pending_p_callback): Use ptid_match.
11671
c9587f88
AT
116722015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11673
11674 PR breakpoints/16812
11675 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11676 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11677 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11678
b05ec7a5
AT
116792015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11680
11681 PR breakpoints/15956
11682 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11683
d33501a5
MM
116842015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11685
11686 * linux-low.c (linux_low_btrace_conf): Print size.
11687 * server.c (handle_btrace_conf_general_set): New.
11688 (hanle_general_set): Call handle_btrace_conf_general_set.
11689 (handle_query): Report Qbtrace-conf:bts:size as supported.
11690
f4abbc16
MM
116912015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11692
11693 * linux-low.c (linux_low_enable_btrace): Update parameters.
11694 (linux_low_btrace_conf): New.
11695 (linux_target_ops)<to_btrace_conf>: Initialize.
11696 * server.c (current_btrace_conf): New.
11697 (handle_btrace_enable): Rename to ...
11698 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11699 to target_enable_btrace. Update comment. Update users.
11700 (handle_qxfer_btrace_conf): New.
11701 (qxfer_packets): Add btrace-conf entry.
11702 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11703 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11704 (target_ops)<read_btrace_conf>: New.
11705 (target_enable_btrace): Update parameters.
11706 (target_read_btrace_conf): New.
11707
043c3577
MM
117082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11709
11710 * server.c (handle_btrace_general_set): Remove call to
11711 target_supports_btrace.
11712 (supported_btrace_packets): New.
11713 (handle_query): Call supported_btrace_packets.
11714 * target.h: include btrace-common.h.
11715 (btrace_target_info): Removed.
11716 (supports_btrace, target_supports_btrace): Update parameters.
11717
734b0e4b
MM
117182015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11719
11720 * Makefile.in (SFILES): Add common/btrace-common.c.
11721 (OBS): Add common/btrace-common.o.
11722 (btrace-common.o): Add build rules.
11723 * linux-low: Include btrace-common.h.
11724 (linux_low_read_btrace): Use struct btrace_data. Call
11725 btrace_data_init and btrace_data_fini.
11726
d6c146e9
PA
117272015-02-06 Pedro Alves <palves@redhat.com>
11728
11729 * thread-db.c (find_new_threads_callback): Add debug output.
11730
20ba1ce6
PA
117312015-02-04 Pedro Alves <palves@redhat.com>
11732
11733 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11734 (resume_stopped_resumed_lwps): New function.
11735 (linux_wait_for_event_filtered): Use it.
11736
8cc73a39
SDJ
117372015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11738
11739 * Makefile.in (SFILES): Add linux-personality.c.
11740 (linux-personality.o): New rule.
11741 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11742 list of objects to be built.
11743 * linux-low.c: Include nat/linux-personality.h.
11744 (linux_create_inferior): Remove code to disable address space
11745 randomization (moved to ../nat/linux-personality.c). Create
11746 cleanup to disable address space randomization.
11747
fb23d554
SDJ
117482015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11749
11750 * Makefile.in (posix-strerror.o): New rule.
11751 (mingw-strerror.o): Likewise.
11752 * configure: Regenerated.
11753 * configure.ac: Source file ../common/common.host. Initialize new
11754 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11755
cdf43629
YQ
117562015-01-14 Yao Qi <yao@codesourcery.com>
11757
11758 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11759 (ppc-linux.o): New rule.
11760 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11761 * configure.ac: AC_CHECK_FUNCS(getauxval).
11762 * config.in: Re-generated.
11763 * configure: Re-generated.
11764 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11765 ppc64_64bit_inferior_p
11766
514c5338
YQ
117672015-01-14 Yao Qi <yao@codesourcery.com>
11768
11769 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11770 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11771 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11772 (PT_ORIG_R3, PT_TRAP): Likewise.
11773 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11774 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11775 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11776
3368c1e5
JB
117772015-01-10 Joel Brobecker <brobecker@adacore.com>
11778
11779 * i387-fp.c (i387_cache_to_xsave): In look over
11780 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11781 zmmh_low_space field by use of zmmh_high_space.
11782
582511be
PA
117832015-01-09 Pedro Alves <palves@redhat.com>
11784
11785 * linux-low.c (step_over_bkpt): Move higher up in the file.
11786 (handle_extended_wait): Don't store the stop_pc here.
11787 (get_stop_pc): Adjust comments and rename to ...
11788 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11789 stopped for a software breakpoint or hardware breakpoint.
11790 (thread_still_has_status_pending_p): New function.
11791 (status_pending_p_callback): Use
11792 thread_still_has_status_pending_p. If the event is no longer
11793 interesting, resume the LWP.
11794 (handle_tracepoints): Add assert.
11795 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11796 (wstatus_maybe_breakpoint): New function.
11797 (cancel_breakpoint): Delete function.
11798 (check_stopped_by_watchpoint): New function, factored out from
11799 linux_low_filter_event.
11800 (lp_status_maybe_breakpoint): Delete function.
11801 (linux_low_filter_event): Remove filter_ptid argument.
11802 Leave thread group exits pending here. Store the LWP's stop PC.
11803 Always leave events pending.
11804 (linux_wait_for_event_filtered): Pull all events out of the
11805 kernel, and leave them all pending.
11806 (count_events_callback, select_event_lwp_callback): Consider all
11807 events.
11808 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11809 (select_event_lwp): Only give preference to the stepping LWP in
11810 all-stop mode. Adjust comments.
11811 (ignore_event): New function.
11812 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11813 references to cancel_breakpoints. Adjust to renames. Also give
11814 equal priority to all LWPs that have had events in non-stop mode.
11815 If reporting a software breakpoint event, unadjust the LWP's PC.
11816 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11817 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11818 Adjust.
11819 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11820 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11821 (linux_stopped_by_watchpoint): Adjust.
11822 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11823 * linux-low.h (enum lwp_stop_reason): New.
11824 (struct lwp_info) <stop_pc>: Adjust comment.
11825 <stopped_by_watchpoint>: Delete field.
11826 <stop_reason>: New field.
11827 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11828 * mem-break.c (software_breakpoint_inserted_here)
11829 (hardware_breakpoint_inserted_here): New function.
11830 * mem-break.h (software_breakpoint_inserted_here)
11831 (hardware_breakpoint_inserted_here): Declare.
11832 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11833 (cancel_breakpoints): Delete.
11834 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11835 (upload_fast_traceframes): Remove references to
11836 cancel_breakpoints.
11837
a33e3959
PA
118382015-01-09 Pedro Alves <palves@redhat.com>
11839
11840 * thread-db.c (find_new_threads_callback): Ignore thread if the
11841 kernel thread ID is -1.
11842
8784d563
PA
118432015-01-09 Pedro Alves <palves@redhat.com>
11844
11845 * linux-low.c (linux_attach_fail_reason_string): Move to
11846 nat/linux-ptrace.c, and rename.
11847 (linux_attach_lwp): Update comment.
11848 (attach_proc_task_lwp_callback): New function.
11849 (linux_attach): Adjust to rename and use
11850 linux_proc_attach_tgid_threads.
11851 (linux_attach_fail_reason_string): Delete declaration.
11852
76f2b779
JB
118532015-01-01 Joel Brobecker <brobecker@adacore.com>
11854
11855 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11856 * server.c (gdbserver_version): Likewise.
11857
fafcc06a
SDJ
118582014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11859
11860 * remote-utils.c: Include ctype.h.
11861 (input_interrupt): Explicitly handle the case when the char
11862 received is the NUL byte. Improve the printing of non-ASCII
11863 characters.
11864
beed38b8
JB
118652014-12-16 Joel Brobecker <brobecker@adacore.com>
11866
11867 * linux-low.c (linux_low_filter_event): Update call to
11868 linux_enable_event_reporting following the addition of
11869 a new parameter to that function.
11870
bf330350
CU
118712014-12-16 Catalin Udma <catalin.udma@freescale.com>
11872
11873 PR server/17457
11874 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11875 (AARCH64_FPCR_REGNO): Likewise.
11876 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11877 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11878 (aarch64_store_fpregset): Likewise.
11879
5227d625
JB
118802014-12-15 Joel Brobecker <brobecker@adacore.com>
11881
11882 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11883 Remove FIXME comment about assumption about N.
11884
f93b65a0
JB
118852014-12-13 Joel Brobecker <brobecker@adacore.com>
11886
11887 * configure.ac: If large-file support is disabled in GDBserver,
11888 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11889 * configure: Regenerate.
11890
e5a9158d
AA
118912014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11892
11893 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11894 warning upon ENODATA from ptrace.
11895 * linux-s390-low.c (s390_store_tdb): New.
11896 (s390_regsets): Add regset for NT_S390_TDB.
11897
feea5f36
AA
118982014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11899
11900 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11901 without a fill_function.
11902 * linux-s390-low.c (s390_fill_last_break): Remove.
11903 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11904 (s390_arch_setup): Use regset's size instead of fill_function for
11905 loop end condition.
11906
098dbe61
AA
119072014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11908
11909 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11910 the regset's store function when ptrace returned an error.
11911 * regcache.c (get_thread_regcache): Invalidate register cache
11912 before fetching inferior's registers.
11913
28eef672
AA
119142014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11915
11916 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11917 while-loop as for-loop.
11918 (regsets_store_inferior_registers): Likewise.
11919
bdca27a2
YQ
119202014-11-28 Yao Qi <yao@codesourcery.com>
11921
11922 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11923 * config.in, configure: Re-generate.
11924 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11925 is defined.
11926
9c232dda
YQ
119272014-11-21 Yao Qi <yao@codesourcery.com>
11928
11929 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11930 (AC_CHECK_HEADERS): Remove malloc.h.
11931 * configure: Re-generated.
11932 * config.in: Re-generated.
11933 * server.h: Don't include alloca.h and malloc.h.
11934 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11935 Don't include malloc.h.
11936
43968415
JB
119372014-11-17 Joel Brobecker <brobecker@adacore.com>
11938
11939 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11940 corresponding ERRNO check in same block.
11941
40e91bc7
PA
119422014-11-12 Pedro Alves <palves@redhat.com>
11943
11944 * server.c (cont_thread): Update comment.
11945 (start_inferior, attach_inferior): No longer clear cont_thread.
11946 (handle_v_cont): No longer set cont_thread.
11947 (captured_main): Clear cont_thread each time a GDB connects.
11948
c2c118cf
PA
119492014-11-12 Pedro Alves <palves@redhat.com>
11950
11951 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11952 thread, and don't resume all threads if the Hc thread has exited.
11953
78708b7c
PA
119542014-11-12 Pedro Alves <palves@redhat.com>
11955
11956 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11957 the process group instead of to a specific LWP.
11958
a2abc7de
PA
119592014-10-15 Pedro Alves <palves@redhat.com>
11960
11961 PR server/17487
11962 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11963 parameter.
11964 (arm_set_thread_context): Delete.
11965 (the_low_target): Adjust.
11966 * win32-i386-low.c (debug_registers_changed)
11967 (debug_registers_used): Delete.
11968 (update_debug_registers_callback): New function.
11969 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11970 needing to update their debug registers.
11971 (win32_get_current_dr): New function.
11972 (x86_dr_low_get_addr, x86_dr_low_get_control)
11973 (x86_dr_low_get_status): Fetch the debug register from the thread
11974 record's context.
11975 (i386_initial_stuff): Adjust.
11976 (i386_get_thread_context): Remove current_event parameter. Don't
11977 clear debug_registers_changed nor copy DR values to
11978 debug_reg_state.
11979 (i386_set_thread_context): Delete.
11980 (i386_prepare_to_resume): New function.
11981 (i386_thread_added): Mark the thread as needing to update irs
11982 debug registers.
11983 (the_low_target): Remove i386_set_thread_context and install
11984 i386_prepare_to_resume.
11985 * win32-low.c (win32_get_thread_context): Adjust.
11986 (win32_set_thread_context): Use SetThreadContext
11987 directly.
11988 (win32_prepare_to_resume): New function.
11989 (win32_require_context): New function, factored out from ...
11990 (thread_rec): ... this.
11991 (continue_one_thread): Call win32_prepare_to_resume on each thread
11992 we're about to continue.
11993 (win32_resume): Call win32_prepare_to_resume on the event thread.
11994 * win32-low.h (struct win32_thread_info)
11995 <debug_registers_changed>: New field.
11996 (struct win32_target_ops): Change prototype of set_thread_context,
11997 delete set_thread_context and add prepare_to_resume.
11998 (win32_require_context): New declaration.
11999
a442d071
GB
120002014-10-08 Gary Benson <gbenson@redhat.com>
12001
12002 * server.h: Do not include common-exceptions.h.
12003
6f1947e8
GB
120042014-10-08 Gary Benson <gbenson@redhat.com>
12005
12006 * server.h: Do not include cleanups.h.
12007
63b434a4
JH
120082014-09-30 James Hogan <james.hogan@imgtec.com>
12009
12010 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12011 mips64-dsp-linux.c.
12012
c4d9ceb6
YQ
120132014-09-23 Yao Qi <yao@codesourcery.com>
12014
12015 * linux-low.c (lp_status_maybe_breakpoint): New function.
12016 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12017 (count_events_callback): Likewise.
12018 (select_event_lwp_callback): Likewise.
12019 (cancel_breakpoints_callback): Likewise.
12020
89a5711c
DB
120212014-09-19 Don Breazeal <donb@codesourcery.com>
12022
12023 * linux-low.c (handle_extended_wait): Call
12024 linux_ptrace_get_extended_event.
12025 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12026 linux_is_extended_waitstatus.
12027
bffc0964
JB
120282014-09-16 Joel Brobecker <brobecker@adacore.com>
12029
12030 * Makefile.in (CPPFLAGS): Define.
12031 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12032 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12033
0bfdf32f
GB
120342014-09-16 Gary Benson <gbenson@redhat.com>
12035
12036 * inferiors.h (current_inferior): Renamed as...
12037 (current_thread): New variable. All uses updated.
12038 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12039 (maybe_move_out_of_jump_pad): Likewise.
12040 (cancel_breakpoint): Likewise.
12041 (linux_low_filter_event): Likewise.
12042 (wait_for_sigstop): Likewise.
12043 (linux_resume_one_lwp): Likewise.
12044 (need_step_over_p): Likewise.
12045 (start_step_over): Likewise.
12046 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12047 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12048 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12049 and save_inferior as saved_thread.
12050 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12051 saved_thread.
12052 (regcache_invalidate_thread): Likewise.
12053 * remote-utils.c (prepare_resume_reply): Likewise.
12054 * thread-db.c (thread_db_get_tls_address): Likewise.
12055 (disable_thread_event_reporting): Likewise.
12056 (remove_thread_event_breakpoints): Likewise.
12057 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12058 as saved_thread.
12059 * target.h (set_desired_inferior): Renamed as...
12060 (set_desired_thread): New declaration. All uses updated.
12061 * server.c (myresume): Updated comment to reference thread instead
12062 of inferior.
12063 (handle_serial_event): Likewise.
12064 (handle_target_event): Likewise.
12065
361c8ade
GB
120662014-09-12 Tom Tromey <tromey@redhat.com>
12067 Gary Benson <gbenson@redhat.com>
12068
12069 * regcache.h: Include common-regcache.h.
12070 (regcache_read_pc): Don't declare.
12071 * regcache.c (get_thread_regcache_for_ptid): New function.
12072
bd9269f7
GB
120732014-09-11 Tom Tromey <tromey@redhat.com>
12074 Gary Benson <gbenson@redhat.com>
12075
12076 * symbol.c: New file.
12077 * Makefile.in (SFILES): Add symbol.c.
12078 (OBS): Add symbol.o.
12079
f8c1d06b
GB
120802014-09-11 Gary Benson <gbenson@redhat.com>
12081
12082 * target.c (target_stop_ptid, target_continue_ptid): New
12083 functions.
12084
721ec300
GB
120852014-09-11 Tom Tromey <tromey@redhat.com>
12086 Gary Benson <gbenson@redhat.com>
12087
12088 * target.h: Include target/target.h.
12089 * target.c (target_read_memory, target_read_uint32)
12090 (target_write_memory): New functions.
12091
c5e92cca
GB
120922014-09-11 Gary Benson <gbenson@redhat.com>
12093
12094 * server.h (debug_hw_points): Don't declare.
12095 * server.c (debug_hw_points): Don't define. Replace all uses
12096 with show_debug_regs.
12097 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12098 all uses with show_debug_regs.
12099
2e4bb98a
EBM
121002014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12101
12102 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12103 endianness into account.
12104 (ppc_supply_ptrace_register): Likewise.
12105
ac740bc7
JH
121062014-09-03 James Hogan <james.hogan@imgtec.com>
12107
12108 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12109 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12110
97ea6506
GB
121112014-09-03 Gary Benson <gbenson@redhat.com>
12112
12113 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12114 ALL_DEBUG_ADDRESS_REGISTERS.
12115
df7e5265
GB
121162014-09-02 Gary Benson <gbenson@redhat.com>
12117
12118 * i386-low.h: Renamed as...
12119 * x86-low.h: New file. All type, function and variable name
12120 prefixes changed from "i386_" to "x86_". All references updated.
12121 * i386-low.c: Renamed as...
12122 * x86-low.c: New file. All type, function and variable name
12123 prefixes changed from "i386_" to "x86_". All references updated.
12124
ed859da7
GB
121252014-09-02 Gary Benson <gbenson@redhat.com>
12126
12127 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12128 (x86_linux_new_thread): Likewise.
12129
860789c7
GB
121302014-08-29 Gary Benson <gbenson@redhat.com>
12131
12132 * server.h (setjmp.h): Do not include.
12133 (toplevel): Do not declare.
12134 (common-exceptions.h): Include.
12135 (cleanups.h): Likewise.
12136 * server.c (toplevel): Do not define.
12137 (exit_code): New static global.
12138 (detach_or_kill_for_exit_cleanup): New function.
12139 (main): New function. Original main renamed to...
12140 (captured_main): New function.
12141 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12142
ff55e1b5
GB
121432014-08-29 Gary Benson <gbenson@redhat.com>
12144
12145 * Makefile.in (SFILES): Add common/common-exceptions.c.
12146 (OBS): Add common-exceptions.o.
12147 (common-exceptions.o): New rule.
12148 * utils.c (prepare_to_throw_exception): New function.
12149
e9bcb658
GB
121502014-08-29 Gary Benson <gbenson@redhat.com>
12151
12152 * config.in: Regenerate.
12153 * configure: Likewise.
12154
e3180625
GB
121552014-08-29 Gary Benson <gbenson@redhat.com>
12156
12157 * Makefile.in (SFILES): Add common/cleanups.c.
12158 (OBS): cleanups.o.
12159 (cleanups.o): New rule.
12160
e3d6ba5d
GB
121612014-08-29 Gary Benson <gbenson@redhat.com>
12162
12163 * utils.c (internal_vwarning): New function.
12164
7096e886
GB
121652014-08-28 Gary Benson <gbenson@redhat.com>
12166
12167 * utils.h (fatal): Remove declaration.
12168 * utils.c (fatal): Remove function.
12169
14ce3192
GB
121702014-08-28 Gary Benson <gbenson@redhat.com>
12171
12172 * tracepoint.c (gdb_agent_init): Replace fatal with
12173 perror_with_name.
12174 (initialize_tracepoint): Likewise.
12175
50278d59
GB
121762014-08-28 Gary Benson <gbenson@redhat.com>
12177
12178 * remote-utils.c (remote_prepare): Replace fatal with error.
12179
aa96c426
GB
121802014-08-28 Gary Benson <gbenson@redhat.com>
12181
12182 * linux-low.c (linux_async): Replace fatal with warning.
12183 Tidy up and return.
12184 (linux_start_non_stop): Return -1 if linux_async failed.
12185
f7160e97
GB
121862014-08-28 Gary Benson <gbenson@redhat.com>
12187
12188 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12189 gdb_assert.
12190 (i386_dr_low_get_addr): Remove vague comment.
12191 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12192 gdb_assert.
12193
38e08fca
GB
121942014-08-28 Gary Benson <gbenson@redhat.com>
12195
12196 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12197 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12198 internal_error.
12199 (linux_resume_one_lwp): Likewise.
12200 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12201 gdb_assert.
12202 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12203 with internal_error.
12204 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12205 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12206 (find_register_by_name): Replace fatal with internal_error.
12207 (find_regno): Likewise.
12208 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12209 * thread-db.c (thread_db_create_event): Likewise.
12210 (thread_db_load_search): Likewise.
12211 (try_thread_db_load_1): Likewise.
12212 * tracepoint.c (get_jump_space_head): Replace fatal with
12213 internal_error.
12214 (claim_trampoline_space): Likewise.
12215 (have_fast_tracepoint_trampoline_buffer): Likewise.
12216 (cmd_qtstart): Likewise.
12217 (stop_tracing): Likewise.
12218 (fast_tracepoint_collecting): Likewise.
12219 (target_malloc): Likewise.
12220 (download_tracepoint): Likewise.
12221 (download_trace_state_variables): Replace check with gdb_assert.
12222 (upload_fast_traceframes): Replace fatal with internal_error.
12223
34abf635
GB
122242014-08-19 Tom Tromey <tromey@redhat.com>
12225 Gary Benson <gbenson@redhat.com>
12226
12227 * Makefile.in (SFILES): Add common/common-debug.c.
12228 (OBS): Add common-debug.o.
12229 (common-debug.o): New rule.
12230 * debug.h (debug_printf): Don't declare.
12231 * debug.c (debug_printf): Renamed and rewritten as...
12232 (debug_vprintf): New function.
12233
f6e94d78
GB
122342014-08-19 Gary Benson <gbenson@redhat.com>
12235
12236 * utils.h: Do not include print-utils.h.
12237
9239eeab
GB
122382014-08-19 Tom Tromey <tromey@redhat.com>
12239 Gary Benson <gbenson@redhat.com>
12240
12241 * server.h: Add static assertion.
12242 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12243
ef87c8bb
GB
122442014-08-19 Tom Tromey <tromey@redhat.com>
12245 Gary Benson <gbenson@redhat.com>
12246
12247 * Makefile.in (SFILES): Add common/errors.c.
12248 (OBS): Add errors.o.
12249 (IPA_OBS): Add errors-ipa.o.
12250 (errors.o): New rule.
12251 (errors-ipa.o): Likewise.
12252 * utils.h (perror_with_name, error, warning): Don't declare.
12253 * utils.c (warning): Renamed and rewritten as...
12254 (vwarning): New function.
12255 (error): Renamed and rewritten as...
12256 (verror): New function.
12257 (internal_error): Renamed and rewritten as...
12258 (internal_verror): New function.
12259
bb974a24
GB
122602014-08-07 Gary Benson <gbenson@redhat.com>
12261
12262 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12263 * configure: Regenerate.
12264 * config.in: Likewise.
12265 * server.h: Do not include errno.h.
12266 * event-loop.c: Likewise.
12267 * hostio-errno.c: Likewise.
12268 * linux-low.c: Likewise.
12269 * remote-utils.c: Likewise.
12270 * spu-low.c: Likewise.
12271 * utils.c: Likewise.
12272 * gdbreplay.c: Unconditionally include errno.h.
12273
6d3d12eb
GB
122742014-08-07 Gary Benson <gbenson@redhat.com>
12275
12276 * server.h: Do not include string.h.
12277 * event-loop.c: Likewise.
12278 * linux-low.c: Likewise.
12279 * regcache.c: Likewise.
12280 * remote-utils.c: Likewise.
12281 * spu-low.c: Likewise.
12282 * utils.c: Likewise.
12283
dccbb609
GB
122842014-08-07 Gary Benson <gbenson@redhat.com>
12285
12286 * server.h: Do not include gdb_assert.h.
12287
e76df0d0
GB
122882014-08-07 Gary Benson <gbenson@redhat.com>
12289
12290 * server.h: Do not include common-utils.h.
12291
4cb9c816
GB
122922014-08-07 Gary Benson <gbenson@redhat.com>
12293
12294 * server.h: Do not include ptid.h.
12295 * notif.h: Likewise.
12296
3995eeee
GB
122972014-08-07 Gary Benson <gbenson@redhat.com>
12298
12299 * server.h: Do not include gdb_locale.h.
12300
cb9f1a9b
GB
123012014-08-07 Gary Benson <gbenson@redhat.com>
12302
12303 * server.h: Do not include gdb/signals.h.
12304 * win32-low.c: Likewise.
12305
a5fceff8
GB
123062014-08-07 Gary Benson <gbenson@redhat.com>
12307
12308 * server.h: Do not include pathmax.h.
12309
b9391142
GB
123102014-08-07 Gary Benson <gbenson@redhat.com>
12311
12312 * server.h: Do not include libiberty.h.
12313 * linux-bfin-low.c: Likewise.
12314
0e443c87
GB
123152014-08-07 Gary Benson <gbenson@redhat.com>
12316
12317 * server.h: Do not include ansidecl.h.
12318
8ebb3f56
GB
123192014-08-07 Gary Benson <gbenson@redhat.com>
12320
12321 * linux-x86-low.c: Do not include stddef.h.
12322 * lynx-ppc-low.c: Likewise.
12323 * tracepoint.c: Likewise.
12324
8980bdf6
GB
123252014-08-07 Gary Benson <gbenson@redhat.com>
12326
12327 * server.h: Do not include stdarg.h.
12328 * nto-low.c: Likewise.
12329
d7096f71
GB
123302014-08-07 Gary Benson <gbenson@redhat.com>
12331
12332 * server.h: Do not include stdlib.h.
12333 * inferiors.c: Likewise.
12334 * linux-low.c: Likewise.
12335 * regcache.c: Likewise.
12336 * spu-low.c: Likewise.
12337 * tracepoint.c: Likewise.
12338 * utils.c: Likewise.
12339
d02f550d
GB
123402014-08-07 Gary Benson <gbenson@redhat.com>
12341
12342 * server.h: Do not include stdio.h.
12343 * linux-low.c: Likewise.
12344 * remote-utils.c: Likewise.
12345 * spu-low.c: Likewise.
12346 * utils.c: Likewise.
12347 * wincecompat.c: Likewise.
12348
87f6c4e3
GB
123492014-08-06 Gary Benson <gbenson@redhat.com>
12350
12351 * regcache.c (init_register_cache): Move conditionals inside if.
12352
7089dca4
GB
123532014-08-06 Gary Benson <gbenson@redhat.com>
12354
12355 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12356
462f517e
GB
123572014-07-31 Gary Benson <gbenson@redhat.com>
12358
12359 * ax.h: Do not include server.h.
12360 * gdbthread.h: Likewise.
12361 * lynx-low.h: Likewise.
12362 * notif.h: Likewise.
12363
976411d6
GB
123642014-07-30 Gary Benson <gbenson@redhat.com>
12365
12366 * server.h: Include common-defs.h.
12367 Do not include config.h or build-gnulib-gdbserver/config.h.
12368
d41f6d8e
GB
123692014-07-30 Gary Benson <gbenson@redhat.com>
12370
12371 * hostio-errno.c: Move server.h to top of includes list.
12372 * inferiors.c: Likewise.
12373 * linux-x86-low.c: Likewise.
12374 * notif.c: Include server.h.
12375
314c6a35
TT
123762014-07-24 Tom Tromey <tromey@redhat.com>
12377 Gary Benson <gbenson@redhat.com>
12378
12379 * server.h (CORE_ADDR): Now unsigned.
12380
69ff6be5
PA
123812014-07-16 Pedro Alves <palves@redhat.com>
12382
12383 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12384
ce9e3fe7
PA
123852014-07-15 Pedro Alves <palves@redhat.com>
12386
12387 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12388 copy.
12389
e76126e8
PA
123902014-07-11 Pedro Alves <palves@redhat.com>
12391
12392 * linux-low.c (kill_wait_lwp): New function, based on
12393 kill_one_lwp_callback, but use my_waitpid directly.
12394 (kill_one_lwp_callback, linux_kill): Use it.
12395
8e9db26e
PA
123962014-06-23 Pedro Alves <palves@redhat.com>
12397
12398 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12399 before setting DR0..DR3.
12400
698b3e08
GB
124012014-06-20 Gary Benson <gbenson@redhat.com>
12402
12403 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12404 * configure: Regenerated.
12405 * config.in: Likewise.
12406
125f8a3d
GB
124072014-06-20 Gary Benson <gbenson@redhat.com>
12408
12409 * Makefile.in (SFILES): Update locations for files moved
12410 from common to nat.
12411 (object file files): Reordered.
12412
42995dbd
GB
124132014-06-20 Gary Benson <gbenson@redhat.com>
12414
12415 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12416 (i386_dr_low_set_addr): Likewise.
12417 (i386_dr_low_get_addr): Likewise.
12418 (i386_dr_low_can_set_control): Likewise.
12419 (i386_dr_low_set_control): Likewise.
12420 (i386_dr_low_get_control): Likewise.
12421 (i386_dr_low_get_status): Likewise.
12422 (i386_get_debug_register_length): Likewise.
12423 * linux-x86-low.c (i386_dr_low_set_addr):
12424 Changed signature. Made static.
12425 (i386_dr_low_get_addr): Likewise.
12426 (i386_dr_low_set_control): Likewise.
12427 (i386_dr_low_get_control): Likewise.
12428 (i386_dr_low_get_status): Likewise.
12429 (i386_dr_low): New global variable.
12430 * win32-i386-low.c (i386_dr_low_set_addr):
12431 Changed signature. Made static.
12432 (i386_dr_low_get_addr): Likewise.
12433 (i386_dr_low_set_control): Likewise.
12434 (i386_dr_low_get_control): Likewise.
12435 (i386_dr_low_get_status): Likewise.
12436 (i386_dr_low): New global variable.
12437
e1d2394b
MS
124382014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12439
12440 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12441 * Makefile.in (AR, AR_FLAGS): Define.
12442 * configure: Regenerate.
12443
3a8ee006
GB
124442014-06-19 Gary Benson <gbenson@redhat.com>
12445
12446 * Makefile.in (i386-dregs.o): New rule.
12447 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12448 * i386-low.c (target.h): Remove include.
12449 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12450 (DR_CONTROL_SHIFT): Likewise.
12451 (DR_CONTROL_SIZE): Likewise.
12452 (DR_RW_EXECUTE): Likewise.
12453 (DR_RW_WRITE): Likewise.
12454 (DR_RW_READ): Likewise.
12455 (DR_RW_IORW): Likewise.
12456 (DR_LEN_1): Likewise.
12457 (DR_LEN_2): Likewise.
12458 (DR_LEN_4): Likewise.
12459 (DR_LEN_8): Likewise.
12460 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12461 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12462 (DR_ENABLE_SIZE): Likewise.
12463 (DR_LOCAL_SLOWDOWN): Likewise.
12464 (DR_GLOBAL_SLOWDOWN): Likewise.
12465 (DR_CONTROL_RESERVED): Likewise.
12466 (I386_DR_CONTROL_MASK): Likewise.
12467 (I386_DR_VACANT): Likewise.
12468 (I386_DR_LOCAL_ENABLE): Likewise.
12469 (I386_DR_GLOBAL_ENABLE): Likewise.
12470 (I386_DR_DISABLE): Likewise.
12471 (I386_DR_SET_RW_LEN): Likewise.
12472 (I386_DR_GET_RW_LEN): Likewise.
12473 (I386_DR_WATCH_HIT): Likewise.
12474 (i386_wp_op_t): Likewise.
12475 (i386_show_dr): Likewise.
12476 (i386_length_and_rw_bits): Likewise.
12477 (i386_insert_aligned_watchpoint): Likewise.
12478 (i386_remove_aligned_watchpoint): Likewise.
12479 (i386_handle_nonaligned_watchpoint): Likewise.
12480 i386_update_inferior_debug_regs(): Likewise.
12481 (i386_dr_insert_watchpoint): Likewise.
12482 (i386_dr_remove_watchpoint): Likewise.
12483 (i386_dr_region_ok_for_watchpoint): Likewise.
12484 (i386_dr_stopped_data_address): Likewise.
12485 (i386_dr_stopped_by_watchpoint): Likewise.
12486
8f26655c
GB
124872014-06-19 Gary Benson <gbenson@redhat.com>
12488
12489 * i386-low.c (i386_dr_show): Renamed to
12490 i386_show_dr and made static. All uses updated.
12491 (i386_dr_length_and_rw_bits): Renamed to
12492 i386_length_and_rw_bits and made static.
12493 All uses updated.
12494 (i386_dr_insert_aligned_watchpoint): Renamed to
12495 i386_insert_aligned_watchpoint and made static.
12496 All uses updated.
12497 (i386_dr_remove_aligned_watchpoint): Renamed to
12498 i386_remove_aligned_watchpoint and made static.
12499 All uses updated.
12500 (i386_dr_update_inferior_debug_regs): Renamed to
12501 i386_update_inferior_debug_regs and made static.
12502 All uses updated.
12503
b9228891
GB
125042014-06-18 Gary Benson <gbenson@redhat.com>
12505
5171def3
GB
12506 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12507 (i386_dr_low_can_set_control): Likewise.
12508 (i386_get_debug_register_length): Likewise.
12509 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12510 (i386_dr_low_can_set_control): Likewise.
12511 (i386_get_debug_register_length): Likewise.
12512
125132014-06-17 Gary Benson <gbenson@redhat.com>
12514
b9228891
GB
12515 * i386-low.h (i386-dregs.h): New include.
12516 (DR_FIRSTADDR): Now in i386-dregs.h.
12517 (DR_LASTADDR): Likewise.
12518 (DR_NADDR): Likewise.
12519 (DR_STATUS): Likewise.
12520 (DR_CONTROL): Likewise.
12521 (i386_debug_reg_state): Likewise.
12522 (i386_dr_insert_watchpoint): Likewise.
12523 (i386_dr_remove_watchpoint): Likewise.
12524 (i386_dr_region_ok_for_watchpoint): Likewise.
12525 (i386_dr_stopped_data_address): Likewise.
12526 (i386_dr_stopped_by_watchpoint): Likewise.
12527 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12528
4be83cc2
GB
125292014-06-18 Gary Benson <gbenson@redhat.com>
12530
12531 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12532 i386_dr_insert_watchpoint.
12533 (i386_low_remove_watchpoint): Renamed to
12534 i386_dr_remove_watchpoint.
12535 (i386_low_region_ok_for_watchpoint): Renamed to
12536 i386_dr_region_ok_for_watchpoint.
12537 (i386_low_stopped_data_address): Renamed to
12538 i386_dr_stopped_data_address.
12539 (i386_low_stopped_by_watchpoint): Renamed to
12540 i386_dr_stopped_by_watchpoint.
12541 * i386-low.c (i386_show_dr): Renamed to
12542 i386_dr_show and made nonstatic. All uses updated.
12543 (i386_length_and_rw_bits): Renamed to
12544 i386_dr_length_and_rw_bits and made nonstatic.
12545 All uses updated.
12546 (i386_insert_aligned_watchpoint): Renamed to
12547 i386_dr_insert_aligned_watchpoint and made nonstatic.
12548 All uses updated.
12549 (i386_remove_aligned_watchpoint): Renamed to
12550 i386_dr_remove_aligned_watchpoint and made nonstatic.
12551 All uses updated.
12552 (i386_update_inferior_debug_regs): Renamed to
12553 i386_dr_update_inferior_debug_regs and made nonstatic.
12554 All uses updated.
12555 (i386_low_insert_watchpoint): Renamed to
12556 i386_dr_insert_watchpoint. All uses updated.
12557 (i386_low_remove_watchpoint): Renamed to
12558 i386_dr_remove_watchpoint. All uses updated.
12559 (i386_low_region_ok_for_watchpoint): Renamed to
12560 i386_dr_region_ok_for_watchpoint. All uses updated.
12561 (i386_low_stopped_data_address): Renamed to
12562 i386_dr_stopped_data_address. All uses updated.
12563 (i386_low_stopped_by_watchpoint): Renamed to
12564 i386_dr_stopped_by_watchpoint. All uses updated.
12565
131aa0d4
GB
125662014-06-18 Gary Benson <gbenson@redhat.com>
12567
12568 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12569 (i386_dr_low_can_set_control): Likewise.
12570 (i386_insert_aligned_watchpoint): New check.
12571
d9305f7f
GB
125722014-06-18 Gary Benson <gbenson@redhat.com>
12573
12574 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12575 Renamed to state.
12576
e927c9fc
GB
125772014-06-18 Gary Benson <gbenson@redhat.com>
12578
12579 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12580 instead of fatal and error.
12581 (i386_handle_nonaligned_watchpoint): Likewise.
12582
1b6d4134
GB
125832014-06-18 Gary Benson <gbenson@redhat.com>
12584
12585 * i386-low.c (i386_get_debug_register_length): New macro.
12586 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12587 (i386_show_dr): Use debug_printf instead of fprintf. Use
12588 phex to format values.
12589
6e62758f
GB
125902014-06-18 Gary Benson <gbenson@redhat.com>
12591
12592 * i386-low.h: Comment changes.
12593 * i386-low.c: Likewise.
12594
fc6e2f03
GB
125952014-06-18 Gary Benson <gbenson@redhat.com>
12596
12597 * i386-low.c: Whitespace changes.
12598
f9d1eeed
TT
125992014-06-12 Tom Tromey <tromey@redhat.com>
12600
12601 * utils.c (freeargv): Remove.
12602
0b04e523
TT
126032014-06-12 Tom Tromey <tromey@redhat.com>
12604
12605 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12606 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12607 (parse_debug_format_options): Likewise.
12608 (gdbserver_usage): Likewise.
12609 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12610 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12611 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12612 against libiberty.
12613 ($(LIBGNU)): Depend on libiberty.
12614 (all-lib): Recurse into all subdirs.
12615 (install-only): Invoke "install" target in subdirs.
12616 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12617 targets.
12618 * configure: Rebuild.
12619 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12620 for vasprintf, vsnprintf, or gettimeofday.
12621 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12622 srv_tgtobj.
12623
270c9937
JB
126242014-06-05 Joel Brobecker <brobecker@adacore.com>
12625
12626 * development.sh: Delete.
12627 * Makefile.in (config.status): Adjust dependency on development.sh.
12628 * configure.ac: Adjust development.sh source call.
12629 * configure: Regenerate.
12630
0a261ed8
PA
126312014-06-02 Pedro Alves <palves@redhat.com>
12632
12633 * ax.c (gdb_free_agent_expr): New function.
12634 * ax.h (gdb_free_agent_expr): New declaration.
12635 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12636 list.
12637 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12638 static.
12639 (clear_breakpoint_conditions_and_commands): New function.
12640 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12641 (clear_breakpoint_conditions_and_commands): New declaration.
12642
e9dae05e
RR
126432014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12644
12645 * linux-aarch64-low.c (asm/ptrace.h): Include.
12646
5876f503
JK
126472014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12648
12649 Fix TLS access for -static -pthread.
12650 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12651 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12652 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12653
802e8e6d
PA
126542014-05-20 Pedro Alves <palves@redhat.com>
12655
12656 * linux-aarch64-low.c (aarch64_insert_point)
12657 (aarch64_remove_point): No longer check whether the type is
12658 supported here. Adjust to new interface.
12659 (the_low_target): Install aarch64_supports_z_point_type as
12660 supports_z_point_type method.
12661 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12662 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12663 instead of a Z packet char. Adjust.
12664 (arm_supports_z_point_type): New function.
12665 (arm_insert_point, arm_remove_point): Adjust to new interface.
12666 (the_low_target): Install arm_supports_z_point_type.
12667 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12668 (cris_insert_point, cris_remove_point): Adjust to new interface.
12669 Don't check whether the type is supported here.
12670 (the_low_target): Install cris_supports_z_point_type.
12671 * linux-low.c (linux_supports_z_point_type): New function.
12672 (linux_insert_point, linux_remove_point): Adjust to new interface.
12673 * linux-low.h (struct linux_target_ops) <insert_point,
12674 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12675 raw_breakpoint pointer parameter.
12676 <supports_z_point_type>: New method.
12677 * linux-mips-low.c (mips_supports_z_point_type): New function.
12678 (mips_insert_point, mips_remove_point): Adjust to new interface.
12679 Use mips_supports_z_point_type.
12680 (the_low_target): Install mips_supports_z_point_type.
12681 * linux-ppc-low.c (the_low_target): Install NULL as
12682 supports_z_point_type method.
12683 * linux-s390-low.c (the_low_target): Install NULL as
12684 supports_z_point_type method.
12685 * linux-sparc-low.c (the_low_target): Install NULL as
12686 supports_z_point_type method.
12687 * linux-x86-low.c (x86_supports_z_point_type): New function.
12688 (x86_insert_point): Adjust to new insert_point interface. Use
12689 insert_memory_breakpoint. Adjust to new
12690 i386_low_insert_watchpoint interface.
12691 (x86_remove_point): Adjust to remove_point interface. Use
12692 remove_memory_breakpoint. Adjust to new
12693 i386_low_remove_watchpoint interface.
12694 (the_low_target): Install x86_supports_z_point_type.
12695 * lynx-low.c (lynx_target_ops): Install NULL as
12696 supports_z_point_type callback.
12697 * nto-low.c (nto_supports_z_point_type): New.
12698 (nto_insert_point, nto_remove_point): Adjust to new interface.
12699 (nto_target_ops): Install nto_supports_z_point_type.
12700 * mem-break.c: Adjust intro comment.
12701 (struct raw_breakpoint) <raw_type, size>: New fields.
12702 <inserted>: Update comment.
12703 <shlib_disabled>: Delete field.
12704 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12705 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12706 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12707 (raw_bkpt_type_to_target_hw_bp_type): New function.
12708 (find_enabled_raw_code_breakpoint_at): New function.
12709 (find_raw_breakpoint_at): New type and size parameters. Use them.
12710 (insert_memory_breakpoint): New function, based off
12711 set_raw_breakpoint_at.
12712 (remove_memory_breakpoint): New function.
12713 (set_raw_breakpoint_at): Reimplement.
12714 (set_breakpoint): New, based on set_breakpoint_at.
12715 (set_breakpoint_at): Reimplement.
12716 (delete_raw_breakpoint): Go through the_target->remove_point
12717 instead of assuming memory breakpoints.
12718 (find_gdb_breakpoint_at): Delete.
12719 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12720 (find_gdb_breakpoint): New function.
12721 (set_gdb_breakpoint_at): Delete.
12722 (z_type_supported): New function.
12723 (set_gdb_breakpoint_1): New function, loosely based off
12724 set_gdb_breakpoint_at.
12725 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12726 (delete_gdb_breakpoint_at): Delete.
12727 (delete_gdb_breakpoint_1): New function, loosely based off
12728 delete_gdb_breakpoint_at.
12729 (delete_gdb_breakpoint): New function.
12730 (clear_gdb_breakpoint_conditions): Rename to ...
12731 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12732 breakpoint.
12733 (add_condition_to_breakpoint): Make static.
12734 (add_breakpoint_condition): Take a struct breakpoint pointer
12735 instead of an address. Adjust.
12736 (gdb_condition_true_at_breakpoint): Rename to ...
12737 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12738 z_type parameter.
12739 (gdb_condition_true_at_breakpoint): Reimplement.
12740 (add_breakpoint_commands): Take a struct breakpoint pointer
12741 instead of an address. Adjust.
12742 (gdb_no_commands_at_breakpoint): Rename to ...
12743 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12744 parameter. Return true if no breakpoint was found. Change debug
12745 output.
12746 (gdb_no_commands_at_breakpoint): Reimplement.
12747 (run_breakpoint_commands): Rename to ...
12748 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12749 and change return type to boolean.
12750 (run_breakpoint_commands): New function.
12751 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12752 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12753 breakpoint. Go through the_target->remove_point instead of
12754 assuming memory breakpoint.
12755 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12756 software and hardware breakpoints.
12757 (reinsert_raw_breakpoint): Go through the_target->insert_point
12758 instead of assuming memory breakpoint.
12759 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12760 software and hardware breakpoints.
12761 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12762 Check both software and hardware breakpoints.
12763 (validate_inserted_breakpoint): Assert the breakpoint is a
12764 software breakpoint. Set the inserted flag to -1 instead of
12765 setting shlib_disabled.
12766 (delete_disabled_breakpoints): Adjust.
12767 (validate_breakpoints): Only validate software breakpoints.
12768 Adjust to inserted flag change.
12769 (check_mem_read, check_mem_write): Skip breakpoint types other
12770 than software breakpoints. Adjust to inserted flag change.
12771 * mem-break.h (enum raw_bkpt_type): New enum.
12772 (raw_breakpoint, struct process_info): Forward declare.
12773 (Z_packet_to_target_hw_bp_type): Delete declaration.
12774 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12775 (set_gdb_breakpoint, delete_gdb_breakpoint)
12776 (clear_breakpoint_conditions): New declarations.
12777 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12778 (breakpoint_inserted_here): Update comment.
12779 (add_breakpoint_condition, add_breakpoint_commands): Replace
12780 address parameter with a breakpoint pointer parameter.
12781 (gdb_breakpoint_here): Update comment.
12782 (delete_gdb_breakpoint_at): Delete.
12783 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12784 * server.c (process_point_options): Take a struct breakpoint
12785 pointer instead of an address. Adjust.
12786 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12787 delete_gdb_breakpoint.
12788 * spu-low.c (spu_target_ops): Install NULL as
12789 supports_z_point_type method.
12790 * target.h: Include mem-break.h.
12791 (struct target_ops) <prepare_to_access_memory>: Update comment.
12792 <supports_z_point_type>: New field.
12793 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12794 instead of a char. Also take a raw breakpoint pointer.
12795 * win32-arm-low.c (the_low_target): Install NULL as
12796 supports_z_point_type.
12797 * win32-i386-low.c (i386_supports_z_point_type): New function.
12798 (i386_insert_point, i386_remove_point): Adjust to new interface.
12799 (the_low_target): Install i386_supports_z_point_type.
12800 * win32-low.c (win32_supports_z_point_type): New function.
12801 (win32_insert_point, win32_remove_point): Adjust to new interface.
12802 (win32_target_ops): Install win32_supports_z_point_type.
12803 * win32-low.h (struct win32_target_ops):
12804 <supports_z_point_type>: New method.
12805 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12806 instead of a char. Also take a raw breakpoint pointer.
12807
932539e3
PA
128082014-05-20 Pedro Alves <palves@redhat.com>
12809
12810 * mem-break.h: Include break-common.h.
12811 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12812 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12813 (Z_packet_to_target_hw_bp_type): New declaration.
12814 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12815 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12816 (Z_PACKET_ACCESS_WP): Delete macros.
12817 (Z_packet_to_hw_type): Delete function.
12818 * i386-low.h: Don't include break-common.h here.
12819 (Z_packet_to_hw_type): Delete declaration.
12820 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12821 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12822 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12823 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12824 * linux-aarch64-low.c: Don't include break-common.h here.
12825 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12826 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12827 (Z_packet_to_target_hw_bp_type): Delete function.
12828 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12829 function.
12830 (mips_insert_point, mips_remove_point): Use
12831 Z_packet_to_target_hw_bp_type.
12832
4ff0d3d8
PA
128332014-05-20 Pedro Alves <palves@redhat.com>
12834
12835 * linux-aarch64-low.c: Include break-common.h.
12836 (enum target_point_type): Delete.
12837 (Z_packet_to_point_type): Rename to ...
12838 (Z_packet_to_target_hw_bp_type): ... this, and return a
12839 target_hw_bp_type instead.
12840 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12841 instead of an enum target_point_type.
12842 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12843 breakpoint type.
12844 (aarch64_dr_state_insert_one_point)
12845 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12846 (aarch64_handle_aligned_watchpoint)
12847 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12848 Take an enum target_hw_bp_type instead of an enum
12849 target_point_type.
12850 (aarch64_supports_z_point_type): New function.
12851 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12852 use Z_packet_to_target_hw_bp_type.
12853
786dc519
JB
128542014-05-20 Joel Brobecker <brobecker@adacore.com>
12855
12856 * configure.ac: Only use -Werror by default when DEVELOPMENT
12857 is true.
12858 * configure: Regenerate.
12859
9e0aa64f
JK
128602014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12861
12862 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12863 * linux-x86-low.c (X86_64_USER_REGS): New.
12864 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12865
2b577b92
YQ
128662014-04-28 Yao Qi <yao@codesourcery.com>
12867
12868 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12869 name.
12870
94611da2
PA
128712014-04-25 Pedro Alves <palves@redhat.com>
12872
12873 PR server/16255
12874 * linux-low.c (linux_attach_fail_reason_string): New function.
12875 (linux_attach_lwp): Delete.
12876 (linux_attach_lwp_1): Rename to ...
12877 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12878 argument. Remove "initial" parameter. Return int instead of
12879 void. Don't error or warn here.
12880 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12881 failure to attach to the tgid. Call warning when failing to
12882 attach to an lwp.
12883 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12884 argument. Remove "initial" parameter. Return int instead of
12885 void. Don't error or warn here.
12886 (linux_attach_fail_reason_string): New declaration.
12887 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12888 interface change. Use linux_attach_fail_reason_string.
12889
01f9f808
MS
128902014-04-24 Michael Sturm <michael.sturm@mintel.com>
12891 Walfred Tedeschi <walfred.tedeschi@intel.com>
12892
12893 * Makefile.in: Added rules to handle new files
12894 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12895 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12896 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12897 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12898 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12899 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12900 x32-avx512-linux.o.
12901 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12902 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12903 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12904 i386/x32-avx512.xml.
12905 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12906 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12907 i386/x32-avx512-linux.xml.
12908 * i387-fp.c (num_avx512_k_registers): New constant for number
12909 of K registers.
12910 (num_avx512_zmmh_low_registers): New constant for number of
12911 lower ZMM registers (0-15).
12912 (num_avx512_zmmh_high_registers): New constant for number of
12913 higher ZMM registers (16-31).
12914 (num_avx512_ymmh_registers): New contant for number of higher
12915 YMM registers (ymm16-31 added by avx521 on x86_64).
12916 (num_avx512_xmm_registers): New constant for number of higher
12917 XMM registers (xmm16-31 added by AVX512 on x86_64).
12918 (struct i387_xsave): Add space for AVX512 registers.
12919 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12920 Add code to handle AVX512 registers.
12921 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12922 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12923 prototypei from generated file.
12924 (tdesc_amd64_avx512_linux): Likewise.
12925 (init_registers_x32_avx512_linux): Likewise.
12926 (tdesc_x32_avx512_linux): Likewise.
12927 (init_registers_i386_avx512_linux): Likewise.
12928 (tdesc_i386_avx512_linux): Likewise.
12929 (x86_64_regmap): Add AVX512 registers.
12930 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12931 mask.
12932 (initialize_low_arch): Add code to initialize AVX512 registers.
12933
51aa91f9
PA
129342014-04-23 Pedro Alves <palves@redhat.com>
12935
12936 * mem-break.c (find_gdb_breakpoint_at): Make static.
12937 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12938
a4165e94
PA
129392014-04-23 Pedro Alves <palves@redhat.com>
12940
12941 * i386-low.c: Don't include break-common.h here.
12942 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12943 prototype to take target_hw_bp_type as argument instead of a Z
12944 packet char.
12945 * i386-low.h: Include break-common.h here.
12946 (Z_packet_to_hw_type): Declare.
12947 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12948 prototypes.
12949 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12950 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12951 (x86_remove_point): Convert the packet number to a
12952 target_hw_bp_type before calling i386_low_remove_watchpoint.
12953 * win32-i386-low.c (i386_insert_point): Convert the packet number
12954 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12955 (i386_remove_point): Convert the packet number to a
12956 target_hw_bp_type before calling i386_low_remove_watchpoint.
12957
b8acf843
PA
129582014-04-23 Pedro Alves <palves@redhat.com>
12959
12960 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12961
d708bcd1
PA
129622014-04-10 Pedro Alves <palves@redhat.com>
12963
12964 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12965 Check if the condition or command is NULL before checking if the
12966 breakpoint is known. On success, return true.
12967 * mem-break.h (add_breakpoint_condition): Document return.
12968 (add_breakpoint_commands): Add describing comment.
12969 * server.c (skip_to_semicolon): New function.
12970 (process_point_options): Use it.
12971
2eec7d5b
PA
129722014-04-09 Pedro Alves <palves@redhat.com>
12973
12974 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12975 to lwpid_of.
12976
fa96cb38
PA
129772014-02-27 Pedro Alves <palves@redhat.com>
12978
12979 PR 12702
12980 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12981 macros.
12982 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12983 output.
12984 (last_thread_of_process_p): Take a PID argument instead of a
12985 thread pointer.
12986 (linux_wait_for_lwp): Delete.
12987 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12988 functions.
12989 (linux_low_filter_event): New function, party factored out from
12990 linux_wait_for_event.
12991 (linux_wait_for_event): Rename to ...
12992 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12993 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12994 sigsuspend. Check for zombie leaders.
12995 (linux_wait_for_event): Reimplement as wrapper around
12996 linux_wait_for_event_filtered.
12997 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12998 a normal or signal exit is seen, it's the whole process exiting.
12999 (wait_for_sigstop): No longer a for_each_inferior callback.
13000 Rewrite on top of linux_wait_for_event_filtered.
13001 (stop_all_lwps): Call wait_for_sigstop directly.
13002 * server.c (resume, handle_target_event): Handle
13003 TARGET_WAITKIND_NO_RESUMED.
13004
d763de10
JB
130052014-02-26 Joel Brobecker <brobecker@adacore.com>
13006
13007 * win32-low.c (psapi_get_dll_name,
13008 * win32_CreateToolhelp32Snapshot): Delete.
13009 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13010 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13011 Delete.
13012 (handle_load_dll): Add function description.
13013 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13014
850a0f76
JB
130152014-02-26 Joel Brobecker <brobecker@adacore.com>
13016
13017 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13018 Add comment.
13019 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13020 base address when calling win32_add_one_solib.
13021 (handle_load_dll): Delete local variable load_addr.
13022 Remove 0x1000 offset applied to DLL base address when calling
13023 win32_add_one_solib.
13024 (handle_unload_dll): Add comment.
13025
f25b3fc3
JB
130262014-02-26 Joel Brobecker <brobecker@adacore.com>
13027
13028 * win32-low.c (win32_add_all_dlls): Renames
13029 win32_ensure_ntdll_loaded. Rewrite function documentation.
13030 Adjust implementation to always load all DLLs.
13031 Add 0x1000 offset to DLL base address when calling
13032 win32_add_one_solib.
13033 (child_initialization_done): New static global.
13034 (do_initial_child_stuff): Set child_initialization_done to
13035 zero during child initialization, and 1 after. Replace call
13036 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13037 Add comment.
13038 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13039 (handle_unload_dll): Add function documentation.
13040 (get_child_debug_event): Ignore load and unload DLL events
13041 during child initialization.
13042
d86d4aaf
DE
130432014-02-20 Doug Evans <dje@google.com>
13044
3bc32da3 13045 Remove global all_lwps.
d86d4aaf
DE
13046 * inferiors.h (ptid_of): Move here from linux-low.h.
13047 (pid_of, lwpid_of): Ditto.
13048 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13049 parameter is a struct thread_info * now.
13050 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13051 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13052 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13053 directly.
13054 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13055 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13056 * linux-arm-low.c (update_registers_callback): Update, "entry"
13057 parameter is a struct thread_info * now.
13058 Fetch lwpid from current_inferior directly.
13059 (arm_insert_point): Pass &all_threads to find_inferior instead of
13060 &all_lwps.
13061 (arm_remove_point): Ditto.
13062 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13063 (arm_prepare_to_resume): Fetch pid from thread.
13064 (arm_read_description): Fetch lwpid from current_inferior directly.
13065 * linux-low.c (all_lwps): Delete.
13066 (delete_lwp): Delete call to remove_inferior.
13067 (handle_extended_wait): Fetch lwpid from thread.
13068 (add_lwp): Don't set lwp->entry.id. Remove call to
13069 add_inferior_to_list.
13070 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13071 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13072 (kill_one_lwp_callback): Ditto.
13073 (linux_kill): Don't dereference NULL pointer.
13074 Fetch ptid,lwpid from thread.
13075 (get_detach_signal): Fetch ptid from thread.
13076 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13077 Simplify call to regcache_invalidate_thread.
13078 (delete_lwp_callback): Update, "entry" parameter is a
13079 struct thread_info * now. Fetch pid from thread.
13080 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13081 (status_pending_p_callback): Update, "entry" parameter is a
13082 struct thread_info * now. Fetch ptid from thread.
13083 (find_lwp_pid): Update, "entry" parameter is a
13084 struct thread_info * now.
13085 (linux_wait_for_lwp): Fetch pid from thread.
13086 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13087 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13088 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13089 (dequeue_one_deferred_signal): Ditto.
13090 (cancel_breakpoint): Fetch ptid from current_inferior.
13091 (linux_wait_for_event): Pass &all_threads to find_inferior,
13092 not &all_lwps. Fetch ptid, lwpid from thread.
13093 (count_events_callback): Update, "entry" parameter is a
13094 struct thread_info * now.
13095 (select_singlestep_lwp_callback): Ditto.
13096 (select_event_lwp_callback): Ditto.
13097 (cancel_breakpoints_callback): Ditto.
13098 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13099 not &all_lwps.
13100 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13101 (unsuspend_one_lwp): Update, "entry" parameter is a
13102 struct thread_info * now.
13103 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13104 not &all_lwps.
13105 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13106 Fetch lwpid from thread, not lwp.
13107 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13108 Pass &all_threads to find_inferior, not &all_lwps.
13109 (send_sigstop): Fetch lwpid from thread, not lwp.
13110 (send_sigstop_callback): Update, "entry" parameter is a
13111 struct thread_info * now.
13112 (suspend_and_send_sigstop_callback): Ditto.
13113 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13114 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13115 struct thread_info * now.
13116 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13117 from thread, lwp.
13118 (lwp_running): Update, "entry" parameter is a
13119 struct thread_info * now.
13120 (stop_all_lwps): Fetch ptid from thread.
13121 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13122 (linux_resume_one_lwp): Fetch lwpid from thread.
13123 (linux_set_resume_request): Update, "entry" parameter is a
13124 struct thread_info * now. Fetch pid, lwpid from thread.
13125 (resume_status_pending_p): Update, "entry" parameter is a
13126 struct thread_info * now.
13127 (need_step_over_p): Ditto. Fetch lwpid from thread.
13128 (start_step_over): Fetch lwpid from thread.
13129 (linux_resume_one_thread): Update, "entry" parameter is a
13130 struct thread_info * now. Fetch lwpid from thread.
13131 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13132 (proceed_one_lwp): Update, "entry" parameter is a
13133 struct thread_info * now. Fetch lwpid from thread.
13134 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13135 struct thread_info * now.
13136 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13137 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13138 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13139 directly.
13140 (regsets_store_inferior_registers): Ditto.
13141 (fetch_register, store_register): Ditto.
13142 (linux_read_memory, linux_write_memory): Ditto.
13143 (linux_request_interrupt): Ditto.
13144 (linux_read_auxv): Ditto.
13145 (linux_xfer_siginfo): Ditto.
13146 (linux_qxfer_spu): Ditto.
13147 (linux_qxfer_libraries_svr4): Ditto.
13148 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13149 moved to inferiors.h.
13150 (get_lwp): Delete.
13151 (get_thread_lwp): Update.
13152 (struct lwp_info): Delete member "entry". Simplify comment for
13153 member "thread".
13154 (all_lwps): Delete.
13155 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13156 current_inferior directly.
13157 (update_watch_registers_callback): Update, "entry" parameter is a
13158 struct thread_info * now. Fetch pid from thread.
13159 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13160 (mips_insert_point): Fetch lwpid from current_inferior.
13161 Pass &all_threads to find_inferior, not &all_lwps.
13162 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13163 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13164 directly.
13165 (mips_stopped_data_address): Ditto.
13166 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13167 directly.
13168 * linux-tile-low.c (tile_arch_setup): Ditto.
13169 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13170 (update_debug_registers_callback): Update, "entry" parameter is a
13171 struct thread_info * now. Fetch pid from thread.
13172 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13173 Pass &all_threads to find_inferior, not &all_lwps.
13174 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13175 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13176 Pass &all_threads to find_inferior, not &all_lwps.
13177 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13178 (i386_dr_low_get_status): Ditto.
13179 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13180 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13181 (x86_linux_read_description): Ditto.
13182 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13183
3b8361aa
DE
131842014-02-20 Doug Evans <dje@google.com>
13185
13186 * inferiors.c (get_first_inferior): Fix buglet.
13187
f7667f0d
DE
131882014-02-19 Doug Evans <dje@google.com>
13189
13190 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13191 * inferiors.c (add_thread): Change result type to struct thread_info *.
13192 All callers updated.
13193 (add_lwp): Call add_thread here instead of in callers.
13194 All callers updated.
13195 * linux-low.h (get_lwp_thread): Rewrite.
13196 (struct lwp_info): New member "thread".
13197
b3312d80
DE
131982014-02-19 Doug Evans <dje@google.com>
13199
13200 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13201 All callers updated.
13202
ecc6f45c
DE
132032014-02-19 Doug Evans <dje@google.com>
13204
13205 * inferiors.c (add_thread): Fix whitespace.
13206
649ebbca
DE
132072014-02-19 Doug Evans <dje@google.com>
13208
13209 * dll.c (clear_dlls): Replace accessing list implemention details
13210 with API function.
13211 * gdbthread.h (get_first_thread): Declare.
13212 * inferiors.c (for_each_inferior_with_data): New function.
13213 (get_first_thread): New function.
13214 (find_thread_ptid): Simplify.
13215 (get_first_inferior): New function.
13216 (clear_list): Delete.
13217 (one_inferior_p): New function.
13218 (clear_inferior_list): New function.
13219 (clear_inferiors): Update.
13220 * inferiors.h (for_each_inferior_with_data): Declare.
13221 (clear_inferior_list): Declare.
13222 (one_inferior_p): Declare.
13223 (get_first_inferior): Declare.
13224 * linux-low.c (linux_wait_for_event): Replace accessing list
13225 implemention details with API function.
13226 * server.c (target_running): Ditto.
13227 (accumulate_file_name_length): New function.
13228 (emit_dll_description): New function.
13229 (handle_qxfer_libraries): Replace accessing list implemention
13230 details with API function.
13231 (handle_qxfer_threads_worker): New function.
13232 (handle_qxfer_threads_proper): Replace accessing list implemention
13233 details with API function.
13234 (handle_query): Ditto.
13235 (visit_actioned_threads_callback_ftype): New typedef.
13236 (visit_actioned_threads_data): New struct.
13237 (visit_actioned_threads): Rewrite to be find_inferior callback.
13238 (resume): Call find_inferior.
13239 (handle_status): Replace accessing list implemention
13240 details with API function.
13241 (process_serial_event): Replace accessing list implemention details
13242 with API function.
13243 * target.c (set_desired_inferior): Replace accessing list implemention
13244 details with API function.
13245 * tracepoint.c (same_process_p): New function.
13246 (gdb_agent_about_to_close): Replace accessing list implemention
13247 details with API function.
13248 * win32-low.c (child_delete_thread): Replace accessing list
13249 implemention details with API function.
13250 (match_dll_by_basename): New function.
13251 (dll_is_loaded_by_basename): New function.
13252 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13253 details call to dll_is_loaded_by_basename.
13254
80894984
DE
132552014-02-19 Doug Evans <dje@google.com>
13256
13257 * dll.h (struct dll_info): Add comment.
13258 * gdbthread.h (struct thread_info): Add comment.
13259 (current_ptid): Simplify.
13260 * inferiors.c (add_process): Update.
13261 (remove_process): Update.
13262 * inferiors.h (struct process_info): Rename member "head" to "entry".
13263 * linux-low.c (delete_lwp): Update.
13264 (add_lwp): Update.
13265 (last_thread_of_process_p): Update.
13266 (kill_one_lwp_callback, linux_kill): Update.
13267 (status_pending_p_callback): Update.
13268 (wait_for_sigstop): Update. Simplify read of ptid.
13269 (start_step_over): Update.
13270 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13271 (get_lwp_thread): Update.
13272 (struct lwp_info): Rename member "head" to "entry".
13273 * regcache.h (inferior_list_entry): Delete.
13274 * server.c (kill_inferior_callback): Update.
13275 (detach_or_kill_inferior_callback): Update.
13276 (print_started_pid): Update.
13277 (print_attached_pid): Update.
13278 (process_serial_event): Simplify read of ptid.
13279 * thread-db.c (thread_db_create_event): Update.
13280 (thread_db_get_tls_address): Update.
13281 * win32-low.c (current_inferior_ptid): Simplify.
13282
46917d26
TT
132832014-02-19 Tom Tromey <tromey@redhat.com>
13284
13285 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13286 argument.
13287 (target_supports_btrace): Update.
13288
0759a81e
YQ
132892014-02-14 Yao Qi <yao@codesourcery.com>
13290
13291 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13292 (rsp-low-ipa.o): New target.
13293
a7191e8b
TT
132942014-02-12 Tom Tromey <tromey@redhat.com>
13295
13296 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13297 convert_ascii_to_int.
13298 * regcache.c (registers_to_string): Likewise.
13299 * remote-utils.c (decode_M_packet): Likewise.
13300 * server.c (process_serial_event): Likewise.
13301
ff0e980e
TT
133022014-02-12 Tom Tromey <tromey@redhat.com>
13303
13304 * server.c (handle_query, handle_v_run): Use hex2bin, not
13305 unhexify.
13306 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13307
e9371aff
TT
133082014-02-12 Tom Tromey <tromey@redhat.com>
13309
13310 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13311 convert_int_to_ascii.
13312 * regcache.c (registers_to_string, collect_register_as_string):
13313 Likewise.
13314 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13315 Likewise.
13316 * server.c (process_serial_event): Likewise.
13317 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13318 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13319
971dc0b8
TT
133202014-02-12 Tom Tromey <tromey@redhat.com>
13321
13322 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13323 bin2hex, not hexify.
13324 * tracepoint.c (cmd_qtstatus): Likewise.
13325
0a822afb
TT
133262014-02-12 Tom Tromey <tromey@redhat.com>
13327
13328 * remote-utils.c (monitor_output): Pass explicit length to
13329 hexify.
13330
9c3d6531
TT
133312014-02-12 Tom Tromey <tromey@redhat.com>
13332
13333 * tracepoint.c: Include rsp-low.h.
13334 * server.c: Include rsp-low.h.
13335 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13336 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13337 declare.
13338 * remote-utils.c: Include rsp-low.h.
13339 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13340 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13341 (convert_int_to_ascii, convert_ascii_to_int): Move to
13342 common/rsp-low.c.
13343 * regcache.c: Include rsp-low.h.
13344 * ax.c: Include rsp-low.h.
13345 * Makefile.in (SFILES): Add common/rsp-low.c.
13346 (OBS): Add rsp-low.o.
13347 (rsp-low.o): New target.
13348
01fd3ea5
TT
133492014-02-12 Tom Tromey <tromey@redhat.com>
13350
13351 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13352 Include print-utils.h.
13353 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13354 (plongest, thirty_two, phex_nz): Remove.
13355 * Makefile.in (SFILES): Add common/print-utils.c.
13356 (OBS): Add print-utils.o.
13357 (print-utils-ipa.o): New target.
13358 (print-utils.o): New target.
13359 (IPA_OBJS): Add print-utils-ipa.o.
13360
e99dc820
TT
133612014-02-06 Tom Tromey <tromey@redhat.com>
13362
13363 * Makefile.in (SFILES): Fix indentation.
13364
ee1e2d4f
DE
133652014-02-05 Doug Evans <dje@google.com>
13366
13367 * linux-low.c (linux_wait_for_event): Improve comment.
13368 (linux_wait_1): Keep current_inferior in sync with event_child.
13369
f5a02773
DE
133702014-01-22 Doug Evans <dje@google.com>
13371
13372 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13373
87ce2a04
DE
133742014-01-22 Doug Evans <dje@google.com>
13375
13376 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13377 * configure: Regenerate.
13378 * config.in: Regenerate.
13379 * Makefile.in (SFILES): Add debug.c.
13380 (OBS): Add debug.o.
13381 * debug.c: New file.
13382 * debug.h: New file.
13383 * linux-aarch64-low.c (*): Update all debugging printfs to use
13384 debug_printf instead of fprintf.
13385 * linux-arm-low.c (*): Ditto.
13386 * linux-cris-low.c (*): Ditto.
13387 * linux-crisv32-low.c (*): Ditto.
13388 * linux-m32r-low.c (*): Ditto.
13389 * linux-sparc-low.c (*): Ditto.
13390 * linux-x86.c (*): Ditto.
13391 * linux-low.c (*): Ditto.
13392 (linux_wait_1): Add calls to debug_enter, debug_exit.
13393 (linux_wait): Remove redundant debugging printf.
13394 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13395 (linux_resume, unstop_all_lwps): Ditto.
13396 * mem-break.c (*): Update all debugging printfs to use
13397 debug_printf instead of fprintf.
13398 * remote-utils.c (*): Ditto.
13399 * thread-db.c (*): Ditto.
13400 * server.c #include <ctype.h>, "gdb_vecs.h".
13401 (debug_threads): Moved to debug.c.
13402 (*): Update all debugging printfs to use debug_printf instead of
13403 fprintf.
13404 (start_inferior): Replace call to fflush with call to debug_flush.
13405 (monitor_show_help): Mention set debug-format.
13406 (parse_debug_format_options): New function.
13407 (handle_monitor_command): Handle "monitor set debug-format".
13408 (gdbserver_usage): Mention --debug-format.
13409 (main): Parse --debug-format.
13410 * server.h (debug_threads): Declaration moved to debug.h.
13411 #include "debug.h".
13412 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13413 trace_debug_1 that uses debug_printf.
13414 (tracepoint_look_up_symbols): Update all debugging printfs to use
13415 debug_printf instead of fprintf.
13416
e671835b
BS
134172014-01-20 Baruch Siach <baruch@tkos.co.il>
13418
13419 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13420 sys/ptrace.h.
13421
b5737fa9
PA
134222014-01-17 Pedro Alves <palves@redhat.com>
13423
ea38d2a9 13424 PR build/16445
c7faa97a
PA
13425 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13426 defined after including gdb_proc_service.h.
b5737fa9 13427
40ed484e
DE
134282014-01-16 Doug Evans <dje@google.com>
13429
13430 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13431 (match_dll): Use it.
13432
969c39fb
MM
134332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13434
13435 * target.h (target_ops) <read_btrace>: Change parameters and
13436 return type to allow error reporting.
13437 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13438 trace reading errors on.
13439 * linux-low.c (linux_low_read_btrace): Pass trace reading
13440 errors on.
13441 (linux_low_disable_btrace): New.
13442
ab7f45ba
DE
134432014-01-15 Doug Evans <dje@google.com>
13444
13445 * inferiors.c (thread_id_to_gdb_id): Delete.
13446 * inferiors.h (thread_id_to_gdb_id): Delete.
13447
66af0f44
EZ
134482014-01-13 Eli Zaretskii <eliz@gnu.org>
13449
13450 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13451 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13452 versions.
13453
9939e131
PA
134542014-01-08 Pedro Alves <palves@redhat.com>
13455
13456 * server.c (handle_status): Don't discard previous queued stop
13457 replies or thread's pending status here.
13458 (main) <disconnection>: Do it here instead.
13459
b7ea362b
PA
134602014-01-08 Pedro Alves <palves@redhat.com>
13461
13462 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13463 * server.c (visit_actioned_threads, handle_pending_status): New
13464 function.
13465 (handle_v_cont): Factor out parts to ...
13466 (resume): ... this new function. If in all-stop, and a thread
13467 being resumed has a pending status, report it without actually
13468 resuming.
13469 (myresume): Adjust to use the new 'resume' function.
13470 (clear_pending_status_callback, set_pending_status_callback)
13471 (find_status_pending_thread_callback): New functions.
13472 (handle_status): Handle the case of multiple threads having
13473 interesting statuses to report. Report threads' real last signal
13474 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13475 with an interesting thread to report the status for, instead of
13476 always reporting the status of the first thread.
13477
28498c42
JB
134782014-01-01 Joel Brobecker <brobecker@adacore.com>
13479
13480 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13481 * gdbreplay.c (gdbreplay_version): Likewise.
13482
f45c82da
YZ
134832013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13484
13485 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13486 iov.iov_len with the real length in use.
13487
379a5e2d
JB
134882013-12-13 Joel Brobecker <brobecker@adacore.com>
13489
13490 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13491 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13492 for all targets that use win32-low.c.
13493 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13494 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13495
4210d83e
PA
134962013-12-13 Pedro Alves <palves@redhat.com>
13497
13498 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13499 if equal to TARGET_WAITKIND_LOADED.
13500 * win32-low.c (cached_status): New static global.
13501 (win32_wait): Add declaration.
13502 (do_initial_child_stuff): Flush all initial pending debug events
13503 up to the initial breakpoint.
13504 (win32_wait): If CACHED_STATUS was set, return that instead
13505 of doing a real wait. Remove the code resuming the execution
13506 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13507 during the initial phase. Also remove the code changing
13508 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13509 TARGET_WAITKIND_STOPPED.
13510
e7f0d979
YQ
135112013-12-11 Yao Qi <yao@codesourcery.com>
13512
13513 * notif.c (handle_notif_ack): Return 0 if no notification
13514 matches.
13515
ebcf782c
DE
135162013-11-20 Doug Evans <dje@google.com>
13517
13518 * linux-low.c (linux_set_resume_request): Fix comment.
13519
20ad9378
DE
135202013-11-20 Doug Evans <dje@google.com>
13521
13522 * linux-low.c (resume_status_pending_p): Tweak comment.
13523
a196ebeb
WT
135242013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13525
13526 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13527 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13528 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13529 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13530 (srv_amd64_regobj): Add amd64-mpx.o.
13531 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13532 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13533 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13534 * i387-fp.c (num_pl_bnd_register) Added constant.
13535 (num_pl_bnd_cfg_registers) Added constant.
13536 (struct i387_xsave) Added reserved area and MPX fields.
13537 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13538 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13539 function.
13540 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13541 (init_registers_amd64_mpx_linux): Declare new function.
13542 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13543 (x86_64_regmap): Add MPX registers.
13544 (x86_linux_read_description): Add MPX case.
13545 (initialize_low_arch): Initialize MPX targets.
13546
0080a2f6
TT
135472013-11-18 Tom Tromey <tromey@redhat.com>
13548
13549 * configure: Rebuild.
13550 * configure.ac: Don't check for stdlib.h.
13551 * gdbreplay.c: Unconditionally include stdlib.h.
13552
2978b111
TT
135532013-11-18 Tom Tromey <tromey@redhat.com>
13554
13555 * config.in: Rebuild.
13556 * configure: Rebuild.
13557 * configure.ac: Don't use AC_HEADER_DIRENT.
13558
a3d08894
TT
135592013-11-18 Tom Tromey <tromey@redhat.com>
13560
13561 * server.h: Don't check HAVE_STRING_H.
13562 * gdbreplay.c: Don't check HAVE_STRING_H.
13563 * configure: Rebuild.
13564
0a5dd17d
TT
135652013-11-18 Tom Tromey <tromey@redhat.com>
13566
13567 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13568 LIBGNU.
13569
1bd2f0ba
TT
135702013-11-08 Tom Tromey <tromey@redhat.com>
13571
13572 * configure, config.in: Rebuild.
13573 * configure.ac: Remove unused configury.
13574
3266f10b
TT
135752013-11-08 Tom Tromey <tromey@redhat.com>
13576
13577 * acinclude.m4: Include common.m4, codeset.m4.
13578 * configure, config.in: Rebuild.
13579 * configure.ac: Use GDB_AC_COMMON.
13580
6682d959
AA
135812013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13582
13583 * linux-s390-low.c (HWCAP_S390_TE): New define.
13584 (s390_arch_setup): Consider the TE field in the HWCAP for
13585 determining 'have_regset_tdb'.
13586
fd0a4d76
SDJ
135872013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13588
13589 PR gdb/16014
13590 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13591 call to sizeof.
13592
1a3d890b
PA
135932013-10-02 Pedro Alves <palves@redhat.com>
13594
13595 * server.c (process_serial_event): Don't output "GDBserver
13596 exiting" if GDB is connected through stdio.
13597 * target.c (mywait): Likewise, be silent if GDB is connected
13598 through stdio.
13599
97ad4581
JB
136002013-10-01 Joel Brobecker <brobecker@adacore.com>
13601
13602 * lynx-low.c (lynx_add_threads_after_attach): New function.
13603 (lynx_attach): Remove call to add_thread. Add call to
13604 lynx_add_threads_after_attach instead.
13605
5b4e221c
MF
136062013-09-28 Mike Frysinger <vapier@gentoo.org>
13607
13608 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13609 * config.in, configure: Regenerated.
13610
ee47b2f8
YQ
136112013-09-18 Yao Qi <yao@codesourcery.com>
13612
13613 PR server/15959
13614 * server.c (start_inferior): Clear 'resume_info'.
13615
d6707650 136162013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13617
d6707650
JW
13618 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13619 for each register.
13620
9243dd0e 136212013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13622
9243dd0e
JW
13623 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13624 linux-tile-low.o to srv_tgtobj.
13625
c623a6ef
WN
136262013-09-16 Will Newton <will.newton@linaro.org>
13627
13628 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13629 out regs.
13630
fb71d39e
PA
136312013-09-06 Pedro Alves <palves@redhat.com>
13632
13633 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13634 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13635 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13636 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13637 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13638 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13639
8e7e9910
PA
136402013-09-06 Pedro Alves <palves@redhat.com>
13641
13642 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13643 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13644
7c3a12ca
PA
136452013-09-06 Pedro Alves <palves@redhat.com>
13646
13647 * linux-amd64-ipa.c: Include tracepoint.h.
13648 * linux-i386-ipa.c: Include tracepoint.h.
13649
8eb3d7b6
RW
136502013-09-06 Ricard Wanderlof <ricardw@axis.com>
13651
13652 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13653 (ps_get_thread_area): New function.
13654
eddddb9d
RW
136552013-09-06 Ricard Wanderlof <ricardw@axis.com>
13656
13657 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13658 (initialize_low_arch): Call init_registers_crisv32 rather than
13659 init_register_crisv32.
13660
533b0600
PA
136612013-09-05 Pedro Alves <palves@redhat.com>
13662
13663 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13664 to ...
13665 * hostio.h: ... this new file.
13666 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13667 win32-low.c: Include hostio.h.
13668
0ce3d3b5
PA
136692013-09-05 Pedro Alves <palves@redhat.com>
13670
13671 * server.h (gdb_client_data, handler_func, callback_handler_func)
13672 (delete_file_handler, add_file_handler, append_callback_event)
13673 (delete_callback_event, start_event_loop, initialize_event_loop):
13674 Move to event-loop.h and include it.
13675 * event-loop.h: New file.
13676
799cdc37
PA
136772013-09-05 Pedro Alves <palves@redhat.com>
13678
13679 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13680 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13681 (loaded_dll, unloaded_dll): Move to ...
13682 * dll.h: ... this new file.
13683 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13684
6a6bbd9d
PA
136852013-09-05 Pedro Alves <palves@redhat.com>
13686
13687 * server.h (current_process, get_thread_process, all_processes)
13688 (add_inferior_to_list, for_each_inferior, current_inferior)
13689 (remove_inferior, add_process, remove_process, find_process_pid)
13690 (have_started_inferiors_p, have_attached_inferiors_p)
13691 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13692 (clear_inferiors, find_inferior, find_inferior_id)
13693 (inferior_target_data, set_inferior_target_data)
13694 (inferior_regcache_data, set_inferior_regcache_data): Move to
13695 inferiors.h, and include it.
13696 * inferiors.h: New file.
13697
f699aaba
PA
136982013-09-05 Pedro Alves <palves@redhat.com>
13699
13700 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13701 Move ...
72f4393d 13702 * ax.h: ... here.
f699aaba 13703
c144c7a0
PA
137042013-09-05 Pedro Alves <palves@redhat.com>
13705
13706 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13707 tracepoint.h.
13708 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13709 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13710 (handle_tracepoint_general_set, handle_tracepoint_query)
13711 (tracepoint_finished_step, tracepoint_was_hit)
13712 (release_while_stepping_state_list, current_traceframe)
13713 (in_readonly_region, traceframe_read_mem)
13714 (fetch_traceframe_registers, traceframe_read_sdata)
13715 (traceframe_read_info, struct fast_tpoint_collect_status)
13716 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13717 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13718 (supply_fast_tracepoint_registers)
13719 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13720 (ipa_tdesc, claim_trampoline_space)
13721 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13722 (agent_mem_read, agent_get_trace_state_variable_value)
13723 (agent_set_trace_state_variable_value, agent_tsv_read)
13724 (agent_mem_read_string, get_raw_reg_func_addr)
13725 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13726 * tracepoint.h: ... this new file.
13727
ff42e6ab
PA
137282013-09-05 Pedro Alves <palves@redhat.com>
13729
13730 * server.h (perror_with_name, error, fatal, warning, paddress)
13731 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13732 include it.
13733 * utils.h: New file.
13734
541af0f4
PA
137352013-09-05 Pedro Alves <palves@redhat.com>
13736
13737 * server.h (remote_debug, noack_mode, transport_is_reliable)
13738 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13739 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13740 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13741 (write_enn, initialize_async_io, enable_async_io)
13742 (disable_async_io, check_remote_input_interrupt_request)
13743 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13744 (dead_thread_notify, prepare_resume_reply)
13745 (decode_address_to_semicolon, decode_address, decode_m_packet)
13746 (decode_M_packet, decode_X_packet, decode_xfer_write)
13747 (decode_search_memory_packet, unhexify, hexify)
13748 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13749 (look_up_one_symbol, relocate_instruction)
13750 (monitor_output): Move to remote-utils.h, and include it.
13751 * remote-utils.h: New file.
13752
eebdf26b
PA
137532013-09-05 Pedro Alves <palves@redhat.com>
13754
13755 * server.h (_): Delete.
13756
3aafd2ff
PA
137572013-09-02 Pedro Alves <palves@redhat.com>
13758
13759 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13760 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13761 allocated.
13762 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13763
cee83bcb
PM
137642013-09-02 Pierre Muller <muller@sourceware.org>
13765
13766 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13767 or WriteProcessMemory complete successfully and handle
13768 ERROR_PARTIAL_COPY error.
13769
9a13b2fa
PA
137702013-09-02 Pedro Alves <palves@redhat.com>
13771
13772 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13773 error instead of EIO.
13774
602e3198
JK
137752013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13776
13777 PR server/15604
13778 * linux-low.c: Include filestuff.h.
13779 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13780 * lynx-low.c: Include filestuff.h.
13781 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13782 * server.c: Include filestuff.h.
13783 (main): Call notice_open_fds.
13784 * spu-low.c: Include filestuff.h.
13785 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13786
96d7229d
LM
137872013-08-22 Luis Machado <lgustavo@codesourcery.com>
13788
13789 * Makefile.in: Explain why ../target and ../nat are not
13790 listed as include file search paths.
13791 (linux-waitpid.o): New object file rule.
13792 * configure.srv (srv_native_linux_obj): New variable.
13793 Replace all occurrences of linux native object files with
13794 $srv_native_linux_obj.
13795 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13796 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13797 (linux_enable_event_reporting): Remove declaration.
13798 (my_waitpid): Moved to common/linux-waitpid.c.
13799 (linux_wait_for_event): Pass ptid when calling
13800 linux_enable_event_reporting.
13801 (linux_supports_tracefork_flag): Remove.
13802 (linux_enable_event_reporting): Likewise.
13803 (linux_tracefork_grandchild): Remove.
13804 (STACK_SIZE): Moved to common/linux-ptrace.c.
13805 (linux_tracefork_child): Remove.
13806 (linux_test_for_tracefork): Remove.
13807 (linux_look_up_symbols): Call linux_supports_traceclone.
13808 (initialize_low): Remove call to linux_test_for_tracefork.
13809 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13810 common/linux-ptrace.h.
13811 (PTRACE_TYPE_ARG4): Likewise.
13812 Include linux-ptrace.h.
13813
32940073
PA
138142013-08-21 Pedro Alves <palves@redhat.com>
13815
13816 * config.in: Renegerate.
13817
33b60d58 138182013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13819
33b60d58
LM
13820 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13821 (SFILES): Remove $(srcdir)/common/target-common.c and
13822 add $(srcdir)/target/waitstatus.c.
13823 (OBS): Remove target-common.o and add waitstatus.o.
13824 (server_h): Remove $(srcdir)/../common/target-common.h and
13825 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13826 and $(srcdir)/../target/waitstatus.h.
13827 (target-common.o): Remove.
13828 (waitstatus.o): New target object file.
13829 * target.h: Do not include target-common.h and
13830 include target/resume.h, target/wait.h and
13831 target/waitstatus.h.
13832
b8e1b30e
LM
138332013-08-13 Luis Machado <lgustavo@codesourcery.com>
13834
13835 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13836 to PTRACE_TYPE_ARG3.
13837 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13838 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13839 PTRACE_TYPE_ARG4.
13840 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13841 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13842
7a60ad40
YQ
138432013-07-27 Jie Zhang <jie@codesourcery.com>
13844 Daniel Jacobowitz <dan@codesourcery.com>
13845 Yao Qi <yao@codesourcery.com>
13846
13847 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13848 (mips-linux-watch.o): New rule.
13849 (mips_linux_watch_h): New variable.
13850 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13851 srv_tgtobj.
13852 * linux-mips-low.c: Include mips-linux-watch.h.
13853 (struct arch_process_info, struct arch_lwp_info): New.
13854 (update_watch_registers_callback): New function.
13855 (mips_linux_new_process, mips_linux_new_thread) New functions.
13856 (mips_linux_prepare_to_resume, mips_insert_point): New
13857 functions.
13858 (mips_remove_point, mips_stopped_by_watchpoint): New
13859 functions.
13860 (rsp_bp_type_to_target_hw_bp_type): New function.
13861 (mips_stopped_data_address): New function.
13862 (the_low_target): Add watchpoint support functions.
13863
de6f69ad
YQ
138642013-07-27 Yao Qi <yao@codesourcery.com>
13865
13866 * i386-low.c: Include break-common.h.
13867 (enum target_hw_bp_type): Remove.
13868
3360c0bf
LM
138692013-07-24 Luis Machado <lgustavo@codesourcery.com>
13870
13871 * Makefile.in (SFILES): /common/target-common.c.
13872 (OBS): Add target-common.o.
13873 (server_h): Add $(srcdir)/../common/target-common.h.
13874 (target-common.o): New target.
13875 * server.c (queue_stop_reply_callback): Free
13876 status string after use.
13877 * target.c (target_waitstatus_to_string): Remove.
13878 * target.h: Include target-common.h.
13879 (resume_kind): Likewise.
13880 (target_waitkind): Likewise.
13881 (target_waitstatus): Likewise.
13882 (TARGET_WNOHANG): Likewise.
13883
bd885420
YQ
138842013-07-04 Yao Qi <yao@codesourcery.com>
13885
13886 * Makefile.in (host_alias): Use @host_noncanonical@.
13887 (target_alias): Use @target_noncanonical@.
13888 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13889 ACX_NONCANONICAL_HOST.
13890 * configure: Regenerated.
13891
13892 Revert:
13893 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13894
13895 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13896 * configure: Rebuild.
13897 * Makefile.in (version_host, version_target): Get from configure.
13898 (version.c): Use $(version_host) and $(version_target).
13899
17ef446e
PA
139002013-07-03 Pedro Alves <palves@redhat.com>
13901
13902 * Makefile.in (config.status): Depend on development.sh.
13903 * acinclude.m4: Include libmcheck.m4.
13904 * configure: Regenerate.
13905
7a9a7487
MG
139062013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13907
13908 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13909 attribute inside the parentheses.
13910 (winapi_DebugSetProcessKillOnExit): Ditto.
13911 (winapi_DebugBreakProcess): Ditto.
13912 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13913
49b64de6
MG
139142013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13915
13916 * notif.h (notif_event): Add a dummy member to avoid compiler
13917 errors.
13918
d5749ee7
PA
139192013-07-01 Pedro Alves <palves@redhat.com>
13920
13921 * hostio.c (HOSTIO_PATH_MAX): Define.
13922 (require_filename, handle_open, handle_unlink, handle_readlink):
13923 Use it.
13924
d8d2a3ee
PA
139252013-07-01 Pedro Alves <palves@redhat.com>
13926
13927 * server.h: Include "pathmax.h".
13928 * linux-low.c: Don't include sys/param.h.
13929 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13930 MAXPATHLEN.
13931 * win32-low.c: Don't include sys/param.h.
13932 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13933
bc7dea8d
PA
139342013-07-01 Pedro Alves <palves@redhat.com>
13935
13936 * event-loop.c: Don't check HAVE_UNISTD_H before including
13937 <unistd.h>.
13938 * gdbreplay.c: Likewise.
13939 * remote-utils.c: Likewise.
13940 * server.c: Likewise.
13941 * configure.ac: Don't check for unistd.h.
13942 * configure: Regenerate.
13943
d6c2da54
TT
139442013-06-28 Tom Tromey <tromey@redhat.com>
13945
13946 * Makefile.in (version.c): Use version.in, not
13947 common/version.in.
13948
257b6bec
MG
139492013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13950
13951 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13952 * configure: Rebuild.
13953 * Makefile.in (version_host, version_target): Get from configure.
13954 (version.c): Use $(version_host) and $(version_target).
13955
86ebe149
DK
139562013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13957
13958 Fix trace-status to output user name without trailing colon.
13959 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13960
f30aa5af
DK
139612013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13962
13963 Fix trace-status to output proper start-time and stop-time.
13964 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13965 output start time and stop time in hex as gdb expects.
13966
28a93511
YQ
139672013-06-26 Pedro Alves <pedro@codesourcery.com>
13968
13969 * tracepoint.c (build_traceframe_info_xml): Output trace state
13970 variables present in the trace buffer.
13971
01208463
TT
139722013-06-24 Tom Tromey <tromey@redhat.com>
13973
13974 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13975 create-version.sh.
13976 (version.o): Remove.
13977 * gdbreplay.c: Include version.h.
13978 (version, host_name): Don't declare.
13979 * server.h: Include version.h.
13980 (version, host_name): Don't declare.
13981
760256f9
PA
139822013-06-12 Pedro Alves <palves@redhat.com>
13983
13984 * linux-x86-low.c (linux_is_elf64): Delete global.
13985 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13986 with local linux_pid_exe_is_elf_64_file use.
13987
030031ee
PA
139882013-06-11 Pedro Alves <palves@redhat.com>
13989
13990 * linux-low.c (regset_disabled, disable_regset): New functions.
13991 (regsets_fetch_inferior_registers)
13992 (regsets_store_inferior_registers): Use them.
13993 (initialize_regsets_info); Don't allocate the disabled_regsets
13994 array here.
13995 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13996 comment.
13997
5da6eb0a
PA
139982013-06-11 Pedro Alves <palves@redhat.com>
13999
14000 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14001 xmalloc.
14002
7e5aaa09
PA
140032013-06-11 Pedro Alves <palves@redhat.com>
14004
14005 * linux-x86-low.c (initialize_low_arch): Call
14006 init_registers_x32_avx_linux.
14007
d878444c
JK
140082013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14009
14010 Fix compatibility with Android Bionic.
14011 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14012 it is not empty.
14013
3aee8918
PA
140142013-06-07 Pedro Alves <palves@redhat.com>
14015
5f2b57b5 14016 PR server/14823
3aee8918
PA
14017 * Makefile.in (OBS): Add tdesc.o.
14018 (IPA_OBJS): Add tdesc-ipa.o.
14019 (tdesc-ipa.o): New rule.
14020 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14021 interface.
14022 * linux-low.c (new_inferior): Delete.
14023 (disabled_regsets, num_regsets): Delete.
14024 (linux_add_process): Adjust to set the new per-process
14025 new_inferior flag.
14026 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14027 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14028 was a stop. When calling arch_setup, switch the current inferior
14029 to the thread that got an event.
14030 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14031 (regsets_fetch_inferior_registers)
14032 (regsets_store_inferior_registers): New regsets_info parameter.
14033 Adjust to use it.
14034 (linux_register_in_regsets): New regs_info parameter. Adjust to
14035 use it.
14036 (register_addr, fetch_register, store_register): New usrregs_info
14037 parameter. Adjust to use it.
14038 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14039 parameter regs_info. Adjust to use it.
14040 (linux_fetch_registers): Get the current inferior's regs_info, and
14041 adjust to use it.
14042 (linux_store_registers): Ditto.
14043 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14044 (initialize_low): Don't initialize the target_regsets here. Call
14045 initialize_low_arch.
14046 * linux-low.h (target_regsets): Delete declaration.
14047 (struct regsets_info): New.
14048 (struct usrregs_info): New.
14049 (struct regs_info): New.
14050 (struct process_info_private) <new_inferior>: New field.
14051 (struct linux_target_ops): Delete the num_regs, regmap, and
14052 regset_bitmap fields. New field regs_info.
14053 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14054 * i387-fp.c (num_xmm_registers): Delete.
14055 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14056 calls to new interface.
14057 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14058 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14059 Infer the number of xmm registers from the regcache's target
14060 description.
14061 * i387-fp.h (num_xmm_registers): Delete.
14062 * inferiors.c (add_thread): Don't install the thread's regcache
14063 here.
14064 * proc-service.c (gregset_info): Fetch the current inferior's
14065 regs_info. Adjust to use it.
14066 * regcache.c: Include tdesc.h.
14067 (register_bytes, reg_defs, num_registers)
14068 (gdbserver_expedite_regs): Delete.
14069 (get_thread_regcache): If the thread doesn't have a regcache yet,
14070 create one, instead of aborting gdbserver.
14071 (regcache_invalidate_one): Rename to ...
14072 (regcache_invalidate_thread): ... this.
14073 (regcache_invalidate_one): New.
14074 (regcache_invalidate): Only invalidate registers of the current
14075 process.
14076 (init_register_cache): Add target_desc parameter, and use it.
14077 (new_register_cache): Ditto. Assert the target description has a
14078 non zero registers_size.
14079 (regcache_cpy): Add assertions. Adjust.
14080 (realloc_register_cache, set_register_cache): Delete.
14081 (registers_to_string, registers_from_string): Adjust.
14082 (find_register_by_name, find_regno, find_register_by_number)
14083 (register_cache_size): Add target_desc parameter, and use it.
14084 (free_register_cache_thread, free_register_cache_thread_one)
14085 (regcache_release, register_cache_size): New.
14086 (register_size): Add target_desc parameter, and use it.
14087 (register_data, supply_register, supply_register_zeroed)
14088 (supply_regblock, supply_register_by_name, collect_register)
14089 (collect_register_as_string, collect_register_by_name): Adjust.
14090 * regcache.h (struct target_desc): Forward declare.
14091 (struct regcache) <tdesc>: New field.
14092 (init_register_cache, new_register_cache): Add target_desc
14093 parameter.
14094 (regcache_invalidate_thread): Declare.
14095 (regcache_invalidate_one): Delete declaration.
14096 (regcache_release): Declare.
14097 (find_register_by_number, register_cache_size, register_size)
14098 (find_regno): Add target_desc parameter.
14099 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14100 declarations.
14101 * remote-utils.c: Include tdesc.h.
14102 (outreg, prepare_resume_reply): Adjust.
14103 * server.c: Include tdesc.h.
14104 (gdbserver_xmltarget): Delete declaration.
14105 (get_features_xml, process_serial_event): Adjust.
14106 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14107 declare.
14108 (struct process_info) <tdesc>: New field.
14109 (ipa_tdesc): Declare.
14110 * tdesc.c: New file.
14111 * tdesc.h: New file.
14112 * tracepoint.c: Include tdesc.h.
14113 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14114 (get_context_regcache): Adjust to pass ipa_tdesc down.
14115 (do_action_at_tracepoint): Adjust to get the register cache size
14116 from the context regcache's description.
14117 (traceframe_walk_blocks): Adjust to get the register cache size
14118 from the current trace frame's description.
14119 (traceframe_get_pc): Adjust to get current trace frame's
14120 description and pass it down.
14121 (gdb_collect): Adjust to get the register cache size from the
14122 IPA's description.
14123 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14124 (gdbserver_xmltarget): Delete.
14125 (initialize_low_tracepoint): Set the ipa's target description.
14126 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14127 (initialize_low_tracepoint): Set the ipa's target description.
14128 * linux-x86-low.c: Include tdesc.h.
14129 [__x86_64__] (is_64bit_tdesc): New.
14130 (ps_get_thread_area, x86_get_thread_area): Use it.
14131 (i386_cannot_store_register): Rename to ...
14132 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14133 (i386_cannot_fetch_register): Rename to ...
14134 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14135 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14136 to new interface.
14137 (target_regsets): Rename to ...
14138 (x86_regsets): ... this.
14139 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14140 interface.
14141 (x86_siginfo_fixup): Use is_64bit_tdesc.
14142 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14143 (tdesc_x32_avx_linux, tdesc_x32_linux)
14144 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14145 Declare.
14146 (x86_linux_update_xmltarget): Delete.
14147 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14148 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14149 (AMD64_LINUX_USER64_CS): New.
14150 (x86_linux_read_description): New, based on
14151 x86_linux_update_xmltarget.
14152 (same_process_callback): New.
14153 (x86_arch_setup_process_callback): New.
14154 (x86_linux_update_xmltarget): New.
14155 (x86_regsets_info): New.
14156 (amd64_linux_regs_info): New.
14157 (i386_linux_usrregs_info): New.
14158 (i386_linux_regs_info): New.
14159 (x86_linux_regs_info): New.
14160 (x86_arch_setup): Reimplement.
14161 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14162 (x86_emit_ops): Ditto.
14163 (the_low_target): Adjust. Install x86_linux_regs_info,
14164 x86_cannot_fetch_register, and x86_cannot_store_register.
14165 (initialize_low_arch): New.
14166 * linux-ia64-low.c (tdesc_ia64): Declare.
14167 (ia64_fetch_register): Adjust.
14168 (ia64_usrregs_info, regs_info): New globals.
14169 (ia64_regs_info): New function.
14170 (the_low_target): Adjust.
14171 (initialize_low_arch): New function.
14172 * linux-sparc-low.c (tdesc_sparc64): Declare.
14173 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14174 Adjust.
14175 (sparc_arch_setup): New function.
14176 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14177 (the_low_target): Adjust.
14178 (initialize_low_arch): New function.
14179 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14180 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14181 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14182 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14183 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14184 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14185 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14186 (tdesc_powerpc_isa205_vsx64l): Declare.
14187 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14188 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14189 (ppc_set_pc, ppc_get_hwcap): Adjust.
14190 (ppc_usrregs_info): Forward declare.
14191 (!__powerpc64__) ppc_regmap_adjusted: New global.
14192 (ppc_arch_setup): Adjust to the current process'es target
14193 description.
14194 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14195 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14196 (ppc_store_evrregset): Adjust.
14197 (target_regsets): Rename to ...
14198 (ppc_regsets): ... this, and make static.
14199 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14200 (ppc_regs_info): New function.
14201 (the_low_target): Adjust.
14202 (initialize_low_arch): New function.
14203 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14204 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14205 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14206 (tdesc_s390x_linux64v2): Declare.
14207 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14208 (s390_fill_gregset, s390_store_last_break): Adjust.
14209 (target_regsets): Rename to ...
14210 (s390_regsets): ... this, and make static.
14211 (s390_get_pc, s390_set_pc): Adjust.
14212 (s390_get_hwcap): New target_desc parameter, and use it.
14213 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14214 (s390_arch_setup): Adjust to set the current process'es target
14215 description. Don't adjust the regmap.
14216 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14217 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14218 (regs_info_3264): New globals.
14219 (s390_regs_info): New function.
14220 (the_low_target): Adjust.
14221 (initialize_low_arch): New function.
14222 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14223 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14224 [__mips64] (init_registers_mips_linux)
14225 (init_registers_mips_dsp_linux): Delete defines.
14226 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14227 (have_dsp): New global.
14228 (mips_read_description): New, based on mips_arch_setup.
14229 (mips_arch_setup): Reimplement.
14230 (get_usrregs_info): New function.
14231 (mips_cannot_fetch_register, mips_cannot_store_register)
14232 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14233 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14234 (target_regsets): Rename to ...
14235 (mips_regsets): ... this, and make static.
14236 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14237 (dsp_regs_info, regs_info): New globals.
14238 (mips_regs_info): New function.
14239 (the_low_target): Adjust.
14240 (initialize_low_arch): New function.
14241 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14242 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14243 Declare.
14244 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14245 (arm_read_description): New, with bits factored from
14246 arm_arch_setup.
14247 (arm_arch_setup): Reimplement.
14248 (target_regsets): Rename to ...
14249 (arm_regsets): ... this, and make static.
14250 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14251 (arm_regs_info): New function.
14252 (the_low_target): Adjust.
14253 (initialize_low_arch): New function.
14254 * linux-m68k-low.c (tdesc_m68k): Declare.
14255 (target_regsets): Rename to ...
14256 (m68k_regsets): ... this, and make static.
14257 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14258 (m68k_regs_info): New function.
14259 (m68k_arch_setup): New function.
14260 (the_low_target): Adjust.
14261 (initialize_low_arch): New function.
14262 * linux-sh-low.c (tdesc_sharch): Declare.
14263 (target_regsets): Rename to ...
14264 (sh_regsets): ... this, and make static.
14265 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14266 (sh_regs_info, sh_arch_setup): New functions.
14267 (the_low_target): Adjust.
14268 (initialize_low_arch): New function.
14269 * linux-bfin-low.c (tdesc_bfin): Declare.
14270 (bfin_arch_setup): New function.
14271 (bfin_usrregs_info, regs_info): New globals.
14272 (bfin_regs_info): New function.
14273 (the_low_target): Adjust.
14274 (initialize_low_arch): New function.
14275 * linux-cris-low.c (tdesc_cris): Declare.
14276 (cris_arch_setup): New function.
14277 (cris_usrregs_info, regs_info): New globals.
14278 (cris_regs_info): New function.
14279 (the_low_target): Adjust.
14280 (initialize_low_arch): New function.
14281 * linux-cris-low.c (tdesc_crisv32): Declare.
14282 (cris_arch_setup): New function.
14283 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14284 (cris_regs_info): New function.
14285 (the_low_target): Adjust.
14286 (initialize_low_arch): New function.
14287 * linux-m32r-low.c (tdesc_m32r): Declare.
14288 (m32r_arch_setup): New function.
14289 (m32r_usrregs_info, regs_info): New globals.
14290 (m32r_regs_info): Adjust.
14291 (initialize_low_arch): New function.
14292 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14293 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14294 (tic6x_usrregs_info): Forward declare.
14295 (tic6x_read_description): New function, based on ...
14296 (tic6x_arch_setup): ... this. Reimplement.
14297 (target_regsets): Rename to ...
14298 (tic6x_regsets): ... this, and make static.
14299 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14300 (tic6x_regs_info): New function.
14301 (the_low_target): Adjust.
14302 (initialize_low_arch): New function.
14303 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14304 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14305 (target_regsets): Rename to ...
14306 (xtensa_regsets): ... this, and make static.
14307 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14308 globals.
14309 (xtensa_arch_setup, xtensa_regs_info): New functions.
14310 (the_low_target): Adjust.
14311 (initialize_low_arch): New function.
14312 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14313 (nios2_arch_setup): Set the current process'es tdesc.
14314 (target_regsets): Rename to ...
14315 (nios2_regsets): ... this.
14316 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14317 (nios2_regs_info): New function.
14318 (the_low_target): Adjust.
14319 (initialize_low_arch): New function.
a261b8f5
PA
14320 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14321 (aarch64_arch_setup): Set the current process'es tdesc.
14322 (target_regsets): Rename to ...
14323 (aarch64_regsets): ... this.
14324 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14325 (aarch64_regs_info): New function.
14326 (the_low_target): Adjust.
14327 (initialize_low_arch): New function.
3aee8918
PA
14328 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14329 globals.
14330 (target_regsets): Rename to ...
14331 (tile_regsets): ... this.
14332 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14333 (tile_regs_info): New function.
14334 (tile_arch_setup): Set the current process'es tdesc.
14335 (the_low_target): Adjust.
14336 (initialize_low_arch): New function.
14337 * spu-low.c (tdesc_spu): Declare.
14338 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14339 * win32-arm-low.c (tdesc_arm): Declare.
14340 (arm_arch_setup): New function.
14341 (the_low_target): Install arm_arch_setup instead of
14342 init_registers_arm.
14343 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14344 (init_windows_x86): Rename to ...
14345 (i386_arch_setup): ... this. Set `win32_tdesc'.
14346 (the_low_target): Adjust.
14347 * win32-low.c (win32_tdesc): New global.
14348 (child_add_thread): Don't create the thread cache here.
14349 (do_initial_child_stuff): Set the new process'es tdesc.
14350 * win32-low.h (struct target_desc): Forward declare.
14351 (win32_tdesc): Declare.
14352 * lynx-i386-low.c (tdesc_i386): Declare global.
14353 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14354 * lynx-low.c (lynx_tdesc): New global.
14355 (lynx_add_process): Set the new process'es tdesc.
14356 * lynx-low.h (struct target_desc): Forward declare.
14357 (lynx_tdesc): Declare global.
14358 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14359 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14360 * nto-low.c (nto_tdesc): New global.
14361 (do_attach): Set the new process'es tdesc.
14362 * nto-low.h (struct target_desc): Forward declare.
14363 (nto_tdesc): Declare.
14364 * nto-x86-low.c (tdesc_i386): Declare.
14365 (nto_x86_arch_setup): Set `nto_tdesc'.
14366
b1fbec62
GB
143672013-06-04 Gary Benson <gbenson@redhat.com>
14368
14369 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14370 to qSupported response when appropriate.
14371 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14372 with nonzero-length annex.
14373 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14374 arguments supplied in annex.
14375
d1ec4ce7
DE
143762013-05-31 Doug Evans <dje@google.com>
14377
ac44adcb 14378 PR server/15594
d1ec4ce7
DE
14379 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14380 64 bits in 64-cross-32 environment.
14381
9b25f2d3
PA
143822013-05-28 Pedro Alves <palves@redhat.com>
14383
14384 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14385 (aarch64-without-fpu.c): Delete rule.
14386 * configure.srv (aarch64*-*-linux*): Remove references to
14387 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14388 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14389 declaration.
14390
6740dc9c
PA
143912013-05-24 Pedro Alves <palves@redhat.com>
14392
14393 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14394 instead of strchr/decode_address. Error if the range isn't split
14395 with a ','. Don't assume there's be a ':' in the action.
14396
c2d6af84
PA
143972013-05-23 Yao Qi <yao@codesourcery.com>
14398 Pedro Alves <palves@redhat.com>
14399
14400 * linux-low.c (lwp_in_step_range): New function.
14401 (linux_wait_1): If the thread was range stepping and stopped
14402 outside the stepping range, report the stop to GDB. Otherwise,
14403 continue stepping. Add range stepping debug output.
14404 (linux_set_resume_request): Copy the step range from the resume
14405 request to the lwp.
14406 (linux_supports_range_stepping): New.
14407 (linux_target_ops) <supports_range_stepping>: Set to
14408 linux_supports_range_stepping.
14409 * linux-low.h (struct linux_target_ops)
14410 <supports_range_stepping>: New field.
14411 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14412 * linux-x86-low.c (x86_supports_range_stepping): New.
14413 (the_low_target) <supports_range_stepping>: Set to
14414 x86_supports_range_stepping.
14415 * server.c (handle_v_cont): Handle 'r' action.
14416 (handle_v_requests): Append ";r" if the target supports range
14417 stepping.
14418 * target.h (struct thread_resume) <step_range_start,
14419 step_range_end>: New fields.
14420 (struct target_ops) <supports_range_stepping>:
14421 New field.
14422 (target_supports_range_stepping): New macro.
14423
58794e1a
JB
144242013-05-17 Joel Brobecker <brobecker@adacore.com>
14425
14426 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14427 confusion in comment.
14428
d631c5a7
JB
144292013-05-17 Joel Brobecker <brobecker@adacore.com>
14430
14431 * lynx-low.c (struct process_info_private): New type.
14432 (lynx_add_process): New function.
14433 (lynx_create_inferior, lynx_attach): Replace calls to
14434 add_process by calls to lynx_add_process.
14435 (lynx_resume): If PTID is null, then try using
14436 current_process()->private->last_wait_event_ptid.
14437 Add comments.
14438 (lynx_clear_inferiors): Delete. The contents of that function
14439 has been inlined in lynx_mourn;
14440 (lynx_wait_1): Save the ptid in the process's private data.
14441 (lynx_mourn): Free the process' private data. Replace call
14442 to lynx_clear_inferiors by call to clear_inferiors.
14443
96f7a20f
YQ
144442013-05-17 Yao Qi <yao@codesourcery.com>
14445
14446 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14447 the right place.
14448
db0dfaa0
LM
144492013-05-16 Luis Machado <lgustavo@codesourcery.com>
14450
14451 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14452 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14453 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14454 PT_TEXT_END_ADDR guards. Update comments.
14455 (linux_target_op) <read_offsets>: Conditionally define to
14456 linux_read_offsets if the target is UCLIBC and if it defines
14457 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14458
68f5f838
SL
144592013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14460 Andrew Jenner <andrew@codesourcery.com>
14461
14462 * Makefile.in (SFILES): Add linux-nios2-low.c.
14463 (clean): Add action to delete nios2-linux.c.
14464 (nios2-linux.c): New rule.
14465 * configure.srv: Add nios2*-*-linux*.
14466 * linux-nios2-low.c: New.
14467
1ebff1fd
HAQ
144682013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14469
14470 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14471
f6150862
HZ
144722013-04-25 Hui Zhu <hui@codesourcery.com>
14473
14474 PR gdb/15186
f6150862
HZ
14475 * ax.c (ax_printf): Add fflush.
14476
614c279d
TT
144772013-04-22 Tom Tromey <tromey@redhat.com>
14478
14479 * Makefile.in (SFILES): Add filestuff.c.
14480 (OBS): Add filestuff.o.
14481 (filestuff.o): New target.
14482 * config.in, configure: Rebuild.
14483 * configure.ac: Check for fdwalk, pipe2.
14484
7d4e5717
PA
144852013-04-17 Pedro Alves <palves@redhat.com>
14486
14487 * configure.ac (USE_THREAD_DB): Delete variable.
14488 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14489 Don't AC_SUBST USE_THREAD_DB.
14490 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14491 * config.in, configure: Regenerate.
14492
d5c93e41
PA
144932013-04-16 Pedro Alves <palves@redhat.com>
14494
14495 * linux-low.h (struct lwp_info) <thread_known>: Move under
14496 the USE_THREAD_DB #ifdef.
14497
04f5fe89
PA
144982013-04-16 Pedro Alves <palves@redhat.com>
14499
14500 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14501 (linux-low.o): Delete rule.
14502 * linux-low.h: Always include "gdb_thread_db.h" instead of
14503 conditionally including thread_db.h.
14504 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14505 HAVE_THREAD_DB_H.
14506
480b27bf
JK
145072013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14508
14509 * Makefile.in (install-only): Fix make install regression.
14510
43662968
JK
145112013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14512
14513 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14514 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14515 installation.
14516 * gdbserver.1: Remove.
14517
3e74e146
PA
145182013-03-22 Pedro Alves <palves@redhat.com>
14519
14520 * linux-low.c (handle_extended_wait): Don't call
14521 linux_enable_event_reporting.
14522
a8347a2a
TT
145232013-03-15 Tony Theodore <tonyt@logyst.com>
14524
14525 PR build/9098:
14526 * Makefile.in (SHELL): Use @SHELL@.
14527
eeb56fa7
SDJ
145282013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14529
14530 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14531 compiler warning.
14532
4fa7e2ff
JB
145332013-03-13 Joel Brobecker <brobecker@adacore.com>
14534
14535 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14536 Remove extraneous NULL element.
14537
8ddb1965
YQ
145382013-03-13 Yao Qi <yao@codesourcery.com>
14539
14540 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14541 'V' block in trace frame.
14542
9accd112
MM
145432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14544
14545 * target.h (struct target_ops): Add btrace ops.
14546 (target_supports_btrace): New macro.
14547 (target_enable_btrace): New macro.
14548 (target_disable_btrace): New macro.
14549 (target_read_btrace): New macro.
14550 * gdbthread.h (struct thread_info): Add btrace field.
14551 * server.c: Include btrace-common.h.
14552 (handle_btrace_general_set): New function.
14553 (handle_btrace_enable): New function.
14554 (handle_btrace_disable): New function.
14555 (handle_general_set): Call handle_btrace_general_set.
14556 (handle_qxfer_btrace): New function.
14557 (struct qxfer qxfer_packets[]): Add btrace entry.
14558 * inferiors.c (remove_thread): Disable btrace.
14559 * linux-low: Include linux-btrace.h.
14560 (linux_low_enable_btrace): New function.
14561 (linux_low_read_btrace): New function.
14562 (linux_target_ops): Add btrace ops.
14563 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14564 Add srv_linux_btrace=yes.
14565 (x86_64-*-linux*): Add linux-btrace.o.
14566 Add srv_linux_btrace=yes.
14567 * configure.ac: Define HAVE_LINUX_BTRACE.
14568 * config.in: Regenerated.
14569 * configure: Regenerated.
14570
5cc22e4c
MM
145712013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14572
14573 * server.c (handle_qxfer): Preserve error message if -3 is
14574 returned.
14575 (qxfer): Document the -3 return value.
14576
7c97f91e
MM
145772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14578
14579 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14580 (linux_btrace_h): New variable.
14581 (linux-btrace.o): New rule.
14582
be9a119c 145832013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14584 Hafiz Abid Qadeer <abidh@codesourcery.com>
14585
14586 * tracepoint.c (trace_buffer_size): New global.
14587 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14588 (init_trace_buffer): Change to one-argument function. Allocate
14589 trace buffer memory.
14590 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14591 handle QTBuffer:size packet.
14592 (cmd_bigqtbuffer_size): New function.
14593 (initialize_tracepoint): Call init_trace_buffer with
14594 DEFAULT_TRACE_BUFFER_SIZE.
14595 * server.c (handle_query): Add QTBuffer:size in the
14596 supported packets.
14597
e64f7499
YQ
145982013-03-07 Yao Qi <yao@codesourcery.com>
14599
14600 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14601 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14602 of -1.
14603 (cmd_qtsp): Adjust condition. Do post increment.
14604 Set cur_action and cur_step_action back to 0.
14605
f0ae6fc3
PA
146062013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14607
14608 PR server/15236
14609 * linux-low.c (linux_write_memory): Return early success if LEN is
14610 zero.
14611
b5b0b0af
CV
146122013-03-05 Corinna Vinschen <vinschen@redhat.de>
14613
334ad4a8 14614 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14615
589bc927
TT
146162013-02-28 Tom Tromey <tromey@redhat.com>
14617
14618 * configure.ac: Invoke AC_SYS_LARGEFILE.
14619 * configure, config.in: Rebuild.
14620
dfe07582
CV
146212013-02-28 Corinna Vinschen <vinschen@redhat.com>
14622
14623 * win32-low.c: Throughout, fix format strings and casts of
14624 printf-like functions to avoid type related warnings on all
14625 platforms.
14626 (get_child_debug_event): Print dwDebugEventCode as hex since
14627 that's how it's usually documented.
14628
736cd585
YQ
146292013-02-28 Yao Qi <yao@codesourcery.com>
14630
14631 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14632 pulongest.
14633
e1f58301
JW
146342013-02-27 Jiong Wang <jiwang@tilera.com>
14635
14636 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14637 (reg-tilegx32.c): New rule.
14638 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14639 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14640 different register info initializer according to elf class.
14641 (init_registers_tilgx32): New function. The tilegx32 register info
14642 initializer.
14643 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14644 (tile_store_gregset): Likewise.
14645
d171ca78
YQ
146462013-02-27 Yao Qi <yao@codesourcery.com>
14647
14648 * server.c (process_point_options): Print debug message when
14649 debug_threads is true.
14650
282bbdf3
YQ
146512013-02-26 Yao Qi <yao@codesourcery.com>
14652
14653 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14654
aca22551
PA
146552013-02-19 Pedro Alves <palves@redhat.com>
14656 Kai Tietz <ktietz@redhat.com>
14657
14658 PR gdb/15161
14659
14660 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14661 instead of strtoul to extract address from packet.
14662 (process_serial_event) <'z'>: Likewise.
14663
4f3cee1c
YQ
146642013-02-18 Yao Qi <yao@codesourcery.com>
14665
14666 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14667
8e1d55a3
PA
146682013-02-14 Pedro Alves <palves@redhat.com>
14669
14670 Plug memory leak.
14671
14672 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14673 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14674
458820da
PA
146752013-02-14 Pedro Alves <palves@redhat.com>
14676
14677 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14678
baea0dae
PA
146792013-02-14 Pedro Alves <palves@redhat.com>
14680
14681 * tracepoint.c (save_string): Delete.
14682 (add_tracepoint_action): Use savestring instead of save_string.
14683
0b1afbb3
PA
146842013-02-12 Pedro Alves <palves@redhat.com>
14685
14686 * linux-xtensa-low.c: Ditto.
14687 * xtensa-xtregs.c: Ditto.
14688
8a4ac37e
PA
146892013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14690
14691 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14692 thread_db.
14693
148de6bb
MS
146942013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14695
14696 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14697 aarch64_num_wp_regs and aarch64_num_bp_regs to
14698 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14699
55fac6e0
MS
147002013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14701
14702 * linux-aarch64-low.c (ps_get_thread_area): Replace
14703 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14704
176eb98c
MS
147052013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14706 Marcus Shawcroft <marcus.shawcroft@arm.com>
14707 Nigel Stephens <nigel.stephens@arm.com>
14708 Yufeng Zhang <yufeng.zhang@arm.com>
14709
14710 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14711 (aarch64.c, aarch64-without-fpu.c): New targets.
14712 * configure.srv (aarch64*-*-linux*): New.
14713 * linux-aarch64-low.c: New file.
14714
56f7af9c
MS
147152013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14716
43aaf8b6 14717 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14718 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14719 (dequeue_one_deferred_signal, linux_resume_one_thread)
14720 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14721 (linux_tracefork_grandchild, linux_test_for_tracefork)
14722 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14723 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14724 where the argument is 0.
14725
60f662b0
YQ
147262013-01-25 Yao Qi <yao@codesourcery.com>
14727
14728 * event-loop.c: Include "queue.h".
14729 (gdb_event_p): New typedef.
14730 (struct gdb_event) <next_event>: Remove.
14731 (event_queue): Change to QUEUE(gdb_event_p).
14732 (async_queue_event): Remove.
14733 (gdb_event_xfree): New.
14734 (initialize_event_loop): New.
14735 (process_event): Use API from QUEUE.
14736 (wait_for_event): Likewise.
14737 * server.c (main): Call initialize_event_loop.
14738 * server.h (initialize_event_loop): Declare.
14739
5ae4861a
YQ
147402013-01-18 Yao Qi <yao@codesourcery.com>
14741
14742 * ax.h (struct eval_agent_expr_context): New.
14743 (gdb_eval_agent_expr): Update declaration.
14744 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14745 TFRAME. Add new argument CTX.
14746 * server.h (struct eval_agent_expr_context): Declare.
14747 (agent_mem_read, agent_tsv_read): Update declaration.
14748 (agent_mem_read_string): Likewise.
14749 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14750 (add_traceframe_block): Add new argument TPOINT.
14751 Increase TPOINT->traceframe_usage.
14752 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14753 eval_tracepoint_agent_expr.
14754 (condition_true_at_tracepoint): Likewise.
14755 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14756 (agent_mem_read_string, agent_tsv_read): Likewise.
14757
85e00e85
YQ
147582013-01-16 Yao Qi <yao@codesourcery.com>
14759
14760 * linux-low.c (linux_resume_one_lwp): Don't check
14761 'lwp->bp_reinsert != 0'.
14762
4039cf45
JB
147632013-01-07 Joel Brobecker <brobecker@adacore.com>
14764 Pedro Alves <palves@redhat.com>
14765
14766 * lynx-low.c (ptrace_request_to_str): Define a temporary
14767 macro and use it to simplify this function's implementation.
14768
9044dee2
JB
147692013-01-07 Joel Brobecker <brobecker@adacore.com>
14770
14771 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14772 sets errno.
14773
e6352c8f
JB
147742013-01-07 Joel Brobecker <brobecker@adacore.com>
14775
14776 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14777
50681a27
JB
147782013-01-07 Joel Brobecker <brobecker@adacore.com>
14779
14780 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14781
3f6e77ef
JB
147822013-01-07 Joel Brobecker <brobecker@adacore.com>
14783
14784 * lynx-low.c (lynx_resume): Use the resume_info parameter
14785 to determine the ptid for the lynx_ptrace call, unless
14786 it is equal to minus_one_ptid, in which case we use the
14787 ptid of the current_inferior.
14788 (lynx_wait_1): After having received a thread create/exit
14789 event, resume the inferior's execution using the signaling
14790 thread's ptid, rather than the old ptid.
14791
7fda33ae
JB
147922013-01-07 Joel Brobecker <brobecker@adacore.com>
14793
14794 * lynx-low.c (lynx_resume): Delete variable ret.
14795
b9786c74
JB
147962013-01-01 Joel Brobecker <brobecker@adacore.com>
14797
14798 * gdbreplay.c (gdbreplay_version): Update copyright year.
14799 * server.c (gdbserver_version): Likewise.
14800
8b93d60f
JB
148012012-12-17 Joel Brobecker <brobecker@adacore.com>
14802
14803 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14804 new thread.
14805
037335a7
JB
148062012-12-17 Joel Brobecker <brobecker@adacore.com>
14807
14808 * lynx-low.c (ptrace_request_to_str): Add handling for
14809 PTRACE_GETTRACESIG.
14810
52d4cbd8
JB
148112012-12-17 Joel Brobecker <brobecker@adacore.com>
14812
14813 * lynx-low.c (lynx_attach): Delete variable new_process.
14814
ab8f6ca9
JB
148152012-12-17 Joel Brobecker <brobecker@adacore.com>
14816
14817 * lynx-low.c (lynx_create_inferior): Delete variable
14818 new_process.
14819
78cbc024
JB
148202012-12-17 Joel Brobecker <brobecker@adacore.com>
14821
14822 * lynx-low.c (ptrace_request_to_str): Do not handle
14823 PTRACE_GETTHREADLIST if this macro does not exist.
14824
14a00470
YQ
148252012-12-15 Yao Qi <yao@codesourcery.com>
14826
14827 * Makefile.in (OBS): Add notif.o.
14828 * notif.c, notif.h: New.
14829 * server.c: Include "notif.h".
14830 (struct vstop_notif) <next>: Remove.
14831 <base>: New field.
14832 (queue_stop_reply): Update.
14833 (push_event, send_next_stop_reply): Remove.
14834 (discard_queued_stop_replies): Update.
14835 (notif_stop): New variable.
14836 (handle_v_stopped): Remove.
14837 (handle_v_requests): Don't call handle_v_stopped. Call
14838 handle_ack_notif instead.
14839 (queue_stop_reply_callback): Call notif_event_enque instead
14840 of queue_stop_reply.
14841 (handle_status): Don't call send_next_stop_reply, call
14842 notif_write_event instead.
14843 (kill_inferior_callback): Likewise.
14844 (detach_or_kill_inferior_callback): Likewise.
14845 (main): Call initialize_notif.
14846 (process_serial_event): Call QUEUE_is_empty.
14847 (handle_target_event): Call notif_push instead of push event.
14848 * server.h (push_event): Remove declaration.
14849
61c125b9
TT
148502012-12-10 Tom Tromey <tromey@redhat.com>
14851
14852 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14853 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14854 macros.
14855 (.c.o): Rewrite.
14856 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14857 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14858 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14859 (amd64-linux-ipa.o, ax.o): Rewrite.
14860 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14861 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14862 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14863 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14864 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14865 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14866 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14867 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14868 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14869 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14870 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14871 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14872 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14873 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14874 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14875 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14876 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14877 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14878 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14879 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14880 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14881 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14882 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14883 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14884 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14885 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14886 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14887 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14888 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14889 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14890 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14891 (reg-tilegx.o): Remove.
14892 (all_object_files): New macro.
14893 Include .deps files.
14894 * aclocal.m4, configure: Rebuild.
14895 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14896 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14897 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14898
e90e9ad9
TT
148992012-12-05 Tom Tromey <tromey@redhat.com>
14900
14901 PR gdb/14917:
14902 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14903
02d403bf 149042012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14905
14906 * configure.ac: Check for linux/perf_event.h.
14907 * config.in: Regenerated.
14908 * configure: Regenerated.
14909
0270a750
PA
149102012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14911
14912 * hostio.c (handle_readlink): Decrease buffer size
14913 parameter passed to readlink by one byte.
14914
8c29b58e
YQ
149152012-11-26 Yao Qi <yao@codesourcery.com>
14916
14917 * configure.ac (build_warnings): Append '-Wempty-body'.
14918 * configure: Regenerated.
14919 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14920 body.
14921
8bdce1ff
PM
149222012-11-15 Pierre Muller <muller@sourceware.org>
14923
14924 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14925 * config.in: Regenerate.
14926 * configure: Regenerate.
14927 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14928 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14929 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14930 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14931 header.
14932 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14933 instead of <sys/wait.h> header.
14934 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14935
02d403bf 149362012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14937
14938 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14939 (various make rules): Remove -DGDBSERVER
14940
fbd5db48
YQ
149412012-11-09 Yao Qi <yao@codesourcery.com>
14942
14943 * spu-low.c (current_ptid): Move it to ..
14944 * gdbthread.h: ... here. New.
14945 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14946 * server.c (myresume, process_serial_event): Likewise.
14947 * thread-db.c (thread_db_find_new_threads): Likewise.
14948 * tracepoint.c (run_inferior_command): Likewise.
14949
b3dc46ff
AB
149502012-10-01 Andrew Burgess <aburgess@broadcom.com>
14951
14952 * server.c (handle_search_memory_1): Include access length in
14953 warning message.
14954
07c04788
HPN
149552012-09-05 Michael Brandt <michael.brandt@axis.com>
14956
14957 * linux-crisv32-low.c: Fix compile errors.
14958
918d227b
YQ
149592012-09-04 Yao Qi <yao@codesourcery.com>
14960
14961 * tracepoint.c (cmd_qtsv): Adjust debug message.
14962 Don't check CUR_TPOINT.
14963
18c1b81a
YQ
149642012-08-28 Yao Qi <yao@codesourcery.com>
14965
14966 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14967 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14968 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14969 Remove declarations of xmalloc, xreallloc, xstrdup and
14970 freeargv.
14971 * Makefile.in (libiberty_h): New.
14972 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14973 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14974
dc82f37b
YQ
149752012-08-23 Yao Qi <yao@codesourcery.com>
14976
14977 * server.h: Remove declaration of 'xsnprintf'.
14978
406b1477
KS
149792012-08-22 Keith Seitz <keiths@redhat.com>
14980
14981 * server.h: Include build-gnulib-gbserver/config.h.
14982 * gdbreplay.c: Likewise.
14983
e6712ff1
DE
149842012-08-08 Doug Evans <dje@google.com>
14985
14986 * Makefile.in (SFILES): Add gdb_vecs.c.
14987 (OBS): Add gdb_vecs.o.
14988 (gdb_vecs_h, host_defs_h): New variables.
14989 (thread-db.o): Add $(gdb_vecs_h) dependency.
14990 (gdb_vecs.o): New rule.
14991 * thread-db.c: #include "gdb_vecs.h".
14992 (thread_db_load_search): Use a vector to iterate over path elements.
14993 Handle text appearing after "$pdir".
14994
14995 * configure.ac: Add check for strstr.
14996 * config.in: Regenerate.
14997 * configure: Regenerate.
14998
7c3270ae
UW
149992012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15000
15001 * hostio.c (handle_pread): If pread fails, fall back to attempting
15002 lseek/read.
15003 (handle_pwrite): Likewise for pwrite.
15004
b62e2b27
UW
150052012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15006
15007 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15008 between unsupported TYPE and unimplementable ADDR/LEN combination.
15009 (arm_insert_point): Act on new return value.
15010
78a99e91
PA
150112012-07-31 Pedro Alves <palves@redhat.com>
15012
15013 * server.c (process_point_options): Only skip tokens if we find
15014 one that is unrecognized. Don't treat 'X' specially while
15015 skipping unrecognized tokens.
15016
fcf303ab
UW
150172012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15018
15019 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15020 to 4-byte-align HW breakpoint addresses for Thumb.
15021
7255706c
YQ
150222012-07-27 Yao Qi <yao@codesourcery.com>
15023
15024 PR remote/14161.
15025
15026 * server.h: Declare gdb_agent_about_to_close.
15027 * target.c (kill_inferior): Include "agent.h".
15028 New. Send command 'kill'.
15029 * target.h (kill_inferior): Removed macro.
15030 * tracepoint.c (gdb_agent_about_to_close): New.
15031 (gdb_agent_helper_thread): Handle command 'close'.
15032 Wait endlessly until the inferior stops.
15033 Install gdb_agent_remove_socket to atexit hook.
15034 (agent_socket_name): New static variable.
15035 (gdb_agent_socket_init): Replace local variable 'name' with
15036 'agent_socket_name'.
15037 (gdb_agent_remove_socket): New.
15038
5a3f286f
YQ
150392012-07-27 Yao Qi <yao@codesourcery.com>
15040
15041 * server.c (process_point_options): Stop at 'X' when parsing.
15042
961bd387
ME
150432012-07-19 Michael Eager <eager@eagercon.com>
15044
a261b8f5 15045 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15046 to hw_execute.
15047 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15048 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15049 hardware breakpoint.
15050
aa7c7447
JK
150512012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15052
15053 * gdbserver/linux-low.c (initialize_low): Call
15054 linux_ptrace_init_warnings.
15055
7f216e7c
DE
150562012-07-02 Doug Evans <dje@google.com>
15057
15058 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15059 pointer to int.
15060
d3ce09f5
SS
150612012-07-02 Stan Shebs <stan@codesourcery.com>
15062
15063 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15064 (ax.o): Add it to build rule.
15065 (ax-ipa.o): Ditto.
15066 (OBS): Add format.o.
15067 (IPA_OBS): Add format.o.
15068 * server.c (handle_query): Claim support for breakpoint commands.
15069 (process_point_options): Add command case.
15070 (process_serial_event): Leave running if there are printfs in
15071 effect.
15072 * mem-break.h (any_persistent_commands): Declare.
15073 (add_breakpoint_commands): Declare.
15074 (gdb_no_commands_at_breakpoint): Declare.
15075 (run_breakpoint_commands): Declare.
15076 * mem-break.c (struct point_command_list): New struct.
15077 (struct breakpoint): New field command_list.
15078 (any_persistent_commands): New function.
15079 (add_commands_to_breakpoint): New function.
15080 (add_breakpoint_commands): New function.
15081 (gdb_no_commands_at_breakpoint): New function.
15082 (run_breakpoint_commands): New function.
15083 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15084 locally.
15085 * ax.c: Include format.h.
15086 (ax_printf): New function.
15087 (gdb_eval_agent_expr): Add printf opcode.
15088
2f8f6aed
YQ
150892012-06-13 Yao Qi <yao@codesourcery.com>
15090
15091 * server.c (start_inferior): Remove duplicated writes to fields
15092 'last_resume_kind' and 'last_status' of 'current_inferior'.
15093
0c9070b3
YQ
150942012-06-12 Yao Qi <yao@codesourcery.com>
15095 Pedro Alves <palves@redhat.com>
15096
15097 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15098 comment.
15099 * server.c (handle_v_cont): Extend comment.
15100
c52daf70
YQ
151012012-06-11 Yao Qi <yao@codesourcery.com>
15102
15103 * linux-low.c (linux_attach): Add 'static'.
15104
d38bbb0a
YQ
151052012-06-06 Yao Qi <yao@codesourcery.com>
15106
15107 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15108
89dc0afd
JK
151092012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15110
15111 Fix gcc -flto compilation warning.
15112 * server.c (main): Make variable multi_mode and attach volatile.
15113
75f62ce7
TJB
151142012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15115
15116 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15117 if the platform doesn't know about it.
15118
65f479b6
PA
151192012-05-30 Jeff Kenton <jkenton@tilera.com>
15120
15121 * Makefile.in (SFILES): Add linux-tile-low.c.
15122 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15123 * configure.srv: Handle tilegx-*-linux*.
15124 * linux-tile-low.c: New file.
15125
0c5bf5a9
JK
151262012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15127
15128 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15129
a493e3e2
PA
151302012-05-24 Pedro Alves <palves@redhat.com>
15131
15132 PR gdb/7205
15133
43aaf8b6 15134 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15135
2ea28649
PA
151362012-05-24 Pedro Alves <palves@redhat.com>
15137
15138 PR gdb/7205
15139
15140 Replace target_signal with gdb_signal throughout.
15141
8d409d16
MR
151422012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15143
15144 * linux-low.c (linux_store_registers): Avoid the copying sequence
15145 when no data has been retrieved by ptrace.
15146
23512c01
MGD
151472012-05-22 Will Deacon <will.deacon@arm.com>
15148
15149 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15150 Include asm/ptrace.h.
15151 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15152 already defined.
15153
4934b29e
MR
151542012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15155
15156 * linux-low.c (linux_store_registers): Don't re-retrieve data
15157 with ptrace that has already been obtained from /proc. Always
15158 copy any data retrieved with ptrace to the buffer supplied.
15159
bde24c0a
PA
151602012-05-11 Yao Qi <yao@codesourcery.com>
15161 Pedro Alves <palves@redhat.com>
15162
15163 * linux-low.c (enum stopping_threads_kind): New.
15164 (stopping_threads): Change type to `enum stopping_threads_kind'.
15165 (handle_extended_wait): If stopping and suspending threads, leave
15166 the new_lwp suspended too.
15167 (linux_wait_for_event): Adjust.
15168 (stop_all_lwps): Set `stopping_threads' to
15169 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15170 whether we're suspending threads or just stopping them. Assert no
15171 recursion happens.
15172
623b6bdf
YQ
151732012-04-29 Yao Qi <yao@codesourcery.com>
15174
15175 * server.h: Move some code to ...
15176 * gdbthread.h: ... here. New.
15177 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15178 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15179 (nto-low.o, win32-low.o): Likewise.
15180 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15181 * regcache.c, remote-utils.c, server.c: Likewise.
15182 * target.c, tracepoint.c, win32-low.c: Likewise.
15183
f15f9948
TJB
151842012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15185
15186 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15187 (PTRACE_ARG4_TYPE): Likewise.
15188 (PTRACE_XFER_TYPE): Likewise.
15189 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15190 ptrace to PTRACE_ARG3_TYPE.
15191 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15192 (PTRACE_ARG4_TYPE): Likewise.
15193 (PTRACE_XFER_TYPE): Likewise.
15194 (linux_detach_one_lwp): Cast fourth argument of
15195 ptrace to long then PTRACE_ARG4_TYPE.
15196 (regsets_fetch_inferior_registers): Cast third argument of
15197 ptrace to long then PTRACE_ARG3_TYPE.
15198 (regsets_store_inferior_registers): Likewise.
15199
38ea300a
PA
152002012-04-20 Pedro Alves <palves@redhat.com>
15201
15202 * configure: Regenerate.
15203
c971b7fa
PA
152042012-04-19 Pedro Alves <palves@redhat.com>
15205
43aaf8b6 15206 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15207 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15208 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15209 (all, install-only, uninstall, clean-info, all-lib, clean): No
15210 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15211 (maintainer-clean realclean distclean): Use subdir_do.
15212 (subdir_do): New.
15213 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15214 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15215 * acinclude.m4: Include acx_configure_dir.m4.
15216 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15217 calls. Call AC_PROG_RANLIB. Configure gnulib using
15218 ACX_CONFIGURE_DIR.
15219 (GNULIB): New.
15220 (GNULIB_STDINT_H): Adjust.
15221 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15222 * gdbreplay.c: Include build-gnulib/config.h.
15223 * server.h: Likewise.
15224 * aclocal.m4: Regenerate.
15225 * config.in: Regenerate.
15226 * configure: Regenerate.
c971b7fa 15227
809277f8
PA
152282012-04-19 Pedro Alves <palves@redhat.com>
15229
15230 * Makefile.in (LIBGNU, INCGNU): Adjust.
15231 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15232 (all, install-only, uninstall, clean-info, all-lib, clean)
15233 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15234 * configure.ac: Adjust AC_OUTPUT output.
15235 * aclocal.m4: Regenerate.
15236 * configure: Regenerate.
15237
fd9bb8b8
PA
152382012-04-19 Pedro Alves <palves@redhat.com>
15239
15240 * Makefile.in (generated_files): New.
15241 (server_h): Remove the explicit dependency on config.h, and depend
15242 on $generated_files.
15243
1c298c66
PA
152442012-04-19 Pedro Alves <palves@redhat.com>
15245
15246 * Makefile.in (INCGNU): Add -Ignulib.
15247
57c4b50b
PA
152482012-04-19 Pedro Alves <palves@redhat.com>
15249
15250 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15251 (INCGNU): ... this, and spell out -I here.
15252 (GNULIB_LIB): Rename to ...
15253 (LIBGNU): ... this.
15254 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15255
1030e047
PA
152562012-04-19 Pedro Alves <palves@redhat.com>
15257
15258 * config.in: Regenerate.
15259
447d4319
PA
152602012-04-19 Pedro Alves <palves@redhat.com>
15261
15262 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15263 * server.h (memmem): Remove declaration.
15264 * config.in: Regenerate.
15265 * configure: Regenerate.
15266
aad9eab9
YQ
152672012-04-19 Yao Qi <yao@codesourcery.com>
15268
15269 * Makefile.in (SFILES): Add common/vec.c.
15270 (OBS): Add vec.o.
15271 (vec.o): New rule.
15272
3e10640f
YQ
152732012-04-19 Yao Qi <yao@codesourcery.com>
15274
15275 * remote-utils.c (prepare_resume_reply): Replace with macro
15276 target_core_of_thread.
15277 * server.c (handle_qxfer_threads_proper): Likewise.
15278 * target.h (traget_core_of_thread): New macro.
15279
71622373
PA
152802012-04-18 Pedro Alves <palves@redhat.com>
15281
15282 * aclocal.m4: Regenerate.
15283 * configure: Regenerate.
15284
80d26939
YQ
152852012-04-16 Yao Qi <yao@codesourcery.com>
15286
15287 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15288 duplicated on address.
15289
42476b70
YQ
152902012-04-16 Yao Qi <yao@codesourcery.com>
15291
15292 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15293 (struct tracepoint_action_ops) <send>: New field.
15294 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15295 (agent_expr_send, x_tracepoint_action_send): New.
15296 (l_tracepoint_action_send): New.
15297 (cmd_qtdp): Download and install tracepoint
15298 according to `use_agent'.
15299 (run_inferior_command): Add one more parameter `len'.
15300 Update callers.
15301 (tracepoint_send_agent): New.
15302 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15303
7bc83639
YQ
153042012-04-16 Yao Qi <yao@codesourcery.com>
15305
15306 * tracepoint.c (download_tracepoints): Moved to ...
15307 (cmd_qtstart): ... here.
15308
5f18041e
YQ
153092012-04-14 Yao Qi <yao@codesourcery.com>
15310
15311 * tracepoint.c: Include inttypes.h.
15312 (struct collect_memory_action): Use sized types.
15313 (struct tracepoint): Likewise.
15314 (cmd_qtdp, stop_tracing): Update print specifiers.
15315 (cmd_qtp, response_tracepoint): Likewise.
15316 (collect_data_at_tracepoint): Likewise.
15317 (collect_data_at_step): Likewise.
15318
55a8c076
YQ
153192012-04-14 Yao Qi <yao@codesourcery.com>
15320
15321 Import gnulib module inttypes.
15322 * aclocal.m4, config.in, configure: Regenerated.
15323
dc750257
YQ
153242012-04-14 Yao Qi <yao@codesourcery.com>
15325
15326 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15327 Makefile and config.status at last.
15328
0ab5faf9
YQ
153292012-04-13 Yao Qi <yao@codesourcery.com>
15330
15331 * tracepoint.c: Include stdint.h unconditionally.
15332
18f5fd81
TJB
153332012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15334
15335 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15336 on BFD_HAVE_SYS_PROCFS_TYPE.
15337 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15338 * configure: Regenerate.
15339 * config.in: Likewise.
15340
4d47af5c
L
153412012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15342
15343 * Makefile.in (clean): Also remove x32.c x32-linux.c
15344 x32-avx.c x32-avx-linux.c.
15345 (x32.o): New target.
15346 (x32.c): Likewise.
15347 (x32-linux.o): Likewise.
15348 (x32-linux.c): Likewise.
15349 (x32-avx.o): Likewise.
15350 (x32-avx.c): Likewise.
15351 (x32-avx-linux.o): Likewise.
15352 (x32-avx-linux.c): Likewise.
15353
15354 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15355 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15356 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15357 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15358 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15359 i386/x32-avx-linux.xml.
15360
15361 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15362 (init_registers_x32_avx_linux): Likwise.
15363 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15364 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15365
ecedbe58
PA
153662012-04-13 Pedro Alves <palves@redhat.com>
15367
15368 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15369 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15370 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15371 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15372 the sub-make.
15373
c92b5177
L
153742012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15375
15376 * linux-x86-low.c (compat_x32_clock_t): New.
15377 (compat_x32_siginfo_t): Likewise.
15378 (compat_x32_siginfo_from_siginfo): Likewise.
15379 (siginfo_from_compat_x32_siginfo): Likewise.
15380 (linux_is_elf64): Likewise.
15381 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15382 and siginfo_from_compat_x32_siginfo for x32.
15383 (x86_arch_setup): Set linux_is_elf64.
15384
214d508e
L
153852012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15386
15387 PR gdb/13969
15388 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15389 e_machine field.
15390 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15391 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15392 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15393 compatible with process.
15394
c9a1864a
YQ
153952012-04-12 Yao Qi <yao@codesourcery.com>
15396
15397 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15398 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15399 (install-only, install-info, clean): Handle sub dir gnulib.
15400 (all-lib, am--refresh): New targets.
15401 (memmem.o): Remove target.
15402 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15403 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15404 (AC_REPLACE_FUNCS): Remove memmem.
15405 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15406 (AC_OUTPUT): Generate Makefile in gnulib/.
15407 * aclocal.m4, config.in, configure: Regenerated.
15408
367ba2c2
MR
154092012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15410
15411 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15412
9d236627
PA
154132012-04-05 Pedro Alves <palves@redhat.com>
15414
15415 -Werror=strict-aliasing
15416
15417 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15418 pointer.
15419
111217b3
PA
154202012-04-04 Pedro Alves <palves@redhat.com>
15421
15422 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15423 (sparc_store_gregset_from_stack, sparc_store_gregset)
15424 (sparc_breakpoint_at): Fix formatting.
15425
8365dcf5
TJB
154262012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15427
15428 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15429 are available.
15430 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15431 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15432 * config.in: Regenerate.
15433 * configure: Likewise.
15434
689cc2ae
PA
154352012-03-29 Pedro Alves <palves@redhat.com>
15436
15437 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15438 Correct ptrace arguments.
15439
c14dfd32
PA
154402012-03-28 Pedro Alves <palves@redhat.com>
15441
15442 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15443 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15444 (IA64_FR1_REGNUM): New defines.
15445 (ia64_fetch_register): New.
15446 (the_low_target): Install it.
15447 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15448 field.
15449 * linux-low.c (linux_fetch_registers): Try the
15450 the_low_target.fetch_register hook first.
15451
15452 * linux-arm-low.c (the_low_target): Adjust.
15453 * linux-bfin-low.c (the_low_target): Adjust.
15454 * linux-cris-low.c (the_low_target): Adjust.
15455 * linux-crisv32-low.c (the_low_target): Adjust.
15456 * linux-m32r-low.c (the_low_target): Adjust.
15457 * linux-m68k-low.c (the_low_target): Adjust.
15458 * linux-mips-low.c (the_low_target): Adjust.
15459 * linux-ppc-low.c (the_low_target): Adjust.
15460 * linux-s390-low.c (the_low_target): Adjust.
15461 * linux-sh-low.c (the_low_target): Adjust.
15462 * linux-sparc-low.c (the_low_target): Adjust.
15463 * linux-tic6x-low.c (the_low_target): Adjust.
15464 * linux-x86-low.c (the_low_target): Adjust.
15465 * linux-xtensa-low.c (the_low_target): Adjust.
15466
63c88e13
PA
154672012-03-26 Pedro Alves <palves@redhat.com>
15468
15469 * server.c (handle_qxfer_libraries): Don't bail early if
15470 the_target->qxfer_libraries_svr4 is not NULL.
15471
fb723180
PA
154722012-03-26 Pedro Alves <palves@redhat.com>
15473
15474 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15475
0afae3cf
PA
154762012-03-23 Pedro Alves <palves@redhat.com>
15477
15478 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15479 "library-list-svr4" element's start tag when the the DSO list is
15480 empty.
15481
485f1ee4
PA
154822012-03-23 Pedro Alves <palves@redhat.com>
15483
15484 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15485 a variable whose type size is the same as the inferior's pointer
15486 size.
15487
a5362b9a
TS
154882012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15489
15490 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15491 struct siginfo.
15492 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15493 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15494 * linux-low.h: Include <signal.h>.
15495 (struct siginfo): Remove forward declaration.
15496 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15497 struct siginfo.
15498
d226c142
MF
154992012-03-21 Mike Frysinger <vapier@gentoo.org>
15500
15501 * .gitignore: Ignore more files.
15502
122f36ef
PA
155032012-03-19 Pedro Alves <palves@redhat.com>
15504 Jan Kratochvil <jan.kratochvil@redhat.com>
15505
15506 * server.c (cont_thread, general_thread): Add describing comments.
15507 (start_inferior): Clear `cont_thread'.
15508 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15509 of a process.
15510
fc3e5175
YQ
155112012-03-15 Yao Qi <yao@codesourcery.com>
15512
15513 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15514 handling to ...
15515 (cmd_qtdp): ... here.
15516
8d0d92cd
YQ
155172012-03-15 Yao Qi <yao@codesourcery.com>
15518
15519 * tracepoint.c (struct tracepoint_action_ops): New.
15520 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15521 (m_tracepoint_action_download): New.
15522 (r_tracepoint_action_download): New.
15523 (x_tracepoint_action_download): New.
15524 (l_tracepoint_action_download): New.
15525 (add_tracepoint_action): Install `action->ops' according type.
15526 (download_tracepoint_1): Move code `download' function pointer
15527 of various tracepoint_action_ops.
15528
87b0bb13
JK
155292012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15530
15531 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15532 linux_ptrace_attach_warnings.
15533
5f572dec
JK
155342012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15535
15536 * Makefile.in (linux-ptrace.o): New.
15537 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15538 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15539 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15540 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15541 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15542 of these targets.
15543 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15544
f4647387
YQ
155452012-03-08 Yao Qi <yao@codesourcery.com>
15546 Pedro Alves <palves@redhat.com>
15547
15548 Fix PR server/13392.
15549 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15550 offset of JMP insn.
15551 * tracepoint.c (remove_tracepoint): New.
15552 (cmd_qtdp): Call remove_tracepoint when failed to install.
15553
9b224c5e
PA
155542012-03-07 Pedro Alves <palves@redhat.com>
15555
15556 * linux-low.c (get_detach_signal): New.
15557 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15558 Pass on pending signals to PTRACE_DETACH. Check the result of the
15559 ptrace call.
15560 * server.c (program_signals, program_signals_p): New.
15561 (handle_general_set): Handle QProgramSignals.
15562 * server.h (program_signals, program_signals_p): Declare.
15563
e237a7e2
JK
155642012-03-05 Pedro Alves <palves@redhat.com>
15565 Jan Kratochvil <jan.kratochvil@redhat.com>
15566
15567 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15568 New comment why.
15569
5808517f
YQ
155702012-03-03 Yao Qi <yao@codesourcery.com>
15571
15572 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15573 agent_look_up_symbols.
15574
58b4daa5
YQ
155752012-03-03 Yao Qi <yao@codesourcery.com>
15576
15577 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15578 (linux-x86-low.o): Likewise.
15579 * server.h: Remove in_process_agent_loaded.
15580 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15581 common/agent.c.
15582 Update callers.
15583
8ffcbaaf
YQ
155842012-03-03 Yao Qi <yao@codesourcery.com>
15585
15586 * tracepoint.c (gdb_agent_capability): New global.
15587 (in_process_agent_loaded_ust): Renamed to
15588 `in_process_agent_supports_ust'.
15589 Update callers.
15590 (in_process_agent_supports_ust): Call agent_capability_check.
15591 (clear_installed_tracepoints): Assert that agent supports
15592 agent.
15593
d1feda86
YQ
155942012-03-03 Yao Qi <yao@codesourcery.com>
15595
15596 * linux-low.c (linux_supports_agent): New.
15597 (linux_target_ops): Initialize field `supports_agent' with
15598 linux_supports_agent.
15599 * target.h (struct target_ops) <supports_agent>: New.
15600 (target_supports_agent): New macro.
15601 * server.c (handle_general_set): Handle packet 'QAgent'.
15602 (handle_query): Send `QAgent+'.
15603 * Makefile.in (server.o): Depends on agent.h.
15604
2fa291ac
YQ
156052012-03-03 Yao Qi <yao@codesourcery.com>
15606
15607 * Makefile.in (OBS): Add agent.o.
15608 Add new rule for agent.o.
15609 Track dependence of tracepoint.c on agent.h.
15610 * tracepoint.c (run_inferior_command_1):
15611 (run_inferior_command): Call agent_run_command.
15612 (gdb_ust_connect_sync_socket): Deleted. Move it to
15613 common/agent.c.
15614 (resume_thread, stop_thread): Likewise.
15615 (gdb_ust_socket_init): Renamed to ...
15616 (gdb_agent_socket_init): ... New.
15617 (gdb_ust_thread): Renamed to ...
15618 (gdb_agent_helper_thread): ... New.
15619 (gdb_ust_init): Move some code to ...
15620 (gdb_agent_init): ... here. New.
15621 [HAVE_UST]: Call gdb_ust_init.
15622 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15623 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15624 * config.in, configure: Regenerated.
15625
05044653
PA
156262012-03-02 Pedro Alves <palves@redhat.com>
15627
15628 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15629 * linux-low.c (struct simple_pid_list): New.
15630 (stopped_pids): New a struct simple_pid_list pointer.
15631 (add_to_pid_list, pull_pid_from_list): New.
15632 (handle_extended_wait): Don't assume the first signal new children
15633 report is SIGSTOP. Adjust call to pull_pid_from_list.
15634 (linux_wait_for_lwp): Adjust.
15635
8d00225b
YQ
156362012-03-02 Yao Qi <yao@codesourcery.com>
15637
15638 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15639 debug log.
15640
19560ba5
YQ
156412012-03-02 Yao Qi <yao@codesourcery.com>
15642
15643 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15644 `stop_pc' and `tpoint'. Update caller.
15645
1faeff08
MR
156462012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15647
15648 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15649 * linux-low.c (use_linux_regsets): New macro.
15650 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15651 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15652 (linux_register_in_regsets): New function.
15653 (usr_fetch_inferior_registers): Skip registers covered by
15654 regsets.
15655 (usr_store_inferior_registers): Likewise.
15656 (usr_fetch_inferior_registers): New macro.
15657 (usr_store_inferior_registers): Likewise.
15658 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15659 (linux_store_registers): Likewise.
15660 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15661 prototype.
15662 (init_registers_mips64_dsp_linux): Likewise.
15663 (init_registers_mips_linux): New macro.
15664 (init_registers_mips_dsp_linux): Likewise.
15665 (mips_dsp_num_regs): Likewise.
15666 (DSP_BASE, DSP_CONTROL): New fallback macros.
15667 (mips_base_regs): New macro.
15668 (mips_regmap): Use it. Fix the size.
15669 (mips_dsp_regmap): New variable.
15670 (mips_dsp_regset_bitmap): Likewise.
15671 (mips_arch_setup): New function.
15672 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15673 than mips_regmap.
15674 (mips_cannot_store_register): Likewise.
15675 (the_low_target): Update .arch_setup, .num_regs and .regmap
15676 initializers. Add .regset_bitmap initializer.
15677 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15678 initializer.
15679 * linux-bfin-low.c (the_low_target): Likewise.
15680 * linux-cris-low.c (the_low_target): Likewise.
15681 * linux-crisv32-low.c (the_low_target): Likewise.
15682 * linux-ia64-low.c (the_low_target): Likewise.
15683 * linux-m32r-low.c (the_low_target): Likewise.
15684 * linux-m68k-low.c (the_low_target): Likewise.
15685 * linux-ppc-low.c (the_low_target): Likewise.
15686 * linux-s390-low.c (the_low_target): Likewise.
15687 * linux-sh-low.c (the_low_target): Likewise.
15688 * linux-sparc-low.c (the_low_target): Likewise.
15689 * linux-tic6x-low.c (the_low_target): Likewise.
15690 * linux-x86-low.c (the_low_target): Likewise.
15691 * linux-xtensa-low.c (the_low_target): Likewise.
15692 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15693 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15694 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15695 srv_xmlfiles.
15696 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15697 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15698
c03e6ccc
YQ
156992012-02-29 Yao Qi <yao@codesourcery.com>
15700 Pedro Alves <palves@redhat.com>
15701
15702 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15703 `step_over_finished' is true.
15704
644cebc9
PA
157052012-02-27 Pedro Alves <palves@redhat.com>
15706
15707 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15708 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15709
c14d7ab2
PA
157102012-02-27 Pedro Alves <palves@redhat.com>
15711
15712 PR server/9684
15713 * linux-low.c (pid_is_stopped): New.
15714 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15715
412c89dd
LM
157162012-02-25 Luis Machado <lgustavo@codesourcery.com>
15717
15718 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15719 of conditions.
15720
b745defe
MR
157212012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15722
15723 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15724
9f3a5c85
LM
157252012-02-24 Luis Machado <lgustavo@codesourcery>
15726
15727 * server.c (handle_query): Advertise support for target-side
15728 breakpoint condition evaluation.
15729 (process_point_options): New function.
15730 (process_serial_event): When inserting a breakpoint, check for
15731 a target-side condition that should be evaluated.
15732
15733 * mem-break.c: Include regcache.h and ax.h.
15734 (point_cond_list_t): New data structure.
15735 (breakpoint) <cond_list>: New field.
15736 (find_gdb_breakpoint_at): Make non-static.
15737 (delete_gdb_breakpoint_at): Clear any target-side
15738 conditions.
15739 (clear_gdb_breakpoint_conditions): New function.
15740 (add_condition_to_breakpoint): Likewise.
15741 (add_breakpoint_condition): Likewise.
15742 (gdb_condition_true_at_breakpoint): Likewise.
15743 (gdb_breakpoint_here): Return result directly instead
15744 of going through a local variable.
15745
15746 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15747 (clear_gdb_breakpoint_conditions): Likewise.
15748 (add_breakpoint_condition): Likewise.
15749 (gdb_condition_true_at_breakpoint): Likewise.
15750
15751 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15752 (need_step_over_p): Take target-side breakpoint condition into
15753 consideration.
15754
5e1dc496
LM
157552012-02-24 Luis Machado <lgustavo@codesourcery>
15756
15757 * server.h: Include tracepoint.h.
15758 (agent_mem_read, agent_get_trace_state_variable_value,
15759 agent_set_trace_state_variable_value,
15760 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15761 get_set_tsv_func_addr): New prototypes.
15762
15763 * ax.h: New include file.
15764 * ax.c: New source file.
15765
15766 * tracepoint.c: Include ax.h.
15767 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15768 agent_expr, eval_result_type): Move to ax.h.
15769 (parse_agent_expr): Rename to ...
15770 (gdb_parse_agent_expr): ... this, make it non-static and move
15771 to ax.h.
15772 (unparse_agent_expr) Rename to ...
15773 (gdb_unparse_agent_expr): ... this, make it non-static and move
15774 to ax.h.
15775 (eval_agent_expr): Rename to ...
15776 (eval_tracepoint_agent_expr): ... this.
15777 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15778 forward declarations.
15779 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15780 (agent_get_trace_state_variable_value): New function.
15781 (agent_set_trace_state_variable_value): New function.
15782 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15783 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15784 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15785 (condition_true_at_tracepoint): Likewise.
15786 (parse_agent_expr): Rename to ...
15787 (gdb_parse_agent_expr): ... this and move to ax.c.
15788 (unparse_agent_expr): Rename to ...
15789 (gdb_unparse_agent_expr): ... this and move to ax.c.
15790 (gdb_agent_op_name): Move to ax.c.
15791 (eval_agent_expr): Rename to ...
15792 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15793 and move to ax.c.
15794 (eval_tracepoint_agent_expr): New function.
15795 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15796 non-static.
5e1dc496
LM
15797 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15798 ax.c.
15799 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15800 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15801 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15802 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15803 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15804 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15805 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15806 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15807 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15808 (compile_bytecodes): Remove forward declaration.
15809 (is_goto_target): Move to ax.c.
15810 (compile_bytecodes): Move to ax.c and call
15811 agent_get_trace_state_variable_value (...) and
15812 agent_set_trace_state_variable_value (...).
15813
15814 * Makefile.in: Update ax.c and IPA dependencies.
15815
277e4e52
PA
158162012-02-24 Pedro Alves <palves@redhat.com>
15817
15818 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15819 (cmd_bigqtbuffer_circular): ... this. Only handle
15820 'QTBuffer:circular:'.
15821 (handle_tracepoint_general_set): Adjust.
15822
bf4c19f7
YQ
158232012-02-16 Yao Qi <yao@codesourcery.com>
15824
15825 * inferiors.c: Move code to ...
15826 * dll.c: .... here. New.
15827 * server.h: Declare clear_dlls.
15828 * Makefile.in (SFILES): Add dll.c.
15829 (OBS): Add dll.o
15830 (dll.o): New rule.
15831
d73f2619
YQ
158322012-02-11 Yao Qi <yao@codesourcery.com>
15833
15834 * server.c: (handle_monitor_command): Add a new parameter
15835 `own_buf'.
15836 (handle_query): Update caller.
15837
f8255c2a
JB
158382012-02-09 Joel Brobecker <brobecker@adacore.com>
15839
15840 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15841 * configure, config.in: Regenerate.
15842 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15843 is not defined.
15844
da84f473
PA
158452012-02-02 Pedro Alves <palves@redhat.com>
15846
15847 Try SIGKILL first, then PTRACE_KILL.
15848 * linux-low.c (linux_kill_one_lwp): New.
15849 (linux_kill_one_lwp): Rename to ...
15850 (kill_one_lwp_callback): ... this. Use the new
15851 linux_kill_one_lwp.
15852
e886a173
PA
158532012-02-02 Pedro Alves <palves@redhat.com>
15854
15855 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15856 inferior.
15857
be07f1a2
PA
158582012-01-27 Pedro Alves <palves@redhat.com>
15859
15860 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15861 (elf_64_file_p): Make static.
15862 (linux_pid_exe_is_elf_64_file): New.
15863 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15864 Delete declarations.
15865 (linux_pid_exe_is_elf_64_file): Declare.
15866 * linux-x86-low.c (x86_arch_setup): Use
15867 linux_pid_exe_is_elf_64_file.
15868
d8301ad1
JK
158692012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15870
15871 * linux-low.c (linux_wait_for_event_1): Rename to ...
15872 (linux_wait_for_event): ... here and merge it with former
15873 linux_wait_for_event - new variable wait_ptid, use it.
15874 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15875
01b17894
PA
158762012-01-23 Pedro Alves <palves@redhat.com>
15877
15878 * server.c (main): Avoid yet another case of infinite loop while
15879 detaching/killing after a longjmp.
15880
e825046f
JK
158812012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15882
15883 Code cleanup.
15884 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15885
b9e7b9c3
UW
158862012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15887
15888 * hostio.c (handle_readlink): New function.
15889 (handle_vFile): Call it to handle "vFile:readlink" packets.
15890
901f9912
UW
158912012-01-20 Pedro Alves <palves@redhat.com>
15892 Ulrich Weigand <ulrich.weigand@linaro.org>
15893
15894 * server.c (handle_v_requests): Only support vAttach and vRun to
15895 start multiple processes when in extended protocol mode.
15896
fc1ab1a0
PA
158972012-01-17 Pedro Alves <palves@redhat.com>
15898
15899 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15900 memalign plus mprotect to allocate the scratch buffer.
15901
7d5d4e98
PA
159022012-01-13 Pedro Alves <palves@redhat.com>
15903
15904 * server.c (attach_inferior): Clear `cont_thread'.
15905
f128d5e9
PA
159062012-01-13 Pedro Alves <palves@redhat.com>
15907
15908 * server.c (main): Avoid infinite loop while detaching/killing
15909 after a longjmp.
15910
06db92f0
DE
159112012-01-09 Doug Evans <dje@google.com>
15912
15913 * server.c (start_inferior): Set last_ptid in --wrapper case.
15914
32d92999
YQ
159152012-01-06 Yao Qi <yao@codesourcery.com>
15916
15917 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15918 defined.
15919 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15920
5e0a92a9
YQ
159212012-01-04 Yao Qi <yao@codesourcery.com>
15922
15923 * tracepoint.c (cmd_qtdp): Print debug message
15924 for static tracepoint.
15925
ae639e8c
YQ
159262012-01-04 Yao Qi <yao@codesourcery.com>
15927
15928 * tracepoint.c (trace_vdebug): Differentiate debug message
15929 between gdbserver and IPA.
15930
f72429c5
YQ
159312012-01-03 Yao Qi <yao@codesourcery.com>
15932
15933 * tracepoint.c (tracepoint_was_hit): Don't collect for
15934 static tracepoint.
15935
12c3e59c
JB
159362012-01-02 Joel Brobecker <brobecker@adacore.com>
15937
15938 * terminal.h: Reformat copyright header.
15939
67827812
JB
159402012-01-02 Joel Brobecker <brobecker@adacore.com>
15941
15942 * server.c (gdbserver_version): Update copyright year.
15943 * gdbreplay.c (gdbreplay_version): Likewise.
15944
3e52c33d
JK
159452011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15946
15947 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15948
15949 Revert:
15950 2011-12-18 Hui Zhu <teawater@gmail.com>
15951 * linux-low.c (linux_create_inferior): Save return value to ret.
15952
66f1260e
HZ
159532011-12-18 Hui Zhu <teawater@gmail.com>
15954
15955 * linux-low.c (linux_create_inferior): Save return value to ret.
15956
e77616d7
DE
159572011-12-16 Doug Evans <dje@google.com>
15958
e7b06c57
DE
15959 * linux-low.c (linux_create_inferior): If stdio connection,
15960 redirect stdin from /dev/null, stdout to stderr.
15961 * remote-utils.c (remote_is_stdio): New static global.
15962 (remote_connection_is_stdio): New function.
15963 (remote_prepare): Handle stdio connection.
15964 (remote_open): Ditto.
15965 (remote_close): Don't close stdin for stdio connections.
15966 (read_prim,write_prim): New functions. Replace all calls to
15967 read/write to these.
15968 * server.c (main): Watch for "-" argument. Move call to
15969 remote_prepare before start_inferior.
15970 * server.h (STDIO_CONNECTION_NAME): New macro.
15971 (remote_connection_is_stdio): Declare.
15972
e77616d7
DE
15973 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15974 in debugging output.
15975
82067193
YQ
159762011-12-15 Yao Qi <yao@codesourcery.com>
15977
15978 * tracepoint.c: Include sys/syscall.h.
15979 (gdb_ust_thread): Remove preprocessor conditional.
15980
82bfbe7e
PA
159812011-12-14 Pedro Alves <pedro@codesourcery.com>
15982
15983 * linux-low.c (linux_detach_one_lwp): Call
15984 the_low_target.prepare_to_resume before detaching.
15985
712c6575
YQ
159862011-12-14 Yao Qi <yao@codesourcery.com>
15987
15988 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15989 of write.
15990
d54d1edf
YQ
159912011-12-14 Yao Qi <yao@codesourcery.com>
15992
15993 * i386-low.c (i386_low_stopped_data_address): Initialize local
15994 variable `control'.
15995
6210a125
PA
159962011-12-13 Pedro Alves <pedro@codesourcery.com>
15997
15998 PR remote/13492
15999
16000 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16001 DR_CONTROL unless necessary. Extend comments.
16002 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16003 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16004
2ece8244
YQ
160052011-12-13 Yao Qi <yao@codesourcery.com>
16006
16007 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16008 macros.
16009 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16010
784867a5
JK
160112011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16012
16013 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16014 Print new debug message for such case.
16015
6bf36717
JK
160162011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16017
16018 Fix overlapping memcpy.
16019 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16020 the read_inferior_memory transfer.
16021 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16022 write_inferior_memory transfer.
16023 (set_fast_tracepoint_jump): New variable buf. Use it for the
16024 read_inferior_memory and write_inferior_memory transfers.
16025 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16026 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16027 Use it for the write_inferior_memory transfer.
16028 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16029 buffers.
16030
50275556
MR
160312011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16032
16033 * linux-low.c (fetch_register, store_register): Make code
16034 consistent, fix formatting.
16035
7325beb4
MR
160362011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16037
16038 * linux-low.c (usr_store_inferior_registers): Factor out code
16039 to handle individual registers into...
16040 (store_register): ... this new function.
16041
c642a434
UW
160422011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16043
16044 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16045 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16046 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16047 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16048 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16049 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16050 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16051 (srv_xmlfiles): Add new XML files.
16052
16053 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16054 and <sys/uio.h>.
16055 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16056 (init_registers_s390_linux32v1): Add prototype.
16057 (init_registers_s390_linux32v2): Likewise.
16058 (init_registers_s390_linux64v1): Likewise.
16059 (init_registers_s390_linux64v2): Likewise.
16060 (init_registers_s390x_linux64v1): Likewise.
16061 (init_registers_s390x_linux64v2): Likewise.
16062 (s390_num_regs): Increment to 52.
16063 (s390_regmap): Add orig_r2 register.
16064 (s390_num_regs_3264): Increment to 68.
16065 (s390_regmap_3264): Add orig_r2 register.
16066 (s390_collect_ptrace_register): Handle orig_r2 register.
16067 (s390_supply_ptrace_register): Likewise.
16068 (s390_fill_last_break): New function.
16069 (s390_store_last_break): Likewise.
16070 (s390_fill_system_call): New function.
16071 (s390_store_system_call): Likewise.
16072 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16073 register sets.
16074 (s390_check_regset): New function.
16075 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16076 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16077 Update target_regsets for available register sets.
16078
2268b414
JK
160792011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16080 Jan Kratochvil <jan.kratochvil@redhat.com>
16081
16082 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16083 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16084 New.
16085 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16086 * linux-low.h (struct process_info_private): New member r_debug.
16087 * server.c (handle_qxfer_libraries): Call
16088 the_target->qxfer_libraries_svr4.
16089 (handle_qxfer_libraries_svr4): New function.
16090 (qxfer_packets): New entry "libraries-svr4".
16091 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16092 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16093 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16094 PACKET_qXfer_libraries_svr4.
16095
d6db1fab
UW
160962011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16097
16098 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16099 PSW address/mask between 8-byte and 16-byte formats.
16100 (s390_supply_ptrace_register): Likewise.
16101 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16102 basic addressing mode bit.
16103
242f5f1c
SS
161042011-11-24 Stan Shebs <stan@codesourcery.com>
16105
16106 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16107
f196051f
SS
161082011-11-17 Stan Shebs <stan@codesourcery.com>
16109
16110 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16111 (tracing_start_time): New global.
16112 (tracing_stop_time): New global.
16113 (tracing_user_name): New global.
16114 (tracing_notes): New global.
16115 (tracing_stop_note): New global.
16116 (cmd_qtstart): Set traceframe_usage, start_time.
16117 (stop_tracing): Set stop_time.
16118 (cmd_qtstatus): Report additional status.
16119 (cmd_qtp): New function.
16120 (handle_tracepoint_query): Call it.
16121 (cmd_qtnotes): New function.
16122 (handle_tracepoint_general_set): Call it.
16123 (get_timestamp): Rename from tsv_get_timestamp.
16124
405f8e94
SS
161252011-11-14 Stan Shebs <stan@codesourcery.com>
16126 Kwok Cheung Yeung <kcy@codesourcery.com>
16127
16128 * linux-x86-low.c (small_jump_insn): New.
16129 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16130 trampoline and error message, build a trampoline and issue a small
16131 jump instruction to it.
16132 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16133 trampoline and error message.
16134 (x86_get_min_fast_tracepoint_insn_len): New.
16135 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16136 * linux-low.h (struct linux_target_ops): Add arguments to
16137 install_fast_tracepoint_jump_pad operation, add new operation.
16138 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16139 arguments.
16140 (linux_get_min_fast_tracepoint_insn_len): New function.
16141 (linux_target_op): Add new operation.
16142 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16143 (gdb_trampoline_buffer_end): Ditto.
16144 (gdb_trampoline_buffer_error): Ditto.
16145 (struct ipa_sym_addresses): Add fields for new IPA variables.
16146 (symbol_list): Add entries for new IPA variables.
16147 (struct tracepoint): Add fields to hold the address range of the
16148 trampoline used by the tracepoint.
16149 (trampoline_buffer_head): New static variable.
16150 (trampoline_buffer_tail): Ditto.
16151 (claim_trampoline_space): New function.
16152 (have_fast_tracepoint_trampoline_buffer): New function.
16153 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16154 structure.
16155 (install_fast_tracepoint): Ditto, also add error buffer argument.
16156 (cmd_qtminftpilen): New function.
16157 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16158 (fast_tracepoint_from_trampoline_address): New function.
16159 (fast_tracepoint_collecting): Handle trampoline as part of jump
16160 pad space.
16161 (set_trampoline_buffer_space): New function.
16162 (initialize_tracepoint): Initialize new IPA variables.
16163 * target.h (struct target_ops): Add arguments to
16164 install_fast_tracepoint_jump_pad operation, add new
16165 get_min_fast_tracepoint_insn_len operation.
16166 (target_get_min_fast_tracepoint_insn_len): New.
16167 (install_fast_tracepoint_jump_pad): Add arguments.
16168 * server.h (IPA_BUFSIZ): Define.
16169 * linux-i386-ipa.c: Include extra header files.
16170 (initialize_fast_tracepoint_trampoline_buffer): New function.
16171 (initialize_low_tracepoint): Call it.
16172 * server.h (set_trampoline_buffer_space): Declare.
16173 (claim_trampoline_space): Ditto.
16174 (have_fast_tracepoint_trampoline_buffer): Ditto.
16175
1e4d1764
YQ
161762011-11-14 Yao Qi <yao@codesourcery.com>
16177
16178 * server.c (handle_query): Handle InstallInTrace for qSupported.
16179 * tracepoint.c (add_tracepoint): Sort list.
16180 (install_tracepoint, download_tracepoint): New.
16181 (cmd_qtdp): Call them to install and download tracepoints.
16182 (sort_tracepoints): Removed.
16183 (cmd_qtstart): Update.
16184
5c73ff4e
YQ
161852011-11-14 Yao Qi <yao@codesourcery.com>
16186
16187 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16188 * mem-break.h: Declare.
16189 * tracepoint.c (cmd_qtstart): Move some code to ...
16190 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16191 New.
16192 (download_tracepoints): Move some code to ...
16193 (download_tracepoint_1): ... here. New.
16194
86a30030
YQ
161952011-11-08 Yao Qi <yao@codesourcery.com>
16196
16197 * remote-utils.c (relocate_instruction): A comment fix.
16198
8d26e50c
JB
161992011-11-07 Joel Brobecker <brobecker@adacore.com>
16200
16201 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16202 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16203 dr_status_mirror and dr_control_mirror from debug_reg_state.
16204 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16205 (i386_initial_stuff): Remove use of deleted globals.
16206 (i386_get_thread_context, i386_set_thread_context,
16207 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16208 from debug_reg_state.
16209
a59306a3
YQ
162102011-11-05 Yao Qi <yao@codesourcery.com>
16211
16212 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16213 address as TPOINT's.
16214
3065dfb6
SS
162152011-11-02 Stan Shebs <stan@codesourcery.com>
16216
16217 * tracepoint.c (agent_mem_read_string): New function.
16218 (eval_agent_expr): Call it for tracenz.
16219 * server.c (handle_query): Report support for tracenz.
16220
fd0d8c7c
YQ
162212011-11-02 Yao Qi <yao@codesourcery.com>
16222
16223 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16224
609086b1
YQ
162252011-11-02 Yao Qi <yao@codesourcery.com>
16226
16227 * target.h: Fix a typo in comment.
16228
b9fd1791
PA
162292011-10-31 Pedro Alves <pedro@codesourcery.com>
16230
16231 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16232 clobber the breakpoints' shadows with fast tracepoint jumps.
16233 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16234 * target.c (write_inferior_memory): Also pass MYADDR down to
16235 check_mem_write.
16236
03583c20
UW
162372011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16238
16239 * configure.ac: Check support for personality routine.
16240 * configure: Regenerate.
16241 * config.in: Likewise.
16242 * linux-low.c: Include <sys/personality.h>.
16243 Define ADDR_NO_RANDOMIZE if necessary.
16244 (linux_create_inferior): Disable address space randomization when
16245 forking inferior, if requested.
16246 (linux_supports_disable_randomization): New function.
16247 (linux_target_ops): Install it.
16248 * server.h (disable_randomization): Declare.
16249 * server.c (disable_randomization): New global variable.
16250 (handle_general_set): Handle QDisableRandomization.
16251 (handle_query): Likewise for qSupported.
16252 (main): Support --disable-randomization and --no-disable-randomization
16253 command line arguments.
16254 * target.h (struct target_ops): Add supports_disable_randomization.
16255 (target_supports_disable_randomization): New macro.
16256
723b724b
MF
162572011-09-29 Mike Frysinger <vapier@gentoo.org>
16258
16259 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16260 ifdef check.
16261 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16262 [!PT_GETDSBT] (target_loadmap): New definition.
16263 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16264 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16265 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16266 and PT_GETDSBT to LINUX_LOADMAP.
16267 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16268 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16269
55329a5c 162702011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16271
16272 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16273 (arm_linux_hwbp_cap): New static variable.
16274 (arm_linux_get_hwbp_cap): Replace by ...
16275 (arm_linux_init_hwbp_cap): ... this new function.
16276 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16277 (arm_linux_get_hw_watchpoint_count): Likewise.
16278 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16279 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16280 (arm_prepare_to_resume): Use perror_with_name instead of error.
16281
55329a5c 162822011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16283
16284 * linux-arm-low.c: Include <signal.h>.
16285 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16286 (struct arm_linux_hwbp_cap): New data type.
16287 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16288 (struct arm_linux_hw_breakpoint): New data type.
16289 (MAX_BPTS, MAX_WPTS): Define.
16290 (struct arch_process_info, struct arch_lwp_info): New data types.
16291 (arm_linux_get_hwbp_cap): New function.
16292 (arm_linux_get_hw_breakpoint_count): Likewise.
16293 (arm_linux_get_hw_watchpoint_count): Likewise.
16294 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16295 (arm_hwbp_control_initialize): Likewise.
16296 (arm_hwbp_control_is_enabled): Likewise.
16297 (arm_hwbp_control_is_initialized): Likewise.
16298 (arm_hwbp_control_disable): Likewise.
16299 (arm_linux_hw_breakpoint_equal): Likewise.
16300 (arm_linux_hw_point_initialize): Likewise.
16301 (struct update_registers_data): New data structure.
16302 (update_registers_callback: New function.
16303 (arm_insert_point): Likewise.
16304 (arm_remove_point): Likewise.
16305 (arm_stopped_by_watchpoint): Likewise.
16306 (arm_stopped_data_address): Likewise.
16307 (arm_new_process): Likewise.
16308 (arm_new_thread): Likewise.
16309 (arm_prepare_to_resume): Likewise.
16310 (the_low_target): Register arm_insert_point, arm_remove_point,
16311 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16312 arm_new_thread, and arm_prepare_to_resume.
16313
6b9801d4
SS
163142011-09-15 Stan Shebs <stan@codesourcery.com>
16315
16316 * server.h (struct emit_ops): Add compare-goto fields.
16317 * tracepoint.c (gdb_agent_op_sizes): New table.
16318 (emit_eq_goto): New function.
16319 (emit_ne_goto): New function.
16320 (emit_lt_goto): New function.
16321 (emit_le_goto): New function.
16322 (emit_gt_goto): New function.
16323 (emit_ge_goto): New function.
16324 (is_goto_target): New function.
16325 (compile_bytecodes): Recognize special cases of compare-goto
16326 combinations and call specialized emitters for them.
16327 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16328 (amd64_emit_ne_goto): New function.
16329 (amd64_emit_lt_goto): New function.
16330 (amd64_emit_le_goto): New function.
16331 (amd64_emit_gt_goto): New function.
16332 (amd64_emit_ge_goto): New function.
16333 (amd64_emit_ops): Add the new functions.
16334 (i386_emit_eq_goto): New function.
16335 (i386_emit_ne_goto): New function.
16336 (i386_emit_lt_goto): New function.
16337 (i386_emit_le_goto): New function.
16338 (i386_emit_gt_goto): New function.
16339 (i386_emit_ge_goto): New function.
16340 (i386_emit_ops): Add the new functions.
16341
bf15cbda
SS
163422011-09-08 Stan Shebs <stan@codesourcery.com>
16343
16344 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16345 (i386_emit_epilogue): Restore %ebx.
16346
943ca1dd
JZ
163472011-08-31 Jie Zhang <jzhang918@gmail.com>
16348
16349 * server.c (step_thread): Remove definition.
16350 (process_serial_event): Don't handle Hs.
16351 * server.h (step_thread): Remove declaration.
16352 * target.c (set_desired_inferior): Remove use of step_thread.
16353
e3deef73
LM
163542011-08-24 Luis Machado <lgustavo@codesourcery.com>
16355
16356 * linux-low.c: Include linux-procfs.h.
16357 (linux_attach_lwp_1): Update comments.
16358 (linux_attach): Scan for existing threads when attaching to a
16359 process that is the tgid.
16360 * Makefile.in: Update dependencies.
16361
13da1c97
LM
163622011-08-24 Luis Machado <lgustavo@codesourcery.com>
16363
16364 * configure.srv: Add linux-procfs.o dependencies.
16365
881127c9
YQ
163662011-08-14 Yao Qi <yao@codesourcery.com>
16367
16368 * target.h (struct target_ops): Fix indent.
16369 * win32-low.c (win32_target_ops): Fix comment.
16370
58dbd541
YQ
163712011-08-14 Andrew Jenner <andrew@codesourcery.com>
16372 Yao Qi <yao@codesourcery.com>
16373
16374 * Makefile.in (clean): Remove tic6x-*.c files.
16375 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16376 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16377 (tic6x-c64xp-linux.c): Likewise.
16378 * configure.srv: Add support for tic6x-*-uclinux.
16379 * linux-tic6x-low.c: New.
16380 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16381
78d85199
YQ
163822011-08-14 Andrew Stubbs <ams@codesourcery.com>
16383 Yao Qi <yao@codesourcery.com>
16384
16385 * target.h (struct target_ops): Add read_loadmap.
16386 * linux-low.c (struct target_loadseg): New type.
16387 (struct target_loadmap): New type.
16388 (linux_read_loadmap): New function.
16389 (linux_target_ops): Add linux_read_loadmap.
16390 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16391 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16392 to NULL.
78d85199 16393
a959a88d
EZ
163942011-08-05 Eli Zaretskii <eliz@gnu.org>
16395
16396 * win32-low.c: Include <stdint.h>.
16397
1ced966e
PA
163982011-07-22 Pedro Alves <pedro@codesourcery.com>
16399
16400 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16401 to the inferior here.
16402 (i386_remove_aligned_watchpoint): Ditto.
16403 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16404 fit part of the watchpoint in the debug registers.
16405 (i386_update_inferior_debug_regs): New.
16406 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16407 registers, and only update the inferior on success.
16408 (i386_low_remove_watchpoint): Ditto.
16409
d26e3629
KY
164102011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16411
16412 * linux-low.c (compare_ints, unique, list_threads, show_process,
16413 linux_core_of_thread): Delete.
16414 (linux_target_ops): Change linux_core_of_thread to
16415 linux_common_core_of_thread.
16416 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16417 * utils.c (malloc_failure): Change type of argument.
16418 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16419 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16420 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16421 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16422 (IPA_OBJS): Add common-utils-ipa.o.
16423 (ptid_h, linux_osdata_h): New macros.
16424 (server_h): Add common/common-utils.h, common/xml-utils.h,
16425 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16426 common/ptid.h.
16427 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16428 ptid.o, buffer.o): New rules.
16429 (linux-low.o): Add common/linux-osdata.h as a dependency.
16430 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16431 * configure.ac: Add AC_HEADER_DIRENT check.
16432 * config.in: Regenerate.
16433 * configure: Regenerate.
16434 * remote-utils.c (xml_escape_text): Delete.
16435 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16436 buffer_xml_printf): Move to common/buffer.c.
16437 * server.c (main): Remove call to initialize_inferiors.
16438 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16439 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16440 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16441 internal_error, gdb_assert, gdb_assert_fail): Delete.
16442 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16443 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16444 common/buffer.h.
16445 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16446 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16447 initialize_inferiors): Delete.
16448
2275a1a7
PA
164492011-07-20 Pedro Alves <pedro@codesourcery.com>
16450
16451 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16452 symbol error.
16453
0a5b1e09
PA
164542011-05-31 Pedro Alves <pedro@codesourcery.com>
16455
16456 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16457 assertion.
16458 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16459
6938fd34
YQ
164602011-05-26 Yao Qi <yao@codesourcery.com>
16461
16462 * Makefile.in (thread-db.o): Track dependence to
16463 common/gdb_thread_db.h.
16464 * thread-db.c: include gdb_thread_db.h from right place.
16465
b481f9e0
TT
164662011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16467
16468 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16469 __FILE__ and __LINE__ to internal_error.
16470
98a5dd13
DE
164712011-05-13 Doug Evans <dje@google.com>
16472
16473 * thread-db.c (try_thread_db_load_from_sdir): New function.
16474 (try_thread_db_load_from_dir): New function.
16475 (thread_db_load_search): Handle $sdir, ignore $pdir.
16476 Remove trying of system directories if search of
16477 libthread-db-search-path fails, that is now done via $sdir.
16478
d248b706
KY
164792011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16480
16481 * server.c (handle_query): Add EnableDisableTracepoints to the list
16482 of supported features.
43aaf8b6 16483 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16484 tracepoints.
43aaf8b6
PA
16485 (cmd_qtenable_disable): New.
16486 (cmd_qtstart): Install tracepoints even if disabled.
16487 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16488 receiving a QTEnable or QTDisable packet.
16489 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16490 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16491 tracepoints.
16492 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16493
84e578fb
DE
164942011-05-10 Doug Evans <dje@google.com>
16495
16496 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16497
71f55dd8
DE
164982011-05-04 Doug Evans <dje@google.com>
16499
16500 * linux-low.c (linux_join): Skip process lookup.
16501 * spu-low.c (spu_join): Ditto.
16502 * server.c (join_inferiors_callback): Delete.
16503 (process_serial_event): For 'D' packet (detach) call join_inferior
16504 directly.
16505
4d393d60
JM
165062011-05-04 Joseph Myers <joseph@codesourcery.com>
16507
16508 * README: Don't mention xscale*-*-linux*.
16509 * configure.srv (xscale*-*-linux*): Don't handle target.
16510
b00ad6ff
NF
165112011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16512
16513 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16514 casting pointers.
16515 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16516 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16517 (i386_emit_void_call_2): Likewise.
16518
af96c192
YQ
165192011-04-26 Yao Qi <yao@codesourcery.com>
16520
43aaf8b6
PA
16521 * linux-low.c: Move common macros to linux-ptrace.h.
16522 Include linux-ptrace.h.
af96c192
YQ
16523 * Makefile.in (linux_ptrace_h): New.
16524 (linux-low.o): Depends on linux-ptrace.h.
16525
03f2bd59
JK
165262011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16527
16528 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16529 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16530 (remote_prepare): New function with most of the TCP code from ...
16531 (remote_open): ... here. Detect PORT here unconditionally. Move also
16532 setting transport_is_reliable.
16533 * server.c (run_once): New variable.
16534 (gdbserver_usage): Document it.
16535 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16536 the first run if RUN_ONCE.
16537 * server.h (run_once, remote_prepare): New declarations.
16538
7a9dd1b2
TT
165392011-04-19 Tom Tromey <tromey@redhat.com>
16540
16541 * win32-low.c (handle_load_dll): Remove duplicate "the".
16542
81239425
PM
165432011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16544
16545 Remove support for old Cygwin 1.5 versions.
16546 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16547 function to avoid warning.
16548 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16549 warning.
16550
9e0627f1
PM
165512011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16552
16553 * gdbserver/server.h (Macro _): Define it if not available.
16554
588eebee
MS
165552011-03-14 Michael Snyder <msnyder@vmware.com>
16556
348af9f7 16557 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16558
43f70d4c
JB
165592011-03-10 Joel Brobecker <brobecker@adacore.com>
16560
16561 * Makefile.in (maintainer-clean realclean distclean): Remove
16562 "make ... subdir_do" command.
16563
348af9f7
MS
165642011-03-10 Michael Snyder <msnyder@vmware.com>
16565
16566 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16567
16568 * server.c (handle_v_run): Free alloced buffer on early return.
16569
e637a4f5
YQ
165702011-03-09 Yao Qi <yao@codesourcery.com>
16571
16572 Revert:
16573 2011-03-04 Yao Qi <yao@codesourcery.com>
16574
16575 * Makefile.in: Remove GNU make feature --directory.
16576
16577 2011-03-05 Yao Qi <yao@codesourcery.com>
16578
16579 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16580 (subdir_do): New make target. Copied from gdb/Makefile.
16581 (maintainer-clean, realclean, distclean, clean): Call corresponding
16582 make targets in common/Makefile.
16583
16584 2011-02-11 Yao Qi <yao@codesourcery.com>
16585
16586 * configure.ac: Call AC_PROG_RANLIB.
16587 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16588 * configure: Regenerate.
16589
e6edda56
JK
165902011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16591
16592 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16593
e5141119
JB
165942011-03-06 Yao Qi <yao@codesourcery.com>
16595
16596 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16597
64794aa4
JB
165982011-03-05 Yao Qi <yao@codesourcery.com>
16599
16600 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16601 (subdir_do): New make target. Copied from gdb/Makefile.
16602 (maintainer-clean, realclean, distclean, clean): Call corresponding
16603 make targets in common/Makefile.
16604
7a762829
YQ
166052011-03-04 Yao Qi <yao@codesourcery.com>
16606
16607 * Makefile.in: Remove GNU make feature --directory.
16608
348af9f7
MS
166092011-03-04 Michael Snyder <msnyder@vmware.com>
16610
16611 * server.c (queue_stop_reply): Call xmalloc not malloc.
16612
166132011-03-02 Michael Snyder <msnyder@vmware.com>
16614
16615 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16616
9f72fee2
MS
166172011-02-28 Michael Snyder <msnyder@vmware.com>
16618
588eebee
MS
16619 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16620 (cmd_qtframe): Ditto.
16621 (cmd_qtbuffer): Ditto.
16622 (cmd_bigqtbuffer): Ditto.
16623
9f72fee2
MS
16624 * utils.c (decimal2str): Initialize 'width' to nine, then
16625 don't mess with it.
16626
8040bd49
UW
166272011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16628
16629 * hostio.c (require_data): Free *data, not data.
16630
7e52cbd0
JK
166312011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16632
16633 * hostio.c (require_data): Use free, not xfree.
16634
9130f83e
MS
166352011-02-27 Michael Snyder <msnyder@vmware.com>
16636
4b812f4e
MS
16637 * server.c (handle_query): Discard unused value.
16638
9130f83e
MS
16639 * hostio.c (require_data): Free malloc memory before returning
16640 error.
16641
69d37113
MS
166422011-02-26 Michael Snyder <msnyder@vmware.com>
16643
16644 * linux-low.c (list_threads): Call closedir for dirent.
16645
35f5825a
MS
166462011-02-27 Michael Snyder <msnyder@vmware.com>
16647
2a589cef
MS
16648 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16649 a case statement falls through.
16650
0adea5f7
MS
16651 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16652
35f5825a
MS
16653 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16654 in comparison.
16655
238f1c74
MS
166562011-02-26 Michael Snyder <msnyder@vmware.com>
16657
16658 * utils.c (decimal2str): Eliminate dead code and dead param.
16659 (pulongest): Drop dead param from call to decimal2str.
16660 (plongest): Ditto.
16661
633ff500
JB
166622011-02-24 Joel Brobecker <brobecker@adacore.com>
16663
16664 Revert the following patch (not approved yet):
16665 2011-02-21 Hui Zhu <teawater@gmail.com>
16666 * tracepoint.c (tp_printf): New function.
16667 (eval_agent_expr): Handle gdb_agent_op_printf.
16668
f9c6ff72
HZ
166692011-02-21 Hui Zhu <teawater@gmail.com>
16670
16671 * tracepoint.c (tp_printf): New function.
16672 (eval_agent_expr): Handle gdb_agent_op_printf.
16673
94d5e490
TT
166742011-02-18 Tom Tromey <tromey@redhat.com>
16675
16676 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16677 (tracepoint.o): Likewise.
16678 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16679 (gdb_agent_op_names): Likewise.
16680
c7f96d2b
TT
166812011-02-18 Tom Tromey <tromey@redhat.com>
16682
16683 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16684 gdb_agent_op_rot>: New constants.
16685 (gdb_agent_op_names): Add pick and roll.
16686 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16687 cases.
16688
0feedb2c
JK
166892011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16690
16691 * aclocal.m4: Regenerated with aclocal-1.11.1.
16692
b3b9301e
PA
166932011-02-14 Pedro Alves <pedro@codesourcery.com>
16694
16695 * server.c (handle_qxfer_traceframe_info): New.
16696 (qxfer_packets): Register "traceframe-info".
16697 (handle_query): Report support for qXfer:traceframe-info:read+.
16698 * tracepoint.c (match_blocktype): New.
16699 (traceframe_find_block_type): Rename to ...
16700 (traceframe_walk_blocks): ... this. Add callback filter argument,
16701 and use it.
16702 (traceframe_find_block_type): New, reimplemented on top of
16703 traceframe_walk_blocks.
16704 (build_traceframe_info_xml): New.
16705 (traceframe_read_info): New.
16706 * server.h (traceframe_read_info): Declare.
16707
4f3e6fb7
YQ
167082011-02-11 Yao Qi <yao@codesourcery.com>
16709
16710 * configure.ac: Call AC_PROG_RANLIB.
16711 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16712 * configure: Regenerate.
16713
764880b7
PA
167142011-02-07 Pedro Alves <pedro@codesourcery.com>
16715
16716 * server.c (gdb_read_memory): Change return semantics to allow
16717 partial transfers.
16718 (handle_search_memory_1): Adjust.
16719 (process_serial_event) <'m' packet>: Handle partial transfers.
16720 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16721
1c79eb8a
PA
167222011-01-28 Pedro Alves <pedro@codesourcery.com>
16723
16724 * regcache.c (init_register_cache): Initialize
16725 regcache->register_status.
16726 (free_register_cache): Release regcache->register_status.
16727 (regcache_cpy): Copy register_status.
16728 (registers_to_string): Print 'x's for unavailable registers.
16729 (supply_register): Mark the register's status valid or
16730 unavailable, depending on whether a buffer was passed in or not.
16731 (supply_register_zeroed): New.
16732 (supply_regblock): Mark the registers' status valid or
16733 unavailable, depending on whether a buffer was passed in or not.
16734 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16735 (struct regcache): New `register_status' field.
16736 (supply_register_zeroed): Declare.
16737 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16738 supply_register_zeroed, rather than passing a NULL buffer to
16739 supply_register.
16740 * tracepoint.c (fetch_traceframe_registers): Update comment.
16741
85724a0e
PA
167422011-01-28 Pedro Alves <pedro@codesourcery.com>
16743
16744 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16745 buffer explicit.
16746
d08aafef
PA
167472011-01-25 Pedro Alves <pedro@codesourcery.com>
16748
16749 * server.h (decode_xfer_write): Change prototype.
16750 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16751 and don't extract the annex here.
16752 * server.c (decode_xfer_read): Remove `annex' parameter,
16753 and don't extract the annex here.
16754 (decode_xfer): New.
16755 (struct qxfer): New.
16756 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16757 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16758 (handle_qxfer_statictrace): New functions, abstracted out from
16759 handle_query, and made to use the struct qxfer interface.
16760 (handle_threads_qxfer_proper): Rename to ...
16761 (handle_qxfer_threads_proper): ... this.
16762 (handle_threads_qxfer): Rename to ...
16763 (handle_qxfer_threads): ... this. Adjust.
16764 (qxfer_packets): New array.
16765 (handle_qxfer): New function.
16766 (handle_query): Use handle_qxfer.
16767
493e2a69
MS
167682011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16769
16770 * gdbreplay.c: Shorten lines of >= 80 columns.
16771 * linux-low.c: Ditto.
16772 * linux-ppc-low.c: Ditto.
16773 * linux-s390-low.c: Ditto.
16774 * linux-sparc-low.c: Ditto.
16775 * linux-x86-low.c: Ditto.
16776 * linux-xtensa-low.c: Ditto.
16777 * mem-break.c: Ditto.
16778 * nto-low.c: Ditto.
16779 * regcache.h: Ditto.
16780 * remote-utils.c: Ditto.
16781 * server.c: Ditto.
16782 * server.h: Ditto.
16783 * thread-db.c: Ditto.
16784 * tracepoint.c: Ditto.
16785 * utils.c: Ditto.
16786 * win32-low.h: Ditto.
16787
44944448
JB
167882011-01-05 Joel Brobecker <brobecker@adacore.com>
16789
16790 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16791 update.
16792
71ce852c
JB
167932011-01-01 Joel Brobecker <brobecker@adacore.com>
16794
16795 * server.c (gdbserver_version): Update copyright year in version
16796 output.
16797 * gdbreplay.c (gdbreplay_version): Ditto.
16798
eb826dc6
MF
167992010-12-29 Jie Zhang <jie.zhang@analog.com>
16800
16801 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16802 * linux-bfin-low.c: New file.
16803 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16804 PT_DATA_ADDR for BFIN targets.
16805 * Makefile.in (SFILES): Add linux-bfin-low.c.
16806 (clean): Remove reg-bfin.c.
16807 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16808 * README: Mention supported Blackfin targets.
16809
39ab222a
MF
168102010-12-23 Mike Frysinger <vapier@gentoo.org>
16811
16812 * .gitignore: New file.
16813
a1f2ce7d
MF
168142010-11-16 Mike Frysinger <vapier@gentoo.org>
16815
16816 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16817
f474844c
JZ
168182010-10-22 Jie Zhang <jie@codesourcery.com>
16819
16820 * Makefile.in: Add FLAGS_TO_PASS variable.
16821 (install): Remove dependency of install-only and recursively
16822 invoke make for install-only.
16823
f1048712
DE
168242010-10-04 Doug Evans <dje@google.com>
16825
16826 * Makefile.in (uninstall): Use $(DESTDIR).
16827
b53a1623
PA
168282010-09-24 Pedro Alves <pedro@codesourcery.com>
16829
e6ee044d
PA
16830 PR gdb/11842
16831
b53a1623
PA
16832 * linux-x86-low.c (compat_siginfo_from_siginfo)
16833 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16834 si_code is < 0. Check for si_code == SI_TIMER before checking for
16835 si_code < 0.
16836
fa1bd1e4
JB
168372010-09-13 Joel Brobecker <brobecker@adacore.com>
16838
16839 * lynx-i386-low.c: New file.
16840 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16841
47fac8f8
JB
168422010-09-13 Joel Brobecker <brobecker@adacore.com>
16843
16844 * lynx-low.c (ptrace_request_to_str): Remove handling for
16845 request values that have been removed in LynxOS 5.x.
16846
1adfc54d
JB
168472010-09-13 Joel Brobecker <brobecker@adacore.com>
16848
16849 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16850 <ptrace.h>
16851
c2a66c29
NS
168522010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16853
16854 * configure.ac: Add --enable-inprocess-agent option.
16855 * configure: Rebuilt.
16856
32fcada3
YQ
168572010-09-06 Yao Qi <yao@codesourcery.com>
16858
16859 * linux-low.c (linux_kill): Remove unused variable.
16860 (linux_stabilize_threads): Likewise.
16861 * server.c (start_inferior): Likewise.
16862 (queue_stop_reply_callback): Likewise.
16863 * tracepoint.c (do_action_at_tracepoint): Likewise.
16864
0cccb683
YQ
168652010-09-06 Yao Qi <yao@codesourcery.com>
16866
16867 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16868 on return.
16869
423ec54c
JK
168702010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16871
16872 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16873
12ac6819
PA
168742010-09-06 Pedro Alves <pedro@codesourcery.com>
16875
16876 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16877 "$(IPA_DEPFILES)".
16878
8ed54b31
JB
168792010-09-01 Joel Brobecker <brobecker@adacore.com>
16880
16881 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16882 gdbserver/lynx-ppc-low.c: New files.
16883 * Makefile.in (lynx_low_h): New variable.
16884 (lynx-low.o, lynx-ppc-low.o): New rules.
16885 * configure.ac: On LynxOS, link with -lnetinet.
16886 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16887 * configure: regenerate.
16888
bb0116a4
JB
168892010-09-01 Joel Brobecker <brobecker@adacore.com>
16890
16891 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16892 * configure.ac: Add check for vasprintf and vsnprintf.
16893 * configure, config.in: Regenerate.
16894 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16895
a778ab81 168962010-09-01 Joel Brobecker <brobecker@adacore.com>
16897
16898 * gdbreplay.c: Move include of alloca.h up, next to include of
16899 malloc.h.
16900 * server.h: Add include of malloc.h.
16901 * mem-break.c: Remove include of malloc.h.
16902 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16903
8b034a19 169042010-09-01 Joel Brobecker <brobecker@adacore.com>
16905
16906 * Makefile.in (memmem.o): Build with -Wno-error.
16907
169082010-09-01 Joel Brobecker <brobecker@adacore.com>
16909
16910 * utils.c (xsnprintf): Make non-static.
16911 * server.h: Add xsnprintf declaration.
16912 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16913 replace calls to snprintf by calls to xsnprintf throughout.
16914
169152010-09-01 Joel Brobecker <brobecker@adacore.com>
16916
16917 * configure.ac: Add configure check for alloca.
16918 * configure, config.in: Regenerate.
16919 * server.h: Include alloca.h if it exists.
16920 * gdbreplay.c: Include alloca.h if it exists.
16921
1a981360
PA
169222010-08-28 Pedro Alves <pedro@codesourcery.com>
16923
16924 * linux-low.c (__SIGRTMIN): Define if not already defined.
16925 (linux_create_inferior): Check for __ANDROID__ rather than
16926 __SIGRTMIN.
16927 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16928 are already deferred.
16929 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16930 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16931 stopped and already has a pending signal to report.
16932 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16933 a pending signal to report or is moving out of a jump pad.
16934 (linux_init_signals): Check for __ANDROID__ rather than
16935 __SIGRTMIN.
16936
b4d51a55
PA
169372010-08-28 Pedro Alves <pedro@codesourcery.com>
16938
16939 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16940 debug_threads check. Avoid a linear search when not doing debug
16941 output.
16942
ec48365d
PA
169432010-08-27 Pedro Alves <pedro@codesourcery.com>
16944
16945 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16946 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16947 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16948 (process_event): Change local fd's type to gdb_fildes_t.
16949 (create_file_handler): Adjust prototype.
16950 (delete_file_handler): Adjust prototype.
16951 (handle_file_event): Adjust prototype. Use pfildes.
16952 (create_file_event): Adjsut prototype.
16953 * remote-utils.c (remote_desc, listen_desc): Change type to
16954 gdb_fildes_t.
16955 * server.h: New gdb_fildes_t typedef.
16956 [USE_WIN32API]: Include winsock2.h.
16957 (delete_file_handler, add_file_handler): Adjust prototypes.
16958 (pfildes): Declare.
16959 * utils.c (pfildes): New.
16960
854d88f0
PA
169612010-08-27 Pedro Alves <pedro@codesourcery.com>
16962
16963 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16964 * configure: Regenerate.
16965
0146f85b
PA
169662010-08-27 Pedro Alves <pedro@codesourcery.com>
16967
16968 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16969 (linux_done_accessing_memory): ... this.
16970 (linux_target_ops): Adjust.
16971 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16972 * nto-low.c (nto_target_ops): Adjust comment.
16973 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16974 * spu-low.c (spu_target_ops): Adjust comment.
16975 * target.h (target_ops): Rename unprepare_to_access_memory field
16976 to done_accessing_memory.
16977 (unprepare_to_access_memory): Rename to ...
16978 (done_accessing_memory): ... this.
16979
90d74c30
PA
169802010-08-26 Pedro Alves <pedro@codesourcery.com>
16981
16982 * linux-low.c (linux_prepare_to_access_memory): New.
16983 (linux_unprepare_to_access_memory): New.
16984 (linux_target_ops): Install them.
16985 * server.c (read_memory): Rename to ...
16986 (gdb_read_memory): ... this. Use
16987 prepare_to_access_memory/prepare_to_access_memory.
16988 (write_memory): Rename to ...
16989 (gdb_write_memory): ... this. Use
16990 prepare_to_access_memory/prepare_to_access_memory.
16991 (handle_search_memory_1): Adjust.
16992 (process_serial_event): Adjust.
16993 * target.h (struct target_ops): New fields
16994 prepare_to_access_memory and unprepare_to_access_memory.
16995 (prepare_to_access_memory, unprepare_to_access_memory): New.
16996 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16997 prepare_to_access_memory/prepare_to_access_memory.
16998 * nto-low.c (nto_target_ops): Adjust.
16999 * spu-low.c (spu_target_ops): Adjust.
17000 * win32-low.c (win32_target_ops): Adjust.
17001
fd467969
PA
170022010-08-26 Pedro Alves <pedro@codesourcery.com>
17003
17004 * Makefile.in (WARN_CFLAGS): Get it from configure.
17005 (WERROR_CFLAGS): New.
17006 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17007 * configure.ac: Introduce --enable-werror, which adds -Werror to
17008 the compiler command line. Enabled by default. Disable with
17009 --disable-werror. Add -Wdeclaration-after-statement
17010 Wpointer-arith and -Wformat-nonliteral to warning flags.
17011 * configure: Regenerate.
17012
331e2f5f
PA
170132010-08-26 Pedro Alves <pedro@codesourcery.com>
17014
17015 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17016
e581f2b4
PA
170172010-08-26 Pedro Alves <pedro@codesourcery.com>
17018
17019 * gdbreplay.c (remote_error): New.
17020 (gdbchar): New.
17021 (expect): Use gdbchar. Check for error reading from GDB.
17022 Clarify sync error output.
17023 (play): Check for errors writing to GDB.
17024 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17025 * remote-utils.c (getpkt): Check for errors writing to the remote
17026 descriptor.
17027
3c11dd79
PA
170282010-08-25 Pedro Alves <pedro@codesourcery.com>
17029
17030 * linux-low.c (linux_wait_1): Move non-debugging code out of
17031 `debug_threads' control.
17032
d20a8ad9
PA
170332010-08-25 Pedro Alves <pedro@codesourcery.com>
17034
17035 * linux-low.c (linux_wait_1): Don't set last_status here.
17036 * server.c (push_event, queue_stop_reply_callback): Assert we're
17037 not pushing a TARGET_WAITKIND_IGNORE event.
17038 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17039 (myresume, handle_target_event): Set the thread's last_resume_kind
17040 and last_status from the target returned status.
17041
964e4306
PA
170422010-08-25 Pedro Alves <pedro@codesourcery.com>
17043
17044 PR threads/10729
17045
17046 * linux-x86-low.c (update_debug_registers_callback): New.
17047 (i386_dr_low_set_addr): Use it.
17048 (i386_dr_low_get_addr): New.
17049 (i386_dr_low_set_control): Use update_debug_registers_callback.
17050 (i386_dr_low_get_control): New.
17051 (i386_dr_low_get_status): Adjust.
17052 * linux-low.c (linux_stop_lwp): New.
17053 * linux-low.h (linux_stop_lwp): Declare.
17054
17055 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17056 argument instead of a i386_debug_reg_state.
17057 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17058 a i386_debug_reg_state.
17059 (i386_insert_aligned_watchpoint): Adjust.
17060 (i386_remove_aligned_watchpoint): Adjust.
17061 (i386_low_stopped_data_address): Read the debug registers from the
17062 inferior instead of from the mirrors.
17063 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17064 (i386_dr_low_get_addr): Declare.
17065 (i386_dr_low_get_control): Declare.
17066 (i386_dr_low_get_status): Change prototype.
17067
17068 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17069 (i386_dr_low_get_addr): New.
17070 (i386_dr_low_get_control): New.
17071 (i386_dr_low_get_status): Adjust prototype. Return
17072 dr_status_mirror.
17073 (i386_initial_stuff): Clear dr_status_mirror and
17074 dr_control_mirror.
17075 (i386_get_thread_context): Adjust.
17076 (i386_set_thread_context): Adjust.
17077 (i386_thread_added): Adjust.
17078
5f21a75b
PA
170792010-08-24 Pedro Alves <pedro@codesourcery.com>
17080
17081 * linux-low.h (linux_thread_area): Delete declaration.
17082
3e4c1235
TS
170832010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17084
17085 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17086 after its termination.
17087
1971b033
PA
170882010-08-09 Pedro Alves <pedro@codesourcery.com>
17089
17090 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17091 (gdb_wants_all_stopped): Delete.
17092 (linux_wait_1): Don't call them.
17093 * server.c (handle_v_cont): Tag all threads as want-stopped.
17094 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17095 stopped as "client-wants-stopped".
17096
310444ac
PA
170972010-07-31 Pedro Alves <pedro@codesourcery.com>
17098
17099 * Makefile.in (signals_h): New.
17100 (server_h): Depend on it.
17101 (server.o): Don't depend on $(signals_def).
17102 (signals.o): Depend on $(signals_def).
17103
a19cae16
JK
171042010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17105
17106 * Makefile.in (signals_def): New.
17107 (server_h): Append include/gdb/signals.h and signals_def.
17108 (server.o): Append signals_def.
17109
30d50328
JK
171102010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17111
17112 * server.c (handle_target_event): Use target_signal_to_host for
17113 resume_info.sig initialization.
17114 * target.h (struct thread_resume) <sig>: New comment.
17115
5c3216e2
OS
171162010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17117
c6f46ca0
OS
17118 * server.c (handle_query): strcpy() the returned string from paddress()
17119 instead of sprintf().
5c3216e2
OS
17120 * utils.c (paddress): Return phex_nz().
17121
6bd31874
JB
171222010-07-07 Joel Brobecker <brobecker@adacore.com>
17123
17124 * server.c (handle_v_cont): Call mourn_inferior if process
17125 just exited.
17126 (myresume): Likewise.
17127
0fb4aa4b
PA
171282010-07-01 Pedro Alves <pedro@codesourcery.com>
17129
17130 Static tracepoints, and integration with UST.
17131
17132 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17133 * mem-break.c (uninsert_all_breakpoints)
17134 (reinsert_all_breakpoints): New.
17135 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17136 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17137 (gdb_agent_ust_loaded, helper_thread_id)
17138 (gdb_agent_helper_thread_id): New macros.
17139 (struct ipa_sym_addresses): Add addr_ust_loaded,
17140 addr_helper_thread_id, addr_cmd_buf.
17141 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17142 (in_process_agent_loaded_ust): New.
17143 (write_e_ust_not_loaded): New.
17144 (maybe_write_ipa_ust_not_loaded): New.
17145 (struct collect_static_trace_data_action): New.
17146 (enum tracepoint_type) <static_tracepoint>: New.
17147 (struct tracepoint) <handle>: Mention static tracepoints.
17148 (struct static_tracepoint_ctx): New.
17149 (CMD_BUF_SIZE): New.
17150 (add_tracepoint_action): Handle static tracepoint actions.
17151 (unprobe_marker_at): New.
17152 (clear_installed_tracepoints): Handle static tracepoints.
17153 (cmd_qtdp): Handle static tracepoints.
17154 (probe_marker_at): New.
17155 (cmd_qtstart): Handle static tracepoints.
17156 (response_tracepoint): Handle static tracepoints.
17157 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17158 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17159 (get_context_regcache): Handle static tracepoints.
17160 (do_action_at_tracepoint): Handle static tracepoint actions.
17161 (traceframe_find_block_type): Handle static trace data blocks.
17162 (traceframe_read_sdata): New.
17163 (download_tracepoints): Download static tracepoint actions.
17164 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17165 (GDB_PROBE_NAME): New.
17166 (ust_ops): New.
17167 (GET_UST_SYM): New.
17168 (USTF): New.
17169 (dlsym_ust): New.
17170 (ust_marker_to_static_tracepoint): New.
17171 (gdb_probe): New.
17172 (collect_ust_data_at_tracepoint): New.
17173 (gdb_ust_probe): New.
17174 (UNIX_PATH_MAX, SOCK_DIR): New.
17175 (gdb_ust_connect_sync_socket): New.
17176 (resume_thread, stop_thread): New.
17177 (run_inferior_command): New.
17178 (init_named_socket): New.
17179 (gdb_ust_socket_init): New.
17180 (cstr_to_hexstr): New.
17181 (next_st): New.
17182 (first_marker, next_marker): New.
17183 (response_ust_marker): New.
17184 (cmd_qtfstm, cmd_qtsstm): New.
17185 (unprobe_marker_at, probe_marker_at): New.
17186 (cmd_qtstmat, gdb_ust_thread): New.
17187 (gdb_ust_init): New.
17188 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17189 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17190 (ST_REGENTRY): New.
17191 (x86_64_st_collect_regmap): New.
17192 (X86_64_NUM_ST_COLLECT_GREGS): New.
17193 (AMD64_RIP_REGNUM): New.
17194 (supply_static_tracepoint_registers): New.
17195 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17196 (ST_REGENTRY): New.
17197 (i386_st_collect_regmap): New.
17198 (i386_NUM_ST_COLLECT_GREGS): New.
17199 (supply_static_tracepoint_registers): New.
17200 * server.c (handle_query): Handle qXfer:statictrace:read.
17201 <qSupported>: Report support for StaticTracepoints, and
17202 qXfer:statictrace:read features.
17203 * server.h (traceframe_read_sdata)
17204 (supply_static_tracepoint_registers): Declare.
17205 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17206 (unpack_varlen_hex): Include in IPA build.
17207 * Makefile.in (ustlibs, ustinc): New.
17208 (IPA_OBJS): Add remote-utils-ipa.o.
17209 ($(IPA_LIB)): Link -ldl and -lpthread.
17210 (UST_CFLAGS): New.
17211 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17212 * config.in, configure: Regenerate.
17213
9e4344e5
PA
172142010-06-20 Ian Lance Taylor <iant@google.com>
17215 Pedro Alves <pedro@codesourcery.com>
17216
17217 * linux-x86-low.c (always_true): Delete.
17218 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17219 trying to fool the compiler with always_true.
17220
c6beb2cb
PA
172212010-06-20 Pedro Alves <pedro@codesourcery.com>
17222
17223 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17224 conditions in gdbserver.
17225
d2ed6730
UW
172262010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17227
17228 * spu-low.c (spu_read_memory): Wrap around local store limit.
17229 (spu_write_memory): Likewise.
17230
4e29fb54
PA
172312010-06-15 Pedro Alves <pedro@codesourcery.com>
17232
17233 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17234 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17235 LONGEST uses.
17236 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17237 uses.
17238 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17239 uses with LONGEST uses.
17240
6a271cae
PA
172412010-06-14 Stan Shebs <stan@codesourcery.com>
17242 Pedro Alves <pedro@codesourcery.com>
17243
17244 Bytecode compiler.
17245
17246 * linux-x86-low.c: Include limits.h.
17247 (add_insns): New.
17248 (always_true): New.
17249 (EMIT_ASM): New.
17250 (EMIT_ASM32): New.
17251 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17252 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17253 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17254 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17255 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17256 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17257 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17258 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17259 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17260 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17261 (amd64_emit_void_call_2): New.
17262 (amd64_emit_ops): New.
17263 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17264 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17265 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17266 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17267 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17268 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17269 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17270 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17271 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17272 (i386_emit_stack_adjust, i386_emit_int_call_1)
17273 (i386_emit_void_call_2): New.
17274 (i386_emit_ops): New.
17275 (x86_emit_ops): New.
17276 (the_low_target): Install x86_emit_ops.
17277 * server.h (struct emit_ops): New.
17278 (get_raw_reg_func_addr): Declare.
17279 (current_insn_ptr, emit_error): Declare.
17280 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17281 (set_trace_state_variable_value): New defines.
17282 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17283 addr_get_trace_state_variable_value and
17284 addr_set_trace_state_variable_value.
17285 (symbol_list): New fields for get_raw_reg,
17286 get_trace_state_variable_value and set_trace_state_variable_value.
17287 (condfn): New typedef.
17288 (struct tracepoint): New field `compiled_cond'.
17289 (do_action_at_tracepoint): Clear compiled_cond.
17290 (get_trace_state_variable_value, set_trace_state_variable_value):
17291 Export in the IPA.
17292 (condition_true_at_tracepoint): If there's a compiled condition,
17293 run that.
17294 (current_insn_ptr, emit_error): New globals.
17295 (struct bytecode_address): New.
17296 (get_raw_reg_func_addr): New.
17297 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17298 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17299 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17300 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17301 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17302 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17303 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17304 (compile_tracepoint_condition, compile_bytecodes): New.
17305 * target.h (emit_ops): Forward declare.
17306 (struct target_ops): New field emit_ops.
17307 (target_emit_ops): New.
17308 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17309 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17310 * linux-low.c (linux_emit_ops): New.
17311 (linux_target_ops): Install it.
17312 * linux-low.h (struct linux_target_ops): New field emit_ops.
17313
92b72907
UW
173142010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17315
17316 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17317 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17318
fa593d66
PA
173192010-06-01 Pedro Alves <pedro@codesourcery.com>
17320 Stan Shebs <stan@codesourcery.com>
17321
17322 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17323 (all): Depend on $(extra_libraries).
17324 (install-only): Install the IPA.
17325 (IPA_OBJS, IPA_LIB): New.
17326 (clean): Remove the IPA lib.
17327 (IPAGENT_CFLAGS): New.
17328 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17329 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17330 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17331 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17332 * configure.ac: Check for atomic builtins support in the compiler.
17333 (IPA_DEPFILES, extra_libraries): Define.
17334 * configure.srv (ipa_obj): Add description.
17335 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17336 (i[34567]86-*-linux*): Set ipa_obj.
17337 (x86_64-*-linux*): Set ipa_obj.
17338 * linux-low.c (stabilizing_threads): New.
17339 (supports_fast_tracepoints): New.
17340 (linux_detach): Stabilize threads before detaching.
17341 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17342 the lwp is either not stabilizing, or is moving out of a jump pad.
17343 (linux_fast_tracepoint_collecting): New.
17344 (maybe_move_out_of_jump_pad): New.
17345 (enqueue_one_deferred_signal): New.
17346 (dequeue_one_deferred_signal): New.
17347 (linux_wait_for_event_1): If moving out of a jump pad, defer
17348 pending signals to later.
17349 (linux_stabilize_threads): New.
17350 (linux_wait_1): Check if threads need moving out of jump pads, and
17351 do it if so.
17352 (stuck_in_jump_pad_callback): New.
17353 (move_out_of_jump_pad_callback): New.
17354 (lwp_running): New.
17355 (linux_resume_one_lwp): Handle moving out of jump pads.
17356 (linux_set_resume_request): Dequeue deferred signals.
17357 (need_step_over_p): Also step over fast tracepoint jumps.
17358 (start_step_over): Also uninsert fast tracepoint jumps.
17359 (finish_step_over): Also reinsert fast tracepoint jumps.
17360 (linux_install_fast_tracepoint_jump): New.
17361 (linux_target_ops): Install linux_stabilize_threads and
17362 linux_install_fast_tracepoint_jump_pad.
17363 * linux-low.h (linux_target_ops) <get_thread_area,
17364 install_fast_tracepoint_jump_pad>: New fields.
17365 (struct lwp_info) <collecting_fast_tracepoint,
17366 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17367 (linux_get_thread_area): Declare.
17368 * linux-x86-low.c (jump_insn): New.
17369 (x86_get_thread_area): New.
17370 (append_insns): New.
17371 (push_opcode): New.
17372 (amd64_install_fast_tracepoint_jump_pad): New.
17373 (i386_install_fast_tracepoint_jump_pad): New.
17374 (x86_install_fast_tracepoint_jump_pad): New.
17375 (the_low_target): Install x86_get_thread_area and
17376 x86_install_fast_tracepoint_jump_pad.
17377 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17378 (struct fast_tracepoint_jump): New.
17379 (fast_tracepoint_jump_insn): New.
17380 (fast_tracepoint_jump_shadow): New.
17381 (find_fast_tracepoint_jump_at): New.
17382 (fast_tracepoint_jump_here): New.
17383 (delete_fast_tracepoint_jump): New.
17384 (set_fast_tracepoint_jump): New.
17385 (uninsert_fast_tracepoint_jumps_at): New.
17386 (reinsert_fast_tracepoint_jumps_at): New.
17387 (set_breakpoint_at): Use write_inferior_memory.
17388 (uninsert_raw_breakpoint): Use write_inferior_memory.
17389 (check_mem_read): Mask out fast tracepoint jumps.
17390 (check_mem_write): Mask out fast tracepoint jumps.
17391 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17392 (set_fast_tracepoint_jump): Declare.
17393 (delete_fast_tracepoint_jump)
17394 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17395 (reinsert_fast_tracepoint_jumps_at): Declare.
17396 * regcache.c: Don't compile many functions when building the
17397 in-process agent library.
17398 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17399 the register buffer in the heap.
17400 (free_register_cache): If the register buffer isn't owned by the
17401 regcache, don't free it.
17402 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17403 pre-existing register caches.
17404 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17405 type.
17406 (convert_ascii_to_int): : Constify `from' parameter type.
17407 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17408 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17409 the needed buffer in-place.
17410 (relocate_instruction): New.
17411 * server.c (handle_query) <qSymbols>: If the target supports
17412 tracepoints, give it a chance of looking up symbols. Report
17413 support for fast tracepoints.
17414 (handle_status): Stabilize threads.
17415 (process_serial_event): Adjust.
17416 * server.h (struct fast_tracepoint_jump): Forward declare.
17417 (struct process_info) <fast_tracepoint_jumps>: New field.
17418 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17419 (decode_X_packet, decode_M_packet): Adjust.
17420 (relocate_instruction): Declare.
17421 (in_process_agent_loaded): Declare.
17422 (tracepoint_look_up_symbols): Declare.
17423 (struct fast_tpoint_collect_status): Declare.
17424 (fast_tracepoint_collecting): Declare.
17425 (force_unlock_trace_buffer): Declare.
17426 (handle_tracepoint_bkpts): Declare.
17427 (initialize_low_tracepoint)
17428 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17429 * target.h (struct target_ops) <stabilize_threads,
17430 install_fast_tracepoint_jump_pad>: New fields.
17431 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17432 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17433 [HAVE_STDINT_H]: Include stdint.h.
17434 (trace_debug_1): Rename to ...
17435 (trace_vdebug): ... this.
17436 (trace_debug): Rename to ...
17437 (trace_debug_1): ... this. Add `level' parameter.
17438 (trace_debug): New.
17439 (ATTR_USED, ATTR_NOINLINE): New.
17440 (IP_AGENT_EXPORT): New.
17441 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17442 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17443 (about_to_request_buffer_space, trace_buffer_is_full)
17444 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17445 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17446 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17447 (traceframe_write_count, traceframes_created)
17448 (trace_state_variables)
17449 New renaming defines.
17450 (struct ipa_sym_addresses): New.
17451 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17452 (symbol_list): New.
17453 (ipa_sym_addrs): New.
17454 (all_tracepoint_symbols_looked_up): New.
17455 (in_process_agent_loaded): New.
17456 (write_e_ipa_not_loaded): New.
17457 (maybe_write_ipa_not_loaded): New.
17458 (tracepoint_look_up_symbols): New.
17459 (debug_threads) [IN_PROCESS_AGENT]: New.
17460 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17461 (UNKNOWN_SIDE_EFFECTS): New.
17462 (stop_tracing): New.
17463 (flush_trace_buffer): New.
17464 (stop_tracing_bkpt): New.
17465 (flush_trace_buffer_bkpt): New.
17466 (read_inferior_integer): New.
17467 (read_inferior_uinteger): New.
17468 (read_inferior_data_pointer): New.
17469 (write_inferior_data_pointer): New.
17470 (write_inferior_integer): New.
17471 (write_inferior_uinteger): New.
17472 (struct collect_static_trace_data_action): Delete.
17473 (enum tracepoint_type): New.
17474 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17475 <actions_str, step_actions, step_actions_str>: Only include in
17476 GDBserver.
fa593d66
PA
17477 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17478 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17479 (tracepoints): Use IP_AGENT_EXPORT.
17480 (last_tracepoint): Don't include in the IPA.
17481 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17482 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17483 (alloced_trace_state_variables): New.
17484 (trace_state_variables): Use IP_AGENT_EXPORT.
17485 (traceframe_t): Delete unused variable.
17486 (circular_trace_buffer): Don't include in the IPA.
17487 (trace_buffer_start): Delete.
17488 (struct trace_buffer_control): New.
17489 (trace_buffer_free): Delete.
17490 (struct ipa_trace_buffer_control): New.
17491 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17492 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17493 New.
17494 (trace_buffer_ctrl): New.
17495 (TRACE_BUFFER_CTRL_CURR): New.
17496 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17497 Reimplement as macros.
17498 (trace_buffer_wrap): Delete.
17499 (traceframe_write_count, traceframe_read_count)
17500 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17501 (struct tracepoint_hit_ctx) <type>: New field.
17502 (struct fast_tracepoint_ctx): New.
17503 (memory_barrier): New.
17504 (cmpxchg): New.
17505 (record_tracepoint_error): Update atomically in the IPA.
17506 (clear_inferior_trace_buffer): New.
17507 (about_to_request_buffer_space): New.
17508 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17509 updating the same buffer.
17510 (add_tracepoint): Default the tracepoint's type to trap
17511 tracepoint, and orig_size to -1.
17512 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17513 internal variables.
17514 (create_trace_state_variable): New parameter `gdb'. Handle it.
17515 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17516 (cmd_qtdp): Handle fast tracepoints.
17517 (cmd_qtdv): Adjust.
17518 (max_jump_pad_size): New.
17519 (gdb_jump_pad_head): New.
17520 (get_jump_space_head): New.
17521 (claim_jump_space): New.
17522 (sort_tracepoints): New.
17523 (MAX_JUMP_SIZE): New.
17524 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17525 IPA.
17526 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17527 support. Upload fast traceframes, and delete internal IPA
17528 breakpoints.
17529 (stop_tracing_handler): New.
17530 (flush_trace_buffer_handler): New.
17531 (cmd_qtstop): Upload fast tracepoints.
17532 (response_tracepoint): Handle fast tracepoints.
17533 (tracepoint_finished_step): Upload fast traceframes. Set the
17534 tracepoint hit context's tracepoint type.
17535 (handle_tracepoint_bkpts): New.
17536 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17537 type. Add comment about fast tracepoints.
17538 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17539 non-existing action_str field.
17540 (get_context_regcache): Handle fast tracepoints.
17541 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17542 to the regcache.
17543 (fast_tracepoint_from_jump_pad_address): New.
17544 (fast_tracepoint_from_ipa_tpoint_address): New.
17545 (collecting_t): New.
17546 (force_unlock_trace_buffer): New.
17547 (fast_tracepoint_collecting): New.
17548 (collecting): New.
17549 (gdb_collect): New.
17550 (write_inferior_data_ptr): New.
17551 (target_tp_heap): New.
17552 (target_malloc): New.
17553 (download_agent_expr): New.
17554 (UALIGN): New.
17555 (download_tracepoints): New.
17556 (download_trace_state_variables): New.
17557 (upload_fast_traceframes): New.
17558 (IPA_FIRST_TRACEFRAME): New.
17559 (IPA_NEXT_TRACEFRAME_1): New.
17560 (IPA_NEXT_TRACEFRAME): New.
17561 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17562 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17563 (gdb_jump_pad_buffer_end): New.
17564 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17565 (initialize_tracepoint): Adjust.
17566 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17567 buffer. Initialize the low module.
17568 * utils.c (PREFIX, TOOLNAME): New.
17569 (malloc_failure): Use PREFIX.
17570 (error): In the IPA, an error causes an exit.
17571 (fatal, warning): Use PREFIX.
17572 (internal_error): Use TOOLNAME.
17573 (NUMCELLS): Increase to 10.
17574 * configure, config.in: Regenerate.
17575
d149dd1d
PA
175762010-06-01 Pedro Alves <pedro@codesourcery.com>
17577
17578 * server.c (handle_query) <qSupported>: Do two passes over the
17579 qSupported string to avoid nesting strtok.
17580
f6528abd
JK
175812010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17582
17583 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17584 (CDEPS): New.
17585 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17586 -Wl,--dynamic-list.
17587 * configure: Regenerate.
17588 * proc-service.list: New.
17589
ca2a87a0
JK
175902010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17591
17592 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17593 New comment.
17594
363a6e9f
OS
175952010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17596
17597 * gdbreplay.c (remote_open): Check error return from socket() call by
17598 its equality to -1 not by it being negative.
17599 * remote-utils.c (remote_open): Likewise.
17600
d23b6cb1
PA
176012010-05-23 Pedro Alves <pedro@codesourcery.com>
17602
17603 * config.h: Regenerate.
17604
28d3cf85
MK
176052010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17606
17607 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17608 doesn't provide PTRACE_GET_THREAD_AREA.
17609
fea36a59
MK
176102010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17611
17612 * linux-m68k-low.c: Include <asm/ptrace.h>
17613 (ps_get_thread_area): Implement.
17614
24b066ba
DE
176152010-05-03 Doug Evans <dje@google.com>
17616
17617 * event-loop.c (struct callback_event): New struct.
17618 (callback_list): New global.
17619 (append_callback_event, delete_callback_event): New functions.
17620 (process_callback): New function.
17621 (start_event_loop): Call it.
17622 * remote-utils.c (NOT_SCHEDULED): Define.
17623 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17624 moved out of readchar.
17625 (readchar): Rewrite. Call reschedule before returning.
17626 (reset_readchar): New function.
17627 (remote_close): Call it.
17628 (process_remaining, reschedule): New functions.
17629 * server.h (callback_handler_func): New typedef.
17630 (append_callback_event, delete_callback_event): Declare.
17631
9836d6ea
PA
176322010-05-03 Pedro Alves <pedro@codesourcery.com>
17633
17634 * proc-service.c (ps_pglobal_lookup): Use
17635 thread_db_look_up_one_symbol.
17636 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17637 parameter. Use it instead of all_symbols_looked_up.
17638 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17639 field.
17640 (all_symbols_looked_up): Don't declare.
17641 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17642 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17643 field.
17644 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17645 Set all_symbols_looked_up here.
17646 (thread_db_look_up_one_symbol): New.
17647 (thread_db_get_tls_address): Adjust.
17648 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17649 thread_db object on the heap, and tentatively set it in the
17650 process structure.
17651 (thread_db_init): Don't set all_symbols_looked_up here.
17652 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17653
7984d532
PA
176542010-05-03 Pedro Alves <pedro@codesourcery.com>
17655
17656 * linux-low.c (linux_kill, linux_detach): Adjust.
17657 (status_pending_p_callback): Remove redundant statement. Check
17658 for !TARGET_WAITIKIND_IGNORE, instead of
17659 TARGET_WAITKIND_STOPPED.
17660 (handle_tracepoints): Make sure LWP is locked. Adjust.
17661 (linux_wait_for_event_1): Adjust.
17662 (linux_cancel_breakpoints): New.
17663 (unsuspend_one_lwp): New.
17664 (unsuspend_all_lwps): New.
17665 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17666 (send_sigstop_callback): Change return type to int, add new
17667 `except' parameter and handle it.
17668 (suspend_and_send_sigstop_callback): New.
17669 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17670 pass them down. If SUSPEND, also increment the lwp's suspend
17671 count.
17672 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17673 (need_step_over_p): Don't consider suspended LWPs.
17674 (start_step_over): Adjust.
17675 (proceed_one_lwp): Change return type to int, add new `except'
17676 parameter and handle it.
17677 (unsuspend_and_proceed_one_lwp): New.
17678 (proceed_all_lwps): Use find_inferior instead of
17679 for_each_inferior.
17680 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17681 also decrement the suspend count of LWPs. Pass `except' down,
17682 instead of hacking its suspend count.
17683 (linux_pause_all): Add `freeze' parameter. Adjust.
17684 (linux_unpause_all): New.
17685 (linux_target_ops): Install linux_unpause_all.
17686 * server.c (handle_status): Adjust.
17687 * target.h (struct target_ops): New fields `unpause_all' and
17688 `cancel_breakpoints'. Add new parameter to `pause_all'.
17689 (pause_all): Add new `freeze' parameter.
17690 (unpause_all): New.
17691 (cancel_breakpoints): New.
17692 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17693 cancel breakpoints.
17694 (cmd_qtstart): Pause threads.
17695 (stop_tracing): Pause threads, and cancel breakpoints.
17696 * win32-low.c (win32_target_ops): Adjust.
17697
e471f25b
PA
176982010-05-03 Pedro Alves <pedro@codesourcery.com>
17699
17700 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17701 the inferior right away from here...
17702 (linux_wait_1): ... to here, and adjust to check the thread's
17703 last_resume_kind instead of the lwp's step or stop_expected flags.
17704
1915ef4f
PA
177052010-05-02 Pedro Alves <pedro@codesourcery.com>
17706
17707 * README: Use consistent `GDB' and `GDBserver' spellings.
17708
f9e39928
PA
177092010-05-02 Pedro Alves <pedro@codesourcery.com>
17710
17711 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17712 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17713 (linux_detach_one_lwp): Assume the lwp is stopped.
17714 (any_thread_of): Delete.
17715 (linux_detach): Stop all lwps here. Don't blindly delete all
17716 breakpoints.
17717 (delete_lwp_callback): New.
17718 (linux_mourn): Delete all lwps of the process that is gone.
17719 (linux_wait_1): Don't delete the last lwp of the process here.
17720 * mem-break.h (mark_breakpoints_out): Declare.
17721 * mem-break.c (mark_breakpoints_out): New.
17722 (free_all_breakpoints): Use it.
17723 * server.c (handle_target_event): If the process is gone, mark
17724 breakpoints out.
17725 * thread-db.c (struct thread_db) <create_bp>: New field.
17726 (thread_db_enable_reporting): Fix prototype. Store a thread event
17727 breakpoint reference in the thread_db struct.
17728 (thread_db_load_search): Clear the thread_db object.
17729 (try_thread_db_load_1): Ditto.
17730 (switch_to_process): New.
17731 (disable_thread_event_reporting): Use it.
17732 (remove_thread_event_breakpoints): New.
17733 (thread_db_detach, thread_db_mourn): Use it.
17734
1e7fc18c
PA
177352010-05-01 Pedro Alves <pedro@codesourcery.com>
17736
17737 * linux-low.c (linux_enable_event_reporting): New.
17738 (linux_wait_for_event_1, handle_extended_wait): Use it.
17739
02fc4de7
PA
177402010-04-30 Pedro Alves <pedro@codesourcery.com>
17741
17742 * linux-low.c (linux_kill_one_lwp, linux_kill)
17743 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17744 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17745 SIGSTOP even if the LWP is stopped.
17746 (send_sigstop_callback): New.
17747 (stop_all_lwps): Use send_sigstop_callback instead.
17748 (linux_resume_one_thread): Adjust.
17749 (proceed_one_lwp): Still proceed an LWP that the client has
17750 requested to stop, if we haven't reported it as stopped yet. Make
17751 sure that LWPs the client want stopped, have a pending SIGSTOP.
17752
bc3b5632
DE
177532010-04-26 Doug Evans <dje@google.com>
17754
ae1ada35
DE
17755 * server.c (handle_general_set): Make static.
17756
bc3b5632
DE
17757 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17758 Print received char after testing for error/eof instead of before.
17759 (input_interrupt): Tweak comment.
17760
65730243
DE
177612010-04-23 Doug Evans <dje@google.com>
17762
17763 * server.c (start_inferior): Print inferior argv if --debug.
17764
a8ae7dc0
AR
177652010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17766
17767 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17768 * nto-x86-low.c: Include server.h
17769
1c07cc19
PM
177702010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17771
17772 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17773 be consistent with other sources of this directory.
17774 (init_registers_amd64): Correct name of source file of this function
17775 in the comment.
17776
e0a61e09
PM
177772010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17778
17779 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17780 64-bit executables.
17781
54709339
PM
177822010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17783
17784 * win32-i386-low.c: Add 64-bit support.
17785 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17786 (init_registers_amd64): Declare.
17787 (mappings): Add 64-bit version of array.
17788 (init_windows_x86): New function.
17789 (the_low_target): Change init_arch field to init_windows_x86.
17790
e8f0053d
PM
177912010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17792
17793 * win32-low.c: Adapt to support also 64-bit architecture.
17794 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17795 (get_image_name): Use SIZE_T type for local variable `done'.
17796 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17797 (toolhelp_get_dll_name): Idem.
17798 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17799 Use uintptr_t typecast to avoid warning.
17800 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17801 (handle_exception): Use phex_nz to avoid warning.
17802 (win32_wait): Remove unused local variable `process'.
17803
c481e77e
PM
178042010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17805
17806 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17807 `amd64-avx.o'.
17808
12ea4b69
PM
178092010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17810
17811 * configure.ac: Use `ws2_32' library for srv_mingw.
17812 * configure: Regenerate.
17813 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17814 * remote-utils.c: Likewise.
17815
f6d1620c
L
178162010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17817
17818 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17819 if __x86_64__ is defined.
17820
8e642873
PM
178212010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17822
17823 * configure: Regenerate.
17824
711e434b
PM
178252010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17826
17827 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17828 * target.h (target_ops): New get_tib_address field.
17829 * win32-low.h (win32_thread_info): Add thread_local_base field.
17830 * win32-low.c (child_add_thread): Add tlb argument.
17831 Set thread_local_base field to TLB.
17832 (get_child_debug_event): Adapt to child_add_thread change.
17833 (win32_get_tib_address): New function.
17834 (win32_target_ops): Set get_tib_address field to
17835 win32_get_tib_address.
17836 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17837
505106cd
PA
178382010-04-12 Pedro Alves <pedro@codesourcery.com>
17839
505106cd
PA
17840 * linux-low.c (linux_mourn): Also remove the process.
17841 * server.c (handle_target_event): Don't remove the process here.
17842 * nto-low.c (nto_mourn): New.
17843 (nto_target_ops): Install it.
17844 * spu-low.c (spu_mourn): New.
17845 (spu_target_ops): Install it.
17846 * win32-low.c (win32_mourn): New.
17847 (win32_target_ops): Install it.
17848
e8470a06
PA
178492010-04-12 Pedro Alves <pedro@codesourcery.com>
17850
17851 * server.h (buffer_xml_printf): Remove redundant `;'.
17852
45ba0d02
PA
178532010-04-12 Pedro Alves <pedro@codesourcery.com>
17854
17855 * regcache.c (set_register_cache): Invalidate regcaches before
17856 changing the register cache layout.
17857 (regcache_invalidate_one): Allow a NULL regcache.
17858 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17859 regcaches before changing the register cache layout or the target
17860 regsets.
17861
59e04013
L
178622010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17863
17864 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17865 variable warning on Linux/x86-64.
17866
8336d594
PA
178672010-04-11 Pedro Alves <pedro@codesourcery.com>
17868
17869 GDBserver disconnected tracing support.
17870
17871 * linux-low.c (linux_remove_process): Delete.
17872 (add_lwp): Don't set last_resume_kind here.
17873 (linux_kill): Use `mourn'.
17874 (linux_detach): Use `thread_db_detach', and `mourn'.
17875 (linux_mourn): New.
17876 (linux_attach_lwp_1): Adjust comment.
17877 (linux_attach): last_resume_kind moved the thread_info; adjust.
17878 (status_pending_p_callback): Adjust.
17879 (linux_wait_for_event_1): Adjust.
17880 (count_events_callback, select_singlestep_lwp_callback)
17881 (select_event_lwp_callback, cancel_breakpoints_callback)
17882 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17883 (proceed_one_lwp): Adjust.
17884 (linux_async): Add debug output.
17885 (linux_thread_stopped): New.
17886 (linux_pause_all): New.
17887 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17888 linux_pause_all.
17889 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17890 (thread_db_free): Delete declaration.
17891 (thread_db_detach, thread_db_mourn): Declare.
17892 * thread-db.c (thread_db_init): Use thread_db_mourn.
17893 (thread_db_free): Delete, split in two.
17894 (disable_thread_event_reporting): New.
17895 (thread_db_detach): New.
17896 (thread_db_mourn): New.
17897
17898 * server.h (struct thread_info) <last_resume_kind>: New field.
17899 <attached>: Add comment.
17900 <gdb_detached>: New field.
17901 (handler_func): Change return type to int.
17902 (handle_serial_event, handle_target_event): Ditto.
17903 (gdb_connected): Declare.
17904 (tracing): Delete.
17905 (disconnected_tracing): Declare.
17906 (stop_tracing): Declare.
17907
17908 * server.c (handle_query) <qSupported>: Report support for
17909 disconnected tracing.
17910 (queue_stop_reply_callback): Account for running threads.
17911 (gdb_wants_thread_stopped): New.
17912 (gdb_wants_all_threads_stopped): New.
17913 (gdb_reattached_process): New.
17914 (handle_status): Clear the `gdb_detached' flag of all processes.
17915 In all-stop, stop all threads.
17916 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17917 (process_serial_event): If the remote connection breaks, or if an
17918 exit was forced with "monitor exit", force an event loop exit.
17919 Handle disconnected tracing on detach.
17920 (handle_serial_event): Adjust.
17921 (handle_target_event): If GDB isn't connected, forward events back
17922 to the inferior, unless the last process exited, in which case,
17923 exit gdbserver. Adjust interface.
17924
17925 * remote-utils.c (remote_open): Don't block in accept. Instead
17926 register an event loop source on the listen socket file
17927 descriptor. Refactor bits into ...
17928 (listen_desc): ... this new global.
17929 (gdb_connected): ... this new function.
17930 (enable_async_notification): ... this new function.
17931 (handle_accept_event): ... this new function.
17932 (remote_close): Clear remote_desc.
17933
17934 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17935
17936 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17937 New fields.
17938 (mourn_inferior): Define.
17939 (target_process_qsupported): Avoid the dangling else problem.
17940 (thread_stopped): Define.
17941 (pause_all): Define.
17942 (target_waitstatus_to_string): Declare.
17943 * target.c (target_waitstatus_to_string): New.
17944
17945 * tracepoint.c (tracing): Make extern.
17946 (disconnected_tracing): New.
17947 (stop_tracing): Make extern. Handle tracing stops due to GDB
17948 disconnecting.
17949 (cmd_qtdisconnected): New.
17950 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17951 (handle_tracepoint_general_set): Handle QTDisconnected.
17952
17953 * event-loop.c (event_handler_func): Change return type to int.
17954 (process_event): Bail out if the event handler wants the event
17955 loop to stop.
17956 (handle_file_event): Ditto.
17957 (start_event_loop): Bail out if the event handler wants the event
17958 loop to stop.
17959
17960 * nto-low.c (nto_target_ops): Adjust.
17961 * spu-low.c (spu_wait): Don't remove the process here.
17962 (spu_target_ops): Adjust.
17963 * win32-low.c (win32_wait): Don't remove the process here.
17964 (win32_target_ops): Adjust.
17965
5d267c4c
PA
179662010-04-11 Pedro Alves <pedro@codesourcery.com>
17967
17968 * regcache.c (realloc_register_cache): Invalidate inferior's
17969 regcache before recreating it.
17970
623ccd72
PA
179712010-04-09 Pedro Alves <pedro@codesourcery.com>
17972
17973 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17974
219f2f23
PA
179752010-04-09 Stan Shebs <stan@codesourcery.com>
17976 Pedro Alves <pedro@codesourcery.com>
17977
17978 * server.h (LONGEST): New.
17979 (struct thread_info) <while_stepping>: New field.
17980 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17981 Declare.
17982 (initialize_tracepoint, handle_tracepoint_general_set)
17983 (handle_tracepoint_query, tracepoint_finished_step)
17984 (tracepoint_was_hit, release_while_stepping_state_list):
17985 (current_traceframe): Declare.
17986 * server.c (handle_general_set): Handle tracepoint packets.
17987 (read_memory): New.
17988 (write_memory): New.
17989 (handle_search_memory_1): Use read_memory.
17990 (handle_query): Report support for conditional tracepoints, trace
17991 state variables, and tracepoint sources. Handle tracepoint
17992 queries.
17993 (main): Initialize the tracepoints module.
17994 (process_serial_event): Handle traceframe reads/writes.
17995
17996 * linux-low.c (handle_tracepoints): New.
17997 (linux_wait_1): Call it.
17998 (linux_resume_one_lwp): Handle while-stepping.
17999 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18000 (linux_target_ops): Install them.
18001 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18002 New field.
18003 * linux-x86-low.c (x86_supports_tracepoints): New.
18004 (the_low_target). Install it.
18005
18006 * mem-break.h (delete_breakpoint): Declare.
18007 * mem-break.c (delete_breakpoint): Make external.
18008
18009 * target.h (struct target_ops): Add `supports_tracepoints',
18010 `read_pc', and `write_pc' fields.
18011 (target_supports_tracepoints): Define.
18012 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18013 (phex_nz): New.
18014
18015 * regcache.h (struct regcache) <registers_owned>: New field.
18016 (init_register_cache, regcache_cpy): Declare.
18017 (regcache_read_pc, regcache_write_pc): Declare.
18018 (register_cache_size): Declare.
18019 (supply_regblock): Declare.
18020 * regcache.c (init_register_cache): New.
18021 (new_register_cache): Use it.
18022 (regcache_cpy): New.
18023 (register_cache_size): New.
18024 (supply_regblock): New.
18025 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18026
219f2f23
PA
18027 * tracepoint.c: New.
18028
18029 * Makefile.in (OBS): Add tracepoint.o.
18030 (tracepoint.o): New rule.
18031
3a13a53b
L
180322010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18033
18034 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18035 (i386-mmx.o): New.
18036 (i386-mmx.c): Likewise.
18037 (i386-mmx-linux.o): Likewise.
18038 (i386-mmx-linux.c): Likewise.
18039
18040 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18041 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18042 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18043 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18044
18045 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18046 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18047 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18048
1570b33e
L
180492010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18050
18051 * Makefile.in (clean): Updated.
18052 (i386-avx.o): New.
18053 (i386-avx.c): Likewise.
18054 (i386-avx-linux.o): Likewise.
18055 (i386-avx-linux.c): Likewise.
18056 (amd64-avx.o): Likewise.
18057 (amd64-avx.c): Likewise.
18058 (amd64-avx-linux.o): Likewise.
18059 (amd64-avx-linux.c): Likewise.
18060
18061 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18062 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18063 (srv_amd64_regobj): Add amd64-avx.o.
18064 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18065 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18066 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18067 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18068 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18069 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18070 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18071
18072 * i387-fp.c: Include "i386-xstate.h".
18073 (i387_xsave): New.
18074 (i387_cache_to_xsave): Likewise.
18075 (i387_xsave_to_cache): Likewise.
18076 (x86_xcr0): Likewise.
18077
18078 * i387-fp.h (i387_cache_to_xsave): Likewise.
18079 (i387_xsave_to_cache): Likewise.
18080 (x86_xcr0): Likewise.
18081
18082 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18083 * linux-crisv32-low.c (target_regsets): Likewise.
18084 * linux-m68k-low.c (target_regsets): Likewise.
18085 * linux-mips-low.c (target_regsets): Likewise.
18086 * linux-ppc-low.c (target_regsets): Likewise.
18087 * linux-s390-low.c (target_regsets): Likewise.
18088 * linux-sh-low.c (target_regsets): Likewise.
18089 * linux-sparc-low.c (target_regsets): Likewise.
18090 * linux-xtensa-low.c (target_regsets): Likewise.
18091
18092 * linux-low.c: Include <sys/uio.h>.
18093 (regsets_fetch_inferior_registers): Support nt_type.
18094 (regsets_store_inferior_registers): Likewise.
18095 (linux_process_qsupported): New.
18096 (linux_target_ops): Add linux_process_qsupported.
18097
18098 * linux-low.h (regset_info): Add nt_type.
18099 (linux_target_ops): Add process_qsupported.
18100
18101 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18102 and <sys/uio.h>.
18103 (init_registers_i386_avx_linux): New.
18104 (init_registers_amd64_avx_linux): Likewise.
18105 (xmltarget_i386_linux_no_xml): Likewise.
18106 (xmltarget_amd64_linux_no_xml): Likewise.
18107 (PTRACE_GETREGSET): Likewise.
18108 (PTRACE_SETREGSET): Likewise.
18109 (x86_fill_xstateregset): Likewise.
18110 (x86_store_xstateregset): Likewise.
18111 (use_xml): Likewise.
18112 (x86_linux_update_xmltarget): Likewise.
18113 (x86_linux_process_qsupported): Likewise.
18114 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18115 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18116 init_registers_i386_linux here. Call
18117 x86_linux_update_xmltarget.
18118 (the_low_target): Add x86_linux_process_qsupported.
18119
18120 * server.c (handle_query): Call target_process_qsupported.
18121
18122 * target.h (target_ops): Add process_qsupported.
18123 (target_process_qsupported): New.
18124
fc7238bb
PA
181252010-04-03 Pedro Alves <pedro@codesourcery.com>
18126
18127 * inferiors.c (add_thread): Set last_status kind to
18128 TARGET_WAITKIND_IGNORE.
18129 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18130 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18131 (linux_wait_1): Move `thread' local definition to block that uses
18132 it. Don't NULL initialize `event_child'.
18133 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18134 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18135 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18136
bdabb078
PA
181372010-04-01 Pedro Alves <pedro@codesourcery.com>
18138
18139 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18140 an extended waitstatus, or by a watchpoint.
18141 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18142 thread was stepping or has been stopped by a watchpoint.
18143
d3bbe7a0
PA
181442010-04-01 Pedro Alves <pedro@codesourcery.com>
18145
18146 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18147 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18148 of another, then delete the previous, and validate all
18149 breakpoints.
18150 (validate_inserted_breakpoint): New.
18151 (delete_disabled_breakpoints): New.
18152 (validate_breakpoints): New.
18153 (check_mem_read): Validate breakpoints before trusting their
18154 shadow. Delete disabled breakpoints.
18155 (check_mem_write): Validate breakpoints before trusting they
18156 should be inserted. Delete disabled breakpoints.
18157 * mem-break.h (validate_breakpoints):
18158 * server.c (handle_query): Validate breakpoints when we see a
18159 qSymbol query.
18160
8b07ae33
PA
181612010-04-01 Pedro Alves <pedro@codesourcery.com>
18162
18163 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18164 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18165 if we could tell there's a GDB breakpoint at stop_pc.
18166 (need_step_over_p): Don't do a step over if we find a GDB
18167 breakpoint at the resume PC.
18168
18169 * mem-break.c (struct raw_breakpoint): New.
18170 (enum bkpt_type): New type `gdb_breakpoint'.
18171 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18172 fields. New field `raw'.
18173 (find_raw_breakpoint_at): New.
18174 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18175 breakpoint instead.
18176 (set_breakpoint_at): Adjust.
18177 (delete_raw_breakpoint): New.
18178 (release_breakpoint): New.
18179 (delete_breakpoint): Rename to...
18180 (delete_breakpoint_1): ... this. Add proc parameter. Use
18181 release_breakpoint. Return ENOENT.
18182 (delete_breakpoint): Reimplement.
18183 (find_breakpoint_at): Delete.
18184 (find_gdb_breakpoint_at): New.
18185 (delete_breakpoint_at): Delete.
18186 (set_gdb_breakpoint_at): New.
18187 (delete_gdb_breakpoint_at): New.
18188 (gdb_breakpoint_here): New.
18189 (set_reinsert_breakpoint): Use release_breakpoint.
18190 (uninsert_breakpoint): Rename to ...
18191 (uninsert_raw_breakpoint): ... this.
18192 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18193 (reinsert_raw_breakpoint): Change parameter type to
18194 raw_breakpoint.
18195 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18196 instead.
18197 (check_breakpoints): Adjust. Use release_breakpoint.
18198 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18199 (breakpoint_inserted_here): Ditto.
18200 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18201 Don't trust the breakpoint's shadow if it is not inserted.
18202 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18203 (delete_all_breakpoints): Adjust.
18204 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18205 use delete_breakpoint_1.
18206
18207 * mem-break.h (breakpoints_supported): Delete declaration.
18208 (set_gdb_breakpoint_at): Declare.
18209 (gdb_breakpoint_here): Declare.
18210 (delete_breakpoint_at): Delete.
18211 (delete_gdb_breakpoint_at): Declare.
18212
18213 * server.h (struct raw_breakpoint): Forward declare.
18214 (struct process_info): New field `raw_breakpoints'.
18215
18216 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18217 breakpoints.
18218
6bf5e0ba
PA
182192010-03-24 Pedro Alves <pedro@codesourcery.com>
18220
18221 * linux-low.c (status_pending_p_callback): Fix comment.
18222 (linux_wait_for_event_1): Move most of the internal breakpoint
18223 handling from here...
18224 (linux_wait_1): ... to here.
18225 (count_events_callback): New.
18226 (select_singlestep_lwp_callback): New.
18227 (select_event_lwp_callback): New.
18228 (cancel_breakpoints_callback): New.
18229 (select_event_lwp): New.
18230 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18231 priority to all LWPs that have had events that should be reported
18232 to the client. Cancel breakpoints when about to reporting the
18233 event to the client, not while stopping lwps. No longer cancel
18234 finished single-steps here.
18235 (cancel_finished_single_step): Delete.
18236 (cancel_finished_single_steps): Delete.
18237
414a389f
PA
182382010-03-24 Pedro Alves <pedro@codesourcery.com>
18239
18240 * mem-break.c (enum bkpt_type): New.
18241 (struct breakpoint): New field `type'.
18242 (set_breakpoint_at): Change return type to struct breakpoint
18243 pointer. Set type to `other_breakpoint' by default.
18244 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18245 in the breakpoint list.
18246 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18247 (reinsert_breakpoint): Rename to ...
18248 (reinsert_raw_breakpoint): ... this.
18249 (reinsert_breakpoints_at): Adjust.
18250 * mem-break.h (struct breakpoint): Declare.
18251 (set_breakpoint_at): Change return type to struct breakpoint
18252 pointer.
18253
2280c721
PA
182542010-03-24 Pedro Alves <pedro@codesourcery.com>
18255
18256 * server.c (handle_query): Assign, not compare.
18257
d50171e4
PA
182582010-03-24 Pedro Alves <pedro@codesourcery.com>
18259
18260 Teach linux gdbserver to step-over-breakpoints.
18261
18262 * linux-low.c (can_hardware_single_step): New.
18263 (supports_breakpoints): New.
18264 (handle_extended_wait): If stopping threads, read the stop pc of
18265 the new cloned LWP.
18266 (get_pc): New.
18267 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18268 low target doesn't support retrieving the PC.
18269 (add_lwp): Set last_resume_kind to resume_continue.
18270 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18271 (linux_attach): Don't clear stop_expected. Set the lwp's
18272 last_resume_kind to resume_stop.
18273 (linux_detach_one_lwp): Don't check for removed breakpoints.
18274 (check_removed_breakpoint): Delete.
18275 (status_pending_p): Rename to ...
18276 (status_pending_p_callback): ... this. Don't check for removed
18277 breakpoints. Don't consider threads that are stopped from GDB's
18278 perspective.
18279 (linux_wait_for_lwp): Always read the stop_pc here.
18280 (cancel_breakpoint): New.
18281 (step_over_bkpt): New global.
18282 (linux_wait_for_event_1): Implement stepping over breakpoints.
18283 (gdb_wants_lwp_stopped): New.
18284 (gdb_wants_all_stopped): New.
18285 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18286 single-step traps here. Store the thread's last reported target
18287 wait status.
18288 (send_sigstop): Don't clear stop_expected. Always set it,
18289 instead.
18290 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18291 (cancel_finished_single_step): New.
18292 (cancel_finished_single_steps): New.
18293 (wait_for_sigstop): Don't cancel finished single-step traps here.
18294 (linux_resume_one_lwp): Don't check for removed breakpoints.
18295 Don't set `step' on non-hardware step archs.
18296 (linux_set_resume_request): Ignore resume_stop requests if already
18297 stopping or stopped. Set the lwp's last_resume_kind.
18298 (resume_status_pending_p): Don't check for removed breakpoints.
18299 (need_step_over_p): New.
18300 (start_step_over): New.
18301 (finish_step_over): New.
18302 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18303 requests. Clear the thread's last reported target waitstatus.
18304 Don't use the `suspended' flag. Don't consider pending breakpoints.
18305 (linux_resume): Start a step-over if necessary.
18306 (proceed_one_lwp): New.
18307 (proceed_all_lwps): New.
18308 (unstop_all_lwps): New.
18309 * linux-low.h (struct lwp_info): Rewrite comment for the
18310 `suspended' flag. Add the `stop_pc' field. Delete the
18311 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18312 Add `'last_resume_kind' and `need_step_over' fields.
18313 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18314 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18315 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18316 (set_raw_breakpoint_at): New.
18317 (set_breakpoint_at): Rewrite to use it.
18318 (reinsert_breakpoint_handler): Delete.
18319 (set_reinsert_breakpoint): New.
18320 (reinsert_breakpoint_by_bp): Delete.
18321 (delete_reinsert_breakpoints): New.
18322 (uninsert_breakpoint): Rewrite.
18323 (uninsert_breakpoints_at): New.
18324 (reinsert_breakpoint): Rewrite.
18325 (reinsert_breakpoints_at): New.
18326 (check_breakpoints): Rewrite.
18327 (breakpoint_here): New.
18328 (breakpoint_inserted_here): New.
18329 (check_mem_read): Adjust.
18330 * mem-break.h (breakpoints_supported, breakpoint_here)
18331 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18332 (reinsert_breakpoint_by_bp): Delete declaration.
18333 (delete_reinsert_breakpoints): Declare.
18334 (reinsert_breakpoint): Delete declaration.
18335 (reinsert_breakpoints_at): Declare.
18336 (uninsert_breakpoint): Delete declaration.
18337 (uninsert_breakpoints_at): Declare.
18338 (check_breakpoints): Adjust prototype.
18339 * server.h: Adjust include order.
18340 (struct thread_info): Declare here. Add a `last_status' field.
18341
30ba68cb
MS
183422010-03-23 Michael Snyder <msnyder@vmware.com>
18343
18344 * server.c (crc32): New function.
18345 (handle_query): Add handling for 'qCRC:' request.
18346
b9a881c2
PA
183472010-03-23 Pedro Alves <pedro@codesourcery.com>
18348
18349 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18350 lwp had been stopped by a watchpoint.
18351
e92d13d5
PA
183522010-03-16 Pedro Alves <pedro@codesourcery.com>
18353
18354 * server.h (internal_error): Declare.
18355 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18356 * utils.c (internal_error): New function.
18357
64daa791
AS
183582010-03-15 Andreas Schwab <schwab@redhat.com>
18359
18360 * configure.srv: Fix typo setting srv_regobj.
18361
f52cd8cd
PA
183622010-03-15 Pedro Alves <pedro@codesourcery.com>
18363
18364 * linux-low.c (fetch_register): Avoid passing a non string literal
18365 format to `error'.
18366 (usr_store_inferior_registers): Ditto.
18367
93ae6fdc
PA
183682010-03-14 Pedro Alves <pedro@codesourcery.com>
18369
18370 * linux-low.c (linux_write_memory): Bail out early if peeking
18371 memory failed.
18372
c3adc08c
PA
183732010-03-14 Pedro Alves <pedro@codesourcery.com>
18374
18375 * linux-low.h (struct lwp_info): New fields
18376 `stopped_by_watchpoint' and `stopped_data_address'.
18377 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18378 here, and cache them in the lwp object.
18379 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18380 directly.
18381 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18382 field.
18383 (linux_stopped_by_watchpoint): Rewrite.
18384 (linux_stopped_data_address): Rewrite.
18385
bce522a2
PA
183862010-03-06 Simo Melenius <simo.melenius@iki.fi>
18387
18388 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18389 switching the current inferior, not before.
18390
90884b2b
L
183912010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18392
18393 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18394 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18395 i386-linux.c and amd64-linux.c.
18396 (reg-i386.o): Removed.
18397 (reg-i386.c): Likewise.
18398 (reg-i386-linux.o): Likewise.
18399 (reg-i386-linux.c): Likewise.
18400 (reg-x86-64.o): Likewise.
18401 (reg-x86-64.c): Likewise.
18402 (reg-x86-64-linux.o): Likewise.
18403 (reg-x86-64-linux.c): Likewise.
18404 (i386.o): New.
18405 (i386.c): Likewise.
18406 (i386-linux.o): Likewise.
18407 (i386-linux.c): Likewise.
18408 (amd64.o): Likewise.
18409 (amd64.c): Likewise.
18410 (amd64-linux.o): Likewise.
18411 (amd64-linux.c): Likewise.
18412
18413 * configure.srv (srv_i386_regobj): New.
18414 (srv_i386_linux_regobj): Likewise.
18415 (srv_amd64_regobj): Likewise.
18416 (srv_amd64_linux_regobj): Likewise.
18417 (srv_i386_32bit_xmlfiles): Likewise.
18418 (srv_i386_64bit_xmlfiles): Likewise.
18419 (srv_i386_xmlfiles): Likewise.
18420 (srv_amd64_xmlfiles): Likewise.
18421 (srv_i386_linux_xmlfiles): Likewise.
18422 (srv_amd64_linux_xmlfiles): Likewise.
18423 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18424 srv_xmlfiles to $srv_i386_xmlfiles.
18425 (i[34567]86-*-mingw32ce*): Likewise.
18426 (i[34567]86-*-mingw*): Likewise.
18427 (i[34567]86-*-nto*): Likewise.
18428 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18429 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18430 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18431 (x86_64-*-linux*): Likewise.
18432
18433 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18434 (init_registers_amd64_linux): New.
18435 (x86_arch_setup): Replace init_registers_x86_64_linux with
18436 init_registers_amd64_linux.
18437
193f13e6
MK
184382010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18439
18440 * configure.ac: Check for libdl. If it is not available link against
18441 static libthread_db.
18442 * configure: Regenerate.
18443
85d721b8
PA
184442010-02-22 Pedro Alves <pedro@codesourcery.com>
18445
18446 PR9605
18447
18448 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18449 handing a read watchpoint.
18450 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18451
6076632b
DE
184522010-02-12 Doug Evans <dje@google.com>
18453
18454 * linux-low.c (linux_supports_tracefork_flag): Document.
18455 (linux_look_up_symbols): Add comment.
18456
3327ccf7
L
184572010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18458
18459 * regcache.c (supply_register): Clear regcache if buf is NULL.
18460
0718675c 184612010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18462 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18463
18464 * inferiors.c (find_inferior): Add function documentation.
18465 (unloaded_dll): Handle the case where the unloaded dll has not
18466 been previously registered in the dll list.
18467
177321bd
DJ
184682010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18469
18470 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18471 (thumb2_breakpoint): New.
18472 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18473
2b009048
DJ
184742010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18475
18476 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18477 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18478 breakpoints.
18479
3be029c7
PA
184802010-01-21 Pedro Alves <pedro@codesourcery.com>
18481
18482 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18483
18f5de3b
JK
184842010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18485
18486 * linux-s390-low.c (s390_collect_ptrace_register)
18487 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18488
3743bb4f
DE
184892010-01-21 Doug Evans <dje@google.com>
18490
14ce3065
DE
18491 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18492 (PTRACE_ARG4_TYPE): New macro.
18493 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18494 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18495 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18496 (usr_store_inferior_registers): Ditto.
18497 (linux_read_memory, linux_write_memory): Ditto.
18498 (linux_test_for_tracefork): Ditto.
18499
3743bb4f
DE
18500 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18501 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18502
8b315be5
PA
185032010-01-21 Pedro Alves <pedro@codesourcery.com>
18504
18505 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18506 target.
18507
85492558
PA
185082010-01-21 Pedro Alves <pedro@codesourcery.com>
18509
18510 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18511 prototype to take a regcache. Adjust.
18512
442ea881
PA
185132010-01-20 Pedro Alves <pedro@codesourcery.com>
18514
18515 * regcache.h (struct thread_info): Forward declare.
18516 (struct regcache): New.
18517 (new_register_cache): Adjust prototype.
18518 (get_thread_regcache): Declare.
18519 (free_register_cache): Adjust prototype.
18520 (registers_to_string, registers_from_string): Ditto.
18521 (supply_register, supply_register_by_name, collect_register)
18522 (collect_register_as_string, collect_register_by_name): Ditto.
18523 * regcache.c (struct inferior_regcache_data): Delete.
18524 (get_regcache): Rename to ...
18525 (get_thread_regcache): ... this. Adjust. Switch inferior before
18526 fetching registers.
18527 (regcache_invalidate_one): Adjust.
18528 (regcache_invalidate): Fix prototype.
18529 (new_register_cache): Return the new register cache.
18530 (free_register_cache): Change prototype.
18531 (realloc_register_cache): Adjust.
18532 (registers_to_string): Change prototype to take a regcache. Adjust.
18533 (registers_from_string): Ditto.
18534 (register_data): Ditto.
18535 (supply_register): Ditto.
18536 (supply_register_by_name): Ditto.
18537 (collect_register): Ditto.
18538 (collect_register_as_string): Ditto.
18539 (collect_register_by_name): Ditto.
18540 * server.c (process_serial_event): Adjust.
18541 * linux-low.h (regset_fill_func, regset_store_func): Change
18542 prototype.
18543 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18544 Change prototype.
18545 * linux-low.c (get_stop_pc): Adjust.
18546 (check_removed_breakpoint): Adjust.
18547 (linux_wait_for_event): Adjust.
18548 (linux_resume_one_lwp): Adjust.
18549 (fetch_register): Add regcache parameter. Adjust.
18550 (usr_store_inferior_registers): Ditto.
18551 (regsets_fetch_inferior_registers): Ditto.
18552 (regsets_store_inferior_registers): Ditto.
18553 (linux_fetch_registers, linux_store_registers): Ditto.
18554 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18555 regcache. Adjust.
43aaf8b6
PA
18556 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18557 Ditto.
442ea881
PA
18558 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18559 prototype to take a regcache.
18560 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18561 * remote-utils.c (convert_ascii_to_int, outreg)
18562 (prepare_resume_reply): Change prototype to take a regcache.
18563 Adjust.
18564 * target.h (struct target_ops) <fetch_registers, store_registers>:
18565 Change prototype to take a regcache.
18566 (fetch_inferior_registers, store_inferior_registers): Change
18567 prototype to take a regcache. Adjust.
18568 * proc-service.c (ps_lgetregs): Adjust.
18569 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18570 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18571 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18572 take a regcache. Adjust.
18573 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18574 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18575 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18576 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18577 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18578 (cris_cannot_fetch_register):
18579 (cris_breakpoint_at): Change prototype to take a regcache.
18580 Adjust.
18581 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18582 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18583 to take a regcache. Adjust.
18584 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18585 Adjust.
18586 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18587 take a regcache. Adjust.
18588 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18589 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18590 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18591 * linux-mips-low.c (mips_get_pc):
18592 (mips_set_pc): Change prototype to take a regcache. Adjust.
18593 (mips_reinsert_addr): Adjust.
18594 (mips_collect_register): Change prototype to take a regcache.
18595 Adjust.
18596 (mips_supply_register):
18597 (mips_collect_register_32bit, mips_supply_register_32bit)
18598 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18599 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18600 * linux-ppc-low.c (ppc_supply_ptrace_register)
18601 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18602 (parse_spufs_run): Adjust.
18603 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18604 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18605 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18606 take a regcache. Adjust.
18607 * linux-s390-low.c (s390_collect_ptrace_register)
18608 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18609 (s390_set_pc): Change prototype to take a regcache. Adjust.
18610 (s390_arch_setup): Adjust.
18611 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18612 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18613 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18614 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18615 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18616 regcache. Adjust.
18617 (sparc_breakpoint_at): Adjust.
18618 * linux-xtensa-low.c (xtensa_fill_gregset):
18619 (xtensa_store_gregset):
18620 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18621 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18622 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18623 prototype to take a regcache. Adjust.
18624 * win32-arm-low.c (arm_fetch_inferior_register)
18625 (arm_store_inferior_register): Change prototype to take a
18626 regcache. Adjust.
18627 * win32-i386-low.c (i386_fetch_inferior_register)
18628 (i386_store_inferior_register): Change prototype to take a
18629 regcache. Adjust.
18630 * win32-low.c (child_fetch_inferior_registers)
18631 (child_store_inferior_registers): Change prototype to take a
18632 regcache. Adjust.
18633 (win32_wait): Adjust.
18634 (win32_fetch_inferior_registers): Change prototype to take a
18635 regcache. Adjust.
18636 (win32_store_inferior_registers): Adjust.
18637 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18638 store_inferior_register>: Change prototype to take a regcache.
18639
60c3d7b0
DE
186402010-01-20 Doug Evans <dje@google.com>
18641
18642 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18643 #ifdef.
18644 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18645 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18646
dc146f7c
VP
186472010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18648
18649 * linux-low.c (linux_core_of_thread): New.
18650 (compare_ints, show_process, list_threads): New.
18651 (linux_qxfer_osdata): Report threads and cores.
18652 (linux_target_op): Register linux_core_of_thread.
18653 * remote-utils.c (prepare_resume_reply): Report the core.
18654 (buffer_xml_printf): Support %d specifier.
18655 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18656 New.
18657 (handle_query): Handle qXfer:threads. Announce availability
18658 thereof.
18659 * target.h (struct target_ops): New field core_of_thread.
18660
7803799a
UW
186612010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18662
18663 * Makefile.in (clean): Remove new generated files.
18664 (reg-s390.o, reg-s390.c): Remove rules.
18665 (reg-s390x.o, reg-s390x.c): Likewise.
18666 (s390-linux32.o, s390-linux32.c): Add rules.
18667 (s390-linux64.o, s390-linux64.c): Likewise.
18668 (s390x-linux64.o, s390x-linux64.c): Likewise.
18669 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18670 * linux-s390-low.c: Include <elf.h>.
18671 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18672 (init_registers_s390): Remove prototype.
18673 (init_registers_s390x): Likewise.
18674 (init_registers_s390_linux32): Add prototype.
18675 (init_registers_s390_linux64): Likewise.
18676 (init_registers_s390x_linux64): Likewise.
18677 (s390_num_regs_3264): New define.
18678 (s390_regmap_3264): New global variable.
18679 (s390_cannot_fetch_register): Remove obsolete check.
18680 (s390_cannot_store_register): Likewise.
18681 (s390_collect_ptrace_register): Handle upper/lower register halves.
18682 (s390_supply_ptrace_register): Likewise.
18683 (s390_fill_gregset): Update to register number changes.
18684 (s390_get_hwcap): New routine.
18685 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18686 Install appropriate regmap and register set.
18687
6e7ffa39
JB
186882010-01-01 Joel Brobecker <brobecker@adacore.com>
18689
18690 * server.c (gdbserver_version): Update copyright year to 2010.
18691 * gdbreplay.c (gdbreplay_version): Likewise.
18692
957f3f49
DE
186932009-12-28 Doug Evans <dje@google.com>
18694
18695 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18696 elf/external.h. Include <elf.h> instead but only if necessary.
18697
ca5c370d
PA
186982009-12-28 Pedro Alves <pedro@codesourcery.com>
18699
18700 * linux-low.c (linux_remove_process): Remove `detaching'
18701 parameter. Don't release/detach from thread_db here.
18702 (linux_kill): Release/detach from thread_db here, ...
18703 (linux_detach): ... and here, before actually detaching.
18704 (linux_wait_1): ... and here, when a process exits.
18705 * thread-db.c (any_thread_of): New.
18706 (thread_db_free): Switch the current inferior to a thread of the
18707 passed in process.
18708
4ee62156
DE
187092009-12-21 Doug Evans <dje@google.com>
18710
d90e6a88
DE
18711 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18712
c5f62d5f
DE
18713 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18714 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18715 warning ifndef __NR_tkill. Move setting of errno there too.
18716 Delete unnecessary resetting of errno after syscall.
18717 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18718
10e86dd7
DE
18719 * configure.ac: Check for dladdr.
18720 * config.in: Regenerate.
18721 * configure: Regenerate.
18722 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18723 (try_thread_db_load): Update.
18724
4ee62156
DE
18725 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18726
00f515da
DE
187272009-12-18 Doug Evans <dje@google.com>
18728
e9464885
DE
18729 * event-loop.c: Include unistd.h if it exists.
18730
07d4f67e
DE
18731 * linux-low.c (my_waitpid): Move definition away from being in
18732 between linux_tracefork_child/linux_test_for_tracefork.
18733
00f515da
DE
18734 * gdb_proc_service.h (psaddr_t): Fix type.
18735 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18736 signature to match glibc.
18737
1de1badb
DE
187382009-12-16 Doug Evans <dje@google.com>
18739
18740 * linux-low.c (linux_read_memory): Fix argument to read.
18741
aeeb81d1
PA
187422009-11-26 Pedro Alves <pedro@codesourcery.com>
18743
18744 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18745 events, don't leave current_inferior pointing at null.
18746
10357975
PA
187472009-11-26 Pedro Alves <pedro@codesourcery.com>
18748
18749 * win32-low.c (LOG): Delete.
18750 (OUTMSG): Output to stderr.
18751 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18752 on compile time LOG macro.
18753 (win32_wait): Fix debug output.
18754
cf6e3471
PA
187552009-11-26 Pedro Alves <pedro@codesourcery.com>
18756
18757 * win32-low.c (win32_add_one_solib): If the dll name is
18758 "ntdll.dll", prepend the system directory to the dll path.
18759
0c85e18e
MK
187602009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18761
18762 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18763
9ac544ce 187642009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18765 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18766
18767 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18768 * configure.ac: Check for __mcoldfire__ and set
18769 gdb_cv_m68k_is_coldfire.
18770 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18771 reg-cf.o and reg-m68k.o.
18772 * configure: Regenerated.
18773
fd7dd3e6
PA
187742009-11-16 Pedro Alves <pedro@codesourcery.com>
18775
18776 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18777 Pass it to thread_db_free.
18778 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18779 proper `detaching' argument to linux_remove_process.
18780 * linux-low.h (thread_db_free): Add `detaching' parameter.
18781 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18782 to thread_db_free.
18783 (thread_db_free): Add `detaching' parameter. Only
18784 call td_ta_clear_event if detaching from process.
18785
75aa492e
MK
187862009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18787
18788 * thread-db.c (thread_db_free): Fix typo.
18789
21e1bee4
PP
187902009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18791
18792 PR gdb/10838
18793 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18794
8838b45e
NS
187952009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18796
18797 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18798 with an i686 compiler.
18799 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18800 needed.
18801 * configure: Rebuilt.
18802
8a35fb51
SL
188032009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18804
18805 PR gdb/10783
18806
18807 * server.c (handle_search_memory_1): Correct read_addr initialization
18808 in loop for searching subsequent chunks.
18809
96f15937
PP
188102009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18811
18812 * configure.ac: New --with-libthread-db option.
18813 * thread-db.c: Allow direct dependence on libthread_db.
18814 (thread_db_free): Adjust.
18815 * config.in: Regenerate.
18816 * configure: Likewise.
889bf7c5 18817
5f7d1694
PP
188182009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18819
18820 PR gdb/10757
18821 * thread-db.c (attach_thread): New function.
18822 (maybe_attach_thread): Return success/failure.
18823 (find_new_threads_callback): Adjust.
889bf7c5
PA
18824 (thread_db_find_new_threads): Loop until no new threads.
18825
88e3b899
PA
188262009-10-13 Pedro Alves <pedro@codesourcery.com>
18827
18828 * proc-service.c (ps_lgetregs): Formatting.
18829
cdbfd419
PP
188302009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18831
18832 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18833 * configure.ac: Adjust.
18834 * linux-low.h (struct process_info_private): Move members to struct
18835 thread_db.
18836 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18837 * linux-low.c (linux_remove_process): Adjust.
18838 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18839 * server.c (handle_query): Move code ...
18840 (handle_monitor_command): ... here. New function.
18841 * target.h (struct target_ops): New member.
18842 * thread-db.c (struct thread_db): New.
18843 (libthread_db_search_path): New variable.
18844 (thread_db_create_event, thread_db_enable_reporting)
18845 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18846 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18847 (try_thread_db_load_1, dladdr_to_soname): New functions.
18848 (try_thread_db_load, thread_db_load_search): New functions.
18849 (thread_db_init): Search for libthread_db.
18850 (thread_db_free): New function.
18851 (thread_db_handle_monitor_command): Likewise.
18852 * config.in: Regenerate.
18853 * configure: Regenerate.
889bf7c5 18854
4168d2d6
UW
188552009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18856
18857 * spu-low.c (spu_kill): Wait for inferior to terminate.
18858 Call clear_inferiors.
18859 (spu_detach): Call clear_inferiors.
18860
81ecdfbb
RW
188612009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18862
18863 * aclocal.m4: Regenerate.
18864 * config.in: Likewise.
18865 * configure: Likewise.
18866
0b9ff2c0
UW
188672009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18868
18869 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18870 (parse_spufs_run): New function.
18871 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18872 (ppc_breakpoint_at): Handle SPU breakpoints.
18873
efcbbd14
UW
188742009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18875
18876 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18877 (SPUFS_MAGIC): Define.
18878 (spu_enumerate_spu_ids): New function.
18879 (linux_qxfer_spu): New function.
18880 (linux_target_ops): Install linux_qxfer_spu.
18881
f4d9bade
UW
188822009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18883
18884 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18885 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18886 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18887 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18888 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18889 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18890 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18891 (init_registers_powerpc_cell32l): Add prototype.
18892 (init_registers_powerpc_cell64l): Likewise.
18893 (ppc_arch_setup): Detect Cell/B.E. architecture.
18894
96e946ca
RW
188952009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18896
18897 * Makefile.in (datarootdir): New variable.
18898
58d6951d
DJ
188992009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18900
18901 * linux-low.c (linux_write_memory): Update debugging output.
18902 * Makefile.in (clean): Add new descriptions.
18903 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18904 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18905 * configure.srv: Add new files for arm*-*-linux*.
18906 * linux-arm-low.c: Add new declarations.
18907 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18908 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18909 (HWCAP_VFPv3D16): New.
18910 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18911 instead of __IWMMXT__.
18912 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18913 (arm_arch_setup): New.
18914 (target_regsets): Remove #ifdef. Add VFP regset.
18915 (the_low_target): Use arm_arch_setup.
18916
12b42a12
DJ
189172009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18918
18919 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18920 the main thread again.
18921
ac8c974e
AR
189222009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18923
18924 Adding Neutrino gdbserver.
18925 * configure: Regenerated.
18926 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18927 * configure.srv (i[34567]86-*-nto*): New target.
18928 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18929 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18930 (nto_comctrl) [__QNX__]: New function.
18931 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18932
4424e0c3 189332009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18934
18935 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18936 srv_tgtobj.
18937
912cf4ba
PA
189382009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18939 Pedro Alves <pedro@codesourcery.com>
18940
18941 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18942 don't support CONTEXT_EXTENDED_REGISTERS.
18943 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18944 (the_low_target): Install them.
18945 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18946 failing with ERROR_PIPE_NOT_CONNECTED.
18947
aa5ca48f
DE
189482009-06-30 Doug Evans <dje@google.com>
18949 Pierre Muller <muller@ics.u-strasbg.fr>
18950
18951 Add h/w watchpoint support to x86-linux, win32-i386.
18952 * Makefile.in (SFILES): Add i386-low.c
18953 (i386_low_h): Define.
18954 (i386-low.o): Add dependencies.
18955 (linux-x86-low.o): Add i386-low.h dependency.
18956 (win32-i386-low.o): Ditto.
18957 * i386-low.c: New file.
18958 * i386-low.h: New file.
18959 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18960 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18961 * linux-low.c (linux_add_process): Initialize arch_private.
18962 (linux_remove_process): Free arch_private.
18963 (add_lwp): Initialize arch_private.
18964 (delete_lwp): Free arch_private.
18965 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18966 provided.
18967 * linux-low.h (process_info_private): New member arch_private.
18968 (lwp_info): New member arch_private.
18969 (linux_target_ops): New members new_process, new_thread,
18970 prepare_to_resume.
18971 (ptid_of): New macro.
18972 * linux-x86-low.c: Include stddef.h, i386-low.h.
18973 (arch_process_info): New struct.
18974 (arch_lwp_info): New struct.
18975 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18976 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18977 (i386_dr_low_get_status): New function.
18978 (x86_insert_point, x86_remove_point): New functions.
18979 (x86_stopped_by_watchpoint): New function.
18980 (x86_stopped_data_address): New function.
18981 (x86_linux_new_process, x86_linux_new_thread): New functions.
18982 (x86_linux_prepare_to_resume): New function.
18983 (the_low_target): Add entries for insert_point, remove_point,
18984 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18985 prepare_to_resume.
18986 * server.c (debug_hw_points): New global.
18987 (monitor_show_help): Document set debug-hw-points.
18988 (handle_query): Process "set debug-hw-points".
18989 * server.h (debug_hw_points): Declare.
18990 (paddress): Declare.
18991 * utils.c (NUMCELLS, CELLSIZE): New macros.
18992 (get_sell, xsnprintf, paddress): New functions.
18993 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18994 remove_point, stopped_by_watchpoint, stopped_data_address.
18995 * win32-i386-low.c: Include i386-low.h.
18996 (debug_reg_state): Replaces dr.
18997 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18998 (i386_dr_low_get_status): New function.
18999 (i386_insert_point, i386_remove_point): New functions.
19000 (i386_stopped_by_watchpoint): New function.
19001 (i386_stopped_data_address): New function.
19002 (i386_initial_stuff): Update.
19003 (get_thread_context,set_thread_context,i386_thread_added): Update.
19004 (the_low_target): Add entries for insert_point,
19005 remove_point, stopped_by_watchpoint, stopped_data_address.
19006 * win32-low.c (win32_insert_watchpoint): New function.
19007 (win32_remove_watchpoint): New function.
19008 (win32_stopped_by_watchpoint): New function.
19009 (win32_stopped_data_address): New function.
19010 (win32_target_ops): Add entries for insert_watchpoint,
19011 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19012 * win32-low.h (win32_target_ops): New members insert_point,
19013 remove_point, stopped_by_watchpoint, stopped_data_address.
19014
d993e290
PA
190152009-06-25 Pedro Alves <pedro@codesourcery.com>
19016
19017 * server.c (process_serial_event): Re-return unsupported, not
19018 error, if the type isn't recognized. Re-allow supporting only
19019 insert or remove packets. Also call require_running for
19020 breakpoints. Add missing break statement to default case. Tidy.
19021 * target.h (struct target_ops): Rename insert_watchpoint to
19022 insert_point, and remove_watchpoint to remove_point.
19023
19024 * linux-low.h (struct linux_target_ops): Likewise.
19025 * linux-low.c (linux_insert_watchpoint): Rename to ...
19026 (linux_insert_point): ... this. Adjust.
19027 (linux_remove_watchpoint): Rename to ...
19028 (linux_remove_point): ... this. Adjust.
19029 (linux_target_ops): Adjust.
19030 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19031 (cris_insert_point): ... this.
19032 (cris_remove_watchpoint): Rename to ...
19033 (cris_remove_point): ... this.
19034 (the_low_target): Adjust.
19035
0f54c268
PM
190362009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19037
19038 * server.c (handle_v_kill): Pass signal_pid to
19039 kill_inferior if multi_process is zero.
19040
c6314022
AR
190412009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19042
19043 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19044 * target.h (target_ops): Comment for *_watchpoint to make it clear
19045 the functions can get types '0' and '1'.
19046
4463ce24
AR
190472009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19048
19049 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19050 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19051 * regcache.c (get_regcache): Likewise.
19052 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19053 * win32-low.c (child_fetch_inferior_registers): Remove check for
19054 regno 0.
19055
cf8fd78b
PA
190562009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19057 Pedro Alves <pedro@codesourcery.com>
19058
19059 * target.h (struct target_ops) <supports_multi_process>: New
19060 callback.
19061 (target_supports_multi_process): New.
19062 * server.c (handle_query): Even if GDB reports support, only
19063 enable multi-process if the target also supports it. Report
19064 multi-process support only if the target backend supports it.
19065 * linux-low.c (linux_supports_multi_process): New function.
19066 (linux_target_ops): Install it as target_supports_multi_process
19067 callback.
19068
47c0c975
DE
190692009-05-24 Doug Evans <dje@google.com>
19070
e09875d4
DE
19071 Global renaming of find_thread_pid to find_thread_ptid.
19072 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19073 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19074 All callers updated.
19075
e27d73f6
DE
19076 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19077 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19078 directly.
19079
47c0c975
DE
19080 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19081 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19082 (linux_resume_one_lwp): Ditto.
19083
2acc282a
DE
190842009-05-23 Doug Evans <dje@google.com>
19085
19086 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19087 from struct inferior_list_entry * to struct lwp_info *.
19088 All callers updated.
19089
9f1036c1
DE
190902009-05-13 Doug Evans <dje@google.com>
19091
19092 * linux-x86-low.c: Don't include assert.h.
19093 (x86_siginfo_fixup): Use fatal, not assert.
19094 (x86_arch_setup): Fix comment.
19095
d0722149
DE
190962009-05-12 Doug Evans <dje@google.com>
19097
19098 Biarch support for i386/amd64 gdbserver.
19099 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19100 Add linux-x86-low.c.
19101 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19102 (linux-x86-low.o): Add.
19103 * linux-x86-64-low.c: Delete.
19104 * linux-i386-low.c: Delete.
19105 * linux-x86-low.c: New file.
19106 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19107 linux-x86-low.o.
19108 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19109 linux-x86-low.o.
19110 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19111 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19112 (linux_child_pid_to_exec_file): New function.
19113 (elf_64_header_p, elf_64_file_p): New functions.
19114 (siginfo_fixup): New function.
19115 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19116 give target a chance to convert layout.
19117 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19118 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19119
fdeb2a12
DE
191202009-05-07 Doug Evans <dje@google.com>
19121
19122 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19123 (regsets_store_inferior_registers): Ditto.
19124
a6dbe5df
PA
191252009-05-06 Pedro Alves <pedro@codesourcery.com>
19126
19127 PR server/10048
19128
19129 * linux-low.c (must_set_ptrace_flags): Delete.
19130 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19131 of the global.
19132 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19133 `lwp->must_set_ptrace_flags' instead.
ba42693b 19134 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19135 (linux_wait_1): ... not here.
19136
5091eb23
DE
191372009-04-30 Doug Evans <dje@google.com>
19138
9f767825
DE
19139 * inferiors.c (started_inferior_callback): New function.
19140 (attached_inferior_callback): New function.
19141 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19142 * server.c (print_started_pid, print_attached_pid): New functions.
19143 (detach_or_kill_for_exit): New function.
19144 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19145 * server.h (have_started_inferiors_p): Declare.
19146 (have_attached_inferiors_p): Declare.
19147
5091eb23
DE
19148 * inferiors.c (remove_process): Fix memory leak, free process.
19149 * linux-low.c (linux_remove_process): New function.
19150 (linux_kill): Call it instead of remove_process.
19151 (linux_detach, linux_wait_1): Ditto.
19152
155c8968
PA
191532009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19154
19155 * configure.srv: Add x86 Windows CE target.
19156
7fe519cb
UW
191572009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19158
19159 * inferiors.c (get_thread_process): Make global.
19160 * server.h (get_thread_process): Add prototype.
19161 * thread-db.c (find_one_thread): Use get_thread_process
19162 instead of current_process.
19163 (thread_db_get_tls_address): Do not crash if called when
19164 thread layer is not yet initialized.
19165
5472f405
UW
191662009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19167
19168 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19169 * spu-low.c (current_tid): Rename to ...
19170 (current_ptid): ... this.
19171 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19172 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19173 ptid_get_lwp (current_ptid) instead of current_tid.
19174 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19175 instead of current_tid. Use find_process_pid to verify pid
19176 argument is valid. Pass proper argument to remove_process.
19177 (spu_thread_alive): Compare current_ptid instead of current_tid.
19178 (spu_resume): Likewise.
19179
55ac2b99
PA
191802009-04-02 Pedro Alves <pedro@codesourcery.com>
19181
19182 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19183 variable.
19184
95954743
PA
191852009-04-01 Pedro Alves <pedro@codesourcery.com>
19186
19187 Implement the multiprocess extensions, and add linux multiprocess
19188 support.
19189
19190 * server.h (ULONGEST): Declare.
19191 (struct ptid, ptid_t): New.
19192 (minus_one_ptid, null_ptid): Declare.
19193 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19194 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19195 (struct inferior_list_entry): Change `id' type from unsigned from
19196 to ptid_t.
19197 (struct sym_cache, struct breakpoint, struct
19198 process_info_private): Forward declare.
19199 (struct process_info): Declare.
19200 (current_process): Declare.
19201 (all_processes): Declare.
19202 (initialize_inferiors): Declare.
19203 (add_thread): Adjust to use ptid_t.
19204 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19205 (add_process, remove_process, find_thread_pid): Declare.
19206 (find_inferior_id): Adjust to use ptid_t.
19207 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19208 (multi_process): Declare.
19209 (push_event): Adjust to use ptid_t.
19210 (read_ptid, write_ptid): Declare.
19211 (prepare_resume_reply): Adjust to use ptid_t.
19212 (clear_symbol_cache): Declare.
19213 * inferiors.c (all_processes): New.
19214 (null_ptid, minus_one_ptid): New.
19215 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19216 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19217 (add_thread): Change unsigned long to ptid. Remove gdb_id
19218 parameter. Adjust.
19219 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19220 (gdb_id_to_thread): Rename to ...
19221 (find_thread_pid): ... this. Change unsigned long to ptid.
19222 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19223 (loaded_dll, pull_pid_from_list): Adjust.
19224 (add_process, remove_process, find_process_pid)
19225 (get_thread_process, current_process, initialize_inferiors): New.
19226 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19227 (struct target_waitstatus) <related_pid>: Ditto.
19228 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19229 return type to int.
19230 (struct target_ops) <join>: Add `pid' argument.
19231 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19232 (struct target_ops) <wait>: Add `ptid' field. Change return type
19233 to ptid.
19234 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19235 (mywait): Add `ptid' argument. Change return type to ptid_t.
19236 (target_pid_to_str): Declare.
19237 * target.c (set_desired_inferior): Adjust to use ptids.
19238 (mywait): Add new `ptid' argument. Adjust.
19239 (target_pid_to_str): New.
19240 * mem-break.h (free_all_breakpoints): Declare.
19241 * mem-break.c (breakpoints): Delelete.
19242 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19243 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19244 to use per-process breakpoint list.
19245 (free_all_breakpoints): New.
19246 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19247 (symbol_cache, all_symbols_looked_up): Delete.
19248 (hexchars): New.
19249 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19250 read_ptid): New.
19251 (prepare_resume_reply): Change ptid argument's type from unsigned
19252 long to ptid_t. Adjust. Implement W;process and X;process.
19253 (free_sym_cache, clear_symbol_cache): New.
19254 (look_up_one_symbol): Adjust to per-process symbol cache. *
19255 * server.c (cont_thread, general_thread, step_thread): Change type
19256 to ptid_t.
19257 (attached): Delete.
19258 (multi_process): New.
19259 (last_ptid): Change type to ptid_t.
19260 (struct vstop_notif) <ptid>: Change type to ptid_t.
19261 (queue_stop_reply, push_event): Change `ptid' argument's type to
19262 ptid_t.
19263 (discard_queued_stop_replies): Add `pid' argument.
19264 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19265 changes. Don't reference the `attached' global.
19266 (attach_inferior): Adjust to mywait interface changes.
19267 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19268 features. Handle and report "multiprocess+". Handle
19269 "qAttached:PID".
19270 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19271 changes.
19272 (handle_v_kill): New.
19273 (handle_v_stopped): Adjust to use target_pid_to_str.
19274 (handle_v_requests): Allow multiple attaches and runs when
19275 multiprocess extensions are in effect. Handle "vKill".
19276 (myresume): Adjust to use ptids.
19277 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19278 (handle_status): Adjust to discard_queued_stop_replies interface
19279 change.
19280 (first_thread_of, kill_inferior_callback)
19281 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19282 (main): Call initialize_inferiors. Adjust to use ptids, killing
19283 and detaching from all inferiors. Handle multiprocess packet
19284 variants.
19285 * linux-low.h: Include gdb_proc_service.h.
19286 (struct process_info_private): New.
19287 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19288 <lwpid_of>: Use ptid_get_lwp.
19289 (get_lwp_thread): Adjust.
19290 (struct lwp_info): Add `dead' member.
19291 (find_lwp_pid): Declare.
19292 * linux-low.c (thread_db_active): Delete.
19293 (new_inferior): Adjust comment.
19294 (inferior_pid): Delete.
19295 (linux_add_process): New.
19296 (handle_extended_wait): Adjust.
19297 (add_lwp): Change unsigned long to ptid.
19298 (linux_create_inferior): Add process to processes table. Adjust
19299 to use ptids. Don't set new_inferior here.
19300 (linux_attach_lwp): Rename to ...
19301 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19302 it. Adjust to use ptids.
19303 (linux_attach_lwp): New.
19304 (linux_attach): Add process to processes table. Don't set
19305 new_inferior here.
19306 (struct counter): New.
19307 (second_thread_of_pid_p, last_thread_of_process_p): New.
19308 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19309 multiple processes.
19310 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19311 processes. Remove process from process table.
19312 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19313 to multiple processes.
19314 (any_thread_of): New.
19315 (linux_detach): Add `pid' argument, and handle it. Remove process
19316 from processes table.
19317 (linux_join): Add `pid' argument. Handle it.
19318 (linux_thread_alive): Change unsighed long argument to ptid_t.
19319 Consider dead lwps as not being alive.
19320 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19321 threads we're not interested in.
19322 (same_lwp, find_lwp_pid): New.
19323 (linux_wait_for_lwp): Change `pid' argument's type from int to
19324 ptid_t. Adjust.
19325 (linux_wait_for_event): Rename to ...
19326 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19327 from int to ptid_t. Adjust.
19328 (linux_wait_for_event): New.
19329 (linux_wait_1): Add `ptid' argument. Change return type to
19330 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19331 that exit from the process table.
19332 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19333 Adjust.
19334 (mark_lwp_dead): New.
19335 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19336 stopping all threads, mark its main lwp as dead.
19337 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19338 ptids.
19339 (fetch_register, usr_store_inferior_registers)
19340 (regsets_fetch_inferior_registers)
19341 (regsets_store_inferior_registers, linux_read_memory)
19342 (linux_write_memory): Inline `inferior_pid'.
19343 (linux_look_up_symbols): Adjust to use per-process
19344 `thread_db_active'.
19345 (linux_request_interrupt): Adjust to use ptids.
19346 (linux_read_auxv): Inline `inferior_pid'.
19347 (initialize_low): Don't reference thread_db_active.
19348 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19349 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19350 (ps_getpid): Return the pid of the current inferior.
19351 * thread-db.c (proc_handle, thread_agent): Delete.
19352 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19353 per-process data.
19354 (find_one_thread): Change argument type to ptid_t. Adjust to
19355 per-process data.
19356 (maybe_attach_thread): Adjust to per-process data and ptids.
19357 (thread_db_find_new_threads): Ditto.
19358 (thread_db_init): Ditto.
19359 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19360 processes table. Adjust to use ptids.
19361 (spu_kill, spu_detach): Adjust interface. Remove process from
19362 processes table.
19363 (spu_join, spu_thread_alive): Adjust interface.
19364 (spu_wait): Adjust interface. Remove process from processes
19365 table. Adjust to use ptids.
19366 * win32-low.c (current_inferior_tid): Delete.
19367 (current_inferior_ptid): New.
19368 (debug_event_ptid): New.
19369 (thread_rec): Take a ptid. Adjust.
19370 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19371 (child_delete_thread): Ditto.
19372 (do_initial_child_stuff): Add `attached' argument. Add process to
19373 processes table.
19374 (child_fetch_inferior_registers, child_store_inferior_registers):
19375 Adjust.
19376 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19377 (win32_attach): Pass 1 to do_initial_child_stuff.
19378 (win32_kill): Adjust interface. Remove process from processes
19379 table.
19380 (win32_detach): Ditto.
19381 (win32_join): Adjust interface.
19382 (win32_thread_alive): Take a ptid.
19383 (win32_resume): Adjust to use ptids.
19384 (get_child_debug_event): Ditto.
19385 (win32_wait): Adjust interface. Remove exiting process from
19386 processes table.
19387
bd99dc85
PA
193882009-04-01 Pedro Alves <pedro@codesourcery.com>
19389
19390 Non-stop mode support.
19391
19392 * server.h (non_stop): Declare.
19393 (gdb_client_data, handler_func): Declare.
19394 (delete_file_handler, add_file_handler, start_event_loop):
19395 Declare.
19396 (handle_serial_event, handle_target_event, push_event)
19397 (putpkt_notif): Declare.
19398 * target.h (enum resume_kind): New.
19399 (struct thread_resume): Replace `step' field by `kind' field.
19400 (TARGET_WNOHANG): Define.
19401 (struct target_ops) <wait>: Add `options' argument.
19402 <supports_non_stop, async, start_non_stop>: New fields.
19403 (target_supports_non_stop, target_async): New.
19404 (start_non_stop): Declare.
19405 (mywait): Add `options' argument.
19406 * target.c (mywait): Add `options' argument. Print child exit
19407 notifications here.
19408 (start_non_stop): New.
19409 * server.c (non_stop, own_buf, mem_buf): New globals.
19410 (struct vstop_notif): New.
19411 (notif_queue): New global.
19412 (queue_stop_reply, push_event, discard_queued_stop_replies)
19413 (send_next_stop_reply): New.
19414 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19415 interface changes.
19416 (attach_inferior): In non-stop mode, don't wait for the target
19417 here.
19418 (handle_general_set): Handle QNonStop.
19419 (handle_query): When handling qC, return the current general
19420 thread, instead of the first thread of the list.
19421 (handle_query): If the backend supports non-stop mode, include
19422 QNonStop+ in the qSupported query response.
19423 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19424 and non-stop mode.
19425 (handle_v_attach, handle_v_run): Handle non-stop mode.
19426 (handle_v_stopped): New.
19427 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19428 (myresume): Adjust to use resume_kind. Handle non-stop.
19429 (queue_stop_reply_callback): New.
19430 (handle_status): Handle non-stop mode.
19431 (main): Clear non_stop flag on reconnection. Use the event-loop.
19432 Refactor serial protocol handling from here ...
19433 (process_serial_event): ... to this new function. When GDB
19434 selects any thread, select one here. In non-stop mode, wait until
19435 GDB acks all pending events before exiting.
19436 (handle_serial_event, handle_target_event): New.
19437 * remote-utils.c (remote_open): Install remote_desc in the event
19438 loop.
19439 (remote_close): Remove remote_desc from the event loop.
19440 (putpkt_binary): Rename to...
19441 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19442 (putpkt_binary): New as wrapper around putpkt_binary_1.
19443 (putpkt_notif): New.
19444 (prepare_resume_reply): In non-stop mode, don't change the
19445 general_thread.
19446 * event-loop.c: New.
19447 * Makefile.in (OBJ): Add event-loop.o.
19448 (event-loop.o): New rule.
19449
19450 * linux-low.h (pid_of): Moved here.
19451 (lwpid_of): New.
19452 (get_lwp_thread): Use lwpid_of.
19453 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19454 * linux-low.c (pid_of): Delete.
19455 (inferior_pid): Use lwpid_of.
19456 (linux_event_pipe): New.
19457 (target_is_async_p): New.
19458 (delete_lwp): New.
19459 (handle_extended_wait): Use lwpid_of.
19460 (add_lwp): Don't set lwpid field.
19461 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19462 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19463 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19464 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19465 first. Adjust to linux_wait_for_event interface changes. Use
19466 lwpid_of.
19467 (linux_detach): Don't delete the main lwp here.
19468 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19469 (status_pending_p): Don't consider explicitly suspended lwps.
19470 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19471 pointer. Add OPTIONS argument. Change return type to int. Use
19472 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19473 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19474 pointer. Add status pointer argument. Return a pid instead of a
19475 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19476 changes. In non-stop mode, don't switch to a random thread.
19477 (linux_wait): Rename to...
19478 (linux_wait_1): ... this. Add target_options argument, and handle
19479 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19480 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19481 clean exit and signal exit code. Don't stop all threads in
19482 non-stop mode. In all-stop mode, only stop all threads when
19483 reporting a stop to GDB. Handle explicit thread stop requests.
19484 (async_file_flush, async_file_mark): New.
19485 (linux_wait): New.
19486 (send_sigstop): Use lwpid_of.
19487 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19488 interface changes. In non-stop mode, don't switch to a random
19489 thread.
19490 (linux_resume_one_lwp): Use lwpid_of.
19491 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19492 (linux_resume_one_thread): ... this. Handle resume_stop. In
19493 non-stop mode, don't look for pending flag in all threads.
19494 (resume_status_pending_p): Don't consider explicitly suspended
19495 threads.
19496 (my_waitpid): Reimplement. Emulate __WALL.
19497 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19498 Use lwpid_of.
19499 (sigchld_handler, linux_supports_non_stop, linux_async)
19500 (linux_start_non_stop): New.
19501 (linux_target_ops): Register linux_supports_non_stop, linux_async
19502 and linux_start_non_stop.
19503 (initialize_low): Install SIGCHLD handler.
19504 * thread-db.c (thread_db_create_event, find_one_thread)
19505 (thread_db_get_tls_address): Use lwpid_of.
19506 * win32-low.c (win32_detach): Adjust to use resume_kind.
19507 (win32_wait): Add `options' argument.
19508 * spu-low.c (spu_resume): Adjust to use resume_kind.
19509 (spu_wait): Add `options' argument.
19510
5b1c542e
PA
195112009-04-01 Pedro Alves <pedro@codesourcery.com>
19512
19513 Decouple target code from remote protocol.
19514
19515 * target.h (enum target_waitkind): New.
19516 (struct target_waitstatus): New.
19517 (struct target_ops) <wait>: Return an unsigned long. Take a
19518 target_waitstatus pointer instead of a char pointer.
19519 (mywait): Likewise.
19520 * target.c (mywait): Change prototype to return an unsigned long.
19521 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19522 * server.h (thread_from_wait, old_thread_from_wait): Delete
19523 declarations.
19524 (prepare_resume_reply): Change prototype to take a
19525 target_waitstatus.
19526 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19527 (last_status, last_ptid): New.
19528 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19529 pid instead of a signal.
19530 (attach_inferior): Remove "status" and "signal" parameters.
19531 Adjust.
19532 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19533 not as an address.
19534 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19535 (handle_v_requests, myresume): Remove "status" and "signal"
19536 parameters. Adjust.
19537 (handle_status): New.
19538 (main): Delete local `status'. Adjust.
19539 * remote-utils.c: Include target.h.
19540 (prepare_resume_reply): Change prototype to take a
19541 target_waitstatus. Adjust.
19542
19543 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19544 interface.
19545 * spu-low.c (spu_wait): Adjust.
19546 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19547 Delete.
19548 (win32_wait): Adjust.
19549
2bd7c093
PA
195502009-04-01 Pedro Alves <pedro@codesourcery.com>
19551
19552 * target.h (struct thread_resume): Delete leave_stopped member.
19553 (struct target_ops): Add a `n' argument to the `resume' callback.
19554 * server.c (start_inferior): Adjust.
19555 (handle_v_cont, myresume): Adjust.
19556 * linux-low.c (check_removed_breakpoint): Adjust to resume
19557 interface change, and to removed leave_stopped field.
19558 (resume_ptr): Delete.
19559 (struct thread_resume_array): New.
19560 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19561 resume interface change.
19562 (linux_continue_one_thread, linux_queue_one_thread)
19563 (resume_status_pending_p): Check if the resume field is NULL
19564 instead of checking the leave_stopped member.
19565 (linux_resume): Adjust to the target resume interface change.
19566 * spu-low.c (spu_resume): Adjust to the target resume interface
19567 change.
19568 * win32-low.c (win32_detach, win32_resume): Ditto.
19569
c35fafde
PA
195702009-04-01 Pedro Alves <pedro@codesourcery.com>
19571
19572 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19573 flag.
19574 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19575 pending.
19576 (linux_continue_one_thread): Only preserve the stepping flag if
19577 there's a pending breakpoint.
19578
0a59d50b
PA
195792009-03-31 Pedro Alves <pedro@codesourcery.com>
19580
19581 * server.c (main): After the inferior having exited, call
19582 remote_close before exiting gdbserver.
19583
f04c6d38
TJB
195842009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19585
19586 Fix size of FPSCR in Power 7 processors.
19587 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19588 (PPC_FEATURE_HAS_DFP): New #define.
19589 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19590 size of the FPSCR.
19591
78e5cee6
PA
195922009-03-23 Pedro Alves <pedro@codesourcery.com>
19593
19594 * server.c (handle_query) Whitespace and formatting.
19595
1b3f6016
PA
195962009-03-22 Pedro Alves <pedro@codesourcery.com>
19597
19598 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19599 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19600 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19601 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19602 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19603 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19604 Makefile.in, configure.ac: Fix whitespace throughout.
19605 * configure: Regenerate.
19606
a07b2135
PA
196072009-03-22 Pedro Alves <pedro@codesourcery.com>
19608
19609 * inferiors.c (find_inferior): Make it safe for the callback
19610 function to delete the currently iterated inferior.
19611
67cc2626
PA
196122009-03-22 Pedro Alves <pedro@codesourcery.com>
19613
19614 * Makefile.in (linuw_low_h): Move higher.
19615 (thread-db.o): Depend on $(linux_low_h).
19616
54a0b537
PA
196172009-03-17 Pedro Alves <pedro@codesourcery.com>
19618
19619 Rename "process" to "lwp" throughout.
19620
19621 * linux-low.c (all_processes): Rename to...
19622 (all_lwps): ... this.
19623 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19624 (add_process): Rename to ...
19625 (add_lwp): ... this. Adjust.
19626 (linux_create_inferior): Adjust.
19627 (linux_attach_lwp): Adjust.
19628 (linux_attach): Adjust.
19629 (linux_kill_one_process): Rename to ...
19630 (linux_kill_one_lwp): ... this. Adjust.
19631 (linux_kill): Adjust.
19632 (linux_detach_one_process): Rename to ...
19633 (linux_detach_one_lwp): ... this. Adjust.
19634 (linux_detach): Adjust.
19635 (check_removed_breakpoint): Adjust.
19636 (status_pending_p): Adjust.
19637 (linux_wait_for_process): Rename to ...
19638 (linux_wait_for_lwp): ... this. Adjust.
19639 (linux_wait_for_event): Adjust.
19640 (send_sigstop): Adjust.
19641 (wait_for_sigstop): Adjust.
19642 (stop_all_processes): Rename to ...
19643 (stop_all_lwps): ... this.
19644 (linux_resume_one_process): Rename to ...
19645 (linux_resume_one_lwp): ... this. Adjust.
19646 (linux_set_resume_request, linux_continue_one_thread)
19647 (linux_queue_one_thread, resume_status_pending_p)
19648 (usr_store_inferior_registers, regsets_store_inferior_registers)
19649 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19650 Adjust.
19651 * linux-low.h (get_process): Rename to ...
19652 (get_lwp): ... this. Adjust.
19653 (get_thread_process): Rename to ...
19654 (get_thread_lwp): ... this. Adjust.
19655 (get_process_thread): Rename to ...
19656 (get_lwp_thread): ... this. Adjust.
19657 (struct process_info): Rename to ...
19658 (struct lwp_info): ... this.
19659 (all_processes): Rename to ...
19660 (all_lwps): ... this.
19661 * proc-service.c (ps_lgetregs): Adjust.
19662 * thread-db.c (thread_db_create_event, find_one_thread)
19663 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19664
0b16c5cf
PA
196652009-03-14 Pedro Alves <pedro@codesourcery.com>
19666
19667 * server.c (handle_query): Handle "qAttached".
19668
32de4b9d
NS
196692009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19670
19671 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19672 GPLv3, update license URL.
19673
2aecd87f
DE
196742009-03-01 Doug Evans <dje@google.com>
19675
93efd302 19676 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19677 (server_h): Add gdb_signals.h.
19678 (signals.o): Update.
19679 * server.h (target_signal_from_host,target_signal_to_host_p)
19680 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19681
86b1f9c5
PM
196822009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19683
19684 * remote-utils.c (getpkt): Also generate remote-debug
19685 information if noack_mode is set.
19686
4aa995e1
PA
196872009-02-06 Pedro Alves <pedro@codesourcery.com>
19688
19689 * server.c (handle_query): Report qXfer:siginfo:read and
19690 qXfer:siginfo:write as supported and handle them.
19691 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19692 * linux-low.c (linux_xfer_siginfo): New.
19693 (linux_target_ops): Set it.
19694
62709adf
PA
196952009-01-26 Pedro Alves <pedro@codesourcery.com>
19696
19697 * server.c (gdbserver_usage): Mention --remote-debug.
19698 (main): Accept '--remote-debug' switch.
19699
aef93bd7
DE
197002009-01-18 Doug Evans <dje@google.com>
19701
19702 * regcache.c (new_register_cache): No need to check result of xcalloc.
19703 * server.c (handle_search_memory): Back out calls to xmalloc,
19704 result is checked and error is returned to user upon failure.
19705 (handle_query): Ditto. Add more checks for result of malloc.
19706 (handle_v_cont): Check result of malloc, report error back to
19707 user upon failure.
19708 (handle_v_run): Ditto. Call freeargv.
19709 * server.h (freeargv): Declare.
19710 * utils.c (freeargv): New fn.
19711
54363045
DE
197122009-01-15 Doug Evans <dje@google.com>
19713
f626972c
DE
19714 * gdbreplay.c (perror_with_name): Make arg const char *.
19715 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19716 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19717 * utils.c (perror_with_name): Make arg const char *.
54363045 19718
18aae699
PA
197192009-01-14 Pedro Alves <pedro@codesourcery.com>
19720
19721 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19722 when handling a EXIT_PROCESS_DEBUG_EVENT.
19723
ff703abe
JB
197242009-01-06 Joel Brobecker <brobecker@adacore.com>
19725
19726 * gdbreplay.c (gdbreplay_version): Update copyright year.
19727 * server.c (gdbserver_version): Likewise.
19728
f21cc1a2 197292009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19730
19731 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19732 (handle_extended_wait): Improve comment.
0e21c1ec 19733
bca929d3
DE
197342008-12-13 Doug Evans <dje@google.com>
19735
19736 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19737 * server.h (ATTR_MALLOC): New macro.
19738 (xmalloc,xcalloc,xstrdup): Declare.
19739 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19740 * inferiors.c: Ditto.
19741 * linux-low.c: Ditto.
19742 * mem-break.c: Ditto.
19743 * regcache.c: Ditto.
19744 * remote-utils.c: Ditto.
19745 * server.c: Ditto.
19746 * target.c: Ditto.
19747 * win32-low.c: Ditto.
19748
97438e3f
DE
197492008-12-12 Doug Evans <dje@google.com>
19750
896c7fbb
DE
19751 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19752 in debugging printf.
19753
97438e3f
DE
19754 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19755
e3b886f8
DE
197562008-12-09 Doug Evans <dje@google.com>
19757
19758 * linux-low.h (struct process_info): Delete member tid, unused.
19759 * thread-db.c (find_one_thread): Update.
19760 (maybe_attach_thread): Update.
19761
07e059b5
VP
197622008-12-02 Pedro Alves <pedro@codesourcery.com>
19763
889bf7c5
PA
19764 * target.h (struct target_ops): Add qxfer_osdata member.
19765 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19766 and dirent.h.
19767 (linux_qxfer_osdata): New functions.
19768 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19769 callback.
19770 * server.c (handle_query): Handle "qXfer:osdata:read:".
19771 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19772 (buffer_xml_printf): New functions.
19773 * server.h (struct buffer): New.
19774 (buffer_grow_str, buffer_grow_str0): New macros.
19775 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19776 (buffer_xml_printf): Declare.
07e059b5 19777
4cab47ab
DE
197782008-11-24 Doug Evans <dje@google.com>
19779
19780 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19781
f142445f
DJ
197822008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19783
19784 * server.c (handle_v_run): Always use the supplied argument list.
19785
d0107bb6 197862008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19787
d0107bb6
BW
19788 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19789 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19790
2c4ad781
TJB
197912008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19792
19793 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19794 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19795 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19796 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19797 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19798 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19799 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19800 XML target descriptions.
19801 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19802 when inferior is running on an ISA 2.05 or later processor. Add
19803 special case to return offset for full 64-bit slot of FPSCR when
19804 in 32-bits.
19805
dfb64f85
DJ
198062008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19807
19808 * Makefile.in (SFILES, clean): Added sparc64 files.
19809 (reg-sparc64.o, reg-sparc64.c): New.
19810 * configure.srv (sparc*-*-linux*): New configuration.
19811 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19812 syscall arguments for SPARC.
19813 (regsets_store_inferior_registers): Likewise.
19814 * linux-sparc-low.c: New file.
19815
66b6e1dd
DE
198162008-10-21 Doug Evans <dje@google.com>
19817
19818 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19819 (READLINE_DIR,READLINE_DEP): Delete.
19820 (INTERNAL_CFLAGS): Update.
19821 (LINTFLAGS): Update.
19822
9b710a42
PA
198232008-10-10 Pedro Alves <pedro@codesourcery.com>
19824
19825 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19826 whole argv from the last run, not just argv[0].
19827
5822d809
PA
198282008-09-08 Pedro Alves <pedro@codesourcery.com>
19829
19830 * regcache.c (new_register_cache): Return NULL if the register
19831 cache size isn't known yet.
19832 (free_register_cache): Avoid dereferencing a NULL regcache.
19833
74aac56f
DJ
198342008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19835
19836 * configure.srv: Merge MIPS and MIPS64.
19837
400b20f5
MR
198382008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19839
19840 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19841
677c5bb1
LM
198422008-08-18 Luis Machado <luisgpm@br.ibm.com>
19843
19844 * Makefile.in: Add required vsx dependencies.
19845
19846 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19847 Declare init_registers_powerpc_vsx32l.
19848 Declare init_registers_powerpc_vsx64l.
19849 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19850 (ppc_arch_setup): Check for VSX in hwcap.
19851 (ppc_fill_vsxregset): New function.
19852 (ppc_store_vsxregset): New function.
19853 Add new VSX entry in regset_info target_regsets.
19854
19855 * configure.srv: Add new VSX dependencies.
19856
a6f3e723
SL
198572008-08-12 Pedro Alves <pedro@codesourcery.com>
19858
19859 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19860 (remote_open): Set or clear transport_is_reliable.
19861 (putpkt_binary): Don't expect acks in noack mode.
19862 (getpkt): Don't send ack/nac in noack mode.
19863 * server.c (handle_general_set): Handle QStartNoAckMode.
19864 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19865 qSupported.
19866 (main): Reset noack_mode on every connection.
19867 * server.h (noack_mode): Declare.
19868
a417dc56
RW
198692008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19870
19871 * Makefile.in (GDBREPLAY_OBS): New variable.
19872 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19873
3221518c
UW
198742008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19875 Daniel Jacobowitz <dan@codesourcery.com>
19876
19877 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19878 (usr_store_inferior_registers): Likewise.
19879 (regsets_store_inferior_registers): Likewise.
19880
ec56be1b
PA
198812008-07-31 Rolf Jansen <rj@surtec.com>
19882 Pedro Alves <pedro@codesourcery.com>
19883
19884 * configure.ac: Check for memmem declaration.
19885 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19886 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19887 (disable_packet_qfThreadInfo): Unconditionally compile.
19888 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19889 * configure, config.in: Regenerate.
19890
2fe5e3ff
DE
198912008-07-28 Doug Kwan <dougkwan@google.com>
19892
19893 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19894 (linux_write_memory): Remove declaration of errno.
19895
836acd6d
UW
198962008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19897
19898 * linux-low.c (handle_extended_wait): Do not use "status"
19899 variable uninitialized.
19900
aeba519e
PA
199012008-07-07 Pedro Alves <pedro@codesourcery.com>
19902
19903 * server.c (handle_v_attach): Inhibit reporting dll changes.
19904
db42f210
PA
199052008-06-27 Pedro Alves <pedro@codesourcery.com>
19906
19907 * remote-utils.c (prepare_resume_reply): If requested, don't
19908 output "thread:TID" in the T stop reply.
19909
19910 * server.c (disable_packet_vCont, disable_packet_Tthread)
19911 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19912 (handle_query): If requested, disable support for qC, qfThreadInfo
19913 and qsThreadInfo.
19914 (handle_v_requests): If requested, disable support for vCont.
19915 (gdbserver_show_disableable): New.
19916 (main): Handle --disable-packet and --disable-packet=LIST.
19917
19918 * server.h (disable_packet_vCont, disable_packet_Tthread)
19919 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19920
8e4c5421
CD
199212008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19922
19923 * server.c (gdbserver_usage): Mention --version.
19924
6e23a804
DJ
199252008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19926
19927 * Makefile.in (gdbreplay.o): New rule.
19928
90aa6a40
JM
199292008-06-06 Joseph Myers <joseph@codesourcery.com>
19930
19931 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19932 message, not gdbserver.
19933
c16158bc 199342008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19935 Nathan Sidwell <nathan@codesourcery.com>
19936 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19937
19938 * acinclude.m4: Include ../../config/acx.m4.
19939 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19940 * configure, config.in: Regenerate.
19941 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19942 * server.c (gdbserver_version): Print PKGVERSION.
19943 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19944 (main): Adjust gdbserver_usage calls.
19945 * gdbreplay.c (version, host_name): Add declarations.
19946 (gdbreplay_version, gdbreplay_usage): New.
19947 (main): Accept --version and --help options.
19948
aeb75bf5
DJ
199492008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19950
19951 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19952 (arm_breakpoint_at): Handle Thumb.
19953 (the_low_target): Add comment.
19954
76b233dd
UW
199552008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19956
19957 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19958
08388c79
DE
199592008-05-09 Doug Evans <dje@google.com>
19960
a3c83fae
DE
19961 * server.h (decode_search_memory_packet): Declare.
19962 * remote-utils.c (decode_search_memory_packet): New fn.
19963 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19964 (handle_search_memory): New fn.
19965 (handle_query): Process qSearch:memory packets.
19966
bb9c3d36
UW
199672008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19968
19969 * regcache.c (registers_length): Remove.
19970 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19971 full register packet.
19972 * regcache.h (registers_length): Remove prototype.
19973 * server.h (PBUFSIZ): Define to 16384.
19974
7284e1be
UW
199752008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19976
19977 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19978 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19979 powerpc-64l.o, and powerpc-altivec64l.o.
19980 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19981 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19982 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19983 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19984 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19985 to srv_xmlfiles.
19986
19987 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19988 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19989 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19990 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19991 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19992 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19993 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19994 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19995 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19996 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19997 (clean): Update.
19998
19999 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20000 (init_registers_powerpc_32l): ... this new prototype.
20001 (init_registers_powerpc_32): Remove, replace by ...
20002 (init_registers_powerpc_altivec32l): ... this new prototype.
20003 (init_registers_powerpc_e500): Remove, replace by ...
20004 (init_registers_powerpc_e500l): ... this new prototype.
20005 (init_registers_ppc64): Remove, replace by ...
20006 (init_registers_powerpc_64l): ... this new prototype.
20007 (init_registers_powerpc_64): Remove, replace by ...
20008 (init_registers_powerpc_altivec64l): ... this new prototype.
20009 (ppc_num_regs): Set to 73.
20010 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20011 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20012 (ppc_cannot_store_register): Handle orig_r3 and trap.
20013 (ppc_arch_setup): Update init_registers_... calls.
20014 (ppc_fill_gregset): Handle orig_r3 and trap.
20015
20016 * inferiors.c (clear_inferiors): Reset current_inferior.
20017
fdc59709
PB
200182008-04-23 Paolo Bonzini <bonzini@gnu.org>
20019
889bf7c5
PA
20020 * acinclude.m4: Add override.m4.
20021 * configure: Regenerate.
fdc59709 20022
c9b2f845
UW
200232008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20024
20025 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20026 initial call to init_register_ppc64.
20027
550512b8
UW
200282008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20029
43aaf8b6
PA
20030 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20031 single powerpc*-*-linux* case.
550512b8
UW
20032 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20033
b6430ec3
UW
200342008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20035
20036 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20037 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20038 from reg_xmlfiles.
20039 * linux-ppc-low.c: Include <elf.h>.
20040 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20041 (ppc_hwcap): New global variable.
20042 (ppc_regmap): Remove __SPE__ #ifdef sections.
20043 (ppc_regmap_e500): New global variable.
20044 (ppc_cannot_store_register): Update __SPE__ special case.
20045 (ppc_get_hwcap): New function.
20046 (ppc_arch_setup): Use it to determine whether inferior supports
20047 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20048 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20049 Do not access registers if target does not support AltiVec.
20050 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20051 Do not access registers if target does not support SPE.
20052 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20053
52fa2412
UW
200542008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20055
20056 * linux-low.c (disabled_regsets, num_regsets): New.
20057 (use_regsets_p): Delete.
20058 (linux_wait_for_process): Clear disabled_regsets.
20059 (regsets_fetch_inferior_registers): Check and set it.
20060 (regsets_store_inferior_registers): Likewise.
20061 (linux_fetch_registers, linux_store_registers): Do not use
20062 use_regsets_p.
20063 (initialize_low): Allocate disabled_regsets.
20064
e28b3332
DJ
200652008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20066
20067 * Makefile.in (LIBOBJS): New.
20068 (OBS): Use LIBOBJS.
20069 (memmem.o): New rule.
20070 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20071 * configure: Regenerated.
20072
4536995d
UW
200732008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20074
20075 * server.c (handle_query): Never return "unsupported" for
20076 qXfer:features:read queries.
20077
221c031f
UW
200782008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20079
20080 * server.c (get_features_xml): Fix inverted condition.
20081 (handle_query): Always support qXfer:feature:read.
20082
ccd213ac
DJ
200832008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20084
20085 * server.c (wrapper_argv): New.
20086 (start_inferior): Handle wrapper_argv. If set, expect an extra
20087 trap.
20088 (gdbserver_usage): Document --wrapper.
20089 (main): Parse --wrapper.
20090
6fe305f7
UW
200912008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20092
20093 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20094 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20095 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20096 (ppc_set_pc): Likewise.
20097 (ppc_arch_setup): New function.
20098 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20099 of collect_register.
889bf7c5 20100 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20101
5b0a002e
UW
201022008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20103
20104 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20105 instead of linux-ppc64-low.o.
20106 * linux-ppc64-low.c: Remove file.
20107 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20108 (linux-ppc64-low.o): Remove rule.
20109
20110 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20111 (init_registers_powerpc_64): Likewise.
20112 (ppc_regmap): Conditionally define depending on __powerpc64__.
20113 (ppc_cannot_store_register): Do not special-case "fpscr" when
20114 compiled on __powerpc64__.
20115 (ppc_collect_ptrace_register): New function.
20116 (ppc_supply_ptrace_register): New function.
20117 (ppc_breakpoint): Change type to "unsigned int".
20118 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20119 (the_low_target): Conditionally provide initializers for the
889bf7c5 20120 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20121 collect_ptrace_register and supply_ptrace_register members.
20122
9b4b61c8
UW
201232008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20124
20125 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20126 * server.c (gdbserver_xmltarget): Define.
20127 (get_features_xml): Use it to replace "target.xml" and arch_string.
20128
20129 * configure.srv: Remove srv_xmltarget. Add XML files that were
20130 mentioned there to srv_xmlfiles instead. Remove conditional tests
20131 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20132 srv_xmlfiles and srv_regobj to include all possible choices.
20133 * configure.ac (srv_xmltarget): Remove.
20134 (srv_xmlfiles): Do not add "target.xml".
20135 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20136 checks for supplementary target information.
20137 * configure: Regenerate.
20138 * Makefile.in (XML_TARGET): Remove.
20139 (target.xml): Remove rule.
20140 (clean): Do not clean up target.xml.
20141 (.PRECIOUS): Do not mention target.xml.
20142
20143 * target.h (struct target_ops): Remove arch_string member.
20144 * linux-low.c (linux_arch_string): Remove.
20145 (linux_target_ops): Remove arch_string initializer.
20146 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20147 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20148 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20149 * spu-low.c (spu_arch_string): Remove.
20150 (spu_target_ops): Remove arch_string initializer.
20151 * win32-low.c (win32_arch_string): Remove.
20152 (win32_target_ops): Remove arch_string initializer.
20153 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20154 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20155 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20156
ee1a7ae4
UW
201572008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20158
20159 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20160 by collect_ptrace_register and supply_ptrace_register hooks.
20161 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20162 instead of checking for the_low_target.left_pad_xfer.
20163 (usr_store_inferior_registers): Use collect_ptrace_register callback
20164 instead of checking for the_low_target.left_pad_xfer.
20165
20166 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20167 (s390_supply_ptrace_register): Likewise.
20168 (s390_fill_gregset): Call s390_collect_ptrace_register.
20169 (the_low_target): Update.
20170
20171 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20172 (ppc_supply_ptrace_register): Likewise.
20173 (the_low_target): Update.
20174
20175 * linux-i386-low.c (the_low_target): Update.
20176 * linux-x86-64-low.c (the_low_target): Update.
20177
d61ddec4
UW
201782008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20179
20180 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20181 reg-s390.o and reg-s390x.o.
20182
20183 * linux-low.c (new_inferior): New global variable.
20184 (linux_create_inferior, linux_attach): Set it.
20185 (linux_wait_for_process): Call the_low_target.arch_setup after the
20186 target has stopped for the first time.
20187 (initialize_low): Do not call the_low_target.arch_setup.
20188
20189 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20190 (s390_set_pc): Likewise.
20191 (s390_arch_setup): New function.
20192 (the_low_target): Use s390_arch_setup as arch_setup routine.
20193
20194 * regcache.c (realloc_register_cache): New function.
20195 (set_register_cache): Call it for each existing regcache.
20196
d05b4ac3
UW
201972008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20198
20199 * server.h (init_registers): Remove prototype.
20200
20201 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20202 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20203 instead of init_registers ().
20204 * linux-arm-low.c (init_registers_arm): Add prototype.
20205 (init_registers_arm_with_iwmmxt): Likewise.
20206 (the_low_target): Add initializer for arch_setup field.
20207 * linux-cris-low.c (init_registers_cris): Add prototype.
20208 (the_low_target): Add initializer for arch_setup field.
20209 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20210 (the_low_target): Add initializer for arch_setup field.
20211 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20212 (the_low_target): Add initializer for arch_setup field.
20213 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20214 (the_low_target): Add initializer for arch_setup field.
20215 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20216 (the_low_target): Add initializer for arch_setup field.
20217 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20218 (the_low_target): Add initializer for arch_setup field.
20219 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20220 (init_registers_mips64_linux): Likewise.
20221 (the_low_target): Add initializer for arch_setup field.
20222 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20223 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20224 (the_low_target): Add initializer for arch_setup field.
20225 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20226 (init_registers_powerpc_64): Likewise.
20227 (the_low_target): Add initializer for arch_setup field.
20228 * linux-s390-low.c (init_registers_s390): Add prototype.
20229 (init_registers_s390x): Likewise.
20230 (the_low_target): Add initializer for arch_setup field.
20231 * linux-sh-low.c (init_registers_sh): Add prototype.
20232 (the_low_target): Add initializer for arch_setup field.
20233 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20234 (the_low_target): Add initializer for arch_setup field.
20235 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20236 (the_low_target): Add initializer for arch_setup field.
20237
20238 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20239 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20240 instead of init_registers ().
20241 * win32-arm-low.c (init_registers_arm): Add prototype.
20242 (the_low_target): Add initializer for arch_setup field.
20243 * win32-i386-low.c (init_registers_i386): Add prototype.
20244 (the_low_target): Add initializer for arch_setup field.
20245
20246 * spu-low.c (init_registers_spu): Add prototype.
20247 (initialize_low): Call initialie_registers_spu () instead of
20248 initialize_registers ().
20249
fd96d250
PA
202502008-02-19 Pedro Alves <pedro@codesourcery.com>
20251
20252 * server.c (handle_v_requests): When handling the vRun and vAttach
20253 packets, if already debugging a process, don't kill it. Return an
20254 error instead.
20255
d41b6bb4
DJ
202562008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20257
20258 * server.c (handle_query): Correct length check.
20259
5ac588cf
PA
202602008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20261
20262 * win32-low.c (do_initial_child_stuff): Add process handle
20263 parameter. Set current_process_handle and current_process_id from the
20264 parameters. Clear globals.
20265 (win32_create_inferior): Don't set current_process_handle and
20266 current_process_id here. Instead pass them on the call to
20267 do_initial_child_stuff.
20268 (win32_attach): Likewise.
20269 (win32_clear_inferiors): New.
20270 (win32_kill): Don't close the current process handle or the
20271 current thread handle here. Instead call win32_clear_inferiors.
20272 (win32_detach): Don't open a new handle to the process. Call
20273 win32_clear_inferiors.
20274 (win32_join): Don't rely on current_process_handle; open a new
20275 handle using the process id.
20276 (win32_wait): Call win32_clear_inferiors when the inferior process
20277 has exited.
20278
ecd7ecbc
DJ
202792008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20280
20281 * server.c (monitor_show_help): Add "exit".
20282
1525d545
MG
202832008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20284
ecd7ecbc 20285 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20286 (clean): Add reg-xtensa.c.
20287 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20288 * configure.srv (xtensa*-*-linux*) New target.
20289 * linux-xtensa-low.c: New.
20290 * xtensa-xtregs.c: New.
1525d545 20291
59a016f0
PA
202922008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20293
20294 * hostio.c: Don't include errno.h.
20295 (errno_to_fileio_errno): Move to hostio-errno.
20296 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20297 error number outputting to the target->hostio_last_error callback.
20298 (hostio_packet_error): Use FILEIO_EINVAL directly.
20299 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20300 calls to hostio_error.
20301 * hostio-errno.c: New.
20302 * server.h (hostio_last_error_from_errno): Declare.
20303 * target.h (target_ops): Add hostio_last_error member.
20304 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20305 as hostio_last_error handler.
889bf7c5 20306 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20307 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20308 (wince_hostio_last_error): New functions.
20309 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20310 as hostio_last_error handler.
20311 (win32_target_ops) [!_WIN32_WCE]: Register
20312 hostio_last_error_from_errno as hostio_last_error handler.
20313 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20314 (hostio-errno.o): New rule.
20315 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20316 * configure.srv (srv_hostio_err_objs): New variable. Default to
20317 hostio-errno.o.
20318 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20319 * configure: Regenerate.
20320
2d717e4f
DJ
203212008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20322
20323 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20324 (linux_kill, linux_detach): Clean up the process list.
20325 * remote-utils.c (remote_open): Improve port number parsing.
20326 (putpkt_binary, input_interrupt): Only send interrupts if the target
20327 is running.
20328 * server.c (extended_protocol): Make static.
20329 (attached): Define earlier.
20330 (exit_requested, response_needed, program_argv): New variables.
20331 (target_running): New.
20332 (start_inferior): Clear attached here.
20333 (attach_inferior): Set attached here.
20334 (require_running): Define.
20335 (handle_query): Use require_running and target_running. Implement
20336 "monitor exit".
20337 (handle_v_attach, handle_v_run): New.
20338 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20339 (gdbserver_usage): Update.
20340 (main): Redo argument parsing. Handle --debug and --multi. Handle
20341 --attach along with other options or after the port. Save
20342 program_argv. Support no initial program. Resynchronize
20343 communication with GDB after an error. Handle "monitor exit".
20344 Use require_running and target_running. Always allow the extended
20345 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20346 restart in extended mode.
20347 * README: Refer to the GDB manual. Update --attach usage.
20348
7407e2de
AS
203492007-12-20 Andreas Schwab <schwab@suse.de>
20350
20351 * linux-low.c (STACK_SIZE): Define.
20352 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20353 (linux_test_for_tracefork): Likewise.
20354
b65d95c5
DJ
203552007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20356
20357 * linux-low.c (linux_wait_for_event): Update messages. Do not
20358 reinsert auto-delete breakpoints.
20359 * mem-break.c (struct breakpoint): Change return type of handler to
20360 int.
20361 (set_breakpoint_at): Update handler type.
20362 (reinsert_breakpoint_handler): Return 1 instead of calling
20363 delete_breakpoint.
20364 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20365 setting a new one.
20366 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20367 * mem-break.h (set_breakpoint_at): Update handler type.
20368 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20369 * win32-low.c (auto_delete_breakpoint): New.
20370 (get_child_debug_event): Use it.
20371
4e799345
DJ
203722007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20373
20374 * configure.ac: Check for pread and pwrite.
20375 * hostio.c (handle_pread): Fall back to lseek and read.
20376 (handle_pwrite): Fall back to lseek and write.
20377 * config.in, configure: Regenerated.
20378
27524b67
DJ
203792007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20380
20381 * server.c (myresume): Add own_buf argument.
20382 (main): Update calls.
20383
a20d5e98
DJ
203842007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20385
20386 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20387 * remote-utils.c (remote_open): Do not call disable_async_io.
20388 (block_async_io): Delete.
20389 (unblock_async_io): Make static.
20390 (initialize_async_io): New.
20391 * server.c (handle_v_cont): Handle async I/O here.
20392 (myresume): Likewise. Move other common resume tasks here...
20393 (main): ... from here. Call initialize_async_io. Disable async
20394 I/O before the main loop.
20395 * server.h (initialize_async_io): Declare.
20396 (block_async_io, unblock_async_io): Delete prototypes.
20397 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20398
b79d787e
DJ
203992007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20400
20401 * remote-utils.c (readchar): Allow binary data in received messages.
20402
d97903b2
PA
204032007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20404
20405 * win32-low.c (attaching): New global.
20406 (win32_create_inferior): Clear the `attaching' global.
20407 (win32_attach): Set the `attaching' global.
20408 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20409 attaching. Only set a breakpoint at the entry point if not
20410 attaching.
20411
311de423
PA
204122007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20413
20414 * server.c (main): Don't report dll events on the initial
20415 connection on attaches.
20416
6c2d16d2
PA
204172007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20418
20419 * server.c (main): Relax numerical bases supported for the pid of
20420 the --attach command line argument.
20421
5ca906e6
PA
204222007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20423
20424 * win32-low.c (win32_attach): Call OpenProcess before
20425 DebugActiveProcess, not after. Add last error output to error
20426 call.
20427
9c6c8194
PA
204282007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20429
20430 * win32-low.c (win32_get_thread_context)
20431 (win32_set_thread_context): New functions.
20432 (thread_rec): Use win32_get_thread_context.
20433 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20434 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20435 field.
20436
4d5d1aaa
PA
204372007-12-03 Leo Zayas
20438 Pedro Alves <pedro_alves@portugalmail.pt>
20439
20440 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20441 global variables.
20442 (child_add_thread): Minor cleanup.
20443 (child_continue): Resume artificially suspended threads before
20444 calling ContinueDebugEvent.
20445 (suspend_one_thread): New.
20446 (fake_breakpoint_event): New.
20447 (get_child_debug_event): Change return type to int. Check here if
20448 gdb sent an interrupt request. If a soft interrupt was requested,
20449 fake a breakpoint event. Return 0 if there is no event to handle,
20450 and 1 otherwise.
20451 (win32_wait): Don't check here if gdb sent an interrupt request.
20452 Ensure there is a valid event to handle.
20453 (win32_request_interrupt): Add soft interruption method as last
20454 resort.
20455
c436e841
PA
204562007-12-03 Leo Zayas
20457 Pedro Alves <pedro_alves@portugalmail.pt>
20458
20459 * win32-low.h (win32_thread_info): Add descriptions to the
20460 structure members. Replace `suspend_count' counter by a
20461 `suspended' flag.
20462 * win32-low.c (thread_rec): Update condition of when to get the
20463 context from the inferior. Rely on ContextFlags being set if it
20464 has already been retrieved. Only suspend the inferior thread if
20465 we haven't already. Warn if that fails.
20466 (continue_one_thread): s/suspend_count/suspended/. Only call
20467 ResumeThread once. Warn if that fails.
20468
e7b5fa67
PA
204692007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20470
20471 * win32-low.c (win32_wait): Don't read from the inferior when it
20472 has already exited.
20473
a385171d
PA
204742007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20475
20476 * Makefile.in (win32_low_h): New variable.
20477 (win32-low.o): Add dependency on $(win32_low_h).
20478 (win32-arm-low.o, win32-i386-low.o): New rules.
20479
f80c84b3
DJ
204802007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20481
20482 * hostio.c: Correct copyright year.
20483
a6b151f1
DJ
204842007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20485
20486 * Makefile.in (OBS): Add hostio.o.
20487 (hostio.o): New rule.
20488 * server.h (handle_vFile): Declare.
20489 * hostio.c: New file.
20490 * server.c (handle_v_requests): Take packet_len and new_packet_len
20491 for binary packets. Call handle_vFile.
20492 (main): Update call to handle_v_requests.
20493
f9387fc3
DJ
204942007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20495
20496 * linux-low.c: Include <sched.h>.
20497
51c2684e
DJ
204982007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20499
20500 * linux-low.c (linux_tracefork_grandchild): New.
20501 (linux_tracefork_child): Use clone.
20502 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20503
75f83163
JB
205042007-10-31 Joel Brobecker <brobecker@adacore.com>
20505
20506 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20507
da5898ce
DJ
205082007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20509
20510 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20511
24a09b5f
DJ
205122007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20513
20514 * inferiors.c (change_inferior_id): Delete.
20515 (add_pid_to_list, pull_pid_from_list): New.
20516 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20517 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20518 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20519 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20520 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20521 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20522 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20523 (using_threads): Always set to 1.
20524 (handle_extended_wait): New.
20525 (add_process): Do not set TID.
20526 (linux_create_inferior): Set must_set_ptrace_flags.
20527 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20528 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20529 (linux_thread_alive): Rename TID argument to LWPID.
20530 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20531 (linux_wait_for_event): Do not use TID or check using_threads. Update
20532 call to dead_thread_notify. Call handle_extended_wait.
20533 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20534 (send_sigstop): Delete sigstop_sent.
20535 (wait_for_sigstop): Avoid TID.
20536 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20537 (linux_test_for_tracefork): New.
20538 (linux_lookup_signals): Use thread_db_active and
20539 linux_supports_tracefork_flag.
20540 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20541 * linux-low.h (get_process_thread): Avoid TID.
20542 (struct process_ifo): Move thread_known and tid to the end. Remove
20543 sigstop_sent.
20544 (linux_attach_lwp, thread_db_init): Update prototypes.
20545 * server.h (change_inferior_id): Delete prototype.
20546 (add_pid_to_list, pull_pid_from_list): New prototypes.
20547 * thread-db.c (thread_db_use_events): New.
20548 (find_first_thread): Rename to...
20549 (find_one_thread): ...this. Update callers and messages. Do not
20550 call fatal. Check thread_db_use_events. Do not call
20551 change_inferior_id or new_thread_notify.
20552 (maybe_attach_thread): Update. Do not call new_thread_notify.
20553 (thread_db_init): Set thread_db_use_events. Check use_events.
20554 * utils.c (fatal, warning): Correct message prefix.
20555
30ed0a8f
DJ
205562007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20557
20558 * Makefile.in (clean): Remove new files.
20559 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20560 (powerpc-64.o, powerpc-64.c): New rules.
20561 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20562 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20563 with SPE.
20564 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20565 SPE targets.
20566 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20567 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20568 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20569 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20570 (target_regsets): Add AltiVec and SPE register sets.
20571 * configure.ac: Check for AltiVec and SPE.
20572 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20573 (ppc_fill_vrregset, ppc_store_vrregset): New.
20574 (target_regsets): Add AltiVec register set.
20575 * configure: Regenerated.
20576
fd462a61
DJ
205772007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20578
20579 * linux-low.c (O_LARGEFILE): Define.
20580 (linux_read_memory): Use /proc/PID/mem.
20581 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20582 * configure, config.in: Regenerated.
20583
69f223ed
DJ
205842007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20585
20586 * linux-low.c (linux_wait_for_event): Do not pass signals while
20587 single-stepping.
20588
aec18585
PA
205892007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20590
20591 * win32-low.c (create_process): New.
20592 (win32_create_inferior): Use create_process instead of
20593 CreateProcess. If create_process failed retry appending an ".exe"
20594 suffix. Store the GetLastError result immediatelly after
20595 create_process calls and use it on the call to error.
20596
34d86ddd
PA
205972007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20598
20599 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20600
5a0e3bd0
JB
206012007-08-23 Joel Brobecker <brobecker@adacore.com>
20602
20603 * configure.ac: Switch license to GPLv3.
20604
f88c79e6
MS
206052007-08-01 Michael Snyder <msnyder@access-company.com>
20606
20607 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20608
6b3d9b83
PA
206092007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20610
20611 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20612 typedef.
20613 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20614 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20615 CloseToolhelp32Snapshot.
20616 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20617 CloseToolhelp32Snapshot.
20618
c588c53c
MS
206192007-07-27 Michael Snyder <michael.snyder@access-company.com>
20620
20621 * server.c (main): Check for inferior exit before main loop.
20622
aa0403d9
PA
206232007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20624
20625 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20626 instead of on tmp_desc.
20627
255e7678
DJ
206282007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20629 Daniel Jacobowitz <dan@codesourcery.com>
20630
20631 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20632 (add_thread): Minor cleanups.
20633 (clear_inferiors): Move lower in the file. Clear the DLL
20634 list.
20635 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20636 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20637 (xml_escape_text): New.
20638 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20639 for qSupported.
20640 (handle_v_cont): Report errors.
20641 (gdbserver_version): Update.
20642 (main): Correct size of own_buf. Do not report initial DLL events.
20643 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20644 (unloaded_dll, xml_escape_text): New.
20645 * win32-low.c (enum target_waitkind): Update comments.
20646 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20647 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20648 (win32_EnumProcessModules, win32_GetModuleInformation)
20649 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20650 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20651 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20652 (win32_Module32First, win32_Module32Next, load_toolhelp)
20653 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20654 (get_child_debug_event): Handle DLL events.
20655 (win32_wait): Likewise.
20656
0d37add9
DJ
206572007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20658
20659 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20660 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20661
45e2715e
PA
206622007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20663
20664 * win32-low.c (handle_output_debug_string): Ignore event if not
20665 waiting.
20666
c5674cf1
PA
206672007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20668
20669 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20670
2bbe3cc1
DJ
206712007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20672
20673 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20674
ae13219e
DJ
206752007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20676
20677 * inferiors.c (change_inferior_id): Add comment.
20678 * linux-low.c (check_removed_breakpoint): Add an early
20679 prototype. Improve debug output.
20680 (linux_attach): Doc update.
20681 (linux_detach_one_process, linux_detach): Clean up before releasing
20682 each process.
20683 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20684 * linux-low.h (struct process_info): Doc improvement.
20685 * mem-break.c (delete_all_breakpoints): New.
20686 * mem-break.h (delete_all_breakpoints): New prototype.
20687 * thread-db.c (find_first_thread): New.
20688 (thread_db_create_event): Call it instead of
20689 thread_db_find_new_threads. Clean up unused variables.
20690 (maybe_attach_thread): Remove first thread handling.
20691 (thread_db_find_new_threads): Use find_first_thread.
20692 (thread_db_get_tls_address): Likewise.
20693
4105de34
DJ
206942007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20695
20696 * thread-db.c (thread_db_find_new_threads): Add prototype.
20697 (thread_db_create_event): Check for the main thread before adding
20698 a new thread.
20699 (maybe_attach_thread): Only enable event reporting if TID == 0.
20700 (thread_db_get_tls_address): Check for new threads.
20701
2b876972
DJ
207022007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20703
20704 * linux-low.c (linux_create_inferior): Try execv before execvp.
20705 * spu-low.c (spu_create_inferior): Likewise.
20706
7a245884
DJ
207072007-06-13 Mike Frysinger <vapier@gentoo.org>
20708
20709 * linux-low.c (linux_create_inferior): Change execv to execvp.
20710 * spu-low.c (spu_create_inferior): Likewies.
20711
117ce543
DJ
207122007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20713
20714 * Makefile.in (clean): Clean new files instead of deleted ones.
20715 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20716 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20717 rules.
20718 * configure.srv: Specify XML files and new regformats for MIPS and
20719 MIPS64 GNU/Linux.
20720 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20721 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20722 an entry for the restart register.
20723 (mips_cannot_fetch_register, mips_cannot_store_register)
20724 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20725 register names to match the XML descriptions.
20726 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20727 restart register instead of $0.
20728
0e7f50da
UW
207292007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20730 Markus Deuling <deuling@de.ibm.com>
20731
20732 * remote-utils.c (decode_xfer_write): New function.
20733 * server.h (decode_xfer_write): Add prototype.
20734 * server.c (handle_query): Add PACKET_LEN argument. Support
20735 qXfer:spu:read and qXfer:spu:write packets.
20736 (main): Pass packet_len to handle_query.
20737 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20738 * target.h (target_ops): Add qxfer_spu.
20739
374c1d38
UW
207402007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20741
20742 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20743 accessing non-seekable spufs files.
20744
bb63802a
UW
207452007-05-16 Markus Deuling <deuling@de.ibm.com>
20746
889bf7c5 20747 * server.c (handle_query): Add reply for qC packet.
bb63802a 20748
7390519e
PA
207492007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20750 Leo Zayas <lerele@champenstudios@com>
20751
20752 * server.h (check_remote_input_interrupt_request): New function.
20753 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20754 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20755 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20756 (check_remote_input_interrupt_request): New function.
20757 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20758 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20759 winapi_GenerateConsoleCtrlEvent): New typedefs.
20760 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20761 to 250 ms.
20762 (win32_wait): Check for remote interrupt request
20763 with check_remote_input_interrupt_request.
20764 (win32_request_interrupt): New function.
20765 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20766
34b34921
PA
207672007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20768
20769 * win32-low.c (debug_registers_changed,
20770 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20771 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20772 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20773 (thread_rec): Get context using the low target.
20774 (child_add_thread): Call thread_added on the low target,
20775 which does the same thing.
20776 (regptr): Delete.
20777 (do_initial_child_stuff): Remove debug registers references.
20778 Set context using the low target. Resume threads after
20779 setting the contexts.
20780 (child_continue): Remove dead variable. Remove debug
20781 registers references.
20782 (child_fetch_inferior_registers): Go through the low target.
20783 (do_child_store_inferior_registers): Remove.
20784 (child_store_inferior_registers): Go through the low target.
20785 (win32_resume): Remove debug registers references.
20786 Set context using the low target.
20787 (handle_exception): Change return type to void. Don't record
20788 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20789 first chance exception.
889bf7c5 20790 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20791 goto loop. Always return after waiting for debug event.
20792 (win32_wait): Convert to switch statement. Handle spurious
20793 events.
20794
20795 * win32-i386-low.c (debug_registers_changed,
20796 debug_registers_used): New.
20797 (initial_stuff): Rename to ...
20798 (i386_initial_stuff): ... this. Clear debug registers
20799 state variables.
20800 (store_debug_registers): Delete.
20801 (i386_get_thread_context): New.
20802 (load_debug_registers): Delete.
20803 (i386_set_thread_context): New.
20804 (i386_thread_added): New.
20805 (single_step): Rename to ...
20806 (i386_single_step): ... this.
20807 (do_fetch_inferior_registers): Rename to ...
20808 (i386_fetch_inferior_register): ... this.
20809 (i386_store_inferior_register): New.
20810 (the_low_target): Adapt to new interface.
20811
20812 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20813 (arm_get_thread_context): New.
20814 (arm_set_thread_context): New.
20815 (regptr): New.
20816 (do_fetch_inferior_registers): Rename to ...
20817 (arm_fetch_inferior_register): ... this.
20818 (arm_store_inferior_register): New.
20819 (arm_wince_breakpoint): Reimplement as unsigned long.
20820 (arm_wince_breakpoint_len): Define.
20821 (the_low_target): Adapt to new interface.
20822
20823 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20824 load_debug_registers. Add get_thread_context, set_thread_context,
20825 thread_added and store_inferior_register. Rename
20826 fetch_inferior_registers to fetch_inferior_register.
20827 (regptr): Remove declaration.
20828
dd6953e1
PA
208292007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20830
20831 * linux-low.c (linux_detach): Change return type to int. Return 0.
20832 * spu-low.c (spu_detach): Likewise.
20833
444d6139
PA
208342007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20835
20836 * target.h (target_ops): Change return type of detach to int.
20837 Add join.
20838 (join_inferior): New.
20839 * server.c (main): Don't skip detach support on mingw32.
20840 If the inferior doesn't support detaching return error.
20841 Call join_inferior instead of using waitpid.
20842 * linux-low.c (linux_join): New.
20843 (linux_target_op): Add linux_join.
20844 * spu-low.c (spu_join): New.
20845 (spu_target_ops): Add spu_join.
20846 * win32-low.c (win32_detach): Adapt to new interface.
20847 Reopen current_process_handle before detaching. Issue a child
20848 resume before detaching.
20849 (win32_join): New.
20850 (win32_target_op): Add win32_join.
20851
1d5315fe
PA
208522007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20853
20854 * win32-low.c (win32-attach): Fix return value.
20855 * target.h (target_ops): Describe ATTACH return values.
20856
bf914831
PA
208572007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20858
20859 * win32-low.c (GETPROCADDRESS): Define.
20860 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20861 (winapi_DebugSetProcessKillOnExit): Likewise.
20862 (win32_create_inferior): Force usage of ansi CreateProcessA.
20863 (win32_attach): Use GETPROCADDRESS.
20864 (win32_detach): Likewise.
20865
f72f3e60
PA
208662007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20867
20868 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20869
ed50f18f
PA
208702007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20871
20872 * win32-low.c: Commit leftover changes from 2007-03-29.
20873
0c2ead7e
DJ
208742007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20875
20876 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20877 fields short instead of int. Add explicit padding.
20878 (i387_cache_to_fsave): Remove unnecessary casts.
20879 (i387_fsave_to_cache): Doc fix.
20880 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20881
73725ff3
DJ
208822007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20883
20884 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20885 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20886
d99f33d8
PA
208872007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20888
20889 * configure.srv (arm*-*-mingw32ce*): Move near the other
20890 arm targets.
20891
68070c10
PA
208922007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20893
2482afc6 20894 * configure.ac: Add errno checking.
68070c10
PA
20895 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20896 sys/file.h and malloc.h.
20897 (AC_CHECK_DECLS): Add perror.
20898 (srv_mingwce): Handle.
2482afc6 20899 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20900 win32-i386-low.o to srv_tgtobj.
20901 (i[34567]86-*-mingw*): Likewise.
20902 (arm*-*-mingw32ce*): Add case.
20903 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20904 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20905 [__MINGW32CE__] (strerror): New function.
20906 [__MINGW32CE__] (errno): Define to GetLastError.
20907 [__MINGW32CE__] (COUNTOF): New macro.
20908 (remote_open): Remove extra close call.
20909 * mem-break.c (delete_breakpoint_at): New function.
20910 * mem-break.h (delete_breakpoint_at): Declare.
20911 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20912 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20913 [USE_WIN32API] (read, write): Add char* casts.
20914 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20915 * server.h: Include wincecompat.h on Windows CE.
20916 [HAVE_ERRNO_H]: Check.
20917 (perror): Declare if not declared.
20918 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20919 (perror_with_name): Remove errno declaration.
20920 * wincecompat.h: New.
20921 * wincecompat.c: New.
20922 * win32-low.h: New.
20923 * win32-arm-low.c: New.
20924 * win32-i386-low.c: New.
20925 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20926 (OUTMSG2): Make it safe.
20927 (_T): New macro.
20928 (COUNTOF): New macro.
20929 (NUM_REGS): Get it from the low target.
20930 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20931 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20932 (thread_rec): Let low target handle debug registers.
20933 (child_add_thread): Likewise.
20934 (child_init_thread_list): Likewise.
20935 (continue_one_thread): Likewise.
20936 (regptr): New.
20937 (do_child_fetch_inferior_registers): Move to ...
20938 * win32-i386-low.c: ... here, and rename to ...
20939 (do_fetch_inferior_registers): ... this.
889bf7c5 20940 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20941 Go through the low target.
20942 (do_child_store_inferior_registers): Use regptr.
20943 (strwinerror): New function.
20944 (win32_create_inferior): Handle Windows CE.
20945 Use strwinerror instead of strerror on Windows error
20946 codes. Add program to the error output.
20947 Don't close the main thread handle on Windows CE.
20948 (win32_attach): Use coredll.dll on Windows CE.
20949 (win32_kill): Close current process and current
20950 thread handles.
20951 (win32_detach): Use coredll.dll on Windows CE.
20952 (win32_resume): Let low target handle debug registers, and
20953 step request.
20954 (handle_exception): Add/Remove initial breakpoint. Avoid
20955 non-existant WSTOPSIG on Windows CE.
20956 (win32_read_inferior_memory): Cast to remove warning.
20957 (win32_arch_string): Go through the low target.
20958 (initialize_low): Call set_breakpoint_data with the low
20959 target's breakpoint.
20960 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20961 FOP_REGNUM, mappings): Move to ...
20962 * win32-i386-low.c: ... here.
20963 * win32-low.c (win32_thread_info): Move to ...
20964 * win32-low.h: ... here.
20965 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20966 win32-arm-low.c and wincecompat.c.
20967 (all:): Add $EXEEXT.
20968 (install-only:): Likewise.
20969 (gdbserver:): Likewise.
20970 (gdbreplay:): Likewise.
20971 * config.in: Regenerate.
20972 * configure: Regenerate.
20973
41093d81
PA
209742007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20975
20976 * win32-low.c: Rename typedef thread_info to
20977 win32_thread_info throughout.
20978
544afa54
PA
209792007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20980
20981 * win32-i386-low.c: Rename to ...
20982 * win32-low.c: ... this.
20983 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20984 * Makefile.in: Likewise.
20985
bce7165d
PA
209862007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20987
20988 * remote-utils.c (monitor_output): Constify msg parameter.
20989 * server.h (monitor_output): Likewise.
20990 * win32-i386-low.c (handle_output_debug_string): New.
20991 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20992 handle_output_debug_string.
20993 (get_child_debug_event): Likewise.
20994
506c7aa0
DJ
209952007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20996
20997 * server.c (main): Correct strtoul check.
20998
42c81e2a
DJ
209992007-03-27 Jon Ringle <jon@ringle.org>
21000
21001 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21002
9453113a
DJ
210032007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21004
21005 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21006
64a69107
DJ
210072007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21008
21009 * terminal.h: Check HAVE_SGTTY_H.
21010
210112007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21012
21013 * remote-utils.c (remote_open): Print out the assigned port number.
21014
c74d0ad8
DJ
210152007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21016
21017 * remote-utils.c (monitor_output): New function.
21018 * server.c (debug_threads): Define here.
21019 (monitor_show_help): New function.
21020 (handle_query): Handle qRcmd.
21021 (main): Do not handle 'd' packet.
21022 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21023 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21024 of debug_threads.
21025
de7c3b4a
PA
210262007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21027
21028 * Makefile.in (EXEEXT): New.
21029 (clean): Use $(EXEEXT).
21030
ef57601b
PA
210312007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21032
21033 * target.h (target_ops): Rename send_signal to request_interrupt,
21034 and remove enum target_signal parameter.
21035 * linux-low.c (linux_request_interrupt): Rename from
21036 linux_send_signal, and always send SIGINT.
21037 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21038 and always send SIGINT.
21039 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21040 of send_signal.
21041 (input_interrupt): Likewise.
21042
820f2bda
PA
210432007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21044
21045 * server.c (get_features_xml): Check if target implemented
21046 arch_string.
21047 * win32-i386-low.c (win32_arch_string): New.
21048 (win32_target_ops): Add win32_arch_string as arch_string member.
21049
ab39bf24
UW
210502007-02-22 Markus Deuling <deuling@de.ibm.com>
21051
21052 * spu-low.c (spu_arch_string): New.
21053 (spu_target_ops): Add spu_arch_string.
21054
61ff6e04
DJ
210552007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21056
21057 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21058 * configure.ac: Do not check for terminal.h.
21059 * configure, config.in: Regenerated.
21060
fb1e4ffc
DJ
210612007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21062
21063 * Makefile.in (OBS): Add $(XML_BUILTIN).
21064 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21065 (clean): Update.
21066 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21067 (arm-with-iwmmxt.c): New.
21068 * config.in, configure: Regenerate.
21069 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21070 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21071 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21072 (arm*-*-linux*): Add iWMMXt and regset support.
21073 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21074 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21075 (arm_store_wmmxregset, target_regsets): New.
21076 * server.c (get_features_xml): Take annex argument. Check builtin
21077 XML documents.
21078 (handle_query): Handle multiple annexes.
21079
0f48aa01
DJ
210802007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21081
21082 * remote-utils.c [USE_WIN32API] (read, write): Define.
21083 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21084 write.
21085
23181151
DJ
210862007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21087
21088 * linux-i386-low.c (the_low_target): Set arch_string.
21089 * linux-x86-64-low.c (the_low_target): Likewise.
21090 * linux-low.c (linux_arch_string): New.
21091 (linux_target_ops): Add it.
21092 * linux-low.h (struct linux_target_ops): Add arch_string.
21093 * server.c (write_qxfer_response): Use const void * for DATA.
21094 (get_features_xml): New.
21095 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21096 * target.h (struct target_ops): Add arch_string method.
21097
9d606399
DJ
210982007-01-03 Denis Pilat <denis.pilat@st.com>
21099 Daniel Jacobowitz <dan@codesourcery.com>
21100
21101 * linux-low.c (linux_kill): Handle being called with no threads.
21102 * win32-i386-low.c (win32_kill): Likewise.
21103 (get_child_debug_event): Clear current_process_handle.
21104
211052006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21106 Daniel Jacobowitz <dan@codesourcery.com>
21107
21108 * remote-utils.c (remote_open): Check the type of specified
21109 serial port devices before opening them.
21110 * server.c (main): Kill the inferior if an error occurs during
21111 the first remote_open.
21112
a5e13d24
DJ
211132006-12-05 Markus Deuling <deuling@de.ibm.com>
21114
21115 * README: Update supported targets.
21116
186947f7
DJ
211172006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21118
21119 * Makefile.in (clean): Remove reg-mips64.c.
21120 (reg-mips64.c, reg-mips64.o): New rules.
21121 * configure.srv: Handle mips64. Include regset support for mips.
21122 * linux-mips-low.c (union mips_register): New.
21123 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21124 (mips_breakpoint, mips_breakpoint_at): Use int.
21125 (mips_collect_register, mips_supply_register)
21126 (mips_collect_register_32bit, mips_supply_register_32bit)
21127 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21128 (mips_store_fpregset, target_regsets): New.
21129 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21130
a13e2c95
UW
211312006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21132
21133 * configure.srv: Add target "spu*-*-*".
21134 * Makefile.in (clean): Remove reg-spu.c.
21135 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21136 * spu-low.c: New file.
21137
cb7283db
DJ
211382006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21139
21140 * configure.ac: Correct td_thr_tls_get_addr test.
21141 * configure: Regenerated.
21142
89be2091
DJ
211432006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21144
21145 * linux-low.c (linux_wait_for_event): Reformat. Use the
21146 pass_signals array.
21147 * remote-utils.c (decode_address_to_semicolon): New.
21148 * server.c (pass_signals, handle_general_set): New.
21149 (handle_query): Mention QPassSignals for qSupported.
21150 (main): Call handle_general_set.
21151 * server.h (pass_signals, decode_address_to_semicolon): New.
21152
000ef4f0
DJ
211532006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21154
21155 * server.c (handle_query): Correct error handling for read_auxv.
21156
b7149293
UW
211572005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21158
21159 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21160 and srv_linux_thread_db to yes.
21161 * linux-s390-low.c (s390_fill_gregset): New function.
21162 (target_regsets): Define data structure.
21163
dae5f5cf
DJ
211642006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21165
21166 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21167 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21168 * config.in, configure: Regenerated.
21169 * inferiors.c (gdb_id_to_thread): New function.
21170 (gdb_id_to_thread_id): Use it.
21171 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21172 * linux-low.h (struct process_info): Add th member.
21173 (thread_db_get_tls_address): New prototype.
21174 * remote-utils.c (decode_address): Make non-static.
21175 * server.c (handle_query): Handle qGetTLSAddr.
21176 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21177 * target.h (struct target_ops): Add get_tls_address.
21178 * thread-db.c (maybe_attach_thread): Save the thread handle.
21179 (thread_db_get_tls_address): New.
21180
32ca6d61
DJ
211812006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21182
21183 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21184 (linux_resume_one_process): Take a siginfo_t *. Update all
21185 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21186 (struct pending_signals): Add a siginfo_t.
21187 (linux_wait_for_process): Always set last_status.
21188 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21189 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21190 * linux-low.h (struct process_info): Add last_status.
21191
5ffff7c1
DJ
211922006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21193
21194 * remote-utils.c (try_rle): New function.
21195 (putpkt_binary): Use it.
21196
8695c747
DJ
211972006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21198
21199 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21200 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21201 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21202 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21203 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21204 point registers.
21205
290fadea
RS
212062006-08-08 Richard Sandiford <richard@codesourcery.com>
21207
21208 * server.c (terminal_fd): New variable.
21209 (old_foreground_pgrp): Likewise.
21210 (restore_old_foreground_pgrp): New function.
21211 (start_inferior): Record the terminal file descriptor in terminal_fd
21212 and its original foreground group in old_foreground_pgrp. Register
21213 restore_old_foreground_pgrp with atexit().
21214
9f2e1e63
DJ
212152006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21216
21217 * server.c (handle_query): Correct qPart to qXfer.
21218
b80864fb
DJ
212192006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21220
21221 * configure.ac: Check for more headers which are missing on
21222 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21223 * configure.srv: Add Cygwin and mingw32.
21224 * remote-utils.c: Don't include headers unconditionally which
21225 are missing on mingw32. Include <winsock.h> for mingw32.
21226 (remote_open): Adjust for mingw32 support. Flush
21227 standard error after writing to it.
21228 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21229 (unblock_async_io, enable_async_io, disable_async_io)
21230 (readchar, getpkt): Update for Winsock support.
21231 (prepare_resume_reply): Expect a protocol signal number.
21232 * server.c: Disable <sys/wait.h> on mingw32.
21233 (start_inferior): Adjust for mingw32 support. Flush
21234 standard error after writing to it.
21235 (attach_inferior): Likewise. Use protocol signal
21236 numbers.
21237 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21238 and names.
21239 * win32-i386-low.c: New file.
21240 * Makefile.in (XM_CLIBS): Set.
21241 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21242 (win32-i386-low.o): New dependency rule.
21243 * linux-low.c (linux_wait): Use target signal numbers.
21244 * target.h (struct target_ops): Doc fix.
21245 * server.h (target_signal_to_name): New prototype.
21246 * gdbreplay.c: Don't include headers unconditionally which
21247 are missing on mingw32. Include <winsock.h> for mingw32.
21248 (remote_close, remote_open): Adjust for Winsock support.
21249 * configure, config.in: Regenerated.
21250
0876f84a
DJ
212512006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21252
21253 * server.c (decode_xfer_read, write_qxfer_response): New.
21254 (handle_query): Take a packet length argument. Handle
21255 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21256 the qSupported response.
21257 (main): Update call to handle_query.
21258
01f9e8fa
DJ
212592006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21260
21261 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21262 (putpkt_binary): Renamed from putpkt and adjusted for binary
21263 data.
21264 (putpkt): New wrapper for putpkt_binary.
21265 (readchar): Don't mask off the high bit.
21266 (decode_X_packet): New function.
21267 * server.c (main): Call putpkt_binary if a handler sets the packet
21268 length. Save the length of the incoming packet. Handle 'X'.
21269 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21270
be2a5f71
DJ
212712006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21272
21273 * server.c (handle_query): Handle qSupported.
21274
ea025f5f
DJ
212752006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21276
21277 * remote-utils.c (all_symbols_looked_up): New variable.
21278 (look_up_one_symbol): Check it.
21279 * server.h (look_up_one_symbol): New declaration.
21280 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21281
9308fc88
DJ
212822006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21283
21284 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21285 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21286 (PTRACE_GET_THREAD_AREA): Define.
21287 (ps_get_thread_area): New function.
21288
52fb6437
NS
212892006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21290
21291 * configure.srv (m68k*-*-uclinux*): New target.
21292 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21293 (linux_resume_one_process): Remove extraneous cast.
21294 (linux_read_offsets): New.
21295 (linux_target_op): Add linux_read_offsets on mmuless systems.
21296 * server.c (handle_query): Add qOffsets logic.
21297 * target.h (struct target_ops): Add read_offsets.
21298
21b0f40c
DJ
212992006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21300
21301 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21302 (PTRACE_GET_THREAD_AREA): Define.
21303 (ps_get_thread_area): New function.
21304 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21305 (linux-x86-64-low.o): Update.
21306
0050a760
DJ
213072006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21308
21309 * configure.ac: Remove checks for prfpregset_t.
21310 * gdb_proc_service.h: New file.
21311 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21312 new "gdb_proc_service.h".
21313 * proc-service.c: Likewise.
21314 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21315 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21316 * Makefile.in (gdb_proc_service_h): Updated.
21317 * configure, config.in: Regenerated.
21318
b92a518e
DJ
213192006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21320
21321 * remote-utils.c (prepare_resume_reply): Move declaration
21322 of gdb_id_from_wait to the top of the block.
21323
545587ee
DJ
213242006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21325
21326 * linux-low.c (regsets_store_inferior_registers): Read the regset
21327 from the target before filling it.
21328
9db87ebd
DJ
213292006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21330
21331 * server.c (attach_inferior): Return SIGTRAP for a successful
21332 attach.
21333
dd24457d
DJ
213342006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21335
21336 * Makefile.in (OBS): Add version.o.
21337 (STAGESTUFF): Delete.
21338 (version.o): Add dependencies.
21339 (version.c): Replace rule.
21340 (clean): Remove version.c.
21341 * server.c (gdbserver_version): New.
21342 (gdbserver_usage): Use printf.
21343 (main): Handle --version and --help.
21344 * server.h (version, host_name): Add declarations.
21345
6f0f660e
EZ
213462005-12-23 Eli Zaretskii <eliz@gnu.org>
21347
889bf7c5
PA
21348 * linux-arm-low.c:
21349 * linux-arm-low.c:
21350 * inferiors.c:
21351 * i387-fp.h:
21352 * i387-fp.c:
21353 * gdbreplay.c:
21354 * regcache.c:
21355 * proc-service.c:
21356 * mem-break.h:
21357 * mem-break.c:
21358 * linux-x86-64-low.c:
21359 * linux-sh-low.c:
21360 * linux-s390-low.c:
21361 * linux-ppc64-low.c:
21362 * linux-ppc-low.c:
21363 * linux-mips-low.c:
21364 * linux-m68k-low.c:
21365 * linux-m32r-low.c:
21366 * linux-low.h:
21367 * linux-low.c:
21368 * linux-ia64-low.c:
21369 * linux-i386-low.c:
21370 * linux-crisv32-low.c:
21371 * thread-db.c:
21372 * terminal.h:
21373 * target.h:
21374 * target.c:
21375 * server.h:
21376 * server.c:
21377 * remote-utils.c:
21378 * regcache.h:
21379 * utils.c:
21380 * Makefile.in:
21381 * configure.ac:
6f0f660e
EZ
21382 * gdbserver.1: Add (C) after Copyright. Update the FSF
21383 address.
21384
9d1fb177
DJ
213852005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21386
21387 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21388 (arm_breakpoint_at): Recognize both breakpoints.
21389 (the_low_target): Use the correct breakpoint instruction.
21390
011a70c2
DJ
213912005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21392
21393 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21394 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21395 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21396 (the_low_target): Update.
21397
7fb85e41
AS
213982005-10-25 Andreas Schwab <schwab@suse.de>
21399
21400 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21401
21402 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21403 (ia64_num_regs): Reduce to 462.
21404
3db0444b
DJ
214052005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21406
21407 * acinclude.m4: Correct quoting.
21408 * aclocal.m4: Regenerated.
21409
21410 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21411 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21412 (thread_db_init): Call thread_db_err_str.
21413 * configure.ac: Check for TD_VERSION.
21414 * config.in, configure: Regenerated.
21415
bee0189a
DJ
214162005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21417
21418 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21419
e9d25b98
DJ
214202005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21421
21422 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21423 is not available. Define HAVE_PTRACE_GETREGS if it is.
21424 * config.in, configure: Regenerated.
21425 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21426 * linux-i386-low.c, linux-m68k-low.c: Update to use
21427 HAVE_PTRACE_GETREGS.
21428 * linux-low.c (regsets_fetch_inferior_registers)
21429 (regsets_store_inferior_registers): Only return 0 if we processed
21430 GENERAL_REGS.
21431 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21432 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21433
a06660f7
DJ
214342005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21435
21436 * inferiors.c (struct thread_info): Add gdb_id.
21437 (add_thread): Add gdb_id argument.
21438 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21439 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21440 calls to add_thread.
21441 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21442 * server.c (handle_query): Use thread_to_gdb_id.
21443 (handle_v_cont, main): Use gdb_id_to_thread_id.
21444 * server.h (add_thread): Update prototype.
21445 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21446 prototypes.
21447
5a1f5858
DJ
214482005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21449
21450 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21451 left-padded registers.
21452 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21453 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21454
e122f1f5
SE
214552005-07-01 Steve Ellcey <sje@cup.hp.com>
21456
21457 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21458 * configure: Regenerate.
21459 * config.in: Regenerate.
21460 * server.h (NEED_DECLARATION_STRERROR):
21461 Replace with !HAVE_DECL_STRERROR.
21462
d592fa2f
DJ
214632005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21464
21465 * linux-low.c (linux_wait, linux_send_signal): Don't test
21466 an unsigned long variable for > 0 if it could be MAX_ULONG.
21467 * server.c (myresume): Likewise.
21468 * target.c (set_desired_inferior): Likewise.
21469
ccbd4912
MK
214702005-06-13 Mark Kettenis <kettenis@gnu.org>
21471
21472 * configure.ac: Simplify and improve check for socklen_t.
21473 * configure, config.in: Regenerate.
21474
f450004a
DJ
214752005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21476
21477 * acconfig.h: Remove.
21478 * configure.ac: Add a test for socklen_t. Use three-argument
21479 AC_DEFINE throughout.
21480 * config.in: Regenerated using autoheader 2.59.
21481 * configure: Regenerated.
21482
21483 * gdbreplay.c (socklen_t): Provide a default.
21484 (remote_open): Use socklen_t.
21485 * remote-utils.c (socklen_t): Provide a default.
21486 (remote_open): Use socklen_t.
21487 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21488 unsigned char.
21489
21490 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21491 char for buffers.
21492 * linux-low.c (linux_read_memory, linux_write_memory)
21493 (linux_read_auxv): Likewise.
21494 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21495 (check_mem_write): Likewise.
21496 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21497 Likewise.
21498 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21499 (registers_from_string, register_data): Likewise.
21500 * server.c (handle_query, main): Likewise.
21501 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21502 (decode_M_packet): Likewise.
21503 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21504 * target.h (struct target_ops): Update read_memory, write_memory,
21505 and read_auxv.
21506 (read_inferior_memory, write_inferior_memory): Update.
21507 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21508 to unsigned char *.
21509 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21510 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21511 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21512 linux-s390-low.c, linux-sh-low.c: Update for changes in
21513 read_inferior_memory and the_low_target->breakpoint.
21514
eee84df1
DJ
215152005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21516
21517 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21518 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21519 * configure.srv: Add powerpc64-*-linux*.
21520 * linux-ppc64-low.c: New file.
21521
45b134e5
OF
215222005-05-23 Orjan Friberg <orjanf@axis.com>
21523
21524 * linux-cris-low.c: New file with support for CRIS.
21525 * linux-crisv32-low.c: Ditto for CRISv32.
21526 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21527 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21528 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21529 reg-crisv32.o, and reg-crisv32.c to make rules.
21530 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21531 recognized targets.
21532
48d93c75
UW
215332005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21534
21535 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21536 of sizeof (PTRACE_XFER_TYPE).
21537 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21538
e013ee27
OF
215392005-05-12 Orjan Friberg <orjanf@axis.com>
21540
889bf7c5 21541 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21542 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21543 pointers for hardware watchpoint support.
21544 * linux-low.h (struct linux_target_ops): Ditto.
21545 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21546 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21547 to linux_target_ops.
21548 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21549 reply packet.
21550 * server.c (main): Recognize 'Z' and 'z' packets.
21551
b0ded00b
UW
215522005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21553
21554 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21555 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21556 (the_low_target): Add new members.
21557
8643e2ad
DJ
215582005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21559
21560 * proc-service.c (ps_lgetregs): Search all_processes instead of
21561 all_threads.
21562
fc620387
DJ
215632005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21564
21565 * server.c (start_inferior): Change return type to int.
21566 (attach_inferior): Change sigptr to int *.
21567 (handle_v_cont, handle_v_requests): Change signal to int *.
21568 (main): Change signal to int.
21569
215702005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21571
21572 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21573 * configure.srv: Add m32r*-*-linux*.
21574 * linux-m32r-low.c: New file.
21575
e0e76420
DJ
215762005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21577
21578 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21579
a1928bad
DJ
215802005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21581
21582 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21583 Take unsigned long arguments for PIDs.
21584 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21585 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21586 (wait_for_sigstop, linux_resume_one_process)
21587 (regsets_fetch_inferior_registers, linux_send_signal)
21588 (linux_read_auxv): Likewise. Update the types of variables holding
21589 PIDs. Update format string specifiers.
21590 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21591 * remote-utils.c (prepare_resume_reply): Likewise.
21592 * server.c (cont_thread, general_thread, step_thread)
21593 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21594 unsigned long.
21595 (handle_query): Update format specifiers.
21596 (handle_v_cont, main): Use strtoul for thread IDs.
21597 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21598 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21599 (general_thread, step_thread, thread_from_wait)
21600 (old_thread_from_wait): Update.
21601 * target.h (struct thread_resume): Use unsigned long for THREAD.
21602 (struct target_ops): Use unsigned long for arguments to attach and
21603 thread_alive.
21604
dcdb98d2
DJ
216052005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21606
21607 * acinclude.m4: Include bfd/bfd.m4 directly.
21608 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21609 <agriffis@toolchain.org>.
21610 * aclocal.m4, configure: Regenerated.
21611
bec39cab
AC
216122005-01-07 Andrew Cagney <cagney@gnu.org>
21613
21614 * configure.ac: Rename configure.in, require autoconf 2.59.
21615 * configure: Re-generate.
21616
434c4c77
DJ
216172004-12-08 Daniel Jacobowitz <dan@debian.org>
21618
21619 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21620 LIBS when finished.
21621 * aclocal.m4: Regenerated.
21622 * configure: Regenerated.
21623
db1d3e1b
AS
216242004-11-21 Andreas Schwab <schwab@suse.de>
21625
21626 * linux-m68k-low.c (m68k_num_gregs): Define.
21627 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21628 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21629 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21630 (m68k_breakpoint_at): New. Add to the_low_target.
21631
21632 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21633 srv_linux_thread_db to yes.
21634
43360365
JB
216352004-10-20 Joel Brobecker <brobecker@gnat.com>
21636
21637 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21638 (ARCH_SET_FS): Likewise.
21639 (ARCH_GET_FS): Likewise.
21640 (ARCH_GET_GS): Likewise.
21641
fd500816
DJ
216422004-10-16 Daniel Jacobowitz <dan@debian.org>
21643
21644 * linux-i386-low.c (ps_get_thread_area): New.
21645 * linux-x86-64-low.c (ps_get_thread_area): New.
21646 * linux-low.c: Include <sys/syscall.h>.
21647 (linux_kill_one_process): Don't kill the first thread here.
21648 (linux_kill): Kill the first thread here.
21649 (kill_lwp): New function.
21650 (send_sigstop, linux_send_signal): Use it.
21651 * proc-service.c: Clean up #ifdefs.
21652 (fpregset_info): Delete.
21653 (ps_lgetregs): Update and enable implementation.
21654 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21655 implementations.
21656 * remote-utils.c (struct sym_cache, symbol_cache): New.
21657 (input_interrupt): Print a clearer message.
21658 (async_io_enabled): New variable.
21659 (enable_async_io, disable_async_io): Use it. Update comments.
21660 (look_up_one_symbol): Use the symbol cache.
21661 * thread-db.c (thread_db_look_up_symbols): New function.
21662 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21663
f6de3c42
DJ
216642004-10-16 Daniel Jacobowitz <dan@debian.org>
21665
21666 * configure.in: Test for -rdynamic.
21667 * configure: Regenerated.
21668 * Makefile (INTERNAL_LDFLAGS): New.
21669 (gdbserver, gdbreplay): Use it.
21670
2c0fc042
AC
216712004-09-02 Andrew Cagney <cagney@gnu.org>
21672
21673 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21674
075b3282
DJ
216752004-03-23 Daniel Jacobowitz <drow@mvista.com>
21676
21677 * linux-low.c (linux_wait): Clear all_processes list also.
21678
fa6a77dc
DJ
216792004-03-12 Daniel Jacobowitz <drow@mvista.com>
21680
21681 * linux-low.c: Include <errno.h>. Remove extern declaration of
21682 errno.
21683
6d782a97
DJ
216842004-03-12 Daniel Jacobowitz <drow@mvista.com>
21685
21686 * gdbreplay.c, server.h, utils.c: Update copyright years.
21687
3a7fb99b
DJ
216882004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21689
21690 * server.c (main): Print child status or termination signal from
21691 variable 'signal', not 'sig'.
21692
c3e735a6
DJ
216932004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21694
21695 * linux-low.c (linux_read_memory): Change return type to
21696 int. Check for and return error from ptrace().
21697 * target.c (read_inferior_memory): Change return type to int. Pass
21698 back return status from the_target->read_memory().
21699 * target.h (struct target_ops): Adapt *read_memory() prototype.
21700 Update comment.
21701 (read_inferior_memory): Adapt prototype.
21702 * server.c (main): Return an error packet if
21703 read_inferior_memory() returns an error.
21704
a59d1c82
DJ
217052004-03-04 Daniel Jacobowitz <drow@mvista.com>
21706
21707 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21708 Unify with other clean targets.
21709
dc3f8883
DJ
217102004-02-29 Daniel Jacobowitz <drow@mvista.com>
21711
21712 * server.c (handle_v_cont): Call set_desired_inferior.
21713
89a208da
DJ
217142004-02-29 Daniel Jacobowitz <drow@mvista.com>
21715
21716 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21717
62ea82f5
DJ
217182004-02-29 Daniel Jacobowitz <drow@mvista.com>
21719
21720 * linux-low.c (linux_wait): Unblock async I/O.
21721 (linux_resume): Block and enable async I/O.
21722 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21723 * server.h (block_async_io, unblock_async_io): Add prototypes.
21724
6910d122
DJ
217252004-02-29 Daniel Jacobowitz <drow@mvista.com>
21726
21727 * remote-utils.c (remote_open): Print a status notice after
21728 opening a TCP port.
21729 * server.c (attach_inferior): Print a status notice after
21730 attaching.
21731
217322004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21733
21734 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21735
c89dc5d4
DJ
217362004-02-26 Daniel Jacobowitz <drow@mvista.com>
21737
21738 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21739 error packet.
21740 * server.c, target.h: Update copyright years.
21741
4b8dad4a
RM
217422004-02-25 Roland McGrath <roland@redhat.com>
21743
21744 * target.h (struct target_ops): New member `read_auxv'.
21745 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21746 * linux-low.c (linux_read_auxv): New function.
21747 (linux_target_ops): Initialize `read_auxv' member to that.
21748
d7446758
JB
217492004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21750
21751 Committed by Jim Blandy <jimb@redhat.com>.
21752
21753 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21754 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21755 instead of GPR_SIZE to distiguish s390 and s390x targets.
21756
5544ad89
DJ
217572004-01-31 Daniel Jacobowitz <drow@mvista.com>
21758
21759 * linux-low.c: Update copyright year.
21760 (check_removed_breakpoint): Clear pending_is_breakpoint.
21761 (linux_set_resume_request, linux_queue_one_thread)
21762 (resume_status_pending_p): New functions.
21763 (linux_continue_one_thread): Use process->resume.
21764 (linux_resume): Only resume threads if there are no pending events.
21765 * linux-low.h (struct process_info): Add resume request
21766 pointer.
21767
2a68b70e
DJ
217682004-01-30 Daniel Jacobowitz <drow@mvista.com>
21769
21770 * regcache.c (new_register_cache): Clear the allocated register
21771 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21772
64386c31
DJ
217732003-10-13 Daniel Jacobowitz <drow@mvista.com>
21774
21775 * linux-low.c (linux_resume): Take a struct thread_resume *
21776 argument.
21777 (linux_wait): Update call.
21778 (resume_ptr): New static variable.
21779 (linux_continue_one_thread): Renamed from
21780 linux_continue_one_process. Use resume_ptr.
21781 (linux_resume): Use linux_continue_one_thread.
21782 * server.c (handle_v_cont, handle_v_requests): New functions.
21783 (myresume): New function.
21784 (main): Handle 'v' case.
21785 * target.h (struct thread_resume): New type.
21786 (struct target_ops): Change argument of "resume" to struct
21787 thread_resume *.
21788 (myresume): Delete macro.
21789
c938e9b0
L
217902003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21791
21792 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21793 (uninstall): Support DESTDIR.
21794
7f313d07
BC
21795Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21796
21797 * configure.srv: Add xscale*linux copy of arm*linux entry.
21798
3b2fc2ea
DJ
217992003-07-24 Daniel Jacobowitz <drow@mvista.com>
21800
21801 * linux-arm-low.c (arm_reinsert_addr): New function.
21802 (the_low_target): Add arm_reinsert_addr.
21803
1c0a559e
MK
218042003-07-08 Mark Kettenis <kettenis@gnu.org>
21805
21806 * mem-break.c: Remove whitespace at end of file.
21807
43d5792c
DJ
218082003-06-28 Daniel Jacobowitz <drow@mvista.com>
21809
21810 * configure.in: Check whether we need to prototype strerror.
21811 * server.h: Optionally prototype strerror.
21812 * gdbreplay.c (perror_with_name): Use strerror.
21813 * linux-low.c (linux_attach_lwp): Use strerror.
21814 * utils.c (perror_with_name): Use strerror.
21815 * config.in, configure: Regenerated.
21816
c8a86edf
DJ
218172003-06-28 Daniel Jacobowitz <drow@mvista.com>
21818
21819 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21820 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21821
73d37363
DJ
218222003-06-20 Daniel Jacobowitz <drow@mvista.com>
21823
21824 * Makefile.in (SFILES): Update.
21825 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21826 low-sun3.c: Remove files.
21827
6ad8ae5c
DJ
218282003-06-17 Daniel Jacobowitz <drow@mvista.com>
21829
21830 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21831 (linux_detach_one_process, linux_detach): New functions.
21832 (linux_target_ops): Add linux_detach.
21833 * server.c (main): Handle 'D' packet.
21834 * target.h (struct target_ops): Add "detach" member.
21835 (detach_inferior): Define.
21836
1581182a
MK
218372003-06-13 Mark Kettenis <kettenis@gnu.org>
21838
21839 From Kelley Cook <kelleycook@wideopenwest.com>:
21840 * configure.srv: Accept i[34567]86 variants.
21841
e5379b03
DJ
218422003-06-05 Daniel Jacobowitz <drow@mvista.com>
21843
21844 * linux-low.c (linux_wait_for_event): Correct comment typos.
21845 (linux_resume_one_process): Call check_removed_breakpoint.
21846 (linux_send_signal): New function.
21847 (linux_target_ops): Add linux_send_signal.
21848 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21849 of kill.
21850 * target.h (struct target_ops): Add send_signal.
21851
2ff29de4
JB
218522003-05-29 Jim Blandy <jimb@redhat.com>
21853
21854 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21855 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21856 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21857 away part of the register's value.
21858
254787d4
DJ
218592003-03-26 Daniel Jacobowitz <drow@mvista.com>
21860
21861 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21862 (linux_wait_for_event, linux_init_signals): Likewise.
21863
94e10508
DJ
218642003-03-17 Daniel Jacobowitz <drow@mvista.com>
21865
21866 * configure.in: Check for stdlib.h.
21867 * configure: Regenerated.
21868 * config.in: Regenerated.
21869
4c0711e0
DJ
218702003-01-04 Andreas Schwab <schwab@suse.de>
21871
21872 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21873
ef66e766
AC
218742003-01-02 Andrew Cagney <ac131313@redhat.com>
21875
21876 * Makefile.in: Remove obsolete code.
21877
a1358604
DJ
218782002-11-20 Daniel Jacobowitz <drow@mvista.com>
21879
21880 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21881 defined(PT_FPR0_HI).
21882
23ce3b1c
DJ
218832002-11-17 Stuart Hughes <seh@zee2.com>
21884
21885 * linux-arm-low.c (arm_num_regs): Increase.
21886 (arm_regmap): Include status register.
21887
218882002-11-17 Daniel Jacobowitz <drow@mvista.com>
21889
21890 * linux-low.c (register_addr): Remove incorrect -1 check.
21891
a9fa9f7d
DJ
218922002-08-29 Daniel Jacobowitz <drow@mvista.com>
21893
21894 * linux-low.c (linux_create_inferior): Call setpgid. Return
21895 the new PID.
21896 (unstopped_p, linux_signal_pid): Remove.
21897 (linux_target_ops): Remove linux_signal_pid.
21898 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21899 global instead of target method.
21900 * target.h (struct target_ops): Remove signal_pid. Update comment
21901 for create_inferior.
21902 * server.c (signal_pid): New variable.
21903 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21904 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21905 (attach_inferior): Set signal_pid.
21906
17574093
DJ
219072002-08-23 Daniel Jacobowitz <drow@mvista.com>
21908
21909 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21910
219112002-08-20 Jim Blandy <jimb@redhat.com>
21912
21913 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21914 default for this.
21915
219162002-08-01 Andrew Cagney <cagney@redhat.com>
21917
21918 * Makefile.in: Make chill references obsolete.
21919
219202002-07-24 Kevin Buettner <kevinb@redhat.com>
21921
21922 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21923 * configure: Regenerate.
21924 * config.in: Regenerate.
21925
219262002-07-09 David O'Brien <obrien@FreeBSD.org>
21927
21928 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21929 (perror_with_name, remote_close, remote_open, expect, play): Static.
21930
219312002-07-04 Michal Ludvig <mludvig@suse.cz>
21932
4b8dad4a 21933 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21934 byte offsets instead of an array of indexes.
21935 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21936
219372002-06-13 Daniel Jacobowitz <drow@mvista.com>
21938
21939 * regcache.c: Add comment.
21940
219412002-06-11 Daniel Jacobowitz <drow@mvista.com>
21942
21943 * thread-db.c: New file.
21944 * proc-service.c: New file.
21945 * acinclude.m4: New file.
21946 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21947 proc-service.o, and thread-db.o.
21948 (linux-low.o): Add USE_THREAD_DB.
21949 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21950 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21951 * aclocal.m4: Regenerated.
21952 * config.in: Regenerated.
21953 * configure: Regenerated.
21954 * configure.in: Check for proc_service.h, sys/procfs.h,
21955 thread_db.h, and linux/elf.h headrs.
21956 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21957 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21958 Check for -lthread_db and thread support.
21959 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21960 PowerPC, and SuperH.
21961 * i387-fp.c: Constify arguments.
21962 * i387-fp.h: Likewise.
21963 * inferiors.c: (struct thread_info): Renamed from
21964 `struct inferior_info'. Remove PID member. Use generic inferior
21965 list header. All uses updated.
21966 (inferiors, signal_pid): Removed.
21967 (all_threads): New variable.
21968 (get_thread): Define.
21969 (add_inferior_to_list): New function.
21970 (for_each_inferior): New function.
21971 (change_inferior_id): New function.
21972 (add_inferior): Removed.
21973 (remove_inferior): New function.
21974 (add_thread): New function.
21975 (free_one_thread): New function.
21976 (remove_thread): New function.
21977 (clear_inferiors): Use for_each_inferior and free_one_thread.
21978 (find_inferior): New function.
21979 (find_inferior_id): New function.
21980 (inferior_target_data): Update argument type.
21981 (set_inferior_target_data): Likewise.
21982 (inferior_regcache_data): Likewise.
21983 (set_inferior_regcache_data): Likewise.
21984 * linux-low.c (linux_bp_reinsert): Remove.
21985 (all_processes, stopping_threads, using_thrads)
21986 (struct pending_signals, debug_threads, pid_of): New.
21987 (inferior_pid): Replace with macro.
21988 (struct inferior_linux_data): Remove.
21989 (get_stop_pc, add_process): New functions.
21990 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21991 Use add_process and add_thread.
21992 (linux_attach_lwp): New function, based on old linux_attach. Use
21993 add_process and add_thread. Set stop_expected for new threads.
21994 (linux_attach): New function.
21995 (linux_kill_one_process): New function.
21996 (linux_kill): Kill all LWPs.
21997 (linux_thread_alive): Use find_inferior_id.
21998 (check_removed_breakpoints, status_pending_p): New functions.
21999 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22000 Update. Use WNOHANG. Wait for cloned processes also. Update process
22001 struct for the found process.
22002 (linux_wait_for_event): New function.
22003 (linux_wait): Use it. Support LWPs.
22004 (send_sigstop, wait_for_sigstop, stop_all_processes)
22005 (linux_resume_one_process, linux_continue_one_process): New functions.
22006 (linux_resume): Support LWPs.
22007 (REGISTER_RAW_SIZE): Remove.
22008 (fetch_register): Use register_size instead. Call supply_register.
22009 (usr_store_inferior_registers): Likewise. Call collect_register.
22010 Fix recursive case.
22011 (regsets_fetch_inferior_registers): Improve error message.
22012 (regsets_store_inferior_registers): Add debugging.
22013 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22014 (unstopped_p, linux_signal_pid): New functions.
22015 (linux_target_ops): Add linux_signal_pid.
22016 (linux_init_signals): New function.
22017 (initialize_low): Call it. Initialize using_threads.
22018 * regcache.c (inferior_regcache_data): Add valid
22019 flag.
22020 (get_regcache): Fetch registers lazily. Add fetch argument
22021 and update all callers.
22022 (regcache_invalidate_one, regcache_invalidate): New
22023 functions.
22024 (new_register_cache): Renamed from create_register_cache.
22025 Return the new regcache.
22026 (free_register_cache): Change argument to a void *.
22027 (registers_to_string, registers_from_string): Call get_regcache
22028 with fetch flag set.
22029 (register_data): Make static. Pass fetch flag to get_regcache.
22030 (supply_register): Call get_regcache with fetch flag clear.
22031 (collect_register): Call get_regcache with fetch flag set.
22032 (collect_register_as_string): New function.
22033 * regcache.h: Update.
22034 * remote-utils.c (putpkt): Flush after debug output and use
22035 stderr.
22036 Handle input interrupts while waiting for an ACK.
22037 (input_interrupt): Use signal_pid method.
22038 (getpkt): Flush after debug output and use stderr.
22039 (outreg): Use collect_register_as_string.
22040 (new_thread_notify, dead_thread_notify): New functions.
22041 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22042 and general_thread.
22043 (look_up_one_symbol): Flush after debug output.
22044 * server.c (step_thread, server_waiting): New variables.
22045 (start_inferior): Don't use signal_pid. Update call to mywait.
22046 (attach_inferior): Update call to mywait.
22047 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22048 (main): Don't fetch/store registers explicitly. Use
22049 set_desired_inferior. Support proposed ``Hs'' packet. Update
22050 calls to mywait.
22051 * server.h: Update.
22052 (struct inferior_list, struct_inferior_list_entry): New.
22053 * target.c (set_desired_inferior): New.
22054 (write_inferior_memory): Constify.
22055 (mywait): New function.
22056 * target.h: Update.
22057 (struct target_ops): New signal_pid method.
22058 (mywait): Removed macro, added prototype.
22059
22060 * linux-low.h (regset_func): Removed.
22061 (regset_fill_func, regset_store_func): New.
22062 (enum regset_type): New.
22063 (struct regset_info): Add type field. Use new operation types.
22064 (struct linux_target_ops): stop_pc renamed to get_pc.
22065 Add decr_pc_after_break and breakpoint_at.
22066 (get_process, get_thread_proess, get_process_thread)
22067 (strut process_info, all_processes, linux_attach_lwp)
22068 (thread_db_init): New.
22069
22070 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22071 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22072 (the_low_target): Add new members.
22073 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22074 (i386_store_fpxregset): Constify.
22075 (target_regsets): Add new kind identifier.
22076 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22077 (i386_set_pc): Add debugging.
22078 (i386_breakpoint_at): New function.
22079 (the_low_target): Add new members.
22080 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22081 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22082 (mips_breakpoint_at): New.
22083 (the_low_target): Add new members.
22084 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22085 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22086 (the_low_target): Add new members.
22087 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22088 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22089 (the_low_target): Add new members.
22090 * linux-x86-64-low.c (target_regsets): Add new kind
22091 identifier.
22092
220932002-05-15 Daniel Jacobowitz <drow@mvista.com>
22094
22095 From Martin Pool <mbp@samba.org>:
22096 * server.c (gdbserver_usage): New function.
22097 (main): Call it.
22098
220992002-05-14 Daniel Jacobowitz <drow@mvista.com>
22100
22101 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22102 stop_at -> stop_pc.
22103
221042002-05-04 Andrew Cagney <ac131313@redhat.com>
22105
22106 * Makefile.in: Remove obsolete code.
22107
221082002-04-24 Michal Ludvig <mludvig@suse.cz>
22109
22110 * linux-low.c (regsets_fetch_inferior_registers),
22111 (regsets_store_inferior_registers): Removed cast to int from
22112 ptrace() calls.
22113 * regcache.h: Added declaration of struct inferior_info.
22114
221152002-04-20 Daniel Jacobowitz <drow@mvista.com>
22116
22117 * inferiors.c (struct inferior_info): Add regcache_data.
22118 (add_inferior): Call create_register_cache.
22119 (clear_inferiors): Call free_register_cache.
22120 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22121 * regcache.c (struct inferior_regcache_data): New.
22122 (registers): Remove.
22123 (get_regcache): New function.
22124 (create_register_cache, free_register_cache): New functions.
22125 (set_register_cache): Don't initialize the register cache here.
22126 (registers_to_string, registers_from_string, register_data): Call
22127 get_regcache.
22128 * regcache.h: Add prototypes.
22129 * server.h: Likewise.
22130
221312002-04-20 Daniel Jacobowitz <drow@mvista.com>
22132
22133 * mem-break.c: New file.
22134 * mem-break.h: New file.
22135 * Makefile.in: Add mem-break.o rule; update server.h
22136 dependencies.
22137 * inferiors.c (struct inferior_info): Add target_data
22138 member.
22139 (clear_inferiors): Free target_data member if set.
22140 (inferior_target_data, set_inferior_target_data): New functions.
22141 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22142 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22143 * linux-low.c (linux_bp_reinsert): New variable.
22144 (struct inferior_linux_data): New.
22145 (linux_create_inferior): Use set_inferior_target_data.
22146 (linux_attach): Likewise. Call add_inferior.
22147 (linux_wait_for_one_inferior): New function.
22148 (linux_wait): Call it.
22149 (linux_write_memory): Add const.
22150 (initialize_low): Call set_breakpoint_data.
22151 * linux-low.h (struct linux_target_ops): Add breakpoint
22152 handling members.
22153 * server.c (attach_inferior): Remove extra add_inferior
22154 call.
22155 * server.h: Include mem-break.h. Update inferior.c
22156 prototypes.
22157 * target.c (read_inferior_memory)
22158 (write_inferior_memory): New functions.
22159 * target.h (read_inferior_memory)
22160 (write_inferior_memory): Change macros to prototypes.
22161 (struct target_ops): Update comments. Add const to write_memory
22162 definition.
22163
221642002-04-11 Daniel Jacobowitz <drow@mvista.com>
22165
22166 * linux-low.c (usr_store_inferior_registers): Support
22167 registers which are allowed to fail to store.
22168 * linux-low.h (linux_target_ops): Likewise.
22169 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22170 (ppc_cannot_store_register): FPSCR may not be storable.
22171
221722002-04-09 Daniel Jacobowitz <drow@mvista.com>
22173
22174 * server.h: Include <string.h> if HAVE_STRING_H.
22175 * ChangeLog: Correct paths in last ChangeLog entry.
22176
221772002-04-09 Daniel Jacobowitz <drow@mvista.com>
22178
22179 * linux-low.h: Remove obsolete prototypes.
22180 (struct linux_target_ops): New.
22181 (extern the_low_target): New.
22182 * linux-low.c (num_regs, regmap): Remove declarations.
22183 (register_addr): Use the_low_target explicitly.
22184 (fetch_register): Likewise.
22185 (usr_fetch_inferior_registers): Likewise.
22186 (usr_store_inferior_registers): Likewise.
22187 * linux-arm-low.c (num_regs): Remove.
22188 (arm_num_regs): Define.
22189 (arm_regmap): Renamed from regmap, made static.
22190 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22191 made static.
22192 (arm_cannot_store_register): Renamed from cannot_store_register,
22193 made static.
22194 (the_low_target): New.
22195 * linux-i386-low.c (num_regs): Remove.
22196 (i386_num_regs): Define.
22197 (i386_regmap): Renamed from regmap, made static.
22198 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22199 made static.
22200 (i386_cannot_store_register): Renamed from cannot_store_register,
22201 made static.
22202 (the_low_target): New.
22203 * linux-ia64-low.c (num_regs): Remove.
22204 (ia64_num_regs): Define.
22205 (ia64_regmap): Renamed from regmap, made static.
22206 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22207 made static.
22208 (ia64_cannot_store_register): Renamed from cannot_store_register,
22209 made static.
22210 (the_low_target): New.
22211 * linux-m68k-low.c (num_regs): Remove.
22212 (m68k_num_regs): Define.
22213 (m68k_regmap): Renamed from regmap, made static.
22214 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22215 made static.
22216 (m68k_cannot_store_register): Renamed from cannot_store_register,
22217 made static.
22218 (the_low_target): New.
22219 * linux-mips-low.c (num_regs): Remove.
22220 (mips_num_regs): Define.
22221 (mips_regmap): Renamed from regmap, made static.
22222 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22223 made static.
22224 (mips_cannot_store_register): Renamed from cannot_store_register,
22225 made static.
22226 (the_low_target): New.
22227 * linux-ppc-low.c (num_regs): Remove.
22228 (ppc_num_regs): Define.
22229 (ppc_regmap): Renamed from regmap, made static.
22230 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22231 made static.
22232 (ppc_cannot_store_register): Renamed from cannot_store_register,
22233 made static.
22234 (the_low_target): New.
22235 * linux-s390-low.c (num_regs): Remove.
22236 (s390_num_regs): Define.
22237 (s390_regmap): Renamed from regmap, made static.
22238 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22239 made static.
22240 (s390_cannot_store_register): Renamed from cannot_store_register,
22241 made static.
22242 (the_low_target): New.
22243 * linux-sh-low.c (num_regs): Remove.
22244 (sh_num_regs): Define.
22245 (sh_regmap): Renamed from regmap, made static.
22246 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22247 made static.
22248 (sh_cannot_store_register): Renamed from cannot_store_register,
22249 made static.
22250 (the_low_target): New.
22251 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22252 (the_low_target): New.
22253
222542002-04-09 Daniel Jacobowitz <drow@mvista.com>
22255
22256 * Makefile.in: Add stamp-h target.
22257 * configure.in: Create stamp-h.
22258 * configure: Regenerated.
22259
222602002-04-09 Daniel Jacobowitz <drow@mvista.com>
22261
22262 * inferiors.c: New file.
22263 * target.c: New file.
22264 * target.h: New file.
22265 * Makefile.in: Add target.o and inferiors.o. Update
22266 dependencies.
22267 * linux-low.c (inferior_pid): New static variable,
22268 moved from server.c.
22269 (linux_create_inferior): Renamed from create_inferior.
22270 Call add_inferior. Return 0 on success instead of a PID.
22271 (linux_attach): Renamed from myattach.
22272 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22273 (linux_thread_alive): Renamed from mythread_alive.
22274 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22275 child dies.
22276 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22277 (regsets_store_inferior_registers): Correct error message.
22278 Add missing ``return 0''.
22279 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22280 (linux_store_registers): Renamed from store_inferior_registers.
22281 (linux_read_memory): Renamed from read_inferior_memory.
22282 (linux_write_memory): Renamed from write_inferior_memory.
22283 (linux_target_ops): New structure.
22284 (initialize_low): Call set_target_ops ().
22285 * remote-utils.c (unhexify): New function.
22286 (hexify): New function.
22287 (input_interrupt): Send signals to ``signal_pid''.
22288 * server.c (inferior_pid): Remove.
22289 (start_inferior): Update create_inferior call.
22290 (attach_inferior): Call add_inferior.
22291 (handle_query): New function.
22292 (main): Call handle_query for `q' packets.
22293 * server.h: Include "target.h". Remove obsolete prototypes.
22294 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22295
222962002-04-09 Daniel Jacobowitz <drow@mvista.com>
22297
22298 * Makefile.in: Add WARN_CFLAGS. Update configury
22299 dependencies.
22300 * configure.in: Check for <string.h>
22301 * configure: Regenerate.
22302 * config.in: Regenerate.
22303 * gdbreplay.c: Include needed system headers.
22304 (remote_open): Remove strchr prototype.
22305 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22306 * regcache.c (supply_register): Change buf argument to const void *.
22307 (supply_register_by_name): Likewise.
22308 (collect_register): Change buf argument to void *.
22309 (collect_register_by_name): Likewise.
22310 * regcache.h: Add missing prototypes.
22311 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22312 * server.c (handle_query): New function.
22313 (attached): New static variable, moved out of main.
22314 (main): Quiet longjmp clobber warnings.
22315 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22316 * utils.c (error): Remove NORETURN.
22317 (fatal): Likewise.