]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
gdb: allow specifying multiple filters when running selftests
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
ece5bc8a
SM
12020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * server.cc (captured_main): Accept multiple `--selftest=`
4 options. Pass all `--selftest=` arguments to run_tests.
5
c8693053
RO
62020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7
8 * configure, config.in: Regenerate.
9
05a6b8c2
EZ
102020-07-26 Eli Zaretskii <eliz@gnu.org>
11
12 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
13 When checking whether socklen_t type is defined, use ws2tcpip.h if
14 it is available and sys/socket.h isn't.
15 * configure: Regenerate.
16 * config.in: Regenerate.
17
028a4603
PA
182020-07-22 Pedro Alves <pedro@palves.net>
19
20 * inferiors.cc (switch_to_process): New, moved here from
21 thread-db.cc, and made extern.
22 * inferiors.h (switch_to_process): Declare.
23 * server.cc: Include "gdbsupport/scoped_restore.h".
24 (handle_qxfer_threads_proper): Now returns bool. Prepare to
25 access memory around target calls.
26 (handle_qxfer_threads): Handle errors.
27 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
28
05c309a8
SM
292020-07-21 Simon Marchi <simon.marchi@efficios.com>
30
31 * linux-low.cc (stopped_pids): Make static.
32
0e267416
AB
332020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
34
35 * tdesc.cc (allocate_target_description): Add header comment.
36 (target_desc_deleter::operator()): New function.
37 * tdesc.h (struct target_desc): Declare as final.
38
b315b67d
SM
392020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
40
41 * server.cc (handle_query): Use std::vector of
42 std::string for `qsupported` vector. Use separate
43 vector for unknowns.
44 * target.h (class process_stratum_target) <process_qsupported>:
45 Change parameters to array_view of const char *.
46 (target_process_qsupported): Remove `count` parameter.
47 * target.cc (process_stratum_target::process_qsupported): Change
48 parameters to array_view of const char *.
49 * linux-x86-low.cc (class x86_target) <process_qsupported>:
50 Likewise.
51
f638ed73
TV
522020-06-29 Tom de Vries <tdevries@suse.de>
53
54 * ax.h: Include gdbsupport/debug_agent.h.
55
fbf42f4e
AB
562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * tdesc.cc (struct tdesc_compatible_info): New struct.
59 (tdesc_compatible_info_list): New function.
60 (tdesc_compatible_info_arch_name): New function.
61
013e3554
TBA
622020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
63
64 Use std::list to stop pending signal instead of manually-created
65 linked list.
66 * linux-low.h: Include <list>.
67 (struct pending_signal): Move here from linux-low.cc.
68 (struct lwp_info) <pending_signals>
69 <pending_signals_to_report>: Update the type.
70 * linux-low.cc (struct pending_signals): Remove.
71 (linux_process_target::delete_lwp)
72 (linux_process_target::add_lwp)
73 (enqueue_one_deferred_signal)
74 (dequeue_one_deferred_signal)
75 (enqueue_pending_signal)
76 (linux_process_target::resume_one_lwp_throw)
77 (linux_process_target::thread_needs_step_over)
78 (linux_process_target::resume_one_thread)
79 (linux_process_target::proceed_one_lwp): Update the use of pending
80 signal list.
81
7d458ea5
SM
822020-06-17 Simon Marchi <simon.marchi@efficios.com>
83
84 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
85 Remove.
86
84b300de
SM
872020-06-12 Simon Marchi <simon.marchi@efficios.com>
88
89 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
90 * configure.srv: Remove mingw32ce cases.
91 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
92 * win32-low.h (to_back_slashes): Remove.
93 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
94
96c16e2b
SM
952020-06-12 Simon Marchi <simon.marchi@efficios.com>
96
97 * Makefile.in (SFILES): linux-tile-low.cc.
98 * configure.srv: Remove tilegx case.
99 * linux-tile-low.cc: Remove.
100
bd1467ae
SM
1012020-06-12 Simon Marchi <simon.marchi@efficios.com>
102
103 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
104 * configure.srv: Remove m32r case.
105 * linux-m32r-low.cc: Remove.
106
7b46bf6f
SM
1072020-06-12 Simon Marchi <simon.marchi@efficios.com>
108
109 * Makefile.in (SFILES): Remove linux-cris-low.c.
110 * configure.srv: Remove cris cases.
111 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
112
1fa29f56
SM
1132020-06-12 Simon Marchi <simon.marchi@efficios.com>
114
115 * Makefile.in (SFILES): Remove linux-bfin-low.c.
116 * configure.srv: Remove bfin case.
117 * linux-bfin-low.cc: Remove.
118 * linux-low.cc: Remove BFIN-conditional code.
119
613f149a
SM
1202020-06-12 Simon Marchi <simon.marchi@efficios.com>
121
122 * configure: Re-generate.
123 * configure.ac: Remove srv_qnx test.
124 * configure.srv: Remove nto case.
125 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
126 * remote-utils.c: Remove __QNX__-guarded code.
127
fdb95bf5
SM
1282020-06-12 Simon Marchi <simon.marchi@efficios.com>
129
130 * configure: Re-generate.
131 * configure.ac: Remove srv_lynxos test.
132 * configure.srv: Remove lynxos cases.
133 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
134 Remove.
135
c00094dc
SM
1362020-06-12 Simon Marchi <simon.marchi@efficios.com>
137
138 * README: Fix a few outdated or incoherent things.
139
6479bf85
HD
1402020-05-27 Hannes Domani <ssbssa@yahoo.de>
141
142 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
143 (win32_clear_inferiors): Use open_process_used.
144 (get_child_debug_event): Likewise.
145
bea571eb
MW
1462020-05-25 Michael Weghorn <m.weghorn@posteo.de>
147
148 PR gdbserver/25893
149 * linux-low.cc (linux_process_target::create_inferior),
150 lynx-low.cc (lynx_process_target::create_inferior),
151 win32-low.cc (win32_process_target::create_inferior): Use
152 construct_inferior_arguments instead of stringify_argv
153 to get string representation which properly escapes
154 special characters.
155 * server.cc (handle_v_run): Just pass empty program arg
156 as such, since any further processing is now handled via
157 construct_inferior_arguments.
158
ace6b919
MW
1592020-05-25 Michael Weghorn <m.weghorn@posteo.de>
160
161 * nto-low.cc (nto_process_target::create_inferior): Pass
162 argv to spawnp function as char **.
163
b69ca137
MW
1642020-05-25 Michael Weghorn <m.weghorn@posteo.de>
165
166 * server.cc (captured_main), (handle_v_run): No longer
167 insert extra NULL element to args vector.
168
51e2cfa2
PA
1692020-05-23 Pedro Alves <palves@redhat.com>
170
171 * gdb-safe-ctype.h: New.
172
8bbf0394
TBA
1732020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
174
175 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
176 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
177 (ia64_target::low_breakpoint_at): Ditto.
178
01370779
HD
1792020-05-15 Hannes Domani <ssbssa@yahoo.de>
180
181 * win32-i386-low.cc (i386_supports_z_point_type): Handle
182 Z_PACKET_HW_BP z_type.
183 (i386_insert_point): Handle raw_bkpt_type type.
184 (i386_remove_point): Likewise.
185
7d186bc0
HD
1862020-04-30 Hannes Domani <ssbssa@yahoo.de>
187
188 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
189 Add arch/i386.o.
190 * win32-arm-low.cc (arm_num_regs): New function.
191 (struct win32_target_ops): Use arm_num_regs.
192 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
193 processes.
194 (i386_get_thread_context): Likewise.
195 (i386_prepare_to_resume): Likewise.
196 (i386_thread_added): Likewise.
197 (i386_single_step): Likewise.
198 (i386_fetch_inferior_register): Likewise.
199 (i386_store_inferior_register): Likewise.
200 (i386_arch_setup): Likewise.
201 (i386_win32_num_regs): New function.
202 (struct win32_target_ops): Use i386_win32_num_regs.
203 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
204 processes.
205 (win32_require_context): Likewise.
206 (child_add_thread): Likewise.
207 (do_initial_child_stuff): Likewise.
208 (continue_one_thread): Likewise.
209 (win32_process_target::resume): Likewise.
210 (load_psapi): Likewise.
211 (win32_add_all_dlls): Likewise.
212 (maybe_adjust_pc): Likewise.
213 (win32_process_target::qxfer_siginfo): Likewise.
214 (initialize_low): Likewise.
215 * win32-low.h (struct win32_target_ops): Change num_regs to
216 callback function.
217
1eb39914
SM
2182020-04-27 Simon Marchi <simon.marchi@efficios.com>
219
220 * configure.ac: Remove check for fs_base/gs_base in
221 user_regs_struct.
222 * configure: Re-generate.
223 * config.in: Re-generate.
224 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
225 x86_store_gregset): Adjust.
226
51ac8e22
HD
2272020-04-22 Hannes Domani <ssbssa@yahoo.de>
228
229 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
230 comparison.
231
a010605f
TT
2322020-04-16 Tom Tromey <tromey@adacore.com>
233
234 * win32-low.cc (windows_nat::handle_access_violation): New
235 function.
236
e2275c6e
SM
2372020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
238
239 * win32-low.cc (get_child_debug_event): Fix format string warning.
240
73944e9f
TT
2412020-04-13 Tom Tromey <tom@tromey.com>
242
243 * server.h (gdb_fildes_t): Remove typedef.
244 * remote-utils.c (remote_desc, list_desc): Now int.
245 (INVALID_DESCRIPTOR): Remove.
246 (gdb_connected, remote_close)
247 (check_remote_input_interrupt_request): Update.
248 * utils.h (pfildes): Don't declare.
249 * utils.c (pfildes): Remove.
250
55d7aec8
TT
2512020-04-13 Tom Tromey <tom@tromey.com>
252
253 * server.h (handle_serial_event, handle_target_event): Update.
254 * server.c: Don't call initialize_event_loop.
255 (keep_processing_events): New global.
256 (handle_serial_event): Return void. Set keep_processing_events.
257 (handle_target_event): Return void.
258 (start_event_loop): Move from event-loop.c. Rewrite.
259 * remote-utils.c (handle_accept_event): Return void.
260 (reset_readchar): Use delete_timer.
261 (process_remaining): Return void.
262 (reschedule): Use create_timer.
263 * event-loop.h: Remove.
264 * event-loop.cc: Remove.
265 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
266
e487f994
TT
2672020-04-13 Tom Tromey <tom@tromey.com>
268
269 * server.c (invoke_async_signal_handlers)
270 (check_async_event_handlers, flush_streams, gdb_select): New
271 functions.
272
8ae8e197
TT
2732020-04-13 Tom Tromey <tom@tromey.com>
274
275 * configure: Rebuild.
276 * config.in: Rebuild.
277
360ad8b3
TT
2782020-04-08 Tom Tromey <tromey@adacore.com>
279
280 PR gdb/22992
281 * win32-low.c (child_continue): Call matching_pending_stop.
282 (get_child_debug_event): Call fetch_pending_stop. Push pending
283 stop when needed.
284
523d4f80
TT
2852020-04-08 Tom Tromey <tromey@adacore.com>
286
287 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
288 (win32_process_target::supports_stopped_by_sw_breakpoint):
289 Declare.
290 * win32-low.c (win32_supports_z_point_type): Always handle
291 Z_PACKET_SW_BP.
292 (win32_insert_point): Call insert_memory_breakpoint when needed.
293 (win32_remove_point): Call remove_memory_breakpoint when needed.
294 (win32_process_target::stopped_by_sw_breakpoint)
295 (win32_process_target::supports_stopped_by_sw_breakpoint): New
296 methods.
297 (win32_target_ops): Update.
298 (maybe_adjust_pc): New function.
299 (win32_wait): Call maybe_adjust_pc.
300
e54e5929
TT
3012020-04-08 Tom Tromey <tromey@adacore.com>
302
303 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
304 field.
305 * win32-i386-low.c (the_low_target): Update.
306 * win32-arm-low.c (the_low_target): Update.
307
d6225aff
TT
3082020-04-08 Tom Tromey <tromey@adacore.com>
309
310 * win32-low.h (win32_process_target::read_pc)
311 (win32_process_target::write_pc): Declare.
312 * win32-low.c (win32_process_target::read_pc)
313 (win32_process_target::write_pc): New methods.
314 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
315 functions.
316 (the_low_target): Update.
317 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
318 functions.
319 (the_low_target): Update.
320
2c1d95e8
TT
3212020-04-08 Tom Tromey <tromey@adacore.com>
322
323 * win32-low.c (win32_kill, get_child_debug_event): Use
324 wait_for_debug_event.
325
e758e19c
TT
3262020-04-08 Tom Tromey <tromey@adacore.com>
327
328 * win32-low.c (child_continue): Call continue_last_debug_event.
329
8d30e395
TT
3302020-04-08 Tom Tromey <tromey@adacore.com>
331
332 * win32-low.c (handle_exception): Remove.
333 (windows_nat::handle_ms_vc_exception): New function.
334 (get_child_debug_event): Add "continue_status" parameter.
335 Update.
336 (win32_wait): Update.
337
a816ba18
TT
3382020-04-08 Tom Tromey <tromey@adacore.com>
339
340 * win32-low.c (windows_nat::handle_load_dll): Rename from
341 handle_load_dll. No longer static.
342 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
343 No longer static.
344
d41b524f
TT
3452020-04-08 Tom Tromey <tromey@adacore.com>
346
347 * win32-low.c (handle_output_debug_string): Add parameter. Change
348 return type.
349 (win32_kill, get_child_debug_event): Update.
350
3c76026d
TT
3512020-04-08 Tom Tromey <tromey@adacore.com>
352
353 * win32-low.c (current_process_handle, current_process_id)
354 (main_thread_id, last_sig, current_event, siginfo_er): Move to
355 nat/windows-nat.c.
356
9d8679cc
TT
3572020-04-08 Tom Tromey <tromey@adacore.com>
358
359 * win32-low.c (get_image_name): Remove.
360 (handle_load_dll): Update.
361
28688adf
TT
3622020-04-08 Tom Tromey <tromey@adacore.com>
363
364 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
365 No longer static. Change parameters.
366 (child_add_thread, child_fetch_inferior_registers)
367 (child_store_inferior_registers, win32_resume)
368 (win32_get_tib_address): Update.
369
4834dad0
TT
3702020-04-08 Tom Tromey <tromey@adacore.com>
371
372 * win32-low.h (struct win32_target_ops): Use qualified names where
373 needed.
374 * win32-i386-low.c: Add "using namespace".
375 * win32-low.c: Add "using namespace".
376 * win32-arm-low.c: Add "using namespace".
377
65bafd5b
TT
3782020-04-08 Tom Tromey <tromey@adacore.com>
379
380 * win32-low.c (delete_thread_info): Don't call CloseHandle.
381
98a03287
TT
3822020-04-08 Tom Tromey <tromey@adacore.com>
383
384 * win32-low.c (win32_require_context, suspend_one_thread): Use
385 windows_thread_info::suspend.
386 (continue_one_thread): Use windows_thread_info::resume.
387 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
388
62fe396b
TT
3892020-04-08 Tom Tromey <tromey@adacore.com>
390
391 * win32-i386-low.c (update_debug_registers)
392 (i386_prepare_to_resume, i386_thread_added): Update.
393
e9534bd2
TT
3942020-04-08 Tom Tromey <tromey@adacore.com>
395
396 * win32-low.c (child_add_thread): Use new.
397 (delete_thread_info): Use delete.
398
ae1f8880
TT
3992020-04-08 Tom Tromey <tromey@adacore.com>
400
401 * win32-low.h (struct windows_thread_info): Remove.
402
e56f8ccb
TT
4032020-04-08 Tom Tromey <tromey@adacore.com>
404
405 * win32-low.h (struct windows_thread_info): Rename from
406 win32_thread_info. Remove typedef.
407 (struct win32_target_ops, win32_require_context): Update.
408 * win32-low.c (win32_get_thread_context)
409 (win32_set_thread_context, win32_prepare_to_resume)
410 (win32_require_context, thread_rec, child_add_thread)
411 (delete_thread_info, continue_one_thread)
412 (child_fetch_inferior_registers, child_store_inferior_registers)
413 (win32_resume, suspend_one_thread, win32_get_tib_address):
414 Update.
415 * win32-i386-low.c (update_debug_registers)
416 (win32_get_current_dr, i386_get_thread_context)
417 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
418 (i386_fetch_inferior_register, i386_store_inferior_register):
419 Update.
420 * win32-arm-low.c (arm_get_thread_context)
421 (arm_fetch_inferior_register, arm_store_inferior_register):
422 Update.
423
0dd7b52e
TBA
4242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
425
426 * linux-low.h (struct linux_target_ops): Remove.
427 (the_low_target): Remove.
428 * linux-x86-low.cc (the_low_target): Remove.
429 * linux-aarch64-low.cc (the_low_target): Ditto.
430 * linux-arm-low.cc (the_low_target): Ditto.
431 * linux-bfin-low.cc (the_low_target): Ditto.
432 * linux-cris-low.cc (the_low_target): Ditto.
433 * linux-crisv32-low.cc (the_low_target): Ditto.
434 * linux-ia64-low.cc (the_low_target): Ditto.
435 * linux-m32r-low.cc (the_low_target): Ditto.
436 * linux-m68k-low.cc (the_low_target): Ditto.
437 * linux-mips-low.cc (the_low_target): Ditto.
438 * linux-nios2-low.cc (the_low_target): Ditto.
439 * linux-ppc-low.cc (the_low_target): Ditto.
440 * linux-riscv-low.cc (the_low_target): Ditto.
441 * linux-s390-low.cc (the_low_target): Ditto.
442 * linux-sh-low.cc (the_low_target): Ditto.
443 * linux-sparc-low.cc (the_low_target): Ditto.
444 * linux-tic6x-low.cc (the_low_target): Ditto.
445 * linux-tile-low.cc (the_low_target): Ditto.
446 * linux-xtensa-low.cc (the_low_target): Ditto.
447
fc5ecdb6
TBA
4482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
449
450 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
451 linux target define the op by overriding the declaration in
452 process_stratum_target.
453
454 * linux-low.h (struct linux_target_ops): Remove the op.
455 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
456 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
457 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
458 (x86_get_ipa_tdesc_idx): Turn into...
459 (x86_target::get_ipa_tdesc_idx): ...this.
460 (the_low_target): Remove the op field.
461 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
462 (ppc_get_ipa_tdesc_idx): Turn into...
463 (ppc_target::get_ipa_tdesc_idx): ...this.
464 (the_low_target): Remove the op field.
465 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
466 (s390_get_ipa_tdesc_idx): Turn into...
467 (s390_target::get_ipa_tdesc_idx): ...this.
468 (the_low_target): Remove the op field.
469
9eedd27d
TBA
4702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
471
472 Turn the 'get_syscall_trapinfo' linux target op into a method
473 of process_stratum_target.
474
475 * linux-low.h (struct linux_target_ops): Remove the op.
476 (class linux_process_target) <get_syscall_trapinfo>
477 <gdb_catch_this_syscall>
478 <low_supports_catch_syscall>
479 <low_get_syscall_trapinfo>: Declare.
480 * linux-low.cc (get_syscall_trapinfo): Turn into...
481 (linux_process_target::get_syscall_trapinfo): ...this.
482 (linux_process_target::low_get_syscall_trapinfo): Define.
483 (gdb_catch_this_syscall_p): Turn into...
484 (linux_process_target::gdb_catch_this_syscall): ...this.
485 (linux_process_target::low_supports_catch_syscall): Define.
486
487 Update the callers below.
488
489 (linux_process_target::wait_1)
490 (linux_process_target::supports_catch_syscall)
491
492 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
493 <low_get_syscall_trapinfo>: Declare.
494 (x86_target::low_supports_catch_syscall): Define.
495 (x86_get_syscall_trapinfo): Turn into...
496 (x86_target::low_get_syscall_trapinfo): ...this.
497 (the_low_target): Remove the op field.
498 * linux-aarch64-low.cc (class aarch64_target)
499 <low_supports_catch_syscall>
500 <low_get_syscall_trapinfo>: Declare.
501 (aarch64_target::low_supports_catch_syscall): Define.
502 (aarch64_get_syscall_trapinfo): Turn into...
503 (aarch64_target::low_get_syscall_trapinfo): ...this.
504 (the_low_target): Remove the op field.
505 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
506 <low_get_syscall_trapinfo>: Declare.
507 (arm_target::low_supports_catch_syscall): Define.
508 (arm_get_syscall_trapinfo): Turn into...
509 (arm_target::low_get_syscall_trapinfo): ...this.
510 (the_low_target): Remove the op field.
511 * linux-ppc-low.cc (the_low_target): Remove the op field.
512 * linux-s390-low.cc (the_low_target): Remove the op field.
513
b31cdfa6
TBA
5142020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
515
516 Remove the 'supports_hardware_single_step' linux target op and
517 override the process_stratum_target's op definition in
518 linux_process_target to return true.
519
520 * linux-low.h (struct linux_target_ops): Remove the op.
521 (class linux_process_target) <finish_step_over>
522 <maybe_hw_step>: Declare.
523 * linux-low.cc (can_hardware_single_step): Remove.
524 (maybe_hw_step): Turn into...
525 (linux_process_target::maybe_hw_step): ...this.
526 (finish_step_over): Turn into...
527 (linux_process_target::finish_step_over): ...this.
528 (linux_process_target::supports_hardware_single_step): Update
529 to return true.
530
531 Update the callers below.
532
533 (linux_process_target::single_step)
534 (linux_process_target::resume_one_lwp_throw)
535
536 * linux-arm-low.cc (class arm_target)
537 <supports_hardware_single_step>: Declare.
538 (arm_supports_hardware_single_step): Turn into...
539 (arm_target::supports_hardware_single_step): ...this.
540 (the_low_target): Remove the op field.
541 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
542 (the_low_target): Remove the op field.
543 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
544 Remove.
545 (the_low_target): Remove the op field.
546 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
547 (the_low_target): Remove the op field.
548 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
549 (the_low_target): Remove the op field.
550 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
551 (the_low_target): Remove the op field.
552 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
553 (the_low_target): Remove the op field.
554 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
555 (the_low_target): Remove the op field.
556 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
557 (the_low_target): Remove the op field.
558 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
559 (the_low_target): Remove the op field.
560 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
561 (the_low_target): Remove the op field.
562 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
563 (the_low_target): Remove the op field.
564 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
565 Remove.
566 (the_low_target): Remove the op field.
567
9cfd8715
TBA
5682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
569
570 Turn the 'supports_range_stepping' linux target op into a method
571 of linux_process_target.
572
573 * linux-low.h (struct linux_target_ops): Remove the op.
574 (class linux_process_target) <low_supports_range_stepping>: Declare.
575 * linux-low.cc (linux_process_target::low_supports_range_stepping):
576 Define.
577 (linux_process_target::supports_range_stepping): Update the call
578 site.
579 * linux-x86-low.cc (class x86_target)
580 <low_supports_range_stepping>: Declare.
581 (x86_supports_range_stepping): Turn into...
582 (x86_target::low_supports_range_stepping): ...this.
583 (the_low_target): Remove the op field.
584 * linux-aarch64-low.cc (class aarch64_target)
585 <low_supports_range_stepping>: Declare.
586 (aarch64_supports_range_stepping): Turn into...
587 (aarch64_target::low_supports_range_stepping): ...this.
588 (the_low_target): Remove the op field.
589 * linux-arm-low.cc (the_low_target): Remove the op field.
590 * linux-bfin-low.cc (the_low_target): Ditto.
591 * linux-crisv32-low.cc (the_low_target): Ditto.
592 * linux-m32r-low.cc (the_low_target): Ditto.
593 * linux-m68k-low.cc (the_low_target): Ditto.
594 * linux-ppc-low.cc (the_low_target): Ditto.
595 * linux-s390-low.cc (the_low_target): Ditto.
596 * linux-sh-low.cc (the_low_target): Ditto.
597 * linux-tic6x-low.cc (the_low_target): Ditto.
598 * linux-tile-low.cc (the_low_target): Ditto.
599 * linux-xtensa-low.cc (the_low_target): Ditto.
600
ab64c999
TBA
6012020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
602
603 Remove the 'emit_ops' linux target ops and let the concrete
604 linux target define the op by overriding the declaration of
605 process_stratum_target.
606
607 * linux-low.h (struct linux_target_ops): Remove the op.
608 (class linux_process_target) <emit_ops>: Remove.
609 * linux-low.cc (linux_process_target::emit_ops): Remove.
610 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
611 (x86_emit_ops): Turn into...
612 (x86_target::emit_ops): ...this.
613 (the_low_target): Remove the op field.
614 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
615 (aarch64_emit_ops): Turn into...
616 (aarch64_target::emit_ops): ...this.
617 (the_low_target): Remove the op field.
618 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
619 (ppc_emit_ops): Turn into...
620 (ppc_target::emit_ops): ...this.
621 (the_low_target): Remove the op field.
622 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
623 (s390_emit_ops): Turn into...
624 (s390_target::emit_ops): ...this.
625 (the_low_target): Remove the op field.
626 * linux-arm-low.cc (the_low_target): Remove the op field.
627 * linux-bfin-low.cc (the_low_target): Ditto.
628 * linux-crisv32-low.cc (the_low_target): Ditto.
629 * linux-m32r-low.cc (the_low_target): Ditto.
630 * linux-m68k-low.cc (the_low_target): Ditto.
631 * linux-sh-low.cc (the_low_target): Ditto.
632 * linux-tic6x-low.cc (the_low_target): Ditto.
633 * linux-tile-low.cc (the_low_target): Ditto.
634 * linux-xtensa-low.cc (the_low_target): Ditto.
635
809a0c35
TBA
6362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
637
638 Remove the 'install_fast_tracepoint_jump_pad' and
639 'get_min_fast_tracepoint_insn_len' linux target ops to let the
640 concrete linux target define the ops by overriding the declarations
641 of process_stratum_target.
642
643 * linux-low.h (struct linux_target_ops): Remove the ops.
644 (class linux_process_target) <supports_fast_tracepoints>
645 <install_fast_tracepoint_jump_pad>
646 <get_min_fast_tracepoint_insn_len>: Remove.
647 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
648 (linux_process_target::install_fast_tracepoint_jump_pad)
649 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
650 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
651 <install_fast_tracepoint_jump_pad>
652 <get_min_fast_tracepoint_insn_len>: Declare.
653 (x86_target::supports_fast_tracepoints): Define.
654 (x86_install_fast_tracepoint_jump_pad): Turn into...
655 (x86_target::install_fast_tracepoint_jump_pad): ...this.
656 (x86_get_min_fast_tracepoint_insn_len): Turn into...
657 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
658 (the_low_target): Remove the op fields.
659 * linux-aarch64-low.cc (class aarch64_target)
660 <supports_fast_tracepoints>
661 <install_fast_tracepoint_jump_pad>
662 <get_min_fast_tracepoint_insn_len>: Declare.
663 (aarch64_target::supports_fast_tracepoints): Define.
664 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
665 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
666 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
667 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
668 (the_low_target): Remove the op fields.
669 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
670 <install_fast_tracepoint_jump_pad>
671 <get_min_fast_tracepoint_insn_len>: Declare.
672 (ppc_target::supports_fast_tracepoints): Define.
673 (ppc_install_fast_tracepoint_jump_pad): Turn into...
674 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
675 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
676 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
677 (the_low_target): Remove the op fields.
678 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
679 <install_fast_tracepoint_jump_pad>
680 <get_min_fast_tracepoint_insn_len>: Declare.
681 (s390_target::supports_fast_tracepoints): Define.
682 (s390_install_fast_tracepoint_jump_pad): Turn into...
683 (s390_target::install_fast_tracepoint_jump_pad): ...this.
684 (s390_get_min_fast_tracepoint_insn_len): Turn into...
685 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
686 (the_low_target): Remove the op fields.
687 * linux-arm-low.cc (the_low_target): Remove the op fields.
688 * linux-bfin-low.cc (the_low_target): Ditto.
689 * linux-crisv32-low.cc (the_low_target): Ditto.
690 * linux-m32r-low.cc (the_low_target): Ditto.
691 * linux-m68k-low.cc (the_low_target): Ditto.
692 * linux-sh-low.cc (the_low_target): Ditto.
693 * linux-tic6x-low.cc (the_low_target): Ditto.
694 * linux-tile-low.cc (the_low_target): Ditto.
695 * linux-xtensa-low.cc (the_low_target): Ditto.
696
13e567af
TBA
6972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
698
699 Turn the 'get_thread_area' linux target op into a method of
700 process_stratum_target.
701
702 * linux-low.h (struct linux_target_ops): Remove the op.
703 (class linux_process_target) <stuck_in_jump_pad>
704 <linux_fast_tracepoint_collecting>
705 <low_get_thread_area>: Declare.
706 * linux-low.cc (supports_fast_tracepoints): Remove.
707 (linux_fast_tracepoint_collecting): Turn into...
708 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
709 (linux_process_target::low_get_thread_area): Define.
710 (stuck_in_jump_pad_callback): Turn into...
711 (linux_process_target::stuck_in_jump_pad): ...this.
712
713 Update the caller below.
714
715 (linux_process_target::stabilize_threads)
716
717 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
718 Declare.
719 (x86_get_thread_area): Turn into...
720 (x86_target::low_get_thread_area): ...this.
721 (the_low_target): Remove the op field.
722 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
723 Declare.
724 (aarch64_get_thread_area): Turn into...
725 (aarch64_target::low_get_thread_area): ...this.
726 (the_low_target): Remove the op field.
727 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
728 Declare.
729 (ppc_get_thread_area): Turn into...
730 (ppc_target::low_get_thread_area): ...this.
731 (the_low_target): Remove the op field.
732 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
733 Declare.
734 (s390_get_thread_area): Turn into...
735 (s390_target::low_get_thread_area): ...this.
736 (the_low_target): Remove the op field.
737 * linux-arm-low.cc (the_low_target): Remove the op field.
738 * linux-bfin-low.cc (the_low_target): Ditto.
739 * linux-crisv32-low.cc (the_low_target): Ditto.
740 * linux-m32r-low.cc (the_low_target): Ditto.
741 * linux-m68k-low.cc (the_low_target): Ditto.
742 * linux-sh-low.cc (the_low_target): Ditto.
743 * linux-tic6x-low.cc (the_low_target): Ditto.
744 * linux-tile-low.cc (the_low_target): Ditto.
745 * linux-xtensa-low.cc (the_low_target): Ditto.
746
47f70aa7
TBA
7472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
748
749 Remote the 'supports_tracepoints' linux target op and let the
750 concrete linux target define it by overriding the op declared in
751 process_stratum_target.
752
753 * linux-low.h (struct linux_target_ops): Remove the op.
754 (class linux_process_target) <supports_tracepoints>: Remove.
755 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
756 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
757 Declare.
758 (x86_supports_tracepoints): Turn into...
759 (x86_target::supports_tracepoints): ...this.
760 (the_low_target): Remove the op field.
761 * linux-aarch64-low.cc (class aarch64_target)
762 <supports_tracepoints>: Declare.
763 (aarch64_supports_tracepoints): Turn into...
764 (aarch64_target::supports_tracepoints): ...this.
765 (the_low_target): Remove the op field.
766 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
767 Declare.
768 (ppc_supports_tracepoints): Turn into...
769 (ppc_target::supports_tracepoints): ...this.
770 (the_low_target): Remove the op field.
771 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
772 Declare.
773 (s390_supports_tracepoints): Turn into...
774 (s390_target::supports_tracepoints): ...this.
775 (the_low_target): Remove the op field.
776 * linux-arm-low.cc (the_low_target): Remove the op field.
777 * linux-bfin-low.cc (the_low_target): Ditto.
778 * linux-crisv32-low.cc (the_low_target): Ditto.
779 * linux-m32r-low.cc (the_low_target): Ditto.
780 * linux-m68k-low.cc (the_low_target): Ditto.
781 * linux-sh-low.cc (the_low_target): Ditto.
782 * linux-tic6x-low.cc (the_low_target): Ditto.
783 * linux-tile-low.cc (the_low_target): Ditto.
784 * linux-xtensa-low.cc (the_low_target): Ditto.
785
a5b5da92
TBA
7862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
787
788 Remove the 'process_qsupported' linux target op and let a concrete
789 linux target define the op by overriding the op declaration in
790 process_stratum_target.
791
792 * linux-low.h (struct linux_target_ops): Remove the op.
793 (class linux_process_target) <process_qsupported>: Remove.
794 * linux-low.cc (linux_process_target::process_qsupported): Remove.
795 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
796 (x86_linux_process_qsupported): Turn into...
797 (x86_target::process_qsupported): ...this.
798 (the_low_target): Remove the op field.
799 * linux-aarch64-low.cc (the_low_target): Remove the op
800 field.
801 * linux-arm-low.cc (the_low_target): Ditto.
802 * linux-bfin-low.cc (the_low_target): Ditto.
803 * linux-crisv32-low.cc (the_low_target): Ditto.
804 * linux-m32r-low.cc (the_low_target): Ditto.
805 * linux-m68k-low.cc (the_low_target): Ditto.
806 * linux-ppc-low.cc (the_low_target): Ditto.
807 * linux-s390-low.cc (the_low_target): Ditto.
808 * linux-sh-low.cc (the_low_target): Ditto.
809 * linux-tic6x-low.cc (the_low_target): Ditto.
810 * linux-tile-low.cc (the_low_target): Ditto.
811 * linux-xtensa-low.cc (the_low_target): Ditto.
812
d7599cc0
TBA
8132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
814
815 Turn the 'prepare_to_resume' linux target op into a method of
816 linux_process_target.
817
818 * linux-low.h (struct linux_target_ops): Remove the op.
819 (class linux_process_target) <low_prepare_to_resume>: Declare.
820 * linux-low.cc (linux_process_target::low_prepare_to_resume):
821 Define.
822
823 Update the callers below:
824
825 (linux_process_target::resume_one_lwp_throw)
826 (linux_process_target::low_prepare_to_resume)
827
828 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
829 Declare.
830 (x86_target::low_prepare_to_resume): Define.
831 (the_low_target): Remove the op field.
832 * linux-aarch64-low.cc (class aarch64_target)
833 <low_prepare_to_resume>: Declare.
834 (aarch64_target::low_prepare_to_resume): Define.
835 (the_low_target): Remove the op field.
836 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
837 Declare.
838 (arm_prepare_to_resume): Turn into...
839 (arm_target::low_prepare_to_resume): ...this.
840 (the_low_target): Remove the op field.
841 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
842 Declare.
843 (mips_linux_prepare_to_resume): Turn into...
844 (mips_target::low_prepare_to_resume): ...this.
845 (the_low_target): Remove the op field.
846 * linux-bfin-low.cc (the_low_target): Remove the op field.
847 * linux-crisv32-low.cc (the_low_target): Ditto.
848 * linux-m32r-low.cc (the_low_target): Ditto.
849 * linux-m68k-low.cc (the_low_target): Ditto.
850 * linux-ppc-low.cc (the_low_target): Ditto.
851 * linux-s390-low.cc (the_low_target): Ditto.
852 * linux-sh-low.cc (the_low_target): Ditto.
853 * linux-tic6x-low.cc (the_low_target): Ditto.
854 * linux-tile-low.cc (the_low_target): Ditto.
855 * linux-xtensa-low.cc (the_low_target): Ditto.
856
fd000fb3
TBA
8572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
858
859 Turn the 'new_process', 'delete_process', 'new_thread',
860 'delete_thread', and 'new_fork' linux target ops into methods
861 of linux_process_target.
862
863 * linux-low.h (struct linux_target_ops): Remove the ops.
864 (class linux_process_target) <add_linux_process>
865 <add_lwp>
866 <delete_lwp>
867 <attach_lwp>
868 <detach_one_lwp>
869 <check_zombie_leaders>
870 <filter_exit_event>
871 <low_new_process>
872 <low_delete_process>
873 <low_new_thread>
874 <low_delete_thread>
875 <low_new_fork>: Declare.
876 * linux-low.cc (delete_lwp): Turn into...
877 (linux_process_target::delete_lwp): ...this.
878 (linux_process_target::low_delete_thread): Define.
879 (linux_add_process): Turn into...
880 (linux_process_target::add_linux_process): ...this.
881 (linux_process_target::low_new_process): Define.
882 (linux_process_target::low_delete_process): Define.
883 (linux_process_target::low_new_fork): Define.
884 (add_lwp): Turn into...
885 (linux_process_target::add_lwp): ...this.
886 (linux_process_target::low_new_thread): Define.
887 (linux_attach_lwp): Turn into...
888 (linux_process_target::attach_lwp): ...this.
889 (linux_detach_one_lwp): Turn into...
890 (linux_process_target::detach_one_lwp): ...this.
891 (linux_detach_lwp_callback): Remove and inline...
892 (linux_process_target::detach): ...here.
893 (check_zombie_leaders): Turn into...
894 (linux_process_target::check_zombie_leaders): ...this.
895 (filter_exit_event): Turn into...
896 (linux_process_target::filter_exit_event): ...this.
897
898 Update the callers below.
899
900 (linux_process_target::handle_extended_wait)
901 (linux_process_target::create_inferior)
902 (attach_proc_task_lwp_callback)
903 (linux_process_target::attach)
904 (linux_process_target::detach)
905 (linux_process_target::mourn)
906 * thread-db.cc (attach_thread)
907
908 * linux-x86-low.cc (class x86_target) <low_new_process>
909 <low_delete_process>
910 <low_new_thread>
911 <low_delete_thread>
912 <low_new_fork>: Declare.
913 (x86_linux_new_process): Turn into...
914 (x86_target::low_new_process): ...this.
915 (x86_linux_delete_process): Turn into...
916 (x86_target::low_delete_process): ...this.
917 (x86_target::low_new_thread): Define.
918 (x86_target::low_delete_thread): Define.
919 (x86_linux_new_fork): Turn into...
920 (x86_target::low_new_fork): ...this.
921 (the_low_target): Remove the op fields.
922 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
923 <low_delete_process>
924 <low_new_thread>
925 <low_delete_thread>
926 <low_new_fork>: Declare.
927 (aarch64_linux_new_process): Turn into...
928 (aarch64_target::low_new_process): ...this.
929 (aarch64_linux_delete_process): Turn into...
930 (aarch64_target::low_delete_process): ...this.
931 (aarch64_target::low_new_thread): Define.
932 (aarch64_target::low_delete_thread): Define.
933 (aarch64_linux_new_fork): Turn into...
934 (aarch64_target::low_new_fork): ...this.
935 (the_low_target): Remove the op fields.
936 * linux-arm-low.cc (class arm_target) <low_new_process>
937 <low_delete_process>
938 <low_new_thread>
939 <low_delete_thread>
940 <low_new_fork>: Declare.
941 (arm_new_process): Turn into...
942 (arm_target::low_new_process): ...this.
943 (arm_delete_process): Turn into...
944 (arm_target::low_delete_process): ...this.
945 (arm_new_thread): Turn into...
946 (arm_target::low_new_thread): ...this.
947 (arm_delete_thread): Turn into...
948 (arm_target::low_delete_thread): ...this.
949 (arm_new_fork): Turn into...
950 (arm_target::low_new_fork): ...this.
951 (the_low_target): Remove the op fields.
952 * linux-mips-low.cc (class mips_target) <low_new_process>
953 <low_delete_process>
954 <low_new_thread>
955 <low_delete_thread>
956 <low_new_fork>: Declare.
957 (mips_linux_new_process): Turn into...
958 (mips_target::low_new_process): ...this.
959 (mips_linux_delete_process): Turn into...
960 (mips_target::low_delete_process): ...this.
961 (mips_linux_new_thread): Turn into...
962 (mips_target::low_new_thread): ...this.
963 (mips_linux_delete_thread): Turn into...
964 (mips_target::low_delete_thread): ...this.
965 (mips_linux_new_fork): Turn into...
966 (mips_target::low_new_fork): ...this.
967 (the_low_target): Remove the op fields.
968 * linux-bfin-low.cc (the_low_target): Remove the op fields.
969 * linux-crisv32-low.cc (the_low_target): Ditto.
970 * linux-m32r-low.cc (the_low_target): Ditto.
971 * linux-m68k-low.cc (the_low_target): Ditto.
972 * linux-ppc-low.cc (the_low_target): Ditto.
973 * linux-s390-low.cc (the_low_target): Ditto.
974 * linux-sh-low.cc (the_low_target): Ditto.
975 * linux-tic6x-low.cc (the_low_target): Ditto.
976 * linux-tile-low.cc (the_low_target): Ditto.
977 * linux-xtensa-low.cc (the_low_target): Ditto.
978
cb63de7c
TBA
9792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
980
981 Turn the 'siginfo_fixup' linux target op into a method of
982 linux_process_target.
983
984 * linux-low.h (struct linux_target_ops): Remove the op.
985 (class linux_process_target) <siginfo_fixup>
986 <low_siginfo_fixup>: Declare.
987 * linux-low.cc (siginfo_fixup): Turn into...
988 (linux_process_target::siginfo_fixup): ...this.
989 (linux_process_target::low_siginfo_fixup): Define.
990 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
991 (x86_siginfo_fixup): Turn into...
992 (x86_target::low_siginfo_fixup): ...this.
993 (the_low_target): Remove the op field.
994 * linux-aarch64-low.cc (class aarch64_target):
995 <low_siginfo_fixup>: Declare.
996 (aarch64_linux_siginfo_fixup): Turn into...
997 (aarch64_target::low_siginfo_fixup): ...this.
998 (the_low_target): Remove the op field.
999 * linux-arm-low.cc (the_low_target): Remove the op field.
1000 * linux-bfin-low.cc (the_low_target): Ditto.
1001 * linux-crisv32-low.cc (the_low_target): Ditto.
1002 * linux-m32r-low.cc (the_low_target): Ditto.
1003 * linux-m68k-low.cc (the_low_target): Ditto.
1004 * linux-mips-low.cc (the_low_target): Ditto.
1005 * linux-ppc-low.cc (the_low_target): Ditto.
1006 * linux-s390-low.cc (the_low_target): Ditto.
1007 * linux-sh-low.cc (the_low_target): Ditto.
1008 * linux-tic6x-low.cc (the_low_target): Ditto.
1009 * linux-tile-low.cc (the_low_target): Ditto.
1010 * linux-xtensa-low.cc (the_low_target): Ditto.
1011
b35db733
TBA
10122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1013
1014 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1015 linux target ops into methods of linux_process_target.
1016
1017 * linux-low.h (struct linux_target_ops): Remove the ops.
1018 (class linux_process_target) <low_collect_ptrace_register>
1019 <low_store_ptrace_register>: Declare.
1020 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1021 (linux_process_target::low_supply_ptrace_register): Define.
1022
1023 Update the callers below.
1024
1025 (linux_process_target::fetch_register)
1026 (linux_process_target::store_register)
1027
1028 * linux-x86-low.cc (the_low_target): Remove the op fields.
1029 * linux-aarch64-low.cc (the_low_target): Ditto.
1030 * linux-arm-low.cc (the_low_target): Ditto.
1031 * linux-bfin-low.cc (the_low_target): Ditto.
1032 * linux-crisv32-low.cc (the_low_target): Ditto.
1033 * linux-m32r-low.cc (the_low_target): Ditto.
1034 * linux-m68k-low.cc (the_low_target): Ditto.
1035 * linux-sh-low.cc (the_low_target): Ditto.
1036 * linux-sparc-low.cc (the_low_target): Ditto.
1037 * linux-tic6x-low.cc (the_low_target): Ditto.
1038 * linux-tile-low.cc (the_low_target): Ditto.
1039 * linux-xtensa-low.cc (the_low_target): Ditto.
1040 * linux-mips-low.cc (class mips_target)
1041 <low_collect_ptrace_register>
1042 <low_supply_ptrace_register>: Declare.
1043 (mips_collect_ptrace_register): Turn into ...
1044 (mips_target::low_collect_ptrace_register): ...this.
1045 (mips_supply_ptrace_register): Turn into...
1046 (mips_target::low_supply_ptrace_register): ...this.
1047 (the_low_target): Remove the op fields.
1048 * linux-ppc-low.cc (class ppc_target)
1049 <low_collect_ptrace_register>
1050 <low_supply_ptrace_register>: Declare.
1051 (ppc_collect_ptrace_register): Turn into ...
1052 (ppc_target::low_collect_ptrace_register): ...this.
1053 (ppc_supply_ptrace_register): Turn into ...
1054 (ppc_target::low_supply_ptrace_register): ...this.
1055 (ppc_fill_gregset): Update for the calls to
1056 low_collect_ptrace_register.
1057 (the_low_target): Remove the op fields.
1058 * linux-s390-low.cc (class s390_target)
1059 <low_collect_ptrace_register>
1060 <low_supply_ptrace_register>: Declare.
1061 (s390_collect_ptrace_register): Turn into ...
1062 (s390_target::low_collect_ptrace_register): ...this.
1063 (s390_supply_ptrace_register): Turn into ...
1064 (s390_target::low_supply_ptrace_register): ...this.
1065 (s390_fill_gregset): Update for the calls to
1066 low_collect_ptrace_register.
1067 (the_low_target): Remove the op fields.
1068
ac1bbaca
TBA
10692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1070
1071 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1072 target ops into methods of linux_process_target.
1073
1074 * linux-low.h (struct linux_target_ops): Remove the ops.
1075 (class linux_process_target) <check_stopped_by_watchpoint>
1076 <low_stopped_by_watchpoint>
1077 <low_stopped_data_address>: Declare.
1078 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1079 (linux_process_target::check_stopped_by_watchpoint): ...this.
1080 (linux_process_target::low_stopped_by_watchpoint): Define.
1081 (linux_process_target::low_stopped_data_address): Define.
1082 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1083 <low_stopped_data_address>: Declare.
1084 (x86_stopped_by_watchpoint): Turn into...
1085 (x86_target::low_stopped_by_watchpoint): ...this.
1086 (x86_stopped_data_address): Turn into...
1087 (x86_target::low_stopped_data_address): ...this.
1088 (the_low_target): Remove the op fields.
1089 * linux-aarch64-low.cc (class aarch64_target)
1090 <low_stopped_by_watchpoint>
1091 <low_stopped_data_address>: Declare.
1092 (aarch64_stopped_by_watchpoint): Turn into...
1093 (aarch64_target::low_stopped_by_watchpoint): ...this.
1094 (aarch64_stopped_data_address): Turn into...
1095 (aarch64_target::low_stopped_data_address): ...this.
1096 (the_low_target): Remove the op fields.
1097 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1098 <low_stopped_data_address>: Declare.
1099 (arm_stopped_by_watchpoint): Turn into...
1100 (arm_target::low_stopped_by_watchpoint): ...this.
1101 (arm_stopped_data_address): Turn into...
1102 (arm_target::low_stopped_data_address): ...this.
1103 (the_low_target): Remove the op fields.
1104 * linux-crisv32-low.cc (class crisv32_target)
1105 <low_stopped_by_watchpoint>
1106 <low_stopped_data_address>: Declare.
1107 (cris_stopped_by_watchpoint): Turn into...
1108 (crisv32_target::low_stopped_by_watchpoint): ...this.
1109 (cris_stopped_data_address): Turn into...
1110 (crisv32_target::low_stopped_data_address): ...this.
1111 (the_low_target): Remove the op fields.
1112 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1113 <low_stopped_data_address>: Declare.
1114 (mips_stopped_by_watchpoint): Turn into...
1115 (mips_target::low_stopped_by_watchpoint): ...this.
1116 (mips_stopped_data_address): Turn into...
1117 (mips_target::low_stopped_data_address): ...this.
1118 (the_low_target): Remove the op fields.
1119 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1120 * linux-m32r-low.cc (the_low_target): Ditto.
1121 * linux-m68k-low.cc (the_low_target): Ditto.
1122 * linux-ppc-low.cc (the_low_target): Ditto.
1123 * linux-s390-low.cc (the_low_target): Ditto.
1124 * linux-sh-low.cc (the_low_target): Ditto.
1125 * linux-sparc-low.cc (the_low_target): Ditto.
1126 * linux-tic6x-low.cc (the_low_target): Ditto.
1127 * linux-tile-low.cc (the_low_target): Ditto.
1128 * linux-xtensa-low.cc (the_low_target): Ditto.
1129
9db9aa23
TBA
11302020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1131
1132 Turn the 'insert_point' and 'remove_point' linux target ops into
1133 methods of linux_process_target.
1134
1135 * linux-low.h (struct linux_target_ops): Remove the ops.
1136 (class linux_process_target) <low_insert_point>
1137 <low_remove_point>: Declare.
1138 * linux-low.cc (linux_process_target::low_insert_point)
1139 (linux_process_target::low_remove_point): Define.
1140 (linux_process_target::insert_point)
1141 (linux_process_target::remove_point): Update for calls to
1142 low_insert_point and low_remove_point.
1143 * linux-x86-low.cc (class x86_target) <low_insert_point>
1144 <low_remove_point>: Declare.
1145 (x86_insert_point): Turn into...
1146 (x86_target::low_insert_point): ...this.
1147 (x86_remove_point): Turn into...
1148 (x86_target::low_remove_point): ...this.
1149 (the_low_target): Remove the op fields.
1150 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1151 <low_remove_point>: Declare.
1152 (aarch64_insert_point): Turn into...
1153 (aarch64_target::low_insert_point): ...this.
1154 (aarch64_remove_point): Turn into...
1155 (aarch64_target::low_remove_point): ...this.
1156 (the_low_target): Remove the op fields.
1157 * linux-arm-low.cc (class arm_target) <low_insert_point>
1158 <low_remove_point>: Declare.
1159 (arm_insert_point): Turn into...
1160 (arm_target::low_insert_point): ...this.
1161 (arm_remove_point): Turn into...
1162 (arm_target::low_remove_point): ...this.
1163 (the_low_target): Remove the op fields.
1164 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1165 <low_remove_point>: Declare.
1166 (crisv32_insert_point): Turn into...
1167 (crisv32_target::low_insert_point): ...this.
1168 (crisv32_remove_point): Turn into...
1169 (crisv32_target::low_remove_point): ...this.
1170 (the_low_target): Remove the op fields.
1171 * linux-mips-low.cc (class mips_target) <low_insert_point>
1172 <low_remove_point>: Declare.
1173 (mips_insert_point): Turn into...
1174 (mips_target::low_insert_point): ...this.
1175 (mips_remove_point): Turn into...
1176 (mips_target::low_remove_point): ...this.
1177 (the_low_target): Remove the op fields.
1178 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1179 <low_remove_point>: Declare.
1180 (ppc_insert_point): Turn into...
1181 (ppc_target::low_insert_point): ...this.
1182 (ppc_remove_point): Turn into...
1183 (ppc_target::low_remove_point): ...this.
1184 (the_low_target): Remove the op fields.
1185 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1186 * linux-m32r-low.cc (the_low_target): Ditto.
1187 * linux-m68k-low.cc (the_low_target): Ditto.
1188 * linux-s390-low.cc (the_low_target): Ditto.
1189 * linux-sh-low.cc (the_low_target): Ditto.
1190 * linux-sparc-low.cc (the_low_target): Ditto.
1191 * linux-tic6x-low.cc (the_low_target): Ditto.
1192 * linux-tile-low.cc (the_low_target): Ditto.
1193 * linux-xtensa-low.cc (the_low_target): Ditto.
1194
007c9b97
TBA
11952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1196
1197 Remove the 'supports_z_point_type' linux target op and let the
1198 concrete linux target define it by overriding the op declared in
1199 process_stratum_target.
1200
1201 * linux-low.cc (linux_process_target::supports_z_point_type):
1202 Remove.
1203 * linux-low.h (struct linux_target_ops): Remove the op.
1204 (class linux_process_target) <supports_z_point_type>: Remove.
1205 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1206 Declare.
1207 (x86_supports_z_point_type): Turn into...
1208 (x86_target::supports_z_point_type): ...this.
1209 (the_low_target): Remove the op field.
1210 * linux-aarch64-low.cc (class aarch64_target)
1211 <supports_z_point_type>: Declare.
1212 (aarch64_supports_z_point_type): Turn into...
1213 (aarch64_target::supports_z_point_type): ...this.
1214 (the_low_target): Remove the op field.
1215 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1216 Declare.
1217 (arm_supports_z_point_type): Turn into...
1218 (arm_target::supports_z_point_type): ...this.
1219 (the_low_target): Remove the op field.
1220 * linux-crisv32-low.cc (class crisv32_target)
1221 <supports_z_point_type>: Declare.
1222 (cris_supports_z_point_type): Turn into...
1223 (crisv32_target::supports_z_point_type): ...this.
1224 (the_low_target): Remove the op field.
1225 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1226 Declare.
1227 (mips_supports_z_point_type): Turn into...
1228 (mips_target::supports_z_point_type): ...this.
1229 (the_low_target): Remove the op field.
1230 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1231 Declare.
1232 (ppc_supports_z_point_type): Turn into...
1233 (ppc_target::supports_z_point_type): ...this.
1234 (the_low_target): Remove the op field.
1235 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1236 Declare.
1237 (s390_supports_z_point_type): Turn into...
1238 (s390_target::supports_z_point_type): ...this.
1239 (the_low_target): Remove the op field.
1240 * linux-bfin-low.cc (the_low_target): Remove the op field.
1241 * linux-m32r-low.cc (the_low_target): Ditto.
1242 * linux-m68k-low.cc (the_low_target): Ditto.
1243 * linux-sh-low.cc (the_low_target): Ditto.
1244 * linux-sparc-low.cc (the_low_target): Ditto.
1245 * linux-tic6x-low.cc (the_low_target): Ditto.
1246 * linux-tile-low.cc (the_low_target): Ditto.
1247 * linux-xtensa-low.cc (the_low_target): Ditto.
1248
d7146cda
TBA
12492020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1250
1251 Turn the 'breakpoint_at' linux target op into a method of
1252 linux_process_target.
1253
1254 * linux-low.h (struct linux_target_ops): Remove the op.
1255 (class linux_process_target) <low_breakpoint_at>: Declare.
1256
1257 Update the callers below:
1258
1259 * linux-low.cc (linux_process_target::save_stop_reason)
1260 (linux_process_target::thread_still_has_status_pending)
1261 (linux_process_target::wait_1)
1262
1263 * linux-x86-low.cc (class x86_target)
1264 <low_breakpoint_at>: Declare.
1265 (x86_breakpoint_at): Turn into...
1266 (x86_target::low_breakpoint_at): ...this.
1267 (the_low_target): Remove the op field.
1268 * linux-aarch64-low.cc (class aarch64_target)
1269 <low_breakpoint_at>: Declare.
1270 (aarch64_breakpoint_at): Turn into...
1271 (aarch64_target::low_breakpoint_at): ...this.
1272 (the_low_target): Remove the op field.
1273 * linux-arm-low.cc (class arm_target)
1274 <low_breakpoint_at>: Declare.
1275 (arm_target::low_breakpoint_at): Define.
1276 (the_low_target): Remove the op field.
1277 * linux-bfin-low.cc (class bfin_target)
1278 <low_breakpoint_at>: Declare.
1279 (bfin_breakpoint_at): Turn into...
1280 (bfin_target::low_breakpoint_at): ...this.
1281 (the_low_target): Remove the op field.
1282 * linux-cris-low.cc (class cris_target)
1283 <low_breakpoint_at>: Declare.
1284 (cris_breakpoint_at): Turn into...
1285 (cris_target::low_breakpoint_at): ...this.
1286 (the_low_target): Remove the op field.
1287 * linux-crisv32-low.cc (class crisv32_target)
1288 <low_breakpoint_at>: Declare.
1289 (crisv32_breakpoint_at): Turn into...
1290 (crisv32_target::low_breakpoint_at): ...this.
1291 (the_low_target): Remove the op field.
1292 * linux-ia64-low.cc (class ia64_target)
1293 <low_breakpoint_at>: Declare.
1294 (ia64_target::low_breakpoint_at): Define.
1295 * linux-m32r-low.cc (class m32r_target)
1296 <low_breakpoint_at>: Declare.
1297 (m32r_breakpoint_at): Turn into...
1298 (m32r_target::low_breakpoint_at): ...this.
1299 (the_low_target): Remove the op field.
1300 * linux-m68k-low.cc (class m68k_target)
1301 <low_breakpoint_at>: Declare.
1302 (m68k_breakpoint_at): Turn into...
1303 (m68k_target::low_breakpoint_at): ...this.
1304 (the_low_target): Remove the op field.
1305 * linux-mips-low.cc (class mips_target)
1306 <low_breakpoint_at>: Declare.
1307 (mips_breakpoint_at): Turn into...
1308 (mips_target::low_breakpoint_at): ...this.
1309 (the_low_target): Remove the op field.
1310 * linux-nios2-low.cc (class nios2_target)
1311 <low_breakpoint_at>: Declare.
1312 (nios2_breakpoint_at): Turn into...
1313 (nios2_target::low_breakpoint_at): ...this.
1314 (the_low_target): Remove the op field.
1315 * linux-ppc-low.cc (class ppc_target)
1316 <low_breakpoint_at>: Declare.
1317 (ppc_breakpoint_at): Turn into...
1318 (ppc_target::low_breakpoint_at): ...this.
1319 (the_low_target): Remove the op field.
1320 * linux-riscv-low.cc (class riscv_target)
1321 <low_breakpoint_at>: Declare.
1322 (riscv_breakpoint_at): Turn into...
1323 (riscv_target::low_breakpoint_at): ...this.
1324 (the_low_target): Remove the op field.
1325 * linux-s390-low.cc (class s390_target)
1326 <low_breakpoint_at>: Declare.
1327 (s390_breakpoint_at): Turn into...
1328 (s390_target::low_breakpoint_at): ...this.
1329 (the_low_target): Remove the op field.
1330 * linux-sh-low.cc (class sh_target)
1331 <low_breakpoint_at>: Declare.
1332 (sh_breakpoint_at): Turn into...
1333 (sh_target::low_breakpoint_at): ...this.
1334 (the_low_target): Remove the op field.
1335 * linux-sparc-low.cc (class sparc_target)
1336 <low_breakpoint_at>: Declare.
1337 (sparc_breakpoint_at): Turn into...
1338 (sparc_target::low_breakpoint_at): ...this.
1339 (the_low_target): Remove the op field.
1340 * linux-tic6x-low.cc (class tic6x_target)
1341 <low_breakpoint_at>: Declare.
1342 (tic6x_breakpoint_at): Turn into...
1343 (tic6x_target::low_breakpoint_at): ...this.
1344 (the_low_target): Remove the op field.
1345 * linux-tile-low.cc (class tile_target)
1346 <low_breakpoint_at>: Declare.
1347 (tile_breakpoint_at): Turn into...
1348 (tile_target::low_breakpoint_at): ...this.
1349 (the_low_target): Remove the op field.
1350 * linux-xtensa-low.cc (class xtensa_target)
1351 <low_breakpoint_at>: Declare.
1352 (xtensa_breakpoint_at): Turn into...
1353 (xtensa_target::low_breakpoint_at): ...this.
1354 (the_low_target): Remove the op field.
1355
d4807ea2
TBA
13562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1357
1358 Turn the 'decr_pc_after_break' linux_target_ops field into
1359 a method of linux_process_target.
1360
1361 * linux-low.h (struct linux_target_ops)
1362 <decr_pc_after_break>: Remove.
1363 (class linux_process_target) <low_decr_pc_after_break>: New method
1364 declaration.
1365 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1366 New method implementation.
1367
1368 Update the users below.
1369
1370 (linux_process_target::save_stop_reason)
1371 (linux_process_target::wait_1)
1372 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1373 New declaration.
1374 (x86_target::low_decr_pc_after_break): New method implementation.
1375 (the_low_target): Remove the field.
1376 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1377 New declaration.
1378 (bfin_target::low_decr_pc_after_break): New method implementation.
1379 (the_low_target): Remove the field.
1380 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1381 New declaration.
1382 (m68k_target::low_decr_pc_after_break): New method implementation.
1383 (the_low_target): Remove the field.
1384 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1385 New declaration.
1386 (s390_target::low_decr_pc_after_break): New method implementation.
1387 (the_low_target): Remove the field.
1388 * linux-aarch64-low.cc (the_low_target): Remove the field.
1389 * linux-arm-low.cc (the_low_target): Remove the field.
1390 * linux-cris-low.cc (the_low_target): Remove the field.
1391 * linux-crisv32-low.cc (the_low_target): Remove the field.
1392 * linux-m32r-low.cc (the_low_target): Remove the field.
1393 * linux-mips-low.cc (the_low_target): Remove the field.
1394 * linux-nios2-low.cc (the_low_target): Remove the field.
1395 * linux-ppc-low.cc (the_low_target): Remove the field.
1396 * linux-riscv-low.cc (the_low_target): Remove the field.
1397 * linux-sh-low.cc (the_low_target): Remove the field.
1398 * linux-sparc-low.cc (the_low_target): Remove the field.
1399 * linux-tic6x-low.cc (the_low_target): Remove the field.
1400 * linux-tile-low.cc (the_low_target): Remove the field.
1401 * linux-xtensa-low.cc (the_low_target): Remove the field.
1402
7582c77c
TBA
14032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1404
1405 Remove the 'supports_software_single_step' linux target op and let
1406 the concrete linux target define it by overriding the op in
1407 process_stratum_target.
1408 Turn the 'get_next_pcs' linux target op into a method of
1409 linux_process_target.
1410
1411 * linux-low.h (struct linux_target_ops): Remove the ops.
1412 (class linux_process_target) <supports_software_single_step>:
1413 Remove.
1414 <low_get_next_pcs>: Declare.
1415 * linux-low.cc (can_software_single_step): Remove.
1416 (linux_process_target::low_get_next_pcs): Define.
1417 (linux_process_target::supports_software_single_step): Remove.
1418
1419 Update the callers below.
1420
1421 (linux_process_target::handle_extended_wait)
1422 (linux_process_target::wait_1)
1423 (linux_process_target::install_software_single_step_breakpoints)
1424 (linux_process_target::single_step)
1425 (linux_process_target::thread_needs_step_over)
1426 (linux_process_target::proceed_one_lwp)
1427 (linux_process_target::supports_range_stepping)
1428
1429 * linux-x86-low.cc (the_low_target): Remove the op field.
1430 * linux-aarch64-low.cc (the_low_target): Ditto.
1431 * linux-bfin-low.cc (the_low_target): Ditto.
1432 * linux-cris-low.cc (the_low_target): Ditto.
1433 * linux-crisv32-low.cc (the_low_target): Ditto.
1434 * linux-m32r-low.cc (the_low_target): Ditto.
1435 * linux-m68k-low.cc (the_low_target): Ditto.
1436 * linux-mips-low.cc (the_low_target): Ditto.
1437 * linux-nios2-low.cc (the_low_target): Ditto.
1438 * linux-ppc-low.cc (the_low_target): Ditto.
1439 * linux-riscv-low.cc (the_low_target): Ditto.
1440 * linux-s390-low.cc (the_low_target): Ditto.
1441 * linux-sh-low.cc (the_low_target): Ditto.
1442 * linux-sparc-low.cc (the_low_target): Ditto.
1443 * linux-tic6x-low.cc (the_low_target): Ditto.
1444 * linux-tile-low.cc (the_low_target): Ditto.
1445 * linux-xtensa-low.cc (the_low_target): Ditto.
1446 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1447 <supports_software_single_step>: Declare.
1448 (arm_target::supports_software_single_step): Define.
1449 (arm_gdbserver_get_next_pcs): Turn into...
1450 (arm_target::low_get_next_pcs): ...this.
1451 (the_low_target): Remove the op field.
1452
3ca4edb6
TBA
14532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1454
1455 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1456 the concrete linux target define it by overriding the op
1457 in process_stratum_target.
1458
1459 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1460 Remove.
1461 * linux-low.h (struct linux_target_ops): Remove the op.
1462 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1463 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1464 Declare.
1465 (x86_sw_breakpoint_from_kind): Turn into...
1466 (x86_target::sw_breakpoint_from_kind): ...this.
1467 (the_low_target): Remove the op field.
1468 * linux-aarch64-low.cc (class aarch64_target)
1469 <sw_breakpoint_from_kind>: Declare.
1470 (aarch64_sw_breakpoint_from_kind): Turn into...
1471 (aarch64_target::sw_breakpoint_from_kind): ...this.
1472 (the_low_target): Remove the op field.
1473 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1474 Declare.
1475 (arm_target::sw_breakpoint_from_kind): Define.
1476 (the_low_target): Remove the op field.
1477 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1478 Declare.
1479 (bfin_sw_breakpoint_from_kind): Turn into...
1480 (bfin_target::sw_breakpoint_from_kind): ...this.
1481 (the_low_target): Remove the op field.
1482 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1483 Declare.
1484 (cris_sw_breakpoint_from_kind): Turn into...
1485 (cris_target::sw_breakpoint_from_kind): ...this.
1486 (the_low_target): Remove the op field.
1487 * linux-crisv32-low.cc (class crisv32_target)
1488 <sw_breakpoint_from_kind>: Declare.
1489 (cris_sw_breakpoint_from_kind): Turn into...
1490 (crisv32_target::sw_breakpoint_from_kind): ...this.
1491 (the_low_target): Remove the op field.
1492 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1493 Declare.
1494 (ia64_target::sw_breakpoint_from_kind): Define.
1495 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1496 Declare.
1497 (m32r_sw_breakpoint_from_kind): Turn into...
1498 (m32r_target::sw_breakpoint_from_kind): ...this.
1499 (the_low_target): Remove the op field.
1500 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1501 Declare.
1502 (m68k_sw_breakpoint_from_kind): Turn into...
1503 (m68k_target::sw_breakpoint_from_kind): ...this.
1504 (the_low_target): Remove the op field.
1505 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1506 Declare.
1507 (mips_sw_breakpoint_from_kind): Turn into...
1508 (mips_target::sw_breakpoint_from_kind): ...this.
1509 (the_low_target): Remove the op field.
1510 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1511 Declare.
1512 (nios2_sw_breakpoint_from_kind): Turn into...
1513 (nios2_target::sw_breakpoint_from_kind): ...this.
1514 (the_low_target): Remove the op field.
1515 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1516 Declare.
1517 (ppc_sw_breakpoint_from_kind): Turn into...
1518 (ppc_target::sw_breakpoint_from_kind): ...this.
1519 (the_low_target): Remove the op field.
1520 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1521 Declare.
1522 (riscv_sw_breakpoint_from_kind): Turn into...
1523 (riscv_target::sw_breakpoint_from_kind): ...this.
1524 (the_low_target): Remove the op field.
1525 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1526 Declare.
1527 (s390_sw_breakpoint_from_kind): Turn into...
1528 (s390_target::sw_breakpoint_from_kind): ...this.
1529 (the_low_target): Remove the op field.
1530 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1531 Declare.
1532 (sh_sw_breakpoint_from_kind): Turn into...
1533 (sh_target::sw_breakpoint_from_kind): ...this.
1534 (the_low_target): Remove the op field.
1535 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1536 Declare.
1537 (sparc_sw_breakpoint_from_kind): Turn into...
1538 (sparc_target::sw_breakpoint_from_kind): ...this.
1539 (the_low_target): Remove the op field.
1540 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1541 Declare.
1542 (tic6x_sw_breakpoint_from_kind): Turn into...
1543 (tic6x_target::sw_breakpoint_from_kind): ...this.
1544 (the_low_target): Remove the op field.
1545 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1546 Declare.
1547 (tile_sw_breakpoint_from_kind): Turn into...
1548 (tile_target::sw_breakpoint_from_kind): ...this.
1549 (the_low_target): Remove the op field.
1550 * linux-xtensa-low.cc (class xtensa_target)
1551 <sw_breakpoint_from_kind>: Declare.
1552 (xtensa_sw_breakpoint_from_kind): Turn into...
1553 (xtensa_target::sw_breakpoint_from_kind): ...this.
1554 (the_low_target): Remove the op field.
1555
06250e4e
TBA
15562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1557
1558 Remove the 'breakpoint_kind_from_pc' and
1559 'breakpoint_kind_from_current_state' linux target ops, and let the
1560 concrete linux target define them by overriding the ops of
1561 process_stratum_target.
1562
1563 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1564 Remove.
1565 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1566 * linux-low.h (struct linux_target_ops): Remove ops.
1567 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1568 <breakpoint_kind_from_current_state>: Remove.
1569 * linux-x86-low.cc (the_low_target): Remove the op fields.
1570 * linux-bfin-low.cc (the_low_target): Ditto.
1571 * linux-cris-low.cc (the_low_target): Ditto.
1572 * linux-crisv32-low.cc (the_low_target): Ditto.
1573 * linux-m32r-low.cc (the_low_target): Ditto.
1574 * linux-m68k-low.cc (the_low_target): Ditto.
1575 * linux-mips-low.cc (the_low_target): Ditto.
1576 * linux-nios2-low.cc (the_low_target): Ditto.
1577 * linux-ppc-low.cc (the_low_target): Ditto.
1578 * linux-s390-low.cc (the_low_target): Ditto.
1579 * linux-sh-low.cc (the_low_target): Ditto.
1580 * linux-sparc-low.cc (the_low_target): Ditto.
1581 * linux-tic6x-low.cc (the_low_target): Ditto.
1582 * linux-tile-low.cc (the_low_target): Ditto.
1583 * linux-xtensa-low.cc (the_low_target): Ditto.
1584 * linux-aarch64-low.cc (class aarch64_target)
1585 <breakpoint_kind_from_pc>
1586 <breakpoint_kind_from_current_state>: Declare.
1587 (aarch64_breakpoint_kind_from_pc): Turn into...
1588 (aarch64_target::breakpoint_kind_from_pc): ...this.
1589 (aarch64_breakpoint_kind_from_current_state): Turn into...
1590 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1591 (the_low_target): Remove the op fields.
1592 * linux-arm-low.cc (class arm_target):
1593 <breakpoint_kind_from_pc>
1594 <breakpoint_kind_from_current_state>: Declare.
1595 (arm_target::breakpoint_kind_from_pc): Define.
1596 (arm_target::breakpoint_kind_from_current_state): Define.
1597 (the_low_target): Remove the op fields.
1598 * linux-riscv-low.cc (class riscv_target):
1599 <breakpoint_kind_from_pc>: Declare.
1600 (riscv_breakpoint_kind_from_pc): Turn into...
1601 (riscv_target::breakpoint_kind_from_pc): ...this.
1602 (the_low_target): Remove the op fields.
1603
bf9ae9d8
TBA
16042020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1605
1606 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1607 of linux_process_target.
1608
1609 * linux-low.h (struct linux_target_ops): Remove the ops.
1610 (class linux_process_target) <low_supports_breakpoints>
1611 <low_get_pc>
1612 <low_set_pc>: Declare.
1613 * linux-low.cc (supports_breakpoints): Turn into...
1614 (linux_process_target::low_supports_breakpoints): ...this.
1615 (linux_process_target::low_get_pc): Define.
1616 (linux_process_target::low_set_pc): Define.
1617
1618 Update the callers below.
1619
1620 (linux_process_target::get_pc)
1621 (linux_process_target::save_stop_reason)
1622 (linux_process_target::maybe_move_out_of_jump_pad)
1623 (linux_process_target::wait_1)
1624 (linux_process_target::resume_one_lwp_throw)
1625 (linux_process_target::resume)
1626 (linux_process_target::proceed_all_lwps)
1627 (linux_process_target::read_pc)
1628 (linux_process_target::write_pc)
1629
1630 * linux-x86-low.cc (class linux_process_target)
1631 <low_supports_breakpoints>
1632 <low_get_pc>
1633 <low_set_pc>: Declare.
1634 (x86_target::low_supports_breakpoints): Define.
1635 (x86_get_pc): Turn into...
1636 (x86_target::low_get_pc): ...this.
1637 (x86_set_pc): Turn into...
1638 (x86_target::low_set_pc): ...this.
1639 (the_low_target): Remove the op fields.
1640 * linux-arm-low.cc (class arm_target)
1641 <low_supports_breakpoints>
1642 <low_get_pc>
1643 <low_set_pc>: Declare.
1644 (arm_target::low_supports_breakpoints)
1645 (arm_target::low_get_pc)
1646 (arm_target::low_set_pc): Define.
1647 (the_low_target): Remove the op fields.
1648 * linux-bfin-low.cc (class bfin_target)
1649 <low_supports_breakpoints>
1650 <low_get_pc>
1651 <low_set_pc>: Declare.
1652 (bfin_target::low_supports_breakpoints)
1653 (bfin_target::low_get_pc)
1654 (bfin_target::low_set_pc): Define.
1655 (the_low_target): Remove the op fields.
1656 * linux-cris-low.cc (class cris_target)
1657 <low_supports_breakpoints>
1658 <low_get_pc>
1659 <low_set_pc>: Declare.
1660 (cris_target::low_supports_breakpoints)
1661 (cris_target::low_get_pc)
1662 (cris_target::low_set_pc): Define.
1663 (the_low_target): Remove the op fields.
1664 * linux-crisv32-low.cc (class crisv32_target)
1665 <low_supports_breakpoints>
1666 <low_get_pc>
1667 <low_set_pc>: Declare.
1668 (crisv32_target::low_supports_breakpoints)
1669 (crisv32_target::low_get_pc)
1670 (crisv32_target::low_set_pc): Define.
1671 (the_low_target): Remove the op fields.
1672 * linux-m32r-low.cc (class m32r_target)
1673 <low_supports_breakpoints>
1674 <low_get_pc>
1675 <low_set_pc>: Declare.
1676 (m32r_target::low_supports_breakpoints)
1677 (m32r_target::low_get_pc)
1678 (m32r_target::low_set_pc): Define.
1679 (the_low_target): Remove the op fields.
1680 * linux-m68k-low.cc (class m68k_target)
1681 <low_supports_breakpoints>
1682 <low_get_pc>
1683 <low_set_pc>: Declare.
1684 (m68k_target::low_supports_breakpoints)
1685 (m68k_target::low_get_pc)
1686 (m68k_target::low_set_pc): Define.
1687 (the_low_target): Remove the op fields.
1688 * linux-nios2-low.cc (class nios2_target)
1689 <low_supports_breakpoints>
1690 <low_get_pc>
1691 <low_set_pc>: Declare.
1692 (nios2_target::low_supports_breakpoints)
1693 (nios2_target::low_get_pc)
1694 (nios2_target::low_set_pc): Define.
1695 (the_low_target): Remove the op fields.
1696 * linux-sh-low.cc (class sh_target)
1697 <low_supports_breakpoints>
1698 <low_get_pc>
1699 <low_set_pc>: Declare.
1700 (sh_target::low_supports_breakpoints)
1701 (sh_target::low_get_pc)
1702 (sh_target::low_set_pc): Define.
1703 (the_low_target): Remove the op fields.
1704 * linux-xtensa-low.cc (class xtensa_target)
1705 <low_supports_breakpoints>
1706 <low_get_pc>
1707 <low_set_pc>: Declare.
1708 (xtensa_target::low_supports_breakpoints)
1709 (xtensa_target::low_get_pc)
1710 (xtensa_target::low_set_pc): Define.
1711 (the_low_target): Remove the op fields.
1712 * linux-sparc-low.cc (class sparc_target)
1713 <low_supports_breakpoints>
1714 <low_get_pc>: Declare.
1715 (sparc_target::low_supports_breakpoints)
1716 (sparc_target::low_get_pc): Define.
1717 (the_low_target): Remove the op fields.
1718 * linux-tile-low.cc (class tile_target)
1719 <low_supports_breakpoints>
1720 <low_get_pc>
1721 <low_set_pc>: Declare.
1722 (tile_target::low_supports_breakpoints)
1723 (tile_target::low_get_pc)
1724 (tile_target::low_set_pc): Define.
1725 (the_low_target): Remove the op fields.
1726 * linux-aarch64-low.cc (class aarch64_target)
1727 <low_supports_breakpoints>
1728 <low_get_pc>
1729 <low_set_pc>: Declare.
1730 (aarch64_target::low_supports_breakpoints): Define.
1731 (aarch64_get_pc): Turn into...
1732 (aarch64_target::low_get_pc): ...this.
1733 (aarch64_set_pc): Turn into...
1734 (aarch64_target::low_set_pc): ...this.
1735 (the_low_target): Remove the op fields.
1736 * linux-mips-low.cc (class mips_target)
1737 <low_supports_breakpoints>
1738 <low_get_pc>
1739 <low_set_pc>: Declare.
1740 (mips_target::low_supports_breakpoints): Define.
1741 (mips_get_pc): Turn into...
1742 (mips_target::low_get_pc): ...this.
1743 (mips_set_pc): Turn into...
1744 (mips_target::low_set_pc): ...this.
1745 (the_low_target): Remove the op fields.
1746 * linux-ppc-low.cc (class ppc_target)
1747 <low_supports_breakpoints>
1748 <low_get_pc>
1749 <low_set_pc>: Declare.
1750 (ppc_target::low_supports_breakpoints): Define.
1751 (ppc_get_pc): Turn into...
1752 (ppc_target::low_get_pc): ...this.
1753 (ppc_set_pc): Turn into...
1754 (ppc_target::low_set_pc): ...this.
1755 (the_low_target): Remove the op fields.
1756 * linux-riscv-low.cc (class riscv_target)
1757 <low_supports_breakpoints>
1758 <low_get_pc>
1759 <low_set_pc>: Declare.
1760 (riscv_target::low_supports_breakpoints): Define.
1761 (riscv_get_pc): Turn into...
1762 (riscv_target::low_get_pc): ...this.
1763 (riscv_set_pc): Turn into...
1764 (riscv_target::low_set_pc): ...this.
1765 (the_low_target): Remove the op fields.
1766 * linux-s390-low.cc (class s390_target)
1767 <low_supports_breakpoints>
1768 <low_get_pc>
1769 <low_set_pc>: Declare.
1770 (s390_target::low_supports_breakpoints): Define.
1771 (s390_get_pc): Turn into...
1772 (s390_target::low_get_pc): ...this.
1773 (s390_set_pc): Turn into...
1774 (s390_target::low_set_pc): ...this.
1775 (the_low_target): Remove the op fields.
1776 * linux-tic6x-low.cc (class tic6x_target)
1777 <low_supports_breakpoints>
1778 <low_get_pc>
1779 <low_set_pc>: Declare.
1780 (tic6x_target::low_supports_breakpoints): Define.
1781 (tic6x_get_pc): Turn into...
1782 (tic6x_target::low_get_pc): ...this.
1783 (tic6x_set_pc): Turn into...
1784 (tic6x_target::low_set_pc): ...this.
1785 (the_low_target): Remove the op fields.
1786
df95181f
TBA
17872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1788
1789 Turn some more static methods in linux-low into private methods
1790 of linux_process_target.
1791
1792 * linux-low.cc (get_pc): Turn into...
1793 (linux_process_target::get_pc): ...this.
1794 (save_stop_reason): Turn into...
1795 (linux_process_target::save_stop_reason): ...this.
1796 (thread_still_has_status_pending_p): Turn into...
1797 (linux_process_target::thread_still_has_status_pending): ...this.
1798 (status_pending_p_callback): Turn into...
1799 (linux_process_target::status_pending_p_callback): ...this.
1800 (resume_stopped_resumed_lwps): Turn into...
1801 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1802 (install_software_single_step_breakpoints): Turn into...
1803 (linux_process_target::install_software_single_step_breakpoints):
1804 ...this.
1805 (single_step): Turn into...
1806 (linux_process_target::single_step): ...this.
1807 (linux_resume_one_lwp_throw): Turn into...
1808 (linux_process_target::resume_one_lwp_throw): ...this.
1809 (linux_resume_one_lwp): Turn into...
1810 (linux_process_target::resume_one_lwp): ...this.
1811 (resume_status_pending_p): Turn into...
1812 (linux_process_target::resume_status_pending): ...this.
1813 (need_step_over_p): Turn into...
1814 (linux_process_target::thread_needs_step_over): ...this.
1815 (linux_resume_one_thread): Turn into...
1816 (linux_process_target::resume_one_thread): ...this.
1817 (proceed_one_lwp): Turn into...
1818 (linux_process_target::proceed_one_lwp): ...this.
1819 (unsuspend_and_proceed_one_lwp): Turn into...
1820 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1821
1822 Update the calls/references to the above functions below.
1823
1824 (linux_process_target::handle_extended_wait)
1825 (linux_process_target::filter_event)
1826 (linux_process_target::wait_for_event_filtered)
1827 (linux_process_target::wait_1)
1828 (linux_process_target::move_out_of_jump_pad)
1829 (linux_process_target::start_step_over)
1830 (linux_process_target::resume)
1831 (linux_process_target::proceed_all_lwps)
1832 (regsets_store_inferior_registers)
1833 (linux_process_target::store_register)
1834
1835 * linux-low.h (class linux_process_target)
1836 <get_pc>
1837 <save_stop_reason>
1838 <thread_still_has_status_pending>
1839 <status_pending_p_callback>
1840 <resume_stopped_resumed_lwps>
1841 <install_software_single_step_breakpoints>
1842 <single_step>
1843 <resume_one_lwp_throw>
1844 <resume_one_lwp>
1845 <resume_status_pending>
1846 <thread_needs_step_over>
1847 <resume_one_thread>
1848 <proceed_one_lwp>
1849 <unsuspend_and_proceed_one_lwp>: Declare.
1850
bd70b1f2
TBA
18512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1852
1853 Turn the 'fetch_register' linux target op into a method of
1854 linux_process_target.
1855
1856 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1857 (class linux_process_target) <low_fetch_register>: Declare.
1858 * linux-x86-low.cc (the_low_target)
1859 * linux-aarch64-low.cc (the_low_target)
1860 * linux-arm-low.cc (the_low_target)
1861 * linux-bfin-low.cc (the_low_target)
1862 * linux-cris-low.cc (the_low_target)
1863 * linux-crisv32-low.cc (the_low_target)
1864 * linux-m32r-low.cc (the_low_target)
1865 * linux-m68k-low.cc (the_low_target)
1866 * linux-nios2-low.cc (the_low_target)
1867 * linux-ppc-low.cc (the_low_target)
1868 * linux-s390-low.cc (the_low_target)
1869 * linux-sh-low.cc (the_low_target)
1870 * linux-sparc-low.cc (the_low_target)
1871 * linux-tic6x-low.cc (the_low_target)
1872 * linux-tile-low.cc (the_low_target)
1873 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1874 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1875 Declare.
1876 (ia64_fetch_register): Turn into...
1877 (ia64_target::low_fetch_register): ...this.
1878 (the_low_target): Remove the op field.
1879 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1880 Declare.
1881 (mips_fetch_register): Turn into...
1882 (mips_target::low_fetch_register): ...this.
1883 (the_low_target): Remove the op field.
1884 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1885 Declare.
1886 (riscv_fetch_register): Turn into...
1887 (riscv_target::low_fetch_register): ...this.
1888 (the_low_target): Remove the op field.
1889
1890 Update the callers below.
1891
1892 * linux-low.cc (linux_process_target::fetch_registers)
1893 (linux_process_target::low_fetch_register)
1894
daca57a7
TBA
18952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1896
1897 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1898 linux target ops into methods of linux_process_target.
1899
1900 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1901 (class linux_process_target) <fetch_register>
1902 <store_register>
1903 <usr_fetch_inferior_registers>
1904 <usr_store_inferior_registers>
1905 <low_cannot_fetch_register>
1906 <low_cannot_fetch_register> Declare.
1907 * linux-low.cc (fetch_register): Turn into...
1908 (linux_process_target::fetch_register): ...this.
1909 (store_register): Turn into ...
1910 (linux_process_target::store_register): ...this.
1911 (usr_fetch_inferior_registers): Turn into...
1912 (linux_process_target::usr_fetch_inferior_registers): ...this.
1913 (usr_store_inferior_registers): Turn into...
1914 (linux_process_target::usr_store_inferior_registers): ...this.
1915 * linux-x86-low.cc (class x86_target)
1916 <low_cannot_fetch_register>
1917 <low_cannot_store_register>: Declare.
1918 (x86_cannot_store_register): Turn into...
1919 (x86_target::low_cannot_store_register): ...this.
1920 (x86_cannot_fetch_register): Turn into...
1921 (x86_target::low_cannot_fetch_register): ...this.
1922 (the_low_target): Remove the target op fields.
1923 * linux-aarch64-low.cc (class aarch64_target)
1924 <low_cannot_fetch_register>
1925 <low_cannot_store_register>: Declare.
1926 (aarch64_target::low_cannot_fetch_register)
1927 (aarch64_target::low_cannot_store_register): Define.
1928 (the_low_target): Remove the op fields.
1929 * linux-arm-low.cc (class arm_target)
1930 <low_cannot_fetch_register>
1931 <low_cannot_store_register>: Declare.
1932 (arm_cannot_fetch_register): Turn into...
1933 (arm_target::low_cannot_fetch_register): ...this.
1934 (arm_cannot_store_register): Turn into...
1935 (arm_target::low_cannot_store_register): ...this.
1936 (the_low_target): Remove the op fields.
1937 * linux-bfin-low.cc (class bfin_target)
1938 <low_cannot_fetch_register>
1939 <low_cannot_store_register>: Declare.
1940 (bfin_cannot_fetch_register): Turn into...
1941 (bfin_target::low_cannot_fetch_register): ...this.
1942 (bfin_cannot_store_register): Turn into...
1943 (bfin_target::low_cannot_store_register): ...this.
1944 (the_low_target): Remove the op fields.
1945 * linux-cris-low.cc (class cris_target)
1946 <low_cannot_fetch_register>
1947 <low_cannot_store_register>: Declare.
1948 (cris_cannot_fetch_register): Turn into...
1949 (cris_target::low_cannot_fetch_register): ...this.
1950 (cris_cannot_store_register): Turn into...
1951 (cris_target::low_cannot_store_register): ...this.
1952 (the_low_target): Remove the op fields.
1953 * linux-crisv32-low.cc (class crisv32_target)
1954 <low_cannot_fetch_register>
1955 <low_cannot_store_register>: Declare.
1956 (crisv32_target::low_cannot_fetch_register)
1957 (crisv32_target::low_cannot_store_register): Define.
1958 (the_low_target): Remove the op fields.
1959 * linux-ia64-low.cc (class ia64_target)
1960 <low_cannot_fetch_register>
1961 <low_cannot_store_register>: Declare.
1962 (ia64_cannot_fetch_register): Turn into...
1963 (ia64_target::low_cannot_fetch_register): ...this.
1964 (ia64_cannot_store_register): Turn into...
1965 (ia64_target::low_cannot_store_register): ...this.
1966 (the_low_target): Remove the op fields.
1967 * linux-m32r-low.cc (class m32r_target)
1968 <low_cannot_fetch_register>
1969 <low_cannot_store_register>: Declare.
1970 (m32r_cannot_fetch_register): Turn into...
1971 (m32r_target::low_cannot_fetch_register): ...this.
1972 (m32r_cannot_store_register): Turn into...
1973 (m32r_target::low_cannot_store_register): ...this.
1974 (the_low_target): Remove the op fields.
1975 * linux-m68k-low.cc (class m68k_target)
1976 <low_cannot_fetch_register>
1977 <low_cannot_store_register>: Declare.
1978 (m68k_cannot_fetch_register): Turn into...
1979 (m68k_target::low_cannot_fetch_register): ...this.
1980 (m68k_cannot_store_register): Turn into...
1981 (m68k_target::low_cannot_store_register): ...this.
1982 (the_low_target): Remove the op fields.
1983 * linux-mips-low.cc (class mips_target)
1984 <low_cannot_fetch_register>
1985 <low_cannot_store_register>: Declare.
1986 (mips_cannot_fetch_register): Turn into...
1987 (mips_target::low_cannot_fetch_register): ...this.
1988 (mips_cannot_store_register): Turn into...
1989 (mips_target::low_cannot_store_register): ...this.
1990 (get_usrregs_info): Inline at the call sites in
1991 low_cannot_fetch_register and low_cannot_store_register,
1992 and remove.
1993 (the_low_target): Remove the op fields.
1994 * linux-nios2-low.cc (class nios2_target)
1995 <low_cannot_fetch_register>
1996 <low_cannot_store_register>: Declare.
1997 (nios2_cannot_fetch_register): Turn into...
1998 (nios2_target::low_cannot_fetch_register): ...this.
1999 (nios2_cannot_store_register): Turn into...
2000 (nios2_target::low_cannot_store_register): ...this.
2001 (the_low_target): Remove the op fields.
2002 * linux-ppc-low.cc (class ppc_target)
2003 <low_cannot_fetch_register>
2004 <low_cannot_store_register>: Declare.
2005 (ppc_cannot_fetch_register): Turn into...
2006 (ppc_target::low_cannot_fetch_register): ...this.
2007 (ppc_cannot_store_register): Turn into...
2008 (ppc_target::low_cannot_store_register): ...this.
2009 (the_low_target): Remove the op fields.
2010 * linux-riscv-low.cc (class riscv_target)
2011 <low_cannot_fetch_register>
2012 <low_cannot_store_register>: Declare.
2013 (riscv_target::low_cannot_fetch_register)
2014 (riscv_target::low_cannot_store_register): Define.
2015 (the_low_target): Remove the op fields.
2016 * linux-s390-low.cc (class s390_target)
2017 <low_cannot_fetch_register>
2018 <low_cannot_store_register>: Declare.
2019 (s390_cannot_fetch_register): Turn into...
2020 (s390_target::low_cannot_fetch_register): ...this.
2021 (s390_cannot_store_register): Turn into...
2022 (s390_target::low_cannot_store_register): ...this.
2023 (the_low_target): Remove the op fields.
2024 * linux-sh-low.cc (class sh_target)
2025 <low_cannot_fetch_register>
2026 <low_cannot_store_register>: Declare.
2027 (sh_cannot_fetch_register): Turn into...
2028 (sh_target::low_cannot_fetch_register): ...this.
2029 (sh_cannot_store_register): Turn into...
2030 (sh_target::low_cannot_store_register): ...this.
2031 (the_low_target): Remove the op fields.
2032 * linux-sparc-low.cc (class sparc_target)
2033 <low_cannot_fetch_register>
2034 <low_cannot_store_register>: Declare.
2035 (sparc_cannot_fetch_register): Turn into...
2036 (sparc_target::low_cannot_fetch_register): ...this.
2037 (sparc_cannot_store_register): Turn into...
2038 (sparc_target::low_cannot_store_register): ...this.
2039 (the_low_target): Remove the op fields.
2040 * linux-tic6x-low.cc (class tic6x_target)
2041 <low_cannot_fetch_register>
2042 <low_cannot_store_register>: Declare.
2043 (tic6x_cannot_fetch_register): Turn into...
2044 (tic6x_target::low_cannot_fetch_register): ...this.
2045 (tic6x_cannot_store_register): Turn into...
2046 (tic6x_target::low_cannot_store_register): ...this.
2047 (the_low_target): Remove the op fields.
2048 * linux-tile-low.cc (class tile_target)
2049 <low_cannot_fetch_register>
2050 <low_cannot_store_register>: Declare.
2051 (tile_cannot_fetch_register): Turn into...
2052 (tile_target::low_cannot_fetch_register): ...this.
2053 (tile_cannot_store_register): Turn into...
2054 (tile_target::low_cannot_store_register): ...this.
2055 (the_low_target): Remove the op fields.
2056 * linux-xtensa-low.cc (class xtensa_target)
2057 <low_cannot_fetch_register>
2058 <low_cannot_store_register>: Declare.
2059 (xtensa_target::low_cannot_fetch_register)
2060 (xtensa_target::low_cannot_store_register): Define.
2061 (the_low_target): Remove the op fields.
2062
aa8d21c9
TBA
20632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2064
2065 Turn the 'regs_info' linux target op into a method of
2066 linux_process_target.
2067
2068 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2069 (class linux_process_target) <get_regs_info>: Define.
2070
2071 Update the callers below.
2072
2073 * linux-low.cc (linux_process_target::fetch_registers)
2074 (linux_process_target::store_registers)
2075 * proc-service.cc (gregset_info)
2076
2077 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2078 (x86_linux_regs_info): Turn into ...
2079 (x86_target::get_regs_info): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2082 Declare.
2083 (aarch64_regs_info): Turn into ...
2084 (aarch64_target::get_regs_info): ...this.
2085 (the_low_target): Remove the op field.
2086 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2087 (arm_regs_info): Turn into ...
2088 (arm_target::get_regs_info): ...this.
2089 (the_low_target): Remove the op field.
2090 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2091 (bfin_regs_info): Turn into ...
2092 (bfin_target::get_regs_info): ...this.
2093 (the_low_target): Remove the op field.
2094 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2095 (cris_regs_info): Turn into ...
2096 (cris_target::get_regs_info): ...this.
2097 (the_low_target): Remove the op field.
2098 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2099 Declare.
2100 (crisv32_regs_info): Turn into ...
2101 (crisv32_target::get_regs_info): ...this.
2102 (the_low_target): Remove the op field.
2103 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2104 (ia64_regs_info): Turn into ...
2105 (ia64_target::get_regs_info): ...this.
2106 (the_low_target): Remove the op field.
2107 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2108 (m32r_regs_info): Turn into ...
2109 (m32r_target::get_regs_info): ...this.
2110 (the_low_target): Remove the op field.
2111 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2112 (m68k_regs_info): Turn into ...
2113 (m68k_target::get_regs_info): ...this.
2114 (the_low_target): Remove the op field.
2115 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2116 (mips_regs_info): Turn into ...
2117 (mips_target::get_regs_info): ...this.
2118 (the_low_target): Remove the op field.
2119 (get_usrregs_info): Update the call to the op.
2120 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2121 (nios2_regs_info): Turn into ...
2122 (nios2_target::get_regs_info): ...this.
2123 (the_low_target): Remove the op field.
2124 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2125 (ppc_regs_info): Turn into ...
2126 (ppc_target::get_regs_info): ...this.
2127 (the_low_target): Remove the op field.
2128 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2129 (riscv_regs_info): Turn into ...
2130 (riscv_target::get_regs_info): ...this.
2131 (the_low_target): Remove the op field.
2132 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2133 (s390_regs_info): Turn into ...
2134 (s390_target::get_regs_info): ...this.
2135 (the_low_target): Remove the op field.
2136 (s390_collect_ptrace_register)
2137 (s390_supply_ptrace_register)
2138 (s390_fill_gregset): Update the call to the op.
2139 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2140 (sh_regs_info): Turn into ...
2141 (sh_target::get_regs_info): ...this.
2142 (the_low_target): Remove the op field.
2143 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2144 (sparc_regs_info): Turn into ...
2145 (sparc_target::get_regs_info): ...this.
2146 (the_low_target): Remove the op field.
2147 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2148 (tic6x_regs_info): Turn into ...
2149 (tic6x_target::get_regs_info): ...this.
2150 (the_low_target): Remove the op field.
2151 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2152 (tile_regs_info): Turn into ...
2153 (tile_target::get_regs_info): ...this.
2154 (the_low_target): Remove the op field.
2155 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2156 Declare.
2157 (xtensa_regs_info): Turn into ...
2158 (xtensa_target::get_regs_info): ...this.
2159 (the_low_target): Remove the op field.
2160
797bcff5
TBA
21612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2162
2163 Turn the 'arch_setup' linux target op into a method of
2164 linux_process_target.
2165
2166 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2167 (class linux_process_target) <arch_setup_thread>
2168 <low_arch_setup>: New declarations.
2169 * linux-low.cc (linux_arch_setup): Delete.
2170 (linux_arch_setup_thread): Turn into...
2171 (linux_process_target::arch_setup_thread): ... this.
2172
2173 Update the callers below.
2174
2175 (linux_process_target::handle_extended_wait)
2176 (linux_process_target::post_create_inferior)
2177 (linux_process_target::filter_event)
2178
2179 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2180 declaration.
2181 (x86_linux_update_xmltarget): Turn into...
2182 (x86_target::update_xmltarget): ...this.
2183 (x86_linux_process_qsupported): Update the call to
2184 x86_linux_update_xmltarget.
2185 (x86_arch_setup): Turn into ...
2186 (x86_target::low_arch_setup): ...this.
2187 (the_low_target): Remove the op field.
2188 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2189 declaration.
2190 (aarch64_arch_setup): Turn into ...
2191 (aarch64_target::low_arch_setup): ...this.
2192 (the_low_target): Remove the op field.
2193 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2194 declaration.
2195 (arm_arch_setup): Turn into ...
2196 (arm_target::low_arch_setup): ...this.
2197 (the_low_target): Remove the op field.
2198 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2199 declaration.
2200 (bfin_arch_setup): Turn into ...
2201 (bfin_target::low_arch_setup): ...this.
2202 (the_low_target): Remove the op field.
2203 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2204 declaration.
2205 (cris_arch_setup): Turn into ...
2206 (cris_target::low_arch_setup): ...this.
2207 (the_low_target): Remove the op field.
2208 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2209 declaration.
2210 (crisv32_arch_setup): Turn into ...
2211 (crisv32_target::low_arch_setup): ...this.
2212 (the_low_target): Remove the op field.
2213 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2214 declaration.
2215 (ia64_arch_setup): Turn into ...
2216 (ia64_target::low_arch_setup): ...this.
2217 (the_low_target): Remove the op field.
2218 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2219 declaration.
2220 (m32r_arch_setup): Turn into ...
2221 (m32r_target::low_arch_setup): ...this.
2222 (the_low_target): Remove the op field.
2223 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2224 declaration.
2225 (m68k_arch_setup): Turn into ...
2226 (m68k_target::low_arch_setup): ...this.
2227 (the_low_target): Remove the op field.
2228 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2229 declaration.
2230 (mips_arch_setup): Turn into ...
2231 (mips_target::low_arch_setup): ...this.
2232 (the_low_target): Remove the op field.
2233 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2234 declaration.
2235 (nios2_arch_setup): Turn into ...
2236 (nios2_target::low_arch_setup): ...this.
2237 (the_low_target): Remove the op field.
2238 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2239 declaration.
2240 (ppc_arch_setup): Turn into ...
2241 (ppc_target::low_arch_setup): ...this.
2242 (the_low_target): Remove the op field.
2243 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2244 declaration.
2245 (riscv_arch_setup): Turn into ...
2246 (riscv_target::low_arch_setup): ...this.
2247 (the_low_target): Remove the op field.
2248 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2249 declaration.
2250 (s390_arch_setup): Turn into ...
2251 (s390_target::low_arch_setup): ...this.
2252 (the_low_target): Remove the op field.
2253 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2254 declaration.
2255 (sh_arch_setup): Turn into ...
2256 (sh_target::low_arch_setup): ...this.
2257 (the_low_target): Remove the op field.
2258 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2259 declaration.
2260 (sparc_arch_setup): Turn into ...
2261 (sparc_target::low_arch_setup): ...this.
2262 (the_low_target): Remove the op field.
2263 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2264 declaration.
2265 (tic6x_arch_setup): Turn into ...
2266 (tic6x_target::low_arch_setup): ...this.
2267 (the_low_target): Remove the op field.
2268 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2269 declaration.
2270 (tile_arch_setup): Turn into ...
2271 (tile_target::low_arch_setup): ...this.
2272 (the_low_target): Remove the op field.
2273 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2274 declaration.
2275 (xtensa_arch_setup): Turn into ...
2276 (xtensa_target::low_arch_setup): ...this.
2277 (the_low_target): Remove the op field.
2278
ef0478f6
TBA
22792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2280
2281 * linux-low.h (the_linux_target): New extern declaration.
2282 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2283 'the_target'.
2284 (the_linux_target): Remove.
2285 * linux-x86-low.cc (class x86_target): New class.
2286 (the_x86_target): New static object.
2287 (the_linux_target): Define as pointer to the_x86_target.
2288 * linux-aarch64-low.cc (class aarch64_target): New class.
2289 (the_aarch64_target): New static object.
2290 (the_linux_target): Define as pointer to the_aarch64_target.
2291 * linux-arm-low.cc (class arm_target): New class.
2292 (the_arm_target): New static object.
2293 (the_linux_target): Define as pointer to the_arm_target.
2294 * linux-bfin-low.cc (class bfin_target): New class.
2295 (the_bfin_target): New static object.
2296 (the_linux_target): Define as pointer to the_bfin_target.
2297 * linux-cris-low.cc (class cris_target): New class.
2298 (the_cris_target): New static object.
2299 (the_linux_target): Define as pointer to the_cris_target.
2300 * linux-crisv32-low.cc (class crisv32_target): New class.
2301 (the_crisv32_target): New static object.
2302 (the_linux_target): Define as pointer to the_crisv32_target.
2303 * linux-ia64-low.cc (class ia64_target): New class.
2304 (the_ia64_target): New static object.
2305 (the_linux_target): Define as pointer to the_ia64_target.
2306 * linux-m32r-low.cc (class m32r_target): New class.
2307 (the_m32r_target): New static object.
2308 (the_linux_target): Define as pointer to the_m32r_target.
2309 * linux-m68k-low.cc (class m68k_target): New class.
2310 (the_m68k_target): New static object.
2311 (the_linux_target): Define as pointer to the_m68k_target.
2312 * linux-mips-low.cc (class mips_target): New class.
2313 (the_mips_target): New static object.
2314 (the_linux_target): Define as pointer to the_mips_target.
2315 * linux-nios2-low.cc (class nios2_target): New class.
2316 (the_nios2_target): New static object.
2317 (the_linux_target): Define as pointer to the_nios2_target.
2318 * linux-ppc-low.cc (class ppc_target): New class.
2319 (the_ppc_target): New static object.
2320 (the_linux_target): Define as pointer to the_ppc_target.
2321 * linux-riscv-low.cc (class riscv_target): New class.
2322 (the_riscv_target): New static object.
2323 (the_linux_target): Define as pointer to the_riscv_target.
2324 * linux-s390-low.cc (class s390_target): New class.
2325 (the_s390_target): New static object.
2326 (the_linux_target): Define as pointer to the_s390_target.
2327 * linux-sh-low.cc (class sh_target): New class.
2328 (the_sh_target): New static object.
2329 (the_linux_target): Define as pointer to the_sh_target.
2330 * linux-sparc-low.cc (class sparc_target): New class.
2331 (the_sparc_target): New static object.
2332 (the_linux_target): Define as pointer to the_sparc_target.
2333 * linux-tic6x-low.cc (class tic6x_target): New class.
2334 (the_tic6x_target): New static object.
2335 (the_linux_target): Define as pointer to the_tic6x_target.
2336 * linux-tile-low.cc (class tile_target): New class.
2337 (the_tile_target): New static object.
2338 (the_linux_target): Define as pointer to the_tile_target.
2339 * linux-xtensa-low.cc (class xtensa_target): New class.
2340 (the_xtensa_target): New static object.
2341 (the_linux_target): Define as pointer to the_xtensa_target.
2342
d16f3f6c
TBA
23432020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2344
2345 Turn some static functions in linux-low.cc into private methods of
2346 linux_process_target.
2347
2348 * linux-low.cc (handle_extended_wait): Turn into ...
2349 (linux_process_target::handle_extended_wait): ...this. Call
2350 'mourn' on 'this' object instead of 'the_target'.
2351 (maybe_move_out_of_jump_pad): Turn into...
2352 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2353 (linux_low_filter_event): Turn into...
2354 (linux_process_target::filter_event): ...this.
2355 (linux_wait_for_event_filtered): Turn into...
2356 (linux_process_target::wait_for_event_filtered): ...this.
2357 (linux_wait_for_event): Turn into...
2358 (linux_process_target::wait_for_event): ...this.
2359 (linux_wait_1): Turn into...
2360 (linux_process_target::wait_1): ...this.
2361 (wait_for_sigstop): Turn into...
2362 (linux_process_target::wait_for_sigstop): ...this.
2363 (move_out_of_jump_pad_callback): Turn into...
2364 (linux_process_target::move_out_of_jump_pad): ...this.
2365 (stop_all_lwps): Turn into...
2366 (linux_process_target::stop_all_lwps): ...this.
2367 (start_step_over): Turn into...
2368 (linux_process_target::start_step_over): ...this.
2369 (complete_ongoing_step_over): Turn into...
2370 (linux_process_target::complete_ongoing_step_over): ...this.
2371 (proceed_all_lwps): Turn into...
2372 (linux_process_target::proceed_all_lwps): ...this.
2373 (unstop_all_lwps): Turn into...
2374 (linux_process_target::unstop_all_lwps): ...this.
2375
2376 * linux-low.h (class linux_process_target)
2377 <handle_extended_wait>
2378 <maybe_move_out_of_jump_pad>
2379 filter_event>
2380 <wait_for_event_filtered>
2381 <wait_for_event>
2382 <wait_1>
2383 <wait_for_sigstop>
2384 <move_out_of_jump_pad>
2385 <stop_all_lwps>
2386 <start_step_over>
2387 <complete_ongoing_step_over>
2388 <proceed_all_lwps>
2389 <unstop_all_lwps>: Declare.
2390
2391 Update the callers below.
2392
2393 * linux-low.cc (linux_process_target::attach): Update.
2394 (linux_process_target::stabilize_threads): Ditto.
2395 (linux_process_target::wait): Ditto.
2396
a5863204
TBA
23972020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2398
2399 * linux-low.h (struct linux_target_ops): Update the comment for
2400 'cannot_store_register' to return 0 or 1.
2401 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2402 of 2.
2403
c884cc46
SM
24042020-03-20 Simon Marchi <simon.marchi@efficios.com>
2405
2406 * config.in: Re-generate.
2407 * configure: Re-generate.
2408
5a82b8a1
KR
24092020-03-17 Kamil Rytarowski <n54@gmx.com>
2410
2411 * regcache.cc (find_register_by_number): Update.
2412 * tdesc.cc (init_target_desc): Likewise.
2413 * tdesc.h (target_desc::reg_defs): Likewise.
2414
4635ff97
TT
24152020-03-12 Tom Tromey <tom@tromey.com>
2416
2417 * configure: Rebuild.
2418 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2419 (WIN32APILIBS): New subst.
2420 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2421 gdbsupport files.
2422 (gdbsupport/%.o): Remove target.
2423 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2424 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2425 (WIN32APILIBS): New variable.
2426 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2427 (gdbreplay$(EXEEXT)): Likewise.
2428
9a665d62
TT
24292020-03-12 Tom Tromey <tom@tromey.com>
2430
2431 * config.in, configure: Rebuild.
2432 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2433 * acinclude.m4: Include gettext-sister.m4.
2434 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2435 variables.
2436 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2437 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2438
272cd5a3
SM
24392020-03-12 Simon Marchi <simon.marchi@efficios.com>
2440
2441 * acinclude.m4: Update path to selftest.m4.
2442
db6878ac
SM
24432020-03-12 Simon Marchi <simon.marchi@efficios.com>
2444
2445 * configure.ac: Don't source bfd/development.sh, move
2446 GDB_AC_COMMON higher.
2447 * configure: Re-generate.
2448
4d696a5c
SM
24492020-03-12 Simon Marchi <simon.marchi@efficios.com>
2450
2451 * configure: Re-generate.
2452
a0761e34
SM
24532020-03-11 Simon Marchi <simon.marchi@efficios.com>
2454
2455 * configure: Re-generate.
2456
20ea4a60
AB
24572020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2458
2459 * .dir-locals.el: New file.
2460
842806cb
TBA
24612020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2462
2463 * .gitattributes: New file.
2464
442131c1
AB
24652020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2468 reply into an S reply.
2469 * server.cc (disable_packet_T): New global.
2470 (captured_main): Set new global when appropriate.
2471 * server.h (disable_packet_T): Declare.
2472
dda42c0b
TT
24732020-02-21 Tom Tromey <tom@tromey.com>
2474
2475 * Makefile.in (mostlyclean): New target.
2476
52405d85
TBA
24772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2478
2479 * target.h (struct process_stratum_target): Remove.
2480 (class process_target): Rename to ...
2481 (class process_stratum_target): ... this.
2482 * linux-low.h (class linux_process_target): Derive from
2483 'process_stratum_target'.
2484 * linux-low.cc (linux_target_ops): Remove.
2485 (initialize_low): Set the_target to the singleton instance of
2486 linux_process_target.
2487 * lynx-low.h (class lynx_process_target): Derive from
2488 'process_stratum_target'.
2489 * lynx-low.cc (lynx_target_ops): Remove.
2490 (initialize_low): Set the_target to the singleton instance of
2491 lynx_process_target.
2492 * nto-low.h (class nto_process_target): Derive from
2493 'process_stratum_target'.
2494 * nto-low.cc (nto_target_ops): Remove.
2495 (initialize_low): Set the_target to the singleton instance of
2496 nto_process_target.
2497 * win32-low.h (class win32_process_target): Derive from
2498 'process_stratum_target'.
2499 * win32-low.cc (win32_target_ops): Remove.
2500 (initialize_low): Set the_target to the singleton instance of
2501 win32_process_target.
2502
2503 Replace 'the_target->pt' with 'the_target' in the uses below.
2504
2505 * hostio.cc (hostio_error)
2506 (handle_setfs)
2507 (handle_open)
2508 (handle_unlink)
2509 (handle_readlink)
2510 * linux-aarch32-low.cc (arm_breakpoint_at)
2511 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2512 * linux-arm-low.cc (arm_sigreturn_next_pc)
2513 (arm_get_hwcap)
2514 (arm_get_syscall_trapinfo)
2515 * linux-cris-low.cc (cris_breakpoint_at)
2516 * linux-crisv32-low.cc (cris_breakpoint_at)
2517 * linux-low.cc (handle_extended_wait)
2518 (linux_wait_1)
2519 (linux_read_memory)
2520 (linux_process_target::breakpoint_kind_from_pc)
2521 (linux_get_auxv)
2522 * linux-m32r-low.cc (m32r_breakpoint_at)
2523 * linux-mips-low.cc (mips_breakpoint_at)
2524 * linux-nios2-low.cc (nios2_breakpoint_at)
2525 * linux-ppc-low.cc (ppc_breakpoint_at)
2526 * linux-s390-low.cc (s390_get_hwcap)
2527 * linux-sh-low.cc (sh_breakpoint_at)
2528 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2529 (sparc_store_gregset_from_stack)
2530 (sparc_breakpoint_at)
2531 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2532 * linux-tile-low.cc (tile_breakpoint_at)
2533 * linux-x86-low.cc (x86_breakpoint_at)
2534 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2535 * mem-break.cc (bp_size)
2536 (bp_opcode)
2537 (insert_memory_breakpoint)
2538 (set_raw_breakpoint_at)
2539 (delete_raw_breakpoint)
2540 (z_type_supported)
2541 (uninsert_raw_breakpoint)
2542 (reinsert_raw_breakpoint)
2543 (validate_inserted_breakpoint)
2544 * regcache.cc (regcache_read_pc)
2545 (regcache_write_pc)
2546 * remote-utils.cc (putpkt_binary_1)
2547 (input_interrupt)
2548 (getpkt)
2549 (prepare_resume_reply)
2550 * server.cc (handle_general_set)
2551 (handle_detach)
2552 (handle_qxfer_auxv)
2553 (handle_qxfer_exec_file)
2554 (handle_qxfer_libraries_svr4)
2555 (handle_qxfer_osdata)
2556 (handle_qxfer_siginfo)
2557 (handle_qxfer_fdpic)
2558 (handle_query)
2559 (resume)
2560 (handle_v_requests)
2561 (queue_stop_reply_callback)
2562 (captured_main)
2563 * target.cc (prepare_to_access_memory)
2564 (done_accessing_memory)
2565 (read_inferior_memory)
2566 (target_write_memory)
2567 (target_stop_and_wait)
2568 (target_wait)
2569 (target_mourn_inferior)
2570 (target_continue_no_signal)
2571 (target_continue)
2572 (target_supports_multi_process)
2573 (kill_inferior)
2574 * target.h
2575 (target_create_inferior)
2576 (target_post_create_inferior)
2577 (myattach)
2578 (target_supports_fork_events)
2579 (target_supports_vfork_events)
2580 (target_supports_exec_events)
2581 (target_handle_new_gdb_connection)
2582 (detach_inferior)
2583 (mythread_alive)
2584 (fetch_inferior_registers)
2585 (store_inferior_registers)
2586 (join_inferior)
2587 (target_supports_non_stop)
2588 (target_async)
2589 (target_process_qsupported)
2590 (target_supports_catch_syscall)
2591 (target_get_ipa_tdesc_idx)
2592 (target_supports_tracepoints)
2593 (target_supports_fast_tracepoints)
2594 (target_get_min_fast_tracepoint_insn_len)
2595 (target_thread_stopped)
2596 (target_pause_all)
2597 (target_unpause_all)
2598 (target_stabilize_threads)
2599 (target_install_fast_tracepoint_jump_pad)
2600 (target_emit_ops)
2601 (target_supports_disable_randomization)
2602 (target_supports_agent)
2603 (target_enable_btrace)
2604 (target_disable_btrace)
2605 (target_read_btrace)
2606 (target_read_btrace_conf)
2607 (target_supports_range_stepping)
2608 (target_supports_stopped_by_sw_breakpoint)
2609 (target_stopped_by_sw_breakpoint)
2610 (target_supports_stopped_by_hw_breakpoint)
2611 (target_supports_hardware_single_step)
2612 (target_stopped_by_hw_breakpoint)
2613 (target_breakpoint_kind_from_pc)
2614 (target_breakpoint_kind_from_current_state)
2615 (target_supports_software_single_step)
2616 (target_core_of_thread)
2617 (target_thread_name)
2618 (target_thread_handle)
2619 * win32-low.cc (do_initial_child_stuff)
2620
2621 Rename target op default definitions listed below.
2622
2623 * target.cc (process_target::post_create_inferior): Rename as ...
2624 (process_stratum_target::post_create_inferior): ... this.
2625 (process_target::prepare_to_access_memory): Rename as ...
2626 (process_stratum_target::prepare_to_access_memory): ... this.
2627 (process_target::done_accessing_memory): Rename as ...
2628 (process_stratum_target::done_accessing_memory): ... this.
2629 (process_target::look_up_symbols): Rename as ...
2630 (process_stratum_target::look_up_symbols): ... this.
2631 (process_target::supports_read_auxv): Rename as ...
2632 (process_stratum_target::supports_read_auxv): ... this.
2633 (process_target::read_auxv): Rename as ...
2634 (process_stratum_target::read_auxv): ... this.
2635 (process_target::supports_z_point_type): Rename as ...
2636 (process_stratum_target::supports_z_point_type): ... this.
2637 (process_target::insert_point): Rename as ...
2638 (process_stratum_target::insert_point): ... this.
2639 (process_target::remove_point): Rename as ...
2640 (process_stratum_target::remove_point): ... this.
2641 (process_target::stopped_by_sw_breakpoint): Rename as ...
2642 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2643 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2644 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2645 (process_target::stopped_by_hw_breakpoint): Rename as ...
2646 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2647 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2648 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2649 (process_target::supports_hardware_single_step): Rename as ...
2650 (process_stratum_target::supports_hardware_single_step): ... this.
2651 (process_target::stopped_by_watchpoint): Rename as ...
2652 (process_stratum_target::stopped_by_watchpoint): ... this.
2653 (process_target::stopped_data_address): Rename as ...
2654 (process_stratum_target::stopped_data_address): ... this.
2655 (process_target::supports_read_offsets): Rename as ...
2656 (process_stratum_target::supports_read_offsets): ... this.
2657 (process_target::read_offsets): Rename as ...
2658 (process_stratum_target::read_offsets): ... this.
2659 (process_target::supports_get_tls_address): Rename as ...
2660 (process_stratum_target::supports_get_tls_address): ... this.
2661 (process_target::get_tls_address): Rename as ...
2662 (process_stratum_target::get_tls_address): ... this.
2663 (process_target::hostio_last_error): Rename as ...
2664 (process_stratum_target::hostio_last_error): ... this.
2665 (process_target::supports_qxfer_osdata): Rename as ...
2666 (process_stratum_target::supports_qxfer_osdata): ... this.
2667 (process_target::qxfer_osdata): Rename as ...
2668 (process_stratum_target::qxfer_osdata): ... this.
2669 (process_target::supports_qxfer_siginfo): Rename as ...
2670 (process_stratum_target::supports_qxfer_siginfo): ... this.
2671 (process_target::qxfer_siginfo): Rename as ...
2672 (process_stratum_target::qxfer_siginfo): ... this.
2673 (process_target::supports_non_stop): Rename as ...
2674 (process_stratum_target::supports_non_stop): ... this.
2675 (process_target::async): Rename as ...
2676 (process_stratum_target::async): ... this.
2677 (process_target::start_non_stop): Rename as ...
2678 (process_stratum_target::start_non_stop): ... this.
2679 (process_target::supports_multi_process): Rename as ...
2680 (process_stratum_target::supports_multi_process): ... this.
2681 (process_target::supports_fork_events): Rename as ...
2682 (process_stratum_target::supports_fork_events): ... this.
2683 (process_target::supports_vfork_events): Rename as ...
2684 (process_stratum_target::supports_vfork_events): ... this.
2685 (process_target::supports_exec_events): Rename as ...
2686 (process_stratum_target::supports_exec_events): ... this.
2687 (process_target::handle_new_gdb_connection): Rename as ...
2688 (process_stratum_target::handle_new_gdb_connection): ... this.
2689 (process_target::handle_monitor_command): Rename as ...
2690 (process_stratum_target::handle_monitor_command): ... this.
2691 (process_target::core_of_thread): Rename as ...
2692 (process_stratum_target::core_of_thread): ... this.
2693 (process_target::supports_read_loadmap): Rename as ...
2694 (process_stratum_target::supports_read_loadmap): ... this.
2695 (process_target::read_loadmap): Rename as ...
2696 (process_stratum_target::read_loadmap): ... this.
2697 (process_target::process_qsupported): Rename as ...
2698 (process_stratum_target::process_qsupported): ... this.
2699 (process_target::supports_tracepoints): Rename as ...
2700 (process_stratum_target::supports_tracepoints): ... this.
2701 (process_target::read_pc): Rename as ...
2702 (process_stratum_target::read_pc): ... this.
2703 (process_target::write_pc): Rename as ...
2704 (process_stratum_target::write_pc): ... this.
2705 (process_target::supports_thread_stopped): Rename as ...
2706 (process_stratum_target::supports_thread_stopped): ... this.
2707 (process_target::thread_stopped): Rename as ...
2708 (process_stratum_target::thread_stopped): ... this.
2709 (process_target::supports_get_tib_address): Rename as ...
2710 (process_stratum_target::supports_get_tib_address): ... this.
2711 (process_target::get_tib_address): Rename as ...
2712 (process_stratum_target::get_tib_address): ... this.
2713 (process_target::pause_all): Rename as ...
2714 (process_stratum_target::pause_all): ... this.
2715 (process_target::unpause_all): Rename as ...
2716 (process_stratum_target::unpause_all): ... this.
2717 (process_target::stabilize_threads): Rename as ...
2718 (process_stratum_target::stabilize_threads): ... this.
2719 (process_target::supports_fast_tracepoints): Rename as ...
2720 (process_stratum_target::supports_fast_tracepoints): ... this.
2721 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2722 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2723 (process_target::emit_ops): Rename as ...
2724 (process_stratum_target::emit_ops): ... this.
2725 (process_target::supports_disable_randomization): Rename as ...
2726 (process_stratum_target::supports_disable_randomization): ... this.
2727 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2728 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2729 (process_target::qxfer_libraries_svr4): Rename as ...
2730 (process_stratum_target::qxfer_libraries_svr4): ... this.
2731 (process_target::supports_agent): Rename as ...
2732 (process_stratum_target::supports_agent): ... this.
2733 (process_target::enable_btrace): Rename as ...
2734 (process_stratum_target::enable_btrace): ... this.
2735 (process_target::disable_btrace): Rename as ...
2736 (process_stratum_target::disable_btrace): ... this.
2737 (process_target::read_btrace): Rename as ...
2738 (process_stratum_target::read_btrace): ... this.
2739 (process_target::read_btrace_conf): Rename as ...
2740 (process_stratum_target::read_btrace_conf): ... this.
2741 (process_target::supports_range_stepping): Rename as ...
2742 (process_stratum_target::supports_range_stepping): ... this.
2743 (process_target::supports_pid_to_exec_file): Rename as ...
2744 (process_stratum_target::supports_pid_to_exec_file): ... this.
2745 (process_target::pid_to_exec_file): Rename as ...
2746 (process_stratum_target::pid_to_exec_file): ... this.
2747 (process_target::supports_multifs): Rename as ...
2748 (process_stratum_target::supports_multifs): ... this.
2749 (process_target::multifs_open): Rename as ...
2750 (process_stratum_target::multifs_open): ... this.
2751 (process_target::multifs_unlink): Rename as ...
2752 (process_stratum_target::multifs_unlink): ... this.
2753 (process_target::multifs_readlink): Rename as ...
2754 (process_stratum_target::multifs_readlink): ... this.
2755 (process_target::breakpoint_kind_from_pc): Rename as ...
2756 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2757 (process_target::breakpoint_kind_from_current_state): Rename as ...
2758 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2759 (process_target::thread_name): Rename as ...
2760 (process_stratum_target::thread_name): ... this.
2761 (process_target::thread_handle): Rename as ...
2762 (process_stratum_target::thread_handle): ... this.
2763 (process_target::supports_software_single_step): Rename as ...
2764 (process_stratum_target::supports_software_single_step): ... this.
2765 (process_target::supports_catch_syscall): Rename as ...
2766 (process_stratum_target::supports_catch_syscall): ... this.
2767 (process_target::get_ipa_tdesc_idx): Rename as ...
2768 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2769
478f9adf
PA
27702020-02-20 Pedro Alves <palves@redhat.com>
2771
2772 * target.cc (set_target_ops): Simply copy the given target pointer
2773 instead of creating a copy of the pointed object.
2774
d633e831
TBA
27752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2776
2777 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2778 of process_target.
2779
2780 * target.h (struct process_stratum_target): Remove the target op.
2781 (class process_target): Add the target op.
2782 (target_get_ipa_tdesc_idx): Update the macro.
2783 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2784
2785 Update the derived classes and callers below.
2786
2787 * linux-low.cc (linux_target_ops): Update.
2788 (linux_get_ipa_tdesc_idx): Turn into ...
2789 (linux_process_target::get_ipa_tdesc_idx): ... this.
2790 * linux-low.h (class linux_process_target): Update.
2791 * lynx-low.cc (lynx_target_ops): Update.
2792 * nto-low.cc (nto_target_ops): Update.
2793 * win32-low.cc (win32_target_ops): Update.
2794
bc8d3ae4
TBA
27952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2796
2797 Turn process_stratum_target's supports_catch_syscall op into a
2798 method of process_target.
2799
2800 * target.h (struct process_stratum_target): Remove the target op.
2801 (class process_target): Add the target op.
2802 (target_supports_catch_syscall): Update the macro.
2803 * target.cc (process_target::supports_catch_syscall): Define.
2804
2805 Update the derived classes and callers below.
2806
2807 * linux-low.cc (linux_target_ops): Update.
2808 (linux_supports_catch_syscall): Turn into ...
2809 (linux_process_target::supports_catch_syscall): ... this.
2810 * linux-low.h (class linux_process_target): Update.
2811 * lynx-low.cc (lynx_target_ops): Update.
2812 * nto-low.cc (nto_target_ops): Update.
2813 * win32-low.cc (win32_target_ops): Update.
2814
5303a34f
TBA
28152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2816
2817 Turn process_stratum_target's supports_software_single_step op
2818 into a method of process_target.
2819
2820 * target.h (struct process_stratum_target): Remove the target op.
2821 (class process_target): Add the target op.
2822 (target_supports_software_single_step): Update the macro.
2823 * target.cc (process_target::supports_software_single_step): Define.
2824
2825 Update the derived classes and callers below.
2826
2827 * linux-low.cc (linux_target_ops): Update.
2828 (linux_supports_software_single_step): Turn into ...
2829 (linux_process_target::supports_software_single_step): ... this.
2830 * linux-low.h (class linux_process_target): Update.
2831 * lynx-low.cc (lynx_target_ops): Update.
2832 * nto-low.cc (nto_target_ops): Update.
2833 * win32-low.cc (win32_target_ops): Update.
2834
7f63b89b
TBA
28352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2836
2837 Turn process_stratum_target's thread_name and thread_handle ops
2838 into methods of process_target.
2839
2840 * target.h (struct process_stratum_target): Remove the target ops.
2841 (class process_target): Add the target ops.
2842 (target_thread_name): Update the macro.
2843 (target_thread_handle): Update the macro.
2844 * target.cc (process_target::thread_name): Define.
2845 (process_target::thread_handle): Define.
2846
2847 Update the derived classes and callers below.
2848
2849 * linux-low.cc (linux_target_ops): Update.
2850 (linux_process_target::thread_name): Define.
2851 (linux_process_target::thread_handle): Define.
2852 * linux-low.h (class linux_process_target): Update.
2853 * lynx-low.cc (lynx_target_ops): Update.
2854 * nto-low.cc (nto_target_ops): Update.
2855 * win32-low.cc (win32_target_ops): Update.
2856
d367006f
TBA
28572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2858
2859 Turn process_stratum_target's breakpoint_kind_from_pc,
2860 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2861 ops into methods of process_target.
2862
2863 * target.h (struct process_stratum_target): Remove the target op.
2864 (class process_target): Add the target op.
2865 (target_breakpoint_kind_from_pc): Update the macro.
2866 (target_breakpoint_kind_from_current_state): Update the macro.
2867 (default_breakpoint_kind_from_pc): Remove declaration.
2868 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2869 (process_target::breakpoint_kind_from_pc): ... this.
2870 (process_target::breakpoint_kind_from_current_state): Define.
2871
2872 Update the derived classes and callers below.
2873
2874 * mem-break.cc (bp_size): Update.
2875 (bp_opcode): Update.
2876 * linux-low.cc (linux_target_ops): Update.
2877 (linux_wait_1): Update.
2878 (linux_breakpoint_kind_from_pc): Turn into ...
2879 (linux_process_target::breakpoint_kind_from_pc): ... this.
2880 (linux_sw_breakpoint_from_kind): Turn into ...
2881 (linux_process_target::sw_breakpoint_from_kind): ... this.
2882 (linux_breakpoint_kind_from_current_state): Turn into ...
2883 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2884 * linux-low.h (class linux_process_target): Update.
2885 * lynx-low.cc (lynx_target_ops): Update.
2886 (lynx_process_target::sw_breakpoint_from_kind): Define.
2887 * lynx-low.h (class lynx_process_target): Update.
2888 * nto-low.cc (nto_target_ops): Update.
2889 (nto_sw_breakpoint_from_kind): Turn into ...
2890 (nto_process_target::sw_breakpoint_from_kind): ... this.
2891 * nto-low.h (class nto_process_target): Update.
2892 * win32-low.cc (win32_target_ops): Update.
2893 (win32_sw_breakpoint_from_kind): Turn into ...
2894 (win32_process_target::sw_breakpoint_from_kind): ... this.
2895 * win32-low.h (class win32_process_target): Update.
2896
c9b7b804
TBA
28972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898
2899 Turn process_stratum_target's multifs_open, multifs_readlink,
2900 multifs_unlink ops into methods of process_target.
2901
2902 * target.h (struct process_stratum_target): Remove the target ops.
2903 (class process_target): Add the target ops. Also add
2904 'supports_multifs'.
2905 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2906 "sys/stat.h".
2907 (process_target::supports_multifs): Define.
2908 (process_target::multifs_open): Define.
2909 (process_target::multifs_readlink): Define.
2910 (process_target::multifs_unlink): Define.
2911
2912 Update the derived classes and callers below.
2913
2914 * hostio.cc (handle_setfs): Update.
2915 (handle_open): Update.
2916 (handle_unlink): Update.
2917 (handle_readlink): Update.
2918 * linux-low.cc (linux_target_ops): Update.
2919 (linux_process_target::supports_multifs): Define.
2920 (linux_process_target::multifs_open): Define.
2921 (linux_process_target::multifs_readlink): Define.
2922 (linux_process_target::multifs_unlink): Define.
2923 * linux-low.h (class linux_process_target): Update.
2924 * lynx-low.cc (lynx_target_ops): Update.
2925 * nto-low.cc (nto_target_ops): Update.
2926 * win32-low.cc (win32_target_ops): Update.
2927
8247b823
TBA
29282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2929
2930 Turn process_stratum_target's pid_to_exec_file op into a method
2931 of process_target.
2932
2933 * target.h (struct process_stratum_target): Remove the target op.
2934 (class process_target): Add the target op. Also add
2935 'supports_pid_to_exec_file'.
2936 * target.cc (process_target::pid_to_exec_file): Define.
2937 (process_target::supports_pid_to_exec_file): Define.
2938
2939 Update the derived classes and callers below.
2940
2941 * server.cc (handle_qxfer_exec_file): Update.
2942 (handle_query): Update.
2943 * linux-low.cc (linux_target_ops): Update.
2944 (linux_process_target::supports_pid_to_exec_file): Define.
2945 (linux_process_target::pid_to_exec_file): Define.
2946 * linux-low.h (class linux_process_target): Update.
2947 * lynx-low.cc (lynx_target_ops): Update.
2948 * nto-low.cc (nto_target_ops): Update.
2949 * win32-low.cc (win32_target_ops): Update.
2950
2526e0cd
TBA
29512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2952
2953 Turn process_stratum_target's supports_range_stepping op into a
2954 method of process_target.
2955
2956 * target.h (struct process_stratum_target): Remove the target op.
2957 (class process_target): Add the target op.
2958 (target_supports_range_stepping): Update the macro.
2959 * target.cc (process_target::supports_range_stepping): Define.
2960
2961 Update the derived classes and callers below.
2962
2963 * linux-low.cc (linux_target_ops): Update.
2964 (linux_supports_range_stepping): Turn into ...
2965 (linux_process_target::supports_range_stepping): ... this.
2966 * linux-low.h (class linux_process_target): Update.
2967 * lynx-low.cc (lynx_target_ops): Update.
2968 * nto-low.cc (nto_target_ops): Update.
2969 * win32-low.cc (win32_target_ops): Update.
2970
79597bdd
TBA
29712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2972
2973 Turn process_stratum_target's btrace-related ops (enable_btrace,
2974 disable_btrace, read_btrace, read_btrace_conf) into methods of
2975 process_target.
2976
2977 * target.h (struct process_stratum_target): Remove the target ops.
2978 (class process_target): Add the target ops.
2979 (target_enable_btrace): Update.
2980 (target_disable_btrace): Update.
2981 (target_read_btrace): Update.
2982 (target_read_btrace_conf): Update.
2983 * target.cc (process_target::enable_btrace): Define.
2984 (process_target::disable_btrace): Define.
2985 (process_target::read_btrace): Define.
2986 (process_target::read_btrace_conf): Define.
2987
2988 Update the derived classes and callers below.
2989
2990 * linux-low.cc (linux_target_ops): Update.
2991 (linux_process_target:enable_btrace): Define as a wrapper around
2992 linux_enable_btrace.
2993 (linux_low_disable_btrace): Turn into ...
2994 (linux_process_target::disable_btrace): ... this.
2995 (linux_low_read_btrace): Turn into ...
2996 (linux_process_target::read_btrace): ... this.
2997 (linux_low_btrace_conf): Turn into ...
2998 (linux_process_target::read_btrace_conf): ... this.
2999 * linux-low.h (class linux_process_target): Update.
3000 * lynx-low.cc (lynx_target_ops): Update.
3001 * nto-low.cc (nto_target_ops): Update.
3002 * win32-low.cc (win32_target_ops): Update.
3003
c0245cb9
TBA
30042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3005
3006 Turn process_stratum_target's supports_agent op into a method of
3007 process_target.
3008
3009 * target.h (struct process_stratum_target): Remove the target op.
3010 (class process_target): Add the target op.
3011 (target_supports_agent): Update the macro.
3012 * target.cc (process_target::supports_agent): Define.
3013
3014 Update the derived classes and callers below.
3015
3016 * linux-low.cc (linux_target_ops): Update.
3017 (linux_supports_agent): Turn into ...
3018 (linux_process_target::supports_agent): ... this.
3019 * linux-low.h (class linux_process_target): Update.
3020 * lynx-low.cc (lynx_target_ops): Update.
3021 * nto-low.cc (nto_target_ops): Update.
3022 * win32-low.cc (win32_target_ops): Update.
3023
974387bb
TBA
30242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3025
3026 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3027 method of process_target.
3028
3029 * target.h (struct process_stratum_target): Remove the target op.
3030 (class process_target): Add the target op. Also add
3031 'supports_qxfer_libraries_svr4'.
3032 * target.cc (process_target::qxfer_libraries_svr4): Define.
3033 (process_target::supports_qxfer_libraries_svr4): Define.
3034
3035 Update the derived classes and callers below.
3036
3037 * server.cc (handle_qxfer_libraries_svr4): Update.
3038 (handle_query): Update.
3039 * linux-low.cc (linux_target_ops): Update.
3040 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3041 (linux_qxfer_libraries_svr4): Turn into ...
3042 (linux_process_target::qxfer_libraries_svr4): ... this.
3043 * linux-low.h (class linux_process_target): Update.
3044 * lynx-low.cc (lynx_target_ops): Update.
3045 * nto-low.cc (nto_target_ops): Update.
3046 * win32-low.cc (win32_target_ops): Update.
3047
c756403b
TBA
30482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3049
3050 Turn process_stratum_target's supports_disable_randomization op
3051 into a method of process_target.
3052
3053 * target.h (struct process_stratum_target): Remove the target op.
3054 (class process_target): Add the target op.
3055 (target_supports_disable_randomization): Update the macro.
3056 * target.cc (process_target::supports_disable_randomization): Define.
3057
3058 Update the derived classes and callers below.
3059
3060 * linux-low.cc (linux_target_ops): Update.
3061 (linux_supports_disable_randomization): Turn into ...
3062 (linux_process_target::supports_disable_randomization): ... this.
3063 * linux-low.h (class linux_process_target): Update.
3064 * lynx-low.cc (lynx_target_ops): Update.
3065 * nto-low.cc (nto_target_ops): Update.
3066 * win32-low.cc (win32_target_ops): Update.
3067
345dafad
TBA
30682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3069
3070 Turn process_stratum_target's emit_ops op into a method of
3071 process_target.
3072
3073 * target.h (struct process_stratum_target): Remove the target op.
3074 (class process_target): Add the target op.
3075 (target_emit_ops): Update the macro.
3076 * target.cc (process_target::emit_ops): Define.
3077
3078 Update the derived classes and callers below.
3079
3080 * linux-low.cc (linux_target_ops): Update.
3081 (linux_emit_ops): Turn into ...
3082 (linux_process_target::emit_ops): ... this.
3083 * linux-low.h (class linux_process_target): Update.
3084 * lynx-low.cc (lynx_target_ops): Update.
3085 * nto-low.cc (nto_target_ops): Update.
3086 * win32-low.cc (win32_target_ops): Update.
3087
c23c9391
TBA
30882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3089
3090 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3091 and get_min_fast_tracepoint_insn_len ops into methods of
3092 process_target.
3093
3094 * target.h (struct process_stratum_target): Remove the target ops.
3095 (class process_target): Add the target ops. Also add
3096 'supports_fast_tracepoints'.
3097 (target_supports_fast_tracepoints): Update the macro.
3098 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3099 (install_fast_tracepoint_jump_pad): Update and rename the macro
3100 to ...
3101 (target_install_fast_tracepoint_jump_pad): ... this.
3102 * target.cc (process_target::supports_fast_tracepoints): Define.
3103 (process_target::install_fast_tracepoint_jump_pad): Define.
3104 (process_target::get_min_fast_tracepoint_insn_len): Define.
3105
3106 Update the derived classes and callers below.
3107
3108 * tracepoint.cc (install_fast_tracepoint): Update.
3109 * linux-low.cc (linux_target_ops): Update.
3110 (linux_process_target::supports_fast_tracepoints): Define.
3111 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3112 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3113 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3114 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3115 * linux-low.h (class linux_process_target): Update.
3116 * lynx-low.cc (lynx_target_ops): Update.
3117 * nto-low.cc (nto_target_ops): Update.
3118 * win32-low.cc (win32_target_ops): Update.
3119
5c9eb2f2
TBA
31202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3121
3122 Turn process_stratum_target's stabilize_threads op into a
3123 method of process_target.
3124
3125 * target.h (struct process_stratum_target): Remove the target op.
3126 (class process_target): Add the target op.
3127 (target_stabilize_threads): Update the macro.
3128 * target.cc (process_target::stabilize_threads): Define.
3129
3130 Update the derived classes and callers below.
3131
3132 * server.cc (handle_status): Update.
3133 * tracepoint.cc (cmd_qtdp): Update.
3134 (cmd_qtstart): Update.
3135 * linux-low.cc (linux_target_ops): Update.
3136 (linux_stabilize_threads): Turn into ...
3137 (linux_process_target::stabilize_threads): ... this.
3138 (linux_wait_1): Update.
3139 * linux-low.h (class linux_process_target): Update.
3140 * lynx-low.cc (lynx_target_ops): Update.
3141 * nto-low.cc (nto_target_ops): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3143
29e8dc09
TBA
31442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3145
3146 Turn process_stratum_target's pause_all and unpause_all ops
3147 into methods of process_target.
3148
3149 * target.h (struct process_stratum_target): Remove the target ops.
3150 (class process_target): Add the target ops.
3151 (pause_all): Update the macro and rename to...
3152 (target_pause_all): ... this.
3153 (unpause_all): Update the macro and rename to...
3154 (target_unpause_all): ... this.
3155 * target.cc (process_target::pause_all): Define.
3156 (process_target::unpause_all): Define.
3157
3158 Update the derived classes and callers below.
3159
3160 * server.cc (handle_status): Update.
3161 * tracepoint.cc (clear_installed_tracepoints): Update.
3162 (cmd_qtdp): Update.
3163 (cmd_qtstart): Update.
3164 (stop_tracing): Update.
3165 (cmd_qtstatus): Update.
3166 (upload_fast_traceframes): Update.
3167 (run_inferior_command): Update.
3168 * linux-low.cc (linux_target_ops): Update.
3169 (linux_pause_all): Turn into ...
3170 (linux_process_target::pause_all): ... this.
3171 (linux_unpause_all): Turn into ...
3172 (linux_process_target::unpause_all): ... this.
3173 (linux_process_target::prepare_to_access_memory): Update.
3174 (linux_process_target::done_accessing_memory): Update.
3175 * linux-low.h (class linux_process_target): Update.
3176 * lynx-low.cc (lynx_target_ops): Update.
3177 * nto-low.cc (nto_target_ops): Update.
3178 * win32-low.cc (win32_target_ops): Update.
3179
4e2e869c
TBA
31802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3181
3182 Turn process_stratum_target's get_tib_address op into a method of
3183 process_target.
3184
3185 * target.h (struct process_stratum_target): Remove the target op.
3186 (class process_target): Add the target op. Also add
3187 'supports_get_tib_address'.
3188 * target.cc (process_target::get_tib_address): Define.
3189 (process_target::supports_get_tib_address): Define.
3190
3191 Update the derived classes and callers below.
3192
3193 * server.cc (handle_query): Update.
3194 * linux-low.cc (win32_target_ops): Update.
3195 * lynx-low.cc (lynx_target_ops): Update.
3196 * nto-low.cc (nto_target_ops): Update.
3197 * win32-low.cc (win32_target_ops): Update.
3198 (win32_process_target::supports_get_tib_address): Define.
3199 (win32_get_tib_address): Turn into ...
3200 (win32_process_target::get_tib_address): ... this.
3201 * win32-low.h (class win32_process_target): Update.
3202
68119632
TBA
32032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3204
3205 Turn process_stratum_target's thread_stopped op into a method of
3206 process_target.
3207
3208 * target.h (struct process_stratum_target): Remove the target op.
3209 (class process_target): Add the target op. Also add
3210 'supports_thread_stopped'.
3211 (target_thread_stopped): Update the macro.
3212 * target.cc (process_target::thread_stopped): Define.
3213 (process_target::supports_thread_stopped): Define.
3214 (prepare_to_access_memory): Update.
3215
3216 Update the derived classes and callers below.
3217
3218 * server.cc (queue_stop_reply_callback): Update.
3219 * linux-low.cc (linux_target_ops): Update.
3220 (linux_process_target::supports_thread_stopped): Define.
3221 (linux_thread_stopped): Turn into ...
3222 (linux_process_target::thread_stopped): ... this.
3223 * linux-low.h (class linux_process_target): Update.
3224 * lynx-low.cc (lynx_target_ops): Update.
3225 * nto-low.cc (nto_target_ops): Update.
3226 * win32-low.cc (win32_target_ops): Update.
3227
770d8f6a
TBA
32282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3229
3230 Turn process_stratum_target's read_pc and write_pc ops into
3231 methods of process_target.
3232
3233 * target.h (struct process_stratum_target): Remove the target ops.
3234 (class process_target): Add the target ops.
3235 * target.cc (process_target::read_pc): Define.
3236 (process_target::write_pc): Define.
3237
3238 Update the derived classes and callers below.
3239
3240 * regcache.cc (regcache_read_pc): Update.
3241 (regcache_write_pc): Update.
3242 * linux-low.cc (linux_target_ops): Update.
3243 (linux_read_pc): Turn into ...
3244 (linux_process_target::read_pc): ... this.
3245 (linux_write_pc): Turn into ...
3246 (linux_process_target::write_pc): ... this.
3247 * linux-low.h (class linux_process_target): Update.
3248 * lynx-low.cc (lynx_target_ops): Update.
3249 * nto-low.cc (nto_target_ops): Update.
3250 * win32-low.cc (win32_target_ops): Update.
3251
290732bf
TBA
32522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3253
3254 Turn process_stratum_target's supports_tracepoints op into a
3255 method of process_target.
3256
3257 * target.h (struct process_stratum_target): Remove the target op.
3258 (class process_target): Add the target op.
3259 (target_supports_tracepoints): Update the macro.
3260 * target.cc (process_target::supports_tracepoints): Define.
3261
3262 Update the derived classes and callers below.
3263
3264 * linux-low.cc (linux_target_ops): Update.
3265 (linux_supports_tracepoints): Turn into ...
3266 (linux_process_target::supports_tracepoints): ... this.
3267 * linux-low.h (class linux_process_target): Update.
3268 * lynx-low.cc (lynx_target_ops): Update.
3269 * nto-low.cc (nto_target_ops): Update.
3270 * win32-low.cc (win32_target_ops): Update.
3271
0df28b1b
TBA
32722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3273
3274 Turn process_stratum_target's process_qsupported op into a method
3275 of process_target.
3276
3277 * target.h (struct process_stratum_target): Remove the target op.
3278 (class process_target): Add the target op.
3279 (target_process_qsupported): Update the macro.
3280 * target.cc (process_target::process_qsupported): Define.
3281
3282 Update the derived classes and callers below.
3283
3284 * linux-low.cc (linux_target_ops): Update.
3285 (linux_process_qsupported): Turn into ...
3286 (linux_process_target::process_qsupported): ... this.
3287 * linux-low.h (class linux_process_target): Update.
3288 * lynx-low.cc (lynx_target_ops): Update.
3289 * nto-low.cc (nto_target_ops): Update.
3290 * win32-low.cc (win32_target_ops): Update.
3291
9da41fda
TBA
32922020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3293
3294 Turn process_stratum_target's read_loadmap op into a method of
3295 process_target.
3296
3297 * target.h (struct process_stratum_target): Remove the target op.
3298 (class process_target): Add the target op. Also add
3299 'supports_read_loadmap'.
3300 * target.cc (process_target::read_loadmap): Define.
3301 (process_target::supports_read_loadmap): Define.
3302
3303 Update the derived classes and callers below.
3304
3305 * server.cc (handle_qxfer_fdpic): Update.
3306 (handle_query): Update.
3307 * linux-low.cc (linux_target_ops): Update.
3308 (linux_process_target::supports_read_loadmap): Define.
3309 (linux_read_loadmap): Turn into ...
3310 (linux_process_target::read_loadmap): ... this.
3311 * linux-low.h (class linux_process_target): Update.
3312 * lynx-low.cc (lynx_target_ops): Update.
3313 * nto-low.cc (nto_target_ops): Update.
3314 * win32-low.cc (win32_target_ops): Update.
3315
95a45fc1
TBA
33162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3317
3318 Turn process_stratum_target's core_of_thread op into a method of
3319 process_target.
3320
3321 * target.h (struct process_stratum_target): Remove the target op.
3322 (class process_target): Add the target op.
3323 (target_core_of_thread): Update the macro.
3324 * target.cc (process_target::core_of_thread): Define.
3325
3326 Update the derived classes and callers below.
3327
3328 * linux-low.cc (linux_target_ops): Update.
3329 (linux_process_target::core_of_thread): Define.
3330 * linux-low.h (class linux_process_target): Update.
3331 * lynx-low.cc (lynx_target_ops): Update.
3332 * nto-low.cc (nto_target_ops): Update.
3333 * win32-low.cc (win32_target_ops): Update.
3334
55cf3021
TBA
33352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3336
3337 Turn process_stratum_target's handle_monitor_command op into a
3338 method of process_target.
3339
3340 * target.h (struct process_stratum_target): Remove the target op.
3341 (class process_target): Add the target op.
3342 (target_handle_monitor_command): Update the macro.
3343 * target.cc (process_target::handle_monitor_command): Define.
3344
3345 Update the derived classes and callers below.
3346
3347 * server.cc (handle_query): Update.
3348 * linux-low.cc (linux_target_ops): Update.
3349 (linux_process_target::handle_monitor_command): Define.
3350 * linux-low.h (class linux_process_target): Update.
3351 * lynx-low.cc (lynx_target_ops): Update.
3352 * nto-low.cc (nto_target_ops): Update.
3353 * win32-low.cc (win32_target_ops): Update.
3354
fb00dfce
TBA
33552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3356
3357 Turn process_stratum_target's handle_new_gdb_connection op into a
3358 method of process_target.
3359
3360 * target.h (struct process_stratum_target): Remove the target op.
3361 (class process_target): Add the target op.
3362 (target_handle_new_gdb_connection): Update the macro.
3363 * target.cc (process_target::handle_new_gdb_connection): Define.
3364
3365 Update the derived classes and callers below.
3366
3367 * linux-low.cc (linux_target_ops): Update.
3368 (linux_handle_new_gdb_connection): Turn into ...
3369 (linux_process_target::handle_new_gdb_connection): ... this.
3370 * linux-low.h (class linux_process_target): Update.
3371 * lynx-low.cc (lynx_target_ops): Update.
3372 * nto-low.cc (nto_target_ops): Update.
3373 * win32-low.cc (win32_target_ops): Update.
3374
9690a72a
TBA
33752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3376
3377 Turn process_stratum_target's supports_fork_events,
3378 supports_vfork_events, and supports_exec_events ops into methods
3379 of process_target.
3380
3381 * target.h (struct process_stratum_target): Remove the target ops.
3382 (class process_target): Add the target ops.
3383 (target_supports_fork_events): Update the macro.
3384 (target_supports_vfork_events): Update the macro.
3385 (target_supports_exec_events): Update the macro.
3386 * target.cc (process_target::supports_fork_events): Define.
3387 (process_target::supports_vfork_events): Define.
3388 (process_target::supports_exec_events): Define.
3389
3390 Update the derived classes and callers below.
3391
3392 * linux-low.cc (linux_target_ops): Update.
3393 (linux_supports_fork_events): Turn into ...
3394 (linux_process_target::supports_fork_events): ... this.
3395 (linux_supports_vfork_events): Turn into ...
3396 (linux_process_target::supports_vfork_events): ... this.
3397 (linux_supports_exec_events): Turn into ...
3398 (linux_process_target::supports_exec_events): ... this.
3399 * linux-low.h (class linux_process_target): Update.
3400 * lynx-low.cc (lynx_target_ops): Update.
3401 * nto-low.cc (nto_target_ops): Update.
3402 * win32-low.cc (win32_target_ops): Update.
3403
652aef77
TBA
34042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3405
3406 Turn process_stratum_target's supports_multi_process op into a
3407 method of process_target.
3408
3409 * target.h (struct process_stratum_target): Remove the target op.
3410 (class process_target): Add the target op.
3411 * target.cc (process_target::supports_multi_process): Define.
3412 (target_supports_multi_process): Update.
3413
3414 Update the derived classes and callers below.
3415
3416 * linux-low.cc (linux_target_ops): Update.
3417 (linux_supports_multi_process): Turn into ...
3418 (linux_process_target::supports_multi_process): ... this.
3419 * linux-low.h (class linux_process_target): Update.
3420 * lynx-low.cc (lynx_target_ops): Update.
3421 * nto-low.cc (nto_target_ops): Update.
3422 * win32-low.cc (win32_target_ops): Update.
3423
0dc587d4
TBA
34242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3425
3426 Turn process_stratum_target's supports_non_stop, async, and
3427 start_non_stop ops into methods of process_target.
3428
3429 * target.h (struct process_stratum_target): Remove the target ops.
3430 (class process_target): Add the target ops.
3431 (target_supports_non_stop): Update the macro.
3432 (target_async): Update the macro.
3433 (start_non_stop): Remove declaration.
3434 * target.cc (process_target::supports_non_stop): Define.
3435 (process_target::async): Define.
3436 (process_target::start_non_stop): Define.
3437 (start_non_stop): Remove.
3438
3439 Update the derived classes and callers below.
3440
3441 * server.cc (handle_qxfer_siginfo): Update.
3442 (handle_query): Update.
3443 * linux-low.cc (linux_target_ops): Update.
3444 (linux_supports_non_stop): Turn into ...
3445 (linux_process_target::supports_non_stop): ... this.
3446 (linux_async): Turn into ...
3447 (linux_process_target::async): ... this.
3448 (linux_start_non_stop): Turn into ...
3449 (linux_process_target::start_non_stop): ... this.
3450 * linux-low.h (class linux_process_target): Update.
3451 * lynx-low.cc (lynx_target_ops): Update.
3452 * nto-low.cc (nto_target_ops): Update.
3453 (nto_supports_non_stop): Remove; rely on the default behavior
3454 instead.
3455 * win32-low.cc (win32_target_ops): Update.
3456
d7abedf7
TBA
34572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3458
3459 Turn process_stratum_target's qxfer_siginfo op into a method of
3460 process_target.
3461
3462 * target.h (struct process_stratum_target): Remove the target op.
3463 (class process_target): Add the target op. Also add
3464 'supports_qxfer_siginfo'.
3465 * target.cc (process_target::qxfer_siginfo): Define.
3466 (process_target::supports_qxfer_siginfo): Define.
3467
3468 Update the derived classes and callers below.
3469
3470 * server.cc (handle_qxfer_siginfo): Update.
3471 (handle_query): Update.
3472 * linux-low.cc (linux_target_ops): Update.
3473 (linux_process_target::supports_qxfer_siginfo): Define.
3474 (linux_xfer_siginfo): Turn into ...
3475 (linux_process_target::qxfer_siginfo): ... this.
3476 * linux-low.h (class linux_process_target): Update.
3477 * lynx-low.cc (lynx_target_ops): Update.
3478 * nto-low.cc (nto_target_ops): Update.
3479 * win32-low.cc (win32_target_ops): Update.
3480
2d0795ee
TBA
34812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3482
3483 Turn process_stratum_target's qxfer_osdata op into a method of
3484 process_target.
3485
3486 * target.h (struct process_stratum_target): Remove the target op.
3487 (class process_target): Add the target op. Also add
3488 'supports_qxfer_osdata'.
3489 * target.cc (process_target::qxfer_osdata): Define.
3490 (process_target::supports_qxfer_osdata): Define.
3491
3492 Update the derived classes and callers below.
3493
3494 * server.cc (handle_qxfer_osdata): Update.
3495 (handle_query): Update.
3496 * linux-low.cc (linux_target_ops): Update.
3497 (linux_process_target::supports_qxfer_osdata): Define.
3498 (linux_qxfer_osdata): Turn into ...
3499 (linux_process_target::qxfer_osdata): ... this.
3500 * linux-low.h (class linux_process_target): Update.
3501 * lynx-low.cc (lynx_target_ops): Update.
3502 * nto-low.cc (nto_target_ops): Update.
3503 * win32-low.cc (win32_target_ops): Update.
3504
ea06bbaa
TBA
35052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3506
3507 Turn process_stratum_target's hostio_last_error op into a
3508 method of process_target.
3509
3510 * target.h (struct process_stratum_target): Remove the target op.
3511 (class process_target): Add the target op.
3512 * target.cc: Add "hostio.h" to includes.
3513 (process_target::hostio_last_error): Define.
3514
3515 Update the derived classes and callers below.
3516
3517 * hostio.cc (hostio_error): Update.
3518 * linux-low.cc: Remove "hostio.h" from includes.
3519 (linux_target_ops): Update.
3520 * lynx-low.cc (lynx_target_ops): Update.
3521 * nto-low.cc (nto_target_ops): Update.
3522 * win32-low.h (class win32_process_target): Update.
3523 * win32-low.cc (win32_target_ops): Update.
3524 (wince_hostio_last_error): Turn into ...
3525 (win32_process_target::hostio_last_error): ... this.
3526
6e3fd7e9
TBA
35272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3528
3529 Turn process_stratum_target's get_tls_address op into a method of
3530 process_target.
3531
3532 * target.h (struct process_stratum_target): Remove the target op.
3533 (class process_target): Add the target op. Also add
3534 'supports_get_tls_address'.
3535 * target.cc (process_target::get_tls_address): Define.
3536 (process_target::supports_get_tls_address): Define.
3537
3538 Update the derived classes and callers below.
3539
3540 * server.cc (handle_query): Update.
3541 * linux-low.cc (linux_target_ops): Update.
3542 (linux_process_target::supports_get_tls_address): Define.
3543 (linux_process_target::get_tls_address): Define.
3544 * linux-low.h (class linux_process_target): Update.
3545 * lynx-low.cc (lynx_target_ops): Update.
3546 * nto-low.cc (nto_target_ops): Update.
3547 * win32-low.cc (win32_target_ops): Update.
3548
5203ae1e
TBA
35492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3550
3551 Turn process_stratum_target's read_offsets op into a method of
3552 process_target.
3553
3554 * target.h (struct process_stratum_target): Remove the target op.
3555 (class process_target): Add the target op. Also add
3556 'supports_read_offsets'.
3557 * target.cc (process_target::read_offsets): Define.
3558 (process_target::supports_read_offsets): Define.
3559
3560 Update the derived classes and callers below.
3561
3562 * server.cc (handle_query): Update.
3563 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3564 (linux_target_ops): Update.
3565 (linux_process_target::supports_read_offsets): Define.
3566 (linux_read_offsets): Turn into ...
3567 (linux_process_target::read_offsets): ... this.
3568 * linux-low.h (class linux_process_target): Update.
3569 * lynx-low.cc (lynx_target_ops): Update.
3570 * nto-low.cc (nto_target_ops): Update.
3571 * win32-low.cc (win32_target_ops): Update.
3572
6eeb5c55
TBA
35732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3574
3575 Turn process_stratum_target's stopped_by_watchpoint and
3576 stopped_data_address ops into methods of process_target.
3577
3578 * target.h (struct process_stratum_target): Remove the target ops.
3579 (class process_target): Add the target ops.
3580 * target.cc (process_target::stopped_by_watchpoint): Define.
3581 (process_target::stopped_data_address): Define.
3582
3583 Update the derived classes and callers below.
3584
3585 * remote-utils.cc (prepare_resume_reply): Update.
3586 * linux-low.cc (linux_target_ops): Update.
3587 (linux_stopped_by_watchpoint): Turn into ...
3588 (linux_process_target::stopped_by_watchpoint): ... this.
3589 (linux_stopped_data_address): Turn into ...
3590 (linux_process_target::stopped_data_address): ... this.
3591 * linux-low.h (class linux_process_target): Update.
3592 * lynx-low.cc (lynx_target_ops): Update.
3593 * nto-low.cc (nto_target_ops): Update.
3594 (nto_stopped_by_watchpoint): Turn into ...
3595 (nto_process_target::stopped_by_watchpoint): ... this.
3596 (nto_stopped_data_address): Turn into ...
3597 (nto_process_target::stopped_data_address): ... this.
3598 * nto-low.h (class nto_process_target): Update.
3599 * win32-low.cc (win32_target_ops): Update.
3600 (win32_stopped_by_watchpoint): Turn into ...
3601 (win32_process_target::stopped_by_watchpoint): ... this.
3602 (win32_stopped_data_address): Turn into ...
3603 (win32_process_target::stopped_data_address): ... this.
3604 * win32-low.h (class win32_process_target): Update.
3605
22aa6223
TBA
36062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3607
3608 Turn process_stratum_target's supports_hardware_single_step op into
3609 a method of process_target.
3610
3611 * target.h (struct process_stratum_target): Remove the target op.
3612 (class process_target): Add the target op.
3613 (target_supports_hardware_single_step): Update the macro.
3614 (target_can_do_hardware_single_step): Remove declaration.
3615 * target.cc (process_target::supports_hardware_single_step): Define.
3616 (target_can_do_hardware_single_step): Remove.
3617
3618 Update the derived classes and callers below.
3619
3620 * linux-low.h (class linux_process_target): Update.
3621 * linux-low.cc (linux_target_ops): Update.
3622 (linux_supports_hardware_single_step): Turn into ...
3623 (linux_process_target::supports_hardware_single_step): ... this.
3624 * lynx-low.h (class lynx_process_target): Update.
3625 * lynx-low.cc (lynx_target_ops): Update.
3626 (lynx_process_target::supports_hardware_single_step): Define.
3627 * nto-low.h (class nto_process_target): Update.
3628 * nto-low.cc (nto_target_ops): Update.
3629 (nto_process_target::supports_hardware_single_step): Define.
3630 * win32-low.h (class win32_process_target): Update.
3631 * win32-low.cc (win32_target_ops): Update.
3632 (win32_process_target::supports_hardware_single_step): Define.
3633
93fe88b2
TBA
36342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3635
3636 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3637 ops into methods of process_target.
3638
3639 * target.h (struct process_stratum_target): Remove the target ops.
3640 (class process_target): Add the target ops.
3641 (target_stopped_by_hw_breakpoint): Update the macro.
3642 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3643 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3644 (process_target::supports_stopped_by_hw_breakpoint): Define.
3645
3646 Update the derived classes and callers below.
3647
3648 * linux-low.cc (linux_target_ops): Update.
3649 (linux_stopped_by_hw_breakpoint): Turn into ...
3650 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3651 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3652 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3653 * linux-low.h (class linux_process_target): Update.
3654 * lynx-low.cc (lynx_target_ops): Update.
3655 * nto-low.cc (nto_target_ops): Update.
3656 * win32-low.cc (win32_target_ops): Update.
3657
84320c4e
TBA
36582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3659
3660 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3661 ops into methods of process_target.
3662
3663 * target.h (struct process_stratum_target): Remove the target ops.
3664 (class process_target): Add the target ops.
3665 (target_stopped_by_sw_breakpoint): Update the macro.
3666 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3667 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3668 (process_target::supports_stopped_by_sw_breakpoint): Define.
3669
3670 Update the derived classes and callers below.
3671
3672 * linux-low.cc (linux_target_ops): Update.
3673 (linux_stopped_by_sw_breakpoint): Turn into ...
3674 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3675 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3676 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3677 * linux-low.h (class linux_process_target): Update.
3678 * lynx-low.cc (lynx_target_ops): Update.
3679 * nto-low.cc (nto_target_ops): Update.
3680 * win32-low.cc (win32_target_ops): Update.
3681
7e0bde70
TBA
36822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3683
3684 Turn process_stratum_target's insert_point and remove_point ops
3685 into methods of process_target.
3686
3687 * target.h (struct process_stratum_target): Remove the target ops.
3688 (class process_target): Add the target ops.
3689 * target.cc (process_target::insert_point): Define.
3690 (process_target::remove_point): Define.
3691
3692 Update the derived classes and callers below.
3693
3694 * mem-break.cc (set_raw_breakpoint_at): Update.
3695 (delete_raw_breakpoint): Update.
3696 (uninsert_raw_breakpoint): Update.
3697 (reinsert_raw_breakpoint): Update.
3698 * linux-low.cc (linux_target_ops): Update.
3699 (linux_insert_point): Turn into ...
3700 (linux_process_target::insert_point): ... this.
3701 (linux_remove_point): Turn into ...
3702 (linux_process_target::remove_point): ... this.
3703 * linux-low.h (class linux_process_target): Update.
3704 * lynx-low.cc (lynx_target_ops): Update.
3705 * nto-low.cc (nto_target_ops): Update.
3706 (nto_insert_point): Turn into ...
3707 (nto_process_target::insert_point): ... this.
3708 (nto_remove_point): Turn into ...
3709 (nto_process_target::remove_point): ... this.
3710 * nto-low.h (class nto_process_target): Update.
3711 * win32-low.cc (win32_target_ops): Update.
3712 (win32_insert_point): Turn into ...
3713 (win32_process_target::insert_point): ... this.
3714 (win32_remove_point): Turn into ...
3715 (win32_process_target::remove_point): ... this.
3716 * win32-low.h (class win32_process_target): Update.
3717
a2b2297a
TBA
37182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3719
3720 Turn process_stratum_target's supports_z_point_type op into a
3721 method of process_target.
3722
3723 * target.h (struct process_stratum_target): Remove the target op.
3724 (class process_target): Add the target op.
3725 * target.cc (process_target::supports_z_point_type): Define.
3726
3727 Update the derived classes and callers below.
3728
3729 * mem-break.cc (z_type_supported): Update.
3730 * linux-low.cc (linux_target_ops): Update.
3731 (linux_supports_z_point_type): Turn into ...
3732 (linux_process_target::supports_z_point_type): ... this.
3733 * linux-low.h (class linux_process_target): Update.
3734 * lynx-low.cc (lynx_target_ops): Update.
3735 * nto-low.cc (nto_target_ops): Update.
3736 (nto_supports_z_point_type): Turn into ...
3737 (nto_process_target::supports_z_point_type): ... this.
3738 * nto-low.h (class nto_process_target): Update.
3739 * win32-low.cc (win32_target_ops): Update.
3740 (win32_supports_z_point_type): Turn into ...
3741 (win32_process_target::supports_z_point_type): ... this.
3742 * win32-low.h (class win32_process_target): Update.
3743
eac215cc
TBA
37442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3745
3746 Turn process_stratum_target's read_auxv op into a method of
3747 process_target.
3748
3749 * target.h (class process_stratum_target): Remove the target op.
3750 (struct process_target): Add the target op. Also add
3751 'supports_read_auxv'.
3752 * target.cc (process_target::read_auxv): Define.
3753 (process_target::supports_read_auxv): Define.
3754
3755 Update the derived classes and callers below.
3756
3757 * server.cc (handle_qxfer_auxv): Update.
3758 (handle_query): Update.
3759 * linux-low.cc (linux_target_ops): Update.
3760 (linux_process_target::supports_read_auxv): Define.
3761 (linux_read_auxv): Turn into ...
3762 (linux_process_target::read_auxv): ... this.
3763 * linux-low.h (class linux_process_target): Update.
3764 * lynx-low.cc (lynx_target_ops): Update.
3765 * nto-low.cc (nto_target_ops): Update.
3766 (nto_process_target::supports_read_auxv): Define.
3767 (nto_read_auxv): Turn into ...
3768 (nto_process_target::read_auxv): ... this.
3769 * nto-low.h (class nto_process_target): Update.
3770 * win32-low.cc (win32_target_ops): Update.
3771
eb497a2a
TBA
37722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3773
3774 Turn process_stratum_target's request_interrupt op into a method of
3775 process_target.
3776
3777 * target.h (struct process_stratum_target): Remove the target op.
3778 (class process_target): Add the target op.
3779
3780 Update the derived classes and callers below.
3781
3782 * remote-utils.cc (putpkt_binary_1): Update.
3783 (input_interrupt): Update.
3784 (getpkt): Update.
3785 * server.cc (handle_v_requests): Update.
3786 * linux-low.cc (linux_target_ops): Update.
3787 (linux_request_interrupt): Turn into ...
3788 (linux_process_target::request_interrupt): ... this.
3789 * linux-low.h (class linux_process_target): Update.
3790 * lynx-low.cc (lynx_target_ops): Update.
3791 (lynx_request_interrupt): Turn into ...
3792 (lynx_process_target::request_interrupt): ... this.
3793 * lynx-low.h (class lynx_process_target): Update.
3794 * nto-low.cc (nto_target_ops): Update.
3795 (nto_request_interrupt): Turn into ...
3796 (nto_process_target::request_interrupt): ... this.
3797 * nto-low.h (class nto_process_target): Update.
3798 * win32-low.cc (win32_target_ops): Update.
3799 (win32_request_interrupt): Turn into ...
3800 (win32_process_target::request_interrupt): ... this.
3801 * win32-low.h (class win32_process_target): Update.
3802
2a31c7aa
TBA
38032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3804
3805 Turn process_stratum_target's look_up_symbols op into a method of
3806 process_target.
3807
3808 * target.h (struct process_stratum_target): Remove the target op.
3809 (class process_target): Add the target op.
3810 * target.cc (process_target::look_up_symbols): Define.
3811
3812 Update the derived classes and callers below.
3813
3814 * server.cc (handle_query): Update.
3815 * linux-low.cc (linux_target_ops): Update.
3816 (linux_look_up_symbols): Turn into ...
3817 (linux_process_target::look_up_symbols): ... this.
3818 * linux-low.h (class linux_process_target): Update.
3819 * lynx-low.cc (lynx_target_ops): Update.
3820 * nto-low.cc (nto_target_ops): Update.
3821 * win32-low.cc (win32_target_ops): Update.
3822
e2558df3
TBA
38232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3824
3825 Turn process_stratum_target's read_memory and write_memory
3826 ops into methods of process_target.
3827
3828 * target.h (struct process_stratum_target): Remove the target ops.
3829 (class process_target): Add the target ops.
3830
3831 Update the derived classes and callers below.
3832
3833 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3834 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3835 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3836 (arm_get_syscall_trapinfo): Update.
3837 * linux-cris-low.cc (cris_breakpoint_at): Update.
3838 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3839 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3840 * linux-mips-low.cc (mips_breakpoint_at): Update.
3841 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3842 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3843 * linux-sh-low.cc (sh_breakpoint_at): Update.
3844 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3845 (sparc_store_gregset_from_stack): Update.
3846 (sparc_breakpoint_at): Update.
3847 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3848 * linux-tile-low.cc (tile_breakpoint_at): Update.
3849 * linux-x86-low.cc (x86_breakpoint_at): Update.
3850 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3851 * mem-brea.cc (insert_memory_breakpoint): Update.
3852 (validate_inserted_breakpoint): Update.
3853 * target.cc (read_inferior_memory): Update.
3854 (target_write_memory): Update.
3855 * linux-low.cc (linux_target_ops): Update.
3856 (linux_read_memory): Make a wrapper around the read_memory target
3857 op call.
3858 (linux_process_target::read_memory): Rename from linux_read_memory.
3859 (linux_write_memory): Turn into ...
3860 (linux_process_target::write_memory): ... this.
3861 * linux-low.h (class linux_process_target): Update.
3862 * lynx-low.cc (lynx_target_ops): Update.
3863 (lynx_read_memory): Turn into ...
3864 (lynx_process_target::read_memory): ... this.
3865 (lynx_write_memory): Turn into ...
3866 (lynx_process_target::write_memory): ... this.
3867 * lynx-low.h (class lynx_process_target): Update.
3868 * nto-low.cc (nto_target_ops): Update.
3869 (nto_read_memory): Turn into ...
3870 (nto_process_target::read_memory): ... this.
3871 (nto_write_memory): Turn into ...
3872 (nto_process_target::write_memory): ... this.
3873 * nto-low.h (class nto_process_target): Update.
3874 * win32-low.cc (win32_target_ops): Update.
3875 (win32_read_inferior_memory): Turn into ...
3876 (win32_process_target::read_memory): ... this.
3877 (win32_write_inferior_memory): Turn into ...
3878 (win32_process_target::write_memory): ... this.
3879 * win32-low.h (class win32_process_target): Update.
3880
79b44087
TBA
38812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3882
3883 Turn process_stratum_target's prepare_to_access_memory and
3884 done_accessing_memory ops into methods of process_target.
3885
3886 * target.h (struct process_stratum_target): Remove the target ops.
3887 (class process_target): Add the target ops.
3888 * target.cc (process_target::prepare_to_access_memory): Define.
3889 (process_target::done_accessing_memory): Define.
3890 (prepare_to_access_memory): Update.
3891 (done_accessing_memory): Update.
3892
3893 Update the derived classes and callers below.
3894
3895 * linux-low.cc (linux_target_ops): Update.
3896 (linux_prepare_to_access_memory): Turn into ...
3897 (linux_process_target::prepare_to_access_memory): ... this.
3898 (linux_done_accessing_memory): Turn into ...
3899 (linux_process_target::done_accessing_memory): ... this.
3900 * linux-low.h (class linux_process_target): Update.
3901 * lynx-low.cc (lynx_target_ops): Update.
3902 * nto-low.cc (nto_target_ops): Update.
3903 * win32-low.cc (win32_target_ops): Update.
3904
a5a4d4cd
TBA
39052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3906
3907 Turn process_stratum_target's fetch_registers and store_registers
3908 ops into methods of process_target.
3909
3910 * target.h (struct process_stratum_target): Remove the target ops.
3911 (class process_target): Add the target ops.
3912 (fetch_inferior_registers): Update the macro.
3913 (store_inferior_registers): Update the macro.
3914
3915 Update the derived classes and callers below.
3916
3917 * linux-low.cc (linux_target_ops): Update.
3918 (linux_fetch_registers): Turn into ...
3919 (linux_process_target::fetch_registers): ... this.
3920 (linux_store_registers): Turn into ...
3921 (linux_process_target::store_registers): ... this.
3922 * linux-low.h (class linux_process_target): Update.
3923 * lynx-low.cc (lynx_target_ops): Update.
3924 (lynx_fetch_registers): Turn into ...
3925 (lynx_process_target::fetch_registers): ... this.
3926 (lynx_store_registers): Turn into ...
3927 (lynx_process_target::store_registers): ... this.
3928 * lynx-low.h (class lynx_process_target): Update.
3929 * nto-low.cc (nto_target_ops): Update.
3930 (nto_fetch_registers): Turn into ...
3931 (nto_process_target::fetch_registers): ... this.
3932 (nto_store_registers): Turn into ...
3933 (nto_process_target::store_registers): ... this.
3934 * nto-low.h (class nto_process_target): Update.
3935 * win32-low.cc (win32_target_ops): Update.
3936 (win32_fetch_inferior_registers): Turn into ...
3937 (win32_process_target::fetch_registers): ... this.
3938 (win32_store_inferior_registers): Turn into ...
3939 (win32_process_target::store_registers): ... this.
3940 * win32-low.h (class win32_process_target): Update.
3941
6532e7e3
TBA
39422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3943
3944 Turn process_stratum_target's wait op into a method of
3945 process_target.
3946
3947 * target.h (struct process_stratum_target): Remove the target op.
3948 (class process_target): Add the target op.
3949
3950 Update the derived classes and callers below.
3951
3952 * target.cc (target_wait): Update.
3953 * linux-low.cc (linux_target_ops): Update.
3954 (linux_wait): Turn into ...
3955 (linux_process_target::wait): ... this.
3956 * linux-low.h (class linux_process_target): Update.
3957 * lynx-low.cc (lynx_target_ops): Update.
3958 (lynx_wait): Turn into ...
3959 (lynx_process_target::wait): ... this.
3960 * lynx-low.h (class lynx_process_target): Update.
3961 * nto-low.cc (nto_target_ops): Update.
3962 (nto_wait): Turn into ...
3963 (nto_process_target::wait): ... this.
3964 * nto-low.h (class nto_process_target): Update.
3965 * win32-low.cc (win32_target_ops): Update.
3966 (win32_wait): Turn into ...
3967 (win32_process_target::wait): ... this.
3968 (do_initial_child_stuff): Update.
3969 * win32-low.h (class win32_process_target): Update.
3970
0e4d7e35
TBA
39712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3972
3973 Turn process_stratum_target's resume op into a method of
3974 process_target.
3975
3976 * target.h (struct process_stratum_target): Remove the target op.
3977 (class process_target): Add the target op.
3978
3979 Update the derived classes and callers below.
3980
3981 * server.cc (resume): Update.
3982 * target.cc (target_stop_and_wait): Update.
3983 (target_continue_no_signal): Update.
3984 (target_continue): Update.
3985 * linux-low.cc (linux_target_ops): Update.
3986 (linux_resume): Turn into ...
3987 (linux_process_target::resume): ... this.
3988 * linux-low.h (class linux_process_target): Update.
3989 * lynx-low.cc (lynx_target_ops): Update.
3990 (lynx_resume): Turn into ...
3991 (lynx_process_target::resume): ... this.
3992 * lynx-low.h (class lynx_process_target): Update.
3993 * nto-low.cc (nto_target_ops): Update.
3994 (nto_resume): Turn into ...
3995 (nto_process_target::resume): ... this.
3996 * nto-low.h (class nto_process_target): Update.
3997 * win32-low.cc (win32_target_ops): Update.
3998 (win32_resume): Turn into ...
3999 (win32_process_target::resume): ... this.
4000 (win32_process_target::detach): Update.
4001 (do_initial_child_stuff): Update.
4002 * win32-low.h (class win32_process_target): Update.
4003
13d3d99b
TBA
40042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4005
4006 Turn process_stratum_target's thread_alive op into a method of
4007 process_target.
4008
4009 * target.h (struct process_stratum_target): Remove the target op.
4010 (class process_target): Add the target op.
4011 (mythread_alive): Update the macro.
4012
4013 Update the derived classes and callers below.
4014
4015 * linux-low.cc (linux_target_ops): Update.
4016 (linux_thread_alive): Turn into ...
4017 (linux_process_target::thread_alive): ... this.
4018 (wait_for_sigstop): Update.
4019 * linux-low.h (class linux_process_target): Update.
4020 * lynx-low.cc (lynx_target_ops): Update.
4021 (lynx_thread_alive): Turn into ...
4022 (lynx_process_target::thread_alive): ... this.
4023 * lynx-low.h (class lynx_process_target): Update.
4024 * nto-low.cc (nto_target_ops): Update.
4025 (nto_thread_alive): Turn into ...
4026 (nto_process_target::thread_alive): ... this.
4027 * nto-low.h (class nto_process_target): Update.
4028 * win32-low.cc (win32_target_ops): Update.
4029 (win32_thread_alive): Turn into ...
4030 (win32_process_target::thread_alive): ... this.
4031 * win32-low.h (class win32_process_target): Update.
4032
95a49a39
TBA
40332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4034
4035 Turn process_stratum_target's join op into a method of
4036 process_target.
4037
4038 * target.h (struct process_stratum_target): Remove the target op.
4039 (class process_target): Add the target op.
4040 (join_inferior): Update the macro.
4041
4042 Update the derived classes and callers below.
4043
4044 * linux-low.cc (linux_target_ops): Update.
4045 (linux_join): Turn into ...
4046 (linux_process_target::join): ... this.
4047 * linux-low.h (class linux_process_target): Update.
4048 * lynx-low.cc (lynx_target_ops): Update.
4049 (lynx_join): Turn into ...
4050 (lynx_process_target::join): ... this.
4051 * lynx-low.h (class lynx_process_target): Update.
4052 * nto-low.cc (nto_target_ops): Update.
4053 (nto_process_target::join): Define.
4054 * nto-low.h (class nto_process_target): Update.
4055 * win32-low.cc (win32_target_ops): Update.
4056 (win32_join): Turn into ...
4057 (win32_process_target::join): ... this.
4058 * win32-low.h (class win32_process_target): Update.
4059
8adb37b9
TBA
40602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4061
4062 Turn process_stratum_target's mourn op into a method of
4063 process_target.
4064
4065 * target.h (struct process_stratum_target): Remove the target op.
4066 (class process_target): Add the target op.
4067
4068 Update the derived classes and callers below.
4069
4070 * target.cc (target_mourn_inferior): Update.
4071 * linux-low.cc (linux_target_ops): Update.
4072 (linux_mourn): Turn into ...
4073 (linux_process_target::mourn): ... this.
4074 (handle_extended_wait): Update.
4075 (linux_process_target::kill): Update.
4076 (linux_process_target::detach): Update.
4077 * linux-low.h (class linux_process_target): Update.
4078 * lynx-low.cc (lynx_target_ops): Update.
4079 (lynx_mourn): Turn into ...
4080 (lynx_process_target::mourn): ... this.
4081 * lynx-low.h (class lynx_process_target): Update.
4082 * nto-low.cc (nto_target_ops): Update.
4083 (nto_mourn): Turn into ...
4084 (nto_process_target::mourn): ... this.
4085 * nto-low.h (class nto_process_target): Update.
4086 * win32-low.cc (win32_target_ops): Update.
4087 (win32_mourn): Turn into ...
4088 (win32_process_target::mourn): ... this.
4089 * win32-low.h (class win32_process_target): Update.
4090
9061c9cf
TBA
40912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4092
4093 Turn process_stratum_target's detach op into a method of
4094 process_target.
4095
4096 * target.h (struct process_stratum_target): Remove the target op.
4097 (class process_target): Add the target op.
4098 (detach_inferior): Update the macro.
4099
4100 Update the derived classes and callers below.
4101
4102 * linux-low.cc (linux_target_ops): Update.
4103 (linux_detach): Turn into ...
4104 (linux_process_target::detach): ... this.
4105 * linux-low.h (class linux_process_target): Update.
4106 * lynx-low.cc (lynx_target_ops): Update.
4107 (lynx_detach): Turn into ...
4108 (lynx_process_target::detach): ... this.
4109 * lynx-low.h (class lynx_process_target): Update.
4110 * nto-low.cc (nto_target_ops): Update.
4111 (nto_detach): Turn into ...
4112 (nto_process_target::detach): ... this.
4113 * nto-low.h (class nto_process_target): Update.
4114 * win32-low.cc (win32_target_ops): Update.
4115 (win32_detach): Turn into ...
4116 (win32_process_target::detach): ... this.
4117 * win32-low.h (class win32_process_target): Update.
4118
c6885a57
TBA
41192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4120
4121 Turn process_stratum_target's kill op into a method of
4122 process_target.
4123
4124 * target.h (struct process_stratum_target): Remove the target op.
4125 (class process_target): Add the target op.
4126
4127 Update the derived classes and callers below.
4128
4129 * target.cc (kill_inferior): Update.
4130 * linux-low.cc (linux_target_ops): Update.
4131 (linux_kill): Turn into ...
4132 (linux_process_target::kill): ... this.
4133 * linux-low.h (class linux_process_target): Update.
4134 * lynx-low.cc (lynx_target_ops): Update.
4135 (lynx_kill): Turn into ...
4136 (lynx_process_target::kill): ... this.
4137 * lynx-low.h (class lynx_process_target): Update.
4138 * nto-low.cc (nto_target_ops): Update.
4139 (nto_kill): Turn into ...
4140 (nto_process_target::kill): ... this.
4141 * nto-low.h (class nto_process_target): Update.
4142 * win32-low.cc (win32_target_ops): Update.
4143 (win32_kill): Turn into ...
4144 (win32_process_target::kill): ... this.
4145 * win32-low.h (class win32_process_target): Update.
4146
ef03dad8
TBA
41472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4148
4149 Turn process_stratum_target's attach op into a method of
4150 process_target.
4151
4152 * target.h (struct process_stratum_target): Remove the target op.
4153 (class process_target): Add the target op.
4154 (myattach): Update the macro.
4155
4156 Update the derived classes and callers below.
4157
4158 * linux-low.cc (linux_target_ops): Update.
4159 (linux_attach): Turn into ...
4160 (linux_process_target::attach): ... this.
4161 * linux-low.h (class linux_process_target): Update.
4162 * lynx-low.cc (lynx_target_ops): Update.
4163 (lynx_attach): Turn into ...
4164 (lynx_process_target::attach): ... this.
4165 * lynx-low.h (class lynx_process_target): Update.
4166 * nto-low.cc (nto_target_ops): Update.
4167 (nto_attach): Turn into ...
4168 (nto_process_target::attach): ... this.
4169 * nto-low.h (class nto_process_target): Update.
4170 * win32-low.cc (win32_target_ops): Update.
4171 (win32_attach): Turn into ...
4172 (win32_process_target::attach): ... this.
4173 * win32-low.h (class win32_process_target): Update.
4174
6dee9afb
TBA
41752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4176
4177 Turn process_stratum_target's post_create_inferior op into a method
4178 of process_target.
4179
4180 * target.h (struct process_stratum_target): Remove the target op.
4181 (class process_target): Add the target op.
4182 (target_post_create_inferior): Update the macro.
4183 * target.cc (process_target::post_create_inferior): Define.
4184
4185 Update the derived classes and callers below.
4186
4187 * linux-low.cc (linux_target_ops): Update.
4188 (linux_post_create_inferior): Turn into ...
4189 (linux_process_target::post_create_inferior): ... this.
4190 * linux-low.h (class linux_process_target): Update.
4191 * lynx-low.cc (lynx_target_ops): Update.
4192 * nto-low.cc (nto_target_ops): Update.
4193 * win32-low.cc (win32_target_ops): Update.
4194
15295543
TBA
41952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4196
4197 Turn process_stratum_target's create_inferior op into a method of
4198 process_target.
4199
4200 * target.h (struct process_stratum_target): Remove the target op.
4201 (class process_target): Add the target op.
4202 (create_inferior): Rename the macro to ...
4203 (target_create_inferior): ... this.
4204
4205 Update the derived classes and callers below.
4206
4207 * server.cc (handle_v_run): Update.
4208 (captured_main): Update.
4209 (process_serial_event): Update.
4210 * linux-low.cc (linux_target_ops): Update.
4211 (linux_create_inferior): Turn into ...
4212 (linux_process_target::create_inferior): ... this.
4213 * linux-low.h (class linux_process_target): Update.
4214 * lynx-low.cc (lynx_target_ops): Update.
4215 (lynx_create_inferior): Turn into ...
4216 (lynx_process_target::create_inferior): ... this.
4217 * lynx-low.h (class lynx_process_target): Update.
4218 * nto-low.cc (nto_target_ops): Update.
4219 (nto_create_inferior): Turn into ...
4220 (nto_process_target::create_inferior): ... this.
4221 * nto-low.h (class nto_process_target): Update.
4222 * win32-low.cc (win32_target_ops): Update.
4223 (win32_create_inferior): Turn into ...
4224 (win32_process_target::create_inferior): ... this.
4225 * win32-low.h (class win32_process_target): Update.
4226
5ef9273d
TBA
42272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4228
4229 * target.h (class process_target): New class definition.
4230 (struct process_stratum_target) <pt>: New field with type
4231 'process_target*'.
4232 * linux-low.h (class linux_process_target): Define as a derived
4233 class of 'process_target'.
4234 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4235 as the 'pt' field.
4236 * lynx-low.h (class lynx_process_target): Define as a derived
4237 class of 'process_target'.
4238 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4239 as the 'pt' field.
4240 * nto-low.h (class nto_process_target): Define as a derived
4241 class of 'process_target'.
4242 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4243 as the 'pt' field.
4244 * win32-low.h (class win32_process_target): Define as a derived
4245 class of 'process_target'.
4246 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4247 as the 'pt' field.
4248
9f1528a1
AB
42492020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4250
4251 * configure: Regenerate.
4252
bf84f706
MR
42532020-02-19 Maciej W. Rozycki <macro@wdc.com>
4254 Andrew Burgess <andrew.burgess@embecosm.com>
4255
4256 * linux-riscv-low.cc: New file.
4257 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4258 and nat/riscv-linux-tdesc.c.
4259 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4260 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4261 Define.
4262
1a627e7e
TT
42632020-02-14 Tom Tromey <tom@tromey.com>
4264
4265 * acinclude.m4: Don't include acx_configure_dir.m4.
4266 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4267 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4268 (all, install-only, uninstall, clean-info, clean)
4269 (maintainer-clean): Don't recurse.
4270 (subdir_do, all-lib): Remove.
4271 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4272 (GNULIB_H): Remove.
4273 (generated_files): Update.
4274 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4275 * configure: Rebuild.
4276 * configure.ac: Don't configure gnulib or libiberty.
4277 (GNULIB): Update.
4278
a9b34532
EZ
42792020-02-14 Eli Zaretskii <eliz@gnu.org>
4280
4281 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4282 preparing the command line for CreateProcess.
4283 (win32_create_inferior): Reflect the program name in debugging
4284 output that shows the process and its command line.
4285
feacfcac
SM
42862020-02-13 Simon Marchi <simon.marchi@efficios.com>
4287
4288 * Makefile.in: Rename source files from .c to .cc.
4289 * %.c: Rename to %.cc.
4290 * configure.ac: Rename server.c to server.cc.
4291 * configure: Re-generate.
4292
06b3c5bd
SM
42932020-02-13 Simon Marchi <simon.marchi@efficios.com>
4294
4295 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4296
052793ad
HD
42972020-02-12 Hannes Domani <ssbssa@yahoo.de>
4298
4299 * win32-low.c (win32_create_inferior): Set signal_pid.
4300
f20e3e82
MR
43012020-02-12 Maciej W. Rozycki <macro@wdc.com>
4302 Pedro Alves <palves@redhat.com>
4303
4304 Skip building gdbserver in a cross-configuration.
4305 * configure.srv: Set $gdbserver_host depending on whether $target
4306 is $host. Use $gdbserver_host instead of $host.
4307
8ddd8e0e
SM
43082020-02-11 Simon Marchi <simon.marchi@efficios.com>
4309
4310 * configure: Re-generate.
4311
898e7f60
SM
43122020-02-11 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * configure: Re-generate.
4315
58df732b
SM
43162020-02-11 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * acinclude.m4: Update warning.m4 path.
4319
7928d571
HD
43202020-02-09 Hannes Domani <ssbssa@yahoo.de>
4321
4322 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4323 (handle_exception): Set siginfo_er.
4324 (win32_xfer_siginfo): New function.
4325
919adfe8
TT
43262020-02-07 Tom Tromey <tom@tromey.com>
4327 Pedro Alves <palves@redhat.com>
4328
4329 * README: Update build documentation.
4330 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4331 host, not target.
4332 * configure.ac: Update paths.
4333 * configure: Rebuild.
4334 * acinclude.m4: Update paths.
4335 * Makefile.in: Update include paths.
4336 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4337 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4338 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4339 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4340 (%-generated.c): Update paths.
4341 * Move entire directory from ../gdb/gdbserver.
4342
287c844a
MR
43432020-01-29 Maciej W. Rozycki <macro@wdc.com>
4344
4345 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4346
548a204f
PFC
43472020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4348
4349 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4350 assignment instead of srv_linux_obj.
4351
a2236a08
HD
43522020-01-28 Hannes Domani <ssbssa@yahoo.de>
4353
4354 * server.c (handle_qxfer_libraries): Write segment-address with
4355 paddress.
4356
bdaed379
HD
43572020-01-24 Hannes Domani <ssbssa@yahoo.de>
4358
4359 * Makefile.in (install-strip): New target.
4360 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4361 * aclocal.m4: Regenerate.
4362 * configure: Regenerate.
4363 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4364
42cd72aa
MR
43652020-01-24 Maciej W. Rozycki <macro@wdc.com>
4366
4367 * Makefile.in (SFILES): Adjust paths to point to real files.
4368 (OBS): Move waitstatus.o to target/waitstatus.o.
4369 (TAGS): Transform paths appropriately.
4370 (%.o): Rename to...
4371 (nat/%.o): ... this pattern rule.
4372 (%.o): Rename to...
4373 (target/%.o): ... this pattern rule.
4374 * configure.srv: Adjust paths throughout to include nat/ prefix
4375 with the revant files.
4376 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4377 * configure: Regenerate.
4378
42ba50ec
MR
43792020-01-24 Maciej W. Rozycki <macro@wdc.com>
4380
4381 * Makefile.in (TAGS): Remove config files from the recipe.
4382
05ea2a05
TT
43832020-01-14 Tom Tromey <tom@tromey.com>
4384
4385 * configure: Rebuild.
4386 * configure.ac: Remove any checks that were added to common.m4.
4387 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4388 lib-link.m4.
4389
01027315
TT
43902020-01-14 Tom Tromey <tom@tromey.com>
4391
4392 * server.h: Include config.h.
4393 * gdbreplay.c: Include config.h.
4394 * configure: Rebuild.
4395 * configure.ac: Don't source common.host.
4396 * acinclude.m4: Update path.
4397 * Makefile.in (INCSUPPORT): New variable.
4398 (INCLUDE_CFLAGS): Add INCSUPPORT.
4399 (SFILES): Update paths.
4400 (version-generated.c): Update path to create-version.sh.
4401 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4402
b2ceabe8
TT
44032020-01-14 Tom Tromey <tom@tromey.com>
4404
4405 * configure.ac (LIBS): Use WIN32APILIBS.
4406 (USE_WIN32API): Don't define.
4407 * configure: Rebuild.
4408
25c51f71
TT
44092020-01-14 Tom Tromey <tom@tromey.com>
4410
4411 * configure: Rebuild.
4412
c0bd321d
SM
44132020-01-13 Simon Marchi <simon.marchi@efficios.com>
4414
4415 * Makefile.in (%-generated.c): Remove rule for files from
4416 regformats/i386.
4417
bb564c58
SM
44182020-01-13 Simon Marchi <simon.marchi@efficios.com>
4419
4420 * configure: Re-generate.
4421
6e37c371
SM
44222020-01-13 Simon Marchi <simon.marchi@efficios.com>
4423
4424 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4425 Define to static.
4426 * tracepoint.c (stop_tracing, flush_trace_buffer,
4427 about_to_request_buffer_space, get_trace_state_variable_value,
4428 set_trace_state_variable_value, gdb_collect): Add declaration.
4429
df4a0200
SM
44302020-01-13 Simon Marchi <simon.marchi@efficios.com>
4431
4432 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4433 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4434 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4435 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4436 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4437 static.
4438
89e94ec9
SM
44392020-01-13 Simon Marchi <simon.marchi@efficios.com>
4440
4441 * inferiors.c: Include gdbsupport/common-inferior.h.
4442
2552728a
SM
44432020-01-13 Simon Marchi <simon.marchi@efficios.com>
4444
4445 * hostio-errno.c: Include hostio.h.
4446
4025fa09
SM
44472020-01-13 Simon Marchi <simon.marchi@efficios.com>
4448
4449 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4450 prerequisite.
4451
c0b0a142
SM
44522020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4453
4454 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4455 * linux-arm-tdesc.h: Include arch/arm.h.
4456
bb1183e2
SM
44572020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4458
4459 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4460
f5df0b5f
SM
44612020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4462
4463 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4464 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4465
5b6d1e4f
PA
44662020-01-10 Pedro Alves <palves@redhat.com>
4467
4468 * fork-child.c (post_fork_inferior): Pass target down to
4469 startup_inferior.
4470 * inferiors.c (switch_to_thread): Add process_stratum_target
4471 parameter.
4472 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4473 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4474 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4475 * remote-utils.c (prepare_resume_reply): Pass the target to
4476 switch_to_thread.
4477 * target.c (the_target): Now a process_stratum_target.
4478 (done_accessing_memory): Pass the target to switch_to_thread.
4479 (set_target_ops): Ajust to use process_stratum_target.
4480 * target.h (struct target_ops): Rename to ...
4481 (struct process_stratum_target): ... this.
4482 (the_target, set_target_ops): Adjust.
4483 (prepare_to_access_memory): Adjust comment.
4484 * win32-low.c (child_xfer_memory): Adjust to use
4485 process_stratum_target.
4486 (win32_target_ops): Now a process_stratum_target.
4487
559e7e50
EZ
44882020-01-06 Eli Zaretskii <eliz@gnu.org>
4489 Pedro Alves <palves@redhat.com>
4490
4491 * win32-low.c (get_child_debug_event): Extract the fatal exception
4492 from the exit status and convert to the equivalent Posix signal
4493 number.
4494 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4495 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4496
48189bec
HD
44972020-01-01 Hannes Domani <ssbssa@yahoo.de>
4498
4499 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4500
5dd8bf88
JB
45012020-01-01 Joel Brobecker <brobecker@adacore.com>
4502
4503 * server.c (gdbserver_version): Change copyright year to 2020.
4504 * gdbreplay.c (gdbreplay_version): Likewise.
4505
0ad6b8ee
CB
45062019-12-19 Christian Biesinger <cbiesinger@google.com>
4507
4508 * configure: Regenerate.
4509 * configure.ac: Quote variable arguments of test.
4510
1ee7b812
BE
45112019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4512
4513 * Makefile.in: Fix build with GNU Make 3.81
4514
d9fa87f4
TT
45152019-12-16 Tom Tromey <tromey@adacore.com>
4516
4517 * server.c (get_exec_file): Constify result.
4518
ab7d13f0
CB
45192019-12-10 Christian Biesinger <cbiesinger@google.com>
4520
4521 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4522 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4523 * config.in: Regenerate.
4524 * configure: Regenerate.
4525 * configure.ac: Don't check for strerror.
4526 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4527 Call safe_strerror instead of strerror.
4528 * server.h (strerror): Remove this now-unnecessary declaration.
4529 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4530 strerror.
4531 (gdb_agent_helper_thread): Likewise.
4532 * utils.c (perror_with_name): Likewise.
4533
4da8c3a8
TT
45342019-11-26 Tom Tromey <tom@tromey.com>
4535
4536 * configure, config.in: Rebuild.
4537
21987b9c
TT
45382019-11-26 Tom Tromey <tom@tromey.com>
4539
4540 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4541 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4542 gdb_sigmask.
4543 * configure, config.in: Rebuild.
4544
5e030278
TT
45452019-11-26 Tom Tromey <tom@tromey.com>
4546
4547 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4548 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4549 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4550 * acinclude.m4: Include ax_pthread.m4.
4551 * config.in, configure: Rebuild.
4552
6d91ce9a
CB
45532019-11-26 Christian Biesinger <cbiesinger@google.com>
4554
4555 * debug.c (debug_set_output): Call safe_strerror instead of
4556 strerror.
4557 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4558 (linux_kill_one_lwp): Likewise.
4559 (linux_detach_one_lwp): Likewise.
4560 (linux_wait_for_event_filtered): Likewise.
4561 (store_register): Likewise.
4562 * lynx-low.c (lynx_attach): Likewise.
4563 * mem-break.c (insert_memory_breakpoint): Likewise.
4564 (remove_memory_breakpoint): Likewise.
4565 (delete_fast_tracepoint_jump): Likewise.
4566 (set_fast_tracepoint_jump): Likewise.
4567 (uninsert_fast_tracepoint_jumps_at): Likewise.
4568 (reinsert_fast_tracepoint_jumps_at): Likewise.
4569 * nto-low.c (nto_xfer_memory): Likewise.
4570 (nto_resume): Likewise.
4571
6cdd651f
LM
45722019-11-20 Luis Machado <luis.machado@linaro.org>
4573
4574 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4575 instead of register count.
4576 * tdesc.c (tdesc_contains_feature): New function.
4577 * tdesc.h (tdesc_contains_feature): New prototype.
4578
cd850b40
CB
45792019-11-15 Christian Biesinger <cbiesinger@google.com>
4580
4581 * Makefile.in: Add safe-strerror.c.
4582 * configure: Regenerate.
4583 * configure.ac: Don't source common.host.
4584
5abebf3c
CB
45852019-11-15 Christian Biesinger <cbiesinger@google.com>
4586
4587 * config.in: Regenerate.
4588 * configure: Regenerate.
4589
e06f3d6e
AB
45902019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4591
4592 * ax.c (ax_printf): Handle size_t_arg.
4593
ca3a04f6
CB
45942019-11-06 Christian Biesinger <cbiesinger@google.com>
4595
4596 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4597 * mi/mi-main.c (output_cores): Likewise.
4598 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4599 (linux_xfer_osdata_modules): Likewise.
4600 * remote.c (register_remote_support_xml): Likewise.
4601 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4602 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4603
e48f6033
CB
46042019-11-01 Christian Biesinger <cbiesinger@google.com>
4605
4606 * configure: Regenerate.
4607 * configure.ac: Remove check for strerror_r.
4608
e7e97a2e
CB
46092019-10-31 Christian Biesinger <cbiesinger@google.com>
4610
4611 * config.in: Regenerate.
4612 * configure: Regenerate.
4613 * configure.ac: Also check for strerror_r.
4614
75cafaa6
CB
46152019-10-31 Christian Biesinger <cbiesinger@google.com>
4616
4617 * ax.h (debug_agent): Remove duplicate declaration.
4618
30baf67b
TV
46192019-10-26 Tom de Vries <tdevries@suse.de>
4620
4621 * linux-aarch64-low.c: Fix typos in comments.
4622 * linux-arm-low.c: Same.
4623 * linux-low.c: Same.
4624 * linux-ppc-low.c: Same.
4625 * proc-service.c: Same.
4626 * regcache.h: Same.
4627 * server.c: Same.
4628 * tracepoint.c: Same.
4629 * win32-low.c: Same.
4630
52c64cf7
TT
46312019-10-25 Tom Tromey <tromey@adacore.com>
4632
4633 * utils.c (xstrdup): Remove.
4634
c12d372d
TT
46352019-10-23 Tom Tromey <tom@tromey.com>
4636
4637 * configure, config.in: Rebuild.
4638
4d0b984b
TT
46392019-10-23 Tom Tromey <tom@tromey.com>
4640
4641 * configure: Rebuild.
4642 * acinclude.m4: Use m4_include, not sinclude.
4643
c5adaa19
TT
46442019-10-17 Tom Tromey <tromey@adacore.com>
4645
4646 * configure: Rebuild.
4647 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4648 in AC_CONFIG_FILES invocation.
4649 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4650 invocation.
4651
fec4e896
CB
46522019-10-16 Christian Biesinger <cbiesinger@google.com>
4653
4654 * server.c: Include xml-builtin.h.
4655 (get_xml_features): Don't declare xml_builtins here.
4656
00975ff6
AB
46572019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4658
4659 * Makefile.in: Remove references to vec-ipa.o.
4660
0dc32745
AB
46612019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4662
4663 * Makefile.in: Remove references to vec.c.
4664
3e6ec53a
CB
46652019-10-02 Christian Biesinger <cbiesinger@google.com>
4666
4667 * server.c (server_waiting): Change to bool.
4668 (extended_protocol): Likewise.
4669 (response_needed): Likewise.
4670 (exit_requested): Likewise.
4671 (run_once): Likewise.
4672 (report_no_resumed): Likewise.
4673 (non_stop): Likewise.
4674 (disable_packet_vCont): Likewise.
4675 (disable_packet_Tthread): Likewise.
4676 (disable_packet_qC): Likewise.
4677 (disable_packet_qfThreadInfo): Likewise.
4678 (handle_general_set): Update.
4679 (handle_detach): Update.
4680 (handle_monitor_command): Update.
4681 (handle_query): Update.
4682 (captured_main): Update.
4683 (process_serial_event): Update.
4684 * server.h (server_waiting): Change to bool.
4685 (disable_packet_vCont): Likewise.
4686 (disable_packet_Tthread): Likewise.
4687 (disable_packet_qC): Likewise.
4688 (disable_packet_qfThreadInfo): Likewise.
4689 (run_once): Likewise.
4690 (non_stop): Likewise.
4691 * target.c (target_stop_and_wait): Update.
4692
80fd2826
TT
46932019-10-02 Tom Tromey <tromey@adacore.com>
4694
4695 * Makefile.in (SFILES): Add common-inferior.c.
4696 (OBS): Add common-inferior.o.
4697 * server.c (startup_with_shell): Don't define.
4698
46f29a9a
AB
46992019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4700
4701 * linux-low.c (linux_low_read_btrace): Update for change to
4702 std::vector.
4703
f9d949fb
CB
47042019-09-20 Christian Biesinger <cbiesinger@google.com>
4705
4706 * debug.c (debug_threads): Remove comment in favor of the header.
4707 * debug.h (using_threads): Add declaration.
4708 (debug_threads): Add comment.
4709 * linux-aarch64-low.c: Include debug.h and remove declaration of
4710 debug_threads.
4711 * nto-low.c: Likewise.
4712 * remote-utils.c: Likewise.
4713 * thread-db.c: Likewise.
4714
abf516c6
UW
47152019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4716
4717 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4718 and powerpc-cell64l-ipa.o.
4719 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4720 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4721 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4722 (spu*-*-*): Remove.
4723
4724 * spu-low.c: Remove file.
4725
4726 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4727 (parse_spufs_run): Remove.
4728 (ppc_get_pc): Remove Cell/B.E. support.
4729 (ppc_set_pc): Likewise.
4730 (ppc_breakpoint_at): Likewise.
4731 (ppc_arch_setup): Likewise.
4732 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4733 tdesc_powerpc_cell32l.
4734 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4735 or init_registers_powerpc_cell32l.
4736 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4737 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4738 or init_registers_powerpc_cell32l.
4739 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4740 (init_registers_powerpc_cell32l): Remove prototype.
4741 (init_registers_powerpc_cell64l): Likewise.
4742
4743 * target.h (struct target_ops): Remove qxfer_spu member.
4744 * server.c (handle_qxfer_spu): Remove.
4745 (qxfer_packets): Remove entry for "spu".
4746 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4747 * linux-low.c (SPUFS_MAGIC): Remove.
4748 (spu_enumerate_spu_ids): Remove.
4749 (linux_qxfer_spu): Remove.
4750 (linux_target_ops): Remove qxfer_spu member.
4751 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4752 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4753 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4754
2d41fa11
SDJ
47552019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4756
4757 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4758 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4759 * config.in: Regenerate.
4760 * configure: Regenerate.
4761
d59b55f0
TT
47622019-08-15 Tom Tromey <tromey@adacore.com>
4763
4764 * target.c (target_write_memory): Use gdb::byte_vector.
4765
4196ab2a
TT
47662019-08-15 Tom Tromey <tromey@adacore.com>
4767
4768 * tracepoint.c (write_inferior_data_pointer)
4769 (write_inferior_integer, write_inferior_int8)
4770 (write_inferior_uinteger, m_tracepoint_action_download)
4771 (r_tracepoint_action_download, x_tracepoint_action_download)
4772 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4773 (download_agent_expr, download_tracepoint_1)
4774 (download_trace_state_variables, upload_fast_traceframes): Update.
4775 * server.c (gdb_write_memory): Update.
4776 * remote-utils.c (relocate_instruction): Update.
4777 * proc-service.c (ps_pdwrite): Update.
4778 * mem-break.c (remove_memory_breakpoint)
4779 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4780 (uninsert_fast_tracepoint_jumps_at)
4781 (reinsert_fast_tracepoint_jumps_at): Update.
4782 * linux-x86-low.c (append_insns)
4783 (i386_install_fast_tracepoint_jump_pad)
4784 (amd64_write_goto_address, i386_write_goto_address): Update.
4785 * linux-s390-low.c (append_insns, s390_write_goto_address):
4786 Update.
4787 * linux-ppc-low.c (ppc_relocate_instruction)
4788 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4789 (ppc_write_goto_address): Update.
4790 * linux-aarch64-low.c (append_insns): Update.
4791 * target.h (struct target_ops): Update.
4792 (write_inferior_memory): Don't declare.
4793 * target.c (target_write_memory): Rename from
4794 write_inferior_memory. Remove old target_write_memory.
4795
c6778d00
TT
47962019-08-15 Tom Tromey <tromey@adacore.com>
4797
4798 * target.c (write_inferior_memory): Use std::vector.
4799
404f2902
FCE
48002019-08-06 Frank Ch. Eigler <fche@redhat.com>
4801
4802 PR build/24886
4803 * configure.ac: Drop enable-libmcheck support.
4804 * configure, config.in: Rebuild.
4805 * acinclude.m4: Don't include it.
4806
4c5aa8e0
AH
48072019-07-19 Alan Hayward <alan.hayward@arm.com>
4808
4809 * configure.srv: Remove Arm xml files.
4810
7cc17433
AH
48112019-07-19 Alan Hayward <alan.hayward@arm.com>
4812
4813 * configure.srv: Add new files. Remove xml generated files.
4814 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4815 registers.
4816 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4817 * linux-aarch32-tdesc.c: New file.
4818 * linux-aarch32-tdesc.h: New file.
4819 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4820 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4821 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4822 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4823 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4824 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4825 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4826 (arm_read_description): Call arm_linux_read_description.
4827 (initialize_low_arch): Don't init registers.
4828 * linux-arm-tdesc.c: New file.
4829 * linux-arm-tdesc.h: New file.
4830
166a82be
AH
48312019-07-10 Alan Hayward <alan.hayward@arm.com>
4832
4833 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4834 Move counter inside for.
4835 (arm_read_description): Check ptrace earlier.
4836 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4837
268a13a5
TT
48382019-07-09 Tom Tromey <tom@tromey.com>
4839
4840 * configure: Rebuild.
4841 * configure.ac: Change common to gdbsupport.
4842 * acinclude.m4: Change common to gdbsupport.
4843 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4844 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4845 common to gdbsupport.
4846 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4847 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4848 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4849 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4850 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4851 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4852 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4853 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4854 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4855 common to gdbsupport.
4856
350fab54
AH
48572019-07-04 Alan Hayward <alan.hayward@arm.com>
4858
4859 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4860 defines.
4861 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4862
2b40fda7
AH
48632019-07-04 Alan Hayward <alan.hayward@arm.com>
4864
4865 * configure.srv: Remove legacy xml.
4866 * linux-aarch64-low.c (initialize_low_arch): Remove
4867 initialize_low_tdesc call.
4868 * linux-aarch64-tdesc-selftest.c: Remove file.
4869 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4870 * linux-x86-low.c (initialize_low_arch): Remove
4871 initialize_low_tdesc call.
4872 * linux-x86-tdesc-selftest.c: Remove file.
4873 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4874
7d10623d
TV
48752019-06-20 Tom de Vries <tdevries@suse.de>
4876
4877 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4878 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4879
8d6a48df
TV
48802019-06-19 Tom de Vries <tdevries@suse.de>
4881
4882 * debug.h (debug_write): Change return type to ssize_t.
4883 * debug.c (debug_write): Same.
4884
73cc7272
TT
48852019-06-14 Tom Tromey <tom@tromey.com>
4886
4887 * configure.ac: Use new path to gnulib.
4888 * configure: Rebuild.
4889 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4890 to gnulib.
4891
08f10e02
TT
48922019-06-11 Tom Tromey <tom@tromey.com>
4893
4894 * Makefile.in (SFILES): Add alloc.c.
4895 (OBS): Add alloc.o.
4896 (IPA_OBJS): Add alloc-ipa.o.
4897 (alloc-ipa.o): New target.
4898 (%.o: ../%.c): New pattern rule.
4899
422186a9
TT
49002019-06-10 Tom Tromey <tromey@adacore.com>
4901
4902 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4903 end warning with a newline.
4904 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4905 newline.
4906 * thread-db.c (attach_thread): Don't end warning with a newline.
4907 (thread_db_notice_clone): Likewise.
4908 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4909 newline.
4910 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4911 end warning with a newline.
4912
b02f78f9
PA
49132019-06-04 Pedro Alves <palves@redhat.com>
4914
4915 * server.c (captured_main): Use make_unique_xstrdup.
4916
88ed7edb
TT
49172019-06-02 Tom Tromey <tom@tromey.com>
4918
4919 * gdbreplay.c (fromhex): Remove.
4920 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4921
33a6bc35
TT
49222019-05-29 Tom Tromey <tromey@adacore.com>
4923
4924 * configure: Rebuild.
4925
e90a813d
KB
49262019-05-06 Kevin Buettner <kevinb@redhat.com>
4927
4928 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4929 sign extension code on 32-bit builds.
4930
353ea2d1
EZ
49312019-05-03 Eli Zaretskii <eliz@gnu.org>
4932
4933 * remote-utils.c:
4934 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4935
b494cdff
TT
49362019-04-19 Tom Tromey <tom@tromey.com>
4937
4938 * server.c (struct vstop_notif): Derive from notif_event.
4939 <base>: Remove.
4940 (queue_stop_reply): Update.
4941 (remove_all_on_match_ptid): Change type. Rewrite.
4942 (discard_queued_stop_replies): Rewrite.
4943 (in_queued_stop_replies_ptid): Change type.
4944 (in_queued_stop_replies): Rewrite.
4945 (notif_stop): Update.
4946 (queue_stop_reply_callback): Update.
4947 (captured_main): Don't call initialize_notif.
4948 (push_stop_notification): Update.
4949 * notif.c (notif_write_event, handle_notif_ack)
4950 (notif_event_enque, notif_push): Update.
4951 (notif_event_xfree, initialize_notif): Remove.
4952 * notif.h (struct notif_event): Include <list>, not
4953 "common/queue.h".
4954 (struct notif_server) <queue>: Now a std::list.
4955 (notif_event_p): Remove typedef.
4956 (initialize_notif): Don't declare.
4957 (struct notif_event): Add virtual destructor.
4958
a7e559cc
AH
49592019-04-17 Alan Hayward <alan.hayward@arm.com>
4960
4961 * ax.c (ax_vdebug): Call debug_printf.
4962 * debug.c (debug_write): New function.
4963 * debug.h (debug_write): New declaration.
4964 * linux-low.c (sigchld_handler): Call debug_write.
4965
aeb2e706
AH
49662019-04-17 Alan Hayward <alan.hayward@arm.com>
4967
4968 * debug.c (debug_set_output): New function.
4969 (debug_vprintf): Send output to debug_file.
4970 (debug_flush): Likewise.
4971 * debug.h (debug_set_output): New declaration.
4972 * server.c (handle_monitor_command): Add debug-file option.
4973 (captured_main): Likewise.
4974
c1bc0935
AH
49752019-04-17 Alan Hayward <alan.hayward@arm.com>
4976
4977 * debug.c (remote_debug): Add definition.
4978 * debug.h (remote_debug): Add declaration.
4979 * hostio.c (remote_debug): Remove declaration.
4980 * remote-utils.c (struct ui_file): Likewise.
4981 (remote_debug): Likewise.
4982 * remote-utils.h (remote_debug): Likewise,
4983 * server.c (remote_debug): Remove definition.
4984
3f52fdbc
KB
49852019-04-10 Kevin Buettner <kevinb@redhat.com>
4986
4987 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4988 when using a 64-bit gdbserver.
4989
b0319eaa
TT
49902019-04-09 Tom Tromey <tromey@adacore.com>
4991
4992 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4993
eedc3f4f
TT
49942019-04-08 Tom Tromey <tom@tromey.com>
4995
4996 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4997 throw.
4998 (linux_resume_one_lwp): Likewise.
4999
230d2906
TT
50002019-04-08 Tom Tromey <tom@tromey.com>
5001
5002 * gdbreplay.c: Update.
5003 * linux-low.c: Update.
5004 * server.c: Update.
5005
a70b8144
TT
50062019-04-08 Tom Tromey <tom@tromey.com>
5007
5008 * server.c: Use C++ exception handling.
5009 * linux-low.c: Use C++ exception handling.
5010 * gdbreplay.c: Use C++ exception handling.
5011
3d6e9d23
TT
50122019-04-08 Tom Tromey <tom@tromey.com>
5013
5014 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5015 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5016 (captured_main, main): Update.
5017 * gdbreplay.c (main): Update.
5018
0570503d
PFC
50192019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5020
5021 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5022 value in argument pointer, return 1 if the entry is found and 0
5023 otherwise. Move comment.
5024 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5025 * linux-low.h (linux_get_auxv): Declare.
5026 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5027
227a9e65
TT
50282019-04-05 Tom Tromey <tromey@adacore.com>
5029
5030 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5031 variables.
5032
69f4c9cc
AH
50332019-03-28 Alan Hayward <alan.hayward@arm.com>
5034
5035 * linux-low.c (AT_HWCAP2): Add define if not already included.
5036
974c89e0
AH
50372019-03-26 Alan Hayward <alan.hayward@arm.com>
5038
5039 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5040 (aarch64_arch_setup): Call linux_get_hwcap.
5041 * linux-arm-low.c (arm_get_hwcap): Remove function.
5042 (arm_read_description): Call linux_get_hwcap.
5043 * linux-low.c (linux_get_auxv): New function.
5044 (linux_get_hwcap): Likewise.
5045 (linux_get_hwcap2): Likewise.
5046 * linux-low.h (linux_get_hwcap): New declaration.
5047 (linux_get_hwcap2): Likewise.
5048 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5049 (ppc_arch_setup): Call linux_get_hwcap.
5050 * linux-s390-low.c (s390_get_hwcap): Remove function.
5051 (s390_arch_setup): Call linux_get_hwcap.
5052
1ef53e6b
AH
50532019-03-22 Alan Hayward <alan.hayward@arm.com>
5054 Jiong Wang <jiong.wang@arm.com>
5055
5056 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5057 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5058 to fail.
5059 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5060
ee4fbcfa
AH
50612019-03-22 Alan Hayward <alan.hayward@arm.com>
5062 Jiong Wang <jiong.wang@arm.com>
5063
5064 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5065 (aarch64_get_hwcap): New function.
5066 (aarch64_arch_setup): Read APIA hwcap.
5067
6dc0ebde
AH
50682019-03-22 Alan Hayward <alan.hayward@arm.com>
5069 Jiong Wang <jiong.wang@arm.com>
5070
5071 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5072 (initialize_low_tracepoint): Likewise.
5073 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5074 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5075 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5076 (aarch64_linux_read_description): Likewise.
5077 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5078
1163a4b7
JB
50792019-03-12 John Baldwin <jhb@FreeBSD.org>
5080
5081 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5082 i386_create_target_description for 'segments' parameter.
5083 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5084 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5085 * win32-i386-low.c (i386_arch_setup): Likewise.
5086
d3a70e03
TT
50872019-03-12 Tom Tromey <tromey@adacore.com>
5088
5089 * linux-low.c (iterate_over_lwps): Update.
5090
37991b4f
TT
50912019-03-06 Tom Tromey <tom@tromey.com>
5092
5093 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5094 (captured_main): Use SCOPE_EXIT.
5095
45950eb6
SDJ
50962019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5097
5098 * configure.srv: Use '$enable_unittest' instead of '$development'
5099 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5100 case.
5101
43ac54fc
TT
51022019-02-27 Tom Tromey <tromey@adacore.com>
5103
5104 * gdbreplay.c (logchar): Handle \r\n.
5105
df0da8a2
AH
51062019-02-07 Alan Hayward <alan.hayward@arm.com>
5107
5108 * linux-low.c (linux_attach): Add process before lwp.
5109 * server.c (attach_inferior): Check if already attached.
5110
1a5c2598
TT
51112019-02-07 Tom Tromey <tom@tromey.com>
5112
5113 * x86-tdesc.h: Rename include guard.
5114 * x86-low.h: Add include guard.
5115 * wincecompat.h: Rename include guard.
5116 * win32-low.h: Add include guard.
5117 * utils.h: Rename include guard.
5118 * tracepoint.h: Rename include guard.
5119 * tdesc.h: Rename include guard.
5120 * target.h: Rename include guard.
5121 * server.h: Rename include guard.
5122 * remote-utils.h: Rename include guard.
5123 * regcache.h: Rename include guard.
5124 * nto-low.h: Rename include guard.
5125 * notif.h: Add include guard.
5126 * mem-break.h: Rename include guard.
5127 * lynx-low.h: Add include guard.
5128 * linux-x86-tdesc.h: Add include guard.
5129 * linux-s390-tdesc.h: Add include guard.
5130 * linux-ppc-tdesc-init.h: Add include guard.
5131 * linux-low.h: Add include guard.
5132 * linux-aarch64-tdesc.h: Add include guard.
5133 * linux-aarch32-low.h: Add include guard.
5134 * inferiors.h: Rename include guard.
5135 * i387-fp.h: Rename include guard.
5136 * hostio.h: Rename include guard.
5137 * gdbthread.h: Rename include guard.
5138 * gdb_proc_service.h: Rename include guard.
5139 * event-loop.h: Rename include guard.
5140 * dll.h: Rename include guard.
5141 * debug.h: Rename include guard.
5142 * ax.h: Rename include guard.
5143
956cc47c
SN
51442018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5145
5146 PR gdb/23985
5147 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5148 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5149
a0707f3c
TT
51502019-01-25 Tom Tromey <tom@tromey.com>
5151
5152 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5153
0747795c
TT
51542019-01-25 Tom Tromey <tom@tromey.com>
5155
5156 * win32-low.c: Fix common/ includes.
5157 * win32-i386-low.c: Fix common/ includes.
5158 * tracepoint.c: Fix common/ includes.
5159 * thread-db.c: Fix common/ includes.
5160 * target.h: Fix common/ includes.
5161 * symbol.c: Fix common/ includes.
5162 * spu-low.c: Fix common/ includes.
5163 * server.h: Fix common/ includes.
5164 * server.c: Fix common/ includes.
5165 * remote-utils.c: Fix common/ includes.
5166 * regcache.h: Fix common/ includes.
5167 * regcache.c: Fix common/ includes.
5168 * nto-x86-low.c: Fix common/ includes.
5169 * notif.h: Fix common/ includes.
5170 * mem-break.h: Fix common/ includes.
5171 * lynx-low.c: Fix common/ includes.
5172 * lynx-i386-low.c: Fix common/ includes.
5173 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5174 * linux-x86-low.c: Fix common/ includes.
5175 * linux-low.c: Fix common/ includes.
5176 * inferiors.h: Fix common/ includes.
5177 * i387-fp.c: Fix common/ includes.
5178 * hostio.c: Fix common/ includes.
5179 * hostio-errno.c: Fix common/ includes.
5180 * gdbthread.h: Fix common/ includes.
5181 * gdbreplay.c: Fix common/ includes.
5182 * fork-child.c: Fix common/ includes.
5183 * event-loop.c: Fix common/ includes.
5184 * ax.c:
5185 (enum gdb_agent_op): Fix common/ includes.
5186
be6d4f74
TT
51872019-01-21 Tom Tromey <tom@tromey.com>
5188
5189 * tracepoint.c: Fix includes.
5190 * remote-utils.c: Fix includes.
5191 * linux-x86-low.c: Fix includes.
5192
66d91b39
JB
51932019-01-01 Joel Brobecker <brobecker@adacore.com>
5194
5195 * gdbreplay.c (gdbreplay_version): Update copyright year in
5196 version message.
5197 * server.c (gdbserver_version): Likewise.
5198
754e3168
AH
51992018-12-05 Alan Hayward <alan.hayward@arm.com>
5200
5201 * linux-low.c (add_lwp): Switch ordering.
5202
d105de22
TT
52032018-11-29 Tom Tromey <tom@tromey.com>
5204
5205 * win32-low.c (win32_join): Take pid, not process.
5206 * target.h (struct target_ops) <join>: Change argument type.
5207 (join_inferior): Change argument name.
5208 * spu-low.c (spu_join): Take pid, not process.
5209 * server.c (handle_detach): Preserve pid before destroying
5210 process.
5211 * lynx-low.c (lynx_join): Take pid, not process.
5212 * linux-low.c (linux_join): Take pid, not process.
5213
50138245
AH
52142018-11-23 Alan Hayward <alan.hayward@arm.com>
5215
5216 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5217 (aarch64_cannot_fetch_register): Likewise.
5218 (struct linux_target_ops): Update references.
5219
64f57f3d
PFC
52202018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5221
5222 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5223
8d619c01
EBM
52242018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5225
5226 * configure.srv (ipa_ppc_linux_regobj): Add
5227 powerpc-isa207-htm-vsx32l-ipa.o and
5228 powerpc-isa207-htm-vsx64l-ipa.o.
5229 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5230 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5231 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5232 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5233 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5234 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5235 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5236 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5237 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5238 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5239 (init_registers_powerpc_isa207_htm_vsx32l)
5240 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5241 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5242 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5243 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5244 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5245 (ppc_store_tm_ctarregset): New functions.
5246 (ppc_regsets): Add entries for HTM regsets.
5247 (ppc_arch_setup): Set htm in features struct when needed. Set
5248 sizes for the HTM regsets.
5249 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5250 (initialize_low_arch): Call
5251 init_registers_powerpc_isa207_htm_vsx32l and
5252 init_registers_powerpc_isa207_htm_vsx64l.
5253 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5254 PPC_TDESC_ISA207_HTM_VSX.
5255 (initialize_low_tracepoint): Call
5256 init_registers_powerpc_isa207_htm_vsx32l and
5257 init_registers_powerpc_isa207_htm_vsx64l.
5258
232bfb86
EBM
52592018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5260
5261 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5262 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5263 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5264 (ppc_store_pmuregset): New functions.
5265 (ppc_regsets): Add entries for ebb and pmu regsets.
5266 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5267 pmu regsets are available. Set sizes for these regsets.
5268
f2cf6173
EBM
52692018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5270
5271 * configure.srv (ipa_ppc_linux_regobj): Add
5272 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5273 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5274 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5275 rs6000/powerpc-isa207-vsx32l.xml, and
5276 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5277 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5278 <PPC_TDESC_ISA207_VSX>: New enum value.
5279 (init_registers_powerpc_isa207_vsx32l): Declare.
5280 (init_registers_powerpc_isa207_vsx64l): Declare.
5281 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5282 (ppc_store_tarregset): New function.
5283 (ppc_regsets): Add entry for the TAR regset.
5284 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5285 size for the TAR regsets.
5286 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5287 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5288 and init_registers_powerpc_isa207_vsx64l.
5289 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5290 (initialize_low_tracepoint): Call
5291 init_registers_powerpc_isa207_vsx32l and
5292 init_registers_powerpc_isa207_vsx64l.
5293
7ca18ed6
EBM
52942018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5295 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5296
5297 * configure.srv (ipa_ppc_linux_regobj): Add
5298 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5299 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5300 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5301 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5302 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5303 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5304 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5305 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5306 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5307 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5308 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5309 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5310 (ppc_hwcap): Add comment.
5311 (ppc_hwcap2): New global.
5312 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5313 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5314 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5315 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5316 when needed. Set sizes for the the DSCR and PPR regsets.
5317 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5318 (initialize_low_arch): Call
5319 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5320 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5321 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5322 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5323 (initialize_low_tracepoint): Call
5324 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5325 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5326
5c849b22
PFC
53272018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5328
5329 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5330
8ecfd7bd
SDJ
53312018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5332 Simon Marchi <simark@simark.ca>
5333
5334 * acinclude.m4: Include "../selftest.m4".
5335 * configure: Regenerate.
5336 * configure.ac: Use "GDB_AC_SELFTEST".
5337 * configure.srv: Use "$enable_unittests" instead of
5338 "$development" when checking whether unit tests have been
5339 enabled.
5340 * server.c (captured_main): Update message informing that
5341 selftests have been disabled.
5342
96643e35
TT
53432018-10-04 Tom Tromey <tom@tromey.com>
5344
5345 * configure: Rebuild.
5346
da4ae14a
TT
53472018-10-04 Tom Tromey <tom@tromey.com>
5348
5349 * server.c (handle_status): Rename inner "thread".
5350 (process_serial_event): Declare "res" in 'm' case.
5351 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5352 (iterate_over_lwps): Rename inner "thread".
5353 (linux_qxfer_libraries_svr4): Rename inner "len".
5354 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5355
7c619dbd
GB
53562018-10-01 Gary Benson <gbenson@redhat.com>
5357
5358 * gdb_proc_service.h: Moved common code to
5359 common/gdb_proc_service.h.
5360
3795e814
GB
53612018-10-01 Gary Benson <gbenson@redhat.com>
5362
5363 * gdb_proc_service.h: Synchronize comments and whitespace with
5364 GDB's version of this file.
5365
49b036f1
TT
53662018-09-25 Tom Tromey <tom@tromey.com>
5367
5368 * configure: Rebuild.
5369 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5370
8ff03f0b
SM
53712018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5372
5373 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5374 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5375 ($(IPA_LIB)): Sort IPA_OBJS.
5376
a1cd91dc
SM
53772018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5378
5379 * Makefile.in: Remove references to $(ADD_DEPS).
5380
752312ba
TT
53812018-09-16 Tom Tromey <tom@tromey.com>
5382
5383 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5384 variables.
5385 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5386 variables.
5387
f1628857
TT
53882018-09-05 Tom Tromey <tom@tromey.com>
5389
5390 * configure: Rebuild.
5391
ad202fcc
SM
53922018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5393
5394 PR build/23399
5395 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5396
d3d8724a
TT
53972018-08-27 Tom Tromey <tom@tromey.com>
5398
5399 PR build/23087:
5400 * configure: Rebuild.
5401
b4f183d2
TT
54022018-08-27 Tom Tromey <tom@tromey.com>
5403
5404 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5405 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5406 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5407 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5408 (s390x_emit_stack_adjust): Add casts to unsigned char.
5409
4e2aa472
SM
54102018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5411
5412 PR gdb/23374
5413 PR gdb/23375
5414 * server.h (struct client_state) <disable_randomization>:
5415 Initialize to 1.
5416
cf4088a9
SM
54172018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5418
5419 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5420 variable.
5421 (mips_supply_ptrace_register): Likewise.
5422
a0de763e
TT
54232018-07-22 Tom Tromey <tom@tromey.com>
5424
5425 * configure: Rebuild.
5426
b0a7723d
TT
54272018-07-22 Tom Tromey <tom@tromey.com>
5428
5429 * win32-low.c (win32_create_inferior): Remove unused variables.
5430 * gdbreplay.c (remote_open): Remove unused variable.
5431 * remote-utils.c (remote_prepare): Remove unused variable.
5432 * x86-tdesc.h (X86_TDESC_H): Define.
5433 (amd64_expedite_regs): Define conditionally.
5434 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5435 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5436 * remote-utils.c (readchar): Remove unused variable.
5437
a780ef4f
PA
54382018-07-13 Pedro Alves <palves@redhat.com>
5439
5440 * linux-low.c (linux_kill): Change parameter to process_info
5441 pointer instead of pid. Adjust.
5442 * lynx-low.c (lynx_kill): Likewise.
5443 * nto-low.c (nto_kill): Likewise.
5444 * spu-low.c (spu_kill): Likewise.
5445 * win32-low.c (win32_kill): Likewise.
5446 * server.c (handle_v_kill, kill_inferior_callback)
5447 (detach_or_kill_for_exit): Adjust.
5448 * target.c (kill_inferior): Change parameter to process_info
5449 pointer instead of pid. Adjust.
5450 * target.h (struct target_ops) <kill>: Change parameter to
5451 process_info pointer instead of pid. Adjust all implementations
5452 and callers.
5453 (kill_inferior): Likewise.
5454
ef2ddb33
PA
54552018-07-13 Pedro Alves <palves@redhat.com>
5456
5457 * linux-low.c (linux_detach, linux_join): Change parameter to
5458 process_info pointer instead of pid. Adjust.
5459 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5460 * nto-low.c (nto_detach): Likewise.
5461 * spu-low.c (spu_detach, spu_join): Likewise.
5462 * win32-low.c (win32_detach, win32_join): Likewise.
5463 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5464 * target.h (struct target_ops) <detach, join>: Change parameter to
5465 process_info pointer instead of pid. Adjust all implementations
5466 and callers.
5467 (detach_inferior, join_inferior): Rename 'pid' parameter to
5468 'proc'.
5469
c7ab0aef
SDJ
54702018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5471 Jan Kratochvil <jan.kratochvil@redhat.com>
5472 Paul Fertser <fercerpav@gmail.com>
5473 Tsutomu Seki <sekiriki@gmail.com>
5474
5475 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5476 (OBS): Add 'common/netstuff.o'.
5477 (GDBREPLAY_OBS): Likewise.
5478 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5479 (remote_open): Implement support for IPv6
5480 connections.
5481 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5482 and 'wspiapi.h'.
5483 (handle_accept_event): Accept connections from IPv6 sources.
5484 (remote_prepare): Handle IPv6-style hostnames; implement
5485 support for IPv6 connections.
5486 (remote_open): Implement support for printing connections from
5487 IPv6 sources.
5488
31445d10
PA
54892018-07-11 Pedro Alves <palves@redhat.com>
5490
5491 PR gdb/23377
5492 * mem-break.c (any_persistent_commands): Add process_info
5493 parameter and use it instead of relying on the current process.
5494 Change return type to bool.
5495 * mem-break.h (any_persistent_commands): Add process_info
5496 parameter and change return type to bool.
5497 * server.c (handle_detach): Remove require_running_or_return call.
5498 Look up the process_info for the process we're about to detach.
5499 If not found, return back error to GDB. Adjust
5500 any_persistent_commands call to pass down a process pointer.
5501
cb197132
PA
55022018-07-11 Pedro Alves <palves@redhat.com>
5503
5504 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5505 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5506 instead of collect_register_by_name.
5507 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5508 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5509
1b919490
VB
55102018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5511 Pedro Alves <palves@redhat.com>
5512
5513 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5514
d7e15655
TT
55152018-07-03 Tom Tromey <tom@tromey.com>
5516
5517 * linux-low.c: Update.
5518 * lynx-low.c: Update.
5519 * mem-break.c: Update.
5520 * nto-low.c: Update.
5521 * remote-utils.c: Update.
5522 * server.c: Update.
5523 * spu-low.c: Update.
5524 * target.c: Update.
5525 * win32-low.c: Update.
5526
26a57c92
TT
55272018-07-03 Tom Tromey <tom@tromey.com>
5528
5529 * server.c: Update.
5530
0e998d96
TT
55312018-07-03 Tom Tromey <tom@tromey.com>
5532
5533 * linux-low.c: Update.
5534
cc6bcb54
TT
55352018-07-03 Tom Tromey <tom@tromey.com>
5536
5537 * target.c: Update.
5538
e38504b3
TT
55392018-07-03 Tom Tromey <tom@tromey.com>
5540
5541 * linux-low.c: Update.
5542 * linux-mips-low.c: Update.
5543 * lynx-low.c: Update.
5544 * nto-low.c: Update.
5545 * remote-utils.c: Update.
5546 * server.c: Update.
5547 * spu-low.c: Update.
5548 * target.c: Update.
5549 * thread-db.c: Update.
5550
e99b03dc
TT
55512018-07-03 Tom Tromey <tom@tromey.com>
5552
5553 * linux-low.c: Update.
5554 * linux-mips-low.c: Update.
5555 * lynx-low.c: Update.
5556 * mem-break.c: Update.
5557 * nto-low.c: Update.
5558 * remote-utils.c: Update.
5559 * server.c: Update.
5560 * spu-low.c: Update.
5561 * target.c: Update.
5562 * tracepoint.c: Update.
5563
f2907e49
TT
55642018-07-03 Tom Tromey <tom@tromey.com>
5565
5566 * linux-low.c: Update.
5567 * linux-ppc-low.c: Update.
5568 * linux-x86-low.c: Update.
5569 * proc-service.c: Update.
5570 * server.c: Update.
5571 * spu-low.c: Update.
5572 * thread-db.c: Update.
5573 * win32-low.c: Update.
5574
fd79271b
TT
55752018-07-03 Tom Tromey <tom@tromey.com>
5576
5577 * linux-low.c: Update.
5578 * lynx-low.c: Update.
5579 * nto-low.c: Update.
5580 * remote-utils.c: Update.
5581 * spu-low.c: Update.
5582 * thread-db.c: Update.
5583 * win32-low.c: Update.
5584
c0867626
SDJ
55852018-06-29 Joel Brobecker <brobecker@adacore.com>
5586
5587 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5588 parameter in call to 'amd64_create_target_description'.
5589
2512d7ef
JK
55902018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5591
5592 * x86-tdesc.h: Remove executable permission flag.
5593
d0ac1c44
SM
55942018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5595
5596 * configure.ac: Remove AC_PREREQ, add missing quoting.
5597 * configure: Re-generate.
5598 * config.in: Re-generate.
5599 * aclocal.m4: Re-generate.
5600
c4eb05ff
SM
56012018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5602
5603 * tracepoint.h (current_traceframe): Remove declaration.
5604
02895270
AH
56052018-06-18 Alan Hayward <alan.hayward@arm.com>
5606
5607 * linux-aarch64-low.c (is_sve_tdesc): New function.
5608 (aarch64_sve_regs_copy_to_regcache): Likewise.
5609 (aarch64_sve_regs_copy_from_regcache): Likewise.
5610 (aarch64_regs_info): Add SVE checks.
5611 (initialize_low_arch): Initialize SVE.
5612
e9902bfc
AH
56132018-06-18 Alan Hayward <alan.hayward@arm.com>
5614
5615 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5616
fefa175e
AH
56172018-06-11 Alan Hayward <alan.hayward@arm.com>
5618
5619 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5620 (initialize_low_tracepoint): Likewise
5621 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5622 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5623 param.
5624 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5625 checks.
5626 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5627
b91ad3ff
AH
56282018-06-11 Alan Hayward <alan.hayward@arm.com>
5629
5630 * server.h (PBUFSIZ): Increase size
5631
f868386e
AH
56322018-06-11 Alan Hayward <alan.hayward@arm.com>
5633
5634 * regcache.c (regcache::raw_compare): New function.
5635 * regcache.h (regcache::raw_compare): New declaration.
5636
9c861883
AH
56372018-06-11 Alan Hayward <alan.hayward@arm.com>
5638
5639 * regcache.c (new_register_cache): Use new.
5640 (free_register_cache): Use delete.
5641 (register_data): Use const.
5642 (supply_register): Move body inside regcache.
5643 (regcache::raw_supply): New override function.
5644 (collect_register): Move body inside regcache.
5645 (regcache::raw_collect): New override function.
5646 (regcache::get_register_status): New override function.
5647 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5648
40591844
TT
56492018-06-09 Tom Tromey <tom@tromey.com>
5650
5651 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5652 declare queue.
5653 (event_queue): Use std::queue.
5654 (gdb_event_xfree): Remove.
5655 (initialize_event_loop, process_event, wait_for_event): Update.
5656
6341380d
SC
56572018-06-08 Stan Cox <scox@redhat.com>
5658
5659 * win32-low.c (win32_create_inferior): last_ptid and last_status
5660 moved to client_state.
5661
03349c93
PA
56622018-06-08 Pedro Alves <palves@redhat.com>
5663
5664 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5665 common/common-exceptions.o, common/common-utils.o,
5666 common/errors.o, common/print-utils.o and utils.o.
5667 * gdbreplay.c: Include "common-defs.h" instead of the two
5668 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5669 string.h or alloca.h.
5670 (perror_with_name): Delete.
5671 (remote_open): Use xstrdup instead of strdup.
5672 (main): Rename to ...
5673 (captured_main): ... this.
5674 (main): New.
5675
8dcc53b3
TT
56762018-06-08 Tom Tromey <tom@tromey.com>
5677
5678 * linux-low.c (linux_low_read_btrace): Update.
5679
c12a5089
SC
56802018-06-04 Stan Cox <scox@redhat.com>
5681
5682 * server.h (struct client_state): New.
5683 * server.c (cont_thread, general_thread, multi_process)
5684 (report_fork_events, report_vfork_events, report_exec_events)
5685 (report_thread_events, swbreak_feature, hwbreak_feature)
5686 (vCont_supported, disable_randomization, pass_signals)
5687 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5688 Moved to client_state.
5689 * remote-utils.c (remote_debug, noack_mode)
5690 (transport_is_reliable): Moved to client_state.
5691 * tracepoint.c (current_traceframe): Moved to client_state.
5692
5693 Update all callers.
5694 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5695 linux-low.c, remote-utils.h, target.c: Use client_state.
5696
122394f1
AH
56972018-05-31 Alan Hayward <alan.hayward@arm.com>
5698
5699 * configure.srv: Add new c/h file.
5700
95228a0d
AH
57012018-05-31 Alan Hayward <alan.hayward@arm.com>
5702
5703 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5704 null VQ.
5705
d8dab6c3
MR
57062018-05-25 Maciej W. Rozycki <macro@mips.com>
5707
5708 * gdb.arch/mips-fpregset-core.exp: New test.
5709 * gdb.arch/mips-fpregset-core.c: New test source.
5710
81e25b7c
EK
57112018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5712
5713 PR server/23198
5714 * hostio.c (require_int): Do not report overflow for integers
5715 between 0xfffffff and 0x7fffffff.
5716
7e947ad3
MR
57172018-05-22 Maciej W. Rozycki <macro@mips.com>
5718
5719 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5720 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5721 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5722 functions.
5723 (the_low_target): Wire them.
5724
1d75a658
PFC
57252018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5726
5727 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5728 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5729 mode. Call collect_register_by_name with vscr using
5730 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5731 (ppc_store_vrregset): Add and set vscr_offset variable as in
5732 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5733 vscr_offset.
5734
d078308a
PFC
57352018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5736
5737 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5738 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5739 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5740
7273b5fc
PFC
57412018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5742
5743 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5744 (ppc_store_vsxregset): Likewise.
5745 (ppc_fill_vrregset): Likewise.
5746 (ppc_store_vrregset): Likewise.
5747 (ppc_fill_evrregset): Likewise.
5748 (ppc_store_evrregset): Likewise.
5749 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5750 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5751 needed.
5752
2e077f5e
PFC
57532018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5754
5755 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5756 wordsize of the inferior. Call ppc_linux_target_wordsize.
5757
bd64614e
PFC
57582018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5759
5760 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5761 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5762 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5763 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5764 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5765 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5766 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5767 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5768 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5769 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5770 (tdesc_powerpc_e500l): Remove.
5771 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5772 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5773 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5774 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5775 linux-ppc-tdesc.h.
5776 (ppc_arch_setup): Remove target description matching code. Fill a
5777 ppc_linux_features struct and call ppc_linux_match_description
5778 with it.
5779
75d74cca
MR
57802018-05-22 Maciej W. Rozycki <macro@mips.com>
5781
5782 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5783 width of the requested register exceeds the width of the
5784 `ptrace' data type.
5785 (mips_cannot_store_register): Likewise.
5786
e4439e43
MR
57872018-05-21 Maciej W. Rozycki <macro@mips.com>
5788
5789 * linux-mips-low.c (mips_fetch_register): New function. Update
5790 preceding comment.
5791 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5792 (the_low_target): Wire `mips_fetch_register'.
5793
55271bf9
JB
57942018-05-10 Joel Brobecker <brobecker@adacore.com>
5795
5796 * lynx-i386-low.c (LYNXOS_178): New macro.
5797 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5798 the layout on LynxOS-178.
5799 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5800 handle floating point registers that are not supported by
5801 LynxOS-178.
5802
1a34f210
TT
58032018-05-10 Tom Tromey <tom@tromey.com>
5804
5805 * configure: Rebuild.
5806
190852c8
JB
58072018-05-10 Joel Brobecker <brobecker@adacore.com>
5808
5809 PR server/23158:
5810 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5811 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5812 Use it to set the expedite_regs field in the given tdesc.
5813 * x86-tdesc.h: New file.
5814 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5815 Adjust following the addition of the new expedite_regs parameter
5816 to init_target_desc.
5817 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5818 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5819 (i386_linux_read_description, amd64_linux_read_description):
5820 Adjust following the addition of the new expedite_regs parameter
5821 to init_target_desc.
5822 * lynx-i386-low.c: #include "x86-tdesc.h".
5823 (lynx_i386_arch_setup): Adjust following the addition of the new
5824 expedite_regs parameter to init_target_desc.
5825 * nto-x86-low.c: #include "x86-tdesc.h".
5826 (nto_x86_arch_setup): Adjust following the addition of the new
5827 expedite_regs parameter to init_target_desc.
5828 * win32-i386-low.c: #include "x86-tdesc.h".
5829 (i386_arch_setup): Adjust following the addition of the new
5830 expedite_regs parameter to init_target_desc.
5831
7dbac825
JB
58322018-05-10 Joel Brobecker <brobecker@adacore.com>
5833
5834 PR server/23158:
5835 * win32-low.c (win32_create_inferior): Add call to my_wait
5836 setting last_status global.
5837
906994d9
JB
58382018-05-10 Joel Brobecker <brobecker@adacore.com>
5839
5840 PR server/23158:
5841 * win32-low.c (create_process): Only call gdb_tilde_expand if
5842 inferior_cwd is not NULL.
5843
8ee22052
AB
58442018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5845
5846 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5847 registers to the cache if their values have changed.
5848 (i387_xsave_to_cache): Provide default values for x87 control
5849 registers when these features are available, but disabled.
5850 * regcache.c (supply_register_by_name_zeroed): New function.
5851 * regcache.h (supply_register_by_name_zeroed): Declare new
5852 function.
5853
aff689d3
TT
58542018-05-07 Tom Tromey <tom@tromey.com>
5855
5856 * configure: Rebuild.
5857
85e26832
TT
58582018-05-04 Tom Tromey <tom@tromey.com>
5859
5860 * configure: Rebuild.
5861
a3b60e45
JK
58622018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5863 Pedro Alves <palves@redhat.com>
5864
5865 * linux-aarch64-low.c (aarch64_stopped_data_address):
5866 Likewise.
5867
632e107b
TT
58682018-04-27 Tom Tromey <tom@tromey.com>
5869
5870 * configure: Rebuild.
5871
458412c3
TT
58722018-04-23 Tom Tromey <tom@tromey.com>
5873
5874 * configure: Rebuild.
5875
f31c089e
SM
58762018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5877
5878 * Makefile.in (depcomp): Add "..".
5879 (all_deps_files): New and use it.
5880
b319b098
AH
58812018-04-18 Alan Hayward <alan.hayward@arm.com>
5882
5883 * configure.srv (aarch64*-*-linux*): Don't include xml.
5884 (i[34567]86-*-cygwin*): Likewise.
5885 (i[34567]86-*-linux*): Likewise.
5886 (i[34567]86-*-lynxos*): Likewise.
5887 (i[34567]86-*-mingw32ce*): Likewise.
5888 (i[34567]86-*-mingw*): Likewise.
5889 (i[34567]86-*-nto*): Likewise.
5890 (tic6x-*-uclinux): Likewise.
5891 (x86_64-*-linux*): Likewise.
5892 (x86_64-*-mingw*): Likewise.
5893 (x86_64-*-cygwin*): Likewise.
5894
3b74854b
AH
58952018-04-18 Alan Hayward <alan.hayward@arm.com>
5896
5897 * tdesc.c: Remove xml parameter.
5898
e98577a9
AH
58992018-04-18 Alan Hayward <alan.hayward@arm.com>
5900
5901 * server.c (get_features_xml): Remove cast.
5902 * tdesc.c (void target_desc::accept): Fill in function.
5903 (tdesc_get_features_xml): Remove old xml creation.
5904 (print_xml_feature::visit_pre): Add xml vistor.
5905 * tdesc.h (struct target_desc): Make xmltarget mutable.
5906 (tdesc_get_features_xml): Remove declaration.
5907
d278f585
AH
59082018-04-18 Alan Hayward <alan.hayward@arm.com>
5909
5910 * tdesc.c (tdesc_architecture_name): Add new function.
5911 (tdesc_osabi_name): Likewise.
5912 (tdesc_get_features_xml): Use new functions.
5913
eee8a18d
AH
59142018-04-18 Alan Hayward <alan.hayward@arm.com>
5915
5916 * tdesc.c (tdesc_create_flags): Remove.
5917 (tdesc_add_flag): Likewise.
5918 (tdesc_named_type): Likewise.
5919 (tdesc_create_union): Likewise.
5920 (tdesc_create_struct): Likewise.
5921 (tdesc_create_vector): Likewise.
5922 (tdesc_add_bitfield): Likewise.
5923 (tdesc_add_field): Likewise.
5924 (tdesc_set_struct_size): Likewise.
5925
82ec9bc7
AH
59262018-04-18 Alan Hayward <alan.hayward@arm.com>
5927
5928 * tdesc.c (~target_desc): Remove implictly deleted items.
5929 (init_target_desc): Iterate all features.
5930 (tdesc_get_features_xml): Use vector.
5931 (tdesc_create_feature): Create feature.
5932 * tdesc.h (tdesc_feature) Remove
5933 (target_desc): Add features.
5934
ea3e7d71
AH
59352018-04-18 Alan Hayward <alan.hayward@arm.com>
5936
5937 * Makefile.in: Add common/tdesc.c
5938 * tdesc.c (init_target_desc): init all reg_defs from register
5939 vector.
5940 (tdesc_create_reg): Create tdesc_reg.
5941 * tdesc.h (tdesc_feature): Add register vector.
5942
17d08cd4
SM
59432018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5944
5945 * tdesc.h (struct target_desc) <features>: Change type to
5946 std::vector<std::string>.
5947 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5948 changes.
5949 (tdesc_get_features_xml): Likewise.
5950 (tdesc_create_feature): Likewise.
5951
5cd3e386
AH
59522018-03-26 Alan Hayward <alan.hayward@arm.com>
5953
5954 * regcache.c (find_register_by_number): Return a ref.
5955 (find_regno): Use references.
5956 (register_size): Likewise.
5957 (register_data): Likewise.
5958 * tdesc.c (target_desc::~target_desc): Remove free calls.
5959 (target_desc::operator==): Use std::vector compare.
5960 (init_target_desc): Use reference.
5961 (tdesc_create_reg): Use reg constructors.
5962 * tdesc.h (struct target_desc): Replace pointer with object.
5963
dff7492c
AH
59642018-03-23 Alan Hayward <alan.hayward@arm.com>
5965
5966 * regcache.c (find_register_by_number): Make static.
5967 (find_regno): Use find_register_by_number
5968 * regcache.h (struct reg): Remove declaration.
5969
d80e5242
AH
59702018-03-23 Alan Hayward <alan.hayward@arm.com>
5971
5972 * tdesc.c (target_desc::~target_desc): Move to here.
5973 (target_desc::operator==): Likewise.
5974 * tdesc.h (target_desc::~target_desc): Move from here.
5975 (target_desc::operator==): Likewise.
5976
f69c5afb
AA
59772018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5978
5979 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5980
ce29f843
AA
59812018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5982
5983 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5984 S390_TDESC_GS.
5985 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5986 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5987 and init_registers_s390_gs_linux64.
5988
c49bd90b
AA
59892018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5990
5991 * linux-s390-low.c (s390_fill_gs): Remove function.
5992 (s390_fill_gsbc): Remove function.
5993 (s390_regsets): Set fill functions for the guarded storage regsets
5994 to NULL.
5995
7edb9bd3
AA
59962018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5997
5998 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5999 the word size. Add comment.
6000 (s390_get_wordsize): New function.
6001 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6002 pswm with it. Instead, use s390_get_wordsize to determine the
6003 word size first and derive the correct tdesc from that directly.
6004
39be3c7e
SM
60052018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6006
6007 * Makefile.in: Include silent-rules.mk.
6008 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6009 (COMPILE): Add ECHO_CXX.
6010 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6011 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6012 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6013 (version-generated.c): Add ECHO_GEN.
6014 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6015 (IPAGENT_COMPILE): Add ECHO_CXX.
6016 (%-generated.c): Add ECHO_REGDAT.
6017
3ae9ce5d
TT
60182018-03-14 Tom Tromey <tom@tromey.com>
6019
6020 PR cli/14977:
6021 * ax.c (ax_printf): Special case for NULL.
6022
e6a58aa8
SM
60232018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6024
6025 * linux-low.c (linux_qxfer_libraries_svr4): Use
6026 xml_escape_text_append.
6027
f6e8a41e
SM
60282018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6029
6030 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6031
b9671caf
SM
60322018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6033
6034 * server.c (handle_general_set): Remove unnecessary xstrdup.
6035
e80aaf61
SM
60362018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6037
6038 * server.c (parse_debug_format_options): Adjust to
6039 delim_string_to_char_ptr_vec changes.
6040 * thread-db.c (thread_db_load_search): Adjust to
6041 dirnames_to_char_ptr_vec changes.
6042
b1223e78
MM
60432018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6044
6045 * target.h (target_enable_btrace, target_disable_btrace)
6046 (target_read_btrace, target_read_btrace_conf): Turn macro into
6047 inline function. Throw error if target method is not defined.
6048 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6049 check for btrace target method. Be prepared to handle exceptions
6050 from btrace target methods.
6051
81561546
SDJ
60522018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6053
6054 * server.c (captured_main): Change order of error message printed
6055 when the current working directory cannot be found.
6056
25e3c82c
SDJ
60572018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6058
6059 * server.c: Include "filenames.h" and "pathstuff.h".
6060 (program_name): Delete variable.
6061 (program_path): New anonymous class.
6062 (get_exec_wrapper): Use "program_path" instead of
6063 "program_name".
6064 (handle_v_run): Likewise.
6065 (captured_main): Likewise.
6066 (process_serial_event): Likewise.
6067
b4987c95
SDJ
60682018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6069
6070 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6071 (OBJS): Add "pathstuff.o".
6072 * server.c (current_directory): New global variable.
6073 (captured_main): Initialize "current_directory".
6074
f46cd62a
AH
60752018-02-26 Alan Hayward <alan.hayward@arm.com>
6076
6077 * tdesc.c: Use common/tdesc.h.
6078 * tdesc.h: Likewise.
6079
a543c5ca
AH
60802018-02-20 Alan Hayward <alan.hayward@arm.com>
6081 Simon Marchi <simon.marchi@ericsson.com>
6082
6083 * Makefile.in: Switch order of make rules.
6084
b5884fa7
AH
60852018-02-19 Alan Hayward <alan.hayward@arm.com>
6086
6087 * Makefile.in: Add common directory in build.
6088 * configure.ac: Add common reference.
6089 * configure: Regenerate.
6090
de6242d3
MM
60912018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6092
6093 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6094 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6095 * spu-low.c (spu_target_ops): Likewise.
6096 * win32-low.c (win32_target_ops): Likewise.
6097 * server.c (supported_btrace_packets): Report packets unconditionally.
6098 * target.h (target_ops) <supports_btrace>: Remove.
6099 (target_supports_btrace): Remove.
6100
9ee23a85
MM
61012018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6102
6103 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6104 (handle_btrace_disable): Change return type to void. Use exceptions
6105 to report errors.
6106 (handle_btrace_general_set): Catch exception and copy message to
6107 return message.
6108
8ce47547
TT
61092018-02-08 Tom Tromey <tom@tromey.com>
6110
6111 * linux-low.c (install_software_single_step_breakpoints): Use
6112 make_scoped_restore.
6113 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6114 (do_restore_current_thread_cleanup): Remove.
6115 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6116 declare.
6117
45dd3607
TT
61182018-02-08 Tom Tromey <tom@tromey.com>
6119
6120 * mem-break.c (set_raw_breakpoint_at): Use
6121 gdb::unique_xmalloc_ptr.
6122
e671cd59
PA
61232018-01-30 Pedro Alves <palves@redhat.com>
6124
6125 PR gdb/13211
6126 * target.c (target_terminal::terminal_state): Rename to ...
6127 (target_terminal::m_terminal_state): ... this.
6128
a0aad537
JC
61292018-01-19 James Clarke <jrtc27@jrtc27.com>
6130
6131 * linux-low.c (handle_extended_wait): Surround call to
6132 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6133
4d9b86e1
SM
61342018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6135
6136 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6137 linux_ptrace_attach_fail_reason_string now returning an
6138 std::string.
6139 (linux_attach): Likewise.
6140 * thread-db.c (attach_thread): Likewise.
6141
f517c180
EA
61422018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6143
6144 PR gdb/21559
6145 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6146 checking for fs_base/gs_base fields in struct user_regs_struct.
6147 * configure: Regenerate.
6148
9a70f35c
YQ
61492018-01-16 Yao Qi <yao.qi@linaro.org>
6150
6151 PR gdb/18749
6152 * linux-low.c (fetch_register): Call supply_register instead of
6153 error.
6154
605fd3c6
YQ
61552018-01-08 Yao Qi <yao.qi@linaro.org>
6156 Simon Marchi <simon.marchi@ericsson.com>
6157
6158 * Makefile.in (OBS): Remove selftest.o.
6159 * configure.ac: Set srv_selftest_objs if $development is true.
6160 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6161 * configure: Re-generated.
6162 * server.c (captured_main): Wrap variable selftest_filter with
6163 GDB_SELF_TEST.
6164
2cc05030
SM
61652018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6166
6167 * server.c (parse_debug_format_options): Return std::string.
6168 (handle_monitor_command, captured_main): Adjust.
6169
e379cee6
PA
61702018-01-05 Pedro Alves <palves@redhat.com>
6171
6172 PR gdb/18653
6173 * server.c (captured_main): Pass quiet=false to
6174 save_original_signals_state.
6175
82e1e79a
JB
61762018-01-01 Joel Brobecker <brobecker@adacore.com>
6177
6178 * gdbreplay.c (gdbreplay_version): Update copyright year in
6179 version message.
6180 * server.c (gdbserver_version): Likewise.
6181
8e481c3b
TT
61822017-12-08 Tom Tromey <tom@tromey.com>
6183
6184 * ax.c (ax_printf): Update.
6185
a8806230
YQ
61862017-12-07 Yao Qi <yao.qi@linaro.org>
6187
6188 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6189 aarch64_linux_read_description.
6190 * linux-amd64-ipa.c (idx2mask): New array.
6191 (get_ipa_tdesc): Move idx2mask out.
6192 (initialize_low_tracepoint): Initialize target descriptions.
6193 * linux-i386-ipa.c (idx2mask): New array.
6194 (get_ipa_tdesc): Move idx2mask out.
6195 (initialize_low_tracepoint): Initialize target descriptions.
6196
d4a0e8b5
SM
61972017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6198
6199 * tdesc.c (struct tdesc_type): Change return type.
6200 (tdesc_add_flag): Change parameter type.
6201 (tdesc_add_bitfield): Likewise.
6202 (tdesc_add_field): Likewise.
6203 (tdesc_set_struct_size): Likewise.
6204
798a7429
SM
62052017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6206
6207 * regcache.c (registers_to_string): Remove unused variable.
6208
c0e15c9b
SM
62092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6210
6211 * inferiors.c (for_each_inferior_with_data): Remove.
6212 * inferiors.h (for_each_inferior_with_data): Remove.
6213 * server.c (handle_qxfer_threads_worker): Change parameter type.
6214 (handle_qxfer_threads_proper): Use for_each_thread.
6215
f0045347
SM
62162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6217
6218 * inferiors.c (for_each_inferior): Remove.
6219 (clear_inferiors): Use for_each_thread.
6220 * inferiors.h (for_each_inferior): Remove.
6221 * linux-low.c (linux_wait_for_event_filtered): Use
6222 for_each_thread.
6223 (linux_stabilize_threads): Likewise.
6224 * regcache.c (regcache_release): Likewise.
6225 * server.c (gdb_wants_all_threads_stopped): Likewise.
6226 (clear_pending_status_callback): Remove.
6227 (handle_status): Use for_each_thread.
6228 (captured_main): Likewise.
6229 * win32-low.c (child_init_thread_list): Likewise.
6230 (win32_clear_inferiors): Likewise.
6231 (fake_breakpoint_event): Likewise.
6232
9521758b
SM
62332017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6234
6235 * inferiors.h (find_inferior): Remove.
6236 * inferiors.c (find_inferior): Remove.
6237
8f86d7aa
SM
62382017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6239
6240 * linux-low.c (resume_status_pending_p): Update comment.
6241 (need_step_over_p): Update comment.
6242
e2b44075
SM
62432017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6244
6245 * linux-low.c (proceed_one_lwp): Return void, change parameter
6246 type.
6247 (unsuspend_and_proceed_one_lwp): Likewise.
6248 (proceed_all_lwps): Use for_each_thread.
6249 (unstop_all_lwps): Likewise.
6250
c80825ff
SM
62512017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6252
6253 * linux-low.c (linux_resume_one_thread): Return void, take
6254 parameter directly.
6255 (linux_resume): Use for_each_thread.
6256
df3e4dbe
SM
62572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6258
6259 * linux-low.c (send_sigstop_callback): Return void, change
6260 parameter type. Rename to...
6261 (send_sigstop): ... this.
6262 (suspend_and_send_sigstop_callback): Return void, change parameter
6263 type. Rename to...
6264 (suspend_and_send_sigstop): ... this.
6265 (stop_all_lwps): Use for_each_thread.
6266
5a6b0a41
SM
62672017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6268
6269 * linux-low.c (lwp_running): Return bool, remove unused
6270 argument.
6271 (linux_stabilize_threads): Use find_thread.
6272
39a64da5
SM
62732017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6274
6275 * linux-low.c (select_singlestep_lwp_callback): Remove.
6276 (count_events_callback): Remove.
6277 (select_event_lwp_callback): Remove.
6278 (select_event_lwp): Use find_thread/for_each_thread.
6279
a1385b7b
SM
62802017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * linux-low.c (not_stopped_callback): Return bool, take filter
6283 argument directly.
6284 (linux_wait_for_event_filtered): Use find_thread.
6285 (linux_wait_1): Likewise.
6286
454296a2
SM
62872017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6288
6289 * linux-low.c (same_lwp): Remove.
6290 (find_lwp_pid): Use find_thread.
6291
6b2a85da
SM
62922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6293
6294 * linux-low.c (delete_lwp_callback): Remove.
6295 (linux_mourn): Use for_each_thread.
6296
798a38e8
SM
62972017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6298
6299 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6300 args parameter, don't check for pid.
6301 (linux_detach): Use for_each_thread.
6302
e4eb0dec
SM
63032017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6304
6305 * linux-low.c (struct counter): Remove.
6306 (second_thread_of_pid_p): Remove.
6307 (last_thread_of_process_p): Use find_thread.
6308
83e1b6c1
SM
63092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6310
6311 * inferiors.c (find_inferior_in_random): Remove.
6312 * inferiors.h (find_inferior_in_random): Remove.
6313 * linux-low.c (status_pending_p_callback): Return bool, accept
6314 parameter ptid directly.
6315 (linux_wait_for_event_filtered): Use find_thread_in_random.
6316 (linux_wait_1): Likewise.
6317
8dc7b443
SM
63182017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6319
6320 * inferiors.c (find_inferior_id): Remove.
6321 (find_thread_ptid): Move implemention from find_inferior_id to
6322 here.
6323 * inferiors.h (find_inferior_id): Remove.
6324 * server.c (handle_status): Use find_thread_ptid.
6325 (process_serial_event): Likewise.
6326 * thread-db.c (find_one_thread): Likewise.
6327 (thread_db_thread_handle): Likewise.
6328 * win32-low.c (thread_rec): Likewise.
6329 (child_delete_thread): Likewise.
6330 (win32_thread_alive): Likewise.
6331 (get_child_debug_event): Likewise.
6332
da25033c
SM
63332017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6334
6335 * linux-mips-low.c (update_watch_registers_callback): Return
6336 void, remove pid_p parameter, don't check for pid.
6337 (mips_insert_point, mips_remove_point): Use for_each_thread.
6338
c91bb56b
SM
63392017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6340
6341 * lynx.low (lynx_delete_thread_callback): Remove.
6342 (lynx_mourn): Use for_each_thread.
6343
634a3254
SM
63442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6345
6346 * regcache.c (regcache_invalidate_one): Remove.
6347 (regcache_invalidate_pid): use for_each_thread.
6348
41272101
TT
63492017-11-26 Tom Tromey <tom@tromey.com>
6350
6351 * linux-low.c (linux_create_inferior): Update.
6352
f5291a6f
UW
63532017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6354
6355 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6356
6654d750
AH
63572017-11-24 Alan Hayward <alan.hayward@arm.com>
6358
6359 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6360 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6361 * linux-aarch64-tdesc-selftest.c: New file.
6362 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6363
63642017-11-24 Alan Hayward <alan.hayward@arm.com>
6365
6366 * configure.srv: Add new file.
6367 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6368 * linux-aarch64-tdesc-selftest.c: New file.
6369 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6370
49bdb7ee
AH
63712017-11-24 Alan Hayward <alan.hayward@arm.com>
6372
6373 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6374 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6375 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6376
d6d7ce56
AH
63772017-11-24 Alan Hayward <alan.hayward@arm.com>
6378
6379 * configure.srv: Add new files.
6380 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6381 aarch64_linux_read_description.
6382 * linux-aarch64-low.c (aarch64_linux_read_description):
6383 Merge with aarch64_arch_setup.
6384 (aarch64_arch_setup): Call aarch64_linux_read_description.
6385 * linux-aarch64-tdesc.c: New file.
6386 * linux-aarch64-tdesc.h: New file.
6387
506fe5f4
YQ
63882017-11-24 Yao Qi <yao.qi@linaro.org>
6389
6390 * configure.srv: Set $srv_regobj for tic6x-linux.
6391 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6392 (tic6x_read_description): Move some code to tic6x_arch_setup.
6393 (tic6x_tdesc_test): New function.
6394 (initialize_low_arch): Call selftests::register_test.
6395
29f9a567
YQ
63962017-11-22 Yao Qi <yao.qi@linaro.org>
6397
6398 * remote-utils.c (prepare_resume_reply): Use memcpy.
6399
578290ec
SM
64002017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6401
6402 * linux-low.c (kill_one_lwp_callback): Return void, take
6403 argument directly, don't filter on pid.
6404 (linux_kill): Use for_each_thread.
6405
eca55aec
SM
64062017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6407
6408 * linux-low.c (need_step_over_p): Return bool, remove dummy
6409 argument.
6410 (linux_resume, proceed_all_lwps): Use find_thread.
6411
25c28b4d
SM
64122017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6413
6414 * linux-low.c (resume_status_pending_p): Return bool, remove
6415 flag_p argument.
6416 (linux_resume): Use find_thread.
6417
5fdda392
SM
64182017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6419
6420 * linux-low.c (struct thread_resume_array): Remove.
6421 (linux_set_resume_request): Return void, take arguments
6422 directly.
6423 (linux_resume): Use for_each_thread.
6424
fcb056a5
SM
64252017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6426
6427 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6428 return bool, remove data argument.
6429 (linux_stabilize_threads): Use find_thread.
6430
139720c5
SM
64312017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6432
6433 * linux-low.c (unsuspend_one_lwp): Remove.
6434 (unsuspend_all_lwps): Use for_each_thread, inline code from
6435 unsuspend_one_lwp.
6436
6d1e5673
SM
64372017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6438
6439 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6440 * linux-low.c (struct iterate_over_lwps_args): Remove.
6441 (iterate_over_lwps_filter): Remove.
6442 (iterate_over_lwps): Use find_thread.
6443
bbf550d5
SM
64442017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6445
6446 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6447 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6448 code from reset_lwp_ptrace_options_callback.
6449
00192f77
SM
64502017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6451
6452 * linux-arm-low.c (struct update_registers_data): Remove.
6453 (update_registers_callback): Return void, take arguments
6454 directly, don't check thread's pid.
6455 (arm_insert_point, arm_remove_point): Use for_each_thread.
6456
2bee2b6c
SM
64572017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6458
6459 * win32-low.c (continue_one_thread): Return void, take argument
6460 directly.
6461 (child_continue): Use for_each_thread.
6462
0b360f19
SM
64632017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6464
6465 * win32-i386-low.c (update_debug_registers_callback): Rename
6466 to ...
6467 (update_debug_registers): ... this, return void, remove pid_p arg.
6468 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6469
f27866ba
SM
64702017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6471
6472 * inferiors.h (struct process_info): Add constructor, initialize
6473 fields..
6474 <syscalls_to_catch>: Change type to std::vector<int>.
6475 * inferiors.c (add_process): Allocate process_info with new.
6476 (remove_process): Free process_info with delete.
6477 * linux-low.c (handle_extended_wait): Adjust.
6478 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6479 * server.c (handle_general_set): Adjust.
6480
e849ea89
PA
64812017-11-16 Pedro Alves <palves@redhat.com>
6482
6483 * remote-utils.c (remote_close): Block SIGIO signals instead of
6484 uninstalling the SIGIO handler.
6485
1d0aa65c
AH
64862017-11-16 Alan Hayward <alan.hayward@arm.com>
6487
6488 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6489
3491a34c
YQ
64902017-11-16 Yao Qi <yao.qi@linaro.org>
6491
6492 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6493 (tic6x_store_gregset): Likewise.
6494 (tic6x_usrregs_info): Move it up.
6495
a602f924
AH
64962017-11-15 Alan Hayward <alan.hayward@arm.com>
6497
6498 * Makefile.in: Update arch rules.
6499 * configure.srv: Explicitly mark arch/ files.
6500
5616b6c3
AS
65012017-11-13 Andreas Schwab <schwab@suse.de>
6502
6503 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6504 function.
6505 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6506
d1928160
PA
65072017-11-06 Pedro Alves <palves@redhat.com>
6508
6509 * config.in, configure: Regenerate.
6510
bac608e7
SM
65112017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6512
6513 * target.c (struct thread_search): Remove.
6514 (thread_search_callback): Remove.
6515 (prepare_to_access_memory): Use for_each_thread instead of
6516 find_inferior. Inline code from thread_search_callback.
6517
eaddb425
SM
65182017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6519
6520 * server.c (struct visit_actioned_threads_data): Remove.
6521 (visit_actioned_threads): Change prototype to take arguments
6522 directly.
6523 (resume): Use find_thread instead of find_inferior.
6524
99078d34
SM
65252017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6526
6527 * server.c (queue_stop_reply_callback): Change prototype, return
6528 void.
6529 (find_status_pending_thread_callback): Remove.
6530 (handle_status): Replace find_inferior with find_thread and
6531 for_each_thread.
6532
cc628f3d
AH
65332017-10-25 Alan Hayward <alan.hayward@arm.com>
6534
6535 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6536 with REGNO.
6537 (aarch64_store_gregset): Likewise.
6538 (aarch64_fill_fpregset): Likewise.
6539 (aarch64_store_fpregset): Likewise.
6540
4d3bb80e
SM
65412017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6542
6543 * gdbthread.h (find_thread, for_each_thread): New functions.
6544 * inferiors.c (thread_of_pid): Remove.
6545 (find_any_thread_of_pid): Use find_thread.
6546 * linux-low.c (num_lwps): Use for_each_thread.
6547
7a7cdfa0
YQ
65482017-10-17 Yao Qi <yao.qi@linaro.org>
6549
6550 * Makefile.in: Remove one rule.
6551 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6552
e675d170
YQ
65532017-10-17 Yao Qi <yao.qi@linaro.org>
6554
6555 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6556 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6557
7eb4e0f9
YQ
65582017-10-17 Yao Qi <yao.qi@linaro.org>
6559
6560 * configure.srv: Rename arm.o with arch/arm.o.
6561
60d6cfc9
YQ
65622017-10-17 Yao Qi <yao.qi@linaro.org>
6563
6564 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6565 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6566 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6567 (arch-i386.o, arch-amd64.o): Remove rules.
6568 (arch/%.o): New rule.
6569 Update POSTCOMPILE and COMPILE.pre.
6570 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6571 * configure: Re-generated.
6572 * configure.srv: Replace arch-i386.o with arch/i386.o.
6573 Replace arch-amd64.o with arch/amd64.o.
6574
5bfda255
YQ
65752017-10-16 Yao Qi <yao.qi@linaro.org>
6576
6577 * configure: Regenerated.
6578
9c80ecd6
SM
65792017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6580
6581 * inferiors.h: (struct inferior_list): Remove.
6582 (struct inferior_list_entry); Remove.
6583 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6584 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6585 get_first_inferior): Remove.
6586 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6587 find_inferior_id, find_inferior_in_random): Change signature.
6588 * inferiors.c (all_threads): Change type to
6589 std::list<thread_info *>.
6590 (get_thread): Remove macro.
6591 (find_inferior, find_inferior_id): Change signature, implement
6592 using find_thread.
6593 (find_inferior_in_random): Change signature, implement using
6594 find_thread_in_random.
6595 (for_each_inferior, for_each_inferior_with_data): Change
6596 signature, implement using for_each_thread.
6597 (add_inferior_to_list, remove_inferior): Remove.
6598 (add_thread, get_first_thread, thread_of_pid,
6599 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6600 (get_first_inferior, one_inferior_p, clear_inferior_list):
6601 Remove.
6602 (clear_inferiors, get_thread_process): Update.
6603 * gdbthread.h: Include <list>.
6604 (struct thread_info) <entry>: Remove field.
6605 <id>: New field.
6606 (all_threads): Change type to std::list<thread_info *>.
6607 (get_first_inferior): Add doc.
6608 (find_thread, for_each_thread, find_thread_in_random): New
6609 functions.
6610 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6611 * linux-arm-low.c (update_registers_callback): Update.
6612 * linux-low.c (second_thread_of_pid_p): Update.
6613 (kill_one_lwp_callback, linux_detach_lwp_callback,
6614 delete_lwp_callback, status_pending_p_callback, same_lwp,
6615 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6616 iterate_over_lwps, not_stopped_callback,
6617 resume_stopped_resumed_lwps, count_events_callback,
6618 select_singlestep_lwp_callback, select_event_lwp_callback,
6619 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6620 suspend_and_send_sigstop_callback, wait_for_sigstop,
6621 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6622 lwp_running, linux_set_resume_request, resume_status_pending_p,
6623 need_step_over_p, start_step_over, linux_resume_one_thread,
6624 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6625 reset_lwp_ptrace_options_callback): Update.
6626 * linux-mips-low.c (update_watch_registers_callback): Update.
6627 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6628 Update.
6629 (free_register_cache_thread_one): Remove.
6630 (regcache_release): Update.
6631 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6632 handle_qxfer_threads_worker): Update.
6633 (handle_query): Update, use list iterator.
6634 (visit_actioned_threads, handle_pending_status,
6635 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6636 clear_pending_status_callback, set_pending_status_callback,
6637 find_status_pending_thread_callback, handle_status,
6638 process_serial_event): Update.
6639 * target.c (thread_search_callback): Update.
6640 * thread-db.c (thread_db_get_tls_address): Update.
6641 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6642 Update.
6643 * win32-i386-low.c (update_debug_registers_callback): Update.
6644 * win32-low.c (delete_thread_info, child_delete_thread,
6645 continue_one_thread, suspend_one_thread,
6646 get_child_debug_event): Adjust.
6647
9179355e
SM
66482017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6649
6650 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6651 * inferiors.h: Include <list>.
6652 (struct process_info) <entry>: Remove field.
6653 <pid>: New field.
6654 (pid_of): Change macro to function.
6655 (ptid_of, lwpid_of): Remove macro.
6656 (all_processes): Change type to std::list<process_info *>.
6657 (ALL_PROCESSES): Remove macro.
6658 (for_each_process, find_process): New function.
6659 * inferiors.c (all_processes): Change type to
6660 std::list<process_info *>.
6661 (find_thread_process): Adjust.
6662 (add_process): Likewise.
6663 (remove_process): Likewise.
6664 (find_process_pid): Likewise.
6665 (get_first_process): Likewise.
6666 (started_inferior_callback): Remove.
6667 (have_started_inferiors_p): Adjust.
6668 (attached_inferior_callback): Remove.
6669 (have_attached_inferiors_p): Adjust.
6670 * linux-low.c (check_zombie_leaders): Likewise.
6671 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6672 (x86_linux_update_xmltarget): Adjust.
6673 * server.c (handle_query): Likewise.
6674 (gdb_reattached_process): Remove.
6675 (handle_status): Adjust.
6676 (kill_inferior_callback): Likewise.
6677 (detach_or_kill_inferior): Remove.
6678 (print_started_pid): Likewise.
6679 (print_attached_pid): Likewise.
6680 (detach_or_kill_for_exit): Update.
6681 (process_serial_event): Likewise.
6682 * linux-arm-low.c (arm_new_fork): Likewise.
6683
c9cb8905
SM
66842017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6685
6686 * dll.h: Include <list>.
6687 (struct dll_info): Add constructor.
6688 <entry>: Remove field.
6689 (all_dlls): Change type to std::list<dll_info>.
6690 * dll.c: Include <algorithm>.
6691 (get_dll): Remove macro.
6692 (all_dlls): Change type to std::list<dll_info *>.
6693 (free_one_dll): Remove.
6694 (match_dll): Likewise.
6695 (loaded_dll): Adjust.
6696 (unloaded_dll): Adjust to all_dlls type change, use
6697 std::find_if. Inline code from match_dll.
6698 (clear_dlls): Adjust to all_dlls type change.
6699 * server.c (emit_dll_description): Remove.
6700 (handle_qxfer_libraries): Adjust to all_dlls type change,
6701 integrate emit_dll_description's functionality.
6702
04ec7890
SM
67032017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6704
6705 * linux-low.h (struct linux_target_ops) <delete_process>: New
6706 field.
6707 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6708 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6709 (struct linux_target_ops): Add delete_process callback.
6710 * linux-arm-low.c (arm_delete_process): New.
6711 (struct linux_target_ops): Add delete_process callback.
6712 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6713 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6714 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6715 * linux-mips-low.c (mips_linux_delete_process): New.
6716 (struct linux_target_ops): Add delete_process callback.
6717 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6718 * linux-s390-low.c (struct linux_target_ops): Likewise.
6719 * linux-sh-low.c (struct linux_target_ops): Likewise.
6720 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6721 * linux-tile-low.c (struct linux_target_ops): Likewise.
6722 * linux-x86-low.c (x86_linux_delete_process): New.
6723 (struct linux_target_ops): Add delete_process callback.
6724 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6725
466eecee
SM
67262017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6727
6728 * linux-aarch64-low.c (the_low_target): Add thread delete
6729 callback.
6730 * linux-arm-low.c (arm_delete_thread): New function.
6731 (the_low_target): Add thread delete callback.
6732 * linux-bfin-low.c (the_low_target): Likewise.
6733 * linux-crisv32-low.c (the_low_target): Likewise.
6734 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6735 set.
6736 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6737 field.
6738 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6739 * linux-mips-low.c (mips_linux_delete_thread): New function.
6740 (the_low_target): Add thread delete callback.
6741 * linux-ppc-low.c (the_low_target): Likewise.
6742 * linux-s390-low.c (the_low_target): Likewise.
6743 * linux-sh-low.c (the_low_target): Likewise.
6744 * linux-tic6x-low.c (the_low_target): Likewise.
6745 * linux-tile-low.c (the_low_target): Likewise.
6746 * linux-x86-low.c (the_low_target): Likewise.
6747 * linux-xtensa-low.c (the_low_target): Likewise.
6748
b79f7801
YZ
67492017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6750
6751 * win32-low.c: Include "common-inferior.h".
6752
bc3b087d
SDJ
67532017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6754
6755 * inferiors.c (set_inferior_cwd): New function.
6756 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6757 (handle_query): Inform that QSetWorkingDir is supported.
6758 * win32-low.c (create_process): Pass the inferior's cwd to
6759 CreateProcess.
6760
d092c5a2
SDJ
67612017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6762
6763 * inferiors.c (current_inferior_cwd): New global variable.
6764 (get_inferior_cwd): New function.
6765 * inferiors.h (struct process_info) <cwd>: New field.
6766
7da0a886
SDJ
67672017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6768
6769 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6770 (OBS): Add gdb_tilde_expand.o.
6771
289a6840
SM
67722017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6773
6774 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6775 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6776
256642e8
PA
67772017-09-29 Pedro Alves <palves@redhat.com>
6778
6779 * ax.c (gdb_parse_agent_expr): Constify.
6780 * ax.h (gdb_parse_agent_expr): Constify.
6781 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6782 Constify.
6783 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6784 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6785 * remote-utils.h (read_ptid): Constify.
6786 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6787 (process_point_options, process_serial_event): Constify.
6788 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6789 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6790 (cmd_qtbuffer): Constify.
6791
5b9ca4d4
PA
67922017-09-29 Pedro Alves <palves@redhat.com>
6793
6794 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6795 fails.
6796
94c207e0
PA
67972017-09-29 Pedro Alves <palves@redhat.com>
6798
6799 * linux-low.c (handle_extended_wait): Pass parent thread instead
6800 of process to thread_db_notice_clone.
6801 * linux-low.h (thread_db_notice_clone): Replace parent process
6802 parameter with parent thread parameter.
6803 * thread-db.c (find_one_thread): Add comment.
6804 (thread_db_notice_clone): Replace parent process parameter with
6805 parent thread parameter. Temporarily switch to the parent thread.
6806
75352e28
SDJ
68072017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6808
6809 * gdbthread.h: Include "common-gdbthread.h".
6810 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6811 "if" when validating the ptid.
6812 * remote-utils.c: Include "gdbthread.h".
6813 (prepare_resume_reply): Use "switch_to_thread".
6814 * target.c (done_accessing_memory): Likewise.
6815
ad339634
AA
68162017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6817
6818 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6819 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6820 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6821 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6822 s390x-gs-linux64-ipa.o to ipa_obj.
6823 * linux-s390-low.c (HWCAP_S390_GS): New define.
6824 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6825 New functions.
6826 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6827 (s390_arch_setup): Check for guarded-storage support and choose
6828 appropriate tdesc.
6829 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6830 init_registers_s390x_gs_linux64.
6831 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6832 enum value.
6833 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6834 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6835
cc4d742f
SM
68362017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6837
6838 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6839
f6327dcb
KB
68402017-09-21 Kevin Buettner <kevinb@redhat.com>
6841
6842 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6843 (thread_db_thread_handle): Declare.
6844 * linux-low.c (linux_target_ops): Initialize thread_handle.
6845 * server.c (handle_qxfer_threads_worker): Add support for
6846 "handle" attribute.
6847 * target.h (struct target_ops): Add new function pointer,
6848 thread_handle.
6849 (target_thread_handle): Define.
6850 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6851 field in lwp.
6852 (thread_db_thread_handle): New function.
6853
86299109
KB
68542017-09-21 Kevin Buettner <kevinb@redhat.com>
6855
6856 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6857 * linux-low.h (thread_db_notice_clone): Declare.
6858 * thread-db.c (thread_db_notice_clone): New function.
6859
f557a88a
PA
68602017-09-21 Pedro Alves <palves@redhat.com>
6861
6862 * server.c (gdb_read_memory, handle_status, process_serial_event)
6863 (handle_serial_event, handle_target_event): Adjust to
6864 set_desired_thread prototype change.
6865 * target.c (set_desired_thread): Remove 'use_general' parameter
6866 and adjust.
6867 * target.h (set_desired_thread): Remove 'use_general' parameter.
6868
223ffa71
TT
68692017-09-20 Tom Tromey <tom@tromey.com>
6870
6871 * target.c (target_terminal::terminal_state): Define.
6872 (target_terminal::init): Rename from target_terminal_init.
6873 (target_terminal::inferior): Rename from
6874 target_terminal_inferior.
6875 (target_terminal::ours): Rename from target_terminal_ours.
6876 (target_terminal::ours_for_output, target_terminal::info): New.
6877
04fd3ba9
SM
68782017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6879
6880 * server.c (accumulate_file_name_length): Remove.
6881 (emit_dll_description): Adjust to std::string change.
6882 (handle_qxfer_libraries): Use std::string to hold document.
6883
5e187554
SM
68842017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6885
6886 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6887 return type of xml_escape_text.
6888 * server.c (emit_dll_description): Likewise.
6889
1526853e
SM
68902017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6891
6892 * server.c (captured_main): Accept argument for --selftest.
6893 Update run_tests call.
6894 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6895 when registering selftests.
6896
c4dfafab
SDJ
68972017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6898
6899 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6900 instead of "VEC" for "target_desc.reg_defs".
6901 (regcache_cpy): Likewise.
6902 (registers_to_string): Likewise.
6903 (registers_from_string): Likewise.
6904 (find_regno): Likewise.
6905 (supply_regblock): Likewise.
6906 (regcache_raw_read_unsigned): Likewise.
6907 * tdesc.c (init_target_desc): Likewise.
6908 (tdesc_create_reg): Likewise.
6909 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6910 (struct target_desc) <reg_defs>: Convert to "std::vector".
6911 (target_desc): Do not initialize "reg_defs".
6912 (~target_desc): Update code to use "std::vector" instead of "VEC"
6913 for "target_desc.reg_defs".
6914 (operator==): Likewise.
6915
124aceb4
SM
69162017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6917
6918 * inferiors.h (thread_to_gdb_id): Remove.
6919 * inferiors.c (thread_to_gdb_id): Remove.
6920 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6921 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6922 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6923 Likewise.
6924 * nto-low.c (nto_fetch_registers, nto_store_registers,
6925 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6926
96cde54f
SM
69272017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6928
6929 * inferiors.h (gdb_id_to_thread_id): Remove.
6930 * inferiors.c (gdb_id_to_thread_id): Remove.
6931 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6932 removal. Move pid declaration closer to where it's used.
6933
e8ca139e
SM
69342017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6935
6936 * server.c (handle_detach): New function.
6937 (process_serial_event): Move code out, call handle_detach.
6938
f8a4e119
SM
69392017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6940
6941 * server.c (require_running): Rename to ...
6942 (require_running_or_return): ... this ...
6943 (require_running_or_break): ... and this.
6944 (handle_query, process_serial_event): Adjust.
6945
0eb0a407
SM
69462017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6947
6948 * linux-low.c (linux_set_resume_request): Remove unused
6949 variables.
6950
785922a5
SM
69512017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6952
6953 * server.c (first_thread_of): Remove.
6954 (process_serial_event): Replace usage of first_thread_of with
6955 find_any_thread_of_pid.
6956 * tracepoint.c (same_process_p): Remove.
6957 (gdb_agent_about_to_close): Replace usage of same_process_p with
6958 find_any_thread_of_pid.
6959 * linux-x86-low.c (same_process_callback): Remove.
6960 (x86_arch_setup_process_callback): Replace usage of
6961 same_process_callback with find_any_thread_of_pid.
6962 * thread-db.c (any_thread_of): Remove.
6963 (switch_to_process): Replace usage of any_thread_of with
6964 find_any_thread_of_pid.
6965 * inferiors.c (thread_pid_matches_callback): Remove.
6966 (find_thread_process): Adjust to use find_any_thread_of_pid.
6967
a059f00c
SDJ
69682017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6969
6970 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6971 with "!VEC_empty".
a059f00c 6972
cc397f3a
SDJ
69732017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6974
6975 * linux-low.c (handle_extended_wait): Use
6976 "allocate_target_description" instead of "XNEW".
6977 * linux-x86-low.c (initialize_low_arch): Likewise.
6978
22916b07
YQ
69792017-09-05 Yao Qi <yao.qi@linaro.org>
6980
6981 * configure.srv (srv_i386_regobj): Remove.
6982 (srv_amd64_regobj): Remove.
6983 (srv_regobj): Set it to "" for x86 non-linux targets.
6984 * linux-x86-tdesc.c (i386_linux_read_description):
6985 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6986 (init_registers_i386): Remove the declaration.
6987 (tdesc_i386): Remove the declaration.
6988 (lynx_i386_arch_setup): Call i386_create_target_description.
6989 * nto-x86-low.c: Likewise.
6990 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6991 [!__x86_64__]: include arch/i386.h.
6992 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6993
38602d55
YQ
69942017-09-05 Yao Qi <yao.qi@linaro.org>
6995
6996 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6997 i386/amd64-XXX-linux from it.
6998
44b886ff
YQ
69992017-09-05 Yao Qi <yao.qi@linaro.org>
7000
7001 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7002 false.
7003 (ipa_amd64_linux_regobj): Remove.
7004 (ipa_x32_linux_regobj): Remove.
7005
b4570e4b
YQ
70062017-09-05 Yao Qi <yao.qi@linaro.org>
7007
7008 * Makefile.in (arch-amd64.o): New rule.
7009 * configure.srv: Append arch-amd64.o.
7010 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7011 (get_ipa_tdesc): Call amd64_linux_read_description.
7012 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7013 and init_registers_amd64_XXX.
7014 * linux-x86-low.c (x86_linux_read_description): Call
7015 amd64_linux_read_description.
7016 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7017 (initialize_low_arch): Don't call init_registers_x32_XXX and
7018 init_registers_amd64_XXX.
7019 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7020 and tdesc_amd64_XXX.
7021 [__x86_64__] (amd64_tdesc_test): New function.
7022 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7023 and init_registers_amd64_XXX.
7024 * linux-x86-tdesc.c: Include arch/amd64.h.
7025 (xcr0_to_tdesc_idx): New function.
7026 (i386_linux_read_description): New function.
7027 (amd64_get_ipa_tdesc_idx): New function.
7028 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7029 (amd64_get_ipa_tdesc): Declare.
7030
d1f28ea2
YQ
70312017-09-05 Yao Qi <yao.qi@linaro.org>
7032
7033 * configure.srv (srv_i386_linux_xmlfiles): Remove
7034 i386/i386-XXX-linux.xml from it.
7035
25a93583
YQ
70362017-09-05 Yao Qi <yao.qi@linaro.org>
7037
7038 * configure.srv: Set srv_i386_linux_regobj empty if $development
7039 is false.
7040 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7041 initialize_low_tdesc.
7042 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7043 with #if initialize_low_tdesc.
7044 * linux-x86-tdesc-selftest.c: New file.
7045 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7046
5f035c07
YQ
70472017-09-05 Yao Qi <yao.qi@linaro.org>
7048
7049 * Makefile.in (arch-i386.o): New rule.
7050 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7051 (x86_64-*-linux*): Likewise.
7052 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7053 include arch/i386.h.
7054 (i386_linux_read_description): Remove code and call
7055 i386_create_target_description.
7056 * tdesc.c (allocate_target_description): New function.
7057 * tdesc.h (set_tdesc_architecture): Remove declaration.
7058 (set_tdesc_osabi): Likewise.
7059
0abe8a89
YQ
70602017-09-05 Yao Qi <yao.qi@linaro.org>
7061
7062 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7063 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7064 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7065 .xmltarget.
7066 * server.c (get_features_xml): Call tdesc_get_features_xml.
7067 * tdesc.c (set_tdesc_architecture): New function.
7068 (set_tdesc_osabi): New function.
7069 (tdesc_get_features_xml): New function.
7070 (tdesc_create_feature): Add an argument.
7071 * tdesc.h (struct target_desc) <features>: New field.
7072 <arch, osabi>: New field.
7073 (~target_desc): xfree features, arch, and osabi.
7074 (target_desc::oerator==): Don't compare .xmltarget.
7075 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7076 (set_tdesc_osabi): Likewise.
7077 (tdesc_get_features_xml): Likewise.
7078
0a188386
YQ
70792017-09-05 Yao Qi <yao.qi@linaro.org>
7080
7081 * linux-x86-tdesc.c: Include selftest.h.
7082 (i386_tdesc_test): New function.
7083 (initialize_low_tdesc): Call selftests::register_test.
7084 * tdesc.h: Include regdef.h.
7085 (target_desc): Override operator == and !=.
7086
f49ff000
YQ
70872017-09-05 Yao Qi <yao.qi@linaro.org>
7088
7089 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7090 (ipa_obj): Likewise.
7091 * linux-i386-ipa.c: Include common/x86-xstate.h
7092 (get_ipa_tdesc): Call i386_linux_read_description.
7093 (initialize_low_tracepoint): Don't call init_registers_XXX
7094 functions, call initialize_low_tdesc instead.
7095 * linux-x86-low.c (x86_linux_read_description): Call
7096 i386_linux_read_description.
7097 (initialize_low_arch): Don't call init_registers_i386_XXX
7098 functions, call initialize_low_tdesc.
7099 * linux-x86-tdesc.c: New file.
7100 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7101 (i386_get_ipa_tdesc_idx): Declare.
7102 (i386_get_ipa_tdesc): Declare.
7103 (initialize_low_tdesc): Declare.
7104
2b68ef2f
YQ
71052017-09-05 Yao Qi <yao.qi@linaro.org>
7106
7107 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7108 instead of 0.
7109
f7000548
YQ
71102017-09-05 Yao Qi <yao.qi@linaro.org>
7111
7112 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7113 * regcache.c (get_thread_regcache): Use VEC_length.
7114 (init_register_cache): Likewise.
7115 (regcache_cpy): Likewise.
7116 (registers_to_string): Iterate reg_defs via VEC_iterate.
7117 (find_regno): Likewise.
7118 (find_register_by_number): Use VEC_index.
7119 (register_size): Call find_register_by_number.
7120 (register_data): Call find_register_by_number.
7121 (supply_regblock): Use VEC_length.
7122 (regcache_raw_read_unsigned): Likewise.
7123 * tdesc.c (init_target_desc): Iterate reg_defs via
7124 VEC_iterate.
7125 (default_description): Update initializer.
7126 (copy_target_description): Don't update field num_registers.
7127 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7128 <num_registers>: Remove.
7129
50a421ac
SM
71302017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7131
7132 * Makefile.in (.SECONDARY): Define target.
7133
23fdd69e
SM
71342017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7135
7136 * linux-low.c (linux_wait_1): Adjust.
7137 * server.c (queue_stop_reply_callback): Adjust.
7138
0a2dde4a
SDJ
71392017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7140
7141 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7142 QEnvironmentUnset and QEnvironmentReset packets.
7143 (handle_query): Inform remote that QEnvironmentHexEncoded,
7144 QEnvironmentUnset and QEnvironmentReset are supported.
7145
6afd337d
SM
71462017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7147
7148 * inferiors.h (inferior_target_data): Rename to ...
7149 (thread_target_data): ... this.
7150 (inferior_regcache_data): Rename to ...
7151 (thread_regcache_data): ... this.
7152 (set_inferior_regcache_data): Rename to ...
7153 (set_thread_regcache_data): ... this.
7154 * inferiors.c (inferior_target_data): Rename to ...
7155 (thread_target_data): ... this.
7156 (inferior_regcache_data): Rename to ...
7157 (thread_regcache_data): ... this.
7158 (set_inferior_regcache_data): Rename to ...
7159 (set_thread_regcache_data): ... this.
7160 (free_one_thread): Update.
7161 * linux-low.h (get_thread_lwp): Update.
7162 * regcache.c (get_thread_regcache): Update.
7163 (regcache_invalidate_thread): Update.
7164 (free_register_cache_thread): Update.
7165 * win32-i386-low.c (update_debug_registers_callback): Update.
7166 (win32_get_current_dr): Update.
7167 * win32-low.c (thread_rec): Update.
7168 (delete_thread_info): Update.
7169 (continue_one_thread): Update.
7170 (suspend_one_thread): Update.
7171
a160cc46
SM
71722017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7173
7174 * inferiors.c (set_inferior_target_data): Remove.
7175 * inferiors.h (set_inferior_target_data): Remove.
7176
6d580b63
YQ
71772017-08-18 Yao Qi <yao.qi@linaro.org>
7178
7179 * Makefile.in (OBS): Add selftest.o.
7180 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7181 * configure, config.in: Re-generated.
7182 * server.c: Include common/sefltest.h.
7183 (captured_main): Handle option --selftest.
7184
f5a29eb0
YQ
71852017-08-09 Yao Qi <yao.qi@linaro.org>
7186
7187 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7188 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7189 i386-avx-mpx.o and i386-mmx.o.
7190 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7191 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7192 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7193 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7194 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7195 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7196 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7197 i386/amd64-avx-mpx.xml.
7198
57757c2f
YQ
71992017-08-09 Yao Qi <yao.qi@linaro.org>
7200
7201 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7202 and x32-avx-avx512.o.
7203 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7204 i386/x32-avx-avx512.xml.
7205
229d26fc
SM
72062017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7207
7208 * tracepoint.h (enum class fast_tpoint_collect_result): New
7209 enumeration.
7210 (fast_tracepoint_collecting): Change return type to
7211 fast_tpoint_collect_result.
7212 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7213 * linux-low.h: Include tracepoint.h.
7214 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7215 fast_tpoint_collect_result.
7216 * linux-low.c (handle_tracepoints): Adjust.
7217 (linux_fast_tracepoint_collecting): Change return type to
7218 fast_tpoint_collect_result.
7219 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7220 linux_wait_1, stuck_in_jump_pad_callback,
7221 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7222 proceed_one_lwp): Adjust to type change.
7223
2e1e43e1
YQ
72242017-07-10 Yao Qi <yao.qi@linaro.org>
7225
7226 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7227
adc764e7
YQ
72282017-06-29 Yao Qi <yao.qi@linaro.org>
7229
7230 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7231 Remove.
7232 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7233
a206891a
SM
72342017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7235
7236 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7237
9a6c7d9c
SDJ
72382017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7239
7240 * linux-low.c (linux_create_inferior): Adjust code to access the
7241 environment information via 'gdb_environ' class.
7242 * lynx-low.c (lynx_create_inferior): Likewise.
7243 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7244 (get_environ): Return a pointer to 'our_environ'.
7245 (captured_main): Initialize 'our_environ'.
7246 * server.h (get_environ): Adjust prototype.
7247 * spu-low.c (spu_create_inferior): Adjust code to access the
7248 environment information via 'gdb_environ' class.
7249
ae3e2ccf
SM
72502017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7251
7252 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7253 usage of "register" keyword.
7254
3e019bdc
SM
72552017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7256
7257 * configure: Re-generate.
7258
8465943a
SM
72592017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7260
7261 * configure: Re-generate.
7262
cf0dd6f0
SM
72632017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7264
7265 * Makefile.in (COMPILE.pre): Add "-x c++".
7266
9845682b
SDJ
72672017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7268
7269 * fork-child.c: Conditionally include <signal.h>.
7270
aefd8b33
SDJ
72712017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7272
7273 * server.c (handle_general_set): Handle new packet
7274 "QStartupWithShell".
7275 (handle_query): Add "QStartupWithShell" to the list of supported
7276 packets.
7277 (gdbserver_usage): Add help text explaining the
7278 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7279 options.
7280 (captured_main): Recognize and act upon the presence of the new
7281 CLI options.
7282
2090129c
SDJ
72832017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7284 Pedro Alves <palves@redhat.com>
7285
7286 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7287 * configure: Regenerate.
7288 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7289 "fork-inferior.o".
7290 (i[34567]86-*-lynxos*): Likewise.
7291 (spu*-*-*): Likewise.
7292 * fork-child.c: New file.
7293 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7294 and "environ.h".
7295 (linux_ptrace_fun): New function.
7296 (linux_create_inferior): Adjust function prototype to reflect
7297 change on "target.h". Adjust function code to use
7298 "fork_inferior".
7299 (linux_request_interrupt): Delete "signal_pid".
7300 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7301 (lynx_ptrace_fun): New function.
7302 (lynx_create_inferior): Adjust function prototype to reflect
7303 change on "target.h". Adjust function code to use
7304 "fork_inferior".
7305 * nto-low.c (nto_create_inferior): Adjust function prototype and
7306 code to reflect change on "target.h". Update comments.
7307 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7308 "common-terminal.h" and "environ.h".
7309 (terminal_fd): Moved to fork-child.c.
7310 (old_foreground_pgrp): Likewise.
7311 (restore_old_foreground_pgrp): Likewise.
7312 (last_status): Make it global.
7313 (last_ptid): Likewise.
7314 (our_environ): New variable.
7315 (startup_with_shell): Likewise.
7316 (program_name): Likewise.
7317 (program_argv): Rename to...
7318 (program_args): ...this.
7319 (wrapper_argv): New variable.
7320 (start_inferior): Delete function.
7321 (get_exec_wrapper): New function.
7322 (get_exec_file): Likewise.
7323 (get_environ): Likewise.
7324 (prefork_hook): Likewise.
7325 (post_fork_inferior): Likewise.
7326 (postfork_hook): Likewise.
7327 (postfork_child_hook): Likewise.
7328 (handle_v_run): Update code to deal with arguments coming from the
7329 remote host. Update calls from "start_inferior" to
7330 "create_inferior".
7331 (captured_main): Likewise. Initialize environment variable. Call
7332 "have_job_control".
7333 * server.h (post_fork_inferior): New prototype.
7334 (get_environ): Likewise.
7335 (last_status): Declare.
7336 (last_ptid): Likewise.
7337 (signal_pid): Likewise.
7338 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7339 (spu_ptrace_fun): New function.
7340 (spu_create_inferior): Adjust function prototype to reflect change
7341 on "target.h". Adjust function code to use "fork_inferior".
7342 * target.c (target_terminal_init): New function.
7343 (target_terminal_inferior): Likewise.
7344 (target_terminal_ours): Likewise.
7345 * target.h: Include <vector>.
7346 (struct target_ops) <create_inferior>: Update prototype.
7347 (create_inferior): Update macro.
7348 * utils.c (gdb_flush_out_err): New function.
7349 * win32-low.c (win32_create_inferior): Adjust function prototype
7350 and code to reflect change on "target.h".
7351
043a4934
SDJ
73522017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7353
7354 * inferiors.c (switch_to_thread): New function.
7355
15652511
SDJ
73562017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7357
7358 * Makefile.in (SFILE): Add "common/job-control.c".
7359 (OBS): Add "job-control.o".
7360
21ea5acd
SDJ
73612017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7362
7363 * Makefile: Remove "@host_makefile_frag@".
7364
e13cb306
PA
73652017-05-05 Pedro Alves <palves@redhat.com>
7366
7367 * configure: Regenerate.
7368
c94fee56
SDJ
73692017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7370
7371 * configure: Regenerate.
7372
a0ff9e1a
SM
73732017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7374
7375 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7376 software_single_step change of return type to
7377 std::vector<CORE_ADDR>.
7378 * linux-low.c (install_software_single_step_breakpoints):
7379 Likewise.
7380 * linux-low.h (install_software_single_step_breakpoints):
7381 Likewise.
7382
be628ab8
SDJ
73832017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7384
7385 * remote-utils.c: Include "gdb_termios.h" instead of
7386 "terminal.h".
7387 * terminal.h: Delete file.
7388
7c5ded6a
SDJ
73892017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7390
7391 * server.c: Include <vector>.
7392 <program_argv, wrapper_argv>: Convert to std::vector.
7393 (start_inferior): Rewrite function to use C++.
7394 (handle_v_run): Likewise. Update code that calculates the argv
7395 based on the vRun packet; use C++.
7396 (captured_main): Likewise.
7397
436252de
SM
73982017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7399
7400 * server.c (handle_v_cont): Initialize thread_resume::thread
7401 with null_ptid.
7402
9bf2a700
PA
74032017-04-05 Pedro Alves <palves@redhat.com>
7404
7405 * configure: Regenerate.
7406
a121b7c1
PA
74072017-04-05 Pedro Alves <palves@redhat.com>
7408
7409 * gdbreplay.c (sync_error): Constify.
7410 * linux-x86-low.c (push_opcode): Constify.
7411
21c8a587
PA
74122017-04-05 Pedro Alves <palves@redhat.com>
7413
7414 * win32-low.c (get_child_debug_event)
7415 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7416 Report TARGET_WAITKIND_SPURIOUS instead.
7417
fb32b4f7
PA
74182017-04-05 Pedro Alves <palves@redhat.com>
7419
e79be6e5
SM
7420 * remote-utils.c (remote_prepare, remote_open): Constify.
7421 * remote-utils.h (remote_prepare, remote_open): Constify.
7422 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7423
65dd1e59
SM
74242017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7425
7426 * Makefile.in (clean): Clear .deps.
7427
8fa5b777
SM
74282017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7429
7430 * .gitignore: Remove generated files, replace with wildcard.
7431 * (clean): Replace removal of generated files with wildcard.
7432 (version.c): Replace with...
7433 (version-generated.c): ...this.
7434 (xml-builtin.c): Replace with...
7435 (xml-builtin-generated.c): ...this.
7436 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7437 (%.c: *regformats*): Replace with...
7438 (%-generated.c: *regformats*): ...this.
7439
a12e714b
MF
74402017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7441
7442 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7443 (xtensa_fill_gregset): Call collect_register_by_name for
7444 threadptr register.
7445 (xtensa_store_gregset): Call supply_register_by_name for
7446 threadptr register.
7447
1a09b50a
MF
74482017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7449
7450 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7451 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7452 (xtensa_store_gregset): Call supply_register for all registers in
7453 a0_regnum..a0_regnum + C0_NREGS range.
7454
1a01e7c6
SM
74552017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7456
7457 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7458 (ax-ipa.o: ax.c): Remove.
7459 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7460 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7461 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7462 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7463 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7464
36bc18a8
SM
74652017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7466
7467 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7468 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7469 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7470 (errors-ipa.o: ../common/errors.c): Remove.
7471 (format-ipa.o: ../common/format.c): Remove.
7472 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7473
a8ebe3d5
SM
74742017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7475
7476 * Makefile.in (%-ipa.o: %.c): New rule.
7477 (tracepoint-ipa.o: tracepoint.c): Remove.
7478 (utils-ipa.o: utils.c): Remove.
7479 (remote-utils-ipa.o: remote-utils.c): Remove.
7480 (regcache-ipa.o: regcache.c): Remove.
7481 (i386-linux-ipa.o: i386-linux.c): Remove.
7482 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7483 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7484 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7485 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7486 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7487 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7488 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7489 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7490 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7491 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7492 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7493 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7494 (aarch64-ipa.o: aarch64.c): Remove.
7495 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7496 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7497 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7498 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7499 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7500 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7501 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7502 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7503 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7504 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7505 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7506 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7507 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7508 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7509 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7510 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7511 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7512 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7513 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7514 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7515 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7516 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7517 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7518 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7519 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7520 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7521 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7522 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7523 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7524 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7525 (tdesc-ipa.o: tdesc.c): Remove.
7526 (x32-linux-ipa.o: x32-linux.c): Remove.
7527 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7528 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7529
50cfacb7
SM
75302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7531
7532 * Makefile.in (%.o: ../arch/%.c): New rule.
7533 (arm.o: ../arch/arm.c): Remove.
7534 (arm-linux.o: ../arch/arm-linux.c): Remove.
7535 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7536 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7537
c5a22423
SM
75382017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7539
7540 * Makefile.in (%.o: ../nat/%.c): New rule.
7541 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7542 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7543 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7544 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7545 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7546 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7547 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7548 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7549 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7550 (linux-personality.o: ../nat/linux-personality.c): Remove.
7551 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7552 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7553 (x86-linux.o: ../nat/x86-linux.c): Remove.
7554 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7555 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7556
6bda016b
SM
75572017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7558
7559 * Makefile.in (%.o: ../common/%.c): New rule.
7560 (signals.o: ../common/signals.c): Remove.
7561 (print-utils.o: ../common/print-utils.c): Remove.
7562 (rsp-low.o: ../common/rsp-low.c): Remove.
7563 (common-utils.o: ../common/common-utils.c): Remove.
7564 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7565 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7566 (vec.o: ../common/vec.c): Remove.
7567 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7568 (xml-utils.o: ../common/xml-utils.c): Remove.
7569 (ptid.o: ../common/ptid.c): Remove.
7570 (buffer.o: ../common/buffer.c): Remove.
7571 (format.o: ../common/format.c): Remove.
7572 (filestuff.o: ../common/filestuff.c): Remove.
7573 (agent.o: ../common/agent.c): Remove.
7574 (errors.o: ../common/errors.c): Remove.
7575 (environ.o: ../common/environ.c): Remove.
7576 (common-debug.o: ../common/common-debug.c): Remove.
7577 (cleanups.o: ../common/cleanups.c): Remove.
7578 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7579 (fileio.o: ../common/fileio.c): Remove.
7580 (common-regcache.o: ../common/common-regcache.c): Remove.
7581 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7582 (new-op.o: ../common/new-op.c): Remove.
7583 (btrace-common.o: ../common/btrace-common.c): Remove.
7584
21122961
SM
75852017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7586
7587 * Makefile.in (%.o: ../target/%.c): New rule.
7588 (waitstatus.o: ../target/waitstatus.c): Remove.
7589
c362e621
SM
75902017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7591
7592 * Makefile.in
7593 (%.c: ../regformats/%.dat,
7594 (%.c: ../regformats/arm/%.dat,
7595 (%.c: ../regformats/i386/%.dat,
7596 (%.c: ../regformats/rs6000/%.dat): New rules.
7597 (aarch64.c): Remove.
7598 (reg-arm.c): Remove.
7599 (arm-with-iwmmxt.c): Remove.
7600 (arm-with-vfpv2.c): Remove.
7601 (arm-with-vfpv3.c): Remove.
7602 (arm-with-neon.c): Remove.
7603 (reg-bfin.c): Remove.
7604 (reg-cris.c): Remove.
7605 (reg-crisv32.c): Remove.
7606 (i386.c): Remove.
7607 (i386-linux.c): Remove.
7608 (i386-avx.c): Remove.
7609 (i386-avx-linux.c): Remove.
7610 (i386-avx-avx512.c): Remove.
7611 (i386-avx-avx512-linux.c): Remove.
7612 (i386-mpx.c): Remove.
7613 (i386-mpx-linux.c): Remove.
7614 (i386-avx-mpx-avx512-pku.c): Remove.
7615 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7616 (i386-avx-mpx.c): Remove.
7617 (i386-avx-mpx-linux.c): Remove.
7618 (i386-mmx.c): Remove.
7619 (i386-mmx-linux.c): Remove.
7620 (reg-ia64.c): Remove.
7621 (reg-m32r.c): Remove.
7622 (reg-m68k.c): Remove.
7623 (reg-cf.c): Remove.
7624 (mips-linux.c): Remove.
7625 (mips-dsp-linux.c): Remove.
7626 (mips64-linux.c): Remove.
7627 (mips64-dsp-linux.c): Remove.
7628 (nios2-linux.c): Remove.
7629 (powerpc-32.c): Remove.
7630 (powerpc-32l.c): Remove.
7631 (powerpc-altivec32l.c): Remove.
7632 (powerpc-cell32l.c): Remove.
7633 (powerpc-vsx32l.c): Remove.
7634 (powerpc-isa205-32l.c): Remove.
7635 (powerpc-isa205-altivec32l.c): Remove.
7636 (powerpc-isa205-vsx32l.c): Remove.
7637 (powerpc-e500l.c): Remove.
7638 (powerpc-64l.c): Remove.
7639 (powerpc-altivec64l.c): Remove.
7640 (powerpc-cell64l.c): Remove.
7641 (powerpc-vsx64l.c): Remove.
7642 (powerpc-isa205-64l.c): Remove.
7643 (powerpc-isa205-altivec64l.c): Remove.
7644 (powerpc-isa205-vsx64l.c): Remove.
7645 (s390-linux32.c): Remove.
7646 (s390-linux32v1.c): Remove.
7647 (s390-linux32v2.c): Remove.
7648 (s390-linux64.c): Remove.
7649 (s390-linux64v1.c): Remove.
7650 (s390-linux64v2.c): Remove.
7651 (s390-te-linux64.c): Remove.
7652 (s390-vx-linux64.c): Remove.
7653 (s390-tevx-linux64.c): Remove.
7654 (s390x-linux64.c): Remove.
7655 (s390x-linux64v1.c): Remove.
7656 (s390x-linux64v2.c): Remove.
7657 (s390x-te-linux64.c): Remove.
7658 (s390x-vx-linux64.c): Remove.
7659 (s390x-tevx-linux64.c): Remove.
7660 (tic6x-c64xp-linux.c): Remove.
7661 (tic6x-c64x-linux.c): Remove.
7662 (tic6x-c62x-linux.c): Remove.
7663 (reg-sh.c): Remove.
7664 (reg-sparc64.c): Remove.
7665 (reg-spu.c): Remove.
7666 (amd64.c): Remove.
7667 (amd64-linux.c): Remove.
7668 (amd64-avx.c): Remove.
7669 (amd64-avx-linux.c): Remove.
7670 (amd64-avx-avx512.c): Remove.
7671 (amd64-avx-avx512-linux.c): Remove.
7672 (amd64-mpx.c): Remove.
7673 (amd64-mpx-linux.c): Remove.
7674 (amd64-avx-mpx-avx512-pku.c): Remove.
7675 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7676 (amd64-avx-mpx.c): Remove.
7677 (amd64-avx-mpx-linux.c): Remove.
7678 (x32.c): Remove.
7679 (x32-linux.c): Remove.
7680 (x32-avx.c): Remove.
7681 (x32-avx-linux.c): Remove.
7682 (x32-avx-avx512.c): Remove.
7683 (x32-avx-avx512-linux.c): Remove.
7684 (reg-xtensa.c): Remove.
7685 (reg-tilegx.c): Remove.
7686 (reg-tilegx32.c): Remove.
7687
1672e0d9
SDJ
76882017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7689
7690 * Makefile.in (SFILES): Add "common/environ.c".
7691 (OBJS): Add "common/environ.h".
7692
239b6d10
WT
76932017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7694
7695 * configure.ac: Check if the fs_base and gs_base members of
7696 `struct user_regs_struct' exist.
7697 * config.in: Regenerated.
7698 * configure: Likewise.
7699
694b382c
AT
77002017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7701
7702 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7703 target_read_memory.
7704 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7705 (get_next_pcs_syscall_next_pc): Likewise.
7706
7dc53023
LM
77072016-12-23 Luis Machado <lgustavo@codesourcery.com>
7708
7709 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7710 * nto-x86-low.c: Likewise.
7711
ad02e4fe
SM
77122016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7713
7714 * Makefile.in: Include disable-implicit-rules.mk.
7715
dcb07cfa
PA
77162016-11-23 Pedro Alves <palves@redhat.com>
7717
7718 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7719 (debug_vprintf): Use std::chrono::steady_clock instead of
7720 gettimeofday. Use '.' instead of ':'.
7721 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7722 (get_timestamp): Use std::chrono::steady_clock instead of
7723 gettimeofday.
7724
8629c02c
SM
77252016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7726
7727 * Makefile.in: Fix whitespace formatting.
7728
b593ecca
SM
77292016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7730
7731 * Makefile.in (SFILES, OBS): Flatten list and order
7732 alphabetically.
7733
9986ba08
PA
77342016-11-23 Pedro Alves <palves@redhat.com>
7735
7736 * event-loop.c (handle_file_event): Use warning.
7737 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7738 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7739 Use warning.
7740
4eefa7bc
PA
77412016-11-23 Pedro Alves <palves@redhat.com>
7742
7743 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7744 output.
7745 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7746 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7747 debug_printf and debug_flush for debug output.
7748 * server.c (handle_general_set): Likewise.
7749 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7750 output.
7751
5443506e
SM
77522016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7753
7754 * Makefile.in (.c.o): Replace rule with ...
7755 (%.o: %.c): ... this one.
7756
3b165252
SM
77572016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7758
7759 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7760 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7761 make.
7762 * configure.ac: Remove checks for the make program.
7763 * configure: Re-generate.
7764
0bcda685
PA
77652016-10-28 Pedro Alves <palves@redhat.com>
7766
7767 * Makefile.in (CXX_DIALECT): Get from configure.
7768 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7769 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7770 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7771 * config.in: Regenerate.
7772 * configure: Regenerate.
7773
c3805894
YQ
77742016-10-27 Yao Qi <yao.qi@linaro.org>
7775
7776 * linux-low.c (linux_supports_range_stepping): Return true if
7777 can_software_single_step return true.
7778
89342618
YQ
77792016-10-27 Yao Qi <yao.qi@linaro.org>
7780
7781 * inferiors.c (find_inferior_in_random): New function.
7782 * inferiors.h (find_inferior_in_random): Declare.
7783 * linux-low.c (linux_wait_for_event_filtered): Call
7784 find_inferior_in_random instead of find_inferior.
7785
e3652c84
YQ
77862016-10-27 Yao Qi <yao.qi@linaro.org>
7787
7788 * linux-low.c (linux_wait_1): If single-step breakpoints are
7789 inserted, remove them.
7790
5a04c4cf
PA
77912016-10-26 Pedro Alves <palves@redhat.com>
7792
7793 * linux-low.c (handle_extended_wait): Link parent/child fork
7794 threads.
7795 (linux_wait_1): Unlink them.
7796 (linux_set_resume_request): Ignore resume requests for
7797 already-resumed and unhandled fork child threads.
7798 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7799 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7800 New functions.
7801 (handle_v_requests) <vCont>: Don't call require_running.
7802 * server.h (in_queued_stop_replies): New declaration.
7803
cb93dc7f
YQ
78042016-10-24 Yao Qi <yao.qi@linaro.org>
7805
7806 PR server/20733
7807 * linux-aarch64-low.c (append_insns): Cast the return value to
7808 'uint32_t *'.
7809
a1078bea
YQ
78102016-10-10 Yao Qi <yao.qi@linaro.org>
7811
7812 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7813
1fb77080
SDJ
78142016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7815
7816 * target.c (target_supports_multi_process): New function, moved
7817 from...
7818 * target.h (target_supports_multi_process): ... here. Remove
7819 macro.
7820
39b5a3b9
TT
78212016-10-05 Tom Tromey <tom@tromey.com>
7822
7823 PR remote/20655:
7824 * tracepoint.c (handle_tracepoint_bkpts): Check
7825 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7826
c1d0b70a
YQ
78272016-10-05 Yao Qi <yao.qi@linaro.org>
7828
7829 * configure.srv: Update the path of arm-*.xml files.
7830
0a69eedb
YQ
78312016-10-05 Terry Guo <terry.guo@arm.com>
7832 Yao Qi <yao.qi@linaro.org>
7833
7834 * Makefile.in: Adjust the path of rules.
7835 * configure.srv: Update the path of xml files.
7836 * regformats/arm-with-iwmmxt.dat: Regenerated.
7837 * regformats/arm-with-neon.dat: Likewise.
7838 * regformats/arm-with-vfpv2.dat: Likewise.
7839 * regformats/arm-with-vfpv3.dat Likewise.
7840
17e16485
YQ
78412016-09-30 Yao Qi <yao.qi@linaro.org>
7842
7843 PR gdbserver/20627
7844 * target.c (target_stop_and_wait): Don't call
7845 target_continue_no_signal, use resume_stop instead.
7846
edeeb602
YQ
78472016-09-26 Yao Qi <yao.qi@linaro.org>
7848
7849 * linux-low.c (linux_wait_1): Call debug_exit.
7850
503b1c39
PA
78512016-09-23 Pedro Alves <palves@redhat.com>
7852
7853 * Makefile.in (SFILES): Add common/new-op.c.
7854 (OBS): Add common/new-op.o.
7855 (new-op.o): New rule.
7856
74172ecf
SM
78572016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7858
7859 * .gitinore: Ignore more files.
7860
fc6cda2e
YQ
78612016-09-21 Yao Qi <yao.qi@linaro.org>
7862
7863 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7864 23.
7865
bc1e6c81
SDJ
78662016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7867
7868 * server.c (start_inferior): Call target_mourn_inferior instead of
7869 mourn_inferior; pass ptid_t argument to it.
7870 (resume): Likewise.
7871 (handle_target_event): Likewise.
7872 * target.c (target_mourn_inferior): New function.
7873 * target.h (mourn_inferior): Delete macro.
7874
0e00e962
AA
78752016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7876
7877 * linux-low.c (lwp_is_stepping): New function.
7878
1d8cb77d
CL
78792016-09-06 Carl Love <cel@us.ibm.com>
7880
7881 * server.c (start_inferior): Fixed comment, requested comment change
7882 didn't get updated correctly. Removed reference to ptrace () call as
7883 it is only true on Linux systems.
7884
7313bced
CL
78852016-09-06 Carl Love <cel@us.ibm.com>
7886
7887 * server.c (start_inferior): Do not call
7888 function target_post_create_inferior () if the
7889 inferior process has already exited.
7890
cf6de44d
PA
78912016-09-05 Pedro Alves <palves@redhat.com>
7892
7893 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7894 (COMPILE.pre, CC_LD): Use CXX directly.
7895 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7896 * acinclude.m4: Don't include build-with-cxx.m4.
7897 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7898 * configure: Regenerate.
7899
c1da6748
AT
79002016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7901
7902 PR gdb/19495
7903 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7904 call writing data to own_buf.
7905
f2b9e3df
SDJ
79062016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7907
7908 * target.c (mywait): Call target_wait instead of
7909 the_target->wait.
7910 (target_wait): New function.
7911
049a8570
SDJ
79122016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7913
7914 * server.c (start_inferior): New variable 'ptid'. Replace calls
7915 to the_target->resume by target_continue{,_no_signal}, depending
7916 on the case.
7917 * target.c (target_stop_and_wait): Call target_continue_no_signal
7918 instead of the_target->resume.
7919 (target_continue): New function.
7920
3aa5cfa0
AT
79212016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7922
7923 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7924
754653a7
AZ
79252016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7926
7927 PR server/20491
7928 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7929 ps_prochandle.
7930 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7931 * linux-arm-low.c (ps_get_thread_area): Likewise.
7932 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7933 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7934 * linux-mips-low.c (ps_get_thread_area): Likewise.
7935 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7936 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7937 * linux-x86-low.c (ps_get_thread_area): Likewise.
7938 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7939
ed036b40
PA
79402016-08-19 Pedro Alves <palves@redhat.com>
7941
7942 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7943
c8ef42ee
PA
79442016-08-19 Pedro Alves <palves@redhat.com>
7945
7946 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7947 comment. Use memcpy instead of casting through unsigned long.
7948
9c235a72
PA
79492016-08-19 Pedro Alves <palves@redhat.com>
7950
7951 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7952 allocating around 0x80000000.
7953
201506da
PA
79542016-08-19 Pedro Alves <palves@redhat.com>
7955
7956 PR gdb/20415
7957 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7958 (x32-avx512-linux-ipa.o): New rules.
7959 * configure.ac (x86_64-*-linux*): New x32 check.
7960 * configure.srv (ipa_x32_linux_regobj): New.
7961 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7962 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7963 descriptions.
7964 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7965 descriptions.
7966 * configure: Regenerate.
7967
f348d89a
PA
79682016-08-09 Pedro Alves <palves@redhat.com>
7969
7970 PR gdb/18653
7971 * Makefile.in (OBS): Add signals-state-save-restore.o.
7972 (signals-state-save-restore.o): New rule.
7973 * config.in: Regenerate.
7974 * configure: Regenerate.
7975 * linux-low.c: Include "signals-state-save-restore.h".
7976 (linux_create_inferior): Call
7977 restore_original_signals_state.
7978 * server.c: Include "dispositions-save-restore.h".
7979 (captured_main): Call save_original_signals_state.
7980
1baf5149
PA
79812016-08-05 Pedro Alves <palves@redhat.com>
7982
7983 * configure: Regenerate.
7984
fcd4a73d
YQ
79852016-08-04 Yao Qi <yao.qi@linaro.org>
7986
7987 * linux-low.c (regsets_fetch_inferior_registers): Check
7988 errno is ESRCH or not.
7989
979659d0
YQ
79902016-08-02 Yao Qi <yao.qi@linaro.org>
7991
7992 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7993 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7994 (thread_db_load_search): Update.
7995 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7996 td_ta_set_event and td_ta_event_getmsg.
7997
6598661d
PA
79982016-07-26 Pedro Alves <palves@redhat.com>
7999
8000 PR server/20414
8001 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8002 of unsigned long for 64-bit registers and use uint32_t instead of
8003 unsigned int for 32-bit registers.
8004
9cf12d57
PA
80052016-07-26 Pedro Alves <palves@redhat.com>
8006
8007 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8008 to 'ptrace'.
8009
305450ed
TT
80102016-07-21 Tom Tromey <tom@tromey.com>
8011
8012 * configure: Rebuild.
8013
2583da7c
YQ
80142016-07-21 Yao Qi <yao.qi@linaro.org>
8015
8016 * mem-break.c (find_gdb_breakpoint): Cast bp to
8017 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8018
21536b36
YQ
80192016-07-21 Yao Qi <yao.qi@linaro.org>
8020
8021 * server.c (handle_v_requests): Support s and S actions
8022 if target_supports_software_single_step return true.
8023
8901d193
YQ
80242016-07-21 Yao Qi <yao.qi@linaro.org>
8025
8026 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8027 is resume_step, call maybe_hw_step.
8028 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8029 and unstop them.
8030 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8031 breakpoints or not.
8032 (proceed_one_lwp): If resume request is resume_step, install
8033 reinsert breakpoints and call maybe_hw_step.
8034
0e9a339e
YQ
80352016-07-21 Yao Qi <yao.qi@linaro.org>
8036
8037 * linux-low.c (proceed_one_lwp): Declare.
8038 (linux_resume_one_thread): Remove local variable 'step'.
8039 Lift code enqueue signal. Call proceed_one_lwp instead of
8040 linux_resume_one_lwp.
8041
4281b351
YQ
80422016-07-21 Yao Qi <yao.qi@linaro.org>
8043
8044 * linux-low.c (linux_resume_one_thread): Call
8045 enqueue_pending_signal.
8046
984a2c04
YQ
80472016-07-21 Yao Qi <yao.qi@linaro.org>
8048
8049 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8050 * inferiors.c (do_restore_current_thread_cleanup): New function.
8051 (make_cleanup_restore_current_thread): Likewise.
8052 * linux-low.c (install_software_single_step_breakpoints): Call
8053 make_cleanup_restore_current_thread. Switch current_thread to
8054 thread.
8055
bec903c9
YQ
80562016-07-21 Yao Qi <yao.qi@linaro.org>
8057
8058 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8059 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8060 (clone_one_breakpoint): Likewise.
8061 (delete_reinsert_breakpoints): Change parameter to thread.
8062 Callers updated.
8063 (has_reinsert_breakpoints): Likewise.
8064 (uninsert_reinsert_breakpoints): Likewise.
8065 (reinsert_reinsert_breakpoints): Likewise.
8066 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8067 (delete_reinsert_breakpoints): Likewise.
8068 (reinsert_reinsert_breakpoints): Likewise.
8069 (uninsert_reinsert_breakpoints): Likewise.
8070 (has_reinsert_breakpoints): Likewise.
8071
63c40ec7
YQ
80722016-07-21 Yao Qi <yao.qi@linaro.org>
8073
8074 * inferiors.c (get_thread_process): Make parameter const.
8075 * inferiors.h (get_thread_process): Update declaration.
8076 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8077 Add new parameters child_thread and parent_thread. Callers
8078 updated.
8079 * mem-break.h (clone_all_breakpoints): Update declaration.
8080
9aa76cd0
YQ
80812016-07-21 Yao Qi <yao.qi@linaro.org>
8082
8083 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8084 <command_list, handler>: Remove.
8085 (struct gdb_breakpoint): New.
8086 (struct other_breakpoint): New.
8087 (struct reinsert_breakpoint): New.
8088 (is_gdb_breakpoint): New function.
8089 (any_persistent_commands): Update command_list if
8090 is_gdb_breakpoint returns true.
8091 (set_breakpoint): Create breakpoints according to their types.
8092 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8093 (set_gdb_breakpoint_1): Likewise.
8094 (set_gdb_breakpoint): Likewise.
8095 (clear_breakpoint_conditions): Change parameter type to
8096 'struct gdb_breakpoint *'.
8097 (clear_breakpoint_commands): Likewise.
8098 (clear_breakpoint_conditions_and_commands): Likewise.
8099 (add_condition_to_breakpoint): Likewise.
8100 (add_breakpoint_condition): Likewise.
8101 (add_commands_to_breakpoint): Likewise.
8102 (check_breakpoints): Check other_breakpoint.
8103 (clone_one_breakpoint): Clone breakpopint according to its type.
8104 * mem-break.h (struct gdb_breakpoint): Declare.
8105 (set_gdb_breakpoint): Update declaration.
8106 (clear_breakpoint_conditions_and_commands): Likewise.
8107 (add_breakpoint_condition): Likewise.
8108 (add_breakpoint_commands): Likewise.
8109 * server.c (process_point_options): Change parameter type to
8110 'struct gdb_breakpoint *'.
8111
811f8301
YQ
81122016-07-21 Yao Qi <yao.qi@linaro.org>
8113
8114 * mem-break.c (set_breakpoint_at): Rename it to ...
8115 (set_breakpoint_type_at): ... it.
8116 (set_breakpoint_at): Call set_breakpoint_type_at.
8117 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8118 * mem-break.h (set_breakpoint_at): Update comments.
8119
b1c51e36
CLT
81202016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8121
8122 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8123 to buf parameter.
8124 (nios2_store_gregset): Likewise.
8125
ced2dffb
PA
81262016-07-01 Pedro Alves <palves@redhat.com>
8127 Antoine Tremblay <antoine.tremblay@ericsson.com>
8128
8129 * linux-low.c: Change interface to take the target lwp_info
8130 pointer directly and return void. Handle detaching from a zombie
8131 thread.
8132 (linux_detach_lwp_callback): New function.
8133 (linux_detach): Detach from the leader thread after detaching from
8134 the clone threads.
8135
2ac09a5b
YQ
81362016-06-28 Yao Qi <yao.qi@linaro.org>
8137
8138 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8139 for variable new_offset.
8140 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8141 (aarch64_ftrace_insn_reloc_cb): Likewise.
8142 (aarch64_ftrace_insn_reloc_tb): Likewise.
8143 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8144 PRIx64 instead of PRIx32.
8145
79e7fd4f
YQ
81462016-06-28 Yao Qi <yao.qi@linaro.org>
8147
8148 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8149 (the_low_target): Install arm_get_syscall_trapinfo.
8150
061fc021
YQ
81512016-06-28 Yao Qi <yao.qi@linaro.org>
8152
8153 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8154 function.
8155 (the_low_target): Install aarch64_get_syscall_trapinfo.
8156
4cc32bec
YQ
81572016-06-28 Yao Qi <yao.qi@linaro.org>
8158
8159 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8160 Callers updated.
8161 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8162 Remove parameter sysno.
8163 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8164 sysret.
8165
782c1122
AA
81662016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8167
8168 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8169 (s390_emit_ne_goto): Likewise.
8170 (s390_emit_lt_goto): Likewise.
8171 (s390_emit_le_goto): Likewise.
8172 (s390_emit_gt_goto): Likewise.
8173 (s390_emit_ge_goto): Likewise.
8174 (s390x_emit_eq_goto): Likewise.
8175 (s390x_emit_ne_goto): Likewise.
8176 (s390x_emit_lt_goto): Likewise.
8177 (s390x_emit_le_goto): Likewise.
8178 (s390x_emit_gt_goto): Likewise.
8179 (s390x_emit_ge_goto): Likewise.
8180 (s390_emit_ops_impl): Mark variable static.
8181 (s390x_emit_ops): Likewise.
8182
2e7b624b
YQ
81832016-06-17 Yao Qi <yao.qi@linaro.org>
8184
8185 * linux-low.c (handle_extended_wait): Call
8186 uninsert_reinsert_breakpoints for the parent process. Remove
8187 reinsert breakpoints from the child process. Reinsert them to
8188 the parent process when vfork is done.
8189 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8190 (reinsert_reinsert_breakpoints): New function.
8191 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8192 (reinsert_reinsert_breakpoints): Declare.
8193
8a81c5d7
YQ
81942016-06-17 Yao Qi <yao.qi@linaro.org>
8195
8196 * linux-low.c (handle_extended_wait): If the parent is doing
8197 step-over, remove the reinsert breakpoints from the forked child.
8198
f50bf8e5
YQ
81992016-06-17 Yao Qi <yao.qi@linaro.org>
8200
8201 * linux-low.c (unsuspend_all_lwps): Declare.
8202 (linux_low_filter_event): If thread exited, call finish_step_over.
8203 If step-over is finished, unsuspend other threads.
8204
8376a3cb
YQ
82052016-06-17 Yao Qi <yao.qi@linaro.org>
8206
8207 * linux-low.c (linux_resume_one_lwp_throw): Assert
8208 has_reinsert_breakpoints returns false.
8209 * mem-break.c (delete_disabled_breakpoints): Assert
8210 bp type isn't reinsert_breakpoint.
8211
f79b145d
YQ
82122016-06-17 Yao Qi <yao.qi@linaro.org>
8213
8214 * linux-low.c (maybe_hw_step): New function.
8215 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8216 (finish_step_over): Switch current_thread to lwp temporarily,
8217 and assert has_reinsert_breakpoints returns true.
8218 (proceed_one_lwp): Call maybe_hw_step.
8219 * mem-break.c (has_reinsert_breakpoints): New function.
8220 * mem-break.h (has_reinsert_breakpoints): Declare.
8221
0ae534d2
JT
82222016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8223
8224 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8225
fcdad592
YQ
82262016-05-17 Yao Qi <yao.qi@linaro.org>
8227
8228 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8229 instead of find_inferior.
8230
9e784964
YQ
82312016-05-05 Yao Qi <yao.qi@linaro.org>
8232
8233 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8234 Initialize res to zero.
8235
cf2ebb6e
YQ
82362016-05-05 Yao Qi <yao.qi@linaro.org>
8237
8238 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8239 to uint32_t.
8240
c1aebf87
UW
82412016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8242
8243 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8244 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8245 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8246
35fd2deb 82472016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8248 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8249
8250 * tracepoint.c (write_inferior_int8): New function.
8251 (cmd_qtenable_disable): Write enable flag using
8252 write_inferior_int8.
8253
484b3c32
YQ
82542016-04-25 Yao Qi <yao.qi@linaro.org>
8255
8256 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8257 (need_step_over_p): Return zero if the LWP has pending signals
8258 can be delivered on software single step target.
8259
85ba7d86
YQ
82602016-04-25 Yao Qi <yao.qi@linaro.org>
8261
8262 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8263 return instead of error.
8264
3539aa13
YQ
82652016-04-22 Yao Qi <yao.qi@linaro.org>
8266
8267 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8268 to 23.
8269
5b061e98
YQ
82702016-04-22 Yao Qi <yao.qi@linaro.org>
8271
8272 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8273 signal when stepping over breakpoint with software single
8274 step.
8275
3451269c
PA
82762016-04-21 Pedro Alves <palves@redhat.com>
8277
8278 * linux-s390-low.c (s390_collect_ptrace_register)
8279 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8280 add casts.
8281 (s390_check_regset): Use void * instead of gdb_byte *.
8282
a2358508
PA
82832016-04-20 Pedro Alves <palves@redhat.com>
8284
8285 * configure: Renegerate.
8286
6885166d
YQ
82872016-04-20 Yao Qi <yao.qi@linaro.org>
8288
8289 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8290 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8291 number 16.
8292 (arm_store_gregset): Likewise.
8293
2b863f51
WT
82942016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8295
8296 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8297 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8298 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8299 (amd64-avx-mpx-linux.c): New rules.
8300 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8301 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8302 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8303 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8304 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8305 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8306 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8307 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8308 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8309 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8310 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8311 * linux-x86-low.c (x86_linux_read_description): Add case for
8312 X86_XSTATE_AVX_MPX_MASK.
8313 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8314 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8315 init_registers_i386_avx_mpx_linux.
8316 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8317 (initialize_low_tracepoint): Call
8318 init_registers_i386_avx_mpx_linux.
8319 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8320 (initialize_low_tracepoint): Call
8321 init_registers_amd64_avx_mpx_linux.
8322 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8323 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8324 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8325 declarations.
8326
9b30624b
PA
83272016-04-18 Pedro Alves <palves@redhat.com>
8328
8329 * configure: Regenerate.
8330
45e3745e
AT
83312016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8332
8333 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8334 (aarch64_emit_sub): Likewise.
8335
2afc13ff
PA
83362016-04-12 Pedro Alves <palves@redhat.com>
8337
8338 * utils.c (prepare_to_throw_exception): Delete.
8339
6e774b13
SM
83402016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8341
8342 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8343
4dca19f8
MK
83442016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8345
8346 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8347
d0a9981f
MK
83482016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8349
8350 * linux-aarch64-ipa.c: Add <elf.h> include.
8351 * linux-ppc-ipa.c: Add <elf.h> include.
8352 * linux-s390-ipa.c: Add <elf.h> include.
8353
252db07e
MK
83542016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8355
8356 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8357 (get_raw_reg_ptr): Likewise.
8358 (get_trace_state_variable_value_ptr): Likewise.
8359 (set_trace_state_variable_value_ptr): Likewise.
8360 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8361 char *.
8362
14e2b6d9
MK
83632016-03-31 Wei-cheng Wang <cole945@gmail.com>
8364 Marcin Kościelnicki <koriakin@0x04.net>
8365
8366 PR/17221
8367 * linux-ppc-low.c (emit_insns): New function.
8368 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8369 (ppc_emit_prologue): New function.
8370 (ppc_emit_epilogue): New function.
8371 (ppc_emit_add): New function.
8372 (ppc_emit_sub): New function.
8373 (ppc_emit_mul): New function.
8374 (ppc_emit_lsh): New function.
8375 (ppc_emit_rsh_signed): New function.
8376 (ppc_emit_rsh_unsigned): New function.
8377 (ppc_emit_ext): New function.
8378 (ppc_emit_zero_ext): New function.
8379 (ppc_emit_log_not): New function.
8380 (ppc_emit_bit_and): New function.
8381 (ppc_emit_bit_or): New function.
8382 (ppc_emit_bit_xor): New function.
8383 (ppc_emit_bit_not): New function.
8384 (ppc_emit_equal): New function.
8385 (ppc_emit_less_signed): New function.
8386 (ppc_emit_less_unsigned): New function.
8387 (ppc_emit_ref): New function.
8388 (ppc_emit_const): New function.
8389 (ppc_emit_reg): New function.
8390 (ppc_emit_pop): New function.
8391 (ppc_emit_stack_flush): New function.
8392 (ppc_emit_swap): New function.
8393 (ppc_emit_stack_adjust): New function.
8394 (ppc_emit_call): New function.
8395 (ppc_emit_int_call_1): New function.
8396 (ppc_emit_void_call_2): New function.
8397 (ppc_emit_if_goto): New function.
8398 (ppc_emit_goto): New function.
8399 (ppc_emit_eq_goto): New function.
8400 (ppc_emit_ne_goto): New function.
8401 (ppc_emit_lt_goto): New function.
8402 (ppc_emit_le_goto): New function.
8403 (ppc_emit_gt_goto): New function.
8404 (ppc_emit_ge_goto): New function.
8405 (ppc_write_goto_address): New function.
8406 (ppc_emit_ops_impl): New static variable.
8407 (ppc64v1_emit_prologue): New function.
8408 (ppc64v2_emit_prologue): New function.
8409 (ppc64_emit_epilogue): New function.
8410 (ppc64_emit_add): New function.
8411 (ppc64_emit_sub): New function.
8412 (ppc64_emit_mul): New function.
8413 (ppc64_emit_lsh): New function.
8414 (ppc64_emit_rsh_signed): New function.
8415 (ppc64_emit_rsh_unsigned): New function.
8416 (ppc64_emit_ext): New function.
8417 (ppc64_emit_zero_ext): New function.
8418 (ppc64_emit_log_not): New function.
8419 (ppc64_emit_bit_and): New function.
8420 (ppc64_emit_bit_or): New function.
8421 (ppc64_emit_bit_xor): New function.
8422 (ppc64_emit_bit_not): New function.
8423 (ppc64_emit_equal): New function.
8424 (ppc64_emit_less_signed): New function.
8425 (ppc64_emit_less_unsigned): New function.
8426 (ppc64_emit_ref): New function.
8427 (ppc64_emit_const): New function.
8428 (ppc64v1_emit_reg): New function.
8429 (ppc64v2_emit_reg): New function.
8430 (ppc64_emit_pop): New function.
8431 (ppc64_emit_stack_flush): New function.
8432 (ppc64_emit_swap): New function.
8433 (ppc64v1_emit_call): New function.
8434 (ppc64v2_emit_call): New function.
8435 (ppc64v1_emit_int_call_1): New function.
8436 (ppc64v2_emit_int_call_1): New function.
8437 (ppc64v1_emit_void_call_2): New function.
8438 (ppc64v2_emit_void_call_2): New function.
8439 (ppc64_emit_if_goto): New function.
8440 (ppc64_emit_eq_goto): New function.
8441 (ppc64_emit_ne_goto): New function.
8442 (ppc64_emit_lt_goto): New function.
8443 (ppc64_emit_le_goto): New function.
8444 (ppc64_emit_gt_goto): New function.
8445 (ppc64_emit_ge_goto): New function.
8446 (ppc64v1_emit_ops_impl): New static variable.
8447 (ppc64v2_emit_ops_impl): New static variable.
8448 (ppc_emit_ops): New function.
8449 (linux_low_target): Wire in ppc_emit_ops.
8450
a2174ba4
MK
84512016-03-31 Wei-cheng Wang <cole945@gmail.com>
8452 Marcin Kościelnicki <koriakin@0x04.net>
8453
8454 PR/17221
8455 * Makefile.in: Add powerpc-*-ipa.o
8456 * configure.srv: Add ipa_obj for powerpc*-linux.
8457 * linux-ppc-ipa.c: New file.
8458 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8459 includes.
8460 (PPC_FIELD): New macro.
8461 (PPC_SEXT): New macro.
8462 (PPC_OP6): New macro.
8463 (PPC_BO): New macro.
8464 (PPC_LI): New macro.
8465 (PPC_BD): New macro.
8466 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8467 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8468 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8469 (ppc_get_thread_area): New function.
8470 (is_elfv2_inferior): New function.
8471 (gen_ds_form): New function.
8472 (GEN_STD): New macro.
8473 (GEN_STDU): New macro.
8474 (GEN_LD): New macro.
8475 (GEN_LDU): New macro.
8476 (gen_d_form): New function.
8477 (GEN_ADDI): New macro.
8478 (GEN_ADDIS): New macro.
8479 (GEN_LI): New macro.
8480 (GEN_LIS): New macro.
8481 (GEN_ORI): New macro.
8482 (GEN_ORIS): New macro.
8483 (GEN_LWZ): New macro.
8484 (GEN_STW): New macro.
8485 (GEN_STWU): New macro.
8486 (gen_xfx_form): New function.
8487 (GEN_MFSPR): New macro.
8488 (GEN_MTSPR): New macro.
8489 (GEN_MFCR): New macro.
8490 (GEN_MTCR): New macro.
8491 (GEN_SYNC): New macro.
8492 (GEN_LWSYNC): New macro.
8493 (gen_x_form): New function.
8494 (GEN_OR): New macro.
8495 (GEN_MR): New macro.
8496 (GEN_LWARX): New macro.
8497 (GEN_STWCX): New macro.
8498 (GEN_CMPW): New macro.
8499 (gen_md_form): New function.
8500 (GEN_RLDICL): New macro.
8501 (GEN_RLDICR): New macro.
8502 (gen_i_form): New function.
8503 (GEN_B): New macro.
8504 (GEN_BL): New macro.
8505 (gen_b_form): New function.
8506 (GEN_BNE): New macro.
8507 (GEN_LOAD): New macro.
8508 (GEN_STORE): New macro.
8509 (gen_limm): New function.
8510 (gen_atomic_xchg): New function.
8511 (gen_call): New function.
8512 (ppc_relocate_instruction): New function.
8513 (ppc_install_fast_tracepoint_jump_pad): New function.
8514 (ppc_get_min_fast_tracepoint_insn_len): New function.
8515 (ppc_get_ipa_tdesc_idx): New function.
8516 (the_low_target): Wire in the new functions.
8517 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8518 tdescs.
8519 * linux-ppc-tdesc.h: New file.
8520
a13c4696
MK
85212016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8522
8523 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8524 (alloc_jump_pad_buffer): New function.
8525 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8526 (alloc_jump_pad_buffer): New function.
8527 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8528 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8529 (alloc_jump_pad_buffer): New function.
8530 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8531 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8532 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8533 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8534
1cda1512
MK
85352016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8536
8537 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8538 * linux-amd64-ipa.c: Likewise.
8539 * linux-i386-ipa.c: Likewise.
8540 * linux-s390-ipa.c: Likewise.
8541 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8542 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8543 set_trace_state_variable_value_ptr.
8544 (struct ipa_sym_addresses): Likewise.
8545 (symbol_list): Likewise.
8546 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8547 accessing gdb_collect directly.
8548 (gdb_collect_ptr_type): New typedef.
8549 (get_raw_reg_ptr_type): New typedef.
8550 (get_trace_state_variable_value_ptr_type): New typedef.
8551 (set_trace_state_variable_value_ptr_type): New typedef.
8552 (gdb_collect_ptr): New global.
8553 (get_raw_reg_ptr): New global.
8554 (get_trace_state_variable_value_ptr): New global.
8555 (set_trace_state_variable_value_ptr): New global.
8556 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8557 accessing get_raw_reg directly.
8558 (get_get_tsv_func_addr): Likewise for
8559 get_trace_state_variable_value_ptr.
8560 (get_set_tsv_func_addr): Likewise for
8561 set_trace_state_variable_value_ptr.
8562 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8563
72fb5488
SM
85642016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8565
8566 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8567
28170b88
MK
85682016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8569
8570 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8571 packets.
8572 (relocate_instruction): Remove own_buf.
8573 * server.c (own_buf): Make global.
8574 (handle_v_requests): Make global.
8575 * server.h (own_buf): New declaration.
8576 (handle_v_requests): New prototype.
8577
f39e8743
MK
85782016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8579
8580 PR 18377
8581 * linux-s390-low.c (add_insns): New function.
8582 (s390_emit_prologue): New function.
8583 (s390_emit_epilogue): New function.
8584 (s390_emit_add): New function.
8585 (s390_emit_sub): New function.
8586 (s390_emit_mul): New function.
8587 (s390_emit_lsh): New function.
8588 (s390_emit_rsh_signed): New function.
8589 (s390_emit_rsh_unsigned): New function.
8590 (s390_emit_ext): New function.
8591 (s390_emit_log_not): New function.
8592 (s390_emit_bit_and): New function.
8593 (s390_emit_bit_or): New function.
8594 (s390_emit_bit_xor): New function.
8595 (s390_emit_bit_not): New function.
8596 (s390_emit_equal): New function.
8597 (s390_emit_less_signed): New function.
8598 (s390_emit_less_unsigned): New function.
8599 (s390_emit_ref): New function.
8600 (s390_emit_if_goto): New function.
8601 (s390_emit_goto): New function.
8602 (s390_write_goto_address): New function.
8603 (s390_emit_litpool): New function.
8604 (s390_emit_const): New function.
8605 (s390_emit_call): New function.
8606 (s390_emit_reg): New function.
8607 (s390_emit_pop): New function.
8608 (s390_emit_stack_flush): New function.
8609 (s390_emit_zero_ext): New function.
8610 (s390_emit_swap): New function.
8611 (s390_emit_stack_adjust): New function.
8612 (s390_emit_set_r2): New function.
8613 (s390_emit_int_call_1): New function.
8614 (s390_emit_void_call_2): New function.
8615 (s390_emit_eq_goto): New function.
8616 (s390_emit_ne_goto): New function.
8617 (s390_emit_lt_goto): New function.
8618 (s390_emit_le_goto): New function.
8619 (s390_emit_gt_goto): New function.
8620 (s390_emit_ge_goto): New function.
8621 (s390x_emit_prologue): New function.
8622 (s390x_emit_epilogue): New function.
8623 (s390x_emit_add): New function.
8624 (s390x_emit_sub): New function.
8625 (s390x_emit_mul): New function.
8626 (s390x_emit_lsh): New function.
8627 (s390x_emit_rsh_signed): New function.
8628 (s390x_emit_rsh_unsigned): New function.
8629 (s390x_emit_ext): New function.
8630 (s390x_emit_log_not): New function.
8631 (s390x_emit_bit_and): New function.
8632 (s390x_emit_bit_or): New function.
8633 (s390x_emit_bit_xor): New function.
8634 (s390x_emit_bit_not): New function.
8635 (s390x_emit_equal): New function.
8636 (s390x_emit_less_signed): New function.
8637 (s390x_emit_less_unsigned): New function.
8638 (s390x_emit_ref): New function.
8639 (s390x_emit_if_goto): New function.
8640 (s390x_emit_const): New function.
8641 (s390x_emit_call): New function.
8642 (s390x_emit_reg): New function.
8643 (s390x_emit_pop): New function.
8644 (s390x_emit_stack_flush): New function.
8645 (s390x_emit_zero_ext): New function.
8646 (s390x_emit_swap): New function.
8647 (s390x_emit_stack_adjust): New function.
8648 (s390x_emit_int_call_1): New function.
8649 (s390x_emit_void_call_2): New function.
8650 (s390x_emit_eq_goto): New function.
8651 (s390x_emit_ne_goto): New function.
8652 (s390x_emit_lt_goto): New function.
8653 (s390x_emit_le_goto): New function.
8654 (s390x_emit_gt_goto): New function.
8655 (s390x_emit_ge_goto): New function.
8656 (s390_emit_ops): New function.
8657 (struct linux_target_ops): Fill in emit_ops hook.
8658
abd9baf9
MK
86592016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8660
8661 PR 18377
8662 * Makefile.in: Add s390 IPA files.
8663 * configure.srv: Build IPA for s390.
8664 * linux-s390-ipa.c: New file.
8665 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8666 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8667 (tdesc_s390_linux32): Likewise.
8668 (init_registers_s390_linux32v1): Likewise.
8669 (tdesc_s390_linux32v1): Likewise.
8670 (init_registers_s390_linux32v2): Likewise.
8671 (tdesc_s390_linux32v2): Likewise.
8672 (init_registers_s390_linux64): Likewise.
8673 (tdesc_s390_linux64): Likewise.
8674 (init_registers_s390_linux64v1): Likewise.
8675 (tdesc_s390_linux64v1): Likewise.
8676 (init_registers_s390_linux64v2): Likewise.
8677 (tdesc_s390_linux64v2): Likewise.
8678 (init_registers_s390_te_linux64): Likewise.
8679 (tdesc_s390_te_linux64): Likewise.
8680 (init_registers_s390_vx_linux64): Likewise.
8681 (tdesc_s390_vx_linux64): Likewise.
8682 (init_registers_s390_tevx_linux64): Likewise.
8683 (tdesc_s390_tevx_linux64): Likewise.
8684 (init_registers_s390x_linux64): Likewise.
8685 (tdesc_s390x_linux64): Likewise.
8686 (init_registers_s390x_linux64v1): Likewise.
8687 (tdesc_s390x_linux64v1): Likewise.
8688 (init_registers_s390x_linux64v2): Likewise.
8689 (tdesc_s390x_linux64v2): Likewise.
8690 (init_registers_s390x_te_linux64): Likewise.
8691 (tdesc_s390x_te_linux64): Likewise.
8692 (init_registers_s390x_vx_linux64): Likewise.
8693 (tdesc_s390x_vx_linux64): Likewise.
8694 (init_registers_s390x_tevx_linux64): Likewise.
8695 (tdesc_s390x_tevx_linux64): Likewise.
8696 (have_hwcap_s390_vx): New static variable.
8697 (s390_arch_setup): Fill have_hwcap_s390_vx.
8698 (s390_get_thread_area): New function.
8699 (s390_ft_entry_gpr_esa): New const.
8700 (s390_ft_entry_gpr_zarch): New const.
8701 (s390_ft_entry_misc): New const.
8702 (s390_ft_entry_fr): New const.
8703 (s390_ft_entry_vr): New const.
8704 (s390_ft_main_31): New const.
8705 (s390_ft_main_64): New const.
8706 (s390_ft_exit_fr): New const.
8707 (s390_ft_exit_vr): New const.
8708 (s390_ft_exit_misc): New const.
8709 (s390_ft_exit_gpr_esa): New const.
8710 (s390_ft_exit_gpr_zarch): New const.
8711 (append_insns): New function.
8712 (s390_relocate_instruction): New function.
8713 (s390_install_fast_tracepoint_jump_pad): New function.
8714 (s390_get_min_fast_tracepoint_insn_len): New function.
8715 (s390_get_ipa_tdesc_idx): New function.
8716 (struct linux_target_ops): Wire in the above functions.
8717 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8718 * linux-s390-tdesc.h: New file.
8719
a4105d04
MK
87202016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8721
8722 * linux-s390-low.c (s390_supports_tracepoints): New function.
8723 (struct linux_target_ops): Fill supports_tracepoints hook.
8724
35ac8b3e
YQ
87252016-03-18 Yao Qi <yao.qi@linaro.org>
8726
8727 * linux-low.c (lwp_signal_can_be_delivered): New function.
8728 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8729
94610ec4
YQ
87302016-03-18 Yao Qi <yao.qi@linaro.org>
8731
8732 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8733 0 if signal is enqueued. Remove 'signal' from one debugging
8734 message. Move one debugging message to some lines below.
8735 Remove code setting 'signal' to 0.
8736
80aea927
YQ
87372016-03-18 Yao Qi <yao.qi@linaro.org>
8738
8739 * linux-low.c (linux_low_filter_event): Remove redundant
8740 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8741
b04fd3be
MK
87422016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8743
8744 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8745 (struct linux_target_ops): Wire in the above.
8746
c40c8d4b
YQ
87472016-03-03 Yao Qi <yao.qi@linaro.org>
8748
8749 * linux-low.c: Update comments to start_step_over.
8750
0f8288ae
YQ
87512016-03-03 Yao Qi <yao.qi@linaro.org>
8752
8753 PR server/19736
8754 * linux-low.c (handle_extended_wait): Set child suspended
8755 if event_lwp->bp_reinsert isn't zero.
8756
fdbd04a8
YQ
87572016-03-02 Yao Qi <yao.qi@linaro.org>
8758
8759 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8760 enqueue_pending_signal.
8761
6896a8fa
MK
87622016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8763
8764 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8765 is actually loaded.
8766
ab503087
MK
87672016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8768
8769 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8770 (s390_regmap_3264) [!__s390x__]: New global.
8771 (s390_collect_ptrace_register): Skip map entries containing -1.
8772 (s390_supply_ptrace_register): Ditto.
8773 (s390_fill_gprs_high): New function.
8774 (s390_store_gprs_high): New function.
8775 (s390_regsets): Add NT_S390_HIGH_GPRS.
8776 (s390_get_hwcap): Enable on 31-bit.
8777 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8778 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8779 Detect NT_S390_HIGH_GPRS.
8780 (s390_usrregs_info_3264): Enable on 31-bit.
8781 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8782 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8783
ae91f625
MK
87842016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8785
8786 PR gdb/13808
8787 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8788 * configure.srv: Ditto.
8789 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8790 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8791 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8792 (init_registers_amd64_linux): Remove prototype.
8793 (tdesc_amd64_linux): Remove declaration.
8794 (get_ipa_tdesc): New function.
8795 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8796 initialize remaining tdescs.
8797 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8798 (init_registers_i386_linux): Remove prototype.
8799 (tdesc_i386_linux): Remove declaration.
8800 (get_ipa_tdesc): New function.
8801 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8802 initialize remaining tdescs.
8803 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8804 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8805 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8806 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8807 (x86_get_ipa_tdesc_idx): New function.
8808 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8809 * linux-x86-tdesc.h: New file.
8810 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8811 (target_get_ipa_tdesc_idx): New macro.
8812 * tracepoint.c (ipa_tdesc_idx): New macro.
8813 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8814 (symbol_list): Add ipa_tdesc_idx.
8815 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8816 (ipa_tdesc): Remove.
8817 (ipa_tdesc_idx): New variable.
8818 (get_context_regcache): Use get_ipa_tdesc.
8819 (gdb_collect): Ditto.
8820 (gdb_probe): Ditto.
8821 * tracepoint.h (get_ipa_tdesc): New prototype.
8822 (ipa_tdesc): Remove.
8823
e7ad2f14
PA
88242016-02-24 Pedro Alves <palves@redhat.com>
8825
8826 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8827 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8828 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8829 Factor out common code between the USE_SIGTRAP_SIGINFO and
8830 !USE_SIGTRAP_SIGINFO blocks.
8831 (linux_low_filter_event): Call save_stop_reason instead of
8832 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8833 Update comments.
8834 (linux_wait_1): Update comments.
8835
657f9cde
WW
88362016-02-24 Wei-cheng Wang <cole945@gmail.com>
8837
8838 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8839 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8840 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8841 ppc_insert_point, ppc_remove_point.
8842
b00b61e1
MK
88432016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8844
8845 * linux-s390-low.c (s390_supports_z_point_type): New function.
8846 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8847
553cb527
YQ
88482016-02-16 Yao Qi <yao.qi@linaro.org>
8849
8850 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8851 PC. Get pc from regcache_read_pc.
8852
a5652c21
YQ
88532016-02-12 Yao Qi <yao.qi@linaro.org>
8854
8855 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8856 or linux_get_pc_32bit.
8857 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8858
ed443b61
YQ
88592016-02-12 Yao Qi <yao.qi@linaro.org>
8860
8861 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8862 arm_linux_get_next_pcs_fixup.
8863
020ecd38
MK
88642016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8865
8866 * tracepoint.c (x_tracepoint_action_download): Change
8867 write_inferior_data_ptr to write_inferior_data_pointer.
8868 (cmd_qtstart): Likewise.
8869 (write_inferior_data_ptr): Remove.
8870 (download_agent_expr): Change write_inferior_data_ptr to
8871 write_inferior_data_pointer.
8872 (download_tracepoint_1): Likewise.
8873 (download_tracepoint): Likewise.
8874 (download_trace_state_variables): Likewise.
8875
7cae9051
WW
88762016-02-11 Wei-cheng Wang <cole945@gmail.com>
8877 Marcin Kościelnicki <koriakin@0x04.net>
8878
8879 * tracepoint.c (struct tracepoint_action_ops): Remove.
8880 (struct tracepoint_action): Remove ops.
8881 (m_tracepoint_action_download, r_tracepoint_action_download)
8882 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8883 size and offset accordingly.
8884 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8885 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8886 (tracepoint_action_send, tracepoint_action_download): New functions.
8887 Helpers for trace action handlers.
8888 (add_tracepoint_action): Remove setup actions ops.
8889 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8890
9f6a71b4
YQ
88912016-02-10 Yao Qi <yao.qi@linaro.org>
8892
8893 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8894
1e94266c
SM
88952016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8896
8897 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8898 to AC_OUTPUT.
8899 * configure: Regenerate.
8900
8adce034
SM
89012016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8902
8903 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8904 void * to gdb_byte *.
8905 * linux-low.c (siginfo_fixup): Likewise.
8906 (linux_xfer_siginfo): Likewise.
8907 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8908 Likewise.
8909 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8910
93813b37
WT
89112016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8912
8913 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8914 to srv_tgtobj.
8915 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8916 to srv_tgtobj.
8917 * linux-x86-low.c [__x86_64__]: Include
8918 "nat/amd64-linux-siginfo.h".
8919 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8920 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8921 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8922 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8923 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8924 (cpt_si_fd, si_timerid, si_overrun): Move from
8925 nat/amd64-linux-siginfo.c.
8926 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8927
8424cc97
SM
89282016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8929
8930 * server.c (skip_to_semicolon): Remove.
8931 (process_point_options): Use strchrnul instead of
8932 skip_to_semicolon.
8933
4d18591b
YQ
89342016-01-26 Yao Qi <yao.qi@linaro.org>
8935
8936 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8937 * linux-low.c (install_software_single_step_breakpoints): Don't
8938 call regcache_read_pc.
8939 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8940 argument pc.
8941
d8020970
YQ
89422016-01-26 Yao Qi <yao.qi@linaro.org>
8943
8944 * linux-low.c (install_software_single_step_breakpoints): Call
8945 regcache_read_pc instead of get_pc.
8946
8b207339
YQ
89472016-01-26 Yao Qi <yao.qi@linaro.org>
8948
8949 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8950 (unblock_async_io): Rename to ...
8951 (block_unblock_async_io): ... it. New function.
8952 (enable_async_io): Don't install SIGIO handler. Unblock it
8953 instead.
8954 (disable_async_io): Don't ignore SIGIO. Block it instead.
8955 (initialize_async_io): Install SIGIO handler. Don't call
8956 unblock_async_io.
8957
18879fef
YQ
89582016-01-26 Yao Qi <yao.qi@linaro.org>
8959
8960 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8961 first character is '\003', call *the_target->request_interrupt.
8962
a0f8e08a
YQ
89632016-01-25 Yao Qi <yao.qi@linaro.org>
8964
8965 * remote-utils.c (new_thread_notify): Remove.
8966 (dead_thread_notify): Likewise.
8967 * remote-utils.h (new_thread_notify): Remove declaration.
8968 (dead_thread_notify): Likewise.
8969
cc5fd9ab
MK
89702016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8971
8972 * gdb.trace/pending.exp: Fix expected message on continue.
8973
99e8eb11
MK
89742016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8975
8976 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8977 it works properly on big-endian machines where sizeof (CORE_ADDR)
8978 != sizeof (void *).
8979
a994041d
PA
89802016-01-21 Pedro Alves <palves@redhat.com>
8981
8982 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8983 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8984 * configure: Regenerate.
8985
f7a6a40d
YQ
89862016-01-21 Yao Qi <yao.qi@linaro.org>
8987
8988 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8989 is_thumb and set it according to CPSR saved on the stack.
8990 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8991 arm_sigreturn_next_pc.
8992
6f69e520
YQ
89932016-01-18 Yao Qi <yao.qi@linaro.org>
8994
8995 * linux-low.c (linux_set_pc_64bit): New function.
8996 (linux_get_pc_64bit): New function.
8997 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8998 Declare.
8999 * linux-sparc-low.c (debug_threads): Remove declaration.
9000 (sparc_get_pc): Remove.
9001 (the_low_target): Use linux_get_pc_64bit instead of
9002 sparc_get_pc.
9003 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9004 (the_low_target): Use linux_get_pc_64bit and
9005 linux_set_pc_64bit.
9006
276d4552
YQ
90072016-01-18 Yao Qi <yao.qi@linaro.org>
9008
9009 * linux-arm-low.c (debug_threads): Remove declaration.
9010 (arm_get_pc, arm_set_pc): Remove.
9011 (the_low_target): Use linux_get_pc_32bit and
9012 linux_set_pc_32bit.
9013 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9014 (the_low_target): Use linux_get_pc_32bit and
9015 linux_set_pc_32bit.
9016 * linux-cris-low.c (debug_threads): Remove declaration.
9017 (cris_get_pc, cris_set_pc,): Remove.
9018 (the_low_target): Use linux_get_pc_32bit and
9019 linux_set_pc_32bit.
9020 * linux-crisv32-low.c (debug_threads): Remove declaration.
9021 (cris_get_pc, cris_set_pc): Remove.
9022 (the_low_target): Use linux_get_pc_32bit and
9023 linux_set_pc_32bit.
9024 * linux-low.c: Include inttypes.h.
9025 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9026 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9027 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9028 (the_low_target): Use linux_get_pc_32bit and
9029 linux_set_pc_32bit.
9030 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9031 (the_low_target): Use linux_get_pc_32bit and
9032 linux_set_pc_32bit.
9033 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9034 (the_low_target): Use linux_get_pc_32bit and
9035 linux_set_pc_32bit.
9036 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9037 (the_low_target): Use linux_get_pc_32bit and
9038 linux_set_pc_32bit.
9039 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9040 (the_low_target): Use linux_get_pc_32bit and
9041 linux_set_pc_32bit.
9042
eb0edac8
GB
90432016-01-18 Gary Benson <gbenson@redhat.com>
9044
9045 * configure.ac (AC_FUNC_FORK): New check.
9046 * config.in: Regenerate.
9047 * configure: Likewise.
9048
1b451dda
YQ
90492016-01-14 Yao Qi <yao.qi@linaro.org>
9050
9051 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9052 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9053 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9054 arm_get_next_pcs_ctor.
9055
82075af2
JS
90562016-01-12 Josh Stone <jistone@redhat.com>
9057 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9058
9059 * inferiors.h: Include "gdb_vecs.h".
9060 (struct process_info): Add syscalls_to_catch.
9061 * inferiors.c (remove_process): Free syscalls_to_catch.
9062 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9063 syscall_return stops.
9064 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9065 * server.c (handle_general_set): Handle QCatchSyscalls.
9066 (handle_query): Report support for QCatchSyscalls.
9067 * target.h (struct target_ops): Add supports_catch_syscall.
9068 (target_supports_catch_syscall): New macro.
9069 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9070 (struct lwp_info): Add syscall_state.
9071 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9072 Maintain syscall_state and syscalls_to_catch across exec.
9073 (get_syscall_trapinfo): New function, proxy to the_low_target.
9074 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9075 (linux_low_filter_event): Toggle syscall_state entry/return for
9076 syscall traps, and set it ignored for all others.
9077 (gdb_catching_syscalls_p): New function.
9078 (gdb_catch_this_syscall_p): New function.
9079 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9080 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9081 (linux_supports_catch_syscall): New function.
9082 (linux_target_ops): Install it.
9083 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9084 (the_low_target): Install it.
9085
8f13a3ce
MF
90862016-01-12 Mike Frysinger <vapier@gentoo.org>
9087
9088 * acinclude.m4: Include new ../warning.m4 file.
9089 * configure: Regenerated.
9090 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9091
5b3da067
MF
90922016-01-12 Mike Frysinger <vapier@gentoo.org>
9093
9094 * ax.c (is_goto_target): Mark static.
9095 * linux-low.c (register_addr): Likewise.
9096 (linux_fetch_registers, linux_store_registers): Likewise.
9097 * mem-break.c (any_persistent_commands): Fix old prototype.
9098 (add_commands_to_breakpoint): Mark static.
9099 * regcache.c (find_register_by_name): Delete unused func.
9100 * remote-utils.c (hex_or_minus_one): Mark static.
9101 * server.c (monitor_show_help): Mark static.
9102 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9103 handle_v_requests): Likewise.
9104
bc504a31
PA
91052016-01-12 Pedro Alves <palves@redhat.com>
9106
9107 Remove use of the registered trademark symbol throughout.
9108
5a0dd67a
YQ
91092016-01-08 Yao Qi <yao.qi@linaro.org>
9110
9111 * remote-utils.c (getpkt): If c is '\003', call target hook
9112 request_interrupt.
9113
b2ca446f
YQ
91142016-01-06 Yao Qi <yao.qi@linaro.org>
9115
9116 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9117 linux-aarch32-low.c.
9118 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9119 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9120 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9121 (thumb2_breakpoint): Declare.
9122 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9123 linux-aarch32-low.h.
9124 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9125 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9126 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9127
edd88788
JB
91282016-01-01 Joel Brobecker <brobecker@adacore.com>
9129
9130 * gdbreplay.c (gdbreplay_version): Change copyright year in
9131 version message.
9132 * server.c (gdbserver_version): Likewise.
9133
65da7f14
PP
91342015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9135
9136 * server.c (crc32_table): Delete.
9137 (crc32): Use libiberty's xcrc32 function.
9138
4abd5ed2
JB
91392015-12-22 Joel Brobecker <brobecker@adacore.com>
9140
9141 * lynx-low.c (lynx_delete_thread_callback): New function.
9142 (lynx_mourn): Properly delete our process and all of its
9143 threads. Remove call to clear_inferiors.
9144
0e50fe5c
JB
91452015-12-22 Joel Brobecker <brobecker@adacore.com>
9146
9147 * target.c (thread_search_callback): Add check that
9148 the thread_stopped target callback is not NULL before
9149 calling it.
9150
35adc03f
YQ
91512015-12-21 Yao Qi <yao.qi@linaro.org>
9152
9153 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9154 arm breakpoint.
9155
bd2b2909
AT
91562015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9157
9158 * server.c (handle_query): Call target_supports_software_single_step.
9159
7fe5e27e
AT
91602015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9161
9162 * linux-low.c (single_step): New function.
9163 (linux_resume_one_lwp_throw): Call single_step.
9164 (start_step_over): Likewise.
9165
d9311bfa
AT
91662015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9167
9168 * Makefile.in (SFILES): Append arch/arm-linux.c,
9169 arch/arm-get-next-pcs.c.
9170 (arm-linux.o): New rule.
9171 (arm-get-next-pcs.o): New rule.
9172 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9173 arm-linux.o.
9174 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9175 to linux-aarch32-low.c.
9176 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9177 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9178 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9179 (thumb2_breakpoint_len): Likewise.
9180 (arm_is_thumb_mode): Make non-static.
9181 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9182 from linux-aarch32-low.c.
9183 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9184 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9185 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9186 (thumb2_breakpoint_len): Likewise.
9187 (arm_is_thumb_mode): New declaration.
9188 * linux-arm-low.c: Include arch/arm-linux.h
9189 aarch/arm-get-next-pcs.h, sys/syscall.h.
9190 (get_next_pcs_ops): New struct.
9191 (get_next_pcs_addr_bits_remove): New function.
9192 (get_next_pcs_is_thumb): New function.
9193 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9194 (arm_sigreturn_next_pc): Likewise.
9195 (get_next_pcs_syscall_next_pc): Likewise.
9196 (arm_gdbserver_get_next_pcs): Likewise.
9197 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9198 Initialize.
9199 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9200 * server.h: Include gdb_vecs.h.
9201
68ce2059
AT
92022015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9203
9204 * Makefile.in (SFILES): Append common/common-regcache.c.
9205 (OBS): Append common-regcache.o.
9206 (common-regcache.o): New rule.
9207 * regcache.c (init_register_cache): Initialize cache to
9208 REG_UNAVAILABLE.
9209 (regcache_raw_read_unsigned): New function.
9210 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9211 register_status enum.
9212
fa5308bd
AT
92132015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9214
9215 * linux-aarch64-low.c (the_low_targets): Rename
9216 breakpoint_reinsert_addr to get_next_pcs.
9217 * linux-arm-low.c (the_low_targets): Likewise.
9218 * linux-bfin-low.c (the_low_targets): Likewise.
9219 * linux-cris-low.c (the_low_targets): Likewise.
9220 * linux-crisv32-low.c (the_low_targets): Likewise.
9221 * linux-low.c (can_software_single_step): Likewise.
9222 (install_software_single_step_breakpoints): New function.
9223 (start_step_over): Use install_software_single_step_breakpoints.
9224 * linux-low.h: New CORE_ADDR vector.
9225 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9226 get_next_pcs.
9227 * linux-mips-low.c (the_low_targets): Likewise.
9228 * linux-nios2-low.c (the_low_targets): Likewise.
9229 * linux-sparc-low.c (the_low_targets): Likewise.
9230
4a6ed09b
PA
92312015-12-17 Pedro Alves <palves@redhat.com>
9232
9233 * linux-low.c (linux_kill_one_lwp): Remove references to
9234 LinuxThreads.
9235 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9236 to 'kill'.
9237 (linux_init_signals): Delete.
9238 (initialize_low): Adjust.
9239 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9240
7544db95
PA
92412015-12-16 Pedro Alves <palves@redhat.com>
9242
9243 * configure.ac (compiler warning flags): When testing a
9244 -Wno-foo option, check whether -Wfoo works instead.
9245 * configure: Regenerate.
9246
8020350c
DB
92472015-12-11 Don Breazeal <donb@codesourcery.com>
9248
9249 * server.c (process_serial_event): Don't exit from gdbserver
9250 in remote mode if there are still active inferiors.
9251
db91f502
YQ
92522015-12-11 Yao Qi <yao.qi@linaro.org>
9253
9254 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9255 arm_breakpoint_at if the process is 32-bit.
9256
b37a6290
YQ
92572015-12-11 Yao Qi <yao.qi@linaro.org>
9258
9259 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9260 arm breakpoint.
9261
17b1509a
YQ
92622015-12-07 Yao Qi <yao.qi@linaro.org>
9263
9264 * configure.srv: Append arm.o to srv_tgtobj for
9265 aarch64*-*-linux* target.
9266 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9267 from linux-arm-low.c.
9268 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9269 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9270 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9271 (thumb2_breakpoint_len): Likewise.
9272 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9273 (arm_breakpoint_kinds): Likewise.
9274 (arm_breakpoint_kind_from_pc): Likewise.
9275 (arm_sw_breakpoint_from_kind): Likewise.
9276 (arm_breakpoint_kind_from_current_state): Likewise.
9277 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9278 (arm_sw_breakpoint_from_kind): Declare.
9279 (arm_breakpoint_kind_from_current_state): Declare.
9280 (arm_breakpoint_at): Declare.
9281 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9282 arm_sw_breakpoint_from_kind if process is 32-bit.
9283 (aarch64_breakpoint_kind_from_pc): New function.
9284 (aarch64_breakpoint_kind_from_current_state): New function.
9285 (the_low_target): Initialize fields breakpoint_kind_from_pc
9286 and breakpoint_kind_from_current_state.
9287 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9288 linux-aarch32-low.c.
9289 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9290 (arm_breakpoint, arm_breakpoint_len): Likewise.
9291 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9292 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9293 (arm_is_thumb_mode): Likewise.
9294 (arm_breakpoint_at): Likewise.
9295 (arm_breakpoint_kind_from_pc): Likewise.
9296 (arm_sw_breakpoint_from_kind): Likewise.
9297 (arm_breakpoint_kind_from_current_state): Likewise.
9298
9299 Revert:
9300 2015-08-04 Yao Qi <yao.qi@linaro.org>
9301
9302 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9303 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9304 * server.c (extended_protocol): Remove "static".
9305 * server.h (extended_protocol): Declare it.
9306
ece66d65
JS
93072015-12-04 Josh Stone <jistone@redhat.com>
9308
9309 * target.h (struct target_ops) <arch_setup>: Rename to ...
9310 (struct target_ops) <post_create_inferior>: ... this.
9311 (target_arch_setup): Rename to ...
9312 (target_post_create_inferior): ... this, calling post_create_inferior.
9313 * server.c (start_inferior): Update target_arch_setup calls to
9314 target_post_create_inferior.
9315 * linux-low.c (linux_low_ptrace_options): Forward declare.
9316 (linux_arch_setup): Update its comment for general use.
9317 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9318 (struct linux_target_ops): Use linux_post_create_inferior.
9319 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9320 to post_create_inferior.
9321 * nto-low.c (struct nto_target_ops): Likewise.
9322 * spu-low.c (struct spu_target_ops): Likewise.
9323 * win32-low.c (struct win32_target_ops): Likewise.
9324
e58c48b4
AT
93252015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9326
9327 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9328
fbec8956
AT
93292015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9330
9331 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9332 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9333 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9334 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9335 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9336 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9337 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9338 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9339 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9340 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9341 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9342 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9343
9b4c5f87
AT
93442015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9345
9346 * linux-low.c (linux_look_up_symbols): Don't call
9347 linux_supports_traceclone.
9348 * linux-low.h (thread_db_init): Remove use_events argument.
9349 * thread-db.c (thread_db_use_event): Remove global variable.
9350 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9351 (struct thread_db) <td_create_bp>: Remove field.
9352 (thread_db_create_event): Remove function.
9353 (thread_db_enable_reporting): Likewise.
9354 (find_one_thread): Don't check for thread_db_use_events.
9355 (attach_thread): Likewise.
9356 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9357 (try_thread_db_load_1): Don't check for thread_db_use_events.
9358 (thread_db_init): Remove use_events argument and thread events
9359 handling.
9360 (remove_thread_event_breakpoints): Remove function.
9361 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9362
7d00775e
AT
93632015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9364
9365 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9366 New function.
9367 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9368 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9369 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9370 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9371 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9372 Initialize.
9373 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9374 New function.
9375 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9376 * linux-low.c (can_hardware_single_step): Use
9377 supports_hardware_single_step.
9378 (can_software_single_step): New function.
9379 (start_step_over): Call can_software_single_step.
9380 (linux_supports_hardware_single_step): New function.
9381 (struct target_ops) <supports_software_single_step>: Initialize.
9382 * linux-low.h (struct linux_target_ops)
9383 <supports_hardware_single_step>: Initialize.
9384 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9385 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9386 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9387 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9388 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9389 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9390 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9391 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9392 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9393 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9394 Initialize.
9395 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9396 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9397 Initialize.
9398 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9399 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9400 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9401 New function.
9402 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9403 * target.h (struct target_ops): <supports_software_single_step>:
9404 New field.
9405 (target_supports_software_single_step): New macro.
9406
2d97cd35
AT
94072015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9408
9409 * linux-low.c (linux_wait_1): Fix pc advance condition.
9410 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9411 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9412
769ef81f
AT
94132015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9414
9415 * linux-arm-low.c (arm_is_thumb_mode): New function.
9416 (arm_breakpoint_at): Use arm_is_thumb_mode.
9417 (arm_breakpoint_kind_from_current_state): New function.
9418 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9419 Initialize.
9420 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9421 (linux_breakpoint_kind_from_current_state): New function.
9422 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9423 * linux-low.h (struct linux_target_ops)
9424 <breakpoint_kind_from_current_state>: New field.
9425 * target.h (struct target_ops): Likewise.
9426 (target_breakpoint_kind_from_current_state): New macro.
9427
1bebeeca
PA
94282015-11-30 Pedro Alves <palves@redhat.com>
9429
9430 * linux-low.c (linux_resume): Wake up the event loop before
9431 returning.
9432
a67a9fae
PA
94332015-11-30 Pedro Alves <palves@redhat.com>
9434
9435 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9436 check.
9437 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9438 to -1.
9439 * target.c (struct thread_search): New structure.
9440 (thread_search_callback): New function.
9441 (prev_general_thread): New global.
9442 (prepare_to_access_memory, done_accessing_memory): New functions.
9443 * target.h (prepare_to_access_memory, done_accessing_memory):
9444 Replace macros with function declarations.
9445
f2faf941
PA
94462015-11-30 Pedro Alves <palves@redhat.com>
9447
9448 PR 14618
9449 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9450 report TARGET_WAITKIND_NO_RESUMED.
9451 * remote-utils.c (prepare_resume_reply): Handle
9452 TARGET_WAITKIND_NO_RESUMED.
9453 * server.c (report_no_resumed): New global.
9454 (handle_query) <qSupported>: Handle "no-resumed+". Report
9455 "no-resumed+" support.
9456 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9457 return error if the client doesn't support no-resumed events.
9458 (push_stop_notification): New function.
9459 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9460 events if the client supports them.
9461
a681f9c9
PA
94622015-11-30 Pedro Alves <palves@redhat.com>
9463
9464 * linux-low.c (thread_still_has_status_pending_p): Don't check
9465 vCont;t here.
9466 (lwp_resumed): New function.
9467 (status_pending_p_callback): Return early if the LWP is not
9468 supposed to be resumed.
9469
65706a29
PA
94702015-11-30 Pedro Alves <palves@redhat.com>
9471
9472 * linux-low.c (handle_extended_wait): Assert that the LWP's
9473 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9474 thread create events, leave the new child's status pending.
9475 (linux_low_filter_event): If GDB wants to hear about thread exit
9476 events, leave the LWP marked dead and don't delete it.
9477 (linux_wait_for_event_filtered): Don't check for thread exit.
9478 (filter_exit_event): New function.
9479 (linux_wait_1): Use it, when returning an exit event.
9480 (linux_resume_one_lwp_throw): Assert that the LWP's
9481 waitstatus is TARGET_WAITKIND_IGNORE.
9482 * remote-utils.c (prepare_resume_reply): Handle
9483 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9484 * server.c (report_thread_events): New global.
9485 (handle_general_set): Handle QThreadEvents.
9486 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9487 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9488 TARGET_WAITKIND_THREAD_EXITED.
9489 * server.h (report_thread_events): Declare.
9490
56cf4bed
PA
94912015-11-30 Pedro Alves <palves@redhat.com>
9492
9493 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9494 the thread's last_resume_kind was resume_stop.
9495
500c1d85
PA
94962015-11-30 Pedro Alves <palves@redhat.com>
9497
9498 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9499 before returning.
9500
de979965
PA
95012015-11-30 Pedro Alves <palves@redhat.com>
9502
9503 * server.c (handle_v_requests): Handle vCtrlC.
9504
34c65914
PA
95052015-11-30 Pedro Alves <palves@redhat.com>
9506
9507 * gdbthread.h (find_any_thread_of_pid): Declare.
9508 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9509 functions.
9510 * server.c (handle_query): If current_thread is NULL, look for
9511 another thread of the selected process.
9512
79efa585 95132015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9514 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9515
9516 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9517 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9518 name in reply.
9519 * target.h (struct target_ops) <thread_name>: New field.
9520 (target_thread_name): New macro.
9521
80d82c19
JB
95222015-11-23 Joel Brobecker <brobecker@adacore.com>
9523
9524 * regcache.h (regcache_invalidate_pid): Add declaration.
9525 * regcache.c (regcache_invalidate_pid): New function, extracted
9526 from regcache_invalidate.
9527 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9528 Add trivial documentation comment.
9529 * lynx-low.c: Use regcache_invalidate_pid instead of
9530 regcache_invalidate.
9531
64da5dd5
JB
95322015-11-23 Joel Brobecker <brobecker@adacore.com>
9533
9534 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9535 and Elf64_auxv_t if the target is Android.
9536
37ce4055
DE
95372015-11-22 Doug Evans <xdje42@gmail.com>
9538
9539 * target.h: #include <sys/types.h>.
9540
06e03fff
PA
95412015-11-19 Pedro Alves <palves@redhat.com>
9542
9543 * linux-low.c (linux_process_qsupported): Change prototype.
9544 Adjust.
9545 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9546 Change prototype.
9547 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9548 and adjust to loop over all features.
9549 * server.c (handle_query) <qSupported>: Adjust to call
9550 target_process_qsupported once, passing it a vector of unprocessed
9551 features.
9552 * target.h (struct target_ops) <process_qsupported>: Change
9553 prototype.
9554 (target_process_qsupported): Adjust.
9555
9a084706
PA
95562015-11-19 Pedro Alves <palves@redhat.com>
9557
9558 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9559 mode.
9560 * configure: Regenerate.
9561
dad44a1f
PA
95622015-11-19 Pedro Alves <palves@redhat.com>
9563
9564 * configure: Regenerate.
9565
231c0592
YQ
95662015-11-19 Yao Qi <yao.qi@linaro.org>
9567
9568 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9569 type to uint32_t.
9570
6c1c9a8b
YQ
95712015-11-19 Yao Qi <yao.qi@linaro.org>
9572
9573 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9574 (struct aarch64_operand): Move enum out.
9575
9caa3311
YQ
95762015-11-19 Yao Qi <yao.qi@linaro.org>
9577
9578 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9579 struct user_fpsimd_state *.
9580 (aarch64_store_fpregset): Likewise.
9581
6a69a054
YQ
95822015-11-19 Yao Qi <yao.qi@linaro.org>
9583
9584 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9585 struct user_pt_regs *.
9586 (aarch64_store_gregset): Likewise.
9587
1798301e
PA
95882015-11-18 Pedro Alves <palves@redhat.com>
9589
9590 * Makefile.in (all_object_files): Add $IPA_OBJS.
9591
ce7715e2
PA
95922015-11-17 Pedro Alves <palves@redhat.com>
9593
9594 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9595 GDB_SIGNAL_0 and gdb_signal_to_string.
9596
c0879059
PA
95972015-11-17 Pedro Alves <palves@redhat.com>
9598
9599 * win32-low.c (handle_output_debug_string): Remove parameter.
9600 (win32_kill): Remove our_status local and adjust call to
9601 handle_output_debug_string.
9602 (get_child_debug_event): Adjust call to
9603 handle_output_debug_string.
9604
1996e237
SM
96052015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9606
9607 * linux-mips-low.c (mips_fill_gregset): Add cast.
9608 (mips_store_gregset): Likewise.
9609 (mips_fill_fpregset): Likewise.
9610 (mips_store_fpregset): Likewise.
9611
cbec665b
SM
96122015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9613
9614 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9615 priv.
9616
eb3e3c67
SM
96172015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9618
9619 * linux-mips-low.c (mips_linux_new_thread): Change type of
9620 watch_type to enum target_hw_bp_type.
9621
171de4b8
SM
96222015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9623
9624 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9625 Change return type to arm_hwbp_type.
9626
04248ead
SM
96272015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9628
9629 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9630 (arm_store_gregset): Likewise.
9631 * linux-arm-low.c (arm_get_hwcap): Likewise.
9632 (arm_read_description): Likewise.
9633
04b3479c
SM
96342015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9635
9636 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9637
2bc84e8a
SM
96382015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9639
9640 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9641 (ppc_fill_vsxregset): Likewise.
9642 (ppc_store_vsxregset): Likewise.
9643 (ppc_fill_vrregset): Likewise.
9644 (ppc_store_vrregset): Likewise.
9645 (ppc_fill_evrregset): Likewise.
9646 (ppc_store_evrregset): Likewise.
9647
e6c5bb05
SM
96482015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9649
9650 * linux-ppc-low.c (ppc_usrregs_info): Remove
9651 forward-declaration.
9652 (ppc_arch_setup): Move lower in file.
9653
7ea45d72
SM
96542015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9655
9656 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9657 (ps_pdwrite): Likewise.
9658
69291610
HW
96592015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9660
9661 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9662 to after assert checks.
9663
b42945fd
SM
96642015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9665
9666 * proc-service.c (ps_pdread): Add/adjust casts.
9667 (ps_pdwrite): Add/adjust casts.
9668
d6f85c84
SM
96692015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9670
9671 * server.c (handle_search_memory_1): Cast return value of
9672 memmem.
9673
f98cd059
SM
96742015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9675
9676 * server.c (write_qxfer_response): Change type of data to
9677 gdb_byte *.
9678
d2412fa5
PA
96792015-10-29 Pedro Alves <palves@redhat.com>
9680
9681 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9682
c17414a2
PA
96832015-10-29 Pedro Alves <palves@redhat.com>
9684
9685 * tracepoint.c (clear_installed_tracepoints): Add casts.
9686
e053fbc4
PA
96872015-10-29 Pedro Alves <palves@redhat.com>
9688
9689 * server.c (handle_v_cont, process_serial_event): Add enum
9690 gdb_signal casts to signal parsing code.
9691
add67df8
PA
96922015-10-29 Pedro Alves <palves@redhat.com>
9693
9694 * linux-low.h (NULL_REGSET): Define.
9695 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9696 * linux-arm-low.c (arm_regsets): Likewise.
9697 * linux-crisv32-low.c (cris_regsets): Likewise.
9698 * linux-m68k-low.c (m68k_regsets): Likewise.
9699 * linux-mips-low.c (mips_regsets): Likewise.
9700 * linux-nios2-low.c (nios2_regsets): Likewise.
9701 * linux-ppc-low.c (ppc_regsets): Likewise.
9702 * linux-s390-low.c (s390_regsets): Likewise.
9703 * linux-sh-low.c (sh_regsets): Likewise.
9704 * linux-sparc-low.c (sparc_regsets): Likewise.
9705 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9706 * linux-tile-low.c (tile_regsets): Likewise.
9707 * linux-x86-low.c (x86_regsets): Likewise.
9708 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9709
50bc912a
PA
97102015-10-29 Pedro Alves <palves@redhat.com>
9711
9712 * linux-low.h (NULL_REGSET): Define.
9713 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9714 * linux-arm-low.c (arm_regsets): Likewise.
9715 * linux-crisv32-low.c (cris_regsets): Likewise.
9716 * linux-m68k-low.c (m68k_regsets): Likewise.
9717 * linux-mips-low.c (mips_regsets): Likewise.
9718 * linux-nios2-low.c (nios2_regsets): Likewise.
9719 * linux-ppc-low.c (ppc_regsets): Likewise.
9720 * linux-s390-low.c (s390_regsets): Likewise.
9721 * linux-sh-low.c (sh_regsets): Likewise.
9722 * linux-sparc-low.c (sparc_regsets): Likewise.
9723 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9724 * linux-tile-low.c (tile_regsets): Likewise.
9725 * linux-x86-low.c (x86_regsets): Likewise.
9726 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9727
682b2546
DE
97282015-10-26 Doug Evans <dje@google.com>
9729
9730 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9731
963843d4
DE
97322015-10-26 Doug Evans <dje@google.com>
9733
9734 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9735
d41401ac
DE
97362015-10-26 Doug Evans <dje@google.com>
9737
9738 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9739 for debug_printf.
9740 (attach_thread, find_new_threads_callback): Ditto.
9741
3db28855
AT
97422015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9743
9744 * mem-break.h (set_breakpoint_data): Remove.
9745
fb78e89c
AT
97462015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9747
9748 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9749 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9750 (initialize_low): Remove set_breakpoint_data call.
9751 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9752 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9753 (initialize_low): Remove set_breakpoint_data call.
9754 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9755 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9756 (initialize_low): Remove set_breakpoint_data call.
9757
2e6ee069
AT
97582015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9759
9760 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9761 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9762 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9763 * target.h (target_breakpoint_kind_from_pc): New macro.
9764
1652a986
AT
97652015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9766
9767 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9768 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9769 the default breakpoint kind.
9770
abeead09
AT
97712015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9772
9773 * linux-arm-low.c (arm_supports_z_point_type): Add software
9774 breakpoint support.
9775
b0b4b501
AT
97762015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9777
9778 * linux-arm-low.c: Refactor breakpoint definitions.
9779 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9780 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9781
8689682c
AT
97822015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9783
9784 * Makefile.in: Add arm.c/o.
9785 * configure.srv: Likewise.
9786 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9787 (arm_breakpoint_kind_from_pc): New function.
9788 (arm_sw_breakpoint_from_kind): Return proper kind.
9789 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9790
27165294
AT
97912015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9792
9793 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9794 removal.
9795 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9796 (struct raw_breakpoint) <size>: Remove.
9797 (struct raw_breakpoint) <kind>: Add.
9798 (bp_size): New function.
9799 (bp_opcode): Likewise.
9800 (find_raw_breakpoint_at): Adjust for kind.
9801 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9802 (remove_memory_breakpoint): Adjust for kind call bp_size.
9803 (set_raw_breakpoint_at): Adjust for kind.
9804 (set_breakpoint): Likewise.
9805 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9806 (delete_raw_breakpoint): Adjust for kind.
9807 (delete_breakpoint): Likewise.
9808 (find_gdb_breakpoint): Likewise.
9809 (set_gdb_breakpoint_1): Likewise.
9810 (set_gdb_breakpoint): Likewise.
9811 (delete_gdb_breakpoint_1): Likewise.
9812 (delete_gdb_breakpoint): Likewise.
9813 (uninsert_raw_breakpoint): Likewise.
9814 (reinsert_raw_breakpoint): Likewise.
9815 (set_breakpoint_data): Remove.
9816 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9817 (check_mem_read): Adjust for kind call bp_size.
9818 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9819 (clone_one_breakpoint): Adjust for kind.
9820 * mem-break.h (set_gdb_breakpoint): Likewise.
9821 (delete_gdb_breakpoint): Likewise.
9822 * server.c (process_serial_event): Likewise.
9823
dd373349
AT
98242015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9825
9826 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9827 (struct linux_target_ops) <breakpoint>: Remove.
9828 (struct linux_target_ops) <breakpoint_len>: Remove.
9829 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9830 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9831 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9832 (arm_sw_breakpoint_from_kind): New function.
9833 * linux-bfin-low.c (bfin_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-cris-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-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9844 (struct linux_target_ops) <breakpoint>: Remove.
9845 (struct linux_target_ops) <breakpoint_len>: Remove.
9846 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9847 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9848 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9849 and sw_breakpoint_from_kind to increment the pc.
9850 (linux_breakpoint_kind_from_pc): New function.
9851 (linux_sw_breakpoint_from_kind): New function.
9852 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9853 (initialize_low): Call breakpoint_kind_from_pc and
9854 sw_breakpoint_from_kind to replace breakpoint_data/len.
9855 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9856 New field.
9857 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9858 * linux-m32r-low.c (m32r_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-m68k-low.c (m68k_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-mips-low.c (mips_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-nios2-low.c (nios2_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-ppc-low.c (ppc_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-s390-low.c (s390_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-sh-low.c (sh_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-sparc-low.c (sparc_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-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9899 (struct linux_target_ops) <breakpoint>: Remove.
9900 (struct linux_target_ops) <breakpoint_len>: Remove.
9901 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9902 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9903 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9904 * linux-x86-low.c (x86_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 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9910 (struct linux_target_ops) <breakpoint>: Remove.
9911 (struct linux_target_ops) <breakpoint_len>: Remove.
9912 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9913 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9914
4cd98a19
AT
99152015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9916
9917 * linux-cris-low.c (cris_get_pc): Remove void arg.
9918
774ee6d2
AR
99192015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9920
9921 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9922 variable name.
9923
833dcd29
AR
99242015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9925
9926 * inferiors.c (thread_pid_matches_callback): New function.
9927 (find_thread_process): New function.
9928 (remove_thread): Reset current_thread.
9929 (remove_process): Assert threads have been removed first.
9930
8d689ee5
YQ
99312015-10-15 Yao Qi <yao.qi@linaro.org>
9932
9933 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9934 if it is 3.
9935 (aarch64_remove_point): Likewise.
9936 * regcache.c (regcache_register_size): New function.
9937
1c2e1515
YQ
99382015-10-12 Yao Qi <yao.qi@linaro.org>
9939
9940 * linux-aarch64-low.c: Update all callers as emit_load_store
9941 is renamed to aarch64_emit_load_store.
9942
e1c587c3
YQ
99432015-10-12 Yao Qi <yao.qi@linaro.org>
9944
9945 * linux-aarch64-low.c: Update all callers of function renaming
9946 from emit_insn to aarch64_emit_insn.
9947
b6542f81
YQ
99482015-10-12 Yao Qi <yao.qi@linaro.org>
9949
9950 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9951 arch/aarch64-insn.h.
9952 (struct aarch64_memory_operand): Likewise.
9953 (ENCODE): Likewise.
9954 (emit_insn): Move to arch/aarch64-insn.c.
9955 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9956 (emit_load_store): Move to arch/aarch64-insn.c.
9957 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9958 (can_encode_int32): Remove.
9959
246994ce
YQ
99602015-10-12 Yao Qi <yao.qi@linaro.org>
9961
9962 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9963 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9964 (aarch64_relocate_instruction): Likewise.
9965 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9966 (struct aarch64_insn_visitor): Likewise.
9967
0badd99f
YQ
99682015-10-12 Yao Qi <yao.qi@linaro.org>
9969
9970 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9971 (struct aarch64_insn_visitor): New.
9972 (struct aarch64_insn_relocation_data): New.
9973 (aarch64_ftrace_insn_reloc_b): New function.
9974 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9975 (aarch64_ftrace_insn_reloc_cb): Likewise.
9976 (aarch64_ftrace_insn_reloc_tb): Likewise.
9977 (aarch64_ftrace_insn_reloc_adr): Likewise.
9978 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9979 (aarch64_ftrace_insn_reloc_others): Likewise.
9980 (visitor): New.
9981 (aarch64_relocate_instruction): Use visitor.
9982
dfaffe9d
YQ
99832015-10-12 Yao Qi <yao.qi@linaro.org>
9984
9985 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9986 int. Add argument buf.
9987 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9988 aarch64_relocate_instruction.
9989
70b439f0
YQ
99902015-10-12 Yao Qi <yao.qi@linaro.org>
9991
9992 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9993 argument insn. Remove local variable insn. Don't call
9994 target_read_uint32.
9995 (aarch64_install_fast_tracepoint_jump_pad): Call
9996 target_read_uint32.
9997
7781c06f
YQ
99982015-09-30 Yao Qi <yao.qi@linaro.org>
9999
10000 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10001 (emit_load_store_pair): Likewise.
10002
9a3c8263
SM
100032015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10004
10005 * dll.c (match_dll): Add cast(s).
10006 (unloaded_dll): Likewise.
10007 * linux-low.c (second_thread_of_pid_p): Likewise.
10008 (delete_lwp_callback): Likewise.
10009 (count_events_callback): Likewise.
10010 (select_event_lwp_callback): Likewise.
10011 (linux_set_resume_request): Likewise.
10012 * server.c (accumulate_file_name_length): Likewise.
10013 (emit_dll_description): Likewise.
10014 (handle_qxfer_threads_worker): Likewise.
10015 (visit_actioned_threads): Likewise.
10016 * thread-db.c (any_thread_of): Likewise.
10017 * tracepoint.c (same_process_p): Likewise.
10018 (match_blocktype): Likewise.
10019 (build_traceframe_info_xml): Likewise.
10020
224c3ddb
SM
100212015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10022
10023 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10024 assignment.
10025 (gdb_unparse_agent_expr): Likewise.
10026 * hostio.c (require_data): Likewise.
10027 (handle_pread): Likewise.
10028 * linux-low.c (disable_regset): Likewise.
10029 (fetch_register): Likewise.
10030 (store_register): Likewise.
10031 (get_dynamic): Likewise.
10032 (linux_qxfer_libraries_svr4): Likewise.
10033 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10034 (set_fast_tracepoint_jump): Likewise.
10035 (uninsert_fast_tracepoint_jumps_at): Likewise.
10036 (reinsert_fast_tracepoint_jumps_at): Likewise.
10037 (validate_inserted_breakpoint): Likewise.
10038 (clone_agent_expr): Likewise.
10039 * regcache.c (init_register_cache): Likewise.
10040 * remote-utils.c (putpkt_binary_1): Likewise.
10041 (decode_M_packet): Likewise.
10042 (decode_X_packet): Likewise.
10043 (look_up_one_symbol): Likewise.
10044 (relocate_instruction): Likewise.
10045 (monitor_output): Likewise.
10046 * server.c (handle_search_memory): Likewise.
10047 (handle_qxfer_exec_file): Likewise.
10048 (handle_qxfer_libraries): Likewise.
10049 (handle_qxfer): Likewise.
10050 (handle_query): Likewise.
10051 (handle_v_cont): Likewise.
10052 (handle_v_run): Likewise.
10053 (captured_main): Likewise.
10054 * target.c (write_inferior_memory): Likewise.
10055 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10056 * tracepoint.c (init_trace_buffer): Likewise.
10057 (add_tracepoint_action): Likewise.
10058 (add_traceframe): Likewise.
10059 (add_traceframe_block): Likewise.
10060 (cmd_qtdpsrc): Likewise.
10061 (cmd_qtdv): Likewise.
10062 (cmd_qtstatus): Likewise.
10063 (response_source): Likewise.
10064 (response_tsv): Likewise.
10065 (cmd_qtnotes): Likewise.
10066 (gdb_collect): Likewise.
10067 (initialize_tracepoint): Likewise.
10068
afbe19f8
PL
100692015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10070
10071 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10072 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10073 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10074 <NOP>: New.
10075 (enum aarch64_condition_codes): New enum.
10076 (w0): New static global.
10077 (fp): Likewise.
10078 (lr): Likewise.
10079 (struct aarch64_memory_operand) <type>: New
10080 MEMORY_OPERAND_POSTINDEX type.
10081 (postindex_memory_operand): New helper function.
10082 (emit_ret): New function.
10083 (emit_load_store_pair): New function, factored out of emit_stp
10084 with support for MEMORY_OPERAND_POSTINDEX.
10085 (emit_stp): Rewrite using emit_load_store_pair.
10086 (emit_ldp): New function.
10087 (emit_load_store): Likewise.
10088 (emit_ldr): Mention post-index instruction in comment.
10089 (emit_ldrh): New function.
10090 (emit_ldrb): New function.
10091 (emit_ldrsw): Mention post-index instruction in comment.
10092 (emit_str): Likewise.
10093 (emit_subs): New function.
10094 (emit_cmp): Likewise.
10095 (emit_and): Likewise.
10096 (emit_orr): Likewise.
10097 (emit_orn): Likewise.
10098 (emit_eor): Likewise.
10099 (emit_mvn): Likewise.
10100 (emit_lslv): Likewise.
10101 (emit_lsrv): Likewise.
10102 (emit_asrv): Likewise.
10103 (emit_mul): Likewise.
10104 (emit_sbfm): Likewise.
10105 (emit_sbfx): Likewise.
10106 (emit_ubfm): Likewise.
10107 (emit_ubfx): Likewise.
10108 (emit_csinc): Likewise.
10109 (emit_cset): Likewise.
10110 (emit_nop): Likewise.
10111 (emit_ops_insns): New helper function.
10112 (emit_pop): Likewise.
10113 (emit_push): Likewise.
10114 (aarch64_emit_prologue): New function.
10115 (aarch64_emit_epilogue): Likewise.
10116 (aarch64_emit_add): Likewise.
10117 (aarch64_emit_sub): Likewise.
10118 (aarch64_emit_mul): Likewise.
10119 (aarch64_emit_lsh): Likewise.
10120 (aarch64_emit_rsh_signed): Likewise.
10121 (aarch64_emit_rsh_unsigned): Likewise.
10122 (aarch64_emit_ext): Likewise.
10123 (aarch64_emit_log_not): Likewise.
10124 (aarch64_emit_bit_and): Likewise.
10125 (aarch64_emit_bit_or): Likewise.
10126 (aarch64_emit_bit_xor): Likewise.
10127 (aarch64_emit_bit_not): Likewise.
10128 (aarch64_emit_equal): Likewise.
10129 (aarch64_emit_less_signed): Likewise.
10130 (aarch64_emit_less_unsigned): Likewise.
10131 (aarch64_emit_ref): Likewise.
10132 (aarch64_emit_if_goto): Likewise.
10133 (aarch64_emit_goto): Likewise.
10134 (aarch64_write_goto_address): Likewise.
10135 (aarch64_emit_const): Likewise.
10136 (aarch64_emit_call): Likewise.
10137 (aarch64_emit_reg): Likewise.
10138 (aarch64_emit_pop): Likewise.
10139 (aarch64_emit_stack_flush): Likewise.
10140 (aarch64_emit_zero_ext): Likewise.
10141 (aarch64_emit_swap): Likewise.
10142 (aarch64_emit_stack_adjust): Likewise.
10143 (aarch64_emit_int_call_1): Likewise.
10144 (aarch64_emit_void_call_2): Likewise.
10145 (aarch64_emit_eq_goto): Likewise.
10146 (aarch64_emit_ne_goto): Likewise.
10147 (aarch64_emit_lt_goto): Likewise.
10148 (aarch64_emit_le_goto): Likewise.
10149 (aarch64_emit_gt_goto): Likewise.
10150 (aarch64_emit_ge_got): Likewise.
10151 (aarch64_emit_ops_impl): New static global variable.
10152 (aarch64_emit_ops): New target function, return
10153 &aarch64_emit_ops_impl.
10154 (struct linux_target_ops): Install it.
10155
bb903df0
PL
101562015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10157
10158 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10159 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10160 aarch64-ipa.o.
10161 * linux-aarch64-ipa.c: New file.
10162 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10163 and endian.h.
10164 (aarch64_get_thread_area): New target method.
10165 (extract_signed_bitfield): New helper function.
10166 (aarch64_decode_ldr_literal): New function.
10167 (enum aarch64_opcodes): New enum.
10168 (struct aarch64_register): New struct.
10169 (struct aarch64_operand): New struct.
10170 (x0): New static global.
10171 (x1): Likewise.
10172 (x2): Likewise.
10173 (x3): Likewise.
10174 (x4): Likewise.
10175 (w2): Likewise.
10176 (ip0): Likewise.
10177 (sp): Likewise.
10178 (xzr): Likewise.
10179 (aarch64_register): New helper function.
10180 (register_operand): Likewise.
10181 (immediate_operand): Likewise.
10182 (struct aarch64_memory_operand): New struct.
10183 (offset_memory_operand): New helper function.
10184 (preindex_memory_operand): Likewise.
10185 (enum aarch64_system_control_registers): New enum.
10186 (ENCODE): New macro.
10187 (emit_insn): New helper function.
10188 (emit_b): New function.
10189 (emit_bcond): Likewise.
10190 (emit_cb): Likewise.
10191 (emit_tb): Likewise.
10192 (emit_blr): Likewise.
10193 (emit_stp): Likewise.
10194 (emit_ldp_q_offset): Likewise.
10195 (emit_stp_q_offset): Likewise.
10196 (emit_load_store): Likewise.
10197 (emit_ldr): Likewise.
10198 (emit_ldrsw): Likewise.
10199 (emit_str): Likewise.
10200 (emit_ldaxr): Likewise.
10201 (emit_stxr): Likewise.
10202 (emit_stlr): Likewise.
10203 (emit_data_processing_reg): Likewise.
10204 (emit_data_processing): Likewise.
10205 (emit_add): Likewise.
10206 (emit_sub): Likewise.
10207 (emit_mov): Likewise.
10208 (emit_movk): Likewise.
10209 (emit_mov_addr): Likewise.
10210 (emit_mrs): Likewise.
10211 (emit_msr): Likewise.
10212 (emit_sevl): Likewise.
10213 (emit_wfe): Likewise.
10214 (append_insns): Likewise.
10215 (can_encode_int32_in): New helper function.
10216 (aarch64_relocate_instruction): New function.
10217 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10218 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10219 (struct linux_target_ops): Install aarch64_get_thread_area,
10220 aarch64_install_fast_tracepoint_jump_pad and
10221 aarch64_get_min_fast_tracepoint_insn_len.
10222
787749ea
PL
102232015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10224
10225 * Makefile.in (aarch64-insn.o): New rule.
10226 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10227
9812b2e6
YQ
102282015-09-21 Yao Qi <yao.qi@linaro.org>
10229
10230 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10231
18fe412b
YQ
102322015-09-21 Yao Qi <yao.qi@linaro.org>
10233
10234 * tracepoint.c (max_jump_pad_size): Remove.
10235
a0cc84cd
YQ
102362015-09-18 Yao Qi <yao.qi@linaro.org>
10237
10238 * linux-aarch64-low.c: Don't include sys/uio.h.
10239 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10240
d78908cf
WW
102412015-09-16 Wei-cheng Wang <cole945@gmail.com>
10242
10243 * tracepoint.c (eval_result_type): Change prototype.
10244 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10245
d57e0d50
PA
102462015-09-15 Pedro Alves <palves@redhat.com>
10247
10248 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10249 Check whether to report exec events instead of checking whether
10250 multiprocess is enabled.
10251
5a676acc
PA
102522015-09-15 Pedro Alves <palves@redhat.com>
10253
10254 PR remote/18965
10255 * remote-utils.c (prepare_resume_reply): Merge
10256 TARGET_WAITKIND_VFORK_DONE switch case with the
10257 TARGET_WAITKIND_FORKED case.
10258
7c5d0fad
YQ
102592015-09-15 Yao Qi <yao.qi@linaro.org>
10260
10261 * server.c (handle_query): Check string comparison using
10262 "else if" instead of "if".
10263
750ce8d1
YQ
102642015-09-15 Yao Qi <yao.qi@linaro.org>
10265
10266 * server.c (vCont_supported): New global variable.
10267 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10268 matches. Append ";vContSupported+" to own_buf.
10269 (handle_v_requests): Append ";s;S" to own_buf if target supports
10270 hardware single step or vCont_supported is false.
10271 (capture_main): Set vCont_supported to zero.
10272
70b90b91
YQ
102732015-09-15 Yao Qi <yao.qi@linaro.org>
10274
10275 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10276 it to ...
10277 (linux_supports_hardware_single_step): ... New function.
10278 (linux_target_ops): Update.
10279 * lynx-low.c (lynx_target_ops): Set field
10280 supports_hardware_single_step to target_can_do_hardware_single_step.
10281 * nto-low.c (nto_target_ops): Likewise.
10282 * spu-low.c (spu_target_ops): Likewise.
10283 * win32-low.c (win32_target_ops): Likewise.
10284 * target.c (target_can_do_hardware_single_step): New function.
10285 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10286 Remove. <supports_hardware_single_step>: New field.
10287 (target_supports_conditional_breakpoints): Remove.
10288 (target_supports_hardware_single_step): New macro.
10289 (target_can_do_hardware_single_step): Declare.
10290 * server.c (handle_query): Use target_supports_hardware_single_step
10291 instead of target_supports_conditional_breakpoints.
10292
ade90bde
YQ
102932015-09-15 Yao Qi <yao.qi@linaro.org>
10294
10295 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10296 function.
10297 (struct linux_target_ops the_low_target): Install
10298 aarch64_linux_siginfo_fixup.
10299
94585166
DB
103002015-09-11 Don Breazeal <donb@codesourcery.com>
10301 Luis Machado <lgustavo@codesourcery.com>
10302
10303 * linux-low.c (linux_mourn): Static declaration.
10304 (linux_arch_setup): Move in front of
10305 handle_extended_wait.
10306 (linux_arch_setup_thread): New function.
10307 (handle_extended_wait): Handle exec events. Call
10308 linux_arch_setup_thread. Make event_lwp argument a
10309 pointer-to-a-pointer.
10310 (check_zombie_leaders): Do not check stopped threads.
10311 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10312 (linux_low_filter_event): Add lwp and thread for exec'ing
10313 non-leader thread if leader thread has been deleted.
10314 Refactor code into linux_arch_setup_thread and call it.
10315 Pass child lwp pointer by reference to handle_extended_wait.
10316 (linux_wait_for_event_filtered): Update comment.
10317 (linux_wait_1): Prevent clobbering exec event status.
10318 (linux_supports_exec_events): New function.
10319 (linux_target_ops) <supports_exec_events>: Initialize new member.
10320 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10321 new member.
10322 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10323 * server.c (report_exec_events): New global variable.
10324 (handle_query): Handle qSupported query for exec-events feature.
10325 (captured_main): Initialize report_exec_events.
10326 * server.h (report_exec_events): Declare new global variable.
10327 * target.h (struct target_ops) <supports_exec_events>: New
10328 member.
10329 (target_supports_exec_events): New macro.
10330 * win32-low.c (win32_target_ops) <supports_exec_events>:
10331 Initialize new member.
10332
0568462b
MM
103332015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10334
10335 * linux-low.c (linux_low_enable_btrace): Remove.
10336 (linux_target_ops): Replace linux_low_enable_btrace with
10337 linux_enable_btrace.
10338
39edd165
YQ
103392015-09-03 Yao Qi <yao.qi@linaro.org>
10340
10341 * linux-aarch64-low.c (aarch64_insert_point): Call
10342 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10343 returns true.
10344
1db33b5a
UW
103452015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10346
10347 * linux-low.c (check_stopped_by_breakpoint): Use
10348 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10349
ab290430
PA
103502015-08-27 Pedro Alves <palves@redhat.com>
10351
10352 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10353
8d749320
SM
103542015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10355
6711b7f8
SM
10356 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10357 the XNEW-family equivalent.
8d749320
SM
10358 (compile_bytecodes): Likewise.
10359 * dll.c (loaded_dll): Likewise.
10360 * event-loop.c (append_callback_event): Likewise.
10361 (create_file_handler): Likewise.
10362 (create_file_event): Likewise.
10363 * hostio.c (handle_open): Likewise.
10364 * inferiors.c (add_thread): Likewise.
10365 (add_process): Likewise.
10366 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10367 * linux-arm-low.c (arm_new_process): Likewise.
10368 (arm_new_thread): Likewise.
10369 * linux-low.c (add_to_pid_list): Likewise.
10370 (linux_add_process): Likewise.
10371 (handle_extended_wait): Likewise.
10372 (add_lwp): Likewise.
10373 (enqueue_one_deferred_signal): Likewise.
10374 (enqueue_pending_signal): Likewise.
10375 (linux_resume_one_lwp_throw): Likewise.
10376 (linux_resume_one_thread): Likewise.
10377 (linux_read_memory): Likewise.
10378 (linux_write_memory): Likewise.
10379 * linux-mips-low.c (mips_linux_new_process): Likewise.
10380 (mips_linux_new_thread): Likewise.
10381 (mips_add_watchpoint): Likewise.
10382 * linux-x86-low.c (initialize_low_arch): Likewise.
10383 * lynx-low.c (lynx_add_process): Likewise.
10384 * mem-break.c (set_raw_breakpoint_at): Likewise.
10385 (set_breakpoint): Likewise.
10386 (add_condition_to_breakpoint): Likewise.
10387 (add_commands_to_breakpoint): Likewise.
10388 (clone_agent_expr): Likewise.
10389 (clone_one_breakpoint): Likewise.
10390 * regcache.c (new_register_cache): Likewise.
10391 * remote-utils.c (look_up_one_symbol): Likewise.
10392 * server.c (queue_stop_reply): Likewise.
10393 (start_inferior): Likewise.
10394 (queue_stop_reply_callback): Likewise.
10395 (handle_target_event): Likewise.
10396 * spu-low.c (fetch_ppc_memory): Likewise.
10397 (store_ppc_memory): Likewise.
10398 * target.c (set_target_ops): Likewise.
10399 * thread-db.c (thread_db_load_search): Likewise.
10400 (try_thread_db_load_1): Likewise.
10401 * tracepoint.c (add_tracepoint): Likewise.
10402 (add_tracepoint_action): Likewise.
10403 (create_trace_state_variable): Likewise.
10404 (cmd_qtdpsrc): Likewise.
10405 (cmd_qtro): Likewise.
10406 (add_while_stepping_state): Likewise.
10407 * win32-low.c (child_add_thread): Likewise.
10408 (get_image_name): Likewise.
10409
ed8b7b42
YQ
104102015-08-25 Yao Qi <yao.qi@linaro.org>
10411
10412 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10413
db3cb7cb
YQ
104142015-08-25 Yao Qi <yao.qi@linaro.org>
10415
10416 * Makefile.in (aarch64-linux.o): New rule.
10417 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10418 srv_tgtobj.
10419 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10420 (aarch64_init_debug_reg_state): Make it extern.
10421 (aarch64_linux_prepare_to_resume): Remove.
10422
f6011a1c
YQ
104232015-08-25 Yao Qi <yao.qi@linaro.org>
10424
10425 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10426 lwp_arch_private_info and ptid_of_lwp.
10427
88e2cf7e
YQ
104282015-08-25 Yao Qi <yao.qi@linaro.org>
10429
10430 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10431 Find proc_info by find_process_pid. All callers updated.
10432
5e35436e
YQ
104332015-08-25 Yao Qi <yao.qi@linaro.org>
10434
10435 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10436 Remove.
10437 (debug_reg_change_callback): Remove.
10438 (aarch64_notify_debug_reg_change): Remove.
10439
4a8a7965
YQ
104402015-08-25 Yao Qi <yao.qi@linaro.org>
10441
10442 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10443 Call current_lwp_ptid.
10444
32a271ee
YQ
104452015-08-25 Yao Qi <yao.qi@linaro.org>
10446
10447 * linux-aarch64-low.c (debug_reg_change_callback): Use
10448 debug_printf.
10449
0d51c8d7
YQ
104502015-08-25 Yao Qi <yao.qi@linaro.org>
10451
10452 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10453
31a43dd5
YQ
104542015-08-25 Yao Qi <yao.qi@linaro.org>
10455
10456 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10457
8ee52567
YQ
104582015-08-25 Yao Qi <yao.qi@linaro.org>
10459
10460 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10461 the code.
10462
ff3f0f45
YQ
104632015-08-25 Yao Qi <yao.qi@linaro.org>
10464
10465 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10466 Remove.
10467 (debug_reg_change_callback): Remove argument entry and add argument
10468 lwp. Remove local variable thread. Don't print thread id in the
10469 debugging output. Don't check whether pid of thread equals to pid.
10470 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10471 iterate_over_lwps instead find_inferior.
10472
3d40fbb5
PA
104732015-08-24 Pedro Alves <palves@redhat.com>
10474
10475 * inferiors.c (get_first_process): New function.
10476 * inferiors.h (get_first_process): New declaration.
10477 * remote-utils.c (read_ptid): Default to the first process in the
10478 list, instead of to the current thread's process.
10479
438e1e42
PA
104802015-08-24 Pedro Alves <palves@redhat.com>
10481
10482 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10483 * event-loop.c: Likewise.
10484 * remote-utils.c: Likewise.
10485 * tracepoint.c: Likewise.
10486
a8c6d4fc
PA
104872015-08-24 Pedro Alves <palves@redhat.com>
10488
10489 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10490 ptid_get_lwp.
10491
99b0bb12
PA
104922015-08-21 Pedro Alves <palves@redhat.com>
10493
10494 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10495 instead of literal 1.
10496
f8904751
PA
104972015-08-21 Pedro Alves <palves@redhat.com>
10498
10499 * tdesc.c (default_description): Explicitly zero-initialize.
10500
465a859e
PA
105012015-08-21 Pedro Alves <palves@redhat.com>
10502
10503 PR gdb/18749
10504 * inferiors.c (remove_thread): Discard any pending stop reply for
10505 this thread.
10506 * server.c (remove_all_on_match_pid): Rename to ...
10507 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10508 instead of a pid.
10509 (discard_queued_stop_replies): Change parameter to a ptid. Now
10510 extern.
10511 (handle_v_kill, kill_inferior_callback, captured_main)
10512 (process_serial_event): Adjust.
10513 * server.h (discard_queued_stop_replies): Declare.
10514
f0db101d
PA
105152015-08-21 Pedro Alves <palves@redhat.com>
10516
10517 * linux-low.c (wait_for_sigstop): Always switch to no thread
10518 selected if the previously current thread dies.
10519 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10520 process instead of the current thread's.
10521 * remote-utils.c (input_interrupt): Don't check if there's no
10522 current thread.
10523 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10524 current thread to the general thread fails, error out.
10525 (handle_qxfer_auxv, handle_qxfer_libraries)
10526 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10527 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10528 (handle_query): Check if there's a thread selected instead of
10529 checking whether there's any thread in the thread list.
10530 (handle_qxfer_threads, handle_qxfer_btrace)
10531 (handle_qxfer_btrace_conf): Don't error out early if there's no
10532 thread in the thread list.
10533 (handle_v_cont, myresume): Don't set the current thread to the
10534 continue thread.
10535 (process_serial_event) <Hg handling>: Also set thread_id if the
10536 previous general thread is still alive.
10537 (process_serial_event) <g/G handling>: If setting the current
10538 thread to the general thread fails, error out.
10539 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10540 thread's lwp instead of the current thread's.
10541 * target.c (set_desired_thread): If the desired thread was not
10542 found, leave the current thread pointing to NULL. Return an int
10543 (boolean) indicating success.
10544 * target.h (set_desired_thread): Change return type to int.
10545
40045d91
MF
105462015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10547
10548 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10549 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10550 #includes.
10551 (ps_get_thread_area): New function.
10552
45face3b
GB
105532015-08-19 Gary Benson <gbenson@redhat.com>
10554
10555 * hostio.c (handle_pread): Do not attempt to read more data
10556 than hostio_reply_with_data can fit in a packet.
10557
16d5f642
JB
105582015-08-18 Joel Brobecker <brobecker@adacore.com>
10559
10560 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10561
a738da3a
MF
105622015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10563
10564 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10565
33ebda9d
PA
105662015-08-06 Pedro Alves <palves@redhat.com>
10567
10568 * tracepoint.c (expr_eval_result): Now an int.
10569
a44892be
PA
105702015-08-06 Pedro Alves <palves@redhat.com>
10571
10572 * gdbthread.h (struct regcache): Forward declare.
10573 (struct thread_info) <regcache_data>: Now a struct regcache
10574 pointer.
10575 * inferiors.c (inferior_regcache_data)
10576 (set_inferior_regcache_data): Now work with struct regcache
10577 pointers.
10578 * inferiors.h (struct regcache): Forward declare.
10579 (inferior_regcache_data, set_inferior_regcache_data): Now work
10580 with struct regcache pointers.
10581 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10582 (free_register_cache_thread): Remove struct regcache pointer
10583 casts.
10584
608a1e46
PA
105852015-08-06 Pedro Alves <palves@redhat.com>
10586
10587 * server.c (captured_main): On error, print the exception message
10588 to stderr, and if run_once is set, throw a quit.
10589
f0ce0d3a
PA
105902015-08-06 Pedro Alves <palves@redhat.com>
10591
10592 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10593 the current thread.
10594
bf47e248
PA
105952015-08-06 Pedro Alves <palves@redhat.com>
10596
10597 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10598 reading beyond the passed in buffer length.
10599
b6b9ffcc
PL
106002015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10601
10602 * tracepoint.c (symbol_list) <required>: Remove.
10603
863d01bd
PA
106042015-08-06 Pedro Alves <palves@redhat.com>
10605
10606 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10607 count if stopping and suspending threads.
10608 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10609 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10610 (linux_detach): Complete an ongoing step-over.
10611 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10612 throughout.
10613 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10614 (linux_wait_1): If passing a signal to the inferior after
10615 finishing a step-over, unsuspend and re-resume all lwps. If we
10616 see a single-step event but the thread should be continuing, don't
10617 pass the trap to gdb.
10618 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10619 internal_error instead of gdb_assert.
10620 (enqueue_pending_signal): New function.
10621 (check_ptrace_stopped_lwp_gone): Add debug output.
10622 (start_step_over): Use internal_error instead of gdb_assert.
10623 (complete_ongoing_step_over): New function.
10624 (linux_resume_one_thread): Don't resume a suspended thread.
10625 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10626 it stepping.
10627
00db26fa
PA
106282015-08-06 Pedro Alves <palves@redhat.com>
10629
10630 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10631 (linux_thread_alive): Use lwp_is_marked_dead.
10632 (extended_event_reported): Delete.
10633 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10634 instead of extended_event_reported.
10635 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10636 as well.
10637 (lwp_is_marked_dead): New function.
10638 (lwp_running): Use lwp_is_marked_dead.
10639 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10640 comment.
10641
ad071a30
PA
106422015-08-06 Pedro Alves <palves@redhat.com>
10643
10644 * linux-low.c (linux_wait_1): Move fork event output out of the
10645 !report_to_gdb check. Pass event_child->waitstatus to
10646 target_waitstatus_to_string instead of ourstatus.
10647
524b57e6
YQ
106482015-08-04 Yao Qi <yao.qi@linaro.org>
10649
10650 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10651 if current_thread is 32 bit.
10652
6085d6f6
YQ
106532015-08-04 Yao Qi <yao.qi@linaro.org>
10654
10655 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10656 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10657 * server.c (extended_protocol): Remove "static".
10658 * server.h (extended_protocol): Declare it.
10659
8a7e4587
YQ
106602015-08-04 Yao Qi <yao.qi@linaro.org>
10661
10662 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10663 both aarch64 and aarch32.
10664 (aarch64_set_pc): Likewise.
10665
3b53ae99
YQ
106662015-08-04 Yao Qi <yao.qi@linaro.org>
10667
10668 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10669 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10670 arm-with-neon.xml to srv_xmlfiles.
10671 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10672 (is_64bit_tdesc): New function.
10673 (aarch64_linux_read_description): New function.
10674 (aarch64_arch_setup): Call aarch64_linux_read_description.
10675 (regs_info): Rename to regs_info_aarch64.
10676 (aarch64_regs_info): Return right regs_info.
10677 (initialize_low_arch): Call initialize_low_arch_aarch32.
10678
bd9e6534
YQ
106792015-08-04 Yao Qi <yao.qi@linaro.org>
10680
10681 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10682 * linux-aarch32-low.c: New file.
10683 * linux-aarch32-low.h: New file.
10684 * linux-arm-low.c (arm_fill_gregset): Move it to
10685 linux-aarch32-low.c.
10686 (arm_store_gregset): Likewise.
10687 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10688 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10689 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10690 (regs_info): Rename to regs_info_arm.
10691 (arm_regs_info): Return regs_info_aarch32 if
10692 have_ptrace_getregset is 1 and target description is
10693 arm_with_neon or arm_with_vfpv3.
10694 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10695 Call initialize_low_arch_aarch32 instead.
10696
ded48a5e
YQ
106972015-08-04 Yao Qi <yao.qi@linaro.org>
10698
10699 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10700 * linux-low.c: ... here.
10701 * linux-low.h (have_ptrace_getregset): Declare it.
10702
96e9210f
PA
107032015-08-04 Pedro Alves <palves@redhat.com>
10704
10705 * thread-db.c (struct thread_db): Use new typedefs.
10706 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10707 CHK calls.
10708 (disable_thread_event_reporting): Cast result of dlsym to
10709 destination function pointer type.
10710 (thread_db_mourn): Use td_ta_delete_ftype.
10711
af60a1ef
SL
107122015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10713
10714 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10715 arch variant.
10716 (CDX_BREAKPOINT): Define for R2.
10717 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10718 (the_low_target): Add comments.
10719
e8b41681
YQ
107202015-07-30 Yao Qi <yao.qi@linaro.org>
10721
10722 * linux-arm-low.c (arm_hwcap): Remove it.
10723 (arm_read_description): New local variable arm_hwcap. Don't
10724 set arm_hwcap to zero.
10725
89abb039
YQ
107262015-07-30 Yao Qi <yao.qi@linaro.org>
10727
10728 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10729 Use regcache->tdesc instead.
10730 (arm_store_wmmxregset): Likewise.
10731 (arm_fill_vfpregset): Likewise.
10732 (arm_store_vfpregset): Likewise.
10733
deca266c
YQ
107342015-07-30 Yao Qi <yao.qi@linaro.org>
10735
10736 * linux-arm-low.c: Include arch/arm.h.
10737 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10738 (arm_store_gregset): Likewise.
10739
aa58a496
SM
107402015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10741
10742 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10743 ptrace's 4th parameter.
10744
50904b25
YQ
107452015-07-27 Yao Qi <yao.qi@linaro.org>
10746
10747 * configure.srv (case aarch64*-*-linux*): Don't set
10748 srv_linux_usrregs.
10749
5826e159
PA
107502015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10751
10752 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10753 sys/ptrace.h.
10754 * linux-arm-low.c: Likewise.
10755 * linux-cris-low.c: Likewise.
10756 * linux-crisv32-low.c: Likewise.
10757 * linux-low.c: Likewise.
10758 * linux-m68k-low.c: Likewise.
10759 * linux-mips-low.c: Likewise.
10760 * linux-nios2-low.c: Likewise.
10761 * linux-s390-low.c: Likewise.
10762 * linux-sparc-low.c: Likewise.
10763 * linux-tic6x-low.c: Likewise.
10764 * linux-tile-low.c: Likewise.
10765 * linux-x86-low.c: Likewise.
10766
54019719
PA
107672015-07-24 Pedro Alves <palves@redhat.com>
10768
10769 * config.in: Regenerate.
10770 * configure: Regenerate.
10771
eb7aa561
PA
107722015-07-24 Pedro Alves <palves@redhat.com>
10773
10774 * acinclude.m4: Include ../ptrace.m4.
10775 * configure.ac: Call GDB_AC_PTRACE.
10776 * config.in, configure: Regenerate.
10777
55d7b841
YQ
107782015-07-24 Yao Qi <yao.qi@linaro.org>
10779
10780 * linux-low.c (linux_create_inferior): Remove setting to
10781 proc->priv->new_inferior.
10782 (linux_attach): Likewise.
10783 (linux_low_filter_event): Likewise.
10784 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10785
c06cbd92
YQ
107862015-07-24 Yao Qi <yao.qi@linaro.org>
10787
10788 * linux-low.c (linux_arch_setup): New function.
10789 (linux_low_filter_event): If proc->tdesc is NULL and
10790 proc->attached is true, call the_low_target.arch_setup.
10791 Otherwise, keep status pending, and return.
10792 (linux_resume_one_lwp_throw): Don't call get_pc if
10793 thread->while_stepping isn't NULL. Don't call
10794 get_thread_regcache if proc->tdesc is NULL.
10795 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10796 (linux_target_ops): Install arch_setup.
10797 * server.c (start_inferior): Call the_target->arch_setup.
10798 * target.h (struct target_ops) <arch_setup>: New field.
10799 (target_arch_setup): New marco.
10800 * lynx-low.c (lynx_target_ops): Update.
10801 * nto-low.c (nto_target_ops): Update.
10802 * spu-low.c (spu_target_ops): Update.
10803 * win32-low.c (win32_target_ops): Update.
10804
5ae3ebba
YQ
108052015-07-24 Yao Qi <yao.qi@linaro.org>
10806
10807 * linux-low.c (linux_add_process): Don't set
10808 proc->priv->new_inferior.
10809 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10810 (linux_attach): Likewise.
10811
eb97750b
YQ
108122015-07-24 Yao Qi <yao.qi@linaro.org>
10813
10814 * server.c (start_inferior): Code refactor.
10815
51aee833
YQ
108162015-07-24 Yao Qi <yao.qi@linaro.org>
10817
10818 * server.c (process_serial_event): Set general_thread.
10819
af1b22f3
YQ
108202015-07-21 Yao Qi <yao.qi@linaro.org>
10821
10822 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10823 aarch64_linux_get_debug_reg_capacity.
10824
554717a3
YQ
108252015-07-17 Yao Qi <yao.qi@linaro.org>
10826
10827 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10828 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10829 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10830 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10831 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10832 (AARCH64_HWP_ALIGNMENT): Likewise.
10833 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10834 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10835 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10836 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10837 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10838 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10839 (struct aarch64_debug_reg_state): Likewise.
10840 (struct arch_lwp_info): Likewise.
10841 (aarch64_align_watchpoint): Likewise.
10842 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10843 (aarch64_watchpoint_length): Likewise.
10844 (aarch64_point_encode_ctrl_reg): Likewise
10845 (aarch64_point_is_aligned): Likewise.
10846 (aarch64_align_watchpoint): Likewise.
10847 (aarch64_linux_set_debug_regs):
10848 (aarch64_dr_state_insert_one_point): Likewise.
10849 (aarch64_dr_state_remove_one_point): Likewise.
10850 (aarch64_handle_breakpoint): Likewise.
10851 (aarch64_handle_aligned_watchpoint): Likewise.
10852 (aarch64_handle_unaligned_watchpoint): Likewise.
10853 (aarch64_handle_watchpoint): Likewise.
10854
c67ca4de
YQ
108552015-07-17 Yao Qi <yao.qi@linaro.org>
10856
10857 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10858 and don't aarch64_get_debug_reg_state. All callers update.
10859 (aarch64_handle_aligned_watchpoint): Likewise.
10860 (aarch64_handle_unaligned_watchpoint): Likewise.
10861 (aarch64_handle_watchpoint): Likewise.
10862 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10863 (aarch64_remove_point): Likewise.
10864
25abf979
YQ
108652015-07-17 Yao Qi <yao.qi@linaro.org>
10866
10867 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10868 debug_printf.
10869 (aarch64_handle_unaligned_watchpoint): Likewise.
10870
db1ff28b
JK
108712015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10872
10873 Revert the previous 3 commits:
10874 Move gdb_regex* to common/
10875 Move linux_find_memory_regions_full & co.
10876 gdbserver build-id attribute generator
10877
700ca40f
JK
108782015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10879 Jan Kratochvil <jan.kratochvil@redhat.com>
10880
10881 gdbserver build-id attribute generator.
10882 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10883 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10884 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10885 (find_phdr): New.
10886 (get_dynamic): Use find_pdhr to traverse program headers.
10887 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10888 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10889 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10890 (get_hex_build_id): New.
10891 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10892 to reply XML document.
10893
9904185c
JK
108942015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10895 Jan Kratochvil <jan.kratochvil@redhat.com>
10896
10897 * target.c: Include target/target-utils.h and fcntl.h.
10898 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10899 (target_fileio_read_stralloc): New functions.
10900
6e5b4429
JK
109012015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10902
10903 * Makefile.in (OBS): Add gdb_regex.o.
10904 (gdb_regex.o): New.
10905 * config.in: Rebuilt.
10906 * configure: Rebuilt.
10907
ddc98fbf
JK
109082015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10909 Jan Kratochvil <jan.kratochvil@redhat.com>
10910
10911 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10912 * Makefile.in (OBS): Add target-utils.o.
10913 (linux-maps.o, target-utils.o): New.
10914 * configure.srv (srv_linux_obj): Add linux-maps.o.
10915
e57bb7a0
PL
109162015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10917
10918 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10919 function, return 1.
10920 (the_low_target): Install it.
10921
586b02a9
PA
109222015-07-14 Pedro Alves <palves@redhat.com>
10923
10924 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10925 Instead, ignore ECHILD, and throw an error for other errnos.
10926
58c1b36c
PA
109272015-07-10 Pedro Alves <palves@redhat.com>
10928
10929 * event-loop.c (struct callback_event) <data>: Change type to
10930 gdb_client_data instance instead of gdb_client_data pointer.
10931 (append_callback_event): Adjust.
10932
421530db
PL
109332015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10934
10935 * linux-aarch64-low.c: Add comments for each linux_target_ops
10936 method. Remove comments already covered in target_ops and
10937 linux_target_ops definitions.
10938 (the_low_target): Add comments for each unimplemented method.
10939
c2d65f38
YQ
109402015-07-09 Yao Qi <yao.qi@linaro.org>
10941
10942 * linux-aarch64-low.c (aarch64_regmap): Remove.
10943 (aarch64_usrregs_info): Remove.
10944 (regs_info): Set field usrregs to NULL.
10945
b20a6524
MM
109462015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10947
10948 * linux-low.c: Include "rsp-low.h"
10949 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10950 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10951 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10952 (handle_btrace_enable_pt): New.
10953 (handle_btrace_general_set): Support "pt".
10954 (handle_btrace_conf_general_set): Support "pt:size".
10955
96c97461
PL
109562015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10957
10958 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10959 Z_PACKET_SW_BP.
10960
37d66942
PL
109612015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10962
10963 * linux-aarch64-low.c: Remove comment about endianness.
10964 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10965 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10966 memcmp.
10967
dc06243f
GB
109682015-06-24 Gary Benson <gbenson@redhat.com>
10969
10970 * linux-i386-ipa.c (stdint.h): Do not include.
10971 * lynx-i386-low.c (stdint.h): Likewise.
10972 * lynx-ppc-low.c (stdint.h): Likewise.
10973 * mem-break.c (stdint.h): Likewise.
10974 * thread-db.c (stdint.h): Likewise.
10975 * tracepoint.c (stdint.h): Likewise.
10976 * win32-low.c (stdint.h): Likewise.
10977
124e13d9
SM
109782015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10979
10980 * server.c (write_qxfer_response): Update call to
10981 remote_escape_output.
10982
909c2cda
JK
109832015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10984 Jan Kratochvil <jan.kratochvil@redhat.com>
10985
10986 Merge multiple hex conversions.
10987 * gdbreplay.c (tohex): Rename to 'fromhex'.
10988 (logchar): Use fromhex.
10989
24c05f46
JK
109902015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10991
10992 * server.c (handle_qxfer_libraries): Set `version' attribute for
10993 <library-list>.
10994
14d2069a
GB
109952015-06-10 Gary Benson <gbenson@redhat.com>
10996
10997 * target.h (struct target_ops) <multifs_open>: New field.
10998 <multifs_unlink>: Likewise.
10999 <multifs_readlink>: Likewise.
11000 * linux-low.c (nat/linux-namespaces.h): New include.
11001 (linux_target_ops): Initialize the_target->multifs_open,
11002 the_target->multifs_unlink and the_target->multifs_readlink.
11003 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11004 * hostio.c (hostio_fs_pid): New static variable.
11005 (hostio_handle_new_gdb_connection): New function.
11006 (handle_setfs): Likewise.
11007 (handle_open): Use the_target->multifs_open as appropriate.
11008 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11009 (handle_readlink): Use the_target->multifs_readlink as
11010 appropriate.
11011 (handle_vFile): Handle vFile:setfs packets.
11012 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11013 after target_handle_new_gdb_connection.
11014
4b8b5e72
GB
110152015-06-10 Gary Benson <gbenson@redhat.com>
11016
11017 * configure.ac (AC_CHECK_FUNCS): Add setns.
11018 * config.in: Regenerate.
11019 * configure: Likewise.
11020 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11021 (linux-namespaces.o): New rule.
11022 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11023
3ac2e371
GB
110242015-06-09 Gary Benson <gbenson@redhat.com>
11025
11026 * hostio.c (handle_open): Process mode argument with
11027 fileio_to_host_mode.
11028
ca9b78ce
YQ
110292015-06-01 Yao Qi <yao.qi@linaro.org>
11030
11031 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11032 * linux-x86-low.c: Likewise.
11033
bfacd19d
DB
110342015-05-28 Don Breazeal <donb@codesourcery.com>
11035
11036 * linux-low.c (handle_extended_wait): Initialize
11037 thread_info.last_resume_kind for new fork children.
11038
452003ef
PA
110392015-05-15 Pedro Alves <palves@redhat.com>
11040
11041 * target.h (target_handle_new_gdb_connection): Rewrite using if
11042 wrapped in do/while.
11043
1041a03c
JB
110442015-05-14 Joel Brobecker <brobecker@adacore.com>
11045
11046 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11047 * configure, config.in: Regenerate.
11048 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11049 Declare typedef.
11050
c269dbdb
DB
110512015-05-12 Don Breazeal <donb@codesourcery.com>
11052
11053 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11054 PTRACE_EVENT_VFORK_DONE.
11055 (linux_low_ptrace_options, extended_event_reported): Add vfork
11056 events.
11057 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11058 and "vforkdone" for RSP 'T' Stop Reply Packet.
11059 * server.h (report_vfork_events): Declare
11060 global variable.
11061
3a8a0396
DB
110622015-05-12 Don Breazeal <donb@codesourcery.com>
11063
11064 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11065 (the_low_target) <new_fork>: Initialize new member.
11066 * linux-arm-low.c (arm_new_fork): New function.
11067 (the_low_target) <new_fork>: Initialize new member.
11068 * linux-low.c (handle_extended_wait): Call new target function
11069 new_fork.
11070 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11071 * linux-mips-low.c (mips_add_watchpoint): New function
11072 extracted from mips_insert_point.
11073 (the_low_target) <new_fork>: Initialize new member.
11074 (mips_linux_new_fork): New function.
11075 (mips_insert_point): Call mips_add_watchpoint.
11076 * linux-x86-low.c (x86_linux_new_fork): New function.
11077 (the_low_target) <new_fork>: Initialize new member.
11078
de0d863e
DB
110792015-05-12 Don Breazeal <donb@codesourcery.com>
11080
11081 * linux-low.c (handle_extended_wait): Implement return value,
11082 rename argument 'event_child' to 'event_lwp', handle
11083 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11084 (linux_low_ptrace_options): New function.
11085 (linux_low_filter_event): Call linux_low_ptrace_options,
11086 use different argument fo linux_enable_event_reporting,
11087 use return value from handle_extended_wait.
11088 (extended_event_reported): New function.
11089 (linux_wait_1): Call extended_event_reported and set
11090 status to report fork events.
11091 (linux_write_memory): Add pid to debug message.
11092 (reset_lwp_ptrace_options_callback): New function.
11093 (linux_handle_new_gdb_connection): New function.
11094 (linux_target_ops): Initialize new structure member.
11095 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11096 * lynx-low.c: Initialize new structure member.
11097 * remote-utils.c (prepare_resume_reply): Implement stop reason
11098 "fork" for "T" stop message.
11099 * server.c (handle_query): Call handle_new_gdb_connection.
11100 * server.h (report_fork_events): Declare global flag.
11101 * target.h (struct target_ops) <handle_new_gdb_connection>:
11102 New member.
11103 (target_handle_new_gdb_connection): New macro.
11104 * win32-low.c: Initialize new structure member.
11105
ddcbc397
DB
111062015-05-12 Don Breazeal <donb@codesourcery.com>
11107
11108 * mem-break.c (APPEND_TO_LIST): Define macro.
11109 (clone_agent_expr): New function.
11110 (clone_one_breakpoint): New function.
11111 (clone_all_breakpoints): New function.
11112 * mem-break.h: Declare new functions.
11113
89245bc0
DB
111142015-05-12 Don Breazeal <donb@codesourcery.com>
11115
11116 * linux-low.c (linux_supports_fork_events): New function.
11117 (linux_supports_vfork_events): New function.
11118 (linux_target_ops): Initialize new structure members.
11119 (initialize_low): Call linux_check_ptrace_features.
11120 * lynx-low.c (lynx_target_ops): Initialize new structure
11121 members.
11122 * server.c (report_fork_events, report_vfork_events):
11123 New global flags.
11124 (handle_query): Add new features to qSupported packet and
11125 response.
11126 (captured_main): Initialize new global variables.
11127 * target.h (struct target_ops) <supports_fork_events>:
11128 New member.
11129 <supports_vfork_events>: New member.
11130 (target_supports_fork_events): New macro.
11131 (target_supports_vfork_events): New macro.
11132 * win32-low.c (win32_target_ops): Initialize new structure
11133 members.
11134
835205d0
GB
111352015-05-12 Gary Benson <gbenson@redhat.com>
11136
11137 * server.c (handle_qxfer_exec_file): Use current process
11138 if annex is empty.
11139
21e94bd9
SL
111402015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11141
11142 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11143 Remove HAVE_PTRACE_GETREGS conditionals.
11144 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11145 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11146
45614f15
YQ
111472015-05-08 Yao Qi <yao.qi@linaro.org>
11148
11149 * linux-low.c (linux_supports_conditional_breakpoints): New
11150 function.
11151 (linux_target_ops): Install new target method.
11152 * lynx-low.c (lynx_target_ops): Install NULL hook for
11153 supports_conditional_breakpoints.
11154 * nto-low.c (nto_target_ops): Likewise.
11155 * spu-low.c (spu_target_ops): Likewise.
11156 * win32-low.c (win32_target_ops): Likewise.
11157 * server.c (handle_query): Check
11158 target_supports_conditional_breakpoints.
11159 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11160 New field.
11161 (target_supports_conditional_breakpoints): New macro.
11162
80ad801e
PA
111632015-05-06 Pedro Alves <palves@redhat.com>
11164
11165 PR server/18081
11166 * server.c (start_inferior): If the process exits, mourn it.
11167
819843c7
GB
111682015-04-21 Gary Benson <gbenson@redhat.com>
11169
11170 * hostio.c (fileio_open_flags_to_host): Factored out to
11171 fileio_to_host_openflags in common/fileio.c. Single use
11172 updated.
11173
a2d5a9d7
MF
111742015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11175
11176 * linux-xtensa-low.c (xtensa_fill_gregset)
11177 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11178 XCHAL_HAVE_LOOP.
11179
deb44829
MF
111802015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11181
11182 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11183 (regs_info): Replace usrregs pointer with NULL.
11184
e57f1de3
GB
111852015-04-17 Gary Benson <gbenson@redhat.com>
11186
11187 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11188 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11189 * server.c (handle_qxfer_exec_file): New function.
11190 (qxfer_packets): Add exec-file entry.
11191 (handle_query): Report qXfer:exec-file:read as supported packet.
11192
62828379
RN
111932015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11194
11195 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11196
b88bb450
GB
111972015-04-09 Gary Benson <gbenson@redhat.com>
11198
11199 * hostio-errno.c (errno_to_fileio_error): Remove function.
11200 Update caller to use remote_fileio_to_fio_error.
11201
c8f4bfdd
YQ
112022015-04-09 Yao Qi <yao.qi@linaro.org>
11203
11204 * linux-low.c (linux_insert_point): Call
11205 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11206 (linux_remove_point): Call remove_memory_breakpoint if type is
11207 raw_bkpt_type_sw.
11208 * linux-x86-low.c (x86_insert_point): Don't call
11209 insert_memory_breakpoint.
11210 (x86_remove_point): Don't call remove_memory_breakpoint.
11211
41f98f02
PA
112122015-04-01 Pedro Alves <palves@redhat.com>
11213 Cleber Rosa <crosa@redhat.com>
11214
11215 * server.c (gdbserver_usage): Reorganize and extend the usage
11216 message.
11217
2bf6fb9d
PA
112182015-03-24 Pedro Alves <palves@redhat.com>
11219
11220 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11221 output. Also dump TRAP_TRACE.
11222 (linux_low_filter_event): In debug output, distinguish a
11223 resume_stop SIGSTOP from a delayed SIGSTOP.
11224
369f6daa
GB
112252015-03-24 Gary Benson <gbenson@redhat.com>
11226
11227 * linux-x86-low.c (x86_linux_new_thread): Moved to
11228 nat/x86-linux.c.
11229 (x86_linux_prepare_to_resume): Likewise.
11230
8e5d4070
GB
112312015-03-24 Gary Benson <gbenson@redhat.com>
11232
11233 * Makefile.in (x86-linux-dregs.o): New rule.
11234 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11235 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11236 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11237 (x86_linux_dr_get): Likewise.
11238 (x86_linux_dr_set): Likewise.
11239 (update_debug_registers_callback): Likewise.
11240 (x86_linux_dr_set_addr): Likewise.
11241 (x86_linux_dr_get_addr): Likewise.
11242 (x86_linux_dr_set_control): Likewise.
11243 (x86_linux_dr_get_control): Likewise.
11244 (x86_linux_dr_get_status): Likewise.
11245 (x86_linux_update_debug_registers): Likewise.
11246
2b95d440
GB
112472015-03-24 Gary Benson <gbenson@redhat.com>
11248
11249 * linux-x86-low.c (x86_linux_update_debug_registers):
11250 New function, factored out from...
11251 (x86_linux_prepare_to_resume): ...this.
11252
14b0bc68
GB
112532015-03-24 Gary Benson <gbenson@redhat.com>
11254
11255 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11256 (x86_linux_dr_set): Likewise.
11257 (update_debug_registers_callback): Likewise.
11258 (x86_linux_dr_set_addr): Likewise.
11259 (x86_linux_dr_get_addr): Likewise.
11260 (x86_linux_dr_set_control): Likewise.
11261 (x86_linux_dr_get_control): Likewise.
11262 (x86_linux_dr_get_status): Likewise.
11263 (x86_linux_prepare_to_resume): Likewise.
11264
5dfe6ca8
GB
112652015-03-24 Gary Benson <gbenson@redhat.com>
11266
11267 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11268 Use perror_with_name. Pass string through gettext.
11269 (x86_linux_dr_set): Likewise.
11270
d33472ad
GB
112712015-03-24 Gary Benson <gbenson@redhat.com>
11272
11273 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11274 (x86_linux_dr_set_addr): ...this.
11275 (x86_dr_low_get_addr): Rename to...
11276 (x86_linux_dr_get_addr): ...this.
11277 (x86_dr_low_set_control): Rename to...
11278 (x86_linux_dr_set_control): ...this.
11279 (x86_dr_low_get_control): Rename to...
11280 (x86_linux_dr_get_control): ...this.
11281 (x86_dr_low_get_status): Rename to...
11282 (x86_linux_dr_get_status): ...this.
11283 (x86_dr_low): Update with new function names.
11284
4b134ca1
GB
112852015-03-24 Gary Benson <gbenson@redhat.com>
11286
11287 * Makefile.in (x86-linux.o): New rule.
11288 * configure.srv: Add x86-linux.o to relevant targets.
11289 * linux-low.c (lwp_set_arch_private_info): New function.
11290 (lwp_arch_private_info): Likewise.
11291 * linux-x86-low.c: Include nat/x86-linux.h.
11292 (arch_lwp_info): Removed structure.
11293 (update_debug_registers_callback):
11294 Use lwp_set_debug_registers_changed.
11295 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11296 and lwp_set_debug_registers_changed.
11297 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11298
34c703da
GB
112992015-03-24 Gary Benson <gbenson@redhat.com>
11300
11301 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11302 * linux-arm-low.c (arm_new_thread): Likewise.
11303 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11304 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11305 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11306 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11307
cff068da
GB
113082015-03-24 Gary Benson <gbenson@redhat.com>
11309
11310 * linux-low.c (ptid_of_lwp): New function.
11311 (lwp_is_stopped): Likewise.
11312 (lwp_stop_reason): Likewise.
11313 * linux-x86-low.c (update_debug_registers_callback):
11314 Use lwp_is_stopped.
11315 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11316 lwp_stop_reason.
11317
b2f7c7e8
GB
113182015-03-24 Gary Benson <gbenson@redhat.com>
11319
11320 * linux-low.h (linux_stop_lwp): Remove declaration.
11321
6d4ee8c6
GB
113222015-03-24 Gary Benson <gbenson@redhat.com>
11323
11324 * linux-low.h: Include nat/linux-nat.h.
11325 * linux-low.c (iterate_over_lwps_args): New structure.
11326 (iterate_over_lwps_filter): New function.
11327 (iterate_over_lwps): Likewise.
11328 * linux-x86-low.c (update_debug_registers_callback):
11329 Update signature to what iterate_over_lwps expects.
11330 Remove PID check that iterate_over_lwps now performs.
11331 (x86_dr_low_set_addr): Use iterate_over_lwps.
11332 (x86_dr_low_set_control): Likewise.
11333
70a0bb6b
GB
113342015-03-24 Gary Benson <gbenson@redhat.com>
11335
11336 * linux-x86-low.c (x86_debug_reg_state): New function.
11337 (x86_linux_prepare_to_resume): Use the above.
11338
7b669087
GB
113392015-03-24 Gary Benson <gbenson@redhat.com>
11340
11341 * linux-low.c (current_lwp_ptid): New function.
11342 * linux-x86-low.c: Include nat/linux-nat.h.
11343 (x86_dr_low_get_addr): Use current_lwp_ptid.
11344 (x86_dr_low_get_control): Likewise.
11345 (x86_dr_low_get_status): Likewise.
11346
eef49a3d
PA
113472015-03-20 Pedro Alves <palves@redhat.com>
11348
11349 * tracepoint.c (cmd_qtstatus): Make "str" const.
11350
b2333d22
PA
113512015-03-20 Pedro Alves <palves@redhat.com>
11352
11353 * server.c (handle_general_set): Make "req_str" const.
11354
23f238d3
PA
113552015-03-19 Pedro Alves <palves@redhat.com>
11356
11357 * linux-low.c (linux_resume_one_lwp): Rename to ...
11358 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11359 instead call perror_with_name.
11360 (check_ptrace_stopped_lwp_gone): New function.
11361 (linux_resume_one_lwp): Reimplement as wrapper around
11362 linux_resume_one_lwp_throw that swallows errors if the LWP is
11363 gone.
11364
91baf43f
PA
113652015-03-19 Pedro Alves <palves@redhat.com>
11366
11367 * linux-low.c (count_events_callback, select_event_lwp_callback):
11368 No longer check whether the thread has resume_stop as last resume
11369 kind.
11370
8bf3b159
PA
113712015-03-19 Pedro Alves <palves@redhat.com>
11372
11373 * linux-low.c (count_events_callback, select_event_lwp_callback):
11374 Use the lwp's status_pending_p field, not the thread's.
11375
b90fc188
PA
113762015-03-19 Pedro Alves <palves@redhat.com>
11377
11378 * linux-low.c (select_event_lwp_callback): Update comments to
11379 no longer mention SIGTRAP.
11380
464b0089
GB
113812015-03-18 Gary Benson <gbenson@redhat.com>
11382
11383 * server.c (handle_query): Do not report vFile:fstat as supported.
11384
aa9e327f
GB
113852015-03-11 Gary Benson <gbenson@redhat.com>
11386
11387 * hostio.c (sys/types.h): New include.
11388 (sys/stat.h): Likewise.
11389 (common-remote-fileio.h): Likewise.
11390 (handle_fstat): New function.
11391 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11392
791c0056
GB
113932015-03-11 Gary Benson <gbenson@redhat.com>
11394
11395 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11396 struct stat.st_blocks and struct stat.st_blksize.
11397 * configure: Regenerate.
11398 * config.in: Likewise.
11399 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11400 (OBS): Add common-remote-fileio.o.
11401 (common-remote-fileio.o): New rule.
11402
9a9df970
PA
114032015-03-09 Pedro Alves <palves@redhat.com>
11404
11405 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11406 'struct sockaddr' pointer in 'accept' call.
11407
9eb1356e
PA
114082015-03-09 Pedro Alves <palves@redhat.com>
11409
11410 Revert:
11411 2015-03-07 Pedro Alves <palves@redhat.com>
11412 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11413 or <winsock2.h> here. Instead include "gdb_socket.h".
11414 (remote_open): Use union gdb_sockaddr_u.
11415 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11416 or <winsock2.h> here. Instead include "gdb_socket.h".
11417 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11418 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11419 or <sys/un.h>.
11420 (init_named_socket, gdb_agent_helper_thread): Use union
11421 gdb_sockaddr_u.
11422
aac331e4
PA
114232015-03-07 Pedro Alves <palves@redhat.com>
11424
11425 * configure.ac (build_warnings): Move
11426 -Wdeclaration-after-statement to the C-specific set.
11427 * configure: Regenerate.
11428
366c75fc
PA
114292015-03-07 Pedro Alves <palves@redhat.com>
11430
11431 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11432 or <winsock2.h> here. Instead include "gdb_socket.h".
11433 (remote_open): Use union gdb_sockaddr_u.
11434 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11435 or <winsock2.h> here. Instead include "gdb_socket.h".
11436 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11437 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11438 or <sys/un.h>.
11439 (init_named_socket, gdb_agent_helper_thread): Use union
11440 gdb_sockaddr_u.
11441
492d29ea
PA
114422015-03-07 Pedro Alves <palves@redhat.com>
11443
11444 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11445 instead.
11446
60a191ed
YQ
114472015-03-06 Yao Qi <yao.qi@linaro.org>
11448
11449 * linux-aarch64-low.c (aarch64_insert_point): Use
11450 show_debug_regs as a boolean.
11451 (aarch64_remove_point): Likewise.
11452
f5771b1d
PA
114532015-03-05 Pedro Alves <palves@redhat.com>
11454
11455 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11456 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11457 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11458 * nto-low.c (nto_target_ops): Likewise.
11459 * spu-low.c (spu_target_ops): Likewise.
11460 * win32-low.c (win32_target_ops): Likewise.
11461
3e572f71
PA
114622015-03-04 Pedro Alves <palves@redhat.com>
11463
72f4393d 11464 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11465 Decide whether a breakpoint triggered based on the SIGTRAP's
11466 siginfo.si_code.
72f4393d
L
11467 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11468 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11469 (linux_low_filter_event): Check for breakpoints before checking
11470 watchpoints.
11471 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11472 siginfo.si_code.
72f4393d
L
11473 (linux_stopped_by_sw_breakpoint)
11474 (linux_supports_stopped_by_sw_breakpoint)
11475 (linux_stopped_by_hw_breakpoint)
11476 (linux_supports_stopped_by_hw_breakpoint): New functions.
11477 (linux_target_ops): Install new target methods.
3e572f71 11478
1ec68e26
PA
114792015-03-04 Pedro Alves <palves@redhat.com>
11480
11481 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11482 * server.c (swbreak_feature, hwbreak_feature): New globals.
11483 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11484 (captured_main): Clear swbreak_feature and hwbreak_feature.
11485 * server.h (swbreak_feature, hwbreak_feature): Declare.
11486 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11487 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11488 supports_stopped_by_hw_breakpoint>: New fields.
11489 (target_supports_stopped_by_sw_breakpoint)
11490 (target_stopped_by_sw_breakpoint)
11491 (target_supports_stopped_by_hw_breakpoint)
11492 (target_stopped_by_hw_breakpoint): Declare.
11493
15c66dd6
PA
114942015-03-04 Pedro Alves <palves@redhat.com>
11495
11496 enum lwp_stop_reason -> enum target_stop_reason
11497 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11498 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11499 (linux_wait_1, stuck_in_jump_pad_callback)
11500 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11501 (linux_stopped_by_watchpoint):
11502 * linux-low.h (enum lwp_stop_reason): Delete.
11503 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11504 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11505
98fc70d6
YQ
115062015-03-04 Yao Qi <yao.qi@linaro.org>
11507
11508 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11509
dd2ac174
GB
115102015-03-03 Gary Benson <gbenson@redhat.com>
11511
11512 * hostio.c (handle_vFile): Fix prefix lengths.
11513
d68e53f4
MM
115142015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11515
11516 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11517 ptr_bits.
11518
bf2d68ab
AA
115192015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11520
11521 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11522 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11523 (clean): Add "rm -f" for above C files.
11524 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11525 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11526 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11527 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11528 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11529 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11530 (init_registers_s390x_vx_linux64)
11531 (init_registers_s390x_tevx_linux64)
11532 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11533 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11534 declarations.
11535 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11536 (s390_store_vxrs_high): New functions.
11537 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11538 NT_S390_VXRS_HIGH.
11539 (s390_arch_setup): Add logic for selecting one of the new target
11540 descriptions. Activate the new vector regsets if applicable.
11541 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11542 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11543 and init_registers_s390x_tevx_linux64.
11544
c966a859
PA
115452015-03-01 Pedro Alves <palves@redhat.com>
11546
11547 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11548 parameter.
11549
4180215b
PA
115502015-02-27 Pedro Alves <palves@redhat.com>
11551
11552 * linux-x86-low.c (u_debugreg_offset): New function.
11553 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11554
749bab01
PA
115552015-02-27 Pedro Alves <palves@redhat.com>
11556
11557 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11558 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11559 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11560 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11561 (ps_lsetfpregs, ps_getpid)
11562 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11563 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11564 (ps_lsetxregs, ps_plog): Declare.
11565
3c14e5a3
PA
115662015-02-27 Pedro Alves <palves@redhat.com>
11567
11568 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11569 IP_AGENT_EXPORT_FUNC.
11570 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11571 IP_AGENT_EXPORT_FUNC.
11572 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11573 (IP_AGENT_EXPORT): Delete.
11574 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11575 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11576 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11577 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11578 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11579 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11580 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11581 (traceframe_read_count, traceframe_write_count)
11582 (traceframes_created, trace_state_variables, get_raw_reg)
11583 (get_trace_state_variable_value, set_trace_state_variable_value)
11584 (ust_loaded, helper_thread_id, cmd_buf): Use
11585 IPA_SYM_EXPORTED_NAME.
11586 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11587 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11588 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11589 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11590 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11591 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11592 EXTERN_C_PUSH/EXTERN_C_POP.
11593 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11594 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11595 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11596 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11597 (traceframe_write_count, traceframe_read_count)
11598 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11599 (about_to_request_buffer_space, get_trace_state_variable_value)
11600 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11601 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11602 EXTERN_C_PUSH/EXTERN_C_POP.
11603 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11604 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11605 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11606 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11607 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11608 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11609 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11610 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11611 Define.
11612 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11613 (IP_AGENT_EXPORT_VAR_DECL): Define.
11614 (tracing): Declare.
11615 (gdb_agent_get_raw_reg): Declare.
11616
fe978cb0
PA
116172015-02-27 Tom Tromey <tromey@redhat.com>
11618 Pedro Alves <palves@redhat.com>
11619
11620 Rename symbols whose names are reserved C++ keywords throughout.
11621
3bc3d82a
PA
116222015-02-27 Pedro Alves <palves@redhat.com>
11623
11624 * Makefile.in (COMPILER): New, get it from autoconf.
11625 (CXX): Get from autoconf instead.
11626 (COMPILE.pre): Use COMPILER.
11627 (CC-LD): Rename to ...
11628 (CC_LD): ... this. Use COMPILER.
11629 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11630 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11631 * acinclude.m4: Include build-with-cxx.m4.
11632 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11633 Disable -Werror by default if building in C++ mode.
11634 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11635 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11636 the C++ compiler. Save/restore CXXFLAGS too.
11637 * configure: Regenerate.
11638
07697489
PA
116392015-02-27 Pedro Alves <palves@redhat.com>
11640
11641 * acinclude.m4: Include libiberty.m4.
11642 * configure.ac: Call libiberty_INIT.
11643 * config.in, configure: Regenerate.
11644
9beb7c4e
PA
116452015-02-26 Pedro Alves <palves@redhat.com>
11646
11647 * linux-low.c (linux_wait_1): When incrementing the PC past a
11648 program breakpoint always use the_low_target.breakpoint_len as
11649 increment, rather than the maximum between that and
11650 the_low_target.decr_pc_after_break.
11651
8090aef2
PA
116522015-02-23 Pedro Alves <palves@redhat.com>
11653
11654 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11655 thread was doing a step-over; always adjust the PC if
11656 we stepped over a permanent breakpoint.
11657 (linux_wait_1): If we stepped over breakpoint that was on top of a
11658 permanent breakpoint, manually advance the PC past it.
11659
bc9540e8
PA
116602015-02-23 Pedro Alves <palves@redhat.com>
11661
11662 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11663 modes.
11664 (x86_fill_gregset, x86_store_gregset): Use it when handling
11665 $orig_eax.
11666
2db9a427
PA
116672015-02-20 Pedro Alves <palves@redhat.com>
11668
11669 * thread-db.c: Include "nat/linux-procfs.h".
11670 (thread_db_init): Skip listing new threads if the kernel supports
11671 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11672
afa8d396
PA
116732015-02-20 Pedro Alves <palves@redhat.com>
11674
11675 * linux-low.c (status_pending_p_callback): Use ptid_match.
11676
c9587f88
AT
116772015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11678
11679 PR breakpoints/16812
11680 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11681 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11682 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11683
b05ec7a5
AT
116842015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11685
11686 PR breakpoints/15956
11687 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11688
d33501a5
MM
116892015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11690
11691 * linux-low.c (linux_low_btrace_conf): Print size.
11692 * server.c (handle_btrace_conf_general_set): New.
11693 (hanle_general_set): Call handle_btrace_conf_general_set.
11694 (handle_query): Report Qbtrace-conf:bts:size as supported.
11695
f4abbc16
MM
116962015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11697
11698 * linux-low.c (linux_low_enable_btrace): Update parameters.
11699 (linux_low_btrace_conf): New.
11700 (linux_target_ops)<to_btrace_conf>: Initialize.
11701 * server.c (current_btrace_conf): New.
11702 (handle_btrace_enable): Rename to ...
11703 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11704 to target_enable_btrace. Update comment. Update users.
11705 (handle_qxfer_btrace_conf): New.
11706 (qxfer_packets): Add btrace-conf entry.
11707 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11708 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11709 (target_ops)<read_btrace_conf>: New.
11710 (target_enable_btrace): Update parameters.
11711 (target_read_btrace_conf): New.
11712
043c3577
MM
117132015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11714
11715 * server.c (handle_btrace_general_set): Remove call to
11716 target_supports_btrace.
11717 (supported_btrace_packets): New.
11718 (handle_query): Call supported_btrace_packets.
11719 * target.h: include btrace-common.h.
11720 (btrace_target_info): Removed.
11721 (supports_btrace, target_supports_btrace): Update parameters.
11722
734b0e4b
MM
117232015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11724
11725 * Makefile.in (SFILES): Add common/btrace-common.c.
11726 (OBS): Add common/btrace-common.o.
11727 (btrace-common.o): Add build rules.
11728 * linux-low: Include btrace-common.h.
11729 (linux_low_read_btrace): Use struct btrace_data. Call
11730 btrace_data_init and btrace_data_fini.
11731
d6c146e9
PA
117322015-02-06 Pedro Alves <palves@redhat.com>
11733
11734 * thread-db.c (find_new_threads_callback): Add debug output.
11735
20ba1ce6
PA
117362015-02-04 Pedro Alves <palves@redhat.com>
11737
11738 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11739 (resume_stopped_resumed_lwps): New function.
11740 (linux_wait_for_event_filtered): Use it.
11741
8cc73a39
SDJ
117422015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11743
11744 * Makefile.in (SFILES): Add linux-personality.c.
11745 (linux-personality.o): New rule.
11746 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11747 list of objects to be built.
11748 * linux-low.c: Include nat/linux-personality.h.
11749 (linux_create_inferior): Remove code to disable address space
11750 randomization (moved to ../nat/linux-personality.c). Create
11751 cleanup to disable address space randomization.
11752
fb23d554
SDJ
117532015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11754
11755 * Makefile.in (posix-strerror.o): New rule.
11756 (mingw-strerror.o): Likewise.
11757 * configure: Regenerated.
11758 * configure.ac: Source file ../common/common.host. Initialize new
11759 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11760
cdf43629
YQ
117612015-01-14 Yao Qi <yao@codesourcery.com>
11762
11763 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11764 (ppc-linux.o): New rule.
11765 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11766 * configure.ac: AC_CHECK_FUNCS(getauxval).
11767 * config.in: Re-generated.
11768 * configure: Re-generated.
11769 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11770 ppc64_64bit_inferior_p
11771
514c5338
YQ
117722015-01-14 Yao Qi <yao@codesourcery.com>
11773
11774 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11775 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11776 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11777 (PT_ORIG_R3, PT_TRAP): Likewise.
11778 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11779 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11780 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11781
3368c1e5
JB
117822015-01-10 Joel Brobecker <brobecker@adacore.com>
11783
11784 * i387-fp.c (i387_cache_to_xsave): In look over
11785 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11786 zmmh_low_space field by use of zmmh_high_space.
11787
582511be
PA
117882015-01-09 Pedro Alves <palves@redhat.com>
11789
11790 * linux-low.c (step_over_bkpt): Move higher up in the file.
11791 (handle_extended_wait): Don't store the stop_pc here.
11792 (get_stop_pc): Adjust comments and rename to ...
11793 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11794 stopped for a software breakpoint or hardware breakpoint.
11795 (thread_still_has_status_pending_p): New function.
11796 (status_pending_p_callback): Use
11797 thread_still_has_status_pending_p. If the event is no longer
11798 interesting, resume the LWP.
11799 (handle_tracepoints): Add assert.
11800 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11801 (wstatus_maybe_breakpoint): New function.
11802 (cancel_breakpoint): Delete function.
11803 (check_stopped_by_watchpoint): New function, factored out from
11804 linux_low_filter_event.
11805 (lp_status_maybe_breakpoint): Delete function.
11806 (linux_low_filter_event): Remove filter_ptid argument.
11807 Leave thread group exits pending here. Store the LWP's stop PC.
11808 Always leave events pending.
11809 (linux_wait_for_event_filtered): Pull all events out of the
11810 kernel, and leave them all pending.
11811 (count_events_callback, select_event_lwp_callback): Consider all
11812 events.
11813 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11814 (select_event_lwp): Only give preference to the stepping LWP in
11815 all-stop mode. Adjust comments.
11816 (ignore_event): New function.
11817 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11818 references to cancel_breakpoints. Adjust to renames. Also give
11819 equal priority to all LWPs that have had events in non-stop mode.
11820 If reporting a software breakpoint event, unadjust the LWP's PC.
11821 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11822 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11823 Adjust.
11824 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11825 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11826 (linux_stopped_by_watchpoint): Adjust.
11827 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11828 * linux-low.h (enum lwp_stop_reason): New.
11829 (struct lwp_info) <stop_pc>: Adjust comment.
11830 <stopped_by_watchpoint>: Delete field.
11831 <stop_reason>: New field.
11832 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11833 * mem-break.c (software_breakpoint_inserted_here)
11834 (hardware_breakpoint_inserted_here): New function.
11835 * mem-break.h (software_breakpoint_inserted_here)
11836 (hardware_breakpoint_inserted_here): Declare.
11837 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11838 (cancel_breakpoints): Delete.
11839 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11840 (upload_fast_traceframes): Remove references to
11841 cancel_breakpoints.
11842
a33e3959
PA
118432015-01-09 Pedro Alves <palves@redhat.com>
11844
11845 * thread-db.c (find_new_threads_callback): Ignore thread if the
11846 kernel thread ID is -1.
11847
8784d563
PA
118482015-01-09 Pedro Alves <palves@redhat.com>
11849
11850 * linux-low.c (linux_attach_fail_reason_string): Move to
11851 nat/linux-ptrace.c, and rename.
11852 (linux_attach_lwp): Update comment.
11853 (attach_proc_task_lwp_callback): New function.
11854 (linux_attach): Adjust to rename and use
11855 linux_proc_attach_tgid_threads.
11856 (linux_attach_fail_reason_string): Delete declaration.
11857
76f2b779
JB
118582015-01-01 Joel Brobecker <brobecker@adacore.com>
11859
11860 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11861 * server.c (gdbserver_version): Likewise.
11862
fafcc06a
SDJ
118632014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11864
11865 * remote-utils.c: Include ctype.h.
11866 (input_interrupt): Explicitly handle the case when the char
11867 received is the NUL byte. Improve the printing of non-ASCII
11868 characters.
11869
beed38b8
JB
118702014-12-16 Joel Brobecker <brobecker@adacore.com>
11871
11872 * linux-low.c (linux_low_filter_event): Update call to
11873 linux_enable_event_reporting following the addition of
11874 a new parameter to that function.
11875
bf330350
CU
118762014-12-16 Catalin Udma <catalin.udma@freescale.com>
11877
11878 PR server/17457
11879 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11880 (AARCH64_FPCR_REGNO): Likewise.
11881 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11882 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11883 (aarch64_store_fpregset): Likewise.
11884
5227d625
JB
118852014-12-15 Joel Brobecker <brobecker@adacore.com>
11886
11887 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11888 Remove FIXME comment about assumption about N.
11889
f93b65a0
JB
118902014-12-13 Joel Brobecker <brobecker@adacore.com>
11891
11892 * configure.ac: If large-file support is disabled in GDBserver,
11893 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11894 * configure: Regenerate.
11895
e5a9158d
AA
118962014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11897
11898 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11899 warning upon ENODATA from ptrace.
11900 * linux-s390-low.c (s390_store_tdb): New.
11901 (s390_regsets): Add regset for NT_S390_TDB.
11902
feea5f36
AA
119032014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11904
11905 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11906 without a fill_function.
11907 * linux-s390-low.c (s390_fill_last_break): Remove.
11908 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11909 (s390_arch_setup): Use regset's size instead of fill_function for
11910 loop end condition.
11911
098dbe61
AA
119122014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11913
11914 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11915 the regset's store function when ptrace returned an error.
11916 * regcache.c (get_thread_regcache): Invalidate register cache
11917 before fetching inferior's registers.
11918
28eef672
AA
119192014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11920
11921 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11922 while-loop as for-loop.
11923 (regsets_store_inferior_registers): Likewise.
11924
bdca27a2
YQ
119252014-11-28 Yao Qi <yao@codesourcery.com>
11926
11927 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11928 * config.in, configure: Re-generate.
11929 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11930 is defined.
11931
9c232dda
YQ
119322014-11-21 Yao Qi <yao@codesourcery.com>
11933
11934 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11935 (AC_CHECK_HEADERS): Remove malloc.h.
11936 * configure: Re-generated.
11937 * config.in: Re-generated.
11938 * server.h: Don't include alloca.h and malloc.h.
11939 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11940 Don't include malloc.h.
11941
43968415
JB
119422014-11-17 Joel Brobecker <brobecker@adacore.com>
11943
11944 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11945 corresponding ERRNO check in same block.
11946
40e91bc7
PA
119472014-11-12 Pedro Alves <palves@redhat.com>
11948
11949 * server.c (cont_thread): Update comment.
11950 (start_inferior, attach_inferior): No longer clear cont_thread.
11951 (handle_v_cont): No longer set cont_thread.
11952 (captured_main): Clear cont_thread each time a GDB connects.
11953
c2c118cf
PA
119542014-11-12 Pedro Alves <palves@redhat.com>
11955
11956 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11957 thread, and don't resume all threads if the Hc thread has exited.
11958
78708b7c
PA
119592014-11-12 Pedro Alves <palves@redhat.com>
11960
11961 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11962 the process group instead of to a specific LWP.
11963
a2abc7de
PA
119642014-10-15 Pedro Alves <palves@redhat.com>
11965
11966 PR server/17487
11967 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11968 parameter.
11969 (arm_set_thread_context): Delete.
11970 (the_low_target): Adjust.
11971 * win32-i386-low.c (debug_registers_changed)
11972 (debug_registers_used): Delete.
11973 (update_debug_registers_callback): New function.
11974 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11975 needing to update their debug registers.
11976 (win32_get_current_dr): New function.
11977 (x86_dr_low_get_addr, x86_dr_low_get_control)
11978 (x86_dr_low_get_status): Fetch the debug register from the thread
11979 record's context.
11980 (i386_initial_stuff): Adjust.
11981 (i386_get_thread_context): Remove current_event parameter. Don't
11982 clear debug_registers_changed nor copy DR values to
11983 debug_reg_state.
11984 (i386_set_thread_context): Delete.
11985 (i386_prepare_to_resume): New function.
11986 (i386_thread_added): Mark the thread as needing to update irs
11987 debug registers.
11988 (the_low_target): Remove i386_set_thread_context and install
11989 i386_prepare_to_resume.
11990 * win32-low.c (win32_get_thread_context): Adjust.
11991 (win32_set_thread_context): Use SetThreadContext
11992 directly.
11993 (win32_prepare_to_resume): New function.
11994 (win32_require_context): New function, factored out from ...
11995 (thread_rec): ... this.
11996 (continue_one_thread): Call win32_prepare_to_resume on each thread
11997 we're about to continue.
11998 (win32_resume): Call win32_prepare_to_resume on the event thread.
11999 * win32-low.h (struct win32_thread_info)
12000 <debug_registers_changed>: New field.
12001 (struct win32_target_ops): Change prototype of set_thread_context,
12002 delete set_thread_context and add prepare_to_resume.
12003 (win32_require_context): New declaration.
12004
a442d071
GB
120052014-10-08 Gary Benson <gbenson@redhat.com>
12006
12007 * server.h: Do not include common-exceptions.h.
12008
6f1947e8
GB
120092014-10-08 Gary Benson <gbenson@redhat.com>
12010
12011 * server.h: Do not include cleanups.h.
12012
63b434a4
JH
120132014-09-30 James Hogan <james.hogan@imgtec.com>
12014
12015 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12016 mips64-dsp-linux.c.
12017
c4d9ceb6
YQ
120182014-09-23 Yao Qi <yao@codesourcery.com>
12019
12020 * linux-low.c (lp_status_maybe_breakpoint): New function.
12021 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12022 (count_events_callback): Likewise.
12023 (select_event_lwp_callback): Likewise.
12024 (cancel_breakpoints_callback): Likewise.
12025
89a5711c
DB
120262014-09-19 Don Breazeal <donb@codesourcery.com>
12027
12028 * linux-low.c (handle_extended_wait): Call
12029 linux_ptrace_get_extended_event.
12030 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12031 linux_is_extended_waitstatus.
12032
bffc0964
JB
120332014-09-16 Joel Brobecker <brobecker@adacore.com>
12034
12035 * Makefile.in (CPPFLAGS): Define.
12036 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12037 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12038
0bfdf32f
GB
120392014-09-16 Gary Benson <gbenson@redhat.com>
12040
12041 * inferiors.h (current_inferior): Renamed as...
12042 (current_thread): New variable. All uses updated.
12043 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12044 (maybe_move_out_of_jump_pad): Likewise.
12045 (cancel_breakpoint): Likewise.
12046 (linux_low_filter_event): Likewise.
12047 (wait_for_sigstop): Likewise.
12048 (linux_resume_one_lwp): Likewise.
12049 (need_step_over_p): Likewise.
12050 (start_step_over): Likewise.
12051 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12052 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12053 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12054 and save_inferior as saved_thread.
12055 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12056 saved_thread.
12057 (regcache_invalidate_thread): Likewise.
12058 * remote-utils.c (prepare_resume_reply): Likewise.
12059 * thread-db.c (thread_db_get_tls_address): Likewise.
12060 (disable_thread_event_reporting): Likewise.
12061 (remove_thread_event_breakpoints): Likewise.
12062 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12063 as saved_thread.
12064 * target.h (set_desired_inferior): Renamed as...
12065 (set_desired_thread): New declaration. All uses updated.
12066 * server.c (myresume): Updated comment to reference thread instead
12067 of inferior.
12068 (handle_serial_event): Likewise.
12069 (handle_target_event): Likewise.
12070
361c8ade
GB
120712014-09-12 Tom Tromey <tromey@redhat.com>
12072 Gary Benson <gbenson@redhat.com>
12073
12074 * regcache.h: Include common-regcache.h.
12075 (regcache_read_pc): Don't declare.
12076 * regcache.c (get_thread_regcache_for_ptid): New function.
12077
bd9269f7
GB
120782014-09-11 Tom Tromey <tromey@redhat.com>
12079 Gary Benson <gbenson@redhat.com>
12080
12081 * symbol.c: New file.
12082 * Makefile.in (SFILES): Add symbol.c.
12083 (OBS): Add symbol.o.
12084
f8c1d06b
GB
120852014-09-11 Gary Benson <gbenson@redhat.com>
12086
12087 * target.c (target_stop_ptid, target_continue_ptid): New
12088 functions.
12089
721ec300
GB
120902014-09-11 Tom Tromey <tromey@redhat.com>
12091 Gary Benson <gbenson@redhat.com>
12092
12093 * target.h: Include target/target.h.
12094 * target.c (target_read_memory, target_read_uint32)
12095 (target_write_memory): New functions.
12096
c5e92cca
GB
120972014-09-11 Gary Benson <gbenson@redhat.com>
12098
12099 * server.h (debug_hw_points): Don't declare.
12100 * server.c (debug_hw_points): Don't define. Replace all uses
12101 with show_debug_regs.
12102 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12103 all uses with show_debug_regs.
12104
2e4bb98a
EBM
121052014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12106
12107 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12108 endianness into account.
12109 (ppc_supply_ptrace_register): Likewise.
12110
ac740bc7
JH
121112014-09-03 James Hogan <james.hogan@imgtec.com>
12112
12113 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12114 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12115
97ea6506
GB
121162014-09-03 Gary Benson <gbenson@redhat.com>
12117
12118 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12119 ALL_DEBUG_ADDRESS_REGISTERS.
12120
df7e5265
GB
121212014-09-02 Gary Benson <gbenson@redhat.com>
12122
12123 * i386-low.h: Renamed as...
12124 * x86-low.h: New file. All type, function and variable name
12125 prefixes changed from "i386_" to "x86_". All references updated.
12126 * i386-low.c: Renamed as...
12127 * x86-low.c: New file. All type, function and variable name
12128 prefixes changed from "i386_" to "x86_". All references updated.
12129
ed859da7
GB
121302014-09-02 Gary Benson <gbenson@redhat.com>
12131
12132 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12133 (x86_linux_new_thread): Likewise.
12134
860789c7
GB
121352014-08-29 Gary Benson <gbenson@redhat.com>
12136
12137 * server.h (setjmp.h): Do not include.
12138 (toplevel): Do not declare.
12139 (common-exceptions.h): Include.
12140 (cleanups.h): Likewise.
12141 * server.c (toplevel): Do not define.
12142 (exit_code): New static global.
12143 (detach_or_kill_for_exit_cleanup): New function.
12144 (main): New function. Original main renamed to...
12145 (captured_main): New function.
12146 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12147
ff55e1b5
GB
121482014-08-29 Gary Benson <gbenson@redhat.com>
12149
12150 * Makefile.in (SFILES): Add common/common-exceptions.c.
12151 (OBS): Add common-exceptions.o.
12152 (common-exceptions.o): New rule.
12153 * utils.c (prepare_to_throw_exception): New function.
12154
e9bcb658
GB
121552014-08-29 Gary Benson <gbenson@redhat.com>
12156
12157 * config.in: Regenerate.
12158 * configure: Likewise.
12159
e3180625
GB
121602014-08-29 Gary Benson <gbenson@redhat.com>
12161
12162 * Makefile.in (SFILES): Add common/cleanups.c.
12163 (OBS): cleanups.o.
12164 (cleanups.o): New rule.
12165
e3d6ba5d
GB
121662014-08-29 Gary Benson <gbenson@redhat.com>
12167
12168 * utils.c (internal_vwarning): New function.
12169
7096e886
GB
121702014-08-28 Gary Benson <gbenson@redhat.com>
12171
12172 * utils.h (fatal): Remove declaration.
12173 * utils.c (fatal): Remove function.
12174
14ce3192
GB
121752014-08-28 Gary Benson <gbenson@redhat.com>
12176
12177 * tracepoint.c (gdb_agent_init): Replace fatal with
12178 perror_with_name.
12179 (initialize_tracepoint): Likewise.
12180
50278d59
GB
121812014-08-28 Gary Benson <gbenson@redhat.com>
12182
12183 * remote-utils.c (remote_prepare): Replace fatal with error.
12184
aa96c426
GB
121852014-08-28 Gary Benson <gbenson@redhat.com>
12186
12187 * linux-low.c (linux_async): Replace fatal with warning.
12188 Tidy up and return.
12189 (linux_start_non_stop): Return -1 if linux_async failed.
12190
f7160e97
GB
121912014-08-28 Gary Benson <gbenson@redhat.com>
12192
12193 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12194 gdb_assert.
12195 (i386_dr_low_get_addr): Remove vague comment.
12196 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12197 gdb_assert.
12198
38e08fca
GB
121992014-08-28 Gary Benson <gbenson@redhat.com>
12200
12201 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12202 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12203 internal_error.
12204 (linux_resume_one_lwp): Likewise.
12205 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12206 gdb_assert.
12207 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12208 with internal_error.
12209 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12210 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12211 (find_register_by_name): Replace fatal with internal_error.
12212 (find_regno): Likewise.
12213 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12214 * thread-db.c (thread_db_create_event): Likewise.
12215 (thread_db_load_search): Likewise.
12216 (try_thread_db_load_1): Likewise.
12217 * tracepoint.c (get_jump_space_head): Replace fatal with
12218 internal_error.
12219 (claim_trampoline_space): Likewise.
12220 (have_fast_tracepoint_trampoline_buffer): Likewise.
12221 (cmd_qtstart): Likewise.
12222 (stop_tracing): Likewise.
12223 (fast_tracepoint_collecting): Likewise.
12224 (target_malloc): Likewise.
12225 (download_tracepoint): Likewise.
12226 (download_trace_state_variables): Replace check with gdb_assert.
12227 (upload_fast_traceframes): Replace fatal with internal_error.
12228
34abf635
GB
122292014-08-19 Tom Tromey <tromey@redhat.com>
12230 Gary Benson <gbenson@redhat.com>
12231
12232 * Makefile.in (SFILES): Add common/common-debug.c.
12233 (OBS): Add common-debug.o.
12234 (common-debug.o): New rule.
12235 * debug.h (debug_printf): Don't declare.
12236 * debug.c (debug_printf): Renamed and rewritten as...
12237 (debug_vprintf): New function.
12238
f6e94d78
GB
122392014-08-19 Gary Benson <gbenson@redhat.com>
12240
12241 * utils.h: Do not include print-utils.h.
12242
9239eeab
GB
122432014-08-19 Tom Tromey <tromey@redhat.com>
12244 Gary Benson <gbenson@redhat.com>
12245
12246 * server.h: Add static assertion.
12247 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12248
ef87c8bb
GB
122492014-08-19 Tom Tromey <tromey@redhat.com>
12250 Gary Benson <gbenson@redhat.com>
12251
12252 * Makefile.in (SFILES): Add common/errors.c.
12253 (OBS): Add errors.o.
12254 (IPA_OBS): Add errors-ipa.o.
12255 (errors.o): New rule.
12256 (errors-ipa.o): Likewise.
12257 * utils.h (perror_with_name, error, warning): Don't declare.
12258 * utils.c (warning): Renamed and rewritten as...
12259 (vwarning): New function.
12260 (error): Renamed and rewritten as...
12261 (verror): New function.
12262 (internal_error): Renamed and rewritten as...
12263 (internal_verror): New function.
12264
bb974a24
GB
122652014-08-07 Gary Benson <gbenson@redhat.com>
12266
12267 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12268 * configure: Regenerate.
12269 * config.in: Likewise.
12270 * server.h: Do not include errno.h.
12271 * event-loop.c: Likewise.
12272 * hostio-errno.c: Likewise.
12273 * linux-low.c: Likewise.
12274 * remote-utils.c: Likewise.
12275 * spu-low.c: Likewise.
12276 * utils.c: Likewise.
12277 * gdbreplay.c: Unconditionally include errno.h.
12278
6d3d12eb
GB
122792014-08-07 Gary Benson <gbenson@redhat.com>
12280
12281 * server.h: Do not include string.h.
12282 * event-loop.c: Likewise.
12283 * linux-low.c: Likewise.
12284 * regcache.c: Likewise.
12285 * remote-utils.c: Likewise.
12286 * spu-low.c: Likewise.
12287 * utils.c: Likewise.
12288
dccbb609
GB
122892014-08-07 Gary Benson <gbenson@redhat.com>
12290
12291 * server.h: Do not include gdb_assert.h.
12292
e76df0d0
GB
122932014-08-07 Gary Benson <gbenson@redhat.com>
12294
12295 * server.h: Do not include common-utils.h.
12296
4cb9c816
GB
122972014-08-07 Gary Benson <gbenson@redhat.com>
12298
12299 * server.h: Do not include ptid.h.
12300 * notif.h: Likewise.
12301
3995eeee
GB
123022014-08-07 Gary Benson <gbenson@redhat.com>
12303
12304 * server.h: Do not include gdb_locale.h.
12305
cb9f1a9b
GB
123062014-08-07 Gary Benson <gbenson@redhat.com>
12307
12308 * server.h: Do not include gdb/signals.h.
12309 * win32-low.c: Likewise.
12310
a5fceff8
GB
123112014-08-07 Gary Benson <gbenson@redhat.com>
12312
12313 * server.h: Do not include pathmax.h.
12314
b9391142
GB
123152014-08-07 Gary Benson <gbenson@redhat.com>
12316
12317 * server.h: Do not include libiberty.h.
12318 * linux-bfin-low.c: Likewise.
12319
0e443c87
GB
123202014-08-07 Gary Benson <gbenson@redhat.com>
12321
12322 * server.h: Do not include ansidecl.h.
12323
8ebb3f56
GB
123242014-08-07 Gary Benson <gbenson@redhat.com>
12325
12326 * linux-x86-low.c: Do not include stddef.h.
12327 * lynx-ppc-low.c: Likewise.
12328 * tracepoint.c: Likewise.
12329
8980bdf6
GB
123302014-08-07 Gary Benson <gbenson@redhat.com>
12331
12332 * server.h: Do not include stdarg.h.
12333 * nto-low.c: Likewise.
12334
d7096f71
GB
123352014-08-07 Gary Benson <gbenson@redhat.com>
12336
12337 * server.h: Do not include stdlib.h.
12338 * inferiors.c: Likewise.
12339 * linux-low.c: Likewise.
12340 * regcache.c: Likewise.
12341 * spu-low.c: Likewise.
12342 * tracepoint.c: Likewise.
12343 * utils.c: Likewise.
12344
d02f550d
GB
123452014-08-07 Gary Benson <gbenson@redhat.com>
12346
12347 * server.h: Do not include stdio.h.
12348 * linux-low.c: Likewise.
12349 * remote-utils.c: Likewise.
12350 * spu-low.c: Likewise.
12351 * utils.c: Likewise.
12352 * wincecompat.c: Likewise.
12353
87f6c4e3
GB
123542014-08-06 Gary Benson <gbenson@redhat.com>
12355
12356 * regcache.c (init_register_cache): Move conditionals inside if.
12357
7089dca4
GB
123582014-08-06 Gary Benson <gbenson@redhat.com>
12359
12360 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12361
462f517e
GB
123622014-07-31 Gary Benson <gbenson@redhat.com>
12363
12364 * ax.h: Do not include server.h.
12365 * gdbthread.h: Likewise.
12366 * lynx-low.h: Likewise.
12367 * notif.h: Likewise.
12368
976411d6
GB
123692014-07-30 Gary Benson <gbenson@redhat.com>
12370
12371 * server.h: Include common-defs.h.
12372 Do not include config.h or build-gnulib-gdbserver/config.h.
12373
d41f6d8e
GB
123742014-07-30 Gary Benson <gbenson@redhat.com>
12375
12376 * hostio-errno.c: Move server.h to top of includes list.
12377 * inferiors.c: Likewise.
12378 * linux-x86-low.c: Likewise.
12379 * notif.c: Include server.h.
12380
314c6a35
TT
123812014-07-24 Tom Tromey <tromey@redhat.com>
12382 Gary Benson <gbenson@redhat.com>
12383
12384 * server.h (CORE_ADDR): Now unsigned.
12385
69ff6be5
PA
123862014-07-16 Pedro Alves <palves@redhat.com>
12387
12388 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12389
ce9e3fe7
PA
123902014-07-15 Pedro Alves <palves@redhat.com>
12391
12392 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12393 copy.
12394
e76126e8
PA
123952014-07-11 Pedro Alves <palves@redhat.com>
12396
12397 * linux-low.c (kill_wait_lwp): New function, based on
12398 kill_one_lwp_callback, but use my_waitpid directly.
12399 (kill_one_lwp_callback, linux_kill): Use it.
12400
8e9db26e
PA
124012014-06-23 Pedro Alves <palves@redhat.com>
12402
12403 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12404 before setting DR0..DR3.
12405
698b3e08
GB
124062014-06-20 Gary Benson <gbenson@redhat.com>
12407
12408 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12409 * configure: Regenerated.
12410 * config.in: Likewise.
12411
125f8a3d
GB
124122014-06-20 Gary Benson <gbenson@redhat.com>
12413
12414 * Makefile.in (SFILES): Update locations for files moved
12415 from common to nat.
12416 (object file files): Reordered.
12417
42995dbd
GB
124182014-06-20 Gary Benson <gbenson@redhat.com>
12419
12420 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12421 (i386_dr_low_set_addr): Likewise.
12422 (i386_dr_low_get_addr): Likewise.
12423 (i386_dr_low_can_set_control): Likewise.
12424 (i386_dr_low_set_control): Likewise.
12425 (i386_dr_low_get_control): Likewise.
12426 (i386_dr_low_get_status): Likewise.
12427 (i386_get_debug_register_length): Likewise.
12428 * linux-x86-low.c (i386_dr_low_set_addr):
12429 Changed signature. Made static.
12430 (i386_dr_low_get_addr): Likewise.
12431 (i386_dr_low_set_control): Likewise.
12432 (i386_dr_low_get_control): Likewise.
12433 (i386_dr_low_get_status): Likewise.
12434 (i386_dr_low): New global variable.
12435 * win32-i386-low.c (i386_dr_low_set_addr):
12436 Changed signature. Made static.
12437 (i386_dr_low_get_addr): Likewise.
12438 (i386_dr_low_set_control): Likewise.
12439 (i386_dr_low_get_control): Likewise.
12440 (i386_dr_low_get_status): Likewise.
12441 (i386_dr_low): New global variable.
12442
e1d2394b
MS
124432014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12444
12445 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12446 * Makefile.in (AR, AR_FLAGS): Define.
12447 * configure: Regenerate.
12448
3a8ee006
GB
124492014-06-19 Gary Benson <gbenson@redhat.com>
12450
12451 * Makefile.in (i386-dregs.o): New rule.
12452 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12453 * i386-low.c (target.h): Remove include.
12454 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12455 (DR_CONTROL_SHIFT): Likewise.
12456 (DR_CONTROL_SIZE): Likewise.
12457 (DR_RW_EXECUTE): Likewise.
12458 (DR_RW_WRITE): Likewise.
12459 (DR_RW_READ): Likewise.
12460 (DR_RW_IORW): Likewise.
12461 (DR_LEN_1): Likewise.
12462 (DR_LEN_2): Likewise.
12463 (DR_LEN_4): Likewise.
12464 (DR_LEN_8): Likewise.
12465 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12466 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12467 (DR_ENABLE_SIZE): Likewise.
12468 (DR_LOCAL_SLOWDOWN): Likewise.
12469 (DR_GLOBAL_SLOWDOWN): Likewise.
12470 (DR_CONTROL_RESERVED): Likewise.
12471 (I386_DR_CONTROL_MASK): Likewise.
12472 (I386_DR_VACANT): Likewise.
12473 (I386_DR_LOCAL_ENABLE): Likewise.
12474 (I386_DR_GLOBAL_ENABLE): Likewise.
12475 (I386_DR_DISABLE): Likewise.
12476 (I386_DR_SET_RW_LEN): Likewise.
12477 (I386_DR_GET_RW_LEN): Likewise.
12478 (I386_DR_WATCH_HIT): Likewise.
12479 (i386_wp_op_t): Likewise.
12480 (i386_show_dr): Likewise.
12481 (i386_length_and_rw_bits): Likewise.
12482 (i386_insert_aligned_watchpoint): Likewise.
12483 (i386_remove_aligned_watchpoint): Likewise.
12484 (i386_handle_nonaligned_watchpoint): Likewise.
12485 i386_update_inferior_debug_regs(): Likewise.
12486 (i386_dr_insert_watchpoint): Likewise.
12487 (i386_dr_remove_watchpoint): Likewise.
12488 (i386_dr_region_ok_for_watchpoint): Likewise.
12489 (i386_dr_stopped_data_address): Likewise.
12490 (i386_dr_stopped_by_watchpoint): Likewise.
12491
8f26655c
GB
124922014-06-19 Gary Benson <gbenson@redhat.com>
12493
12494 * i386-low.c (i386_dr_show): Renamed to
12495 i386_show_dr and made static. All uses updated.
12496 (i386_dr_length_and_rw_bits): Renamed to
12497 i386_length_and_rw_bits and made static.
12498 All uses updated.
12499 (i386_dr_insert_aligned_watchpoint): Renamed to
12500 i386_insert_aligned_watchpoint and made static.
12501 All uses updated.
12502 (i386_dr_remove_aligned_watchpoint): Renamed to
12503 i386_remove_aligned_watchpoint and made static.
12504 All uses updated.
12505 (i386_dr_update_inferior_debug_regs): Renamed to
12506 i386_update_inferior_debug_regs and made static.
12507 All uses updated.
12508
b9228891
GB
125092014-06-18 Gary Benson <gbenson@redhat.com>
12510
5171def3
GB
12511 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12512 (i386_dr_low_can_set_control): Likewise.
12513 (i386_get_debug_register_length): Likewise.
12514 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12515 (i386_dr_low_can_set_control): Likewise.
12516 (i386_get_debug_register_length): Likewise.
12517
125182014-06-17 Gary Benson <gbenson@redhat.com>
12519
b9228891
GB
12520 * i386-low.h (i386-dregs.h): New include.
12521 (DR_FIRSTADDR): Now in i386-dregs.h.
12522 (DR_LASTADDR): Likewise.
12523 (DR_NADDR): Likewise.
12524 (DR_STATUS): Likewise.
12525 (DR_CONTROL): Likewise.
12526 (i386_debug_reg_state): Likewise.
12527 (i386_dr_insert_watchpoint): Likewise.
12528 (i386_dr_remove_watchpoint): Likewise.
12529 (i386_dr_region_ok_for_watchpoint): Likewise.
12530 (i386_dr_stopped_data_address): Likewise.
12531 (i386_dr_stopped_by_watchpoint): Likewise.
12532 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12533
4be83cc2
GB
125342014-06-18 Gary Benson <gbenson@redhat.com>
12535
12536 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12537 i386_dr_insert_watchpoint.
12538 (i386_low_remove_watchpoint): Renamed to
12539 i386_dr_remove_watchpoint.
12540 (i386_low_region_ok_for_watchpoint): Renamed to
12541 i386_dr_region_ok_for_watchpoint.
12542 (i386_low_stopped_data_address): Renamed to
12543 i386_dr_stopped_data_address.
12544 (i386_low_stopped_by_watchpoint): Renamed to
12545 i386_dr_stopped_by_watchpoint.
12546 * i386-low.c (i386_show_dr): Renamed to
12547 i386_dr_show and made nonstatic. All uses updated.
12548 (i386_length_and_rw_bits): Renamed to
12549 i386_dr_length_and_rw_bits and made nonstatic.
12550 All uses updated.
12551 (i386_insert_aligned_watchpoint): Renamed to
12552 i386_dr_insert_aligned_watchpoint and made nonstatic.
12553 All uses updated.
12554 (i386_remove_aligned_watchpoint): Renamed to
12555 i386_dr_remove_aligned_watchpoint and made nonstatic.
12556 All uses updated.
12557 (i386_update_inferior_debug_regs): Renamed to
12558 i386_dr_update_inferior_debug_regs and made nonstatic.
12559 All uses updated.
12560 (i386_low_insert_watchpoint): Renamed to
12561 i386_dr_insert_watchpoint. All uses updated.
12562 (i386_low_remove_watchpoint): Renamed to
12563 i386_dr_remove_watchpoint. All uses updated.
12564 (i386_low_region_ok_for_watchpoint): Renamed to
12565 i386_dr_region_ok_for_watchpoint. All uses updated.
12566 (i386_low_stopped_data_address): Renamed to
12567 i386_dr_stopped_data_address. All uses updated.
12568 (i386_low_stopped_by_watchpoint): Renamed to
12569 i386_dr_stopped_by_watchpoint. All uses updated.
12570
131aa0d4
GB
125712014-06-18 Gary Benson <gbenson@redhat.com>
12572
12573 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12574 (i386_dr_low_can_set_control): Likewise.
12575 (i386_insert_aligned_watchpoint): New check.
12576
d9305f7f
GB
125772014-06-18 Gary Benson <gbenson@redhat.com>
12578
12579 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12580 Renamed to state.
12581
e927c9fc
GB
125822014-06-18 Gary Benson <gbenson@redhat.com>
12583
12584 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12585 instead of fatal and error.
12586 (i386_handle_nonaligned_watchpoint): Likewise.
12587
1b6d4134
GB
125882014-06-18 Gary Benson <gbenson@redhat.com>
12589
12590 * i386-low.c (i386_get_debug_register_length): New macro.
12591 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12592 (i386_show_dr): Use debug_printf instead of fprintf. Use
12593 phex to format values.
12594
6e62758f
GB
125952014-06-18 Gary Benson <gbenson@redhat.com>
12596
12597 * i386-low.h: Comment changes.
12598 * i386-low.c: Likewise.
12599
fc6e2f03
GB
126002014-06-18 Gary Benson <gbenson@redhat.com>
12601
12602 * i386-low.c: Whitespace changes.
12603
f9d1eeed
TT
126042014-06-12 Tom Tromey <tromey@redhat.com>
12605
12606 * utils.c (freeargv): Remove.
12607
0b04e523
TT
126082014-06-12 Tom Tromey <tromey@redhat.com>
12609
12610 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12611 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12612 (parse_debug_format_options): Likewise.
12613 (gdbserver_usage): Likewise.
12614 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12615 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12616 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12617 against libiberty.
12618 ($(LIBGNU)): Depend on libiberty.
12619 (all-lib): Recurse into all subdirs.
12620 (install-only): Invoke "install" target in subdirs.
12621 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12622 targets.
12623 * configure: Rebuild.
12624 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12625 for vasprintf, vsnprintf, or gettimeofday.
12626 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12627 srv_tgtobj.
12628
270c9937
JB
126292014-06-05 Joel Brobecker <brobecker@adacore.com>
12630
12631 * development.sh: Delete.
12632 * Makefile.in (config.status): Adjust dependency on development.sh.
12633 * configure.ac: Adjust development.sh source call.
12634 * configure: Regenerate.
12635
0a261ed8
PA
126362014-06-02 Pedro Alves <palves@redhat.com>
12637
12638 * ax.c (gdb_free_agent_expr): New function.
12639 * ax.h (gdb_free_agent_expr): New declaration.
12640 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12641 list.
12642 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12643 static.
12644 (clear_breakpoint_conditions_and_commands): New function.
12645 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12646 (clear_breakpoint_conditions_and_commands): New declaration.
12647
e9dae05e
RR
126482014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12649
12650 * linux-aarch64-low.c (asm/ptrace.h): Include.
12651
5876f503
JK
126522014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12653
12654 Fix TLS access for -static -pthread.
12655 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12656 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12657 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12658
802e8e6d
PA
126592014-05-20 Pedro Alves <palves@redhat.com>
12660
12661 * linux-aarch64-low.c (aarch64_insert_point)
12662 (aarch64_remove_point): No longer check whether the type is
12663 supported here. Adjust to new interface.
12664 (the_low_target): Install aarch64_supports_z_point_type as
12665 supports_z_point_type method.
12666 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12667 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12668 instead of a Z packet char. Adjust.
12669 (arm_supports_z_point_type): New function.
12670 (arm_insert_point, arm_remove_point): Adjust to new interface.
12671 (the_low_target): Install arm_supports_z_point_type.
12672 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12673 (cris_insert_point, cris_remove_point): Adjust to new interface.
12674 Don't check whether the type is supported here.
12675 (the_low_target): Install cris_supports_z_point_type.
12676 * linux-low.c (linux_supports_z_point_type): New function.
12677 (linux_insert_point, linux_remove_point): Adjust to new interface.
12678 * linux-low.h (struct linux_target_ops) <insert_point,
12679 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12680 raw_breakpoint pointer parameter.
12681 <supports_z_point_type>: New method.
12682 * linux-mips-low.c (mips_supports_z_point_type): New function.
12683 (mips_insert_point, mips_remove_point): Adjust to new interface.
12684 Use mips_supports_z_point_type.
12685 (the_low_target): Install mips_supports_z_point_type.
12686 * linux-ppc-low.c (the_low_target): Install NULL as
12687 supports_z_point_type method.
12688 * linux-s390-low.c (the_low_target): Install NULL as
12689 supports_z_point_type method.
12690 * linux-sparc-low.c (the_low_target): Install NULL as
12691 supports_z_point_type method.
12692 * linux-x86-low.c (x86_supports_z_point_type): New function.
12693 (x86_insert_point): Adjust to new insert_point interface. Use
12694 insert_memory_breakpoint. Adjust to new
12695 i386_low_insert_watchpoint interface.
12696 (x86_remove_point): Adjust to remove_point interface. Use
12697 remove_memory_breakpoint. Adjust to new
12698 i386_low_remove_watchpoint interface.
12699 (the_low_target): Install x86_supports_z_point_type.
12700 * lynx-low.c (lynx_target_ops): Install NULL as
12701 supports_z_point_type callback.
12702 * nto-low.c (nto_supports_z_point_type): New.
12703 (nto_insert_point, nto_remove_point): Adjust to new interface.
12704 (nto_target_ops): Install nto_supports_z_point_type.
12705 * mem-break.c: Adjust intro comment.
12706 (struct raw_breakpoint) <raw_type, size>: New fields.
12707 <inserted>: Update comment.
12708 <shlib_disabled>: Delete field.
12709 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12710 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12711 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12712 (raw_bkpt_type_to_target_hw_bp_type): New function.
12713 (find_enabled_raw_code_breakpoint_at): New function.
12714 (find_raw_breakpoint_at): New type and size parameters. Use them.
12715 (insert_memory_breakpoint): New function, based off
12716 set_raw_breakpoint_at.
12717 (remove_memory_breakpoint): New function.
12718 (set_raw_breakpoint_at): Reimplement.
12719 (set_breakpoint): New, based on set_breakpoint_at.
12720 (set_breakpoint_at): Reimplement.
12721 (delete_raw_breakpoint): Go through the_target->remove_point
12722 instead of assuming memory breakpoints.
12723 (find_gdb_breakpoint_at): Delete.
12724 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12725 (find_gdb_breakpoint): New function.
12726 (set_gdb_breakpoint_at): Delete.
12727 (z_type_supported): New function.
12728 (set_gdb_breakpoint_1): New function, loosely based off
12729 set_gdb_breakpoint_at.
12730 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12731 (delete_gdb_breakpoint_at): Delete.
12732 (delete_gdb_breakpoint_1): New function, loosely based off
12733 delete_gdb_breakpoint_at.
12734 (delete_gdb_breakpoint): New function.
12735 (clear_gdb_breakpoint_conditions): Rename to ...
12736 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12737 breakpoint.
12738 (add_condition_to_breakpoint): Make static.
12739 (add_breakpoint_condition): Take a struct breakpoint pointer
12740 instead of an address. Adjust.
12741 (gdb_condition_true_at_breakpoint): Rename to ...
12742 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12743 z_type parameter.
12744 (gdb_condition_true_at_breakpoint): Reimplement.
12745 (add_breakpoint_commands): Take a struct breakpoint pointer
12746 instead of an address. Adjust.
12747 (gdb_no_commands_at_breakpoint): Rename to ...
12748 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12749 parameter. Return true if no breakpoint was found. Change debug
12750 output.
12751 (gdb_no_commands_at_breakpoint): Reimplement.
12752 (run_breakpoint_commands): Rename to ...
12753 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12754 and change return type to boolean.
12755 (run_breakpoint_commands): New function.
12756 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12757 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12758 breakpoint. Go through the_target->remove_point instead of
12759 assuming memory breakpoint.
12760 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12761 software and hardware breakpoints.
12762 (reinsert_raw_breakpoint): Go through the_target->insert_point
12763 instead of assuming memory breakpoint.
12764 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12765 software and hardware breakpoints.
12766 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12767 Check both software and hardware breakpoints.
12768 (validate_inserted_breakpoint): Assert the breakpoint is a
12769 software breakpoint. Set the inserted flag to -1 instead of
12770 setting shlib_disabled.
12771 (delete_disabled_breakpoints): Adjust.
12772 (validate_breakpoints): Only validate software breakpoints.
12773 Adjust to inserted flag change.
12774 (check_mem_read, check_mem_write): Skip breakpoint types other
12775 than software breakpoints. Adjust to inserted flag change.
12776 * mem-break.h (enum raw_bkpt_type): New enum.
12777 (raw_breakpoint, struct process_info): Forward declare.
12778 (Z_packet_to_target_hw_bp_type): Delete declaration.
12779 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12780 (set_gdb_breakpoint, delete_gdb_breakpoint)
12781 (clear_breakpoint_conditions): New declarations.
12782 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12783 (breakpoint_inserted_here): Update comment.
12784 (add_breakpoint_condition, add_breakpoint_commands): Replace
12785 address parameter with a breakpoint pointer parameter.
12786 (gdb_breakpoint_here): Update comment.
12787 (delete_gdb_breakpoint_at): Delete.
12788 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12789 * server.c (process_point_options): Take a struct breakpoint
12790 pointer instead of an address. Adjust.
12791 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12792 delete_gdb_breakpoint.
12793 * spu-low.c (spu_target_ops): Install NULL as
12794 supports_z_point_type method.
12795 * target.h: Include mem-break.h.
12796 (struct target_ops) <prepare_to_access_memory>: Update comment.
12797 <supports_z_point_type>: New field.
12798 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12799 instead of a char. Also take a raw breakpoint pointer.
12800 * win32-arm-low.c (the_low_target): Install NULL as
12801 supports_z_point_type.
12802 * win32-i386-low.c (i386_supports_z_point_type): New function.
12803 (i386_insert_point, i386_remove_point): Adjust to new interface.
12804 (the_low_target): Install i386_supports_z_point_type.
12805 * win32-low.c (win32_supports_z_point_type): New function.
12806 (win32_insert_point, win32_remove_point): Adjust to new interface.
12807 (win32_target_ops): Install win32_supports_z_point_type.
12808 * win32-low.h (struct win32_target_ops):
12809 <supports_z_point_type>: New method.
12810 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12811 instead of a char. Also take a raw breakpoint pointer.
12812
932539e3
PA
128132014-05-20 Pedro Alves <palves@redhat.com>
12814
12815 * mem-break.h: Include break-common.h.
12816 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12817 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12818 (Z_packet_to_target_hw_bp_type): New declaration.
12819 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12820 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12821 (Z_PACKET_ACCESS_WP): Delete macros.
12822 (Z_packet_to_hw_type): Delete function.
12823 * i386-low.h: Don't include break-common.h here.
12824 (Z_packet_to_hw_type): Delete declaration.
12825 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12826 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12827 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12828 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12829 * linux-aarch64-low.c: Don't include break-common.h here.
12830 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12831 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12832 (Z_packet_to_target_hw_bp_type): Delete function.
12833 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12834 function.
12835 (mips_insert_point, mips_remove_point): Use
12836 Z_packet_to_target_hw_bp_type.
12837
4ff0d3d8
PA
128382014-05-20 Pedro Alves <palves@redhat.com>
12839
12840 * linux-aarch64-low.c: Include break-common.h.
12841 (enum target_point_type): Delete.
12842 (Z_packet_to_point_type): Rename to ...
12843 (Z_packet_to_target_hw_bp_type): ... this, and return a
12844 target_hw_bp_type instead.
12845 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12846 instead of an enum target_point_type.
12847 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12848 breakpoint type.
12849 (aarch64_dr_state_insert_one_point)
12850 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12851 (aarch64_handle_aligned_watchpoint)
12852 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12853 Take an enum target_hw_bp_type instead of an enum
12854 target_point_type.
12855 (aarch64_supports_z_point_type): New function.
12856 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12857 use Z_packet_to_target_hw_bp_type.
12858
786dc519
JB
128592014-05-20 Joel Brobecker <brobecker@adacore.com>
12860
12861 * configure.ac: Only use -Werror by default when DEVELOPMENT
12862 is true.
12863 * configure: Regenerate.
12864
9e0aa64f
JK
128652014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12866
12867 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12868 * linux-x86-low.c (X86_64_USER_REGS): New.
12869 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12870
2b577b92
YQ
128712014-04-28 Yao Qi <yao@codesourcery.com>
12872
12873 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12874 name.
12875
94611da2
PA
128762014-04-25 Pedro Alves <palves@redhat.com>
12877
12878 PR server/16255
12879 * linux-low.c (linux_attach_fail_reason_string): New function.
12880 (linux_attach_lwp): Delete.
12881 (linux_attach_lwp_1): Rename to ...
12882 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12883 argument. Remove "initial" parameter. Return int instead of
12884 void. Don't error or warn here.
12885 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12886 failure to attach to the tgid. Call warning when failing to
12887 attach to an lwp.
12888 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12889 argument. Remove "initial" parameter. Return int instead of
12890 void. Don't error or warn here.
12891 (linux_attach_fail_reason_string): New declaration.
12892 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12893 interface change. Use linux_attach_fail_reason_string.
12894
01f9f808
MS
128952014-04-24 Michael Sturm <michael.sturm@mintel.com>
12896 Walfred Tedeschi <walfred.tedeschi@intel.com>
12897
12898 * Makefile.in: Added rules to handle new files
12899 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12900 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12901 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12902 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12903 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12904 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12905 x32-avx512-linux.o.
12906 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12907 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12908 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12909 i386/x32-avx512.xml.
12910 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12911 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12912 i386/x32-avx512-linux.xml.
12913 * i387-fp.c (num_avx512_k_registers): New constant for number
12914 of K registers.
12915 (num_avx512_zmmh_low_registers): New constant for number of
12916 lower ZMM registers (0-15).
12917 (num_avx512_zmmh_high_registers): New constant for number of
12918 higher ZMM registers (16-31).
12919 (num_avx512_ymmh_registers): New contant for number of higher
12920 YMM registers (ymm16-31 added by avx521 on x86_64).
12921 (num_avx512_xmm_registers): New constant for number of higher
12922 XMM registers (xmm16-31 added by AVX512 on x86_64).
12923 (struct i387_xsave): Add space for AVX512 registers.
12924 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12925 Add code to handle AVX512 registers.
12926 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12927 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12928 prototypei from generated file.
12929 (tdesc_amd64_avx512_linux): Likewise.
12930 (init_registers_x32_avx512_linux): Likewise.
12931 (tdesc_x32_avx512_linux): Likewise.
12932 (init_registers_i386_avx512_linux): Likewise.
12933 (tdesc_i386_avx512_linux): Likewise.
12934 (x86_64_regmap): Add AVX512 registers.
12935 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12936 mask.
12937 (initialize_low_arch): Add code to initialize AVX512 registers.
12938
51aa91f9
PA
129392014-04-23 Pedro Alves <palves@redhat.com>
12940
12941 * mem-break.c (find_gdb_breakpoint_at): Make static.
12942 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12943
a4165e94
PA
129442014-04-23 Pedro Alves <palves@redhat.com>
12945
12946 * i386-low.c: Don't include break-common.h here.
12947 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12948 prototype to take target_hw_bp_type as argument instead of a Z
12949 packet char.
12950 * i386-low.h: Include break-common.h here.
12951 (Z_packet_to_hw_type): Declare.
12952 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12953 prototypes.
12954 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12955 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12956 (x86_remove_point): Convert the packet number to a
12957 target_hw_bp_type before calling i386_low_remove_watchpoint.
12958 * win32-i386-low.c (i386_insert_point): Convert the packet number
12959 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12960 (i386_remove_point): Convert the packet number to a
12961 target_hw_bp_type before calling i386_low_remove_watchpoint.
12962
b8acf843
PA
129632014-04-23 Pedro Alves <palves@redhat.com>
12964
12965 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12966
d708bcd1
PA
129672014-04-10 Pedro Alves <palves@redhat.com>
12968
12969 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12970 Check if the condition or command is NULL before checking if the
12971 breakpoint is known. On success, return true.
12972 * mem-break.h (add_breakpoint_condition): Document return.
12973 (add_breakpoint_commands): Add describing comment.
12974 * server.c (skip_to_semicolon): New function.
12975 (process_point_options): Use it.
12976
2eec7d5b
PA
129772014-04-09 Pedro Alves <palves@redhat.com>
12978
12979 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12980 to lwpid_of.
12981
fa96cb38
PA
129822014-02-27 Pedro Alves <palves@redhat.com>
12983
12984 PR 12702
12985 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12986 macros.
12987 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12988 output.
12989 (last_thread_of_process_p): Take a PID argument instead of a
12990 thread pointer.
12991 (linux_wait_for_lwp): Delete.
12992 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12993 functions.
12994 (linux_low_filter_event): New function, party factored out from
12995 linux_wait_for_event.
12996 (linux_wait_for_event): Rename to ...
12997 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12998 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12999 sigsuspend. Check for zombie leaders.
13000 (linux_wait_for_event): Reimplement as wrapper around
13001 linux_wait_for_event_filtered.
13002 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13003 a normal or signal exit is seen, it's the whole process exiting.
13004 (wait_for_sigstop): No longer a for_each_inferior callback.
13005 Rewrite on top of linux_wait_for_event_filtered.
13006 (stop_all_lwps): Call wait_for_sigstop directly.
13007 * server.c (resume, handle_target_event): Handle
13008 TARGET_WAITKIND_NO_RESUMED.
13009
d763de10
JB
130102014-02-26 Joel Brobecker <brobecker@adacore.com>
13011
13012 * win32-low.c (psapi_get_dll_name,
13013 * win32_CreateToolhelp32Snapshot): Delete.
13014 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13015 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13016 Delete.
13017 (handle_load_dll): Add function description.
13018 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13019
850a0f76
JB
130202014-02-26 Joel Brobecker <brobecker@adacore.com>
13021
13022 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13023 Add comment.
13024 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13025 base address when calling win32_add_one_solib.
13026 (handle_load_dll): Delete local variable load_addr.
13027 Remove 0x1000 offset applied to DLL base address when calling
13028 win32_add_one_solib.
13029 (handle_unload_dll): Add comment.
13030
f25b3fc3
JB
130312014-02-26 Joel Brobecker <brobecker@adacore.com>
13032
13033 * win32-low.c (win32_add_all_dlls): Renames
13034 win32_ensure_ntdll_loaded. Rewrite function documentation.
13035 Adjust implementation to always load all DLLs.
13036 Add 0x1000 offset to DLL base address when calling
13037 win32_add_one_solib.
13038 (child_initialization_done): New static global.
13039 (do_initial_child_stuff): Set child_initialization_done to
13040 zero during child initialization, and 1 after. Replace call
13041 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13042 Add comment.
13043 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13044 (handle_unload_dll): Add function documentation.
13045 (get_child_debug_event): Ignore load and unload DLL events
13046 during child initialization.
13047
d86d4aaf
DE
130482014-02-20 Doug Evans <dje@google.com>
13049
3bc32da3 13050 Remove global all_lwps.
d86d4aaf
DE
13051 * inferiors.h (ptid_of): Move here from linux-low.h.
13052 (pid_of, lwpid_of): Ditto.
13053 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13054 parameter is a struct thread_info * now.
13055 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13056 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13057 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13058 directly.
13059 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13060 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13061 * linux-arm-low.c (update_registers_callback): Update, "entry"
13062 parameter is a struct thread_info * now.
13063 Fetch lwpid from current_inferior directly.
13064 (arm_insert_point): Pass &all_threads to find_inferior instead of
13065 &all_lwps.
13066 (arm_remove_point): Ditto.
13067 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13068 (arm_prepare_to_resume): Fetch pid from thread.
13069 (arm_read_description): Fetch lwpid from current_inferior directly.
13070 * linux-low.c (all_lwps): Delete.
13071 (delete_lwp): Delete call to remove_inferior.
13072 (handle_extended_wait): Fetch lwpid from thread.
13073 (add_lwp): Don't set lwp->entry.id. Remove call to
13074 add_inferior_to_list.
13075 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13076 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13077 (kill_one_lwp_callback): Ditto.
13078 (linux_kill): Don't dereference NULL pointer.
13079 Fetch ptid,lwpid from thread.
13080 (get_detach_signal): Fetch ptid from thread.
13081 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13082 Simplify call to regcache_invalidate_thread.
13083 (delete_lwp_callback): Update, "entry" parameter is a
13084 struct thread_info * now. Fetch pid from thread.
13085 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13086 (status_pending_p_callback): Update, "entry" parameter is a
13087 struct thread_info * now. Fetch ptid from thread.
13088 (find_lwp_pid): Update, "entry" parameter is a
13089 struct thread_info * now.
13090 (linux_wait_for_lwp): Fetch pid from thread.
13091 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13092 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13093 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13094 (dequeue_one_deferred_signal): Ditto.
13095 (cancel_breakpoint): Fetch ptid from current_inferior.
13096 (linux_wait_for_event): Pass &all_threads to find_inferior,
13097 not &all_lwps. Fetch ptid, lwpid from thread.
13098 (count_events_callback): Update, "entry" parameter is a
13099 struct thread_info * now.
13100 (select_singlestep_lwp_callback): Ditto.
13101 (select_event_lwp_callback): Ditto.
13102 (cancel_breakpoints_callback): Ditto.
13103 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13104 not &all_lwps.
13105 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13106 (unsuspend_one_lwp): Update, "entry" parameter is a
13107 struct thread_info * now.
13108 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13109 not &all_lwps.
13110 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13111 Fetch lwpid from thread, not lwp.
13112 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13113 Pass &all_threads to find_inferior, not &all_lwps.
13114 (send_sigstop): Fetch lwpid from thread, not lwp.
13115 (send_sigstop_callback): Update, "entry" parameter is a
13116 struct thread_info * now.
13117 (suspend_and_send_sigstop_callback): Ditto.
13118 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13119 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13120 struct thread_info * now.
13121 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13122 from thread, lwp.
13123 (lwp_running): Update, "entry" parameter is a
13124 struct thread_info * now.
13125 (stop_all_lwps): Fetch ptid from thread.
13126 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13127 (linux_resume_one_lwp): Fetch lwpid from thread.
13128 (linux_set_resume_request): Update, "entry" parameter is a
13129 struct thread_info * now. Fetch pid, lwpid from thread.
13130 (resume_status_pending_p): Update, "entry" parameter is a
13131 struct thread_info * now.
13132 (need_step_over_p): Ditto. Fetch lwpid from thread.
13133 (start_step_over): Fetch lwpid from thread.
13134 (linux_resume_one_thread): Update, "entry" parameter is a
13135 struct thread_info * now. Fetch lwpid from thread.
13136 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13137 (proceed_one_lwp): Update, "entry" parameter is a
13138 struct thread_info * now. Fetch lwpid from thread.
13139 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13140 struct thread_info * now.
13141 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13142 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13143 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13144 directly.
13145 (regsets_store_inferior_registers): Ditto.
13146 (fetch_register, store_register): Ditto.
13147 (linux_read_memory, linux_write_memory): Ditto.
13148 (linux_request_interrupt): Ditto.
13149 (linux_read_auxv): Ditto.
13150 (linux_xfer_siginfo): Ditto.
13151 (linux_qxfer_spu): Ditto.
13152 (linux_qxfer_libraries_svr4): Ditto.
13153 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13154 moved to inferiors.h.
13155 (get_lwp): Delete.
13156 (get_thread_lwp): Update.
13157 (struct lwp_info): Delete member "entry". Simplify comment for
13158 member "thread".
13159 (all_lwps): Delete.
13160 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13161 current_inferior directly.
13162 (update_watch_registers_callback): Update, "entry" parameter is a
13163 struct thread_info * now. Fetch pid from thread.
13164 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13165 (mips_insert_point): Fetch lwpid from current_inferior.
13166 Pass &all_threads to find_inferior, not &all_lwps.
13167 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13168 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13169 directly.
13170 (mips_stopped_data_address): Ditto.
13171 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13172 directly.
13173 * linux-tile-low.c (tile_arch_setup): Ditto.
13174 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13175 (update_debug_registers_callback): Update, "entry" parameter is a
13176 struct thread_info * now. Fetch pid from thread.
13177 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13178 Pass &all_threads to find_inferior, not &all_lwps.
13179 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13180 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13181 Pass &all_threads to find_inferior, not &all_lwps.
13182 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13183 (i386_dr_low_get_status): Ditto.
13184 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13185 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13186 (x86_linux_read_description): Ditto.
13187 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13188
3b8361aa
DE
131892014-02-20 Doug Evans <dje@google.com>
13190
13191 * inferiors.c (get_first_inferior): Fix buglet.
13192
f7667f0d
DE
131932014-02-19 Doug Evans <dje@google.com>
13194
13195 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13196 * inferiors.c (add_thread): Change result type to struct thread_info *.
13197 All callers updated.
13198 (add_lwp): Call add_thread here instead of in callers.
13199 All callers updated.
13200 * linux-low.h (get_lwp_thread): Rewrite.
13201 (struct lwp_info): New member "thread".
13202
b3312d80
DE
132032014-02-19 Doug Evans <dje@google.com>
13204
13205 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13206 All callers updated.
13207
ecc6f45c
DE
132082014-02-19 Doug Evans <dje@google.com>
13209
13210 * inferiors.c (add_thread): Fix whitespace.
13211
649ebbca
DE
132122014-02-19 Doug Evans <dje@google.com>
13213
13214 * dll.c (clear_dlls): Replace accessing list implemention details
13215 with API function.
13216 * gdbthread.h (get_first_thread): Declare.
13217 * inferiors.c (for_each_inferior_with_data): New function.
13218 (get_first_thread): New function.
13219 (find_thread_ptid): Simplify.
13220 (get_first_inferior): New function.
13221 (clear_list): Delete.
13222 (one_inferior_p): New function.
13223 (clear_inferior_list): New function.
13224 (clear_inferiors): Update.
13225 * inferiors.h (for_each_inferior_with_data): Declare.
13226 (clear_inferior_list): Declare.
13227 (one_inferior_p): Declare.
13228 (get_first_inferior): Declare.
13229 * linux-low.c (linux_wait_for_event): Replace accessing list
13230 implemention details with API function.
13231 * server.c (target_running): Ditto.
13232 (accumulate_file_name_length): New function.
13233 (emit_dll_description): New function.
13234 (handle_qxfer_libraries): Replace accessing list implemention
13235 details with API function.
13236 (handle_qxfer_threads_worker): New function.
13237 (handle_qxfer_threads_proper): Replace accessing list implemention
13238 details with API function.
13239 (handle_query): Ditto.
13240 (visit_actioned_threads_callback_ftype): New typedef.
13241 (visit_actioned_threads_data): New struct.
13242 (visit_actioned_threads): Rewrite to be find_inferior callback.
13243 (resume): Call find_inferior.
13244 (handle_status): Replace accessing list implemention
13245 details with API function.
13246 (process_serial_event): Replace accessing list implemention details
13247 with API function.
13248 * target.c (set_desired_inferior): Replace accessing list implemention
13249 details with API function.
13250 * tracepoint.c (same_process_p): New function.
13251 (gdb_agent_about_to_close): Replace accessing list implemention
13252 details with API function.
13253 * win32-low.c (child_delete_thread): Replace accessing list
13254 implemention details with API function.
13255 (match_dll_by_basename): New function.
13256 (dll_is_loaded_by_basename): New function.
13257 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13258 details call to dll_is_loaded_by_basename.
13259
80894984
DE
132602014-02-19 Doug Evans <dje@google.com>
13261
13262 * dll.h (struct dll_info): Add comment.
13263 * gdbthread.h (struct thread_info): Add comment.
13264 (current_ptid): Simplify.
13265 * inferiors.c (add_process): Update.
13266 (remove_process): Update.
13267 * inferiors.h (struct process_info): Rename member "head" to "entry".
13268 * linux-low.c (delete_lwp): Update.
13269 (add_lwp): Update.
13270 (last_thread_of_process_p): Update.
13271 (kill_one_lwp_callback, linux_kill): Update.
13272 (status_pending_p_callback): Update.
13273 (wait_for_sigstop): Update. Simplify read of ptid.
13274 (start_step_over): Update.
13275 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13276 (get_lwp_thread): Update.
13277 (struct lwp_info): Rename member "head" to "entry".
13278 * regcache.h (inferior_list_entry): Delete.
13279 * server.c (kill_inferior_callback): Update.
13280 (detach_or_kill_inferior_callback): Update.
13281 (print_started_pid): Update.
13282 (print_attached_pid): Update.
13283 (process_serial_event): Simplify read of ptid.
13284 * thread-db.c (thread_db_create_event): Update.
13285 (thread_db_get_tls_address): Update.
13286 * win32-low.c (current_inferior_ptid): Simplify.
13287
46917d26
TT
132882014-02-19 Tom Tromey <tromey@redhat.com>
13289
13290 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13291 argument.
13292 (target_supports_btrace): Update.
13293
0759a81e
YQ
132942014-02-14 Yao Qi <yao@codesourcery.com>
13295
13296 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13297 (rsp-low-ipa.o): New target.
13298
a7191e8b
TT
132992014-02-12 Tom Tromey <tromey@redhat.com>
13300
13301 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13302 convert_ascii_to_int.
13303 * regcache.c (registers_to_string): Likewise.
13304 * remote-utils.c (decode_M_packet): Likewise.
13305 * server.c (process_serial_event): Likewise.
13306
ff0e980e
TT
133072014-02-12 Tom Tromey <tromey@redhat.com>
13308
13309 * server.c (handle_query, handle_v_run): Use hex2bin, not
13310 unhexify.
13311 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13312
e9371aff
TT
133132014-02-12 Tom Tromey <tromey@redhat.com>
13314
13315 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13316 convert_int_to_ascii.
13317 * regcache.c (registers_to_string, collect_register_as_string):
13318 Likewise.
13319 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13320 Likewise.
13321 * server.c (process_serial_event): Likewise.
13322 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13323 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13324
971dc0b8
TT
133252014-02-12 Tom Tromey <tromey@redhat.com>
13326
13327 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13328 bin2hex, not hexify.
13329 * tracepoint.c (cmd_qtstatus): Likewise.
13330
0a822afb
TT
133312014-02-12 Tom Tromey <tromey@redhat.com>
13332
13333 * remote-utils.c (monitor_output): Pass explicit length to
13334 hexify.
13335
9c3d6531
TT
133362014-02-12 Tom Tromey <tromey@redhat.com>
13337
13338 * tracepoint.c: Include rsp-low.h.
13339 * server.c: Include rsp-low.h.
13340 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13341 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13342 declare.
13343 * remote-utils.c: Include rsp-low.h.
13344 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13345 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13346 (convert_int_to_ascii, convert_ascii_to_int): Move to
13347 common/rsp-low.c.
13348 * regcache.c: Include rsp-low.h.
13349 * ax.c: Include rsp-low.h.
13350 * Makefile.in (SFILES): Add common/rsp-low.c.
13351 (OBS): Add rsp-low.o.
13352 (rsp-low.o): New target.
13353
01fd3ea5
TT
133542014-02-12 Tom Tromey <tromey@redhat.com>
13355
13356 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13357 Include print-utils.h.
13358 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13359 (plongest, thirty_two, phex_nz): Remove.
13360 * Makefile.in (SFILES): Add common/print-utils.c.
13361 (OBS): Add print-utils.o.
13362 (print-utils-ipa.o): New target.
13363 (print-utils.o): New target.
13364 (IPA_OBJS): Add print-utils-ipa.o.
13365
e99dc820
TT
133662014-02-06 Tom Tromey <tromey@redhat.com>
13367
13368 * Makefile.in (SFILES): Fix indentation.
13369
ee1e2d4f
DE
133702014-02-05 Doug Evans <dje@google.com>
13371
13372 * linux-low.c (linux_wait_for_event): Improve comment.
13373 (linux_wait_1): Keep current_inferior in sync with event_child.
13374
f5a02773
DE
133752014-01-22 Doug Evans <dje@google.com>
13376
13377 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13378
87ce2a04
DE
133792014-01-22 Doug Evans <dje@google.com>
13380
13381 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13382 * configure: Regenerate.
13383 * config.in: Regenerate.
13384 * Makefile.in (SFILES): Add debug.c.
13385 (OBS): Add debug.o.
13386 * debug.c: New file.
13387 * debug.h: New file.
13388 * linux-aarch64-low.c (*): Update all debugging printfs to use
13389 debug_printf instead of fprintf.
13390 * linux-arm-low.c (*): Ditto.
13391 * linux-cris-low.c (*): Ditto.
13392 * linux-crisv32-low.c (*): Ditto.
13393 * linux-m32r-low.c (*): Ditto.
13394 * linux-sparc-low.c (*): Ditto.
13395 * linux-x86.c (*): Ditto.
13396 * linux-low.c (*): Ditto.
13397 (linux_wait_1): Add calls to debug_enter, debug_exit.
13398 (linux_wait): Remove redundant debugging printf.
13399 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13400 (linux_resume, unstop_all_lwps): Ditto.
13401 * mem-break.c (*): Update all debugging printfs to use
13402 debug_printf instead of fprintf.
13403 * remote-utils.c (*): Ditto.
13404 * thread-db.c (*): Ditto.
13405 * server.c #include <ctype.h>, "gdb_vecs.h".
13406 (debug_threads): Moved to debug.c.
13407 (*): Update all debugging printfs to use debug_printf instead of
13408 fprintf.
13409 (start_inferior): Replace call to fflush with call to debug_flush.
13410 (monitor_show_help): Mention set debug-format.
13411 (parse_debug_format_options): New function.
13412 (handle_monitor_command): Handle "monitor set debug-format".
13413 (gdbserver_usage): Mention --debug-format.
13414 (main): Parse --debug-format.
13415 * server.h (debug_threads): Declaration moved to debug.h.
13416 #include "debug.h".
13417 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13418 trace_debug_1 that uses debug_printf.
13419 (tracepoint_look_up_symbols): Update all debugging printfs to use
13420 debug_printf instead of fprintf.
13421
e671835b
BS
134222014-01-20 Baruch Siach <baruch@tkos.co.il>
13423
13424 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13425 sys/ptrace.h.
13426
b5737fa9
PA
134272014-01-17 Pedro Alves <palves@redhat.com>
13428
ea38d2a9 13429 PR build/16445
c7faa97a
PA
13430 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13431 defined after including gdb_proc_service.h.
b5737fa9 13432
40ed484e
DE
134332014-01-16 Doug Evans <dje@google.com>
13434
13435 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13436 (match_dll): Use it.
13437
969c39fb
MM
134382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13439
13440 * target.h (target_ops) <read_btrace>: Change parameters and
13441 return type to allow error reporting.
13442 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13443 trace reading errors on.
13444 * linux-low.c (linux_low_read_btrace): Pass trace reading
13445 errors on.
13446 (linux_low_disable_btrace): New.
13447
ab7f45ba
DE
134482014-01-15 Doug Evans <dje@google.com>
13449
13450 * inferiors.c (thread_id_to_gdb_id): Delete.
13451 * inferiors.h (thread_id_to_gdb_id): Delete.
13452
66af0f44
EZ
134532014-01-13 Eli Zaretskii <eliz@gnu.org>
13454
13455 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13456 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13457 versions.
13458
9939e131
PA
134592014-01-08 Pedro Alves <palves@redhat.com>
13460
13461 * server.c (handle_status): Don't discard previous queued stop
13462 replies or thread's pending status here.
13463 (main) <disconnection>: Do it here instead.
13464
b7ea362b
PA
134652014-01-08 Pedro Alves <palves@redhat.com>
13466
13467 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13468 * server.c (visit_actioned_threads, handle_pending_status): New
13469 function.
13470 (handle_v_cont): Factor out parts to ...
13471 (resume): ... this new function. If in all-stop, and a thread
13472 being resumed has a pending status, report it without actually
13473 resuming.
13474 (myresume): Adjust to use the new 'resume' function.
13475 (clear_pending_status_callback, set_pending_status_callback)
13476 (find_status_pending_thread_callback): New functions.
13477 (handle_status): Handle the case of multiple threads having
13478 interesting statuses to report. Report threads' real last signal
13479 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13480 with an interesting thread to report the status for, instead of
13481 always reporting the status of the first thread.
13482
28498c42
JB
134832014-01-01 Joel Brobecker <brobecker@adacore.com>
13484
13485 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13486 * gdbreplay.c (gdbreplay_version): Likewise.
13487
f45c82da
YZ
134882013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13489
13490 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13491 iov.iov_len with the real length in use.
13492
379a5e2d
JB
134932013-12-13 Joel Brobecker <brobecker@adacore.com>
13494
13495 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13496 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13497 for all targets that use win32-low.c.
13498 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13499 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13500
4210d83e
PA
135012013-12-13 Pedro Alves <palves@redhat.com>
13502
13503 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13504 if equal to TARGET_WAITKIND_LOADED.
13505 * win32-low.c (cached_status): New static global.
13506 (win32_wait): Add declaration.
13507 (do_initial_child_stuff): Flush all initial pending debug events
13508 up to the initial breakpoint.
13509 (win32_wait): If CACHED_STATUS was set, return that instead
13510 of doing a real wait. Remove the code resuming the execution
13511 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13512 during the initial phase. Also remove the code changing
13513 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13514 TARGET_WAITKIND_STOPPED.
13515
e7f0d979
YQ
135162013-12-11 Yao Qi <yao@codesourcery.com>
13517
13518 * notif.c (handle_notif_ack): Return 0 if no notification
13519 matches.
13520
ebcf782c
DE
135212013-11-20 Doug Evans <dje@google.com>
13522
13523 * linux-low.c (linux_set_resume_request): Fix comment.
13524
20ad9378
DE
135252013-11-20 Doug Evans <dje@google.com>
13526
13527 * linux-low.c (resume_status_pending_p): Tweak comment.
13528
a196ebeb
WT
135292013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13530
13531 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13532 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13533 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13534 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13535 (srv_amd64_regobj): Add amd64-mpx.o.
13536 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13537 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13538 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13539 * i387-fp.c (num_pl_bnd_register) Added constant.
13540 (num_pl_bnd_cfg_registers) Added constant.
13541 (struct i387_xsave) Added reserved area and MPX fields.
13542 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13543 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13544 function.
13545 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13546 (init_registers_amd64_mpx_linux): Declare new function.
13547 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13548 (x86_64_regmap): Add MPX registers.
13549 (x86_linux_read_description): Add MPX case.
13550 (initialize_low_arch): Initialize MPX targets.
13551
0080a2f6
TT
135522013-11-18 Tom Tromey <tromey@redhat.com>
13553
13554 * configure: Rebuild.
13555 * configure.ac: Don't check for stdlib.h.
13556 * gdbreplay.c: Unconditionally include stdlib.h.
13557
2978b111
TT
135582013-11-18 Tom Tromey <tromey@redhat.com>
13559
13560 * config.in: Rebuild.
13561 * configure: Rebuild.
13562 * configure.ac: Don't use AC_HEADER_DIRENT.
13563
a3d08894
TT
135642013-11-18 Tom Tromey <tromey@redhat.com>
13565
13566 * server.h: Don't check HAVE_STRING_H.
13567 * gdbreplay.c: Don't check HAVE_STRING_H.
13568 * configure: Rebuild.
13569
0a5dd17d
TT
135702013-11-18 Tom Tromey <tromey@redhat.com>
13571
13572 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13573 LIBGNU.
13574
1bd2f0ba
TT
135752013-11-08 Tom Tromey <tromey@redhat.com>
13576
13577 * configure, config.in: Rebuild.
13578 * configure.ac: Remove unused configury.
13579
3266f10b
TT
135802013-11-08 Tom Tromey <tromey@redhat.com>
13581
13582 * acinclude.m4: Include common.m4, codeset.m4.
13583 * configure, config.in: Rebuild.
13584 * configure.ac: Use GDB_AC_COMMON.
13585
6682d959
AA
135862013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13587
13588 * linux-s390-low.c (HWCAP_S390_TE): New define.
13589 (s390_arch_setup): Consider the TE field in the HWCAP for
13590 determining 'have_regset_tdb'.
13591
fd0a4d76
SDJ
135922013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13593
13594 PR gdb/16014
13595 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13596 call to sizeof.
13597
1a3d890b
PA
135982013-10-02 Pedro Alves <palves@redhat.com>
13599
13600 * server.c (process_serial_event): Don't output "GDBserver
13601 exiting" if GDB is connected through stdio.
13602 * target.c (mywait): Likewise, be silent if GDB is connected
13603 through stdio.
13604
97ad4581
JB
136052013-10-01 Joel Brobecker <brobecker@adacore.com>
13606
13607 * lynx-low.c (lynx_add_threads_after_attach): New function.
13608 (lynx_attach): Remove call to add_thread. Add call to
13609 lynx_add_threads_after_attach instead.
13610
5b4e221c
MF
136112013-09-28 Mike Frysinger <vapier@gentoo.org>
13612
13613 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13614 * config.in, configure: Regenerated.
13615
ee47b2f8
YQ
136162013-09-18 Yao Qi <yao@codesourcery.com>
13617
13618 PR server/15959
13619 * server.c (start_inferior): Clear 'resume_info'.
13620
d6707650 136212013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13622
d6707650
JW
13623 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13624 for each register.
13625
9243dd0e 136262013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13627
9243dd0e
JW
13628 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13629 linux-tile-low.o to srv_tgtobj.
13630
c623a6ef
WN
136312013-09-16 Will Newton <will.newton@linaro.org>
13632
13633 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13634 out regs.
13635
fb71d39e
PA
136362013-09-06 Pedro Alves <palves@redhat.com>
13637
13638 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13639 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13640 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13641 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13642 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13643 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13644
8e7e9910
PA
136452013-09-06 Pedro Alves <palves@redhat.com>
13646
13647 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13648 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13649
7c3a12ca
PA
136502013-09-06 Pedro Alves <palves@redhat.com>
13651
13652 * linux-amd64-ipa.c: Include tracepoint.h.
13653 * linux-i386-ipa.c: Include tracepoint.h.
13654
8eb3d7b6
RW
136552013-09-06 Ricard Wanderlof <ricardw@axis.com>
13656
13657 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13658 (ps_get_thread_area): New function.
13659
eddddb9d
RW
136602013-09-06 Ricard Wanderlof <ricardw@axis.com>
13661
13662 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13663 (initialize_low_arch): Call init_registers_crisv32 rather than
13664 init_register_crisv32.
13665
533b0600
PA
136662013-09-05 Pedro Alves <palves@redhat.com>
13667
13668 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13669 to ...
13670 * hostio.h: ... this new file.
13671 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13672 win32-low.c: Include hostio.h.
13673
0ce3d3b5
PA
136742013-09-05 Pedro Alves <palves@redhat.com>
13675
13676 * server.h (gdb_client_data, handler_func, callback_handler_func)
13677 (delete_file_handler, add_file_handler, append_callback_event)
13678 (delete_callback_event, start_event_loop, initialize_event_loop):
13679 Move to event-loop.h and include it.
13680 * event-loop.h: New file.
13681
799cdc37
PA
136822013-09-05 Pedro Alves <palves@redhat.com>
13683
13684 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13685 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13686 (loaded_dll, unloaded_dll): Move to ...
13687 * dll.h: ... this new file.
13688 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13689
6a6bbd9d
PA
136902013-09-05 Pedro Alves <palves@redhat.com>
13691
13692 * server.h (current_process, get_thread_process, all_processes)
13693 (add_inferior_to_list, for_each_inferior, current_inferior)
13694 (remove_inferior, add_process, remove_process, find_process_pid)
13695 (have_started_inferiors_p, have_attached_inferiors_p)
13696 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13697 (clear_inferiors, find_inferior, find_inferior_id)
13698 (inferior_target_data, set_inferior_target_data)
13699 (inferior_regcache_data, set_inferior_regcache_data): Move to
13700 inferiors.h, and include it.
13701 * inferiors.h: New file.
13702
f699aaba
PA
137032013-09-05 Pedro Alves <palves@redhat.com>
13704
13705 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13706 Move ...
72f4393d 13707 * ax.h: ... here.
f699aaba 13708
c144c7a0
PA
137092013-09-05 Pedro Alves <palves@redhat.com>
13710
13711 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13712 tracepoint.h.
13713 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13714 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13715 (handle_tracepoint_general_set, handle_tracepoint_query)
13716 (tracepoint_finished_step, tracepoint_was_hit)
13717 (release_while_stepping_state_list, current_traceframe)
13718 (in_readonly_region, traceframe_read_mem)
13719 (fetch_traceframe_registers, traceframe_read_sdata)
13720 (traceframe_read_info, struct fast_tpoint_collect_status)
13721 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13722 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13723 (supply_fast_tracepoint_registers)
13724 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13725 (ipa_tdesc, claim_trampoline_space)
13726 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13727 (agent_mem_read, agent_get_trace_state_variable_value)
13728 (agent_set_trace_state_variable_value, agent_tsv_read)
13729 (agent_mem_read_string, get_raw_reg_func_addr)
13730 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13731 * tracepoint.h: ... this new file.
13732
ff42e6ab
PA
137332013-09-05 Pedro Alves <palves@redhat.com>
13734
13735 * server.h (perror_with_name, error, fatal, warning, paddress)
13736 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13737 include it.
13738 * utils.h: New file.
13739
541af0f4
PA
137402013-09-05 Pedro Alves <palves@redhat.com>
13741
13742 * server.h (remote_debug, noack_mode, transport_is_reliable)
13743 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13744 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13745 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13746 (write_enn, initialize_async_io, enable_async_io)
13747 (disable_async_io, check_remote_input_interrupt_request)
13748 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13749 (dead_thread_notify, prepare_resume_reply)
13750 (decode_address_to_semicolon, decode_address, decode_m_packet)
13751 (decode_M_packet, decode_X_packet, decode_xfer_write)
13752 (decode_search_memory_packet, unhexify, hexify)
13753 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13754 (look_up_one_symbol, relocate_instruction)
13755 (monitor_output): Move to remote-utils.h, and include it.
13756 * remote-utils.h: New file.
13757
eebdf26b
PA
137582013-09-05 Pedro Alves <palves@redhat.com>
13759
13760 * server.h (_): Delete.
13761
3aafd2ff
PA
137622013-09-02 Pedro Alves <palves@redhat.com>
13763
13764 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13765 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13766 allocated.
13767 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13768
cee83bcb
PM
137692013-09-02 Pierre Muller <muller@sourceware.org>
13770
13771 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13772 or WriteProcessMemory complete successfully and handle
13773 ERROR_PARTIAL_COPY error.
13774
9a13b2fa
PA
137752013-09-02 Pedro Alves <palves@redhat.com>
13776
13777 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13778 error instead of EIO.
13779
602e3198
JK
137802013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13781
13782 PR server/15604
13783 * linux-low.c: Include filestuff.h.
13784 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13785 * lynx-low.c: Include filestuff.h.
13786 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13787 * server.c: Include filestuff.h.
13788 (main): Call notice_open_fds.
13789 * spu-low.c: Include filestuff.h.
13790 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13791
96d7229d
LM
137922013-08-22 Luis Machado <lgustavo@codesourcery.com>
13793
13794 * Makefile.in: Explain why ../target and ../nat are not
13795 listed as include file search paths.
13796 (linux-waitpid.o): New object file rule.
13797 * configure.srv (srv_native_linux_obj): New variable.
13798 Replace all occurrences of linux native object files with
13799 $srv_native_linux_obj.
13800 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13801 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13802 (linux_enable_event_reporting): Remove declaration.
13803 (my_waitpid): Moved to common/linux-waitpid.c.
13804 (linux_wait_for_event): Pass ptid when calling
13805 linux_enable_event_reporting.
13806 (linux_supports_tracefork_flag): Remove.
13807 (linux_enable_event_reporting): Likewise.
13808 (linux_tracefork_grandchild): Remove.
13809 (STACK_SIZE): Moved to common/linux-ptrace.c.
13810 (linux_tracefork_child): Remove.
13811 (linux_test_for_tracefork): Remove.
13812 (linux_look_up_symbols): Call linux_supports_traceclone.
13813 (initialize_low): Remove call to linux_test_for_tracefork.
13814 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13815 common/linux-ptrace.h.
13816 (PTRACE_TYPE_ARG4): Likewise.
13817 Include linux-ptrace.h.
13818
32940073
PA
138192013-08-21 Pedro Alves <palves@redhat.com>
13820
13821 * config.in: Renegerate.
13822
33b60d58 138232013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13824
33b60d58
LM
13825 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13826 (SFILES): Remove $(srcdir)/common/target-common.c and
13827 add $(srcdir)/target/waitstatus.c.
13828 (OBS): Remove target-common.o and add waitstatus.o.
13829 (server_h): Remove $(srcdir)/../common/target-common.h and
13830 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13831 and $(srcdir)/../target/waitstatus.h.
13832 (target-common.o): Remove.
13833 (waitstatus.o): New target object file.
13834 * target.h: Do not include target-common.h and
13835 include target/resume.h, target/wait.h and
13836 target/waitstatus.h.
13837
b8e1b30e
LM
138382013-08-13 Luis Machado <lgustavo@codesourcery.com>
13839
13840 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13841 to PTRACE_TYPE_ARG3.
13842 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13843 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13844 PTRACE_TYPE_ARG4.
13845 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13846 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13847
7a60ad40
YQ
138482013-07-27 Jie Zhang <jie@codesourcery.com>
13849 Daniel Jacobowitz <dan@codesourcery.com>
13850 Yao Qi <yao@codesourcery.com>
13851
13852 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13853 (mips-linux-watch.o): New rule.
13854 (mips_linux_watch_h): New variable.
13855 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13856 srv_tgtobj.
13857 * linux-mips-low.c: Include mips-linux-watch.h.
13858 (struct arch_process_info, struct arch_lwp_info): New.
13859 (update_watch_registers_callback): New function.
13860 (mips_linux_new_process, mips_linux_new_thread) New functions.
13861 (mips_linux_prepare_to_resume, mips_insert_point): New
13862 functions.
13863 (mips_remove_point, mips_stopped_by_watchpoint): New
13864 functions.
13865 (rsp_bp_type_to_target_hw_bp_type): New function.
13866 (mips_stopped_data_address): New function.
13867 (the_low_target): Add watchpoint support functions.
13868
de6f69ad
YQ
138692013-07-27 Yao Qi <yao@codesourcery.com>
13870
13871 * i386-low.c: Include break-common.h.
13872 (enum target_hw_bp_type): Remove.
13873
3360c0bf
LM
138742013-07-24 Luis Machado <lgustavo@codesourcery.com>
13875
13876 * Makefile.in (SFILES): /common/target-common.c.
13877 (OBS): Add target-common.o.
13878 (server_h): Add $(srcdir)/../common/target-common.h.
13879 (target-common.o): New target.
13880 * server.c (queue_stop_reply_callback): Free
13881 status string after use.
13882 * target.c (target_waitstatus_to_string): Remove.
13883 * target.h: Include target-common.h.
13884 (resume_kind): Likewise.
13885 (target_waitkind): Likewise.
13886 (target_waitstatus): Likewise.
13887 (TARGET_WNOHANG): Likewise.
13888
bd885420
YQ
138892013-07-04 Yao Qi <yao@codesourcery.com>
13890
13891 * Makefile.in (host_alias): Use @host_noncanonical@.
13892 (target_alias): Use @target_noncanonical@.
13893 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13894 ACX_NONCANONICAL_HOST.
13895 * configure: Regenerated.
13896
13897 Revert:
13898 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13899
13900 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13901 * configure: Rebuild.
13902 * Makefile.in (version_host, version_target): Get from configure.
13903 (version.c): Use $(version_host) and $(version_target).
13904
17ef446e
PA
139052013-07-03 Pedro Alves <palves@redhat.com>
13906
13907 * Makefile.in (config.status): Depend on development.sh.
13908 * acinclude.m4: Include libmcheck.m4.
13909 * configure: Regenerate.
13910
7a9a7487
MG
139112013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13912
13913 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13914 attribute inside the parentheses.
13915 (winapi_DebugSetProcessKillOnExit): Ditto.
13916 (winapi_DebugBreakProcess): Ditto.
13917 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13918
49b64de6
MG
139192013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13920
13921 * notif.h (notif_event): Add a dummy member to avoid compiler
13922 errors.
13923
d5749ee7
PA
139242013-07-01 Pedro Alves <palves@redhat.com>
13925
13926 * hostio.c (HOSTIO_PATH_MAX): Define.
13927 (require_filename, handle_open, handle_unlink, handle_readlink):
13928 Use it.
13929
d8d2a3ee
PA
139302013-07-01 Pedro Alves <palves@redhat.com>
13931
13932 * server.h: Include "pathmax.h".
13933 * linux-low.c: Don't include sys/param.h.
13934 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13935 MAXPATHLEN.
13936 * win32-low.c: Don't include sys/param.h.
13937 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13938
bc7dea8d
PA
139392013-07-01 Pedro Alves <palves@redhat.com>
13940
13941 * event-loop.c: Don't check HAVE_UNISTD_H before including
13942 <unistd.h>.
13943 * gdbreplay.c: Likewise.
13944 * remote-utils.c: Likewise.
13945 * server.c: Likewise.
13946 * configure.ac: Don't check for unistd.h.
13947 * configure: Regenerate.
13948
d6c2da54
TT
139492013-06-28 Tom Tromey <tromey@redhat.com>
13950
13951 * Makefile.in (version.c): Use version.in, not
13952 common/version.in.
13953
257b6bec
MG
139542013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13955
13956 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13957 * configure: Rebuild.
13958 * Makefile.in (version_host, version_target): Get from configure.
13959 (version.c): Use $(version_host) and $(version_target).
13960
86ebe149
DK
139612013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13962
13963 Fix trace-status to output user name without trailing colon.
13964 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13965
f30aa5af
DK
139662013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13967
13968 Fix trace-status to output proper start-time and stop-time.
13969 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13970 output start time and stop time in hex as gdb expects.
13971
28a93511
YQ
139722013-06-26 Pedro Alves <pedro@codesourcery.com>
13973
13974 * tracepoint.c (build_traceframe_info_xml): Output trace state
13975 variables present in the trace buffer.
13976
01208463
TT
139772013-06-24 Tom Tromey <tromey@redhat.com>
13978
13979 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13980 create-version.sh.
13981 (version.o): Remove.
13982 * gdbreplay.c: Include version.h.
13983 (version, host_name): Don't declare.
13984 * server.h: Include version.h.
13985 (version, host_name): Don't declare.
13986
760256f9
PA
139872013-06-12 Pedro Alves <palves@redhat.com>
13988
13989 * linux-x86-low.c (linux_is_elf64): Delete global.
13990 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13991 with local linux_pid_exe_is_elf_64_file use.
13992
030031ee
PA
139932013-06-11 Pedro Alves <palves@redhat.com>
13994
13995 * linux-low.c (regset_disabled, disable_regset): New functions.
13996 (regsets_fetch_inferior_registers)
13997 (regsets_store_inferior_registers): Use them.
13998 (initialize_regsets_info); Don't allocate the disabled_regsets
13999 array here.
14000 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14001 comment.
14002
5da6eb0a
PA
140032013-06-11 Pedro Alves <palves@redhat.com>
14004
14005 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14006 xmalloc.
14007
7e5aaa09
PA
140082013-06-11 Pedro Alves <palves@redhat.com>
14009
14010 * linux-x86-low.c (initialize_low_arch): Call
14011 init_registers_x32_avx_linux.
14012
d878444c
JK
140132013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14014
14015 Fix compatibility with Android Bionic.
14016 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14017 it is not empty.
14018
3aee8918
PA
140192013-06-07 Pedro Alves <palves@redhat.com>
14020
5f2b57b5 14021 PR server/14823
3aee8918
PA
14022 * Makefile.in (OBS): Add tdesc.o.
14023 (IPA_OBJS): Add tdesc-ipa.o.
14024 (tdesc-ipa.o): New rule.
14025 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14026 interface.
14027 * linux-low.c (new_inferior): Delete.
14028 (disabled_regsets, num_regsets): Delete.
14029 (linux_add_process): Adjust to set the new per-process
14030 new_inferior flag.
14031 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14032 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14033 was a stop. When calling arch_setup, switch the current inferior
14034 to the thread that got an event.
14035 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14036 (regsets_fetch_inferior_registers)
14037 (regsets_store_inferior_registers): New regsets_info parameter.
14038 Adjust to use it.
14039 (linux_register_in_regsets): New regs_info parameter. Adjust to
14040 use it.
14041 (register_addr, fetch_register, store_register): New usrregs_info
14042 parameter. Adjust to use it.
14043 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14044 parameter regs_info. Adjust to use it.
14045 (linux_fetch_registers): Get the current inferior's regs_info, and
14046 adjust to use it.
14047 (linux_store_registers): Ditto.
14048 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14049 (initialize_low): Don't initialize the target_regsets here. Call
14050 initialize_low_arch.
14051 * linux-low.h (target_regsets): Delete declaration.
14052 (struct regsets_info): New.
14053 (struct usrregs_info): New.
14054 (struct regs_info): New.
14055 (struct process_info_private) <new_inferior>: New field.
14056 (struct linux_target_ops): Delete the num_regs, regmap, and
14057 regset_bitmap fields. New field regs_info.
14058 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14059 * i387-fp.c (num_xmm_registers): Delete.
14060 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14061 calls to new interface.
14062 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14063 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14064 Infer the number of xmm registers from the regcache's target
14065 description.
14066 * i387-fp.h (num_xmm_registers): Delete.
14067 * inferiors.c (add_thread): Don't install the thread's regcache
14068 here.
14069 * proc-service.c (gregset_info): Fetch the current inferior's
14070 regs_info. Adjust to use it.
14071 * regcache.c: Include tdesc.h.
14072 (register_bytes, reg_defs, num_registers)
14073 (gdbserver_expedite_regs): Delete.
14074 (get_thread_regcache): If the thread doesn't have a regcache yet,
14075 create one, instead of aborting gdbserver.
14076 (regcache_invalidate_one): Rename to ...
14077 (regcache_invalidate_thread): ... this.
14078 (regcache_invalidate_one): New.
14079 (regcache_invalidate): Only invalidate registers of the current
14080 process.
14081 (init_register_cache): Add target_desc parameter, and use it.
14082 (new_register_cache): Ditto. Assert the target description has a
14083 non zero registers_size.
14084 (regcache_cpy): Add assertions. Adjust.
14085 (realloc_register_cache, set_register_cache): Delete.
14086 (registers_to_string, registers_from_string): Adjust.
14087 (find_register_by_name, find_regno, find_register_by_number)
14088 (register_cache_size): Add target_desc parameter, and use it.
14089 (free_register_cache_thread, free_register_cache_thread_one)
14090 (regcache_release, register_cache_size): New.
14091 (register_size): Add target_desc parameter, and use it.
14092 (register_data, supply_register, supply_register_zeroed)
14093 (supply_regblock, supply_register_by_name, collect_register)
14094 (collect_register_as_string, collect_register_by_name): Adjust.
14095 * regcache.h (struct target_desc): Forward declare.
14096 (struct regcache) <tdesc>: New field.
14097 (init_register_cache, new_register_cache): Add target_desc
14098 parameter.
14099 (regcache_invalidate_thread): Declare.
14100 (regcache_invalidate_one): Delete declaration.
14101 (regcache_release): Declare.
14102 (find_register_by_number, register_cache_size, register_size)
14103 (find_regno): Add target_desc parameter.
14104 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14105 declarations.
14106 * remote-utils.c: Include tdesc.h.
14107 (outreg, prepare_resume_reply): Adjust.
14108 * server.c: Include tdesc.h.
14109 (gdbserver_xmltarget): Delete declaration.
14110 (get_features_xml, process_serial_event): Adjust.
14111 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14112 declare.
14113 (struct process_info) <tdesc>: New field.
14114 (ipa_tdesc): Declare.
14115 * tdesc.c: New file.
14116 * tdesc.h: New file.
14117 * tracepoint.c: Include tdesc.h.
14118 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14119 (get_context_regcache): Adjust to pass ipa_tdesc down.
14120 (do_action_at_tracepoint): Adjust to get the register cache size
14121 from the context regcache's description.
14122 (traceframe_walk_blocks): Adjust to get the register cache size
14123 from the current trace frame's description.
14124 (traceframe_get_pc): Adjust to get current trace frame's
14125 description and pass it down.
14126 (gdb_collect): Adjust to get the register cache size from the
14127 IPA's description.
14128 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14129 (gdbserver_xmltarget): Delete.
14130 (initialize_low_tracepoint): Set the ipa's target description.
14131 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14132 (initialize_low_tracepoint): Set the ipa's target description.
14133 * linux-x86-low.c: Include tdesc.h.
14134 [__x86_64__] (is_64bit_tdesc): New.
14135 (ps_get_thread_area, x86_get_thread_area): Use it.
14136 (i386_cannot_store_register): Rename to ...
14137 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14138 (i386_cannot_fetch_register): Rename to ...
14139 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14140 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14141 to new interface.
14142 (target_regsets): Rename to ...
14143 (x86_regsets): ... this.
14144 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14145 interface.
14146 (x86_siginfo_fixup): Use is_64bit_tdesc.
14147 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14148 (tdesc_x32_avx_linux, tdesc_x32_linux)
14149 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14150 Declare.
14151 (x86_linux_update_xmltarget): Delete.
14152 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14153 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14154 (AMD64_LINUX_USER64_CS): New.
14155 (x86_linux_read_description): New, based on
14156 x86_linux_update_xmltarget.
14157 (same_process_callback): New.
14158 (x86_arch_setup_process_callback): New.
14159 (x86_linux_update_xmltarget): New.
14160 (x86_regsets_info): New.
14161 (amd64_linux_regs_info): New.
14162 (i386_linux_usrregs_info): New.
14163 (i386_linux_regs_info): New.
14164 (x86_linux_regs_info): New.
14165 (x86_arch_setup): Reimplement.
14166 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14167 (x86_emit_ops): Ditto.
14168 (the_low_target): Adjust. Install x86_linux_regs_info,
14169 x86_cannot_fetch_register, and x86_cannot_store_register.
14170 (initialize_low_arch): New.
14171 * linux-ia64-low.c (tdesc_ia64): Declare.
14172 (ia64_fetch_register): Adjust.
14173 (ia64_usrregs_info, regs_info): New globals.
14174 (ia64_regs_info): New function.
14175 (the_low_target): Adjust.
14176 (initialize_low_arch): New function.
14177 * linux-sparc-low.c (tdesc_sparc64): Declare.
14178 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14179 Adjust.
14180 (sparc_arch_setup): New function.
14181 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14182 (the_low_target): Adjust.
14183 (initialize_low_arch): New function.
14184 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14185 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14186 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14187 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14188 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14189 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14190 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14191 (tdesc_powerpc_isa205_vsx64l): Declare.
14192 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14193 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14194 (ppc_set_pc, ppc_get_hwcap): Adjust.
14195 (ppc_usrregs_info): Forward declare.
14196 (!__powerpc64__) ppc_regmap_adjusted: New global.
14197 (ppc_arch_setup): Adjust to the current process'es target
14198 description.
14199 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14200 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14201 (ppc_store_evrregset): Adjust.
14202 (target_regsets): Rename to ...
14203 (ppc_regsets): ... this, and make static.
14204 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14205 (ppc_regs_info): New function.
14206 (the_low_target): Adjust.
14207 (initialize_low_arch): New function.
14208 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14209 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14210 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14211 (tdesc_s390x_linux64v2): Declare.
14212 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14213 (s390_fill_gregset, s390_store_last_break): Adjust.
14214 (target_regsets): Rename to ...
14215 (s390_regsets): ... this, and make static.
14216 (s390_get_pc, s390_set_pc): Adjust.
14217 (s390_get_hwcap): New target_desc parameter, and use it.
14218 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14219 (s390_arch_setup): Adjust to set the current process'es target
14220 description. Don't adjust the regmap.
14221 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14222 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14223 (regs_info_3264): New globals.
14224 (s390_regs_info): New function.
14225 (the_low_target): Adjust.
14226 (initialize_low_arch): New function.
14227 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14228 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14229 [__mips64] (init_registers_mips_linux)
14230 (init_registers_mips_dsp_linux): Delete defines.
14231 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14232 (have_dsp): New global.
14233 (mips_read_description): New, based on mips_arch_setup.
14234 (mips_arch_setup): Reimplement.
14235 (get_usrregs_info): New function.
14236 (mips_cannot_fetch_register, mips_cannot_store_register)
14237 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14238 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14239 (target_regsets): Rename to ...
14240 (mips_regsets): ... this, and make static.
14241 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14242 (dsp_regs_info, regs_info): New globals.
14243 (mips_regs_info): New function.
14244 (the_low_target): Adjust.
14245 (initialize_low_arch): New function.
14246 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14247 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14248 Declare.
14249 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14250 (arm_read_description): New, with bits factored from
14251 arm_arch_setup.
14252 (arm_arch_setup): Reimplement.
14253 (target_regsets): Rename to ...
14254 (arm_regsets): ... this, and make static.
14255 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14256 (arm_regs_info): New function.
14257 (the_low_target): Adjust.
14258 (initialize_low_arch): New function.
14259 * linux-m68k-low.c (tdesc_m68k): Declare.
14260 (target_regsets): Rename to ...
14261 (m68k_regsets): ... this, and make static.
14262 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14263 (m68k_regs_info): New function.
14264 (m68k_arch_setup): New function.
14265 (the_low_target): Adjust.
14266 (initialize_low_arch): New function.
14267 * linux-sh-low.c (tdesc_sharch): Declare.
14268 (target_regsets): Rename to ...
14269 (sh_regsets): ... this, and make static.
14270 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14271 (sh_regs_info, sh_arch_setup): New functions.
14272 (the_low_target): Adjust.
14273 (initialize_low_arch): New function.
14274 * linux-bfin-low.c (tdesc_bfin): Declare.
14275 (bfin_arch_setup): New function.
14276 (bfin_usrregs_info, regs_info): New globals.
14277 (bfin_regs_info): New function.
14278 (the_low_target): Adjust.
14279 (initialize_low_arch): New function.
14280 * linux-cris-low.c (tdesc_cris): Declare.
14281 (cris_arch_setup): New function.
14282 (cris_usrregs_info, regs_info): New globals.
14283 (cris_regs_info): New function.
14284 (the_low_target): Adjust.
14285 (initialize_low_arch): New function.
14286 * linux-cris-low.c (tdesc_crisv32): Declare.
14287 (cris_arch_setup): New function.
14288 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14289 (cris_regs_info): New function.
14290 (the_low_target): Adjust.
14291 (initialize_low_arch): New function.
14292 * linux-m32r-low.c (tdesc_m32r): Declare.
14293 (m32r_arch_setup): New function.
14294 (m32r_usrregs_info, regs_info): New globals.
14295 (m32r_regs_info): Adjust.
14296 (initialize_low_arch): New function.
14297 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14298 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14299 (tic6x_usrregs_info): Forward declare.
14300 (tic6x_read_description): New function, based on ...
14301 (tic6x_arch_setup): ... this. Reimplement.
14302 (target_regsets): Rename to ...
14303 (tic6x_regsets): ... this, and make static.
14304 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14305 (tic6x_regs_info): New function.
14306 (the_low_target): Adjust.
14307 (initialize_low_arch): New function.
14308 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14309 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14310 (target_regsets): Rename to ...
14311 (xtensa_regsets): ... this, and make static.
14312 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14313 globals.
14314 (xtensa_arch_setup, xtensa_regs_info): New functions.
14315 (the_low_target): Adjust.
14316 (initialize_low_arch): New function.
14317 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14318 (nios2_arch_setup): Set the current process'es tdesc.
14319 (target_regsets): Rename to ...
14320 (nios2_regsets): ... this.
14321 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14322 (nios2_regs_info): New function.
14323 (the_low_target): Adjust.
14324 (initialize_low_arch): New function.
a261b8f5
PA
14325 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14326 (aarch64_arch_setup): Set the current process'es tdesc.
14327 (target_regsets): Rename to ...
14328 (aarch64_regsets): ... this.
14329 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14330 (aarch64_regs_info): New function.
14331 (the_low_target): Adjust.
14332 (initialize_low_arch): New function.
3aee8918
PA
14333 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14334 globals.
14335 (target_regsets): Rename to ...
14336 (tile_regsets): ... this.
14337 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14338 (tile_regs_info): New function.
14339 (tile_arch_setup): Set the current process'es tdesc.
14340 (the_low_target): Adjust.
14341 (initialize_low_arch): New function.
14342 * spu-low.c (tdesc_spu): Declare.
14343 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14344 * win32-arm-low.c (tdesc_arm): Declare.
14345 (arm_arch_setup): New function.
14346 (the_low_target): Install arm_arch_setup instead of
14347 init_registers_arm.
14348 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14349 (init_windows_x86): Rename to ...
14350 (i386_arch_setup): ... this. Set `win32_tdesc'.
14351 (the_low_target): Adjust.
14352 * win32-low.c (win32_tdesc): New global.
14353 (child_add_thread): Don't create the thread cache here.
14354 (do_initial_child_stuff): Set the new process'es tdesc.
14355 * win32-low.h (struct target_desc): Forward declare.
14356 (win32_tdesc): Declare.
14357 * lynx-i386-low.c (tdesc_i386): Declare global.
14358 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14359 * lynx-low.c (lynx_tdesc): New global.
14360 (lynx_add_process): Set the new process'es tdesc.
14361 * lynx-low.h (struct target_desc): Forward declare.
14362 (lynx_tdesc): Declare global.
14363 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14364 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14365 * nto-low.c (nto_tdesc): New global.
14366 (do_attach): Set the new process'es tdesc.
14367 * nto-low.h (struct target_desc): Forward declare.
14368 (nto_tdesc): Declare.
14369 * nto-x86-low.c (tdesc_i386): Declare.
14370 (nto_x86_arch_setup): Set `nto_tdesc'.
14371
b1fbec62
GB
143722013-06-04 Gary Benson <gbenson@redhat.com>
14373
14374 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14375 to qSupported response when appropriate.
14376 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14377 with nonzero-length annex.
14378 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14379 arguments supplied in annex.
14380
d1ec4ce7
DE
143812013-05-31 Doug Evans <dje@google.com>
14382
ac44adcb 14383 PR server/15594
d1ec4ce7
DE
14384 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14385 64 bits in 64-cross-32 environment.
14386
9b25f2d3
PA
143872013-05-28 Pedro Alves <palves@redhat.com>
14388
14389 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14390 (aarch64-without-fpu.c): Delete rule.
14391 * configure.srv (aarch64*-*-linux*): Remove references to
14392 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14393 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14394 declaration.
14395
6740dc9c
PA
143962013-05-24 Pedro Alves <palves@redhat.com>
14397
14398 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14399 instead of strchr/decode_address. Error if the range isn't split
14400 with a ','. Don't assume there's be a ':' in the action.
14401
c2d6af84
PA
144022013-05-23 Yao Qi <yao@codesourcery.com>
14403 Pedro Alves <palves@redhat.com>
14404
14405 * linux-low.c (lwp_in_step_range): New function.
14406 (linux_wait_1): If the thread was range stepping and stopped
14407 outside the stepping range, report the stop to GDB. Otherwise,
14408 continue stepping. Add range stepping debug output.
14409 (linux_set_resume_request): Copy the step range from the resume
14410 request to the lwp.
14411 (linux_supports_range_stepping): New.
14412 (linux_target_ops) <supports_range_stepping>: Set to
14413 linux_supports_range_stepping.
14414 * linux-low.h (struct linux_target_ops)
14415 <supports_range_stepping>: New field.
14416 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14417 * linux-x86-low.c (x86_supports_range_stepping): New.
14418 (the_low_target) <supports_range_stepping>: Set to
14419 x86_supports_range_stepping.
14420 * server.c (handle_v_cont): Handle 'r' action.
14421 (handle_v_requests): Append ";r" if the target supports range
14422 stepping.
14423 * target.h (struct thread_resume) <step_range_start,
14424 step_range_end>: New fields.
14425 (struct target_ops) <supports_range_stepping>:
14426 New field.
14427 (target_supports_range_stepping): New macro.
14428
58794e1a
JB
144292013-05-17 Joel Brobecker <brobecker@adacore.com>
14430
14431 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14432 confusion in comment.
14433
d631c5a7
JB
144342013-05-17 Joel Brobecker <brobecker@adacore.com>
14435
14436 * lynx-low.c (struct process_info_private): New type.
14437 (lynx_add_process): New function.
14438 (lynx_create_inferior, lynx_attach): Replace calls to
14439 add_process by calls to lynx_add_process.
14440 (lynx_resume): If PTID is null, then try using
14441 current_process()->private->last_wait_event_ptid.
14442 Add comments.
14443 (lynx_clear_inferiors): Delete. The contents of that function
14444 has been inlined in lynx_mourn;
14445 (lynx_wait_1): Save the ptid in the process's private data.
14446 (lynx_mourn): Free the process' private data. Replace call
14447 to lynx_clear_inferiors by call to clear_inferiors.
14448
96f7a20f
YQ
144492013-05-17 Yao Qi <yao@codesourcery.com>
14450
14451 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14452 the right place.
14453
db0dfaa0
LM
144542013-05-16 Luis Machado <lgustavo@codesourcery.com>
14455
14456 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14457 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14458 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14459 PT_TEXT_END_ADDR guards. Update comments.
14460 (linux_target_op) <read_offsets>: Conditionally define to
14461 linux_read_offsets if the target is UCLIBC and if it defines
14462 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14463
68f5f838
SL
144642013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14465 Andrew Jenner <andrew@codesourcery.com>
14466
14467 * Makefile.in (SFILES): Add linux-nios2-low.c.
14468 (clean): Add action to delete nios2-linux.c.
14469 (nios2-linux.c): New rule.
14470 * configure.srv: Add nios2*-*-linux*.
14471 * linux-nios2-low.c: New.
14472
1ebff1fd
HAQ
144732013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14474
14475 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14476
f6150862
HZ
144772013-04-25 Hui Zhu <hui@codesourcery.com>
14478
14479 PR gdb/15186
f6150862
HZ
14480 * ax.c (ax_printf): Add fflush.
14481
614c279d
TT
144822013-04-22 Tom Tromey <tromey@redhat.com>
14483
14484 * Makefile.in (SFILES): Add filestuff.c.
14485 (OBS): Add filestuff.o.
14486 (filestuff.o): New target.
14487 * config.in, configure: Rebuild.
14488 * configure.ac: Check for fdwalk, pipe2.
14489
7d4e5717
PA
144902013-04-17 Pedro Alves <palves@redhat.com>
14491
14492 * configure.ac (USE_THREAD_DB): Delete variable.
14493 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14494 Don't AC_SUBST USE_THREAD_DB.
14495 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14496 * config.in, configure: Regenerate.
14497
d5c93e41
PA
144982013-04-16 Pedro Alves <palves@redhat.com>
14499
14500 * linux-low.h (struct lwp_info) <thread_known>: Move under
14501 the USE_THREAD_DB #ifdef.
14502
04f5fe89
PA
145032013-04-16 Pedro Alves <palves@redhat.com>
14504
14505 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14506 (linux-low.o): Delete rule.
14507 * linux-low.h: Always include "gdb_thread_db.h" instead of
14508 conditionally including thread_db.h.
14509 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14510 HAVE_THREAD_DB_H.
14511
480b27bf
JK
145122013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14513
14514 * Makefile.in (install-only): Fix make install regression.
14515
43662968
JK
145162013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14517
14518 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14519 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14520 installation.
14521 * gdbserver.1: Remove.
14522
3e74e146
PA
145232013-03-22 Pedro Alves <palves@redhat.com>
14524
14525 * linux-low.c (handle_extended_wait): Don't call
14526 linux_enable_event_reporting.
14527
a8347a2a
TT
145282013-03-15 Tony Theodore <tonyt@logyst.com>
14529
14530 PR build/9098:
14531 * Makefile.in (SHELL): Use @SHELL@.
14532
eeb56fa7
SDJ
145332013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14534
14535 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14536 compiler warning.
14537
4fa7e2ff
JB
145382013-03-13 Joel Brobecker <brobecker@adacore.com>
14539
14540 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14541 Remove extraneous NULL element.
14542
8ddb1965
YQ
145432013-03-13 Yao Qi <yao@codesourcery.com>
14544
14545 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14546 'V' block in trace frame.
14547
9accd112
MM
145482013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14549
14550 * target.h (struct target_ops): Add btrace ops.
14551 (target_supports_btrace): New macro.
14552 (target_enable_btrace): New macro.
14553 (target_disable_btrace): New macro.
14554 (target_read_btrace): New macro.
14555 * gdbthread.h (struct thread_info): Add btrace field.
14556 * server.c: Include btrace-common.h.
14557 (handle_btrace_general_set): New function.
14558 (handle_btrace_enable): New function.
14559 (handle_btrace_disable): New function.
14560 (handle_general_set): Call handle_btrace_general_set.
14561 (handle_qxfer_btrace): New function.
14562 (struct qxfer qxfer_packets[]): Add btrace entry.
14563 * inferiors.c (remove_thread): Disable btrace.
14564 * linux-low: Include linux-btrace.h.
14565 (linux_low_enable_btrace): New function.
14566 (linux_low_read_btrace): New function.
14567 (linux_target_ops): Add btrace ops.
14568 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14569 Add srv_linux_btrace=yes.
14570 (x86_64-*-linux*): Add linux-btrace.o.
14571 Add srv_linux_btrace=yes.
14572 * configure.ac: Define HAVE_LINUX_BTRACE.
14573 * config.in: Regenerated.
14574 * configure: Regenerated.
14575
5cc22e4c
MM
145762013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14577
14578 * server.c (handle_qxfer): Preserve error message if -3 is
14579 returned.
14580 (qxfer): Document the -3 return value.
14581
7c97f91e
MM
145822013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14583
14584 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14585 (linux_btrace_h): New variable.
14586 (linux-btrace.o): New rule.
14587
be9a119c 145882013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14589 Hafiz Abid Qadeer <abidh@codesourcery.com>
14590
14591 * tracepoint.c (trace_buffer_size): New global.
14592 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14593 (init_trace_buffer): Change to one-argument function. Allocate
14594 trace buffer memory.
14595 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14596 handle QTBuffer:size packet.
14597 (cmd_bigqtbuffer_size): New function.
14598 (initialize_tracepoint): Call init_trace_buffer with
14599 DEFAULT_TRACE_BUFFER_SIZE.
14600 * server.c (handle_query): Add QTBuffer:size in the
14601 supported packets.
14602
e64f7499
YQ
146032013-03-07 Yao Qi <yao@codesourcery.com>
14604
14605 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14606 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14607 of -1.
14608 (cmd_qtsp): Adjust condition. Do post increment.
14609 Set cur_action and cur_step_action back to 0.
14610
f0ae6fc3
PA
146112013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14612
14613 PR server/15236
14614 * linux-low.c (linux_write_memory): Return early success if LEN is
14615 zero.
14616
b5b0b0af
CV
146172013-03-05 Corinna Vinschen <vinschen@redhat.de>
14618
334ad4a8 14619 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14620
589bc927
TT
146212013-02-28 Tom Tromey <tromey@redhat.com>
14622
14623 * configure.ac: Invoke AC_SYS_LARGEFILE.
14624 * configure, config.in: Rebuild.
14625
dfe07582
CV
146262013-02-28 Corinna Vinschen <vinschen@redhat.com>
14627
14628 * win32-low.c: Throughout, fix format strings and casts of
14629 printf-like functions to avoid type related warnings on all
14630 platforms.
14631 (get_child_debug_event): Print dwDebugEventCode as hex since
14632 that's how it's usually documented.
14633
736cd585
YQ
146342013-02-28 Yao Qi <yao@codesourcery.com>
14635
14636 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14637 pulongest.
14638
e1f58301
JW
146392013-02-27 Jiong Wang <jiwang@tilera.com>
14640
14641 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14642 (reg-tilegx32.c): New rule.
14643 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14644 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14645 different register info initializer according to elf class.
14646 (init_registers_tilgx32): New function. The tilegx32 register info
14647 initializer.
14648 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14649 (tile_store_gregset): Likewise.
14650
d171ca78
YQ
146512013-02-27 Yao Qi <yao@codesourcery.com>
14652
14653 * server.c (process_point_options): Print debug message when
14654 debug_threads is true.
14655
282bbdf3
YQ
146562013-02-26 Yao Qi <yao@codesourcery.com>
14657
14658 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14659
aca22551
PA
146602013-02-19 Pedro Alves <palves@redhat.com>
14661 Kai Tietz <ktietz@redhat.com>
14662
14663 PR gdb/15161
14664
14665 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14666 instead of strtoul to extract address from packet.
14667 (process_serial_event) <'z'>: Likewise.
14668
4f3cee1c
YQ
146692013-02-18 Yao Qi <yao@codesourcery.com>
14670
14671 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14672
8e1d55a3
PA
146732013-02-14 Pedro Alves <palves@redhat.com>
14674
14675 Plug memory leak.
14676
14677 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14678 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14679
458820da
PA
146802013-02-14 Pedro Alves <palves@redhat.com>
14681
14682 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14683
baea0dae
PA
146842013-02-14 Pedro Alves <palves@redhat.com>
14685
14686 * tracepoint.c (save_string): Delete.
14687 (add_tracepoint_action): Use savestring instead of save_string.
14688
0b1afbb3
PA
146892013-02-12 Pedro Alves <palves@redhat.com>
14690
14691 * linux-xtensa-low.c: Ditto.
14692 * xtensa-xtregs.c: Ditto.
14693
8a4ac37e
PA
146942013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14695
14696 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14697 thread_db.
14698
148de6bb
MS
146992013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14700
14701 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14702 aarch64_num_wp_regs and aarch64_num_bp_regs to
14703 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14704
55fac6e0
MS
147052013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14706
14707 * linux-aarch64-low.c (ps_get_thread_area): Replace
14708 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14709
176eb98c
MS
147102013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14711 Marcus Shawcroft <marcus.shawcroft@arm.com>
14712 Nigel Stephens <nigel.stephens@arm.com>
14713 Yufeng Zhang <yufeng.zhang@arm.com>
14714
14715 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14716 (aarch64.c, aarch64-without-fpu.c): New targets.
14717 * configure.srv (aarch64*-*-linux*): New.
14718 * linux-aarch64-low.c: New file.
14719
56f7af9c
MS
147202013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14721
43aaf8b6 14722 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14723 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14724 (dequeue_one_deferred_signal, linux_resume_one_thread)
14725 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14726 (linux_tracefork_grandchild, linux_test_for_tracefork)
14727 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14728 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14729 where the argument is 0.
14730
60f662b0
YQ
147312013-01-25 Yao Qi <yao@codesourcery.com>
14732
14733 * event-loop.c: Include "queue.h".
14734 (gdb_event_p): New typedef.
14735 (struct gdb_event) <next_event>: Remove.
14736 (event_queue): Change to QUEUE(gdb_event_p).
14737 (async_queue_event): Remove.
14738 (gdb_event_xfree): New.
14739 (initialize_event_loop): New.
14740 (process_event): Use API from QUEUE.
14741 (wait_for_event): Likewise.
14742 * server.c (main): Call initialize_event_loop.
14743 * server.h (initialize_event_loop): Declare.
14744
5ae4861a
YQ
147452013-01-18 Yao Qi <yao@codesourcery.com>
14746
14747 * ax.h (struct eval_agent_expr_context): New.
14748 (gdb_eval_agent_expr): Update declaration.
14749 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14750 TFRAME. Add new argument CTX.
14751 * server.h (struct eval_agent_expr_context): Declare.
14752 (agent_mem_read, agent_tsv_read): Update declaration.
14753 (agent_mem_read_string): Likewise.
14754 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14755 (add_traceframe_block): Add new argument TPOINT.
14756 Increase TPOINT->traceframe_usage.
14757 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14758 eval_tracepoint_agent_expr.
14759 (condition_true_at_tracepoint): Likewise.
14760 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14761 (agent_mem_read_string, agent_tsv_read): Likewise.
14762
85e00e85
YQ
147632013-01-16 Yao Qi <yao@codesourcery.com>
14764
14765 * linux-low.c (linux_resume_one_lwp): Don't check
14766 'lwp->bp_reinsert != 0'.
14767
4039cf45
JB
147682013-01-07 Joel Brobecker <brobecker@adacore.com>
14769 Pedro Alves <palves@redhat.com>
14770
14771 * lynx-low.c (ptrace_request_to_str): Define a temporary
14772 macro and use it to simplify this function's implementation.
14773
9044dee2
JB
147742013-01-07 Joel Brobecker <brobecker@adacore.com>
14775
14776 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14777 sets errno.
14778
e6352c8f
JB
147792013-01-07 Joel Brobecker <brobecker@adacore.com>
14780
14781 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14782
50681a27
JB
147832013-01-07 Joel Brobecker <brobecker@adacore.com>
14784
14785 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14786
3f6e77ef
JB
147872013-01-07 Joel Brobecker <brobecker@adacore.com>
14788
14789 * lynx-low.c (lynx_resume): Use the resume_info parameter
14790 to determine the ptid for the lynx_ptrace call, unless
14791 it is equal to minus_one_ptid, in which case we use the
14792 ptid of the current_inferior.
14793 (lynx_wait_1): After having received a thread create/exit
14794 event, resume the inferior's execution using the signaling
14795 thread's ptid, rather than the old ptid.
14796
7fda33ae
JB
147972013-01-07 Joel Brobecker <brobecker@adacore.com>
14798
14799 * lynx-low.c (lynx_resume): Delete variable ret.
14800
b9786c74
JB
148012013-01-01 Joel Brobecker <brobecker@adacore.com>
14802
14803 * gdbreplay.c (gdbreplay_version): Update copyright year.
14804 * server.c (gdbserver_version): Likewise.
14805
8b93d60f
JB
148062012-12-17 Joel Brobecker <brobecker@adacore.com>
14807
14808 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14809 new thread.
14810
037335a7
JB
148112012-12-17 Joel Brobecker <brobecker@adacore.com>
14812
14813 * lynx-low.c (ptrace_request_to_str): Add handling for
14814 PTRACE_GETTRACESIG.
14815
52d4cbd8
JB
148162012-12-17 Joel Brobecker <brobecker@adacore.com>
14817
14818 * lynx-low.c (lynx_attach): Delete variable new_process.
14819
ab8f6ca9
JB
148202012-12-17 Joel Brobecker <brobecker@adacore.com>
14821
14822 * lynx-low.c (lynx_create_inferior): Delete variable
14823 new_process.
14824
78cbc024
JB
148252012-12-17 Joel Brobecker <brobecker@adacore.com>
14826
14827 * lynx-low.c (ptrace_request_to_str): Do not handle
14828 PTRACE_GETTHREADLIST if this macro does not exist.
14829
14a00470
YQ
148302012-12-15 Yao Qi <yao@codesourcery.com>
14831
14832 * Makefile.in (OBS): Add notif.o.
14833 * notif.c, notif.h: New.
14834 * server.c: Include "notif.h".
14835 (struct vstop_notif) <next>: Remove.
14836 <base>: New field.
14837 (queue_stop_reply): Update.
14838 (push_event, send_next_stop_reply): Remove.
14839 (discard_queued_stop_replies): Update.
14840 (notif_stop): New variable.
14841 (handle_v_stopped): Remove.
14842 (handle_v_requests): Don't call handle_v_stopped. Call
14843 handle_ack_notif instead.
14844 (queue_stop_reply_callback): Call notif_event_enque instead
14845 of queue_stop_reply.
14846 (handle_status): Don't call send_next_stop_reply, call
14847 notif_write_event instead.
14848 (kill_inferior_callback): Likewise.
14849 (detach_or_kill_inferior_callback): Likewise.
14850 (main): Call initialize_notif.
14851 (process_serial_event): Call QUEUE_is_empty.
14852 (handle_target_event): Call notif_push instead of push event.
14853 * server.h (push_event): Remove declaration.
14854
61c125b9
TT
148552012-12-10 Tom Tromey <tromey@redhat.com>
14856
14857 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14858 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14859 macros.
14860 (.c.o): Rewrite.
14861 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14862 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14863 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14864 (amd64-linux-ipa.o, ax.o): Rewrite.
14865 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14866 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14867 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14868 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14869 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14870 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14871 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14872 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14873 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14874 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14875 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14876 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14877 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14878 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14879 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14880 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14881 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14882 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14883 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14884 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14885 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14886 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14887 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14888 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14889 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14890 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14891 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14892 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14893 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14894 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14895 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14896 (reg-tilegx.o): Remove.
14897 (all_object_files): New macro.
14898 Include .deps files.
14899 * aclocal.m4, configure: Rebuild.
14900 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14901 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14902 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14903
e90e9ad9
TT
149042012-12-05 Tom Tromey <tromey@redhat.com>
14905
14906 PR gdb/14917:
14907 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14908
02d403bf 149092012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14910
14911 * configure.ac: Check for linux/perf_event.h.
14912 * config.in: Regenerated.
14913 * configure: Regenerated.
14914
0270a750
PA
149152012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14916
14917 * hostio.c (handle_readlink): Decrease buffer size
14918 parameter passed to readlink by one byte.
14919
8c29b58e
YQ
149202012-11-26 Yao Qi <yao@codesourcery.com>
14921
14922 * configure.ac (build_warnings): Append '-Wempty-body'.
14923 * configure: Regenerated.
14924 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14925 body.
14926
8bdce1ff
PM
149272012-11-15 Pierre Muller <muller@sourceware.org>
14928
14929 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14930 * config.in: Regenerate.
14931 * configure: Regenerate.
14932 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14933 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14934 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14935 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14936 header.
14937 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14938 instead of <sys/wait.h> header.
14939 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14940
02d403bf 149412012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14942
14943 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14944 (various make rules): Remove -DGDBSERVER
14945
fbd5db48
YQ
149462012-11-09 Yao Qi <yao@codesourcery.com>
14947
14948 * spu-low.c (current_ptid): Move it to ..
14949 * gdbthread.h: ... here. New.
14950 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14951 * server.c (myresume, process_serial_event): Likewise.
14952 * thread-db.c (thread_db_find_new_threads): Likewise.
14953 * tracepoint.c (run_inferior_command): Likewise.
14954
b3dc46ff
AB
149552012-10-01 Andrew Burgess <aburgess@broadcom.com>
14956
14957 * server.c (handle_search_memory_1): Include access length in
14958 warning message.
14959
07c04788
HPN
149602012-09-05 Michael Brandt <michael.brandt@axis.com>
14961
14962 * linux-crisv32-low.c: Fix compile errors.
14963
918d227b
YQ
149642012-09-04 Yao Qi <yao@codesourcery.com>
14965
14966 * tracepoint.c (cmd_qtsv): Adjust debug message.
14967 Don't check CUR_TPOINT.
14968
18c1b81a
YQ
149692012-08-28 Yao Qi <yao@codesourcery.com>
14970
14971 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14972 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14973 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14974 Remove declarations of xmalloc, xreallloc, xstrdup and
14975 freeargv.
14976 * Makefile.in (libiberty_h): New.
14977 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14978 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14979
dc82f37b
YQ
149802012-08-23 Yao Qi <yao@codesourcery.com>
14981
14982 * server.h: Remove declaration of 'xsnprintf'.
14983
406b1477
KS
149842012-08-22 Keith Seitz <keiths@redhat.com>
14985
14986 * server.h: Include build-gnulib-gbserver/config.h.
14987 * gdbreplay.c: Likewise.
14988
e6712ff1
DE
149892012-08-08 Doug Evans <dje@google.com>
14990
14991 * Makefile.in (SFILES): Add gdb_vecs.c.
14992 (OBS): Add gdb_vecs.o.
14993 (gdb_vecs_h, host_defs_h): New variables.
14994 (thread-db.o): Add $(gdb_vecs_h) dependency.
14995 (gdb_vecs.o): New rule.
14996 * thread-db.c: #include "gdb_vecs.h".
14997 (thread_db_load_search): Use a vector to iterate over path elements.
14998 Handle text appearing after "$pdir".
14999
15000 * configure.ac: Add check for strstr.
15001 * config.in: Regenerate.
15002 * configure: Regenerate.
15003
7c3270ae
UW
150042012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15005
15006 * hostio.c (handle_pread): If pread fails, fall back to attempting
15007 lseek/read.
15008 (handle_pwrite): Likewise for pwrite.
15009
b62e2b27
UW
150102012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15011
15012 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15013 between unsupported TYPE and unimplementable ADDR/LEN combination.
15014 (arm_insert_point): Act on new return value.
15015
78a99e91
PA
150162012-07-31 Pedro Alves <palves@redhat.com>
15017
15018 * server.c (process_point_options): Only skip tokens if we find
15019 one that is unrecognized. Don't treat 'X' specially while
15020 skipping unrecognized tokens.
15021
fcf303ab
UW
150222012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15023
15024 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15025 to 4-byte-align HW breakpoint addresses for Thumb.
15026
7255706c
YQ
150272012-07-27 Yao Qi <yao@codesourcery.com>
15028
15029 PR remote/14161.
15030
15031 * server.h: Declare gdb_agent_about_to_close.
15032 * target.c (kill_inferior): Include "agent.h".
15033 New. Send command 'kill'.
15034 * target.h (kill_inferior): Removed macro.
15035 * tracepoint.c (gdb_agent_about_to_close): New.
15036 (gdb_agent_helper_thread): Handle command 'close'.
15037 Wait endlessly until the inferior stops.
15038 Install gdb_agent_remove_socket to atexit hook.
15039 (agent_socket_name): New static variable.
15040 (gdb_agent_socket_init): Replace local variable 'name' with
15041 'agent_socket_name'.
15042 (gdb_agent_remove_socket): New.
15043
5a3f286f
YQ
150442012-07-27 Yao Qi <yao@codesourcery.com>
15045
15046 * server.c (process_point_options): Stop at 'X' when parsing.
15047
961bd387
ME
150482012-07-19 Michael Eager <eager@eagercon.com>
15049
a261b8f5 15050 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15051 to hw_execute.
15052 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15053 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15054 hardware breakpoint.
15055
aa7c7447
JK
150562012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15057
15058 * gdbserver/linux-low.c (initialize_low): Call
15059 linux_ptrace_init_warnings.
15060
7f216e7c
DE
150612012-07-02 Doug Evans <dje@google.com>
15062
15063 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15064 pointer to int.
15065
d3ce09f5
SS
150662012-07-02 Stan Shebs <stan@codesourcery.com>
15067
15068 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15069 (ax.o): Add it to build rule.
15070 (ax-ipa.o): Ditto.
15071 (OBS): Add format.o.
15072 (IPA_OBS): Add format.o.
15073 * server.c (handle_query): Claim support for breakpoint commands.
15074 (process_point_options): Add command case.
15075 (process_serial_event): Leave running if there are printfs in
15076 effect.
15077 * mem-break.h (any_persistent_commands): Declare.
15078 (add_breakpoint_commands): Declare.
15079 (gdb_no_commands_at_breakpoint): Declare.
15080 (run_breakpoint_commands): Declare.
15081 * mem-break.c (struct point_command_list): New struct.
15082 (struct breakpoint): New field command_list.
15083 (any_persistent_commands): New function.
15084 (add_commands_to_breakpoint): New function.
15085 (add_breakpoint_commands): New function.
15086 (gdb_no_commands_at_breakpoint): New function.
15087 (run_breakpoint_commands): New function.
15088 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15089 locally.
15090 * ax.c: Include format.h.
15091 (ax_printf): New function.
15092 (gdb_eval_agent_expr): Add printf opcode.
15093
2f8f6aed
YQ
150942012-06-13 Yao Qi <yao@codesourcery.com>
15095
15096 * server.c (start_inferior): Remove duplicated writes to fields
15097 'last_resume_kind' and 'last_status' of 'current_inferior'.
15098
0c9070b3
YQ
150992012-06-12 Yao Qi <yao@codesourcery.com>
15100 Pedro Alves <palves@redhat.com>
15101
15102 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15103 comment.
15104 * server.c (handle_v_cont): Extend comment.
15105
c52daf70
YQ
151062012-06-11 Yao Qi <yao@codesourcery.com>
15107
15108 * linux-low.c (linux_attach): Add 'static'.
15109
d38bbb0a
YQ
151102012-06-06 Yao Qi <yao@codesourcery.com>
15111
15112 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15113
89dc0afd
JK
151142012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15115
15116 Fix gcc -flto compilation warning.
15117 * server.c (main): Make variable multi_mode and attach volatile.
15118
75f62ce7
TJB
151192012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15120
15121 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15122 if the platform doesn't know about it.
15123
65f479b6
PA
151242012-05-30 Jeff Kenton <jkenton@tilera.com>
15125
15126 * Makefile.in (SFILES): Add linux-tile-low.c.
15127 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15128 * configure.srv: Handle tilegx-*-linux*.
15129 * linux-tile-low.c: New file.
15130
0c5bf5a9
JK
151312012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15132
15133 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15134
a493e3e2
PA
151352012-05-24 Pedro Alves <palves@redhat.com>
15136
15137 PR gdb/7205
15138
43aaf8b6 15139 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15140
2ea28649
PA
151412012-05-24 Pedro Alves <palves@redhat.com>
15142
15143 PR gdb/7205
15144
15145 Replace target_signal with gdb_signal throughout.
15146
8d409d16
MR
151472012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15148
15149 * linux-low.c (linux_store_registers): Avoid the copying sequence
15150 when no data has been retrieved by ptrace.
15151
23512c01
MGD
151522012-05-22 Will Deacon <will.deacon@arm.com>
15153
15154 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15155 Include asm/ptrace.h.
15156 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15157 already defined.
15158
4934b29e
MR
151592012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15160
15161 * linux-low.c (linux_store_registers): Don't re-retrieve data
15162 with ptrace that has already been obtained from /proc. Always
15163 copy any data retrieved with ptrace to the buffer supplied.
15164
bde24c0a
PA
151652012-05-11 Yao Qi <yao@codesourcery.com>
15166 Pedro Alves <palves@redhat.com>
15167
15168 * linux-low.c (enum stopping_threads_kind): New.
15169 (stopping_threads): Change type to `enum stopping_threads_kind'.
15170 (handle_extended_wait): If stopping and suspending threads, leave
15171 the new_lwp suspended too.
15172 (linux_wait_for_event): Adjust.
15173 (stop_all_lwps): Set `stopping_threads' to
15174 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15175 whether we're suspending threads or just stopping them. Assert no
15176 recursion happens.
15177
623b6bdf
YQ
151782012-04-29 Yao Qi <yao@codesourcery.com>
15179
15180 * server.h: Move some code to ...
15181 * gdbthread.h: ... here. New.
15182 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15183 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15184 (nto-low.o, win32-low.o): Likewise.
15185 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15186 * regcache.c, remote-utils.c, server.c: Likewise.
15187 * target.c, tracepoint.c, win32-low.c: Likewise.
15188
f15f9948
TJB
151892012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15190
15191 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15192 (PTRACE_ARG4_TYPE): Likewise.
15193 (PTRACE_XFER_TYPE): Likewise.
15194 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15195 ptrace to PTRACE_ARG3_TYPE.
15196 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15197 (PTRACE_ARG4_TYPE): Likewise.
15198 (PTRACE_XFER_TYPE): Likewise.
15199 (linux_detach_one_lwp): Cast fourth argument of
15200 ptrace to long then PTRACE_ARG4_TYPE.
15201 (regsets_fetch_inferior_registers): Cast third argument of
15202 ptrace to long then PTRACE_ARG3_TYPE.
15203 (regsets_store_inferior_registers): Likewise.
15204
38ea300a
PA
152052012-04-20 Pedro Alves <palves@redhat.com>
15206
15207 * configure: Regenerate.
15208
c971b7fa
PA
152092012-04-19 Pedro Alves <palves@redhat.com>
15210
43aaf8b6 15211 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15212 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15213 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15214 (all, install-only, uninstall, clean-info, all-lib, clean): No
15215 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15216 (maintainer-clean realclean distclean): Use subdir_do.
15217 (subdir_do): New.
15218 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15219 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15220 * acinclude.m4: Include acx_configure_dir.m4.
15221 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15222 calls. Call AC_PROG_RANLIB. Configure gnulib using
15223 ACX_CONFIGURE_DIR.
15224 (GNULIB): New.
15225 (GNULIB_STDINT_H): Adjust.
15226 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15227 * gdbreplay.c: Include build-gnulib/config.h.
15228 * server.h: Likewise.
15229 * aclocal.m4: Regenerate.
15230 * config.in: Regenerate.
15231 * configure: Regenerate.
c971b7fa 15232
809277f8
PA
152332012-04-19 Pedro Alves <palves@redhat.com>
15234
15235 * Makefile.in (LIBGNU, INCGNU): Adjust.
15236 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15237 (all, install-only, uninstall, clean-info, all-lib, clean)
15238 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15239 * configure.ac: Adjust AC_OUTPUT output.
15240 * aclocal.m4: Regenerate.
15241 * configure: Regenerate.
15242
fd9bb8b8
PA
152432012-04-19 Pedro Alves <palves@redhat.com>
15244
15245 * Makefile.in (generated_files): New.
15246 (server_h): Remove the explicit dependency on config.h, and depend
15247 on $generated_files.
15248
1c298c66
PA
152492012-04-19 Pedro Alves <palves@redhat.com>
15250
15251 * Makefile.in (INCGNU): Add -Ignulib.
15252
57c4b50b
PA
152532012-04-19 Pedro Alves <palves@redhat.com>
15254
15255 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15256 (INCGNU): ... this, and spell out -I here.
15257 (GNULIB_LIB): Rename to ...
15258 (LIBGNU): ... this.
15259 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15260
1030e047
PA
152612012-04-19 Pedro Alves <palves@redhat.com>
15262
15263 * config.in: Regenerate.
15264
447d4319
PA
152652012-04-19 Pedro Alves <palves@redhat.com>
15266
15267 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15268 * server.h (memmem): Remove declaration.
15269 * config.in: Regenerate.
15270 * configure: Regenerate.
15271
aad9eab9
YQ
152722012-04-19 Yao Qi <yao@codesourcery.com>
15273
15274 * Makefile.in (SFILES): Add common/vec.c.
15275 (OBS): Add vec.o.
15276 (vec.o): New rule.
15277
3e10640f
YQ
152782012-04-19 Yao Qi <yao@codesourcery.com>
15279
15280 * remote-utils.c (prepare_resume_reply): Replace with macro
15281 target_core_of_thread.
15282 * server.c (handle_qxfer_threads_proper): Likewise.
15283 * target.h (traget_core_of_thread): New macro.
15284
71622373
PA
152852012-04-18 Pedro Alves <palves@redhat.com>
15286
15287 * aclocal.m4: Regenerate.
15288 * configure: Regenerate.
15289
80d26939
YQ
152902012-04-16 Yao Qi <yao@codesourcery.com>
15291
15292 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15293 duplicated on address.
15294
42476b70
YQ
152952012-04-16 Yao Qi <yao@codesourcery.com>
15296
15297 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15298 (struct tracepoint_action_ops) <send>: New field.
15299 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15300 (agent_expr_send, x_tracepoint_action_send): New.
15301 (l_tracepoint_action_send): New.
15302 (cmd_qtdp): Download and install tracepoint
15303 according to `use_agent'.
15304 (run_inferior_command): Add one more parameter `len'.
15305 Update callers.
15306 (tracepoint_send_agent): New.
15307 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15308
7bc83639
YQ
153092012-04-16 Yao Qi <yao@codesourcery.com>
15310
15311 * tracepoint.c (download_tracepoints): Moved to ...
15312 (cmd_qtstart): ... here.
15313
5f18041e
YQ
153142012-04-14 Yao Qi <yao@codesourcery.com>
15315
15316 * tracepoint.c: Include inttypes.h.
15317 (struct collect_memory_action): Use sized types.
15318 (struct tracepoint): Likewise.
15319 (cmd_qtdp, stop_tracing): Update print specifiers.
15320 (cmd_qtp, response_tracepoint): Likewise.
15321 (collect_data_at_tracepoint): Likewise.
15322 (collect_data_at_step): Likewise.
15323
55a8c076
YQ
153242012-04-14 Yao Qi <yao@codesourcery.com>
15325
15326 Import gnulib module inttypes.
15327 * aclocal.m4, config.in, configure: Regenerated.
15328
dc750257
YQ
153292012-04-14 Yao Qi <yao@codesourcery.com>
15330
15331 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15332 Makefile and config.status at last.
15333
0ab5faf9
YQ
153342012-04-13 Yao Qi <yao@codesourcery.com>
15335
15336 * tracepoint.c: Include stdint.h unconditionally.
15337
18f5fd81
TJB
153382012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15339
15340 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15341 on BFD_HAVE_SYS_PROCFS_TYPE.
15342 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15343 * configure: Regenerate.
15344 * config.in: Likewise.
15345
4d47af5c
L
153462012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15347
15348 * Makefile.in (clean): Also remove x32.c x32-linux.c
15349 x32-avx.c x32-avx-linux.c.
15350 (x32.o): New target.
15351 (x32.c): Likewise.
15352 (x32-linux.o): Likewise.
15353 (x32-linux.c): Likewise.
15354 (x32-avx.o): Likewise.
15355 (x32-avx.c): Likewise.
15356 (x32-avx-linux.o): Likewise.
15357 (x32-avx-linux.c): Likewise.
15358
15359 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15360 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15361 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15362 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15363 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15364 i386/x32-avx-linux.xml.
15365
15366 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15367 (init_registers_x32_avx_linux): Likwise.
15368 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15369 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15370
ecedbe58
PA
153712012-04-13 Pedro Alves <palves@redhat.com>
15372
15373 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15374 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15375 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15376 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15377 the sub-make.
15378
c92b5177
L
153792012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15380
15381 * linux-x86-low.c (compat_x32_clock_t): New.
15382 (compat_x32_siginfo_t): Likewise.
15383 (compat_x32_siginfo_from_siginfo): Likewise.
15384 (siginfo_from_compat_x32_siginfo): Likewise.
15385 (linux_is_elf64): Likewise.
15386 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15387 and siginfo_from_compat_x32_siginfo for x32.
15388 (x86_arch_setup): Set linux_is_elf64.
15389
214d508e
L
153902012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15391
15392 PR gdb/13969
15393 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15394 e_machine field.
15395 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15396 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15397 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15398 compatible with process.
15399
c9a1864a
YQ
154002012-04-12 Yao Qi <yao@codesourcery.com>
15401
15402 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15403 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15404 (install-only, install-info, clean): Handle sub dir gnulib.
15405 (all-lib, am--refresh): New targets.
15406 (memmem.o): Remove target.
15407 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15408 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15409 (AC_REPLACE_FUNCS): Remove memmem.
15410 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15411 (AC_OUTPUT): Generate Makefile in gnulib/.
15412 * aclocal.m4, config.in, configure: Regenerated.
15413
367ba2c2
MR
154142012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15415
15416 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15417
9d236627
PA
154182012-04-05 Pedro Alves <palves@redhat.com>
15419
15420 -Werror=strict-aliasing
15421
15422 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15423 pointer.
15424
111217b3
PA
154252012-04-04 Pedro Alves <palves@redhat.com>
15426
15427 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15428 (sparc_store_gregset_from_stack, sparc_store_gregset)
15429 (sparc_breakpoint_at): Fix formatting.
15430
8365dcf5
TJB
154312012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15432
15433 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15434 are available.
15435 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15436 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15437 * config.in: Regenerate.
15438 * configure: Likewise.
15439
689cc2ae
PA
154402012-03-29 Pedro Alves <palves@redhat.com>
15441
15442 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15443 Correct ptrace arguments.
15444
c14dfd32
PA
154452012-03-28 Pedro Alves <palves@redhat.com>
15446
15447 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15448 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15449 (IA64_FR1_REGNUM): New defines.
15450 (ia64_fetch_register): New.
15451 (the_low_target): Install it.
15452 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15453 field.
15454 * linux-low.c (linux_fetch_registers): Try the
15455 the_low_target.fetch_register hook first.
15456
15457 * linux-arm-low.c (the_low_target): Adjust.
15458 * linux-bfin-low.c (the_low_target): Adjust.
15459 * linux-cris-low.c (the_low_target): Adjust.
15460 * linux-crisv32-low.c (the_low_target): Adjust.
15461 * linux-m32r-low.c (the_low_target): Adjust.
15462 * linux-m68k-low.c (the_low_target): Adjust.
15463 * linux-mips-low.c (the_low_target): Adjust.
15464 * linux-ppc-low.c (the_low_target): Adjust.
15465 * linux-s390-low.c (the_low_target): Adjust.
15466 * linux-sh-low.c (the_low_target): Adjust.
15467 * linux-sparc-low.c (the_low_target): Adjust.
15468 * linux-tic6x-low.c (the_low_target): Adjust.
15469 * linux-x86-low.c (the_low_target): Adjust.
15470 * linux-xtensa-low.c (the_low_target): Adjust.
15471
63c88e13
PA
154722012-03-26 Pedro Alves <palves@redhat.com>
15473
15474 * server.c (handle_qxfer_libraries): Don't bail early if
15475 the_target->qxfer_libraries_svr4 is not NULL.
15476
fb723180
PA
154772012-03-26 Pedro Alves <palves@redhat.com>
15478
15479 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15480
0afae3cf
PA
154812012-03-23 Pedro Alves <palves@redhat.com>
15482
15483 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15484 "library-list-svr4" element's start tag when the the DSO list is
15485 empty.
15486
485f1ee4
PA
154872012-03-23 Pedro Alves <palves@redhat.com>
15488
15489 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15490 a variable whose type size is the same as the inferior's pointer
15491 size.
15492
a5362b9a
TS
154932012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15494
15495 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15496 struct siginfo.
15497 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15498 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15499 * linux-low.h: Include <signal.h>.
15500 (struct siginfo): Remove forward declaration.
15501 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15502 struct siginfo.
15503
d226c142
MF
155042012-03-21 Mike Frysinger <vapier@gentoo.org>
15505
15506 * .gitignore: Ignore more files.
15507
122f36ef
PA
155082012-03-19 Pedro Alves <palves@redhat.com>
15509 Jan Kratochvil <jan.kratochvil@redhat.com>
15510
15511 * server.c (cont_thread, general_thread): Add describing comments.
15512 (start_inferior): Clear `cont_thread'.
15513 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15514 of a process.
15515
fc3e5175
YQ
155162012-03-15 Yao Qi <yao@codesourcery.com>
15517
15518 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15519 handling to ...
15520 (cmd_qtdp): ... here.
15521
8d0d92cd
YQ
155222012-03-15 Yao Qi <yao@codesourcery.com>
15523
15524 * tracepoint.c (struct tracepoint_action_ops): New.
15525 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15526 (m_tracepoint_action_download): New.
15527 (r_tracepoint_action_download): New.
15528 (x_tracepoint_action_download): New.
15529 (l_tracepoint_action_download): New.
15530 (add_tracepoint_action): Install `action->ops' according type.
15531 (download_tracepoint_1): Move code `download' function pointer
15532 of various tracepoint_action_ops.
15533
87b0bb13
JK
155342012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15535
15536 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15537 linux_ptrace_attach_warnings.
15538
5f572dec
JK
155392012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15540
15541 * Makefile.in (linux-ptrace.o): New.
15542 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15543 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15544 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15545 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15546 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15547 of these targets.
15548 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15549
f4647387
YQ
155502012-03-08 Yao Qi <yao@codesourcery.com>
15551 Pedro Alves <palves@redhat.com>
15552
15553 Fix PR server/13392.
15554 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15555 offset of JMP insn.
15556 * tracepoint.c (remove_tracepoint): New.
15557 (cmd_qtdp): Call remove_tracepoint when failed to install.
15558
9b224c5e
PA
155592012-03-07 Pedro Alves <palves@redhat.com>
15560
15561 * linux-low.c (get_detach_signal): New.
15562 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15563 Pass on pending signals to PTRACE_DETACH. Check the result of the
15564 ptrace call.
15565 * server.c (program_signals, program_signals_p): New.
15566 (handle_general_set): Handle QProgramSignals.
15567 * server.h (program_signals, program_signals_p): Declare.
15568
e237a7e2
JK
155692012-03-05 Pedro Alves <palves@redhat.com>
15570 Jan Kratochvil <jan.kratochvil@redhat.com>
15571
15572 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15573 New comment why.
15574
5808517f
YQ
155752012-03-03 Yao Qi <yao@codesourcery.com>
15576
15577 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15578 agent_look_up_symbols.
15579
58b4daa5
YQ
155802012-03-03 Yao Qi <yao@codesourcery.com>
15581
15582 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15583 (linux-x86-low.o): Likewise.
15584 * server.h: Remove in_process_agent_loaded.
15585 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15586 common/agent.c.
15587 Update callers.
15588
8ffcbaaf
YQ
155892012-03-03 Yao Qi <yao@codesourcery.com>
15590
15591 * tracepoint.c (gdb_agent_capability): New global.
15592 (in_process_agent_loaded_ust): Renamed to
15593 `in_process_agent_supports_ust'.
15594 Update callers.
15595 (in_process_agent_supports_ust): Call agent_capability_check.
15596 (clear_installed_tracepoints): Assert that agent supports
15597 agent.
15598
d1feda86
YQ
155992012-03-03 Yao Qi <yao@codesourcery.com>
15600
15601 * linux-low.c (linux_supports_agent): New.
15602 (linux_target_ops): Initialize field `supports_agent' with
15603 linux_supports_agent.
15604 * target.h (struct target_ops) <supports_agent>: New.
15605 (target_supports_agent): New macro.
15606 * server.c (handle_general_set): Handle packet 'QAgent'.
15607 (handle_query): Send `QAgent+'.
15608 * Makefile.in (server.o): Depends on agent.h.
15609
2fa291ac
YQ
156102012-03-03 Yao Qi <yao@codesourcery.com>
15611
15612 * Makefile.in (OBS): Add agent.o.
15613 Add new rule for agent.o.
15614 Track dependence of tracepoint.c on agent.h.
15615 * tracepoint.c (run_inferior_command_1):
15616 (run_inferior_command): Call agent_run_command.
15617 (gdb_ust_connect_sync_socket): Deleted. Move it to
15618 common/agent.c.
15619 (resume_thread, stop_thread): Likewise.
15620 (gdb_ust_socket_init): Renamed to ...
15621 (gdb_agent_socket_init): ... New.
15622 (gdb_ust_thread): Renamed to ...
15623 (gdb_agent_helper_thread): ... New.
15624 (gdb_ust_init): Move some code to ...
15625 (gdb_agent_init): ... here. New.
15626 [HAVE_UST]: Call gdb_ust_init.
15627 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15628 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15629 * config.in, configure: Regenerated.
15630
05044653
PA
156312012-03-02 Pedro Alves <palves@redhat.com>
15632
15633 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15634 * linux-low.c (struct simple_pid_list): New.
15635 (stopped_pids): New a struct simple_pid_list pointer.
15636 (add_to_pid_list, pull_pid_from_list): New.
15637 (handle_extended_wait): Don't assume the first signal new children
15638 report is SIGSTOP. Adjust call to pull_pid_from_list.
15639 (linux_wait_for_lwp): Adjust.
15640
8d00225b
YQ
156412012-03-02 Yao Qi <yao@codesourcery.com>
15642
15643 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15644 debug log.
15645
19560ba5
YQ
156462012-03-02 Yao Qi <yao@codesourcery.com>
15647
15648 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15649 `stop_pc' and `tpoint'. Update caller.
15650
1faeff08
MR
156512012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15652
15653 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15654 * linux-low.c (use_linux_regsets): New macro.
15655 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15656 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15657 (linux_register_in_regsets): New function.
15658 (usr_fetch_inferior_registers): Skip registers covered by
15659 regsets.
15660 (usr_store_inferior_registers): Likewise.
15661 (usr_fetch_inferior_registers): New macro.
15662 (usr_store_inferior_registers): Likewise.
15663 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15664 (linux_store_registers): Likewise.
15665 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15666 prototype.
15667 (init_registers_mips64_dsp_linux): Likewise.
15668 (init_registers_mips_linux): New macro.
15669 (init_registers_mips_dsp_linux): Likewise.
15670 (mips_dsp_num_regs): Likewise.
15671 (DSP_BASE, DSP_CONTROL): New fallback macros.
15672 (mips_base_regs): New macro.
15673 (mips_regmap): Use it. Fix the size.
15674 (mips_dsp_regmap): New variable.
15675 (mips_dsp_regset_bitmap): Likewise.
15676 (mips_arch_setup): New function.
15677 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15678 than mips_regmap.
15679 (mips_cannot_store_register): Likewise.
15680 (the_low_target): Update .arch_setup, .num_regs and .regmap
15681 initializers. Add .regset_bitmap initializer.
15682 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15683 initializer.
15684 * linux-bfin-low.c (the_low_target): Likewise.
15685 * linux-cris-low.c (the_low_target): Likewise.
15686 * linux-crisv32-low.c (the_low_target): Likewise.
15687 * linux-ia64-low.c (the_low_target): Likewise.
15688 * linux-m32r-low.c (the_low_target): Likewise.
15689 * linux-m68k-low.c (the_low_target): Likewise.
15690 * linux-ppc-low.c (the_low_target): Likewise.
15691 * linux-s390-low.c (the_low_target): Likewise.
15692 * linux-sh-low.c (the_low_target): Likewise.
15693 * linux-sparc-low.c (the_low_target): Likewise.
15694 * linux-tic6x-low.c (the_low_target): Likewise.
15695 * linux-x86-low.c (the_low_target): Likewise.
15696 * linux-xtensa-low.c (the_low_target): Likewise.
15697 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15698 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15699 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15700 srv_xmlfiles.
15701 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15702 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15703
c03e6ccc
YQ
157042012-02-29 Yao Qi <yao@codesourcery.com>
15705 Pedro Alves <palves@redhat.com>
15706
15707 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15708 `step_over_finished' is true.
15709
644cebc9
PA
157102012-02-27 Pedro Alves <palves@redhat.com>
15711
15712 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15713 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15714
c14d7ab2
PA
157152012-02-27 Pedro Alves <palves@redhat.com>
15716
15717 PR server/9684
15718 * linux-low.c (pid_is_stopped): New.
15719 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15720
412c89dd
LM
157212012-02-25 Luis Machado <lgustavo@codesourcery.com>
15722
15723 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15724 of conditions.
15725
b745defe
MR
157262012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15727
15728 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15729
9f3a5c85
LM
157302012-02-24 Luis Machado <lgustavo@codesourcery>
15731
15732 * server.c (handle_query): Advertise support for target-side
15733 breakpoint condition evaluation.
15734 (process_point_options): New function.
15735 (process_serial_event): When inserting a breakpoint, check for
15736 a target-side condition that should be evaluated.
15737
15738 * mem-break.c: Include regcache.h and ax.h.
15739 (point_cond_list_t): New data structure.
15740 (breakpoint) <cond_list>: New field.
15741 (find_gdb_breakpoint_at): Make non-static.
15742 (delete_gdb_breakpoint_at): Clear any target-side
15743 conditions.
15744 (clear_gdb_breakpoint_conditions): New function.
15745 (add_condition_to_breakpoint): Likewise.
15746 (add_breakpoint_condition): Likewise.
15747 (gdb_condition_true_at_breakpoint): Likewise.
15748 (gdb_breakpoint_here): Return result directly instead
15749 of going through a local variable.
15750
15751 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15752 (clear_gdb_breakpoint_conditions): Likewise.
15753 (add_breakpoint_condition): Likewise.
15754 (gdb_condition_true_at_breakpoint): Likewise.
15755
15756 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15757 (need_step_over_p): Take target-side breakpoint condition into
15758 consideration.
15759
5e1dc496
LM
157602012-02-24 Luis Machado <lgustavo@codesourcery>
15761
15762 * server.h: Include tracepoint.h.
15763 (agent_mem_read, agent_get_trace_state_variable_value,
15764 agent_set_trace_state_variable_value,
15765 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15766 get_set_tsv_func_addr): New prototypes.
15767
15768 * ax.h: New include file.
15769 * ax.c: New source file.
15770
15771 * tracepoint.c: Include ax.h.
15772 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15773 agent_expr, eval_result_type): Move to ax.h.
15774 (parse_agent_expr): Rename to ...
15775 (gdb_parse_agent_expr): ... this, make it non-static and move
15776 to ax.h.
15777 (unparse_agent_expr) Rename to ...
15778 (gdb_unparse_agent_expr): ... this, make it non-static and move
15779 to ax.h.
15780 (eval_agent_expr): Rename to ...
15781 (eval_tracepoint_agent_expr): ... this.
15782 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15783 forward declarations.
15784 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15785 (agent_get_trace_state_variable_value): New function.
15786 (agent_set_trace_state_variable_value): New function.
15787 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15788 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15789 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15790 (condition_true_at_tracepoint): Likewise.
15791 (parse_agent_expr): Rename to ...
15792 (gdb_parse_agent_expr): ... this and move to ax.c.
15793 (unparse_agent_expr): Rename to ...
15794 (gdb_unparse_agent_expr): ... this and move to ax.c.
15795 (gdb_agent_op_name): Move to ax.c.
15796 (eval_agent_expr): Rename to ...
15797 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15798 and move to ax.c.
15799 (eval_tracepoint_agent_expr): New function.
15800 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15801 non-static.
5e1dc496
LM
15802 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15803 ax.c.
15804 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15805 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15806 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15807 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15808 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15809 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15810 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15811 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15812 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15813 (compile_bytecodes): Remove forward declaration.
15814 (is_goto_target): Move to ax.c.
15815 (compile_bytecodes): Move to ax.c and call
15816 agent_get_trace_state_variable_value (...) and
15817 agent_set_trace_state_variable_value (...).
15818
15819 * Makefile.in: Update ax.c and IPA dependencies.
15820
277e4e52
PA
158212012-02-24 Pedro Alves <palves@redhat.com>
15822
15823 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15824 (cmd_bigqtbuffer_circular): ... this. Only handle
15825 'QTBuffer:circular:'.
15826 (handle_tracepoint_general_set): Adjust.
15827
bf4c19f7
YQ
158282012-02-16 Yao Qi <yao@codesourcery.com>
15829
15830 * inferiors.c: Move code to ...
15831 * dll.c: .... here. New.
15832 * server.h: Declare clear_dlls.
15833 * Makefile.in (SFILES): Add dll.c.
15834 (OBS): Add dll.o
15835 (dll.o): New rule.
15836
d73f2619
YQ
158372012-02-11 Yao Qi <yao@codesourcery.com>
15838
15839 * server.c: (handle_monitor_command): Add a new parameter
15840 `own_buf'.
15841 (handle_query): Update caller.
15842
f8255c2a
JB
158432012-02-09 Joel Brobecker <brobecker@adacore.com>
15844
15845 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15846 * configure, config.in: Regenerate.
15847 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15848 is not defined.
15849
da84f473
PA
158502012-02-02 Pedro Alves <palves@redhat.com>
15851
15852 Try SIGKILL first, then PTRACE_KILL.
15853 * linux-low.c (linux_kill_one_lwp): New.
15854 (linux_kill_one_lwp): Rename to ...
15855 (kill_one_lwp_callback): ... this. Use the new
15856 linux_kill_one_lwp.
15857
e886a173
PA
158582012-02-02 Pedro Alves <palves@redhat.com>
15859
15860 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15861 inferior.
15862
be07f1a2
PA
158632012-01-27 Pedro Alves <palves@redhat.com>
15864
15865 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15866 (elf_64_file_p): Make static.
15867 (linux_pid_exe_is_elf_64_file): New.
15868 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15869 Delete declarations.
15870 (linux_pid_exe_is_elf_64_file): Declare.
15871 * linux-x86-low.c (x86_arch_setup): Use
15872 linux_pid_exe_is_elf_64_file.
15873
d8301ad1
JK
158742012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15875
15876 * linux-low.c (linux_wait_for_event_1): Rename to ...
15877 (linux_wait_for_event): ... here and merge it with former
15878 linux_wait_for_event - new variable wait_ptid, use it.
15879 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15880
01b17894
PA
158812012-01-23 Pedro Alves <palves@redhat.com>
15882
15883 * server.c (main): Avoid yet another case of infinite loop while
15884 detaching/killing after a longjmp.
15885
e825046f
JK
158862012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15887
15888 Code cleanup.
15889 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15890
b9e7b9c3
UW
158912012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15892
15893 * hostio.c (handle_readlink): New function.
15894 (handle_vFile): Call it to handle "vFile:readlink" packets.
15895
901f9912
UW
158962012-01-20 Pedro Alves <palves@redhat.com>
15897 Ulrich Weigand <ulrich.weigand@linaro.org>
15898
15899 * server.c (handle_v_requests): Only support vAttach and vRun to
15900 start multiple processes when in extended protocol mode.
15901
fc1ab1a0
PA
159022012-01-17 Pedro Alves <palves@redhat.com>
15903
15904 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15905 memalign plus mprotect to allocate the scratch buffer.
15906
7d5d4e98
PA
159072012-01-13 Pedro Alves <palves@redhat.com>
15908
15909 * server.c (attach_inferior): Clear `cont_thread'.
15910
f128d5e9
PA
159112012-01-13 Pedro Alves <palves@redhat.com>
15912
15913 * server.c (main): Avoid infinite loop while detaching/killing
15914 after a longjmp.
15915
06db92f0
DE
159162012-01-09 Doug Evans <dje@google.com>
15917
15918 * server.c (start_inferior): Set last_ptid in --wrapper case.
15919
32d92999
YQ
159202012-01-06 Yao Qi <yao@codesourcery.com>
15921
15922 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15923 defined.
15924 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15925
5e0a92a9
YQ
159262012-01-04 Yao Qi <yao@codesourcery.com>
15927
15928 * tracepoint.c (cmd_qtdp): Print debug message
15929 for static tracepoint.
15930
ae639e8c
YQ
159312012-01-04 Yao Qi <yao@codesourcery.com>
15932
15933 * tracepoint.c (trace_vdebug): Differentiate debug message
15934 between gdbserver and IPA.
15935
f72429c5
YQ
159362012-01-03 Yao Qi <yao@codesourcery.com>
15937
15938 * tracepoint.c (tracepoint_was_hit): Don't collect for
15939 static tracepoint.
15940
12c3e59c
JB
159412012-01-02 Joel Brobecker <brobecker@adacore.com>
15942
15943 * terminal.h: Reformat copyright header.
15944
67827812
JB
159452012-01-02 Joel Brobecker <brobecker@adacore.com>
15946
15947 * server.c (gdbserver_version): Update copyright year.
15948 * gdbreplay.c (gdbreplay_version): Likewise.
15949
3e52c33d
JK
159502011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15951
15952 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15953
15954 Revert:
15955 2011-12-18 Hui Zhu <teawater@gmail.com>
15956 * linux-low.c (linux_create_inferior): Save return value to ret.
15957
66f1260e
HZ
159582011-12-18 Hui Zhu <teawater@gmail.com>
15959
15960 * linux-low.c (linux_create_inferior): Save return value to ret.
15961
e77616d7
DE
159622011-12-16 Doug Evans <dje@google.com>
15963
e7b06c57
DE
15964 * linux-low.c (linux_create_inferior): If stdio connection,
15965 redirect stdin from /dev/null, stdout to stderr.
15966 * remote-utils.c (remote_is_stdio): New static global.
15967 (remote_connection_is_stdio): New function.
15968 (remote_prepare): Handle stdio connection.
15969 (remote_open): Ditto.
15970 (remote_close): Don't close stdin for stdio connections.
15971 (read_prim,write_prim): New functions. Replace all calls to
15972 read/write to these.
15973 * server.c (main): Watch for "-" argument. Move call to
15974 remote_prepare before start_inferior.
15975 * server.h (STDIO_CONNECTION_NAME): New macro.
15976 (remote_connection_is_stdio): Declare.
15977
e77616d7
DE
15978 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15979 in debugging output.
15980
82067193
YQ
159812011-12-15 Yao Qi <yao@codesourcery.com>
15982
15983 * tracepoint.c: Include sys/syscall.h.
15984 (gdb_ust_thread): Remove preprocessor conditional.
15985
82bfbe7e
PA
159862011-12-14 Pedro Alves <pedro@codesourcery.com>
15987
15988 * linux-low.c (linux_detach_one_lwp): Call
15989 the_low_target.prepare_to_resume before detaching.
15990
712c6575
YQ
159912011-12-14 Yao Qi <yao@codesourcery.com>
15992
15993 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15994 of write.
15995
d54d1edf
YQ
159962011-12-14 Yao Qi <yao@codesourcery.com>
15997
15998 * i386-low.c (i386_low_stopped_data_address): Initialize local
15999 variable `control'.
16000
6210a125
PA
160012011-12-13 Pedro Alves <pedro@codesourcery.com>
16002
16003 PR remote/13492
16004
16005 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16006 DR_CONTROL unless necessary. Extend comments.
16007 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16008 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16009
2ece8244
YQ
160102011-12-13 Yao Qi <yao@codesourcery.com>
16011
16012 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16013 macros.
16014 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16015
784867a5
JK
160162011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16017
16018 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16019 Print new debug message for such case.
16020
6bf36717
JK
160212011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16022
16023 Fix overlapping memcpy.
16024 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16025 the read_inferior_memory transfer.
16026 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16027 write_inferior_memory transfer.
16028 (set_fast_tracepoint_jump): New variable buf. Use it for the
16029 read_inferior_memory and write_inferior_memory transfers.
16030 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16031 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16032 Use it for the write_inferior_memory transfer.
16033 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16034 buffers.
16035
50275556
MR
160362011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16037
16038 * linux-low.c (fetch_register, store_register): Make code
16039 consistent, fix formatting.
16040
7325beb4
MR
160412011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16042
16043 * linux-low.c (usr_store_inferior_registers): Factor out code
16044 to handle individual registers into...
16045 (store_register): ... this new function.
16046
c642a434
UW
160472011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16048
16049 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16050 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16051 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16052 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16053 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16054 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16055 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16056 (srv_xmlfiles): Add new XML files.
16057
16058 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16059 and <sys/uio.h>.
16060 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16061 (init_registers_s390_linux32v1): Add prototype.
16062 (init_registers_s390_linux32v2): Likewise.
16063 (init_registers_s390_linux64v1): Likewise.
16064 (init_registers_s390_linux64v2): Likewise.
16065 (init_registers_s390x_linux64v1): Likewise.
16066 (init_registers_s390x_linux64v2): Likewise.
16067 (s390_num_regs): Increment to 52.
16068 (s390_regmap): Add orig_r2 register.
16069 (s390_num_regs_3264): Increment to 68.
16070 (s390_regmap_3264): Add orig_r2 register.
16071 (s390_collect_ptrace_register): Handle orig_r2 register.
16072 (s390_supply_ptrace_register): Likewise.
16073 (s390_fill_last_break): New function.
16074 (s390_store_last_break): Likewise.
16075 (s390_fill_system_call): New function.
16076 (s390_store_system_call): Likewise.
16077 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16078 register sets.
16079 (s390_check_regset): New function.
16080 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16081 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16082 Update target_regsets for available register sets.
16083
2268b414
JK
160842011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16085 Jan Kratochvil <jan.kratochvil@redhat.com>
16086
16087 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16088 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16089 New.
16090 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16091 * linux-low.h (struct process_info_private): New member r_debug.
16092 * server.c (handle_qxfer_libraries): Call
16093 the_target->qxfer_libraries_svr4.
16094 (handle_qxfer_libraries_svr4): New function.
16095 (qxfer_packets): New entry "libraries-svr4".
16096 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16097 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16098 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16099 PACKET_qXfer_libraries_svr4.
16100
d6db1fab
UW
161012011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16102
16103 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16104 PSW address/mask between 8-byte and 16-byte formats.
16105 (s390_supply_ptrace_register): Likewise.
16106 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16107 basic addressing mode bit.
16108
242f5f1c
SS
161092011-11-24 Stan Shebs <stan@codesourcery.com>
16110
16111 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16112
f196051f
SS
161132011-11-17 Stan Shebs <stan@codesourcery.com>
16114
16115 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16116 (tracing_start_time): New global.
16117 (tracing_stop_time): New global.
16118 (tracing_user_name): New global.
16119 (tracing_notes): New global.
16120 (tracing_stop_note): New global.
16121 (cmd_qtstart): Set traceframe_usage, start_time.
16122 (stop_tracing): Set stop_time.
16123 (cmd_qtstatus): Report additional status.
16124 (cmd_qtp): New function.
16125 (handle_tracepoint_query): Call it.
16126 (cmd_qtnotes): New function.
16127 (handle_tracepoint_general_set): Call it.
16128 (get_timestamp): Rename from tsv_get_timestamp.
16129
405f8e94
SS
161302011-11-14 Stan Shebs <stan@codesourcery.com>
16131 Kwok Cheung Yeung <kcy@codesourcery.com>
16132
16133 * linux-x86-low.c (small_jump_insn): New.
16134 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16135 trampoline and error message, build a trampoline and issue a small
16136 jump instruction to it.
16137 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16138 trampoline and error message.
16139 (x86_get_min_fast_tracepoint_insn_len): New.
16140 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16141 * linux-low.h (struct linux_target_ops): Add arguments to
16142 install_fast_tracepoint_jump_pad operation, add new operation.
16143 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16144 arguments.
16145 (linux_get_min_fast_tracepoint_insn_len): New function.
16146 (linux_target_op): Add new operation.
16147 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16148 (gdb_trampoline_buffer_end): Ditto.
16149 (gdb_trampoline_buffer_error): Ditto.
16150 (struct ipa_sym_addresses): Add fields for new IPA variables.
16151 (symbol_list): Add entries for new IPA variables.
16152 (struct tracepoint): Add fields to hold the address range of the
16153 trampoline used by the tracepoint.
16154 (trampoline_buffer_head): New static variable.
16155 (trampoline_buffer_tail): Ditto.
16156 (claim_trampoline_space): New function.
16157 (have_fast_tracepoint_trampoline_buffer): New function.
16158 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16159 structure.
16160 (install_fast_tracepoint): Ditto, also add error buffer argument.
16161 (cmd_qtminftpilen): New function.
16162 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16163 (fast_tracepoint_from_trampoline_address): New function.
16164 (fast_tracepoint_collecting): Handle trampoline as part of jump
16165 pad space.
16166 (set_trampoline_buffer_space): New function.
16167 (initialize_tracepoint): Initialize new IPA variables.
16168 * target.h (struct target_ops): Add arguments to
16169 install_fast_tracepoint_jump_pad operation, add new
16170 get_min_fast_tracepoint_insn_len operation.
16171 (target_get_min_fast_tracepoint_insn_len): New.
16172 (install_fast_tracepoint_jump_pad): Add arguments.
16173 * server.h (IPA_BUFSIZ): Define.
16174 * linux-i386-ipa.c: Include extra header files.
16175 (initialize_fast_tracepoint_trampoline_buffer): New function.
16176 (initialize_low_tracepoint): Call it.
16177 * server.h (set_trampoline_buffer_space): Declare.
16178 (claim_trampoline_space): Ditto.
16179 (have_fast_tracepoint_trampoline_buffer): Ditto.
16180
1e4d1764
YQ
161812011-11-14 Yao Qi <yao@codesourcery.com>
16182
16183 * server.c (handle_query): Handle InstallInTrace for qSupported.
16184 * tracepoint.c (add_tracepoint): Sort list.
16185 (install_tracepoint, download_tracepoint): New.
16186 (cmd_qtdp): Call them to install and download tracepoints.
16187 (sort_tracepoints): Removed.
16188 (cmd_qtstart): Update.
16189
5c73ff4e
YQ
161902011-11-14 Yao Qi <yao@codesourcery.com>
16191
16192 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16193 * mem-break.h: Declare.
16194 * tracepoint.c (cmd_qtstart): Move some code to ...
16195 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16196 New.
16197 (download_tracepoints): Move some code to ...
16198 (download_tracepoint_1): ... here. New.
16199
86a30030
YQ
162002011-11-08 Yao Qi <yao@codesourcery.com>
16201
16202 * remote-utils.c (relocate_instruction): A comment fix.
16203
8d26e50c
JB
162042011-11-07 Joel Brobecker <brobecker@adacore.com>
16205
16206 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16207 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16208 dr_status_mirror and dr_control_mirror from debug_reg_state.
16209 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16210 (i386_initial_stuff): Remove use of deleted globals.
16211 (i386_get_thread_context, i386_set_thread_context,
16212 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16213 from debug_reg_state.
16214
a59306a3
YQ
162152011-11-05 Yao Qi <yao@codesourcery.com>
16216
16217 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16218 address as TPOINT's.
16219
3065dfb6
SS
162202011-11-02 Stan Shebs <stan@codesourcery.com>
16221
16222 * tracepoint.c (agent_mem_read_string): New function.
16223 (eval_agent_expr): Call it for tracenz.
16224 * server.c (handle_query): Report support for tracenz.
16225
fd0d8c7c
YQ
162262011-11-02 Yao Qi <yao@codesourcery.com>
16227
16228 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16229
609086b1
YQ
162302011-11-02 Yao Qi <yao@codesourcery.com>
16231
16232 * target.h: Fix a typo in comment.
16233
b9fd1791
PA
162342011-10-31 Pedro Alves <pedro@codesourcery.com>
16235
16236 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16237 clobber the breakpoints' shadows with fast tracepoint jumps.
16238 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16239 * target.c (write_inferior_memory): Also pass MYADDR down to
16240 check_mem_write.
16241
03583c20
UW
162422011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16243
16244 * configure.ac: Check support for personality routine.
16245 * configure: Regenerate.
16246 * config.in: Likewise.
16247 * linux-low.c: Include <sys/personality.h>.
16248 Define ADDR_NO_RANDOMIZE if necessary.
16249 (linux_create_inferior): Disable address space randomization when
16250 forking inferior, if requested.
16251 (linux_supports_disable_randomization): New function.
16252 (linux_target_ops): Install it.
16253 * server.h (disable_randomization): Declare.
16254 * server.c (disable_randomization): New global variable.
16255 (handle_general_set): Handle QDisableRandomization.
16256 (handle_query): Likewise for qSupported.
16257 (main): Support --disable-randomization and --no-disable-randomization
16258 command line arguments.
16259 * target.h (struct target_ops): Add supports_disable_randomization.
16260 (target_supports_disable_randomization): New macro.
16261
723b724b
MF
162622011-09-29 Mike Frysinger <vapier@gentoo.org>
16263
16264 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16265 ifdef check.
16266 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16267 [!PT_GETDSBT] (target_loadmap): New definition.
16268 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16269 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16270 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16271 and PT_GETDSBT to LINUX_LOADMAP.
16272 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16273 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16274
55329a5c 162752011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16276
16277 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16278 (arm_linux_hwbp_cap): New static variable.
16279 (arm_linux_get_hwbp_cap): Replace by ...
16280 (arm_linux_init_hwbp_cap): ... this new function.
16281 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16282 (arm_linux_get_hw_watchpoint_count): Likewise.
16283 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16284 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16285 (arm_prepare_to_resume): Use perror_with_name instead of error.
16286
55329a5c 162872011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16288
16289 * linux-arm-low.c: Include <signal.h>.
16290 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16291 (struct arm_linux_hwbp_cap): New data type.
16292 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16293 (struct arm_linux_hw_breakpoint): New data type.
16294 (MAX_BPTS, MAX_WPTS): Define.
16295 (struct arch_process_info, struct arch_lwp_info): New data types.
16296 (arm_linux_get_hwbp_cap): New function.
16297 (arm_linux_get_hw_breakpoint_count): Likewise.
16298 (arm_linux_get_hw_watchpoint_count): Likewise.
16299 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16300 (arm_hwbp_control_initialize): Likewise.
16301 (arm_hwbp_control_is_enabled): Likewise.
16302 (arm_hwbp_control_is_initialized): Likewise.
16303 (arm_hwbp_control_disable): Likewise.
16304 (arm_linux_hw_breakpoint_equal): Likewise.
16305 (arm_linux_hw_point_initialize): Likewise.
16306 (struct update_registers_data): New data structure.
16307 (update_registers_callback: New function.
16308 (arm_insert_point): Likewise.
16309 (arm_remove_point): Likewise.
16310 (arm_stopped_by_watchpoint): Likewise.
16311 (arm_stopped_data_address): Likewise.
16312 (arm_new_process): Likewise.
16313 (arm_new_thread): Likewise.
16314 (arm_prepare_to_resume): Likewise.
16315 (the_low_target): Register arm_insert_point, arm_remove_point,
16316 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16317 arm_new_thread, and arm_prepare_to_resume.
16318
6b9801d4
SS
163192011-09-15 Stan Shebs <stan@codesourcery.com>
16320
16321 * server.h (struct emit_ops): Add compare-goto fields.
16322 * tracepoint.c (gdb_agent_op_sizes): New table.
16323 (emit_eq_goto): New function.
16324 (emit_ne_goto): New function.
16325 (emit_lt_goto): New function.
16326 (emit_le_goto): New function.
16327 (emit_gt_goto): New function.
16328 (emit_ge_goto): New function.
16329 (is_goto_target): New function.
16330 (compile_bytecodes): Recognize special cases of compare-goto
16331 combinations and call specialized emitters for them.
16332 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16333 (amd64_emit_ne_goto): New function.
16334 (amd64_emit_lt_goto): New function.
16335 (amd64_emit_le_goto): New function.
16336 (amd64_emit_gt_goto): New function.
16337 (amd64_emit_ge_goto): New function.
16338 (amd64_emit_ops): Add the new functions.
16339 (i386_emit_eq_goto): New function.
16340 (i386_emit_ne_goto): New function.
16341 (i386_emit_lt_goto): New function.
16342 (i386_emit_le_goto): New function.
16343 (i386_emit_gt_goto): New function.
16344 (i386_emit_ge_goto): New function.
16345 (i386_emit_ops): Add the new functions.
16346
bf15cbda
SS
163472011-09-08 Stan Shebs <stan@codesourcery.com>
16348
16349 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16350 (i386_emit_epilogue): Restore %ebx.
16351
943ca1dd
JZ
163522011-08-31 Jie Zhang <jzhang918@gmail.com>
16353
16354 * server.c (step_thread): Remove definition.
16355 (process_serial_event): Don't handle Hs.
16356 * server.h (step_thread): Remove declaration.
16357 * target.c (set_desired_inferior): Remove use of step_thread.
16358
e3deef73
LM
163592011-08-24 Luis Machado <lgustavo@codesourcery.com>
16360
16361 * linux-low.c: Include linux-procfs.h.
16362 (linux_attach_lwp_1): Update comments.
16363 (linux_attach): Scan for existing threads when attaching to a
16364 process that is the tgid.
16365 * Makefile.in: Update dependencies.
16366
13da1c97
LM
163672011-08-24 Luis Machado <lgustavo@codesourcery.com>
16368
16369 * configure.srv: Add linux-procfs.o dependencies.
16370
881127c9
YQ
163712011-08-14 Yao Qi <yao@codesourcery.com>
16372
16373 * target.h (struct target_ops): Fix indent.
16374 * win32-low.c (win32_target_ops): Fix comment.
16375
58dbd541
YQ
163762011-08-14 Andrew Jenner <andrew@codesourcery.com>
16377 Yao Qi <yao@codesourcery.com>
16378
16379 * Makefile.in (clean): Remove tic6x-*.c files.
16380 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16381 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16382 (tic6x-c64xp-linux.c): Likewise.
16383 * configure.srv: Add support for tic6x-*-uclinux.
16384 * linux-tic6x-low.c: New.
16385 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16386
78d85199
YQ
163872011-08-14 Andrew Stubbs <ams@codesourcery.com>
16388 Yao Qi <yao@codesourcery.com>
16389
16390 * target.h (struct target_ops): Add read_loadmap.
16391 * linux-low.c (struct target_loadseg): New type.
16392 (struct target_loadmap): New type.
16393 (linux_read_loadmap): New function.
16394 (linux_target_ops): Add linux_read_loadmap.
16395 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16396 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16397 to NULL.
78d85199 16398
a959a88d
EZ
163992011-08-05 Eli Zaretskii <eliz@gnu.org>
16400
16401 * win32-low.c: Include <stdint.h>.
16402
1ced966e
PA
164032011-07-22 Pedro Alves <pedro@codesourcery.com>
16404
16405 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16406 to the inferior here.
16407 (i386_remove_aligned_watchpoint): Ditto.
16408 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16409 fit part of the watchpoint in the debug registers.
16410 (i386_update_inferior_debug_regs): New.
16411 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16412 registers, and only update the inferior on success.
16413 (i386_low_remove_watchpoint): Ditto.
16414
d26e3629
KY
164152011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16416
16417 * linux-low.c (compare_ints, unique, list_threads, show_process,
16418 linux_core_of_thread): Delete.
16419 (linux_target_ops): Change linux_core_of_thread to
16420 linux_common_core_of_thread.
16421 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16422 * utils.c (malloc_failure): Change type of argument.
16423 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16424 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16425 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16426 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16427 (IPA_OBJS): Add common-utils-ipa.o.
16428 (ptid_h, linux_osdata_h): New macros.
16429 (server_h): Add common/common-utils.h, common/xml-utils.h,
16430 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16431 common/ptid.h.
16432 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16433 ptid.o, buffer.o): New rules.
16434 (linux-low.o): Add common/linux-osdata.h as a dependency.
16435 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16436 * configure.ac: Add AC_HEADER_DIRENT check.
16437 * config.in: Regenerate.
16438 * configure: Regenerate.
16439 * remote-utils.c (xml_escape_text): Delete.
16440 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16441 buffer_xml_printf): Move to common/buffer.c.
16442 * server.c (main): Remove call to initialize_inferiors.
16443 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16444 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16445 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16446 internal_error, gdb_assert, gdb_assert_fail): Delete.
16447 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16448 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16449 common/buffer.h.
16450 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16451 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16452 initialize_inferiors): Delete.
16453
2275a1a7
PA
164542011-07-20 Pedro Alves <pedro@codesourcery.com>
16455
16456 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16457 symbol error.
16458
0a5b1e09
PA
164592011-05-31 Pedro Alves <pedro@codesourcery.com>
16460
16461 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16462 assertion.
16463 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16464
6938fd34
YQ
164652011-05-26 Yao Qi <yao@codesourcery.com>
16466
16467 * Makefile.in (thread-db.o): Track dependence to
16468 common/gdb_thread_db.h.
16469 * thread-db.c: include gdb_thread_db.h from right place.
16470
b481f9e0
TT
164712011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16472
16473 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16474 __FILE__ and __LINE__ to internal_error.
16475
98a5dd13
DE
164762011-05-13 Doug Evans <dje@google.com>
16477
16478 * thread-db.c (try_thread_db_load_from_sdir): New function.
16479 (try_thread_db_load_from_dir): New function.
16480 (thread_db_load_search): Handle $sdir, ignore $pdir.
16481 Remove trying of system directories if search of
16482 libthread-db-search-path fails, that is now done via $sdir.
16483
d248b706
KY
164842011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16485
16486 * server.c (handle_query): Add EnableDisableTracepoints to the list
16487 of supported features.
43aaf8b6 16488 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16489 tracepoints.
43aaf8b6
PA
16490 (cmd_qtenable_disable): New.
16491 (cmd_qtstart): Install tracepoints even if disabled.
16492 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16493 receiving a QTEnable or QTDisable packet.
16494 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16495 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16496 tracepoints.
16497 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16498
84e578fb
DE
164992011-05-10 Doug Evans <dje@google.com>
16500
16501 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16502
71f55dd8
DE
165032011-05-04 Doug Evans <dje@google.com>
16504
16505 * linux-low.c (linux_join): Skip process lookup.
16506 * spu-low.c (spu_join): Ditto.
16507 * server.c (join_inferiors_callback): Delete.
16508 (process_serial_event): For 'D' packet (detach) call join_inferior
16509 directly.
16510
4d393d60
JM
165112011-05-04 Joseph Myers <joseph@codesourcery.com>
16512
16513 * README: Don't mention xscale*-*-linux*.
16514 * configure.srv (xscale*-*-linux*): Don't handle target.
16515
b00ad6ff
NF
165162011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16517
16518 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16519 casting pointers.
16520 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16521 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16522 (i386_emit_void_call_2): Likewise.
16523
af96c192
YQ
165242011-04-26 Yao Qi <yao@codesourcery.com>
16525
43aaf8b6
PA
16526 * linux-low.c: Move common macros to linux-ptrace.h.
16527 Include linux-ptrace.h.
af96c192
YQ
16528 * Makefile.in (linux_ptrace_h): New.
16529 (linux-low.o): Depends on linux-ptrace.h.
16530
03f2bd59
JK
165312011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16532
16533 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16534 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16535 (remote_prepare): New function with most of the TCP code from ...
16536 (remote_open): ... here. Detect PORT here unconditionally. Move also
16537 setting transport_is_reliable.
16538 * server.c (run_once): New variable.
16539 (gdbserver_usage): Document it.
16540 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16541 the first run if RUN_ONCE.
16542 * server.h (run_once, remote_prepare): New declarations.
16543
7a9dd1b2
TT
165442011-04-19 Tom Tromey <tromey@redhat.com>
16545
16546 * win32-low.c (handle_load_dll): Remove duplicate "the".
16547
81239425
PM
165482011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16549
16550 Remove support for old Cygwin 1.5 versions.
16551 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16552 function to avoid warning.
16553 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16554 warning.
16555
9e0627f1
PM
165562011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16557
16558 * gdbserver/server.h (Macro _): Define it if not available.
16559
588eebee
MS
165602011-03-14 Michael Snyder <msnyder@vmware.com>
16561
348af9f7 16562 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16563
43f70d4c
JB
165642011-03-10 Joel Brobecker <brobecker@adacore.com>
16565
16566 * Makefile.in (maintainer-clean realclean distclean): Remove
16567 "make ... subdir_do" command.
16568
348af9f7
MS
165692011-03-10 Michael Snyder <msnyder@vmware.com>
16570
16571 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16572
16573 * server.c (handle_v_run): Free alloced buffer on early return.
16574
e637a4f5
YQ
165752011-03-09 Yao Qi <yao@codesourcery.com>
16576
16577 Revert:
16578 2011-03-04 Yao Qi <yao@codesourcery.com>
16579
16580 * Makefile.in: Remove GNU make feature --directory.
16581
16582 2011-03-05 Yao Qi <yao@codesourcery.com>
16583
16584 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16585 (subdir_do): New make target. Copied from gdb/Makefile.
16586 (maintainer-clean, realclean, distclean, clean): Call corresponding
16587 make targets in common/Makefile.
16588
16589 2011-02-11 Yao Qi <yao@codesourcery.com>
16590
16591 * configure.ac: Call AC_PROG_RANLIB.
16592 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16593 * configure: Regenerate.
16594
e6edda56
JK
165952011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16596
16597 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16598
e5141119
JB
165992011-03-06 Yao Qi <yao@codesourcery.com>
16600
16601 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16602
64794aa4
JB
166032011-03-05 Yao Qi <yao@codesourcery.com>
16604
16605 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16606 (subdir_do): New make target. Copied from gdb/Makefile.
16607 (maintainer-clean, realclean, distclean, clean): Call corresponding
16608 make targets in common/Makefile.
16609
7a762829
YQ
166102011-03-04 Yao Qi <yao@codesourcery.com>
16611
16612 * Makefile.in: Remove GNU make feature --directory.
16613
348af9f7
MS
166142011-03-04 Michael Snyder <msnyder@vmware.com>
16615
16616 * server.c (queue_stop_reply): Call xmalloc not malloc.
16617
166182011-03-02 Michael Snyder <msnyder@vmware.com>
16619
16620 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16621
9f72fee2
MS
166222011-02-28 Michael Snyder <msnyder@vmware.com>
16623
588eebee
MS
16624 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16625 (cmd_qtframe): Ditto.
16626 (cmd_qtbuffer): Ditto.
16627 (cmd_bigqtbuffer): Ditto.
16628
9f72fee2
MS
16629 * utils.c (decimal2str): Initialize 'width' to nine, then
16630 don't mess with it.
16631
8040bd49
UW
166322011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16633
16634 * hostio.c (require_data): Free *data, not data.
16635
7e52cbd0
JK
166362011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16637
16638 * hostio.c (require_data): Use free, not xfree.
16639
9130f83e
MS
166402011-02-27 Michael Snyder <msnyder@vmware.com>
16641
4b812f4e
MS
16642 * server.c (handle_query): Discard unused value.
16643
9130f83e
MS
16644 * hostio.c (require_data): Free malloc memory before returning
16645 error.
16646
69d37113
MS
166472011-02-26 Michael Snyder <msnyder@vmware.com>
16648
16649 * linux-low.c (list_threads): Call closedir for dirent.
16650
35f5825a
MS
166512011-02-27 Michael Snyder <msnyder@vmware.com>
16652
2a589cef
MS
16653 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16654 a case statement falls through.
16655
0adea5f7
MS
16656 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16657
35f5825a
MS
16658 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16659 in comparison.
16660
238f1c74
MS
166612011-02-26 Michael Snyder <msnyder@vmware.com>
16662
16663 * utils.c (decimal2str): Eliminate dead code and dead param.
16664 (pulongest): Drop dead param from call to decimal2str.
16665 (plongest): Ditto.
16666
633ff500
JB
166672011-02-24 Joel Brobecker <brobecker@adacore.com>
16668
16669 Revert the following patch (not approved yet):
16670 2011-02-21 Hui Zhu <teawater@gmail.com>
16671 * tracepoint.c (tp_printf): New function.
16672 (eval_agent_expr): Handle gdb_agent_op_printf.
16673
f9c6ff72
HZ
166742011-02-21 Hui Zhu <teawater@gmail.com>
16675
16676 * tracepoint.c (tp_printf): New function.
16677 (eval_agent_expr): Handle gdb_agent_op_printf.
16678
94d5e490
TT
166792011-02-18 Tom Tromey <tromey@redhat.com>
16680
16681 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16682 (tracepoint.o): Likewise.
16683 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16684 (gdb_agent_op_names): Likewise.
16685
c7f96d2b
TT
166862011-02-18 Tom Tromey <tromey@redhat.com>
16687
16688 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16689 gdb_agent_op_rot>: New constants.
16690 (gdb_agent_op_names): Add pick and roll.
16691 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16692 cases.
16693
0feedb2c
JK
166942011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16695
16696 * aclocal.m4: Regenerated with aclocal-1.11.1.
16697
b3b9301e
PA
166982011-02-14 Pedro Alves <pedro@codesourcery.com>
16699
16700 * server.c (handle_qxfer_traceframe_info): New.
16701 (qxfer_packets): Register "traceframe-info".
16702 (handle_query): Report support for qXfer:traceframe-info:read+.
16703 * tracepoint.c (match_blocktype): New.
16704 (traceframe_find_block_type): Rename to ...
16705 (traceframe_walk_blocks): ... this. Add callback filter argument,
16706 and use it.
16707 (traceframe_find_block_type): New, reimplemented on top of
16708 traceframe_walk_blocks.
16709 (build_traceframe_info_xml): New.
16710 (traceframe_read_info): New.
16711 * server.h (traceframe_read_info): Declare.
16712
4f3e6fb7
YQ
167132011-02-11 Yao Qi <yao@codesourcery.com>
16714
16715 * configure.ac: Call AC_PROG_RANLIB.
16716 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16717 * configure: Regenerate.
16718
764880b7
PA
167192011-02-07 Pedro Alves <pedro@codesourcery.com>
16720
16721 * server.c (gdb_read_memory): Change return semantics to allow
16722 partial transfers.
16723 (handle_search_memory_1): Adjust.
16724 (process_serial_event) <'m' packet>: Handle partial transfers.
16725 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16726
1c79eb8a
PA
167272011-01-28 Pedro Alves <pedro@codesourcery.com>
16728
16729 * regcache.c (init_register_cache): Initialize
16730 regcache->register_status.
16731 (free_register_cache): Release regcache->register_status.
16732 (regcache_cpy): Copy register_status.
16733 (registers_to_string): Print 'x's for unavailable registers.
16734 (supply_register): Mark the register's status valid or
16735 unavailable, depending on whether a buffer was passed in or not.
16736 (supply_register_zeroed): New.
16737 (supply_regblock): Mark the registers' status valid or
16738 unavailable, depending on whether a buffer was passed in or not.
16739 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16740 (struct regcache): New `register_status' field.
16741 (supply_register_zeroed): Declare.
16742 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16743 supply_register_zeroed, rather than passing a NULL buffer to
16744 supply_register.
16745 * tracepoint.c (fetch_traceframe_registers): Update comment.
16746
85724a0e
PA
167472011-01-28 Pedro Alves <pedro@codesourcery.com>
16748
16749 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16750 buffer explicit.
16751
d08aafef
PA
167522011-01-25 Pedro Alves <pedro@codesourcery.com>
16753
16754 * server.h (decode_xfer_write): Change prototype.
16755 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16756 and don't extract the annex here.
16757 * server.c (decode_xfer_read): Remove `annex' parameter,
16758 and don't extract the annex here.
16759 (decode_xfer): New.
16760 (struct qxfer): New.
16761 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16762 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16763 (handle_qxfer_statictrace): New functions, abstracted out from
16764 handle_query, and made to use the struct qxfer interface.
16765 (handle_threads_qxfer_proper): Rename to ...
16766 (handle_qxfer_threads_proper): ... this.
16767 (handle_threads_qxfer): Rename to ...
16768 (handle_qxfer_threads): ... this. Adjust.
16769 (qxfer_packets): New array.
16770 (handle_qxfer): New function.
16771 (handle_query): Use handle_qxfer.
16772
493e2a69
MS
167732011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16774
16775 * gdbreplay.c: Shorten lines of >= 80 columns.
16776 * linux-low.c: Ditto.
16777 * linux-ppc-low.c: Ditto.
16778 * linux-s390-low.c: Ditto.
16779 * linux-sparc-low.c: Ditto.
16780 * linux-x86-low.c: Ditto.
16781 * linux-xtensa-low.c: Ditto.
16782 * mem-break.c: Ditto.
16783 * nto-low.c: Ditto.
16784 * regcache.h: Ditto.
16785 * remote-utils.c: Ditto.
16786 * server.c: Ditto.
16787 * server.h: Ditto.
16788 * thread-db.c: Ditto.
16789 * tracepoint.c: Ditto.
16790 * utils.c: Ditto.
16791 * win32-low.h: Ditto.
16792
44944448
JB
167932011-01-05 Joel Brobecker <brobecker@adacore.com>
16794
16795 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16796 update.
16797
71ce852c
JB
167982011-01-01 Joel Brobecker <brobecker@adacore.com>
16799
16800 * server.c (gdbserver_version): Update copyright year in version
16801 output.
16802 * gdbreplay.c (gdbreplay_version): Ditto.
16803
eb826dc6
MF
168042010-12-29 Jie Zhang <jie.zhang@analog.com>
16805
16806 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16807 * linux-bfin-low.c: New file.
16808 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16809 PT_DATA_ADDR for BFIN targets.
16810 * Makefile.in (SFILES): Add linux-bfin-low.c.
16811 (clean): Remove reg-bfin.c.
16812 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16813 * README: Mention supported Blackfin targets.
16814
39ab222a
MF
168152010-12-23 Mike Frysinger <vapier@gentoo.org>
16816
16817 * .gitignore: New file.
16818
a1f2ce7d
MF
168192010-11-16 Mike Frysinger <vapier@gentoo.org>
16820
16821 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16822
f474844c
JZ
168232010-10-22 Jie Zhang <jie@codesourcery.com>
16824
16825 * Makefile.in: Add FLAGS_TO_PASS variable.
16826 (install): Remove dependency of install-only and recursively
16827 invoke make for install-only.
16828
f1048712
DE
168292010-10-04 Doug Evans <dje@google.com>
16830
16831 * Makefile.in (uninstall): Use $(DESTDIR).
16832
b53a1623
PA
168332010-09-24 Pedro Alves <pedro@codesourcery.com>
16834
e6ee044d
PA
16835 PR gdb/11842
16836
b53a1623
PA
16837 * linux-x86-low.c (compat_siginfo_from_siginfo)
16838 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16839 si_code is < 0. Check for si_code == SI_TIMER before checking for
16840 si_code < 0.
16841
fa1bd1e4
JB
168422010-09-13 Joel Brobecker <brobecker@adacore.com>
16843
16844 * lynx-i386-low.c: New file.
16845 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16846
47fac8f8
JB
168472010-09-13 Joel Brobecker <brobecker@adacore.com>
16848
16849 * lynx-low.c (ptrace_request_to_str): Remove handling for
16850 request values that have been removed in LynxOS 5.x.
16851
1adfc54d
JB
168522010-09-13 Joel Brobecker <brobecker@adacore.com>
16853
16854 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16855 <ptrace.h>
16856
c2a66c29
NS
168572010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16858
16859 * configure.ac: Add --enable-inprocess-agent option.
16860 * configure: Rebuilt.
16861
32fcada3
YQ
168622010-09-06 Yao Qi <yao@codesourcery.com>
16863
16864 * linux-low.c (linux_kill): Remove unused variable.
16865 (linux_stabilize_threads): Likewise.
16866 * server.c (start_inferior): Likewise.
16867 (queue_stop_reply_callback): Likewise.
16868 * tracepoint.c (do_action_at_tracepoint): Likewise.
16869
0cccb683
YQ
168702010-09-06 Yao Qi <yao@codesourcery.com>
16871
16872 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16873 on return.
16874
423ec54c
JK
168752010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16876
16877 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16878
12ac6819
PA
168792010-09-06 Pedro Alves <pedro@codesourcery.com>
16880
16881 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16882 "$(IPA_DEPFILES)".
16883
8ed54b31
JB
168842010-09-01 Joel Brobecker <brobecker@adacore.com>
16885
16886 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16887 gdbserver/lynx-ppc-low.c: New files.
16888 * Makefile.in (lynx_low_h): New variable.
16889 (lynx-low.o, lynx-ppc-low.o): New rules.
16890 * configure.ac: On LynxOS, link with -lnetinet.
16891 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16892 * configure: regenerate.
16893
bb0116a4
JB
168942010-09-01 Joel Brobecker <brobecker@adacore.com>
16895
16896 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16897 * configure.ac: Add check for vasprintf and vsnprintf.
16898 * configure, config.in: Regenerate.
16899 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16900
a778ab81 169012010-09-01 Joel Brobecker <brobecker@adacore.com>
16902
16903 * gdbreplay.c: Move include of alloca.h up, next to include of
16904 malloc.h.
16905 * server.h: Add include of malloc.h.
16906 * mem-break.c: Remove include of malloc.h.
16907 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16908
8b034a19 169092010-09-01 Joel Brobecker <brobecker@adacore.com>
16910
16911 * Makefile.in (memmem.o): Build with -Wno-error.
16912
169132010-09-01 Joel Brobecker <brobecker@adacore.com>
16914
16915 * utils.c (xsnprintf): Make non-static.
16916 * server.h: Add xsnprintf declaration.
16917 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16918 replace calls to snprintf by calls to xsnprintf throughout.
16919
169202010-09-01 Joel Brobecker <brobecker@adacore.com>
16921
16922 * configure.ac: Add configure check for alloca.
16923 * configure, config.in: Regenerate.
16924 * server.h: Include alloca.h if it exists.
16925 * gdbreplay.c: Include alloca.h if it exists.
16926
1a981360
PA
169272010-08-28 Pedro Alves <pedro@codesourcery.com>
16928
16929 * linux-low.c (__SIGRTMIN): Define if not already defined.
16930 (linux_create_inferior): Check for __ANDROID__ rather than
16931 __SIGRTMIN.
16932 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16933 are already deferred.
16934 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16935 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16936 stopped and already has a pending signal to report.
16937 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16938 a pending signal to report or is moving out of a jump pad.
16939 (linux_init_signals): Check for __ANDROID__ rather than
16940 __SIGRTMIN.
16941
b4d51a55
PA
169422010-08-28 Pedro Alves <pedro@codesourcery.com>
16943
16944 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16945 debug_threads check. Avoid a linear search when not doing debug
16946 output.
16947
ec48365d
PA
169482010-08-27 Pedro Alves <pedro@codesourcery.com>
16949
16950 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16951 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16952 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16953 (process_event): Change local fd's type to gdb_fildes_t.
16954 (create_file_handler): Adjust prototype.
16955 (delete_file_handler): Adjust prototype.
16956 (handle_file_event): Adjust prototype. Use pfildes.
16957 (create_file_event): Adjsut prototype.
16958 * remote-utils.c (remote_desc, listen_desc): Change type to
16959 gdb_fildes_t.
16960 * server.h: New gdb_fildes_t typedef.
16961 [USE_WIN32API]: Include winsock2.h.
16962 (delete_file_handler, add_file_handler): Adjust prototypes.
16963 (pfildes): Declare.
16964 * utils.c (pfildes): New.
16965
854d88f0
PA
169662010-08-27 Pedro Alves <pedro@codesourcery.com>
16967
16968 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16969 * configure: Regenerate.
16970
0146f85b
PA
169712010-08-27 Pedro Alves <pedro@codesourcery.com>
16972
16973 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16974 (linux_done_accessing_memory): ... this.
16975 (linux_target_ops): Adjust.
16976 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16977 * nto-low.c (nto_target_ops): Adjust comment.
16978 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16979 * spu-low.c (spu_target_ops): Adjust comment.
16980 * target.h (target_ops): Rename unprepare_to_access_memory field
16981 to done_accessing_memory.
16982 (unprepare_to_access_memory): Rename to ...
16983 (done_accessing_memory): ... this.
16984
90d74c30
PA
169852010-08-26 Pedro Alves <pedro@codesourcery.com>
16986
16987 * linux-low.c (linux_prepare_to_access_memory): New.
16988 (linux_unprepare_to_access_memory): New.
16989 (linux_target_ops): Install them.
16990 * server.c (read_memory): Rename to ...
16991 (gdb_read_memory): ... this. Use
16992 prepare_to_access_memory/prepare_to_access_memory.
16993 (write_memory): Rename to ...
16994 (gdb_write_memory): ... this. Use
16995 prepare_to_access_memory/prepare_to_access_memory.
16996 (handle_search_memory_1): Adjust.
16997 (process_serial_event): Adjust.
16998 * target.h (struct target_ops): New fields
16999 prepare_to_access_memory and unprepare_to_access_memory.
17000 (prepare_to_access_memory, unprepare_to_access_memory): New.
17001 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17002 prepare_to_access_memory/prepare_to_access_memory.
17003 * nto-low.c (nto_target_ops): Adjust.
17004 * spu-low.c (spu_target_ops): Adjust.
17005 * win32-low.c (win32_target_ops): Adjust.
17006
fd467969
PA
170072010-08-26 Pedro Alves <pedro@codesourcery.com>
17008
17009 * Makefile.in (WARN_CFLAGS): Get it from configure.
17010 (WERROR_CFLAGS): New.
17011 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17012 * configure.ac: Introduce --enable-werror, which adds -Werror to
17013 the compiler command line. Enabled by default. Disable with
17014 --disable-werror. Add -Wdeclaration-after-statement
17015 Wpointer-arith and -Wformat-nonliteral to warning flags.
17016 * configure: Regenerate.
17017
331e2f5f
PA
170182010-08-26 Pedro Alves <pedro@codesourcery.com>
17019
17020 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17021
e581f2b4
PA
170222010-08-26 Pedro Alves <pedro@codesourcery.com>
17023
17024 * gdbreplay.c (remote_error): New.
17025 (gdbchar): New.
17026 (expect): Use gdbchar. Check for error reading from GDB.
17027 Clarify sync error output.
17028 (play): Check for errors writing to GDB.
17029 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17030 * remote-utils.c (getpkt): Check for errors writing to the remote
17031 descriptor.
17032
3c11dd79
PA
170332010-08-25 Pedro Alves <pedro@codesourcery.com>
17034
17035 * linux-low.c (linux_wait_1): Move non-debugging code out of
17036 `debug_threads' control.
17037
d20a8ad9
PA
170382010-08-25 Pedro Alves <pedro@codesourcery.com>
17039
17040 * linux-low.c (linux_wait_1): Don't set last_status here.
17041 * server.c (push_event, queue_stop_reply_callback): Assert we're
17042 not pushing a TARGET_WAITKIND_IGNORE event.
17043 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17044 (myresume, handle_target_event): Set the thread's last_resume_kind
17045 and last_status from the target returned status.
17046
964e4306
PA
170472010-08-25 Pedro Alves <pedro@codesourcery.com>
17048
17049 PR threads/10729
17050
17051 * linux-x86-low.c (update_debug_registers_callback): New.
17052 (i386_dr_low_set_addr): Use it.
17053 (i386_dr_low_get_addr): New.
17054 (i386_dr_low_set_control): Use update_debug_registers_callback.
17055 (i386_dr_low_get_control): New.
17056 (i386_dr_low_get_status): Adjust.
17057 * linux-low.c (linux_stop_lwp): New.
17058 * linux-low.h (linux_stop_lwp): Declare.
17059
17060 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17061 argument instead of a i386_debug_reg_state.
17062 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17063 a i386_debug_reg_state.
17064 (i386_insert_aligned_watchpoint): Adjust.
17065 (i386_remove_aligned_watchpoint): Adjust.
17066 (i386_low_stopped_data_address): Read the debug registers from the
17067 inferior instead of from the mirrors.
17068 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17069 (i386_dr_low_get_addr): Declare.
17070 (i386_dr_low_get_control): Declare.
17071 (i386_dr_low_get_status): Change prototype.
17072
17073 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17074 (i386_dr_low_get_addr): New.
17075 (i386_dr_low_get_control): New.
17076 (i386_dr_low_get_status): Adjust prototype. Return
17077 dr_status_mirror.
17078 (i386_initial_stuff): Clear dr_status_mirror and
17079 dr_control_mirror.
17080 (i386_get_thread_context): Adjust.
17081 (i386_set_thread_context): Adjust.
17082 (i386_thread_added): Adjust.
17083
5f21a75b
PA
170842010-08-24 Pedro Alves <pedro@codesourcery.com>
17085
17086 * linux-low.h (linux_thread_area): Delete declaration.
17087
3e4c1235
TS
170882010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17089
17090 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17091 after its termination.
17092
1971b033
PA
170932010-08-09 Pedro Alves <pedro@codesourcery.com>
17094
17095 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17096 (gdb_wants_all_stopped): Delete.
17097 (linux_wait_1): Don't call them.
17098 * server.c (handle_v_cont): Tag all threads as want-stopped.
17099 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17100 stopped as "client-wants-stopped".
17101
310444ac
PA
171022010-07-31 Pedro Alves <pedro@codesourcery.com>
17103
17104 * Makefile.in (signals_h): New.
17105 (server_h): Depend on it.
17106 (server.o): Don't depend on $(signals_def).
17107 (signals.o): Depend on $(signals_def).
17108
a19cae16
JK
171092010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17110
17111 * Makefile.in (signals_def): New.
17112 (server_h): Append include/gdb/signals.h and signals_def.
17113 (server.o): Append signals_def.
17114
30d50328
JK
171152010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17116
17117 * server.c (handle_target_event): Use target_signal_to_host for
17118 resume_info.sig initialization.
17119 * target.h (struct thread_resume) <sig>: New comment.
17120
5c3216e2
OS
171212010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17122
c6f46ca0
OS
17123 * server.c (handle_query): strcpy() the returned string from paddress()
17124 instead of sprintf().
5c3216e2
OS
17125 * utils.c (paddress): Return phex_nz().
17126
6bd31874
JB
171272010-07-07 Joel Brobecker <brobecker@adacore.com>
17128
17129 * server.c (handle_v_cont): Call mourn_inferior if process
17130 just exited.
17131 (myresume): Likewise.
17132
0fb4aa4b
PA
171332010-07-01 Pedro Alves <pedro@codesourcery.com>
17134
17135 Static tracepoints, and integration with UST.
17136
17137 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17138 * mem-break.c (uninsert_all_breakpoints)
17139 (reinsert_all_breakpoints): New.
17140 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17141 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17142 (gdb_agent_ust_loaded, helper_thread_id)
17143 (gdb_agent_helper_thread_id): New macros.
17144 (struct ipa_sym_addresses): Add addr_ust_loaded,
17145 addr_helper_thread_id, addr_cmd_buf.
17146 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17147 (in_process_agent_loaded_ust): New.
17148 (write_e_ust_not_loaded): New.
17149 (maybe_write_ipa_ust_not_loaded): New.
17150 (struct collect_static_trace_data_action): New.
17151 (enum tracepoint_type) <static_tracepoint>: New.
17152 (struct tracepoint) <handle>: Mention static tracepoints.
17153 (struct static_tracepoint_ctx): New.
17154 (CMD_BUF_SIZE): New.
17155 (add_tracepoint_action): Handle static tracepoint actions.
17156 (unprobe_marker_at): New.
17157 (clear_installed_tracepoints): Handle static tracepoints.
17158 (cmd_qtdp): Handle static tracepoints.
17159 (probe_marker_at): New.
17160 (cmd_qtstart): Handle static tracepoints.
17161 (response_tracepoint): Handle static tracepoints.
17162 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17163 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17164 (get_context_regcache): Handle static tracepoints.
17165 (do_action_at_tracepoint): Handle static tracepoint actions.
17166 (traceframe_find_block_type): Handle static trace data blocks.
17167 (traceframe_read_sdata): New.
17168 (download_tracepoints): Download static tracepoint actions.
17169 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17170 (GDB_PROBE_NAME): New.
17171 (ust_ops): New.
17172 (GET_UST_SYM): New.
17173 (USTF): New.
17174 (dlsym_ust): New.
17175 (ust_marker_to_static_tracepoint): New.
17176 (gdb_probe): New.
17177 (collect_ust_data_at_tracepoint): New.
17178 (gdb_ust_probe): New.
17179 (UNIX_PATH_MAX, SOCK_DIR): New.
17180 (gdb_ust_connect_sync_socket): New.
17181 (resume_thread, stop_thread): New.
17182 (run_inferior_command): New.
17183 (init_named_socket): New.
17184 (gdb_ust_socket_init): New.
17185 (cstr_to_hexstr): New.
17186 (next_st): New.
17187 (first_marker, next_marker): New.
17188 (response_ust_marker): New.
17189 (cmd_qtfstm, cmd_qtsstm): New.
17190 (unprobe_marker_at, probe_marker_at): New.
17191 (cmd_qtstmat, gdb_ust_thread): New.
17192 (gdb_ust_init): New.
17193 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17194 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17195 (ST_REGENTRY): New.
17196 (x86_64_st_collect_regmap): New.
17197 (X86_64_NUM_ST_COLLECT_GREGS): New.
17198 (AMD64_RIP_REGNUM): New.
17199 (supply_static_tracepoint_registers): New.
17200 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17201 (ST_REGENTRY): New.
17202 (i386_st_collect_regmap): New.
17203 (i386_NUM_ST_COLLECT_GREGS): New.
17204 (supply_static_tracepoint_registers): New.
17205 * server.c (handle_query): Handle qXfer:statictrace:read.
17206 <qSupported>: Report support for StaticTracepoints, and
17207 qXfer:statictrace:read features.
17208 * server.h (traceframe_read_sdata)
17209 (supply_static_tracepoint_registers): Declare.
17210 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17211 (unpack_varlen_hex): Include in IPA build.
17212 * Makefile.in (ustlibs, ustinc): New.
17213 (IPA_OBJS): Add remote-utils-ipa.o.
17214 ($(IPA_LIB)): Link -ldl and -lpthread.
17215 (UST_CFLAGS): New.
17216 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17217 * config.in, configure: Regenerate.
17218
9e4344e5
PA
172192010-06-20 Ian Lance Taylor <iant@google.com>
17220 Pedro Alves <pedro@codesourcery.com>
17221
17222 * linux-x86-low.c (always_true): Delete.
17223 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17224 trying to fool the compiler with always_true.
17225
c6beb2cb
PA
172262010-06-20 Pedro Alves <pedro@codesourcery.com>
17227
17228 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17229 conditions in gdbserver.
17230
d2ed6730
UW
172312010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17232
17233 * spu-low.c (spu_read_memory): Wrap around local store limit.
17234 (spu_write_memory): Likewise.
17235
4e29fb54
PA
172362010-06-15 Pedro Alves <pedro@codesourcery.com>
17237
17238 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17239 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17240 LONGEST uses.
17241 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17242 uses.
17243 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17244 uses with LONGEST uses.
17245
6a271cae
PA
172462010-06-14 Stan Shebs <stan@codesourcery.com>
17247 Pedro Alves <pedro@codesourcery.com>
17248
17249 Bytecode compiler.
17250
17251 * linux-x86-low.c: Include limits.h.
17252 (add_insns): New.
17253 (always_true): New.
17254 (EMIT_ASM): New.
17255 (EMIT_ASM32): New.
17256 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17257 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17258 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17259 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17260 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17261 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17262 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17263 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17264 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17265 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17266 (amd64_emit_void_call_2): New.
17267 (amd64_emit_ops): New.
17268 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17269 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17270 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17271 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17272 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17273 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17274 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17275 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17276 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17277 (i386_emit_stack_adjust, i386_emit_int_call_1)
17278 (i386_emit_void_call_2): New.
17279 (i386_emit_ops): New.
17280 (x86_emit_ops): New.
17281 (the_low_target): Install x86_emit_ops.
17282 * server.h (struct emit_ops): New.
17283 (get_raw_reg_func_addr): Declare.
17284 (current_insn_ptr, emit_error): Declare.
17285 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17286 (set_trace_state_variable_value): New defines.
17287 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17288 addr_get_trace_state_variable_value and
17289 addr_set_trace_state_variable_value.
17290 (symbol_list): New fields for get_raw_reg,
17291 get_trace_state_variable_value and set_trace_state_variable_value.
17292 (condfn): New typedef.
17293 (struct tracepoint): New field `compiled_cond'.
17294 (do_action_at_tracepoint): Clear compiled_cond.
17295 (get_trace_state_variable_value, set_trace_state_variable_value):
17296 Export in the IPA.
17297 (condition_true_at_tracepoint): If there's a compiled condition,
17298 run that.
17299 (current_insn_ptr, emit_error): New globals.
17300 (struct bytecode_address): New.
17301 (get_raw_reg_func_addr): New.
17302 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17303 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17304 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17305 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17306 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17307 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17308 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17309 (compile_tracepoint_condition, compile_bytecodes): New.
17310 * target.h (emit_ops): Forward declare.
17311 (struct target_ops): New field emit_ops.
17312 (target_emit_ops): New.
17313 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17314 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17315 * linux-low.c (linux_emit_ops): New.
17316 (linux_target_ops): Install it.
17317 * linux-low.h (struct linux_target_ops): New field emit_ops.
17318
92b72907
UW
173192010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17320
17321 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17322 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17323
fa593d66
PA
173242010-06-01 Pedro Alves <pedro@codesourcery.com>
17325 Stan Shebs <stan@codesourcery.com>
17326
17327 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17328 (all): Depend on $(extra_libraries).
17329 (install-only): Install the IPA.
17330 (IPA_OBJS, IPA_LIB): New.
17331 (clean): Remove the IPA lib.
17332 (IPAGENT_CFLAGS): New.
17333 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17334 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17335 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17336 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17337 * configure.ac: Check for atomic builtins support in the compiler.
17338 (IPA_DEPFILES, extra_libraries): Define.
17339 * configure.srv (ipa_obj): Add description.
17340 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17341 (i[34567]86-*-linux*): Set ipa_obj.
17342 (x86_64-*-linux*): Set ipa_obj.
17343 * linux-low.c (stabilizing_threads): New.
17344 (supports_fast_tracepoints): New.
17345 (linux_detach): Stabilize threads before detaching.
17346 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17347 the lwp is either not stabilizing, or is moving out of a jump pad.
17348 (linux_fast_tracepoint_collecting): New.
17349 (maybe_move_out_of_jump_pad): New.
17350 (enqueue_one_deferred_signal): New.
17351 (dequeue_one_deferred_signal): New.
17352 (linux_wait_for_event_1): If moving out of a jump pad, defer
17353 pending signals to later.
17354 (linux_stabilize_threads): New.
17355 (linux_wait_1): Check if threads need moving out of jump pads, and
17356 do it if so.
17357 (stuck_in_jump_pad_callback): New.
17358 (move_out_of_jump_pad_callback): New.
17359 (lwp_running): New.
17360 (linux_resume_one_lwp): Handle moving out of jump pads.
17361 (linux_set_resume_request): Dequeue deferred signals.
17362 (need_step_over_p): Also step over fast tracepoint jumps.
17363 (start_step_over): Also uninsert fast tracepoint jumps.
17364 (finish_step_over): Also reinsert fast tracepoint jumps.
17365 (linux_install_fast_tracepoint_jump): New.
17366 (linux_target_ops): Install linux_stabilize_threads and
17367 linux_install_fast_tracepoint_jump_pad.
17368 * linux-low.h (linux_target_ops) <get_thread_area,
17369 install_fast_tracepoint_jump_pad>: New fields.
17370 (struct lwp_info) <collecting_fast_tracepoint,
17371 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17372 (linux_get_thread_area): Declare.
17373 * linux-x86-low.c (jump_insn): New.
17374 (x86_get_thread_area): New.
17375 (append_insns): New.
17376 (push_opcode): New.
17377 (amd64_install_fast_tracepoint_jump_pad): New.
17378 (i386_install_fast_tracepoint_jump_pad): New.
17379 (x86_install_fast_tracepoint_jump_pad): New.
17380 (the_low_target): Install x86_get_thread_area and
17381 x86_install_fast_tracepoint_jump_pad.
17382 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17383 (struct fast_tracepoint_jump): New.
17384 (fast_tracepoint_jump_insn): New.
17385 (fast_tracepoint_jump_shadow): New.
17386 (find_fast_tracepoint_jump_at): New.
17387 (fast_tracepoint_jump_here): New.
17388 (delete_fast_tracepoint_jump): New.
17389 (set_fast_tracepoint_jump): New.
17390 (uninsert_fast_tracepoint_jumps_at): New.
17391 (reinsert_fast_tracepoint_jumps_at): New.
17392 (set_breakpoint_at): Use write_inferior_memory.
17393 (uninsert_raw_breakpoint): Use write_inferior_memory.
17394 (check_mem_read): Mask out fast tracepoint jumps.
17395 (check_mem_write): Mask out fast tracepoint jumps.
17396 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17397 (set_fast_tracepoint_jump): Declare.
17398 (delete_fast_tracepoint_jump)
17399 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17400 (reinsert_fast_tracepoint_jumps_at): Declare.
17401 * regcache.c: Don't compile many functions when building the
17402 in-process agent library.
17403 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17404 the register buffer in the heap.
17405 (free_register_cache): If the register buffer isn't owned by the
17406 regcache, don't free it.
17407 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17408 pre-existing register caches.
17409 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17410 type.
17411 (convert_ascii_to_int): : Constify `from' parameter type.
17412 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17413 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17414 the needed buffer in-place.
17415 (relocate_instruction): New.
17416 * server.c (handle_query) <qSymbols>: If the target supports
17417 tracepoints, give it a chance of looking up symbols. Report
17418 support for fast tracepoints.
17419 (handle_status): Stabilize threads.
17420 (process_serial_event): Adjust.
17421 * server.h (struct fast_tracepoint_jump): Forward declare.
17422 (struct process_info) <fast_tracepoint_jumps>: New field.
17423 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17424 (decode_X_packet, decode_M_packet): Adjust.
17425 (relocate_instruction): Declare.
17426 (in_process_agent_loaded): Declare.
17427 (tracepoint_look_up_symbols): Declare.
17428 (struct fast_tpoint_collect_status): Declare.
17429 (fast_tracepoint_collecting): Declare.
17430 (force_unlock_trace_buffer): Declare.
17431 (handle_tracepoint_bkpts): Declare.
17432 (initialize_low_tracepoint)
17433 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17434 * target.h (struct target_ops) <stabilize_threads,
17435 install_fast_tracepoint_jump_pad>: New fields.
17436 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17437 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17438 [HAVE_STDINT_H]: Include stdint.h.
17439 (trace_debug_1): Rename to ...
17440 (trace_vdebug): ... this.
17441 (trace_debug): Rename to ...
17442 (trace_debug_1): ... this. Add `level' parameter.
17443 (trace_debug): New.
17444 (ATTR_USED, ATTR_NOINLINE): New.
17445 (IP_AGENT_EXPORT): New.
17446 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17447 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17448 (about_to_request_buffer_space, trace_buffer_is_full)
17449 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17450 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17451 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17452 (traceframe_write_count, traceframes_created)
17453 (trace_state_variables)
17454 New renaming defines.
17455 (struct ipa_sym_addresses): New.
17456 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17457 (symbol_list): New.
17458 (ipa_sym_addrs): New.
17459 (all_tracepoint_symbols_looked_up): New.
17460 (in_process_agent_loaded): New.
17461 (write_e_ipa_not_loaded): New.
17462 (maybe_write_ipa_not_loaded): New.
17463 (tracepoint_look_up_symbols): New.
17464 (debug_threads) [IN_PROCESS_AGENT]: New.
17465 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17466 (UNKNOWN_SIDE_EFFECTS): New.
17467 (stop_tracing): New.
17468 (flush_trace_buffer): New.
17469 (stop_tracing_bkpt): New.
17470 (flush_trace_buffer_bkpt): New.
17471 (read_inferior_integer): New.
17472 (read_inferior_uinteger): New.
17473 (read_inferior_data_pointer): New.
17474 (write_inferior_data_pointer): New.
17475 (write_inferior_integer): New.
17476 (write_inferior_uinteger): New.
17477 (struct collect_static_trace_data_action): Delete.
17478 (enum tracepoint_type): New.
17479 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17480 <actions_str, step_actions, step_actions_str>: Only include in
17481 GDBserver.
fa593d66
PA
17482 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17483 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17484 (tracepoints): Use IP_AGENT_EXPORT.
17485 (last_tracepoint): Don't include in the IPA.
17486 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17487 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17488 (alloced_trace_state_variables): New.
17489 (trace_state_variables): Use IP_AGENT_EXPORT.
17490 (traceframe_t): Delete unused variable.
17491 (circular_trace_buffer): Don't include in the IPA.
17492 (trace_buffer_start): Delete.
17493 (struct trace_buffer_control): New.
17494 (trace_buffer_free): Delete.
17495 (struct ipa_trace_buffer_control): New.
17496 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17497 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17498 New.
17499 (trace_buffer_ctrl): New.
17500 (TRACE_BUFFER_CTRL_CURR): New.
17501 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17502 Reimplement as macros.
17503 (trace_buffer_wrap): Delete.
17504 (traceframe_write_count, traceframe_read_count)
17505 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17506 (struct tracepoint_hit_ctx) <type>: New field.
17507 (struct fast_tracepoint_ctx): New.
17508 (memory_barrier): New.
17509 (cmpxchg): New.
17510 (record_tracepoint_error): Update atomically in the IPA.
17511 (clear_inferior_trace_buffer): New.
17512 (about_to_request_buffer_space): New.
17513 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17514 updating the same buffer.
17515 (add_tracepoint): Default the tracepoint's type to trap
17516 tracepoint, and orig_size to -1.
17517 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17518 internal variables.
17519 (create_trace_state_variable): New parameter `gdb'. Handle it.
17520 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17521 (cmd_qtdp): Handle fast tracepoints.
17522 (cmd_qtdv): Adjust.
17523 (max_jump_pad_size): New.
17524 (gdb_jump_pad_head): New.
17525 (get_jump_space_head): New.
17526 (claim_jump_space): New.
17527 (sort_tracepoints): New.
17528 (MAX_JUMP_SIZE): New.
17529 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17530 IPA.
17531 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17532 support. Upload fast traceframes, and delete internal IPA
17533 breakpoints.
17534 (stop_tracing_handler): New.
17535 (flush_trace_buffer_handler): New.
17536 (cmd_qtstop): Upload fast tracepoints.
17537 (response_tracepoint): Handle fast tracepoints.
17538 (tracepoint_finished_step): Upload fast traceframes. Set the
17539 tracepoint hit context's tracepoint type.
17540 (handle_tracepoint_bkpts): New.
17541 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17542 type. Add comment about fast tracepoints.
17543 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17544 non-existing action_str field.
17545 (get_context_regcache): Handle fast tracepoints.
17546 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17547 to the regcache.
17548 (fast_tracepoint_from_jump_pad_address): New.
17549 (fast_tracepoint_from_ipa_tpoint_address): New.
17550 (collecting_t): New.
17551 (force_unlock_trace_buffer): New.
17552 (fast_tracepoint_collecting): New.
17553 (collecting): New.
17554 (gdb_collect): New.
17555 (write_inferior_data_ptr): New.
17556 (target_tp_heap): New.
17557 (target_malloc): New.
17558 (download_agent_expr): New.
17559 (UALIGN): New.
17560 (download_tracepoints): New.
17561 (download_trace_state_variables): New.
17562 (upload_fast_traceframes): New.
17563 (IPA_FIRST_TRACEFRAME): New.
17564 (IPA_NEXT_TRACEFRAME_1): New.
17565 (IPA_NEXT_TRACEFRAME): New.
17566 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17567 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17568 (gdb_jump_pad_buffer_end): New.
17569 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17570 (initialize_tracepoint): Adjust.
17571 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17572 buffer. Initialize the low module.
17573 * utils.c (PREFIX, TOOLNAME): New.
17574 (malloc_failure): Use PREFIX.
17575 (error): In the IPA, an error causes an exit.
17576 (fatal, warning): Use PREFIX.
17577 (internal_error): Use TOOLNAME.
17578 (NUMCELLS): Increase to 10.
17579 * configure, config.in: Regenerate.
17580
d149dd1d
PA
175812010-06-01 Pedro Alves <pedro@codesourcery.com>
17582
17583 * server.c (handle_query) <qSupported>: Do two passes over the
17584 qSupported string to avoid nesting strtok.
17585
f6528abd
JK
175862010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17587
17588 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17589 (CDEPS): New.
17590 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17591 -Wl,--dynamic-list.
17592 * configure: Regenerate.
17593 * proc-service.list: New.
17594
ca2a87a0
JK
175952010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17596
17597 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17598 New comment.
17599
363a6e9f
OS
176002010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17601
17602 * gdbreplay.c (remote_open): Check error return from socket() call by
17603 its equality to -1 not by it being negative.
17604 * remote-utils.c (remote_open): Likewise.
17605
d23b6cb1
PA
176062010-05-23 Pedro Alves <pedro@codesourcery.com>
17607
17608 * config.h: Regenerate.
17609
28d3cf85
MK
176102010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17611
17612 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17613 doesn't provide PTRACE_GET_THREAD_AREA.
17614
fea36a59
MK
176152010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17616
17617 * linux-m68k-low.c: Include <asm/ptrace.h>
17618 (ps_get_thread_area): Implement.
17619
24b066ba
DE
176202010-05-03 Doug Evans <dje@google.com>
17621
17622 * event-loop.c (struct callback_event): New struct.
17623 (callback_list): New global.
17624 (append_callback_event, delete_callback_event): New functions.
17625 (process_callback): New function.
17626 (start_event_loop): Call it.
17627 * remote-utils.c (NOT_SCHEDULED): Define.
17628 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17629 moved out of readchar.
17630 (readchar): Rewrite. Call reschedule before returning.
17631 (reset_readchar): New function.
17632 (remote_close): Call it.
17633 (process_remaining, reschedule): New functions.
17634 * server.h (callback_handler_func): New typedef.
17635 (append_callback_event, delete_callback_event): Declare.
17636
9836d6ea
PA
176372010-05-03 Pedro Alves <pedro@codesourcery.com>
17638
17639 * proc-service.c (ps_pglobal_lookup): Use
17640 thread_db_look_up_one_symbol.
17641 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17642 parameter. Use it instead of all_symbols_looked_up.
17643 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17644 field.
17645 (all_symbols_looked_up): Don't declare.
17646 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17647 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17648 field.
17649 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17650 Set all_symbols_looked_up here.
17651 (thread_db_look_up_one_symbol): New.
17652 (thread_db_get_tls_address): Adjust.
17653 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17654 thread_db object on the heap, and tentatively set it in the
17655 process structure.
17656 (thread_db_init): Don't set all_symbols_looked_up here.
17657 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17658
7984d532
PA
176592010-05-03 Pedro Alves <pedro@codesourcery.com>
17660
17661 * linux-low.c (linux_kill, linux_detach): Adjust.
17662 (status_pending_p_callback): Remove redundant statement. Check
17663 for !TARGET_WAITIKIND_IGNORE, instead of
17664 TARGET_WAITKIND_STOPPED.
17665 (handle_tracepoints): Make sure LWP is locked. Adjust.
17666 (linux_wait_for_event_1): Adjust.
17667 (linux_cancel_breakpoints): New.
17668 (unsuspend_one_lwp): New.
17669 (unsuspend_all_lwps): New.
17670 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17671 (send_sigstop_callback): Change return type to int, add new
17672 `except' parameter and handle it.
17673 (suspend_and_send_sigstop_callback): New.
17674 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17675 pass them down. If SUSPEND, also increment the lwp's suspend
17676 count.
17677 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17678 (need_step_over_p): Don't consider suspended LWPs.
17679 (start_step_over): Adjust.
17680 (proceed_one_lwp): Change return type to int, add new `except'
17681 parameter and handle it.
17682 (unsuspend_and_proceed_one_lwp): New.
17683 (proceed_all_lwps): Use find_inferior instead of
17684 for_each_inferior.
17685 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17686 also decrement the suspend count of LWPs. Pass `except' down,
17687 instead of hacking its suspend count.
17688 (linux_pause_all): Add `freeze' parameter. Adjust.
17689 (linux_unpause_all): New.
17690 (linux_target_ops): Install linux_unpause_all.
17691 * server.c (handle_status): Adjust.
17692 * target.h (struct target_ops): New fields `unpause_all' and
17693 `cancel_breakpoints'. Add new parameter to `pause_all'.
17694 (pause_all): Add new `freeze' parameter.
17695 (unpause_all): New.
17696 (cancel_breakpoints): New.
17697 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17698 cancel breakpoints.
17699 (cmd_qtstart): Pause threads.
17700 (stop_tracing): Pause threads, and cancel breakpoints.
17701 * win32-low.c (win32_target_ops): Adjust.
17702
e471f25b
PA
177032010-05-03 Pedro Alves <pedro@codesourcery.com>
17704
17705 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17706 the inferior right away from here...
17707 (linux_wait_1): ... to here, and adjust to check the thread's
17708 last_resume_kind instead of the lwp's step or stop_expected flags.
17709
1915ef4f
PA
177102010-05-02 Pedro Alves <pedro@codesourcery.com>
17711
17712 * README: Use consistent `GDB' and `GDBserver' spellings.
17713
f9e39928
PA
177142010-05-02 Pedro Alves <pedro@codesourcery.com>
17715
17716 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17717 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17718 (linux_detach_one_lwp): Assume the lwp is stopped.
17719 (any_thread_of): Delete.
17720 (linux_detach): Stop all lwps here. Don't blindly delete all
17721 breakpoints.
17722 (delete_lwp_callback): New.
17723 (linux_mourn): Delete all lwps of the process that is gone.
17724 (linux_wait_1): Don't delete the last lwp of the process here.
17725 * mem-break.h (mark_breakpoints_out): Declare.
17726 * mem-break.c (mark_breakpoints_out): New.
17727 (free_all_breakpoints): Use it.
17728 * server.c (handle_target_event): If the process is gone, mark
17729 breakpoints out.
17730 * thread-db.c (struct thread_db) <create_bp>: New field.
17731 (thread_db_enable_reporting): Fix prototype. Store a thread event
17732 breakpoint reference in the thread_db struct.
17733 (thread_db_load_search): Clear the thread_db object.
17734 (try_thread_db_load_1): Ditto.
17735 (switch_to_process): New.
17736 (disable_thread_event_reporting): Use it.
17737 (remove_thread_event_breakpoints): New.
17738 (thread_db_detach, thread_db_mourn): Use it.
17739
1e7fc18c
PA
177402010-05-01 Pedro Alves <pedro@codesourcery.com>
17741
17742 * linux-low.c (linux_enable_event_reporting): New.
17743 (linux_wait_for_event_1, handle_extended_wait): Use it.
17744
02fc4de7
PA
177452010-04-30 Pedro Alves <pedro@codesourcery.com>
17746
17747 * linux-low.c (linux_kill_one_lwp, linux_kill)
17748 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17749 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17750 SIGSTOP even if the LWP is stopped.
17751 (send_sigstop_callback): New.
17752 (stop_all_lwps): Use send_sigstop_callback instead.
17753 (linux_resume_one_thread): Adjust.
17754 (proceed_one_lwp): Still proceed an LWP that the client has
17755 requested to stop, if we haven't reported it as stopped yet. Make
17756 sure that LWPs the client want stopped, have a pending SIGSTOP.
17757
bc3b5632
DE
177582010-04-26 Doug Evans <dje@google.com>
17759
ae1ada35
DE
17760 * server.c (handle_general_set): Make static.
17761
bc3b5632
DE
17762 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17763 Print received char after testing for error/eof instead of before.
17764 (input_interrupt): Tweak comment.
17765
65730243
DE
177662010-04-23 Doug Evans <dje@google.com>
17767
17768 * server.c (start_inferior): Print inferior argv if --debug.
17769
a8ae7dc0
AR
177702010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17771
17772 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17773 * nto-x86-low.c: Include server.h
17774
1c07cc19
PM
177752010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17776
17777 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17778 be consistent with other sources of this directory.
17779 (init_registers_amd64): Correct name of source file of this function
17780 in the comment.
17781
e0a61e09
PM
177822010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17783
17784 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17785 64-bit executables.
17786
54709339
PM
177872010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17788
17789 * win32-i386-low.c: Add 64-bit support.
17790 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17791 (init_registers_amd64): Declare.
17792 (mappings): Add 64-bit version of array.
17793 (init_windows_x86): New function.
17794 (the_low_target): Change init_arch field to init_windows_x86.
17795
e8f0053d
PM
177962010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17797
17798 * win32-low.c: Adapt to support also 64-bit architecture.
17799 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17800 (get_image_name): Use SIZE_T type for local variable `done'.
17801 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17802 (toolhelp_get_dll_name): Idem.
17803 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17804 Use uintptr_t typecast to avoid warning.
17805 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17806 (handle_exception): Use phex_nz to avoid warning.
17807 (win32_wait): Remove unused local variable `process'.
17808
c481e77e
PM
178092010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17810
17811 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17812 `amd64-avx.o'.
17813
12ea4b69
PM
178142010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17815
17816 * configure.ac: Use `ws2_32' library for srv_mingw.
17817 * configure: Regenerate.
17818 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17819 * remote-utils.c: Likewise.
17820
f6d1620c
L
178212010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17822
17823 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17824 if __x86_64__ is defined.
17825
8e642873
PM
178262010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17827
17828 * configure: Regenerate.
17829
711e434b
PM
178302010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17831
17832 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17833 * target.h (target_ops): New get_tib_address field.
17834 * win32-low.h (win32_thread_info): Add thread_local_base field.
17835 * win32-low.c (child_add_thread): Add tlb argument.
17836 Set thread_local_base field to TLB.
17837 (get_child_debug_event): Adapt to child_add_thread change.
17838 (win32_get_tib_address): New function.
17839 (win32_target_ops): Set get_tib_address field to
17840 win32_get_tib_address.
17841 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17842
505106cd
PA
178432010-04-12 Pedro Alves <pedro@codesourcery.com>
17844
505106cd
PA
17845 * linux-low.c (linux_mourn): Also remove the process.
17846 * server.c (handle_target_event): Don't remove the process here.
17847 * nto-low.c (nto_mourn): New.
17848 (nto_target_ops): Install it.
17849 * spu-low.c (spu_mourn): New.
17850 (spu_target_ops): Install it.
17851 * win32-low.c (win32_mourn): New.
17852 (win32_target_ops): Install it.
17853
e8470a06
PA
178542010-04-12 Pedro Alves <pedro@codesourcery.com>
17855
17856 * server.h (buffer_xml_printf): Remove redundant `;'.
17857
45ba0d02
PA
178582010-04-12 Pedro Alves <pedro@codesourcery.com>
17859
17860 * regcache.c (set_register_cache): Invalidate regcaches before
17861 changing the register cache layout.
17862 (regcache_invalidate_one): Allow a NULL regcache.
17863 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17864 regcaches before changing the register cache layout or the target
17865 regsets.
17866
59e04013
L
178672010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17868
17869 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17870 variable warning on Linux/x86-64.
17871
8336d594
PA
178722010-04-11 Pedro Alves <pedro@codesourcery.com>
17873
17874 GDBserver disconnected tracing support.
17875
17876 * linux-low.c (linux_remove_process): Delete.
17877 (add_lwp): Don't set last_resume_kind here.
17878 (linux_kill): Use `mourn'.
17879 (linux_detach): Use `thread_db_detach', and `mourn'.
17880 (linux_mourn): New.
17881 (linux_attach_lwp_1): Adjust comment.
17882 (linux_attach): last_resume_kind moved the thread_info; adjust.
17883 (status_pending_p_callback): Adjust.
17884 (linux_wait_for_event_1): Adjust.
17885 (count_events_callback, select_singlestep_lwp_callback)
17886 (select_event_lwp_callback, cancel_breakpoints_callback)
17887 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17888 (proceed_one_lwp): Adjust.
17889 (linux_async): Add debug output.
17890 (linux_thread_stopped): New.
17891 (linux_pause_all): New.
17892 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17893 linux_pause_all.
17894 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17895 (thread_db_free): Delete declaration.
17896 (thread_db_detach, thread_db_mourn): Declare.
17897 * thread-db.c (thread_db_init): Use thread_db_mourn.
17898 (thread_db_free): Delete, split in two.
17899 (disable_thread_event_reporting): New.
17900 (thread_db_detach): New.
17901 (thread_db_mourn): New.
17902
17903 * server.h (struct thread_info) <last_resume_kind>: New field.
17904 <attached>: Add comment.
17905 <gdb_detached>: New field.
17906 (handler_func): Change return type to int.
17907 (handle_serial_event, handle_target_event): Ditto.
17908 (gdb_connected): Declare.
17909 (tracing): Delete.
17910 (disconnected_tracing): Declare.
17911 (stop_tracing): Declare.
17912
17913 * server.c (handle_query) <qSupported>: Report support for
17914 disconnected tracing.
17915 (queue_stop_reply_callback): Account for running threads.
17916 (gdb_wants_thread_stopped): New.
17917 (gdb_wants_all_threads_stopped): New.
17918 (gdb_reattached_process): New.
17919 (handle_status): Clear the `gdb_detached' flag of all processes.
17920 In all-stop, stop all threads.
17921 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17922 (process_serial_event): If the remote connection breaks, or if an
17923 exit was forced with "monitor exit", force an event loop exit.
17924 Handle disconnected tracing on detach.
17925 (handle_serial_event): Adjust.
17926 (handle_target_event): If GDB isn't connected, forward events back
17927 to the inferior, unless the last process exited, in which case,
17928 exit gdbserver. Adjust interface.
17929
17930 * remote-utils.c (remote_open): Don't block in accept. Instead
17931 register an event loop source on the listen socket file
17932 descriptor. Refactor bits into ...
17933 (listen_desc): ... this new global.
17934 (gdb_connected): ... this new function.
17935 (enable_async_notification): ... this new function.
17936 (handle_accept_event): ... this new function.
17937 (remote_close): Clear remote_desc.
17938
17939 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17940
17941 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17942 New fields.
17943 (mourn_inferior): Define.
17944 (target_process_qsupported): Avoid the dangling else problem.
17945 (thread_stopped): Define.
17946 (pause_all): Define.
17947 (target_waitstatus_to_string): Declare.
17948 * target.c (target_waitstatus_to_string): New.
17949
17950 * tracepoint.c (tracing): Make extern.
17951 (disconnected_tracing): New.
17952 (stop_tracing): Make extern. Handle tracing stops due to GDB
17953 disconnecting.
17954 (cmd_qtdisconnected): New.
17955 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17956 (handle_tracepoint_general_set): Handle QTDisconnected.
17957
17958 * event-loop.c (event_handler_func): Change return type to int.
17959 (process_event): Bail out if the event handler wants the event
17960 loop to stop.
17961 (handle_file_event): Ditto.
17962 (start_event_loop): Bail out if the event handler wants the event
17963 loop to stop.
17964
17965 * nto-low.c (nto_target_ops): Adjust.
17966 * spu-low.c (spu_wait): Don't remove the process here.
17967 (spu_target_ops): Adjust.
17968 * win32-low.c (win32_wait): Don't remove the process here.
17969 (win32_target_ops): Adjust.
17970
5d267c4c
PA
179712010-04-11 Pedro Alves <pedro@codesourcery.com>
17972
17973 * regcache.c (realloc_register_cache): Invalidate inferior's
17974 regcache before recreating it.
17975
623ccd72
PA
179762010-04-09 Pedro Alves <pedro@codesourcery.com>
17977
17978 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17979
219f2f23
PA
179802010-04-09 Stan Shebs <stan@codesourcery.com>
17981 Pedro Alves <pedro@codesourcery.com>
17982
17983 * server.h (LONGEST): New.
17984 (struct thread_info) <while_stepping>: New field.
17985 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17986 Declare.
17987 (initialize_tracepoint, handle_tracepoint_general_set)
17988 (handle_tracepoint_query, tracepoint_finished_step)
17989 (tracepoint_was_hit, release_while_stepping_state_list):
17990 (current_traceframe): Declare.
17991 * server.c (handle_general_set): Handle tracepoint packets.
17992 (read_memory): New.
17993 (write_memory): New.
17994 (handle_search_memory_1): Use read_memory.
17995 (handle_query): Report support for conditional tracepoints, trace
17996 state variables, and tracepoint sources. Handle tracepoint
17997 queries.
17998 (main): Initialize the tracepoints module.
17999 (process_serial_event): Handle traceframe reads/writes.
18000
18001 * linux-low.c (handle_tracepoints): New.
18002 (linux_wait_1): Call it.
18003 (linux_resume_one_lwp): Handle while-stepping.
18004 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18005 (linux_target_ops): Install them.
18006 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18007 New field.
18008 * linux-x86-low.c (x86_supports_tracepoints): New.
18009 (the_low_target). Install it.
18010
18011 * mem-break.h (delete_breakpoint): Declare.
18012 * mem-break.c (delete_breakpoint): Make external.
18013
18014 * target.h (struct target_ops): Add `supports_tracepoints',
18015 `read_pc', and `write_pc' fields.
18016 (target_supports_tracepoints): Define.
18017 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18018 (phex_nz): New.
18019
18020 * regcache.h (struct regcache) <registers_owned>: New field.
18021 (init_register_cache, regcache_cpy): Declare.
18022 (regcache_read_pc, regcache_write_pc): Declare.
18023 (register_cache_size): Declare.
18024 (supply_regblock): Declare.
18025 * regcache.c (init_register_cache): New.
18026 (new_register_cache): Use it.
18027 (regcache_cpy): New.
18028 (register_cache_size): New.
18029 (supply_regblock): New.
18030 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18031
219f2f23
PA
18032 * tracepoint.c: New.
18033
18034 * Makefile.in (OBS): Add tracepoint.o.
18035 (tracepoint.o): New rule.
18036
3a13a53b
L
180372010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18038
18039 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18040 (i386-mmx.o): New.
18041 (i386-mmx.c): Likewise.
18042 (i386-mmx-linux.o): Likewise.
18043 (i386-mmx-linux.c): Likewise.
18044
18045 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18046 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18047 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18048 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18049
18050 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18051 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18052 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18053
1570b33e
L
180542010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18055
18056 * Makefile.in (clean): Updated.
18057 (i386-avx.o): New.
18058 (i386-avx.c): Likewise.
18059 (i386-avx-linux.o): Likewise.
18060 (i386-avx-linux.c): Likewise.
18061 (amd64-avx.o): Likewise.
18062 (amd64-avx.c): Likewise.
18063 (amd64-avx-linux.o): Likewise.
18064 (amd64-avx-linux.c): Likewise.
18065
18066 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18067 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18068 (srv_amd64_regobj): Add amd64-avx.o.
18069 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18070 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18071 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18072 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18073 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18074 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18075 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18076
18077 * i387-fp.c: Include "i386-xstate.h".
18078 (i387_xsave): New.
18079 (i387_cache_to_xsave): Likewise.
18080 (i387_xsave_to_cache): Likewise.
18081 (x86_xcr0): Likewise.
18082
18083 * i387-fp.h (i387_cache_to_xsave): Likewise.
18084 (i387_xsave_to_cache): Likewise.
18085 (x86_xcr0): Likewise.
18086
18087 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18088 * linux-crisv32-low.c (target_regsets): Likewise.
18089 * linux-m68k-low.c (target_regsets): Likewise.
18090 * linux-mips-low.c (target_regsets): Likewise.
18091 * linux-ppc-low.c (target_regsets): Likewise.
18092 * linux-s390-low.c (target_regsets): Likewise.
18093 * linux-sh-low.c (target_regsets): Likewise.
18094 * linux-sparc-low.c (target_regsets): Likewise.
18095 * linux-xtensa-low.c (target_regsets): Likewise.
18096
18097 * linux-low.c: Include <sys/uio.h>.
18098 (regsets_fetch_inferior_registers): Support nt_type.
18099 (regsets_store_inferior_registers): Likewise.
18100 (linux_process_qsupported): New.
18101 (linux_target_ops): Add linux_process_qsupported.
18102
18103 * linux-low.h (regset_info): Add nt_type.
18104 (linux_target_ops): Add process_qsupported.
18105
18106 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18107 and <sys/uio.h>.
18108 (init_registers_i386_avx_linux): New.
18109 (init_registers_amd64_avx_linux): Likewise.
18110 (xmltarget_i386_linux_no_xml): Likewise.
18111 (xmltarget_amd64_linux_no_xml): Likewise.
18112 (PTRACE_GETREGSET): Likewise.
18113 (PTRACE_SETREGSET): Likewise.
18114 (x86_fill_xstateregset): Likewise.
18115 (x86_store_xstateregset): Likewise.
18116 (use_xml): Likewise.
18117 (x86_linux_update_xmltarget): Likewise.
18118 (x86_linux_process_qsupported): Likewise.
18119 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18120 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18121 init_registers_i386_linux here. Call
18122 x86_linux_update_xmltarget.
18123 (the_low_target): Add x86_linux_process_qsupported.
18124
18125 * server.c (handle_query): Call target_process_qsupported.
18126
18127 * target.h (target_ops): Add process_qsupported.
18128 (target_process_qsupported): New.
18129
fc7238bb
PA
181302010-04-03 Pedro Alves <pedro@codesourcery.com>
18131
18132 * inferiors.c (add_thread): Set last_status kind to
18133 TARGET_WAITKIND_IGNORE.
18134 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18135 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18136 (linux_wait_1): Move `thread' local definition to block that uses
18137 it. Don't NULL initialize `event_child'.
18138 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18139 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18140 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18141
bdabb078
PA
181422010-04-01 Pedro Alves <pedro@codesourcery.com>
18143
18144 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18145 an extended waitstatus, or by a watchpoint.
18146 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18147 thread was stepping or has been stopped by a watchpoint.
18148
d3bbe7a0
PA
181492010-04-01 Pedro Alves <pedro@codesourcery.com>
18150
18151 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18152 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18153 of another, then delete the previous, and validate all
18154 breakpoints.
18155 (validate_inserted_breakpoint): New.
18156 (delete_disabled_breakpoints): New.
18157 (validate_breakpoints): New.
18158 (check_mem_read): Validate breakpoints before trusting their
18159 shadow. Delete disabled breakpoints.
18160 (check_mem_write): Validate breakpoints before trusting they
18161 should be inserted. Delete disabled breakpoints.
18162 * mem-break.h (validate_breakpoints):
18163 * server.c (handle_query): Validate breakpoints when we see a
18164 qSymbol query.
18165
8b07ae33
PA
181662010-04-01 Pedro Alves <pedro@codesourcery.com>
18167
18168 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18169 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18170 if we could tell there's a GDB breakpoint at stop_pc.
18171 (need_step_over_p): Don't do a step over if we find a GDB
18172 breakpoint at the resume PC.
18173
18174 * mem-break.c (struct raw_breakpoint): New.
18175 (enum bkpt_type): New type `gdb_breakpoint'.
18176 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18177 fields. New field `raw'.
18178 (find_raw_breakpoint_at): New.
18179 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18180 breakpoint instead.
18181 (set_breakpoint_at): Adjust.
18182 (delete_raw_breakpoint): New.
18183 (release_breakpoint): New.
18184 (delete_breakpoint): Rename to...
18185 (delete_breakpoint_1): ... this. Add proc parameter. Use
18186 release_breakpoint. Return ENOENT.
18187 (delete_breakpoint): Reimplement.
18188 (find_breakpoint_at): Delete.
18189 (find_gdb_breakpoint_at): New.
18190 (delete_breakpoint_at): Delete.
18191 (set_gdb_breakpoint_at): New.
18192 (delete_gdb_breakpoint_at): New.
18193 (gdb_breakpoint_here): New.
18194 (set_reinsert_breakpoint): Use release_breakpoint.
18195 (uninsert_breakpoint): Rename to ...
18196 (uninsert_raw_breakpoint): ... this.
18197 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18198 (reinsert_raw_breakpoint): Change parameter type to
18199 raw_breakpoint.
18200 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18201 instead.
18202 (check_breakpoints): Adjust. Use release_breakpoint.
18203 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18204 (breakpoint_inserted_here): Ditto.
18205 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18206 Don't trust the breakpoint's shadow if it is not inserted.
18207 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18208 (delete_all_breakpoints): Adjust.
18209 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18210 use delete_breakpoint_1.
18211
18212 * mem-break.h (breakpoints_supported): Delete declaration.
18213 (set_gdb_breakpoint_at): Declare.
18214 (gdb_breakpoint_here): Declare.
18215 (delete_breakpoint_at): Delete.
18216 (delete_gdb_breakpoint_at): Declare.
18217
18218 * server.h (struct raw_breakpoint): Forward declare.
18219 (struct process_info): New field `raw_breakpoints'.
18220
18221 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18222 breakpoints.
18223
6bf5e0ba
PA
182242010-03-24 Pedro Alves <pedro@codesourcery.com>
18225
18226 * linux-low.c (status_pending_p_callback): Fix comment.
18227 (linux_wait_for_event_1): Move most of the internal breakpoint
18228 handling from here...
18229 (linux_wait_1): ... to here.
18230 (count_events_callback): New.
18231 (select_singlestep_lwp_callback): New.
18232 (select_event_lwp_callback): New.
18233 (cancel_breakpoints_callback): New.
18234 (select_event_lwp): New.
18235 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18236 priority to all LWPs that have had events that should be reported
18237 to the client. Cancel breakpoints when about to reporting the
18238 event to the client, not while stopping lwps. No longer cancel
18239 finished single-steps here.
18240 (cancel_finished_single_step): Delete.
18241 (cancel_finished_single_steps): Delete.
18242
414a389f
PA
182432010-03-24 Pedro Alves <pedro@codesourcery.com>
18244
18245 * mem-break.c (enum bkpt_type): New.
18246 (struct breakpoint): New field `type'.
18247 (set_breakpoint_at): Change return type to struct breakpoint
18248 pointer. Set type to `other_breakpoint' by default.
18249 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18250 in the breakpoint list.
18251 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18252 (reinsert_breakpoint): Rename to ...
18253 (reinsert_raw_breakpoint): ... this.
18254 (reinsert_breakpoints_at): Adjust.
18255 * mem-break.h (struct breakpoint): Declare.
18256 (set_breakpoint_at): Change return type to struct breakpoint
18257 pointer.
18258
2280c721
PA
182592010-03-24 Pedro Alves <pedro@codesourcery.com>
18260
18261 * server.c (handle_query): Assign, not compare.
18262
d50171e4
PA
182632010-03-24 Pedro Alves <pedro@codesourcery.com>
18264
18265 Teach linux gdbserver to step-over-breakpoints.
18266
18267 * linux-low.c (can_hardware_single_step): New.
18268 (supports_breakpoints): New.
18269 (handle_extended_wait): If stopping threads, read the stop pc of
18270 the new cloned LWP.
18271 (get_pc): New.
18272 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18273 low target doesn't support retrieving the PC.
18274 (add_lwp): Set last_resume_kind to resume_continue.
18275 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18276 (linux_attach): Don't clear stop_expected. Set the lwp's
18277 last_resume_kind to resume_stop.
18278 (linux_detach_one_lwp): Don't check for removed breakpoints.
18279 (check_removed_breakpoint): Delete.
18280 (status_pending_p): Rename to ...
18281 (status_pending_p_callback): ... this. Don't check for removed
18282 breakpoints. Don't consider threads that are stopped from GDB's
18283 perspective.
18284 (linux_wait_for_lwp): Always read the stop_pc here.
18285 (cancel_breakpoint): New.
18286 (step_over_bkpt): New global.
18287 (linux_wait_for_event_1): Implement stepping over breakpoints.
18288 (gdb_wants_lwp_stopped): New.
18289 (gdb_wants_all_stopped): New.
18290 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18291 single-step traps here. Store the thread's last reported target
18292 wait status.
18293 (send_sigstop): Don't clear stop_expected. Always set it,
18294 instead.
18295 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18296 (cancel_finished_single_step): New.
18297 (cancel_finished_single_steps): New.
18298 (wait_for_sigstop): Don't cancel finished single-step traps here.
18299 (linux_resume_one_lwp): Don't check for removed breakpoints.
18300 Don't set `step' on non-hardware step archs.
18301 (linux_set_resume_request): Ignore resume_stop requests if already
18302 stopping or stopped. Set the lwp's last_resume_kind.
18303 (resume_status_pending_p): Don't check for removed breakpoints.
18304 (need_step_over_p): New.
18305 (start_step_over): New.
18306 (finish_step_over): New.
18307 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18308 requests. Clear the thread's last reported target waitstatus.
18309 Don't use the `suspended' flag. Don't consider pending breakpoints.
18310 (linux_resume): Start a step-over if necessary.
18311 (proceed_one_lwp): New.
18312 (proceed_all_lwps): New.
18313 (unstop_all_lwps): New.
18314 * linux-low.h (struct lwp_info): Rewrite comment for the
18315 `suspended' flag. Add the `stop_pc' field. Delete the
18316 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18317 Add `'last_resume_kind' and `need_step_over' fields.
18318 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18319 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18320 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18321 (set_raw_breakpoint_at): New.
18322 (set_breakpoint_at): Rewrite to use it.
18323 (reinsert_breakpoint_handler): Delete.
18324 (set_reinsert_breakpoint): New.
18325 (reinsert_breakpoint_by_bp): Delete.
18326 (delete_reinsert_breakpoints): New.
18327 (uninsert_breakpoint): Rewrite.
18328 (uninsert_breakpoints_at): New.
18329 (reinsert_breakpoint): Rewrite.
18330 (reinsert_breakpoints_at): New.
18331 (check_breakpoints): Rewrite.
18332 (breakpoint_here): New.
18333 (breakpoint_inserted_here): New.
18334 (check_mem_read): Adjust.
18335 * mem-break.h (breakpoints_supported, breakpoint_here)
18336 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18337 (reinsert_breakpoint_by_bp): Delete declaration.
18338 (delete_reinsert_breakpoints): Declare.
18339 (reinsert_breakpoint): Delete declaration.
18340 (reinsert_breakpoints_at): Declare.
18341 (uninsert_breakpoint): Delete declaration.
18342 (uninsert_breakpoints_at): Declare.
18343 (check_breakpoints): Adjust prototype.
18344 * server.h: Adjust include order.
18345 (struct thread_info): Declare here. Add a `last_status' field.
18346
30ba68cb
MS
183472010-03-23 Michael Snyder <msnyder@vmware.com>
18348
18349 * server.c (crc32): New function.
18350 (handle_query): Add handling for 'qCRC:' request.
18351
b9a881c2
PA
183522010-03-23 Pedro Alves <pedro@codesourcery.com>
18353
18354 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18355 lwp had been stopped by a watchpoint.
18356
e92d13d5
PA
183572010-03-16 Pedro Alves <pedro@codesourcery.com>
18358
18359 * server.h (internal_error): Declare.
18360 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18361 * utils.c (internal_error): New function.
18362
64daa791
AS
183632010-03-15 Andreas Schwab <schwab@redhat.com>
18364
18365 * configure.srv: Fix typo setting srv_regobj.
18366
f52cd8cd
PA
183672010-03-15 Pedro Alves <pedro@codesourcery.com>
18368
18369 * linux-low.c (fetch_register): Avoid passing a non string literal
18370 format to `error'.
18371 (usr_store_inferior_registers): Ditto.
18372
93ae6fdc
PA
183732010-03-14 Pedro Alves <pedro@codesourcery.com>
18374
18375 * linux-low.c (linux_write_memory): Bail out early if peeking
18376 memory failed.
18377
c3adc08c
PA
183782010-03-14 Pedro Alves <pedro@codesourcery.com>
18379
18380 * linux-low.h (struct lwp_info): New fields
18381 `stopped_by_watchpoint' and `stopped_data_address'.
18382 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18383 here, and cache them in the lwp object.
18384 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18385 directly.
18386 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18387 field.
18388 (linux_stopped_by_watchpoint): Rewrite.
18389 (linux_stopped_data_address): Rewrite.
18390
bce522a2
PA
183912010-03-06 Simo Melenius <simo.melenius@iki.fi>
18392
18393 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18394 switching the current inferior, not before.
18395
90884b2b
L
183962010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18397
18398 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18399 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18400 i386-linux.c and amd64-linux.c.
18401 (reg-i386.o): Removed.
18402 (reg-i386.c): Likewise.
18403 (reg-i386-linux.o): Likewise.
18404 (reg-i386-linux.c): Likewise.
18405 (reg-x86-64.o): Likewise.
18406 (reg-x86-64.c): Likewise.
18407 (reg-x86-64-linux.o): Likewise.
18408 (reg-x86-64-linux.c): Likewise.
18409 (i386.o): New.
18410 (i386.c): Likewise.
18411 (i386-linux.o): Likewise.
18412 (i386-linux.c): Likewise.
18413 (amd64.o): Likewise.
18414 (amd64.c): Likewise.
18415 (amd64-linux.o): Likewise.
18416 (amd64-linux.c): Likewise.
18417
18418 * configure.srv (srv_i386_regobj): New.
18419 (srv_i386_linux_regobj): Likewise.
18420 (srv_amd64_regobj): Likewise.
18421 (srv_amd64_linux_regobj): Likewise.
18422 (srv_i386_32bit_xmlfiles): Likewise.
18423 (srv_i386_64bit_xmlfiles): Likewise.
18424 (srv_i386_xmlfiles): Likewise.
18425 (srv_amd64_xmlfiles): Likewise.
18426 (srv_i386_linux_xmlfiles): Likewise.
18427 (srv_amd64_linux_xmlfiles): Likewise.
18428 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18429 srv_xmlfiles to $srv_i386_xmlfiles.
18430 (i[34567]86-*-mingw32ce*): Likewise.
18431 (i[34567]86-*-mingw*): Likewise.
18432 (i[34567]86-*-nto*): Likewise.
18433 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18434 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18435 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18436 (x86_64-*-linux*): Likewise.
18437
18438 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18439 (init_registers_amd64_linux): New.
18440 (x86_arch_setup): Replace init_registers_x86_64_linux with
18441 init_registers_amd64_linux.
18442
193f13e6
MK
184432010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18444
18445 * configure.ac: Check for libdl. If it is not available link against
18446 static libthread_db.
18447 * configure: Regenerate.
18448
85d721b8
PA
184492010-02-22 Pedro Alves <pedro@codesourcery.com>
18450
18451 PR9605
18452
18453 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18454 handing a read watchpoint.
18455 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18456
6076632b
DE
184572010-02-12 Doug Evans <dje@google.com>
18458
18459 * linux-low.c (linux_supports_tracefork_flag): Document.
18460 (linux_look_up_symbols): Add comment.
18461
3327ccf7
L
184622010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18463
18464 * regcache.c (supply_register): Clear regcache if buf is NULL.
18465
0718675c 184662010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18467 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18468
18469 * inferiors.c (find_inferior): Add function documentation.
18470 (unloaded_dll): Handle the case where the unloaded dll has not
18471 been previously registered in the dll list.
18472
177321bd
DJ
184732010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18474
18475 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18476 (thumb2_breakpoint): New.
18477 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18478
2b009048
DJ
184792010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18480
18481 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18482 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18483 breakpoints.
18484
3be029c7
PA
184852010-01-21 Pedro Alves <pedro@codesourcery.com>
18486
18487 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18488
18f5de3b
JK
184892010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18490
18491 * linux-s390-low.c (s390_collect_ptrace_register)
18492 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18493
3743bb4f
DE
184942010-01-21 Doug Evans <dje@google.com>
18495
14ce3065
DE
18496 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18497 (PTRACE_ARG4_TYPE): New macro.
18498 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18499 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18500 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18501 (usr_store_inferior_registers): Ditto.
18502 (linux_read_memory, linux_write_memory): Ditto.
18503 (linux_test_for_tracefork): Ditto.
18504
3743bb4f
DE
18505 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18506 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18507
8b315be5
PA
185082010-01-21 Pedro Alves <pedro@codesourcery.com>
18509
18510 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18511 target.
18512
85492558
PA
185132010-01-21 Pedro Alves <pedro@codesourcery.com>
18514
18515 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18516 prototype to take a regcache. Adjust.
18517
442ea881
PA
185182010-01-20 Pedro Alves <pedro@codesourcery.com>
18519
18520 * regcache.h (struct thread_info): Forward declare.
18521 (struct regcache): New.
18522 (new_register_cache): Adjust prototype.
18523 (get_thread_regcache): Declare.
18524 (free_register_cache): Adjust prototype.
18525 (registers_to_string, registers_from_string): Ditto.
18526 (supply_register, supply_register_by_name, collect_register)
18527 (collect_register_as_string, collect_register_by_name): Ditto.
18528 * regcache.c (struct inferior_regcache_data): Delete.
18529 (get_regcache): Rename to ...
18530 (get_thread_regcache): ... this. Adjust. Switch inferior before
18531 fetching registers.
18532 (regcache_invalidate_one): Adjust.
18533 (regcache_invalidate): Fix prototype.
18534 (new_register_cache): Return the new register cache.
18535 (free_register_cache): Change prototype.
18536 (realloc_register_cache): Adjust.
18537 (registers_to_string): Change prototype to take a regcache. Adjust.
18538 (registers_from_string): Ditto.
18539 (register_data): Ditto.
18540 (supply_register): Ditto.
18541 (supply_register_by_name): Ditto.
18542 (collect_register): Ditto.
18543 (collect_register_as_string): Ditto.
18544 (collect_register_by_name): Ditto.
18545 * server.c (process_serial_event): Adjust.
18546 * linux-low.h (regset_fill_func, regset_store_func): Change
18547 prototype.
18548 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18549 Change prototype.
18550 * linux-low.c (get_stop_pc): Adjust.
18551 (check_removed_breakpoint): Adjust.
18552 (linux_wait_for_event): Adjust.
18553 (linux_resume_one_lwp): Adjust.
18554 (fetch_register): Add regcache parameter. Adjust.
18555 (usr_store_inferior_registers): Ditto.
18556 (regsets_fetch_inferior_registers): Ditto.
18557 (regsets_store_inferior_registers): Ditto.
18558 (linux_fetch_registers, linux_store_registers): Ditto.
18559 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18560 regcache. Adjust.
43aaf8b6
PA
18561 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18562 Ditto.
442ea881
PA
18563 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18564 prototype to take a regcache.
18565 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18566 * remote-utils.c (convert_ascii_to_int, outreg)
18567 (prepare_resume_reply): Change prototype to take a regcache.
18568 Adjust.
18569 * target.h (struct target_ops) <fetch_registers, store_registers>:
18570 Change prototype to take a regcache.
18571 (fetch_inferior_registers, store_inferior_registers): Change
18572 prototype to take a regcache. Adjust.
18573 * proc-service.c (ps_lgetregs): Adjust.
18574 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18575 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18576 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18577 take a regcache. Adjust.
18578 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18579 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18580 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18581 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18582 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18583 (cris_cannot_fetch_register):
18584 (cris_breakpoint_at): Change prototype to take a regcache.
18585 Adjust.
18586 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18587 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18588 to take a regcache. Adjust.
18589 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18590 Adjust.
18591 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18592 take a regcache. Adjust.
18593 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18594 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18595 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18596 * linux-mips-low.c (mips_get_pc):
18597 (mips_set_pc): Change prototype to take a regcache. Adjust.
18598 (mips_reinsert_addr): Adjust.
18599 (mips_collect_register): Change prototype to take a regcache.
18600 Adjust.
18601 (mips_supply_register):
18602 (mips_collect_register_32bit, mips_supply_register_32bit)
18603 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18604 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18605 * linux-ppc-low.c (ppc_supply_ptrace_register)
18606 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18607 (parse_spufs_run): Adjust.
18608 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18609 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18610 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18611 take a regcache. Adjust.
18612 * linux-s390-low.c (s390_collect_ptrace_register)
18613 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18614 (s390_set_pc): Change prototype to take a regcache. Adjust.
18615 (s390_arch_setup): Adjust.
18616 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18617 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18618 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18619 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18620 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18621 regcache. Adjust.
18622 (sparc_breakpoint_at): Adjust.
18623 * linux-xtensa-low.c (xtensa_fill_gregset):
18624 (xtensa_store_gregset):
18625 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18626 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18627 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18628 prototype to take a regcache. Adjust.
18629 * win32-arm-low.c (arm_fetch_inferior_register)
18630 (arm_store_inferior_register): Change prototype to take a
18631 regcache. Adjust.
18632 * win32-i386-low.c (i386_fetch_inferior_register)
18633 (i386_store_inferior_register): Change prototype to take a
18634 regcache. Adjust.
18635 * win32-low.c (child_fetch_inferior_registers)
18636 (child_store_inferior_registers): Change prototype to take a
18637 regcache. Adjust.
18638 (win32_wait): Adjust.
18639 (win32_fetch_inferior_registers): Change prototype to take a
18640 regcache. Adjust.
18641 (win32_store_inferior_registers): Adjust.
18642 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18643 store_inferior_register>: Change prototype to take a regcache.
18644
60c3d7b0
DE
186452010-01-20 Doug Evans <dje@google.com>
18646
18647 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18648 #ifdef.
18649 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18650 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18651
dc146f7c
VP
186522010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18653
18654 * linux-low.c (linux_core_of_thread): New.
18655 (compare_ints, show_process, list_threads): New.
18656 (linux_qxfer_osdata): Report threads and cores.
18657 (linux_target_op): Register linux_core_of_thread.
18658 * remote-utils.c (prepare_resume_reply): Report the core.
18659 (buffer_xml_printf): Support %d specifier.
18660 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18661 New.
18662 (handle_query): Handle qXfer:threads. Announce availability
18663 thereof.
18664 * target.h (struct target_ops): New field core_of_thread.
18665
7803799a
UW
186662010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18667
18668 * Makefile.in (clean): Remove new generated files.
18669 (reg-s390.o, reg-s390.c): Remove rules.
18670 (reg-s390x.o, reg-s390x.c): Likewise.
18671 (s390-linux32.o, s390-linux32.c): Add rules.
18672 (s390-linux64.o, s390-linux64.c): Likewise.
18673 (s390x-linux64.o, s390x-linux64.c): Likewise.
18674 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18675 * linux-s390-low.c: Include <elf.h>.
18676 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18677 (init_registers_s390): Remove prototype.
18678 (init_registers_s390x): Likewise.
18679 (init_registers_s390_linux32): Add prototype.
18680 (init_registers_s390_linux64): Likewise.
18681 (init_registers_s390x_linux64): Likewise.
18682 (s390_num_regs_3264): New define.
18683 (s390_regmap_3264): New global variable.
18684 (s390_cannot_fetch_register): Remove obsolete check.
18685 (s390_cannot_store_register): Likewise.
18686 (s390_collect_ptrace_register): Handle upper/lower register halves.
18687 (s390_supply_ptrace_register): Likewise.
18688 (s390_fill_gregset): Update to register number changes.
18689 (s390_get_hwcap): New routine.
18690 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18691 Install appropriate regmap and register set.
18692
6e7ffa39
JB
186932010-01-01 Joel Brobecker <brobecker@adacore.com>
18694
18695 * server.c (gdbserver_version): Update copyright year to 2010.
18696 * gdbreplay.c (gdbreplay_version): Likewise.
18697
957f3f49
DE
186982009-12-28 Doug Evans <dje@google.com>
18699
18700 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18701 elf/external.h. Include <elf.h> instead but only if necessary.
18702
ca5c370d
PA
187032009-12-28 Pedro Alves <pedro@codesourcery.com>
18704
18705 * linux-low.c (linux_remove_process): Remove `detaching'
18706 parameter. Don't release/detach from thread_db here.
18707 (linux_kill): Release/detach from thread_db here, ...
18708 (linux_detach): ... and here, before actually detaching.
18709 (linux_wait_1): ... and here, when a process exits.
18710 * thread-db.c (any_thread_of): New.
18711 (thread_db_free): Switch the current inferior to a thread of the
18712 passed in process.
18713
4ee62156
DE
187142009-12-21 Doug Evans <dje@google.com>
18715
d90e6a88
DE
18716 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18717
c5f62d5f
DE
18718 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18719 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18720 warning ifndef __NR_tkill. Move setting of errno there too.
18721 Delete unnecessary resetting of errno after syscall.
18722 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18723
10e86dd7
DE
18724 * configure.ac: Check for dladdr.
18725 * config.in: Regenerate.
18726 * configure: Regenerate.
18727 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18728 (try_thread_db_load): Update.
18729
4ee62156
DE
18730 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18731
00f515da
DE
187322009-12-18 Doug Evans <dje@google.com>
18733
e9464885
DE
18734 * event-loop.c: Include unistd.h if it exists.
18735
07d4f67e
DE
18736 * linux-low.c (my_waitpid): Move definition away from being in
18737 between linux_tracefork_child/linux_test_for_tracefork.
18738
00f515da
DE
18739 * gdb_proc_service.h (psaddr_t): Fix type.
18740 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18741 signature to match glibc.
18742
1de1badb
DE
187432009-12-16 Doug Evans <dje@google.com>
18744
18745 * linux-low.c (linux_read_memory): Fix argument to read.
18746
aeeb81d1
PA
187472009-11-26 Pedro Alves <pedro@codesourcery.com>
18748
18749 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18750 events, don't leave current_inferior pointing at null.
18751
10357975
PA
187522009-11-26 Pedro Alves <pedro@codesourcery.com>
18753
18754 * win32-low.c (LOG): Delete.
18755 (OUTMSG): Output to stderr.
18756 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18757 on compile time LOG macro.
18758 (win32_wait): Fix debug output.
18759
cf6e3471
PA
187602009-11-26 Pedro Alves <pedro@codesourcery.com>
18761
18762 * win32-low.c (win32_add_one_solib): If the dll name is
18763 "ntdll.dll", prepend the system directory to the dll path.
18764
0c85e18e
MK
187652009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18766
18767 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18768
9ac544ce 187692009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18770 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18771
18772 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18773 * configure.ac: Check for __mcoldfire__ and set
18774 gdb_cv_m68k_is_coldfire.
18775 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18776 reg-cf.o and reg-m68k.o.
18777 * configure: Regenerated.
18778
fd7dd3e6
PA
187792009-11-16 Pedro Alves <pedro@codesourcery.com>
18780
18781 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18782 Pass it to thread_db_free.
18783 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18784 proper `detaching' argument to linux_remove_process.
18785 * linux-low.h (thread_db_free): Add `detaching' parameter.
18786 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18787 to thread_db_free.
18788 (thread_db_free): Add `detaching' parameter. Only
18789 call td_ta_clear_event if detaching from process.
18790
75aa492e
MK
187912009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18792
18793 * thread-db.c (thread_db_free): Fix typo.
18794
21e1bee4
PP
187952009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18796
18797 PR gdb/10838
18798 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18799
8838b45e
NS
188002009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18801
18802 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18803 with an i686 compiler.
18804 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18805 needed.
18806 * configure: Rebuilt.
18807
8a35fb51
SL
188082009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18809
18810 PR gdb/10783
18811
18812 * server.c (handle_search_memory_1): Correct read_addr initialization
18813 in loop for searching subsequent chunks.
18814
96f15937
PP
188152009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18816
18817 * configure.ac: New --with-libthread-db option.
18818 * thread-db.c: Allow direct dependence on libthread_db.
18819 (thread_db_free): Adjust.
18820 * config.in: Regenerate.
18821 * configure: Likewise.
889bf7c5 18822
5f7d1694
PP
188232009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18824
18825 PR gdb/10757
18826 * thread-db.c (attach_thread): New function.
18827 (maybe_attach_thread): Return success/failure.
18828 (find_new_threads_callback): Adjust.
889bf7c5
PA
18829 (thread_db_find_new_threads): Loop until no new threads.
18830
88e3b899
PA
188312009-10-13 Pedro Alves <pedro@codesourcery.com>
18832
18833 * proc-service.c (ps_lgetregs): Formatting.
18834
cdbfd419
PP
188352009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18836
18837 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18838 * configure.ac: Adjust.
18839 * linux-low.h (struct process_info_private): Move members to struct
18840 thread_db.
18841 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18842 * linux-low.c (linux_remove_process): Adjust.
18843 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18844 * server.c (handle_query): Move code ...
18845 (handle_monitor_command): ... here. New function.
18846 * target.h (struct target_ops): New member.
18847 * thread-db.c (struct thread_db): New.
18848 (libthread_db_search_path): New variable.
18849 (thread_db_create_event, thread_db_enable_reporting)
18850 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18851 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18852 (try_thread_db_load_1, dladdr_to_soname): New functions.
18853 (try_thread_db_load, thread_db_load_search): New functions.
18854 (thread_db_init): Search for libthread_db.
18855 (thread_db_free): New function.
18856 (thread_db_handle_monitor_command): Likewise.
18857 * config.in: Regenerate.
18858 * configure: Regenerate.
889bf7c5 18859
4168d2d6
UW
188602009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18861
18862 * spu-low.c (spu_kill): Wait for inferior to terminate.
18863 Call clear_inferiors.
18864 (spu_detach): Call clear_inferiors.
18865
81ecdfbb
RW
188662009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18867
18868 * aclocal.m4: Regenerate.
18869 * config.in: Likewise.
18870 * configure: Likewise.
18871
0b9ff2c0
UW
188722009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18873
18874 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18875 (parse_spufs_run): New function.
18876 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18877 (ppc_breakpoint_at): Handle SPU breakpoints.
18878
efcbbd14
UW
188792009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18880
18881 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18882 (SPUFS_MAGIC): Define.
18883 (spu_enumerate_spu_ids): New function.
18884 (linux_qxfer_spu): New function.
18885 (linux_target_ops): Install linux_qxfer_spu.
18886
f4d9bade
UW
188872009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18888
18889 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18890 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18891 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18892 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18893 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18894 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18895 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18896 (init_registers_powerpc_cell32l): Add prototype.
18897 (init_registers_powerpc_cell64l): Likewise.
18898 (ppc_arch_setup): Detect Cell/B.E. architecture.
18899
96e946ca
RW
189002009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18901
18902 * Makefile.in (datarootdir): New variable.
18903
58d6951d
DJ
189042009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18905
18906 * linux-low.c (linux_write_memory): Update debugging output.
18907 * Makefile.in (clean): Add new descriptions.
18908 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18909 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18910 * configure.srv: Add new files for arm*-*-linux*.
18911 * linux-arm-low.c: Add new declarations.
18912 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18913 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18914 (HWCAP_VFPv3D16): New.
18915 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18916 instead of __IWMMXT__.
18917 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18918 (arm_arch_setup): New.
18919 (target_regsets): Remove #ifdef. Add VFP regset.
18920 (the_low_target): Use arm_arch_setup.
18921
12b42a12
DJ
189222009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18923
18924 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18925 the main thread again.
18926
ac8c974e
AR
189272009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18928
18929 Adding Neutrino gdbserver.
18930 * configure: Regenerated.
18931 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18932 * configure.srv (i[34567]86-*-nto*): New target.
18933 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18934 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18935 (nto_comctrl) [__QNX__]: New function.
18936 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18937
4424e0c3 189382009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18939
18940 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18941 srv_tgtobj.
18942
912cf4ba
PA
189432009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18944 Pedro Alves <pedro@codesourcery.com>
18945
18946 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18947 don't support CONTEXT_EXTENDED_REGISTERS.
18948 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18949 (the_low_target): Install them.
18950 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18951 failing with ERROR_PIPE_NOT_CONNECTED.
18952
aa5ca48f
DE
189532009-06-30 Doug Evans <dje@google.com>
18954 Pierre Muller <muller@ics.u-strasbg.fr>
18955
18956 Add h/w watchpoint support to x86-linux, win32-i386.
18957 * Makefile.in (SFILES): Add i386-low.c
18958 (i386_low_h): Define.
18959 (i386-low.o): Add dependencies.
18960 (linux-x86-low.o): Add i386-low.h dependency.
18961 (win32-i386-low.o): Ditto.
18962 * i386-low.c: New file.
18963 * i386-low.h: New file.
18964 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18965 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18966 * linux-low.c (linux_add_process): Initialize arch_private.
18967 (linux_remove_process): Free arch_private.
18968 (add_lwp): Initialize arch_private.
18969 (delete_lwp): Free arch_private.
18970 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18971 provided.
18972 * linux-low.h (process_info_private): New member arch_private.
18973 (lwp_info): New member arch_private.
18974 (linux_target_ops): New members new_process, new_thread,
18975 prepare_to_resume.
18976 (ptid_of): New macro.
18977 * linux-x86-low.c: Include stddef.h, i386-low.h.
18978 (arch_process_info): New struct.
18979 (arch_lwp_info): New struct.
18980 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18981 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18982 (i386_dr_low_get_status): New function.
18983 (x86_insert_point, x86_remove_point): New functions.
18984 (x86_stopped_by_watchpoint): New function.
18985 (x86_stopped_data_address): New function.
18986 (x86_linux_new_process, x86_linux_new_thread): New functions.
18987 (x86_linux_prepare_to_resume): New function.
18988 (the_low_target): Add entries for insert_point, remove_point,
18989 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18990 prepare_to_resume.
18991 * server.c (debug_hw_points): New global.
18992 (monitor_show_help): Document set debug-hw-points.
18993 (handle_query): Process "set debug-hw-points".
18994 * server.h (debug_hw_points): Declare.
18995 (paddress): Declare.
18996 * utils.c (NUMCELLS, CELLSIZE): New macros.
18997 (get_sell, xsnprintf, paddress): New functions.
18998 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18999 remove_point, stopped_by_watchpoint, stopped_data_address.
19000 * win32-i386-low.c: Include i386-low.h.
19001 (debug_reg_state): Replaces dr.
19002 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19003 (i386_dr_low_get_status): New function.
19004 (i386_insert_point, i386_remove_point): New functions.
19005 (i386_stopped_by_watchpoint): New function.
19006 (i386_stopped_data_address): New function.
19007 (i386_initial_stuff): Update.
19008 (get_thread_context,set_thread_context,i386_thread_added): Update.
19009 (the_low_target): Add entries for insert_point,
19010 remove_point, stopped_by_watchpoint, stopped_data_address.
19011 * win32-low.c (win32_insert_watchpoint): New function.
19012 (win32_remove_watchpoint): New function.
19013 (win32_stopped_by_watchpoint): New function.
19014 (win32_stopped_data_address): New function.
19015 (win32_target_ops): Add entries for insert_watchpoint,
19016 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19017 * win32-low.h (win32_target_ops): New members insert_point,
19018 remove_point, stopped_by_watchpoint, stopped_data_address.
19019
d993e290
PA
190202009-06-25 Pedro Alves <pedro@codesourcery.com>
19021
19022 * server.c (process_serial_event): Re-return unsupported, not
19023 error, if the type isn't recognized. Re-allow supporting only
19024 insert or remove packets. Also call require_running for
19025 breakpoints. Add missing break statement to default case. Tidy.
19026 * target.h (struct target_ops): Rename insert_watchpoint to
19027 insert_point, and remove_watchpoint to remove_point.
19028
19029 * linux-low.h (struct linux_target_ops): Likewise.
19030 * linux-low.c (linux_insert_watchpoint): Rename to ...
19031 (linux_insert_point): ... this. Adjust.
19032 (linux_remove_watchpoint): Rename to ...
19033 (linux_remove_point): ... this. Adjust.
19034 (linux_target_ops): Adjust.
19035 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19036 (cris_insert_point): ... this.
19037 (cris_remove_watchpoint): Rename to ...
19038 (cris_remove_point): ... this.
19039 (the_low_target): Adjust.
19040
0f54c268
PM
190412009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19042
19043 * server.c (handle_v_kill): Pass signal_pid to
19044 kill_inferior if multi_process is zero.
19045
c6314022
AR
190462009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19047
19048 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19049 * target.h (target_ops): Comment for *_watchpoint to make it clear
19050 the functions can get types '0' and '1'.
19051
4463ce24
AR
190522009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19053
19054 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19055 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19056 * regcache.c (get_regcache): Likewise.
19057 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19058 * win32-low.c (child_fetch_inferior_registers): Remove check for
19059 regno 0.
19060
cf8fd78b
PA
190612009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19062 Pedro Alves <pedro@codesourcery.com>
19063
19064 * target.h (struct target_ops) <supports_multi_process>: New
19065 callback.
19066 (target_supports_multi_process): New.
19067 * server.c (handle_query): Even if GDB reports support, only
19068 enable multi-process if the target also supports it. Report
19069 multi-process support only if the target backend supports it.
19070 * linux-low.c (linux_supports_multi_process): New function.
19071 (linux_target_ops): Install it as target_supports_multi_process
19072 callback.
19073
47c0c975
DE
190742009-05-24 Doug Evans <dje@google.com>
19075
e09875d4
DE
19076 Global renaming of find_thread_pid to find_thread_ptid.
19077 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19078 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19079 All callers updated.
19080
e27d73f6
DE
19081 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19082 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19083 directly.
19084
47c0c975
DE
19085 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19086 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19087 (linux_resume_one_lwp): Ditto.
19088
2acc282a
DE
190892009-05-23 Doug Evans <dje@google.com>
19090
19091 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19092 from struct inferior_list_entry * to struct lwp_info *.
19093 All callers updated.
19094
9f1036c1
DE
190952009-05-13 Doug Evans <dje@google.com>
19096
19097 * linux-x86-low.c: Don't include assert.h.
19098 (x86_siginfo_fixup): Use fatal, not assert.
19099 (x86_arch_setup): Fix comment.
19100
d0722149
DE
191012009-05-12 Doug Evans <dje@google.com>
19102
19103 Biarch support for i386/amd64 gdbserver.
19104 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19105 Add linux-x86-low.c.
19106 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19107 (linux-x86-low.o): Add.
19108 * linux-x86-64-low.c: Delete.
19109 * linux-i386-low.c: Delete.
19110 * linux-x86-low.c: New file.
19111 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19112 linux-x86-low.o.
19113 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19114 linux-x86-low.o.
19115 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19116 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19117 (linux_child_pid_to_exec_file): New function.
19118 (elf_64_header_p, elf_64_file_p): New functions.
19119 (siginfo_fixup): New function.
19120 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19121 give target a chance to convert layout.
19122 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19123 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19124
fdeb2a12
DE
191252009-05-07 Doug Evans <dje@google.com>
19126
19127 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19128 (regsets_store_inferior_registers): Ditto.
19129
a6dbe5df
PA
191302009-05-06 Pedro Alves <pedro@codesourcery.com>
19131
19132 PR server/10048
19133
19134 * linux-low.c (must_set_ptrace_flags): Delete.
19135 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19136 of the global.
19137 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19138 `lwp->must_set_ptrace_flags' instead.
ba42693b 19139 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19140 (linux_wait_1): ... not here.
19141
5091eb23
DE
191422009-04-30 Doug Evans <dje@google.com>
19143
9f767825
DE
19144 * inferiors.c (started_inferior_callback): New function.
19145 (attached_inferior_callback): New function.
19146 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19147 * server.c (print_started_pid, print_attached_pid): New functions.
19148 (detach_or_kill_for_exit): New function.
19149 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19150 * server.h (have_started_inferiors_p): Declare.
19151 (have_attached_inferiors_p): Declare.
19152
5091eb23
DE
19153 * inferiors.c (remove_process): Fix memory leak, free process.
19154 * linux-low.c (linux_remove_process): New function.
19155 (linux_kill): Call it instead of remove_process.
19156 (linux_detach, linux_wait_1): Ditto.
19157
155c8968
PA
191582009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19159
19160 * configure.srv: Add x86 Windows CE target.
19161
7fe519cb
UW
191622009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19163
19164 * inferiors.c (get_thread_process): Make global.
19165 * server.h (get_thread_process): Add prototype.
19166 * thread-db.c (find_one_thread): Use get_thread_process
19167 instead of current_process.
19168 (thread_db_get_tls_address): Do not crash if called when
19169 thread layer is not yet initialized.
19170
5472f405
UW
191712009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19172
19173 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19174 * spu-low.c (current_tid): Rename to ...
19175 (current_ptid): ... this.
19176 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19177 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19178 ptid_get_lwp (current_ptid) instead of current_tid.
19179 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19180 instead of current_tid. Use find_process_pid to verify pid
19181 argument is valid. Pass proper argument to remove_process.
19182 (spu_thread_alive): Compare current_ptid instead of current_tid.
19183 (spu_resume): Likewise.
19184
55ac2b99
PA
191852009-04-02 Pedro Alves <pedro@codesourcery.com>
19186
19187 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19188 variable.
19189
95954743
PA
191902009-04-01 Pedro Alves <pedro@codesourcery.com>
19191
19192 Implement the multiprocess extensions, and add linux multiprocess
19193 support.
19194
19195 * server.h (ULONGEST): Declare.
19196 (struct ptid, ptid_t): New.
19197 (minus_one_ptid, null_ptid): Declare.
19198 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19199 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19200 (struct inferior_list_entry): Change `id' type from unsigned from
19201 to ptid_t.
19202 (struct sym_cache, struct breakpoint, struct
19203 process_info_private): Forward declare.
19204 (struct process_info): Declare.
19205 (current_process): Declare.
19206 (all_processes): Declare.
19207 (initialize_inferiors): Declare.
19208 (add_thread): Adjust to use ptid_t.
19209 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19210 (add_process, remove_process, find_thread_pid): Declare.
19211 (find_inferior_id): Adjust to use ptid_t.
19212 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19213 (multi_process): Declare.
19214 (push_event): Adjust to use ptid_t.
19215 (read_ptid, write_ptid): Declare.
19216 (prepare_resume_reply): Adjust to use ptid_t.
19217 (clear_symbol_cache): Declare.
19218 * inferiors.c (all_processes): New.
19219 (null_ptid, minus_one_ptid): New.
19220 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19221 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19222 (add_thread): Change unsigned long to ptid. Remove gdb_id
19223 parameter. Adjust.
19224 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19225 (gdb_id_to_thread): Rename to ...
19226 (find_thread_pid): ... this. Change unsigned long to ptid.
19227 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19228 (loaded_dll, pull_pid_from_list): Adjust.
19229 (add_process, remove_process, find_process_pid)
19230 (get_thread_process, current_process, initialize_inferiors): New.
19231 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19232 (struct target_waitstatus) <related_pid>: Ditto.
19233 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19234 return type to int.
19235 (struct target_ops) <join>: Add `pid' argument.
19236 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19237 (struct target_ops) <wait>: Add `ptid' field. Change return type
19238 to ptid.
19239 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19240 (mywait): Add `ptid' argument. Change return type to ptid_t.
19241 (target_pid_to_str): Declare.
19242 * target.c (set_desired_inferior): Adjust to use ptids.
19243 (mywait): Add new `ptid' argument. Adjust.
19244 (target_pid_to_str): New.
19245 * mem-break.h (free_all_breakpoints): Declare.
19246 * mem-break.c (breakpoints): Delelete.
19247 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19248 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19249 to use per-process breakpoint list.
19250 (free_all_breakpoints): New.
19251 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19252 (symbol_cache, all_symbols_looked_up): Delete.
19253 (hexchars): New.
19254 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19255 read_ptid): New.
19256 (prepare_resume_reply): Change ptid argument's type from unsigned
19257 long to ptid_t. Adjust. Implement W;process and X;process.
19258 (free_sym_cache, clear_symbol_cache): New.
19259 (look_up_one_symbol): Adjust to per-process symbol cache. *
19260 * server.c (cont_thread, general_thread, step_thread): Change type
19261 to ptid_t.
19262 (attached): Delete.
19263 (multi_process): New.
19264 (last_ptid): Change type to ptid_t.
19265 (struct vstop_notif) <ptid>: Change type to ptid_t.
19266 (queue_stop_reply, push_event): Change `ptid' argument's type to
19267 ptid_t.
19268 (discard_queued_stop_replies): Add `pid' argument.
19269 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19270 changes. Don't reference the `attached' global.
19271 (attach_inferior): Adjust to mywait interface changes.
19272 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19273 features. Handle and report "multiprocess+". Handle
19274 "qAttached:PID".
19275 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19276 changes.
19277 (handle_v_kill): New.
19278 (handle_v_stopped): Adjust to use target_pid_to_str.
19279 (handle_v_requests): Allow multiple attaches and runs when
19280 multiprocess extensions are in effect. Handle "vKill".
19281 (myresume): Adjust to use ptids.
19282 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19283 (handle_status): Adjust to discard_queued_stop_replies interface
19284 change.
19285 (first_thread_of, kill_inferior_callback)
19286 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19287 (main): Call initialize_inferiors. Adjust to use ptids, killing
19288 and detaching from all inferiors. Handle multiprocess packet
19289 variants.
19290 * linux-low.h: Include gdb_proc_service.h.
19291 (struct process_info_private): New.
19292 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19293 <lwpid_of>: Use ptid_get_lwp.
19294 (get_lwp_thread): Adjust.
19295 (struct lwp_info): Add `dead' member.
19296 (find_lwp_pid): Declare.
19297 * linux-low.c (thread_db_active): Delete.
19298 (new_inferior): Adjust comment.
19299 (inferior_pid): Delete.
19300 (linux_add_process): New.
19301 (handle_extended_wait): Adjust.
19302 (add_lwp): Change unsigned long to ptid.
19303 (linux_create_inferior): Add process to processes table. Adjust
19304 to use ptids. Don't set new_inferior here.
19305 (linux_attach_lwp): Rename to ...
19306 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19307 it. Adjust to use ptids.
19308 (linux_attach_lwp): New.
19309 (linux_attach): Add process to processes table. Don't set
19310 new_inferior here.
19311 (struct counter): New.
19312 (second_thread_of_pid_p, last_thread_of_process_p): New.
19313 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19314 multiple processes.
19315 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19316 processes. Remove process from process table.
19317 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19318 to multiple processes.
19319 (any_thread_of): New.
19320 (linux_detach): Add `pid' argument, and handle it. Remove process
19321 from processes table.
19322 (linux_join): Add `pid' argument. Handle it.
19323 (linux_thread_alive): Change unsighed long argument to ptid_t.
19324 Consider dead lwps as not being alive.
19325 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19326 threads we're not interested in.
19327 (same_lwp, find_lwp_pid): New.
19328 (linux_wait_for_lwp): Change `pid' argument's type from int to
19329 ptid_t. Adjust.
19330 (linux_wait_for_event): Rename to ...
19331 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19332 from int to ptid_t. Adjust.
19333 (linux_wait_for_event): New.
19334 (linux_wait_1): Add `ptid' argument. Change return type to
19335 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19336 that exit from the process table.
19337 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19338 Adjust.
19339 (mark_lwp_dead): New.
19340 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19341 stopping all threads, mark its main lwp as dead.
19342 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19343 ptids.
19344 (fetch_register, usr_store_inferior_registers)
19345 (regsets_fetch_inferior_registers)
19346 (regsets_store_inferior_registers, linux_read_memory)
19347 (linux_write_memory): Inline `inferior_pid'.
19348 (linux_look_up_symbols): Adjust to use per-process
19349 `thread_db_active'.
19350 (linux_request_interrupt): Adjust to use ptids.
19351 (linux_read_auxv): Inline `inferior_pid'.
19352 (initialize_low): Don't reference thread_db_active.
19353 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19354 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19355 (ps_getpid): Return the pid of the current inferior.
19356 * thread-db.c (proc_handle, thread_agent): Delete.
19357 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19358 per-process data.
19359 (find_one_thread): Change argument type to ptid_t. Adjust to
19360 per-process data.
19361 (maybe_attach_thread): Adjust to per-process data and ptids.
19362 (thread_db_find_new_threads): Ditto.
19363 (thread_db_init): Ditto.
19364 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19365 processes table. Adjust to use ptids.
19366 (spu_kill, spu_detach): Adjust interface. Remove process from
19367 processes table.
19368 (spu_join, spu_thread_alive): Adjust interface.
19369 (spu_wait): Adjust interface. Remove process from processes
19370 table. Adjust to use ptids.
19371 * win32-low.c (current_inferior_tid): Delete.
19372 (current_inferior_ptid): New.
19373 (debug_event_ptid): New.
19374 (thread_rec): Take a ptid. Adjust.
19375 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19376 (child_delete_thread): Ditto.
19377 (do_initial_child_stuff): Add `attached' argument. Add process to
19378 processes table.
19379 (child_fetch_inferior_registers, child_store_inferior_registers):
19380 Adjust.
19381 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19382 (win32_attach): Pass 1 to do_initial_child_stuff.
19383 (win32_kill): Adjust interface. Remove process from processes
19384 table.
19385 (win32_detach): Ditto.
19386 (win32_join): Adjust interface.
19387 (win32_thread_alive): Take a ptid.
19388 (win32_resume): Adjust to use ptids.
19389 (get_child_debug_event): Ditto.
19390 (win32_wait): Adjust interface. Remove exiting process from
19391 processes table.
19392
bd99dc85
PA
193932009-04-01 Pedro Alves <pedro@codesourcery.com>
19394
19395 Non-stop mode support.
19396
19397 * server.h (non_stop): Declare.
19398 (gdb_client_data, handler_func): Declare.
19399 (delete_file_handler, add_file_handler, start_event_loop):
19400 Declare.
19401 (handle_serial_event, handle_target_event, push_event)
19402 (putpkt_notif): Declare.
19403 * target.h (enum resume_kind): New.
19404 (struct thread_resume): Replace `step' field by `kind' field.
19405 (TARGET_WNOHANG): Define.
19406 (struct target_ops) <wait>: Add `options' argument.
19407 <supports_non_stop, async, start_non_stop>: New fields.
19408 (target_supports_non_stop, target_async): New.
19409 (start_non_stop): Declare.
19410 (mywait): Add `options' argument.
19411 * target.c (mywait): Add `options' argument. Print child exit
19412 notifications here.
19413 (start_non_stop): New.
19414 * server.c (non_stop, own_buf, mem_buf): New globals.
19415 (struct vstop_notif): New.
19416 (notif_queue): New global.
19417 (queue_stop_reply, push_event, discard_queued_stop_replies)
19418 (send_next_stop_reply): New.
19419 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19420 interface changes.
19421 (attach_inferior): In non-stop mode, don't wait for the target
19422 here.
19423 (handle_general_set): Handle QNonStop.
19424 (handle_query): When handling qC, return the current general
19425 thread, instead of the first thread of the list.
19426 (handle_query): If the backend supports non-stop mode, include
19427 QNonStop+ in the qSupported query response.
19428 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19429 and non-stop mode.
19430 (handle_v_attach, handle_v_run): Handle non-stop mode.
19431 (handle_v_stopped): New.
19432 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19433 (myresume): Adjust to use resume_kind. Handle non-stop.
19434 (queue_stop_reply_callback): New.
19435 (handle_status): Handle non-stop mode.
19436 (main): Clear non_stop flag on reconnection. Use the event-loop.
19437 Refactor serial protocol handling from here ...
19438 (process_serial_event): ... to this new function. When GDB
19439 selects any thread, select one here. In non-stop mode, wait until
19440 GDB acks all pending events before exiting.
19441 (handle_serial_event, handle_target_event): New.
19442 * remote-utils.c (remote_open): Install remote_desc in the event
19443 loop.
19444 (remote_close): Remove remote_desc from the event loop.
19445 (putpkt_binary): Rename to...
19446 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19447 (putpkt_binary): New as wrapper around putpkt_binary_1.
19448 (putpkt_notif): New.
19449 (prepare_resume_reply): In non-stop mode, don't change the
19450 general_thread.
19451 * event-loop.c: New.
19452 * Makefile.in (OBJ): Add event-loop.o.
19453 (event-loop.o): New rule.
19454
19455 * linux-low.h (pid_of): Moved here.
19456 (lwpid_of): New.
19457 (get_lwp_thread): Use lwpid_of.
19458 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19459 * linux-low.c (pid_of): Delete.
19460 (inferior_pid): Use lwpid_of.
19461 (linux_event_pipe): New.
19462 (target_is_async_p): New.
19463 (delete_lwp): New.
19464 (handle_extended_wait): Use lwpid_of.
19465 (add_lwp): Don't set lwpid field.
19466 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19467 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19468 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19469 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19470 first. Adjust to linux_wait_for_event interface changes. Use
19471 lwpid_of.
19472 (linux_detach): Don't delete the main lwp here.
19473 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19474 (status_pending_p): Don't consider explicitly suspended lwps.
19475 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19476 pointer. Add OPTIONS argument. Change return type to int. Use
19477 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19478 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19479 pointer. Add status pointer argument. Return a pid instead of a
19480 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19481 changes. In non-stop mode, don't switch to a random thread.
19482 (linux_wait): Rename to...
19483 (linux_wait_1): ... this. Add target_options argument, and handle
19484 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19485 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19486 clean exit and signal exit code. Don't stop all threads in
19487 non-stop mode. In all-stop mode, only stop all threads when
19488 reporting a stop to GDB. Handle explicit thread stop requests.
19489 (async_file_flush, async_file_mark): New.
19490 (linux_wait): New.
19491 (send_sigstop): Use lwpid_of.
19492 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19493 interface changes. In non-stop mode, don't switch to a random
19494 thread.
19495 (linux_resume_one_lwp): Use lwpid_of.
19496 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19497 (linux_resume_one_thread): ... this. Handle resume_stop. In
19498 non-stop mode, don't look for pending flag in all threads.
19499 (resume_status_pending_p): Don't consider explicitly suspended
19500 threads.
19501 (my_waitpid): Reimplement. Emulate __WALL.
19502 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19503 Use lwpid_of.
19504 (sigchld_handler, linux_supports_non_stop, linux_async)
19505 (linux_start_non_stop): New.
19506 (linux_target_ops): Register linux_supports_non_stop, linux_async
19507 and linux_start_non_stop.
19508 (initialize_low): Install SIGCHLD handler.
19509 * thread-db.c (thread_db_create_event, find_one_thread)
19510 (thread_db_get_tls_address): Use lwpid_of.
19511 * win32-low.c (win32_detach): Adjust to use resume_kind.
19512 (win32_wait): Add `options' argument.
19513 * spu-low.c (spu_resume): Adjust to use resume_kind.
19514 (spu_wait): Add `options' argument.
19515
5b1c542e
PA
195162009-04-01 Pedro Alves <pedro@codesourcery.com>
19517
19518 Decouple target code from remote protocol.
19519
19520 * target.h (enum target_waitkind): New.
19521 (struct target_waitstatus): New.
19522 (struct target_ops) <wait>: Return an unsigned long. Take a
19523 target_waitstatus pointer instead of a char pointer.
19524 (mywait): Likewise.
19525 * target.c (mywait): Change prototype to return an unsigned long.
19526 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19527 * server.h (thread_from_wait, old_thread_from_wait): Delete
19528 declarations.
19529 (prepare_resume_reply): Change prototype to take a
19530 target_waitstatus.
19531 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19532 (last_status, last_ptid): New.
19533 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19534 pid instead of a signal.
19535 (attach_inferior): Remove "status" and "signal" parameters.
19536 Adjust.
19537 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19538 not as an address.
19539 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19540 (handle_v_requests, myresume): Remove "status" and "signal"
19541 parameters. Adjust.
19542 (handle_status): New.
19543 (main): Delete local `status'. Adjust.
19544 * remote-utils.c: Include target.h.
19545 (prepare_resume_reply): Change prototype to take a
19546 target_waitstatus. Adjust.
19547
19548 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19549 interface.
19550 * spu-low.c (spu_wait): Adjust.
19551 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19552 Delete.
19553 (win32_wait): Adjust.
19554
2bd7c093
PA
195552009-04-01 Pedro Alves <pedro@codesourcery.com>
19556
19557 * target.h (struct thread_resume): Delete leave_stopped member.
19558 (struct target_ops): Add a `n' argument to the `resume' callback.
19559 * server.c (start_inferior): Adjust.
19560 (handle_v_cont, myresume): Adjust.
19561 * linux-low.c (check_removed_breakpoint): Adjust to resume
19562 interface change, and to removed leave_stopped field.
19563 (resume_ptr): Delete.
19564 (struct thread_resume_array): New.
19565 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19566 resume interface change.
19567 (linux_continue_one_thread, linux_queue_one_thread)
19568 (resume_status_pending_p): Check if the resume field is NULL
19569 instead of checking the leave_stopped member.
19570 (linux_resume): Adjust to the target resume interface change.
19571 * spu-low.c (spu_resume): Adjust to the target resume interface
19572 change.
19573 * win32-low.c (win32_detach, win32_resume): Ditto.
19574
c35fafde
PA
195752009-04-01 Pedro Alves <pedro@codesourcery.com>
19576
19577 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19578 flag.
19579 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19580 pending.
19581 (linux_continue_one_thread): Only preserve the stepping flag if
19582 there's a pending breakpoint.
19583
0a59d50b
PA
195842009-03-31 Pedro Alves <pedro@codesourcery.com>
19585
19586 * server.c (main): After the inferior having exited, call
19587 remote_close before exiting gdbserver.
19588
f04c6d38
TJB
195892009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19590
19591 Fix size of FPSCR in Power 7 processors.
19592 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19593 (PPC_FEATURE_HAS_DFP): New #define.
19594 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19595 size of the FPSCR.
19596
78e5cee6
PA
195972009-03-23 Pedro Alves <pedro@codesourcery.com>
19598
19599 * server.c (handle_query) Whitespace and formatting.
19600
1b3f6016
PA
196012009-03-22 Pedro Alves <pedro@codesourcery.com>
19602
19603 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19604 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19605 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19606 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19607 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19608 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19609 Makefile.in, configure.ac: Fix whitespace throughout.
19610 * configure: Regenerate.
19611
a07b2135
PA
196122009-03-22 Pedro Alves <pedro@codesourcery.com>
19613
19614 * inferiors.c (find_inferior): Make it safe for the callback
19615 function to delete the currently iterated inferior.
19616
67cc2626
PA
196172009-03-22 Pedro Alves <pedro@codesourcery.com>
19618
19619 * Makefile.in (linuw_low_h): Move higher.
19620 (thread-db.o): Depend on $(linux_low_h).
19621
54a0b537
PA
196222009-03-17 Pedro Alves <pedro@codesourcery.com>
19623
19624 Rename "process" to "lwp" throughout.
19625
19626 * linux-low.c (all_processes): Rename to...
19627 (all_lwps): ... this.
19628 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19629 (add_process): Rename to ...
19630 (add_lwp): ... this. Adjust.
19631 (linux_create_inferior): Adjust.
19632 (linux_attach_lwp): Adjust.
19633 (linux_attach): Adjust.
19634 (linux_kill_one_process): Rename to ...
19635 (linux_kill_one_lwp): ... this. Adjust.
19636 (linux_kill): Adjust.
19637 (linux_detach_one_process): Rename to ...
19638 (linux_detach_one_lwp): ... this. Adjust.
19639 (linux_detach): Adjust.
19640 (check_removed_breakpoint): Adjust.
19641 (status_pending_p): Adjust.
19642 (linux_wait_for_process): Rename to ...
19643 (linux_wait_for_lwp): ... this. Adjust.
19644 (linux_wait_for_event): Adjust.
19645 (send_sigstop): Adjust.
19646 (wait_for_sigstop): Adjust.
19647 (stop_all_processes): Rename to ...
19648 (stop_all_lwps): ... this.
19649 (linux_resume_one_process): Rename to ...
19650 (linux_resume_one_lwp): ... this. Adjust.
19651 (linux_set_resume_request, linux_continue_one_thread)
19652 (linux_queue_one_thread, resume_status_pending_p)
19653 (usr_store_inferior_registers, regsets_store_inferior_registers)
19654 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19655 Adjust.
19656 * linux-low.h (get_process): Rename to ...
19657 (get_lwp): ... this. Adjust.
19658 (get_thread_process): Rename to ...
19659 (get_thread_lwp): ... this. Adjust.
19660 (get_process_thread): Rename to ...
19661 (get_lwp_thread): ... this. Adjust.
19662 (struct process_info): Rename to ...
19663 (struct lwp_info): ... this.
19664 (all_processes): Rename to ...
19665 (all_lwps): ... this.
19666 * proc-service.c (ps_lgetregs): Adjust.
19667 * thread-db.c (thread_db_create_event, find_one_thread)
19668 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19669
0b16c5cf
PA
196702009-03-14 Pedro Alves <pedro@codesourcery.com>
19671
19672 * server.c (handle_query): Handle "qAttached".
19673
32de4b9d
NS
196742009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19675
19676 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19677 GPLv3, update license URL.
19678
2aecd87f
DE
196792009-03-01 Doug Evans <dje@google.com>
19680
93efd302 19681 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19682 (server_h): Add gdb_signals.h.
19683 (signals.o): Update.
19684 * server.h (target_signal_from_host,target_signal_to_host_p)
19685 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19686
86b1f9c5
PM
196872009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19688
19689 * remote-utils.c (getpkt): Also generate remote-debug
19690 information if noack_mode is set.
19691
4aa995e1
PA
196922009-02-06 Pedro Alves <pedro@codesourcery.com>
19693
19694 * server.c (handle_query): Report qXfer:siginfo:read and
19695 qXfer:siginfo:write as supported and handle them.
19696 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19697 * linux-low.c (linux_xfer_siginfo): New.
19698 (linux_target_ops): Set it.
19699
62709adf
PA
197002009-01-26 Pedro Alves <pedro@codesourcery.com>
19701
19702 * server.c (gdbserver_usage): Mention --remote-debug.
19703 (main): Accept '--remote-debug' switch.
19704
aef93bd7
DE
197052009-01-18 Doug Evans <dje@google.com>
19706
19707 * regcache.c (new_register_cache): No need to check result of xcalloc.
19708 * server.c (handle_search_memory): Back out calls to xmalloc,
19709 result is checked and error is returned to user upon failure.
19710 (handle_query): Ditto. Add more checks for result of malloc.
19711 (handle_v_cont): Check result of malloc, report error back to
19712 user upon failure.
19713 (handle_v_run): Ditto. Call freeargv.
19714 * server.h (freeargv): Declare.
19715 * utils.c (freeargv): New fn.
19716
54363045
DE
197172009-01-15 Doug Evans <dje@google.com>
19718
f626972c
DE
19719 * gdbreplay.c (perror_with_name): Make arg const char *.
19720 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19721 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19722 * utils.c (perror_with_name): Make arg const char *.
54363045 19723
18aae699
PA
197242009-01-14 Pedro Alves <pedro@codesourcery.com>
19725
19726 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19727 when handling a EXIT_PROCESS_DEBUG_EVENT.
19728
ff703abe
JB
197292009-01-06 Joel Brobecker <brobecker@adacore.com>
19730
19731 * gdbreplay.c (gdbreplay_version): Update copyright year.
19732 * server.c (gdbserver_version): Likewise.
19733
f21cc1a2 197342009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19735
19736 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19737 (handle_extended_wait): Improve comment.
0e21c1ec 19738
bca929d3
DE
197392008-12-13 Doug Evans <dje@google.com>
19740
19741 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19742 * server.h (ATTR_MALLOC): New macro.
19743 (xmalloc,xcalloc,xstrdup): Declare.
19744 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19745 * inferiors.c: Ditto.
19746 * linux-low.c: Ditto.
19747 * mem-break.c: Ditto.
19748 * regcache.c: Ditto.
19749 * remote-utils.c: Ditto.
19750 * server.c: Ditto.
19751 * target.c: Ditto.
19752 * win32-low.c: Ditto.
19753
97438e3f
DE
197542008-12-12 Doug Evans <dje@google.com>
19755
896c7fbb
DE
19756 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19757 in debugging printf.
19758
97438e3f
DE
19759 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19760
e3b886f8
DE
197612008-12-09 Doug Evans <dje@google.com>
19762
19763 * linux-low.h (struct process_info): Delete member tid, unused.
19764 * thread-db.c (find_one_thread): Update.
19765 (maybe_attach_thread): Update.
19766
07e059b5
VP
197672008-12-02 Pedro Alves <pedro@codesourcery.com>
19768
889bf7c5
PA
19769 * target.h (struct target_ops): Add qxfer_osdata member.
19770 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19771 and dirent.h.
19772 (linux_qxfer_osdata): New functions.
19773 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19774 callback.
19775 * server.c (handle_query): Handle "qXfer:osdata:read:".
19776 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19777 (buffer_xml_printf): New functions.
19778 * server.h (struct buffer): New.
19779 (buffer_grow_str, buffer_grow_str0): New macros.
19780 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19781 (buffer_xml_printf): Declare.
07e059b5 19782
4cab47ab
DE
197832008-11-24 Doug Evans <dje@google.com>
19784
19785 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19786
f142445f
DJ
197872008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19788
19789 * server.c (handle_v_run): Always use the supplied argument list.
19790
d0107bb6 197912008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19792
d0107bb6
BW
19793 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19794 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19795
2c4ad781
TJB
197962008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19797
19798 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19799 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19800 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19801 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19802 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19803 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19804 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19805 XML target descriptions.
19806 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19807 when inferior is running on an ISA 2.05 or later processor. Add
19808 special case to return offset for full 64-bit slot of FPSCR when
19809 in 32-bits.
19810
dfb64f85
DJ
198112008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19812
19813 * Makefile.in (SFILES, clean): Added sparc64 files.
19814 (reg-sparc64.o, reg-sparc64.c): New.
19815 * configure.srv (sparc*-*-linux*): New configuration.
19816 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19817 syscall arguments for SPARC.
19818 (regsets_store_inferior_registers): Likewise.
19819 * linux-sparc-low.c: New file.
19820
66b6e1dd
DE
198212008-10-21 Doug Evans <dje@google.com>
19822
19823 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19824 (READLINE_DIR,READLINE_DEP): Delete.
19825 (INTERNAL_CFLAGS): Update.
19826 (LINTFLAGS): Update.
19827
9b710a42
PA
198282008-10-10 Pedro Alves <pedro@codesourcery.com>
19829
19830 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19831 whole argv from the last run, not just argv[0].
19832
5822d809
PA
198332008-09-08 Pedro Alves <pedro@codesourcery.com>
19834
19835 * regcache.c (new_register_cache): Return NULL if the register
19836 cache size isn't known yet.
19837 (free_register_cache): Avoid dereferencing a NULL regcache.
19838
74aac56f
DJ
198392008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19840
19841 * configure.srv: Merge MIPS and MIPS64.
19842
400b20f5
MR
198432008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19844
19845 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19846
677c5bb1
LM
198472008-08-18 Luis Machado <luisgpm@br.ibm.com>
19848
19849 * Makefile.in: Add required vsx dependencies.
19850
19851 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19852 Declare init_registers_powerpc_vsx32l.
19853 Declare init_registers_powerpc_vsx64l.
19854 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19855 (ppc_arch_setup): Check for VSX in hwcap.
19856 (ppc_fill_vsxregset): New function.
19857 (ppc_store_vsxregset): New function.
19858 Add new VSX entry in regset_info target_regsets.
19859
19860 * configure.srv: Add new VSX dependencies.
19861
a6f3e723
SL
198622008-08-12 Pedro Alves <pedro@codesourcery.com>
19863
19864 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19865 (remote_open): Set or clear transport_is_reliable.
19866 (putpkt_binary): Don't expect acks in noack mode.
19867 (getpkt): Don't send ack/nac in noack mode.
19868 * server.c (handle_general_set): Handle QStartNoAckMode.
19869 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19870 qSupported.
19871 (main): Reset noack_mode on every connection.
19872 * server.h (noack_mode): Declare.
19873
a417dc56
RW
198742008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19875
19876 * Makefile.in (GDBREPLAY_OBS): New variable.
19877 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19878
3221518c
UW
198792008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19880 Daniel Jacobowitz <dan@codesourcery.com>
19881
19882 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19883 (usr_store_inferior_registers): Likewise.
19884 (regsets_store_inferior_registers): Likewise.
19885
ec56be1b
PA
198862008-07-31 Rolf Jansen <rj@surtec.com>
19887 Pedro Alves <pedro@codesourcery.com>
19888
19889 * configure.ac: Check for memmem declaration.
19890 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19891 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19892 (disable_packet_qfThreadInfo): Unconditionally compile.
19893 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19894 * configure, config.in: Regenerate.
19895
2fe5e3ff
DE
198962008-07-28 Doug Kwan <dougkwan@google.com>
19897
19898 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19899 (linux_write_memory): Remove declaration of errno.
19900
836acd6d
UW
199012008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19902
19903 * linux-low.c (handle_extended_wait): Do not use "status"
19904 variable uninitialized.
19905
aeba519e
PA
199062008-07-07 Pedro Alves <pedro@codesourcery.com>
19907
19908 * server.c (handle_v_attach): Inhibit reporting dll changes.
19909
db42f210
PA
199102008-06-27 Pedro Alves <pedro@codesourcery.com>
19911
19912 * remote-utils.c (prepare_resume_reply): If requested, don't
19913 output "thread:TID" in the T stop reply.
19914
19915 * server.c (disable_packet_vCont, disable_packet_Tthread)
19916 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19917 (handle_query): If requested, disable support for qC, qfThreadInfo
19918 and qsThreadInfo.
19919 (handle_v_requests): If requested, disable support for vCont.
19920 (gdbserver_show_disableable): New.
19921 (main): Handle --disable-packet and --disable-packet=LIST.
19922
19923 * server.h (disable_packet_vCont, disable_packet_Tthread)
19924 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19925
8e4c5421
CD
199262008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19927
19928 * server.c (gdbserver_usage): Mention --version.
19929
6e23a804
DJ
199302008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19931
19932 * Makefile.in (gdbreplay.o): New rule.
19933
90aa6a40
JM
199342008-06-06 Joseph Myers <joseph@codesourcery.com>
19935
19936 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19937 message, not gdbserver.
19938
c16158bc 199392008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19940 Nathan Sidwell <nathan@codesourcery.com>
19941 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19942
19943 * acinclude.m4: Include ../../config/acx.m4.
19944 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19945 * configure, config.in: Regenerate.
19946 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19947 * server.c (gdbserver_version): Print PKGVERSION.
19948 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19949 (main): Adjust gdbserver_usage calls.
19950 * gdbreplay.c (version, host_name): Add declarations.
19951 (gdbreplay_version, gdbreplay_usage): New.
19952 (main): Accept --version and --help options.
19953
aeb75bf5
DJ
199542008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19955
19956 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19957 (arm_breakpoint_at): Handle Thumb.
19958 (the_low_target): Add comment.
19959
76b233dd
UW
199602008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19961
19962 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19963
08388c79
DE
199642008-05-09 Doug Evans <dje@google.com>
19965
a3c83fae
DE
19966 * server.h (decode_search_memory_packet): Declare.
19967 * remote-utils.c (decode_search_memory_packet): New fn.
19968 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19969 (handle_search_memory): New fn.
19970 (handle_query): Process qSearch:memory packets.
19971
bb9c3d36
UW
199722008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19973
19974 * regcache.c (registers_length): Remove.
19975 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19976 full register packet.
19977 * regcache.h (registers_length): Remove prototype.
19978 * server.h (PBUFSIZ): Define to 16384.
19979
7284e1be
UW
199802008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19981
19982 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19983 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19984 powerpc-64l.o, and powerpc-altivec64l.o.
19985 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19986 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19987 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19988 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19989 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19990 to srv_xmlfiles.
19991
19992 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19993 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19994 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19995 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19996 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19997 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19998 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19999 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20000 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20001 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20002 (clean): Update.
20003
20004 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20005 (init_registers_powerpc_32l): ... this new prototype.
20006 (init_registers_powerpc_32): Remove, replace by ...
20007 (init_registers_powerpc_altivec32l): ... this new prototype.
20008 (init_registers_powerpc_e500): Remove, replace by ...
20009 (init_registers_powerpc_e500l): ... this new prototype.
20010 (init_registers_ppc64): Remove, replace by ...
20011 (init_registers_powerpc_64l): ... this new prototype.
20012 (init_registers_powerpc_64): Remove, replace by ...
20013 (init_registers_powerpc_altivec64l): ... this new prototype.
20014 (ppc_num_regs): Set to 73.
20015 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20016 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20017 (ppc_cannot_store_register): Handle orig_r3 and trap.
20018 (ppc_arch_setup): Update init_registers_... calls.
20019 (ppc_fill_gregset): Handle orig_r3 and trap.
20020
20021 * inferiors.c (clear_inferiors): Reset current_inferior.
20022
fdc59709
PB
200232008-04-23 Paolo Bonzini <bonzini@gnu.org>
20024
889bf7c5
PA
20025 * acinclude.m4: Add override.m4.
20026 * configure: Regenerate.
fdc59709 20027
c9b2f845
UW
200282008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20029
20030 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20031 initial call to init_register_ppc64.
20032
550512b8
UW
200332008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20034
43aaf8b6
PA
20035 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20036 single powerpc*-*-linux* case.
550512b8
UW
20037 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20038
b6430ec3
UW
200392008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20040
20041 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20042 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20043 from reg_xmlfiles.
20044 * linux-ppc-low.c: Include <elf.h>.
20045 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20046 (ppc_hwcap): New global variable.
20047 (ppc_regmap): Remove __SPE__ #ifdef sections.
20048 (ppc_regmap_e500): New global variable.
20049 (ppc_cannot_store_register): Update __SPE__ special case.
20050 (ppc_get_hwcap): New function.
20051 (ppc_arch_setup): Use it to determine whether inferior supports
20052 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20053 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20054 Do not access registers if target does not support AltiVec.
20055 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20056 Do not access registers if target does not support SPE.
20057 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20058
52fa2412
UW
200592008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20060
20061 * linux-low.c (disabled_regsets, num_regsets): New.
20062 (use_regsets_p): Delete.
20063 (linux_wait_for_process): Clear disabled_regsets.
20064 (regsets_fetch_inferior_registers): Check and set it.
20065 (regsets_store_inferior_registers): Likewise.
20066 (linux_fetch_registers, linux_store_registers): Do not use
20067 use_regsets_p.
20068 (initialize_low): Allocate disabled_regsets.
20069
e28b3332
DJ
200702008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20071
20072 * Makefile.in (LIBOBJS): New.
20073 (OBS): Use LIBOBJS.
20074 (memmem.o): New rule.
20075 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20076 * configure: Regenerated.
20077
4536995d
UW
200782008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20079
20080 * server.c (handle_query): Never return "unsupported" for
20081 qXfer:features:read queries.
20082
221c031f
UW
200832008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20084
20085 * server.c (get_features_xml): Fix inverted condition.
20086 (handle_query): Always support qXfer:feature:read.
20087
ccd213ac
DJ
200882008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20089
20090 * server.c (wrapper_argv): New.
20091 (start_inferior): Handle wrapper_argv. If set, expect an extra
20092 trap.
20093 (gdbserver_usage): Document --wrapper.
20094 (main): Parse --wrapper.
20095
6fe305f7
UW
200962008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20097
20098 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20099 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20100 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20101 (ppc_set_pc): Likewise.
20102 (ppc_arch_setup): New function.
20103 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20104 of collect_register.
889bf7c5 20105 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20106
5b0a002e
UW
201072008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20108
20109 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20110 instead of linux-ppc64-low.o.
20111 * linux-ppc64-low.c: Remove file.
20112 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20113 (linux-ppc64-low.o): Remove rule.
20114
20115 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20116 (init_registers_powerpc_64): Likewise.
20117 (ppc_regmap): Conditionally define depending on __powerpc64__.
20118 (ppc_cannot_store_register): Do not special-case "fpscr" when
20119 compiled on __powerpc64__.
20120 (ppc_collect_ptrace_register): New function.
20121 (ppc_supply_ptrace_register): New function.
20122 (ppc_breakpoint): Change type to "unsigned int".
20123 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20124 (the_low_target): Conditionally provide initializers for the
889bf7c5 20125 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20126 collect_ptrace_register and supply_ptrace_register members.
20127
9b4b61c8
UW
201282008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20129
20130 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20131 * server.c (gdbserver_xmltarget): Define.
20132 (get_features_xml): Use it to replace "target.xml" and arch_string.
20133
20134 * configure.srv: Remove srv_xmltarget. Add XML files that were
20135 mentioned there to srv_xmlfiles instead. Remove conditional tests
20136 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20137 srv_xmlfiles and srv_regobj to include all possible choices.
20138 * configure.ac (srv_xmltarget): Remove.
20139 (srv_xmlfiles): Do not add "target.xml".
20140 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20141 checks for supplementary target information.
20142 * configure: Regenerate.
20143 * Makefile.in (XML_TARGET): Remove.
20144 (target.xml): Remove rule.
20145 (clean): Do not clean up target.xml.
20146 (.PRECIOUS): Do not mention target.xml.
20147
20148 * target.h (struct target_ops): Remove arch_string member.
20149 * linux-low.c (linux_arch_string): Remove.
20150 (linux_target_ops): Remove arch_string initializer.
20151 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20152 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20153 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20154 * spu-low.c (spu_arch_string): Remove.
20155 (spu_target_ops): Remove arch_string initializer.
20156 * win32-low.c (win32_arch_string): Remove.
20157 (win32_target_ops): Remove arch_string initializer.
20158 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20159 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20160 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20161
ee1a7ae4
UW
201622008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20163
20164 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20165 by collect_ptrace_register and supply_ptrace_register hooks.
20166 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20167 instead of checking for the_low_target.left_pad_xfer.
20168 (usr_store_inferior_registers): Use collect_ptrace_register callback
20169 instead of checking for the_low_target.left_pad_xfer.
20170
20171 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20172 (s390_supply_ptrace_register): Likewise.
20173 (s390_fill_gregset): Call s390_collect_ptrace_register.
20174 (the_low_target): Update.
20175
20176 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20177 (ppc_supply_ptrace_register): Likewise.
20178 (the_low_target): Update.
20179
20180 * linux-i386-low.c (the_low_target): Update.
20181 * linux-x86-64-low.c (the_low_target): Update.
20182
d61ddec4
UW
201832008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20184
20185 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20186 reg-s390.o and reg-s390x.o.
20187
20188 * linux-low.c (new_inferior): New global variable.
20189 (linux_create_inferior, linux_attach): Set it.
20190 (linux_wait_for_process): Call the_low_target.arch_setup after the
20191 target has stopped for the first time.
20192 (initialize_low): Do not call the_low_target.arch_setup.
20193
20194 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20195 (s390_set_pc): Likewise.
20196 (s390_arch_setup): New function.
20197 (the_low_target): Use s390_arch_setup as arch_setup routine.
20198
20199 * regcache.c (realloc_register_cache): New function.
20200 (set_register_cache): Call it for each existing regcache.
20201
d05b4ac3
UW
202022008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20203
20204 * server.h (init_registers): Remove prototype.
20205
20206 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20207 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20208 instead of init_registers ().
20209 * linux-arm-low.c (init_registers_arm): Add prototype.
20210 (init_registers_arm_with_iwmmxt): Likewise.
20211 (the_low_target): Add initializer for arch_setup field.
20212 * linux-cris-low.c (init_registers_cris): Add prototype.
20213 (the_low_target): Add initializer for arch_setup field.
20214 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20215 (the_low_target): Add initializer for arch_setup field.
20216 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20217 (the_low_target): Add initializer for arch_setup field.
20218 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20219 (the_low_target): Add initializer for arch_setup field.
20220 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20221 (the_low_target): Add initializer for arch_setup field.
20222 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20223 (the_low_target): Add initializer for arch_setup field.
20224 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20225 (init_registers_mips64_linux): Likewise.
20226 (the_low_target): Add initializer for arch_setup field.
20227 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20228 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20229 (the_low_target): Add initializer for arch_setup field.
20230 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20231 (init_registers_powerpc_64): Likewise.
20232 (the_low_target): Add initializer for arch_setup field.
20233 * linux-s390-low.c (init_registers_s390): Add prototype.
20234 (init_registers_s390x): Likewise.
20235 (the_low_target): Add initializer for arch_setup field.
20236 * linux-sh-low.c (init_registers_sh): Add prototype.
20237 (the_low_target): Add initializer for arch_setup field.
20238 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20239 (the_low_target): Add initializer for arch_setup field.
20240 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20241 (the_low_target): Add initializer for arch_setup field.
20242
20243 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20244 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20245 instead of init_registers ().
20246 * win32-arm-low.c (init_registers_arm): Add prototype.
20247 (the_low_target): Add initializer for arch_setup field.
20248 * win32-i386-low.c (init_registers_i386): Add prototype.
20249 (the_low_target): Add initializer for arch_setup field.
20250
20251 * spu-low.c (init_registers_spu): Add prototype.
20252 (initialize_low): Call initialie_registers_spu () instead of
20253 initialize_registers ().
20254
fd96d250
PA
202552008-02-19 Pedro Alves <pedro@codesourcery.com>
20256
20257 * server.c (handle_v_requests): When handling the vRun and vAttach
20258 packets, if already debugging a process, don't kill it. Return an
20259 error instead.
20260
d41b6bb4
DJ
202612008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20262
20263 * server.c (handle_query): Correct length check.
20264
5ac588cf
PA
202652008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20266
20267 * win32-low.c (do_initial_child_stuff): Add process handle
20268 parameter. Set current_process_handle and current_process_id from the
20269 parameters. Clear globals.
20270 (win32_create_inferior): Don't set current_process_handle and
20271 current_process_id here. Instead pass them on the call to
20272 do_initial_child_stuff.
20273 (win32_attach): Likewise.
20274 (win32_clear_inferiors): New.
20275 (win32_kill): Don't close the current process handle or the
20276 current thread handle here. Instead call win32_clear_inferiors.
20277 (win32_detach): Don't open a new handle to the process. Call
20278 win32_clear_inferiors.
20279 (win32_join): Don't rely on current_process_handle; open a new
20280 handle using the process id.
20281 (win32_wait): Call win32_clear_inferiors when the inferior process
20282 has exited.
20283
ecd7ecbc
DJ
202842008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20285
20286 * server.c (monitor_show_help): Add "exit".
20287
1525d545
MG
202882008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20289
ecd7ecbc 20290 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20291 (clean): Add reg-xtensa.c.
20292 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20293 * configure.srv (xtensa*-*-linux*) New target.
20294 * linux-xtensa-low.c: New.
20295 * xtensa-xtregs.c: New.
1525d545 20296
59a016f0
PA
202972008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20298
20299 * hostio.c: Don't include errno.h.
20300 (errno_to_fileio_errno): Move to hostio-errno.
20301 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20302 error number outputting to the target->hostio_last_error callback.
20303 (hostio_packet_error): Use FILEIO_EINVAL directly.
20304 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20305 calls to hostio_error.
20306 * hostio-errno.c: New.
20307 * server.h (hostio_last_error_from_errno): Declare.
20308 * target.h (target_ops): Add hostio_last_error member.
20309 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20310 as hostio_last_error handler.
889bf7c5 20311 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20312 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20313 (wince_hostio_last_error): New functions.
20314 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20315 as hostio_last_error handler.
20316 (win32_target_ops) [!_WIN32_WCE]: Register
20317 hostio_last_error_from_errno as hostio_last_error handler.
20318 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20319 (hostio-errno.o): New rule.
20320 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20321 * configure.srv (srv_hostio_err_objs): New variable. Default to
20322 hostio-errno.o.
20323 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20324 * configure: Regenerate.
20325
2d717e4f
DJ
203262008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20327
20328 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20329 (linux_kill, linux_detach): Clean up the process list.
20330 * remote-utils.c (remote_open): Improve port number parsing.
20331 (putpkt_binary, input_interrupt): Only send interrupts if the target
20332 is running.
20333 * server.c (extended_protocol): Make static.
20334 (attached): Define earlier.
20335 (exit_requested, response_needed, program_argv): New variables.
20336 (target_running): New.
20337 (start_inferior): Clear attached here.
20338 (attach_inferior): Set attached here.
20339 (require_running): Define.
20340 (handle_query): Use require_running and target_running. Implement
20341 "monitor exit".
20342 (handle_v_attach, handle_v_run): New.
20343 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20344 (gdbserver_usage): Update.
20345 (main): Redo argument parsing. Handle --debug and --multi. Handle
20346 --attach along with other options or after the port. Save
20347 program_argv. Support no initial program. Resynchronize
20348 communication with GDB after an error. Handle "monitor exit".
20349 Use require_running and target_running. Always allow the extended
20350 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20351 restart in extended mode.
20352 * README: Refer to the GDB manual. Update --attach usage.
20353
7407e2de
AS
203542007-12-20 Andreas Schwab <schwab@suse.de>
20355
20356 * linux-low.c (STACK_SIZE): Define.
20357 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20358 (linux_test_for_tracefork): Likewise.
20359
b65d95c5
DJ
203602007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20361
20362 * linux-low.c (linux_wait_for_event): Update messages. Do not
20363 reinsert auto-delete breakpoints.
20364 * mem-break.c (struct breakpoint): Change return type of handler to
20365 int.
20366 (set_breakpoint_at): Update handler type.
20367 (reinsert_breakpoint_handler): Return 1 instead of calling
20368 delete_breakpoint.
20369 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20370 setting a new one.
20371 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20372 * mem-break.h (set_breakpoint_at): Update handler type.
20373 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20374 * win32-low.c (auto_delete_breakpoint): New.
20375 (get_child_debug_event): Use it.
20376
4e799345
DJ
203772007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20378
20379 * configure.ac: Check for pread and pwrite.
20380 * hostio.c (handle_pread): Fall back to lseek and read.
20381 (handle_pwrite): Fall back to lseek and write.
20382 * config.in, configure: Regenerated.
20383
27524b67
DJ
203842007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20385
20386 * server.c (myresume): Add own_buf argument.
20387 (main): Update calls.
20388
a20d5e98
DJ
203892007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20390
20391 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20392 * remote-utils.c (remote_open): Do not call disable_async_io.
20393 (block_async_io): Delete.
20394 (unblock_async_io): Make static.
20395 (initialize_async_io): New.
20396 * server.c (handle_v_cont): Handle async I/O here.
20397 (myresume): Likewise. Move other common resume tasks here...
20398 (main): ... from here. Call initialize_async_io. Disable async
20399 I/O before the main loop.
20400 * server.h (initialize_async_io): Declare.
20401 (block_async_io, unblock_async_io): Delete prototypes.
20402 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20403
b79d787e
DJ
204042007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20405
20406 * remote-utils.c (readchar): Allow binary data in received messages.
20407
d97903b2
PA
204082007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20409
20410 * win32-low.c (attaching): New global.
20411 (win32_create_inferior): Clear the `attaching' global.
20412 (win32_attach): Set the `attaching' global.
20413 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20414 attaching. Only set a breakpoint at the entry point if not
20415 attaching.
20416
311de423
PA
204172007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20418
20419 * server.c (main): Don't report dll events on the initial
20420 connection on attaches.
20421
6c2d16d2
PA
204222007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20423
20424 * server.c (main): Relax numerical bases supported for the pid of
20425 the --attach command line argument.
20426
5ca906e6
PA
204272007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20428
20429 * win32-low.c (win32_attach): Call OpenProcess before
20430 DebugActiveProcess, not after. Add last error output to error
20431 call.
20432
9c6c8194
PA
204332007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20434
20435 * win32-low.c (win32_get_thread_context)
20436 (win32_set_thread_context): New functions.
20437 (thread_rec): Use win32_get_thread_context.
20438 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20439 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20440 field.
20441
4d5d1aaa
PA
204422007-12-03 Leo Zayas
20443 Pedro Alves <pedro_alves@portugalmail.pt>
20444
20445 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20446 global variables.
20447 (child_add_thread): Minor cleanup.
20448 (child_continue): Resume artificially suspended threads before
20449 calling ContinueDebugEvent.
20450 (suspend_one_thread): New.
20451 (fake_breakpoint_event): New.
20452 (get_child_debug_event): Change return type to int. Check here if
20453 gdb sent an interrupt request. If a soft interrupt was requested,
20454 fake a breakpoint event. Return 0 if there is no event to handle,
20455 and 1 otherwise.
20456 (win32_wait): Don't check here if gdb sent an interrupt request.
20457 Ensure there is a valid event to handle.
20458 (win32_request_interrupt): Add soft interruption method as last
20459 resort.
20460
c436e841
PA
204612007-12-03 Leo Zayas
20462 Pedro Alves <pedro_alves@portugalmail.pt>
20463
20464 * win32-low.h (win32_thread_info): Add descriptions to the
20465 structure members. Replace `suspend_count' counter by a
20466 `suspended' flag.
20467 * win32-low.c (thread_rec): Update condition of when to get the
20468 context from the inferior. Rely on ContextFlags being set if it
20469 has already been retrieved. Only suspend the inferior thread if
20470 we haven't already. Warn if that fails.
20471 (continue_one_thread): s/suspend_count/suspended/. Only call
20472 ResumeThread once. Warn if that fails.
20473
e7b5fa67
PA
204742007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20475
20476 * win32-low.c (win32_wait): Don't read from the inferior when it
20477 has already exited.
20478
a385171d
PA
204792007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20480
20481 * Makefile.in (win32_low_h): New variable.
20482 (win32-low.o): Add dependency on $(win32_low_h).
20483 (win32-arm-low.o, win32-i386-low.o): New rules.
20484
f80c84b3
DJ
204852007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20486
20487 * hostio.c: Correct copyright year.
20488
a6b151f1
DJ
204892007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20490
20491 * Makefile.in (OBS): Add hostio.o.
20492 (hostio.o): New rule.
20493 * server.h (handle_vFile): Declare.
20494 * hostio.c: New file.
20495 * server.c (handle_v_requests): Take packet_len and new_packet_len
20496 for binary packets. Call handle_vFile.
20497 (main): Update call to handle_v_requests.
20498
f9387fc3
DJ
204992007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20500
20501 * linux-low.c: Include <sched.h>.
20502
51c2684e
DJ
205032007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20504
20505 * linux-low.c (linux_tracefork_grandchild): New.
20506 (linux_tracefork_child): Use clone.
20507 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20508
75f83163
JB
205092007-10-31 Joel Brobecker <brobecker@adacore.com>
20510
20511 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20512
da5898ce
DJ
205132007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20514
20515 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20516
24a09b5f
DJ
205172007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20518
20519 * inferiors.c (change_inferior_id): Delete.
20520 (add_pid_to_list, pull_pid_from_list): New.
20521 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20522 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20523 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20524 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20525 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20526 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20527 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20528 (using_threads): Always set to 1.
20529 (handle_extended_wait): New.
20530 (add_process): Do not set TID.
20531 (linux_create_inferior): Set must_set_ptrace_flags.
20532 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20533 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20534 (linux_thread_alive): Rename TID argument to LWPID.
20535 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20536 (linux_wait_for_event): Do not use TID or check using_threads. Update
20537 call to dead_thread_notify. Call handle_extended_wait.
20538 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20539 (send_sigstop): Delete sigstop_sent.
20540 (wait_for_sigstop): Avoid TID.
20541 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20542 (linux_test_for_tracefork): New.
20543 (linux_lookup_signals): Use thread_db_active and
20544 linux_supports_tracefork_flag.
20545 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20546 * linux-low.h (get_process_thread): Avoid TID.
20547 (struct process_ifo): Move thread_known and tid to the end. Remove
20548 sigstop_sent.
20549 (linux_attach_lwp, thread_db_init): Update prototypes.
20550 * server.h (change_inferior_id): Delete prototype.
20551 (add_pid_to_list, pull_pid_from_list): New prototypes.
20552 * thread-db.c (thread_db_use_events): New.
20553 (find_first_thread): Rename to...
20554 (find_one_thread): ...this. Update callers and messages. Do not
20555 call fatal. Check thread_db_use_events. Do not call
20556 change_inferior_id or new_thread_notify.
20557 (maybe_attach_thread): Update. Do not call new_thread_notify.
20558 (thread_db_init): Set thread_db_use_events. Check use_events.
20559 * utils.c (fatal, warning): Correct message prefix.
20560
30ed0a8f
DJ
205612007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20562
20563 * Makefile.in (clean): Remove new files.
20564 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20565 (powerpc-64.o, powerpc-64.c): New rules.
20566 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20567 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20568 with SPE.
20569 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20570 SPE targets.
20571 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20572 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20573 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20574 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20575 (target_regsets): Add AltiVec and SPE register sets.
20576 * configure.ac: Check for AltiVec and SPE.
20577 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20578 (ppc_fill_vrregset, ppc_store_vrregset): New.
20579 (target_regsets): Add AltiVec register set.
20580 * configure: Regenerated.
20581
fd462a61
DJ
205822007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20583
20584 * linux-low.c (O_LARGEFILE): Define.
20585 (linux_read_memory): Use /proc/PID/mem.
20586 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20587 * configure, config.in: Regenerated.
20588
69f223ed
DJ
205892007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20590
20591 * linux-low.c (linux_wait_for_event): Do not pass signals while
20592 single-stepping.
20593
aec18585
PA
205942007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20595
20596 * win32-low.c (create_process): New.
20597 (win32_create_inferior): Use create_process instead of
20598 CreateProcess. If create_process failed retry appending an ".exe"
20599 suffix. Store the GetLastError result immediatelly after
20600 create_process calls and use it on the call to error.
20601
34d86ddd
PA
206022007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20603
20604 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20605
5a0e3bd0
JB
206062007-08-23 Joel Brobecker <brobecker@adacore.com>
20607
20608 * configure.ac: Switch license to GPLv3.
20609
f88c79e6
MS
206102007-08-01 Michael Snyder <msnyder@access-company.com>
20611
20612 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20613
6b3d9b83
PA
206142007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20615
20616 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20617 typedef.
20618 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20619 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20620 CloseToolhelp32Snapshot.
20621 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20622 CloseToolhelp32Snapshot.
20623
c588c53c
MS
206242007-07-27 Michael Snyder <michael.snyder@access-company.com>
20625
20626 * server.c (main): Check for inferior exit before main loop.
20627
aa0403d9
PA
206282007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20629
20630 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20631 instead of on tmp_desc.
20632
255e7678
DJ
206332007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20634 Daniel Jacobowitz <dan@codesourcery.com>
20635
20636 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20637 (add_thread): Minor cleanups.
20638 (clear_inferiors): Move lower in the file. Clear the DLL
20639 list.
20640 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20641 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20642 (xml_escape_text): New.
20643 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20644 for qSupported.
20645 (handle_v_cont): Report errors.
20646 (gdbserver_version): Update.
20647 (main): Correct size of own_buf. Do not report initial DLL events.
20648 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20649 (unloaded_dll, xml_escape_text): New.
20650 * win32-low.c (enum target_waitkind): Update comments.
20651 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20652 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20653 (win32_EnumProcessModules, win32_GetModuleInformation)
20654 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20655 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20656 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20657 (win32_Module32First, win32_Module32Next, load_toolhelp)
20658 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20659 (get_child_debug_event): Handle DLL events.
20660 (win32_wait): Likewise.
20661
0d37add9
DJ
206622007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20663
20664 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20665 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20666
45e2715e
PA
206672007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20668
20669 * win32-low.c (handle_output_debug_string): Ignore event if not
20670 waiting.
20671
c5674cf1
PA
206722007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20673
20674 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20675
2bbe3cc1
DJ
206762007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20677
20678 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20679
ae13219e
DJ
206802007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20681
20682 * inferiors.c (change_inferior_id): Add comment.
20683 * linux-low.c (check_removed_breakpoint): Add an early
20684 prototype. Improve debug output.
20685 (linux_attach): Doc update.
20686 (linux_detach_one_process, linux_detach): Clean up before releasing
20687 each process.
20688 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20689 * linux-low.h (struct process_info): Doc improvement.
20690 * mem-break.c (delete_all_breakpoints): New.
20691 * mem-break.h (delete_all_breakpoints): New prototype.
20692 * thread-db.c (find_first_thread): New.
20693 (thread_db_create_event): Call it instead of
20694 thread_db_find_new_threads. Clean up unused variables.
20695 (maybe_attach_thread): Remove first thread handling.
20696 (thread_db_find_new_threads): Use find_first_thread.
20697 (thread_db_get_tls_address): Likewise.
20698
4105de34
DJ
206992007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20700
20701 * thread-db.c (thread_db_find_new_threads): Add prototype.
20702 (thread_db_create_event): Check for the main thread before adding
20703 a new thread.
20704 (maybe_attach_thread): Only enable event reporting if TID == 0.
20705 (thread_db_get_tls_address): Check for new threads.
20706
2b876972
DJ
207072007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20708
20709 * linux-low.c (linux_create_inferior): Try execv before execvp.
20710 * spu-low.c (spu_create_inferior): Likewise.
20711
7a245884
DJ
207122007-06-13 Mike Frysinger <vapier@gentoo.org>
20713
20714 * linux-low.c (linux_create_inferior): Change execv to execvp.
20715 * spu-low.c (spu_create_inferior): Likewies.
20716
117ce543
DJ
207172007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20718
20719 * Makefile.in (clean): Clean new files instead of deleted ones.
20720 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20721 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20722 rules.
20723 * configure.srv: Specify XML files and new regformats for MIPS and
20724 MIPS64 GNU/Linux.
20725 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20726 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20727 an entry for the restart register.
20728 (mips_cannot_fetch_register, mips_cannot_store_register)
20729 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20730 register names to match the XML descriptions.
20731 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20732 restart register instead of $0.
20733
0e7f50da
UW
207342007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20735 Markus Deuling <deuling@de.ibm.com>
20736
20737 * remote-utils.c (decode_xfer_write): New function.
20738 * server.h (decode_xfer_write): Add prototype.
20739 * server.c (handle_query): Add PACKET_LEN argument. Support
20740 qXfer:spu:read and qXfer:spu:write packets.
20741 (main): Pass packet_len to handle_query.
20742 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20743 * target.h (target_ops): Add qxfer_spu.
20744
374c1d38
UW
207452007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20746
20747 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20748 accessing non-seekable spufs files.
20749
bb63802a
UW
207502007-05-16 Markus Deuling <deuling@de.ibm.com>
20751
889bf7c5 20752 * server.c (handle_query): Add reply for qC packet.
bb63802a 20753
7390519e
PA
207542007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20755 Leo Zayas <lerele@champenstudios@com>
20756
20757 * server.h (check_remote_input_interrupt_request): New function.
20758 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20759 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20760 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20761 (check_remote_input_interrupt_request): New function.
20762 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20763 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20764 winapi_GenerateConsoleCtrlEvent): New typedefs.
20765 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20766 to 250 ms.
20767 (win32_wait): Check for remote interrupt request
20768 with check_remote_input_interrupt_request.
20769 (win32_request_interrupt): New function.
20770 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20771
34b34921
PA
207722007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20773
20774 * win32-low.c (debug_registers_changed,
20775 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20776 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20777 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20778 (thread_rec): Get context using the low target.
20779 (child_add_thread): Call thread_added on the low target,
20780 which does the same thing.
20781 (regptr): Delete.
20782 (do_initial_child_stuff): Remove debug registers references.
20783 Set context using the low target. Resume threads after
20784 setting the contexts.
20785 (child_continue): Remove dead variable. Remove debug
20786 registers references.
20787 (child_fetch_inferior_registers): Go through the low target.
20788 (do_child_store_inferior_registers): Remove.
20789 (child_store_inferior_registers): Go through the low target.
20790 (win32_resume): Remove debug registers references.
20791 Set context using the low target.
20792 (handle_exception): Change return type to void. Don't record
20793 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20794 first chance exception.
889bf7c5 20795 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20796 goto loop. Always return after waiting for debug event.
20797 (win32_wait): Convert to switch statement. Handle spurious
20798 events.
20799
20800 * win32-i386-low.c (debug_registers_changed,
20801 debug_registers_used): New.
20802 (initial_stuff): Rename to ...
20803 (i386_initial_stuff): ... this. Clear debug registers
20804 state variables.
20805 (store_debug_registers): Delete.
20806 (i386_get_thread_context): New.
20807 (load_debug_registers): Delete.
20808 (i386_set_thread_context): New.
20809 (i386_thread_added): New.
20810 (single_step): Rename to ...
20811 (i386_single_step): ... this.
20812 (do_fetch_inferior_registers): Rename to ...
20813 (i386_fetch_inferior_register): ... this.
20814 (i386_store_inferior_register): New.
20815 (the_low_target): Adapt to new interface.
20816
20817 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20818 (arm_get_thread_context): New.
20819 (arm_set_thread_context): New.
20820 (regptr): New.
20821 (do_fetch_inferior_registers): Rename to ...
20822 (arm_fetch_inferior_register): ... this.
20823 (arm_store_inferior_register): New.
20824 (arm_wince_breakpoint): Reimplement as unsigned long.
20825 (arm_wince_breakpoint_len): Define.
20826 (the_low_target): Adapt to new interface.
20827
20828 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20829 load_debug_registers. Add get_thread_context, set_thread_context,
20830 thread_added and store_inferior_register. Rename
20831 fetch_inferior_registers to fetch_inferior_register.
20832 (regptr): Remove declaration.
20833
dd6953e1
PA
208342007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20835
20836 * linux-low.c (linux_detach): Change return type to int. Return 0.
20837 * spu-low.c (spu_detach): Likewise.
20838
444d6139
PA
208392007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20840
20841 * target.h (target_ops): Change return type of detach to int.
20842 Add join.
20843 (join_inferior): New.
20844 * server.c (main): Don't skip detach support on mingw32.
20845 If the inferior doesn't support detaching return error.
20846 Call join_inferior instead of using waitpid.
20847 * linux-low.c (linux_join): New.
20848 (linux_target_op): Add linux_join.
20849 * spu-low.c (spu_join): New.
20850 (spu_target_ops): Add spu_join.
20851 * win32-low.c (win32_detach): Adapt to new interface.
20852 Reopen current_process_handle before detaching. Issue a child
20853 resume before detaching.
20854 (win32_join): New.
20855 (win32_target_op): Add win32_join.
20856
1d5315fe
PA
208572007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20858
20859 * win32-low.c (win32-attach): Fix return value.
20860 * target.h (target_ops): Describe ATTACH return values.
20861
bf914831
PA
208622007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20863
20864 * win32-low.c (GETPROCADDRESS): Define.
20865 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20866 (winapi_DebugSetProcessKillOnExit): Likewise.
20867 (win32_create_inferior): Force usage of ansi CreateProcessA.
20868 (win32_attach): Use GETPROCADDRESS.
20869 (win32_detach): Likewise.
20870
f72f3e60
PA
208712007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20872
20873 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20874
ed50f18f
PA
208752007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20876
20877 * win32-low.c: Commit leftover changes from 2007-03-29.
20878
0c2ead7e
DJ
208792007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20880
20881 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20882 fields short instead of int. Add explicit padding.
20883 (i387_cache_to_fsave): Remove unnecessary casts.
20884 (i387_fsave_to_cache): Doc fix.
20885 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20886
73725ff3
DJ
208872007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20888
20889 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20890 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20891
d99f33d8
PA
208922007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20893
20894 * configure.srv (arm*-*-mingw32ce*): Move near the other
20895 arm targets.
20896
68070c10
PA
208972007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20898
2482afc6 20899 * configure.ac: Add errno checking.
68070c10
PA
20900 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20901 sys/file.h and malloc.h.
20902 (AC_CHECK_DECLS): Add perror.
20903 (srv_mingwce): Handle.
2482afc6 20904 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20905 win32-i386-low.o to srv_tgtobj.
20906 (i[34567]86-*-mingw*): Likewise.
20907 (arm*-*-mingw32ce*): Add case.
20908 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20909 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20910 [__MINGW32CE__] (strerror): New function.
20911 [__MINGW32CE__] (errno): Define to GetLastError.
20912 [__MINGW32CE__] (COUNTOF): New macro.
20913 (remote_open): Remove extra close call.
20914 * mem-break.c (delete_breakpoint_at): New function.
20915 * mem-break.h (delete_breakpoint_at): Declare.
20916 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20917 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20918 [USE_WIN32API] (read, write): Add char* casts.
20919 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20920 * server.h: Include wincecompat.h on Windows CE.
20921 [HAVE_ERRNO_H]: Check.
20922 (perror): Declare if not declared.
20923 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20924 (perror_with_name): Remove errno declaration.
20925 * wincecompat.h: New.
20926 * wincecompat.c: New.
20927 * win32-low.h: New.
20928 * win32-arm-low.c: New.
20929 * win32-i386-low.c: New.
20930 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20931 (OUTMSG2): Make it safe.
20932 (_T): New macro.
20933 (COUNTOF): New macro.
20934 (NUM_REGS): Get it from the low target.
20935 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20936 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20937 (thread_rec): Let low target handle debug registers.
20938 (child_add_thread): Likewise.
20939 (child_init_thread_list): Likewise.
20940 (continue_one_thread): Likewise.
20941 (regptr): New.
20942 (do_child_fetch_inferior_registers): Move to ...
20943 * win32-i386-low.c: ... here, and rename to ...
20944 (do_fetch_inferior_registers): ... this.
889bf7c5 20945 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20946 Go through the low target.
20947 (do_child_store_inferior_registers): Use regptr.
20948 (strwinerror): New function.
20949 (win32_create_inferior): Handle Windows CE.
20950 Use strwinerror instead of strerror on Windows error
20951 codes. Add program to the error output.
20952 Don't close the main thread handle on Windows CE.
20953 (win32_attach): Use coredll.dll on Windows CE.
20954 (win32_kill): Close current process and current
20955 thread handles.
20956 (win32_detach): Use coredll.dll on Windows CE.
20957 (win32_resume): Let low target handle debug registers, and
20958 step request.
20959 (handle_exception): Add/Remove initial breakpoint. Avoid
20960 non-existant WSTOPSIG on Windows CE.
20961 (win32_read_inferior_memory): Cast to remove warning.
20962 (win32_arch_string): Go through the low target.
20963 (initialize_low): Call set_breakpoint_data with the low
20964 target's breakpoint.
20965 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20966 FOP_REGNUM, mappings): Move to ...
20967 * win32-i386-low.c: ... here.
20968 * win32-low.c (win32_thread_info): Move to ...
20969 * win32-low.h: ... here.
20970 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20971 win32-arm-low.c and wincecompat.c.
20972 (all:): Add $EXEEXT.
20973 (install-only:): Likewise.
20974 (gdbserver:): Likewise.
20975 (gdbreplay:): Likewise.
20976 * config.in: Regenerate.
20977 * configure: Regenerate.
20978
41093d81
PA
209792007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20980
20981 * win32-low.c: Rename typedef thread_info to
20982 win32_thread_info throughout.
20983
544afa54
PA
209842007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20985
20986 * win32-i386-low.c: Rename to ...
20987 * win32-low.c: ... this.
20988 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20989 * Makefile.in: Likewise.
20990
bce7165d
PA
209912007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20992
20993 * remote-utils.c (monitor_output): Constify msg parameter.
20994 * server.h (monitor_output): Likewise.
20995 * win32-i386-low.c (handle_output_debug_string): New.
20996 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20997 handle_output_debug_string.
20998 (get_child_debug_event): Likewise.
20999
506c7aa0
DJ
210002007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21001
21002 * server.c (main): Correct strtoul check.
21003
42c81e2a
DJ
210042007-03-27 Jon Ringle <jon@ringle.org>
21005
21006 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21007
9453113a
DJ
210082007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21009
21010 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21011
64a69107
DJ
210122007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21013
21014 * terminal.h: Check HAVE_SGTTY_H.
21015
210162007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21017
21018 * remote-utils.c (remote_open): Print out the assigned port number.
21019
c74d0ad8
DJ
210202007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21021
21022 * remote-utils.c (monitor_output): New function.
21023 * server.c (debug_threads): Define here.
21024 (monitor_show_help): New function.
21025 (handle_query): Handle qRcmd.
21026 (main): Do not handle 'd' packet.
21027 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21028 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21029 of debug_threads.
21030
de7c3b4a
PA
210312007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21032
21033 * Makefile.in (EXEEXT): New.
21034 (clean): Use $(EXEEXT).
21035
ef57601b
PA
210362007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21037
21038 * target.h (target_ops): Rename send_signal to request_interrupt,
21039 and remove enum target_signal parameter.
21040 * linux-low.c (linux_request_interrupt): Rename from
21041 linux_send_signal, and always send SIGINT.
21042 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21043 and always send SIGINT.
21044 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21045 of send_signal.
21046 (input_interrupt): Likewise.
21047
820f2bda
PA
210482007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21049
21050 * server.c (get_features_xml): Check if target implemented
21051 arch_string.
21052 * win32-i386-low.c (win32_arch_string): New.
21053 (win32_target_ops): Add win32_arch_string as arch_string member.
21054
ab39bf24
UW
210552007-02-22 Markus Deuling <deuling@de.ibm.com>
21056
21057 * spu-low.c (spu_arch_string): New.
21058 (spu_target_ops): Add spu_arch_string.
21059
61ff6e04
DJ
210602007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21061
21062 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21063 * configure.ac: Do not check for terminal.h.
21064 * configure, config.in: Regenerated.
21065
fb1e4ffc
DJ
210662007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21067
21068 * Makefile.in (OBS): Add $(XML_BUILTIN).
21069 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21070 (clean): Update.
21071 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21072 (arm-with-iwmmxt.c): New.
21073 * config.in, configure: Regenerate.
21074 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21075 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21076 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21077 (arm*-*-linux*): Add iWMMXt and regset support.
21078 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21079 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21080 (arm_store_wmmxregset, target_regsets): New.
21081 * server.c (get_features_xml): Take annex argument. Check builtin
21082 XML documents.
21083 (handle_query): Handle multiple annexes.
21084
0f48aa01
DJ
210852007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21086
21087 * remote-utils.c [USE_WIN32API] (read, write): Define.
21088 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21089 write.
21090
23181151
DJ
210912007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21092
21093 * linux-i386-low.c (the_low_target): Set arch_string.
21094 * linux-x86-64-low.c (the_low_target): Likewise.
21095 * linux-low.c (linux_arch_string): New.
21096 (linux_target_ops): Add it.
21097 * linux-low.h (struct linux_target_ops): Add arch_string.
21098 * server.c (write_qxfer_response): Use const void * for DATA.
21099 (get_features_xml): New.
21100 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21101 * target.h (struct target_ops): Add arch_string method.
21102
9d606399
DJ
211032007-01-03 Denis Pilat <denis.pilat@st.com>
21104 Daniel Jacobowitz <dan@codesourcery.com>
21105
21106 * linux-low.c (linux_kill): Handle being called with no threads.
21107 * win32-i386-low.c (win32_kill): Likewise.
21108 (get_child_debug_event): Clear current_process_handle.
21109
211102006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21111 Daniel Jacobowitz <dan@codesourcery.com>
21112
21113 * remote-utils.c (remote_open): Check the type of specified
21114 serial port devices before opening them.
21115 * server.c (main): Kill the inferior if an error occurs during
21116 the first remote_open.
21117
a5e13d24
DJ
211182006-12-05 Markus Deuling <deuling@de.ibm.com>
21119
21120 * README: Update supported targets.
21121
186947f7
DJ
211222006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21123
21124 * Makefile.in (clean): Remove reg-mips64.c.
21125 (reg-mips64.c, reg-mips64.o): New rules.
21126 * configure.srv: Handle mips64. Include regset support for mips.
21127 * linux-mips-low.c (union mips_register): New.
21128 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21129 (mips_breakpoint, mips_breakpoint_at): Use int.
21130 (mips_collect_register, mips_supply_register)
21131 (mips_collect_register_32bit, mips_supply_register_32bit)
21132 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21133 (mips_store_fpregset, target_regsets): New.
21134 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21135
a13e2c95
UW
211362006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21137
21138 * configure.srv: Add target "spu*-*-*".
21139 * Makefile.in (clean): Remove reg-spu.c.
21140 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21141 * spu-low.c: New file.
21142
cb7283db
DJ
211432006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21144
21145 * configure.ac: Correct td_thr_tls_get_addr test.
21146 * configure: Regenerated.
21147
89be2091
DJ
211482006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21149
21150 * linux-low.c (linux_wait_for_event): Reformat. Use the
21151 pass_signals array.
21152 * remote-utils.c (decode_address_to_semicolon): New.
21153 * server.c (pass_signals, handle_general_set): New.
21154 (handle_query): Mention QPassSignals for qSupported.
21155 (main): Call handle_general_set.
21156 * server.h (pass_signals, decode_address_to_semicolon): New.
21157
000ef4f0
DJ
211582006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21159
21160 * server.c (handle_query): Correct error handling for read_auxv.
21161
b7149293
UW
211622005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21163
21164 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21165 and srv_linux_thread_db to yes.
21166 * linux-s390-low.c (s390_fill_gregset): New function.
21167 (target_regsets): Define data structure.
21168
dae5f5cf
DJ
211692006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21170
21171 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21172 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21173 * config.in, configure: Regenerated.
21174 * inferiors.c (gdb_id_to_thread): New function.
21175 (gdb_id_to_thread_id): Use it.
21176 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21177 * linux-low.h (struct process_info): Add th member.
21178 (thread_db_get_tls_address): New prototype.
21179 * remote-utils.c (decode_address): Make non-static.
21180 * server.c (handle_query): Handle qGetTLSAddr.
21181 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21182 * target.h (struct target_ops): Add get_tls_address.
21183 * thread-db.c (maybe_attach_thread): Save the thread handle.
21184 (thread_db_get_tls_address): New.
21185
32ca6d61
DJ
211862006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21187
21188 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21189 (linux_resume_one_process): Take a siginfo_t *. Update all
21190 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21191 (struct pending_signals): Add a siginfo_t.
21192 (linux_wait_for_process): Always set last_status.
21193 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21194 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21195 * linux-low.h (struct process_info): Add last_status.
21196
5ffff7c1
DJ
211972006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21198
21199 * remote-utils.c (try_rle): New function.
21200 (putpkt_binary): Use it.
21201
8695c747
DJ
212022006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21203
21204 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21205 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21206 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21207 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21208 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21209 point registers.
21210
290fadea
RS
212112006-08-08 Richard Sandiford <richard@codesourcery.com>
21212
21213 * server.c (terminal_fd): New variable.
21214 (old_foreground_pgrp): Likewise.
21215 (restore_old_foreground_pgrp): New function.
21216 (start_inferior): Record the terminal file descriptor in terminal_fd
21217 and its original foreground group in old_foreground_pgrp. Register
21218 restore_old_foreground_pgrp with atexit().
21219
9f2e1e63
DJ
212202006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21221
21222 * server.c (handle_query): Correct qPart to qXfer.
21223
b80864fb
DJ
212242006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21225
21226 * configure.ac: Check for more headers which are missing on
21227 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21228 * configure.srv: Add Cygwin and mingw32.
21229 * remote-utils.c: Don't include headers unconditionally which
21230 are missing on mingw32. Include <winsock.h> for mingw32.
21231 (remote_open): Adjust for mingw32 support. Flush
21232 standard error after writing to it.
21233 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21234 (unblock_async_io, enable_async_io, disable_async_io)
21235 (readchar, getpkt): Update for Winsock support.
21236 (prepare_resume_reply): Expect a protocol signal number.
21237 * server.c: Disable <sys/wait.h> on mingw32.
21238 (start_inferior): Adjust for mingw32 support. Flush
21239 standard error after writing to it.
21240 (attach_inferior): Likewise. Use protocol signal
21241 numbers.
21242 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21243 and names.
21244 * win32-i386-low.c: New file.
21245 * Makefile.in (XM_CLIBS): Set.
21246 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21247 (win32-i386-low.o): New dependency rule.
21248 * linux-low.c (linux_wait): Use target signal numbers.
21249 * target.h (struct target_ops): Doc fix.
21250 * server.h (target_signal_to_name): New prototype.
21251 * gdbreplay.c: Don't include headers unconditionally which
21252 are missing on mingw32. Include <winsock.h> for mingw32.
21253 (remote_close, remote_open): Adjust for Winsock support.
21254 * configure, config.in: Regenerated.
21255
0876f84a
DJ
212562006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21257
21258 * server.c (decode_xfer_read, write_qxfer_response): New.
21259 (handle_query): Take a packet length argument. Handle
21260 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21261 the qSupported response.
21262 (main): Update call to handle_query.
21263
01f9e8fa
DJ
212642006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21265
21266 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21267 (putpkt_binary): Renamed from putpkt and adjusted for binary
21268 data.
21269 (putpkt): New wrapper for putpkt_binary.
21270 (readchar): Don't mask off the high bit.
21271 (decode_X_packet): New function.
21272 * server.c (main): Call putpkt_binary if a handler sets the packet
21273 length. Save the length of the incoming packet. Handle 'X'.
21274 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21275
be2a5f71
DJ
212762006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21277
21278 * server.c (handle_query): Handle qSupported.
21279
ea025f5f
DJ
212802006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21281
21282 * remote-utils.c (all_symbols_looked_up): New variable.
21283 (look_up_one_symbol): Check it.
21284 * server.h (look_up_one_symbol): New declaration.
21285 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21286
9308fc88
DJ
212872006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21288
21289 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21290 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21291 (PTRACE_GET_THREAD_AREA): Define.
21292 (ps_get_thread_area): New function.
21293
52fb6437
NS
212942006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21295
21296 * configure.srv (m68k*-*-uclinux*): New target.
21297 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21298 (linux_resume_one_process): Remove extraneous cast.
21299 (linux_read_offsets): New.
21300 (linux_target_op): Add linux_read_offsets on mmuless systems.
21301 * server.c (handle_query): Add qOffsets logic.
21302 * target.h (struct target_ops): Add read_offsets.
21303
21b0f40c
DJ
213042006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21305
21306 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21307 (PTRACE_GET_THREAD_AREA): Define.
21308 (ps_get_thread_area): New function.
21309 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21310 (linux-x86-64-low.o): Update.
21311
0050a760
DJ
213122006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21313
21314 * configure.ac: Remove checks for prfpregset_t.
21315 * gdb_proc_service.h: New file.
21316 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21317 new "gdb_proc_service.h".
21318 * proc-service.c: Likewise.
21319 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21320 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21321 * Makefile.in (gdb_proc_service_h): Updated.
21322 * configure, config.in: Regenerated.
21323
b92a518e
DJ
213242006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21325
21326 * remote-utils.c (prepare_resume_reply): Move declaration
21327 of gdb_id_from_wait to the top of the block.
21328
545587ee
DJ
213292006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21330
21331 * linux-low.c (regsets_store_inferior_registers): Read the regset
21332 from the target before filling it.
21333
9db87ebd
DJ
213342006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21335
21336 * server.c (attach_inferior): Return SIGTRAP for a successful
21337 attach.
21338
dd24457d
DJ
213392006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21340
21341 * Makefile.in (OBS): Add version.o.
21342 (STAGESTUFF): Delete.
21343 (version.o): Add dependencies.
21344 (version.c): Replace rule.
21345 (clean): Remove version.c.
21346 * server.c (gdbserver_version): New.
21347 (gdbserver_usage): Use printf.
21348 (main): Handle --version and --help.
21349 * server.h (version, host_name): Add declarations.
21350
6f0f660e
EZ
213512005-12-23 Eli Zaretskii <eliz@gnu.org>
21352
889bf7c5
PA
21353 * linux-arm-low.c:
21354 * linux-arm-low.c:
21355 * inferiors.c:
21356 * i387-fp.h:
21357 * i387-fp.c:
21358 * gdbreplay.c:
21359 * regcache.c:
21360 * proc-service.c:
21361 * mem-break.h:
21362 * mem-break.c:
21363 * linux-x86-64-low.c:
21364 * linux-sh-low.c:
21365 * linux-s390-low.c:
21366 * linux-ppc64-low.c:
21367 * linux-ppc-low.c:
21368 * linux-mips-low.c:
21369 * linux-m68k-low.c:
21370 * linux-m32r-low.c:
21371 * linux-low.h:
21372 * linux-low.c:
21373 * linux-ia64-low.c:
21374 * linux-i386-low.c:
21375 * linux-crisv32-low.c:
21376 * thread-db.c:
21377 * terminal.h:
21378 * target.h:
21379 * target.c:
21380 * server.h:
21381 * server.c:
21382 * remote-utils.c:
21383 * regcache.h:
21384 * utils.c:
21385 * Makefile.in:
21386 * configure.ac:
6f0f660e
EZ
21387 * gdbserver.1: Add (C) after Copyright. Update the FSF
21388 address.
21389
9d1fb177
DJ
213902005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21391
21392 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21393 (arm_breakpoint_at): Recognize both breakpoints.
21394 (the_low_target): Use the correct breakpoint instruction.
21395
011a70c2
DJ
213962005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21397
21398 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21399 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21400 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21401 (the_low_target): Update.
21402
7fb85e41
AS
214032005-10-25 Andreas Schwab <schwab@suse.de>
21404
21405 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21406
21407 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21408 (ia64_num_regs): Reduce to 462.
21409
3db0444b
DJ
214102005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21411
21412 * acinclude.m4: Correct quoting.
21413 * aclocal.m4: Regenerated.
21414
21415 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21416 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21417 (thread_db_init): Call thread_db_err_str.
21418 * configure.ac: Check for TD_VERSION.
21419 * config.in, configure: Regenerated.
21420
bee0189a
DJ
214212005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21422
21423 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21424
e9d25b98
DJ
214252005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21426
21427 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21428 is not available. Define HAVE_PTRACE_GETREGS if it is.
21429 * config.in, configure: Regenerated.
21430 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21431 * linux-i386-low.c, linux-m68k-low.c: Update to use
21432 HAVE_PTRACE_GETREGS.
21433 * linux-low.c (regsets_fetch_inferior_registers)
21434 (regsets_store_inferior_registers): Only return 0 if we processed
21435 GENERAL_REGS.
21436 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21437 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21438
a06660f7
DJ
214392005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21440
21441 * inferiors.c (struct thread_info): Add gdb_id.
21442 (add_thread): Add gdb_id argument.
21443 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21444 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21445 calls to add_thread.
21446 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21447 * server.c (handle_query): Use thread_to_gdb_id.
21448 (handle_v_cont, main): Use gdb_id_to_thread_id.
21449 * server.h (add_thread): Update prototype.
21450 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21451 prototypes.
21452
5a1f5858
DJ
214532005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21454
21455 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21456 left-padded registers.
21457 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21458 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21459
e122f1f5
SE
214602005-07-01 Steve Ellcey <sje@cup.hp.com>
21461
21462 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21463 * configure: Regenerate.
21464 * config.in: Regenerate.
21465 * server.h (NEED_DECLARATION_STRERROR):
21466 Replace with !HAVE_DECL_STRERROR.
21467
d592fa2f
DJ
214682005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21469
21470 * linux-low.c (linux_wait, linux_send_signal): Don't test
21471 an unsigned long variable for > 0 if it could be MAX_ULONG.
21472 * server.c (myresume): Likewise.
21473 * target.c (set_desired_inferior): Likewise.
21474
ccbd4912
MK
214752005-06-13 Mark Kettenis <kettenis@gnu.org>
21476
21477 * configure.ac: Simplify and improve check for socklen_t.
21478 * configure, config.in: Regenerate.
21479
f450004a
DJ
214802005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21481
21482 * acconfig.h: Remove.
21483 * configure.ac: Add a test for socklen_t. Use three-argument
21484 AC_DEFINE throughout.
21485 * config.in: Regenerated using autoheader 2.59.
21486 * configure: Regenerated.
21487
21488 * gdbreplay.c (socklen_t): Provide a default.
21489 (remote_open): Use socklen_t.
21490 * remote-utils.c (socklen_t): Provide a default.
21491 (remote_open): Use socklen_t.
21492 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21493 unsigned char.
21494
21495 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21496 char for buffers.
21497 * linux-low.c (linux_read_memory, linux_write_memory)
21498 (linux_read_auxv): Likewise.
21499 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21500 (check_mem_write): Likewise.
21501 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21502 Likewise.
21503 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21504 (registers_from_string, register_data): Likewise.
21505 * server.c (handle_query, main): Likewise.
21506 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21507 (decode_M_packet): Likewise.
21508 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21509 * target.h (struct target_ops): Update read_memory, write_memory,
21510 and read_auxv.
21511 (read_inferior_memory, write_inferior_memory): Update.
21512 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21513 to unsigned char *.
21514 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21515 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21516 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21517 linux-s390-low.c, linux-sh-low.c: Update for changes in
21518 read_inferior_memory and the_low_target->breakpoint.
21519
eee84df1
DJ
215202005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21521
21522 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21523 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21524 * configure.srv: Add powerpc64-*-linux*.
21525 * linux-ppc64-low.c: New file.
21526
45b134e5
OF
215272005-05-23 Orjan Friberg <orjanf@axis.com>
21528
21529 * linux-cris-low.c: New file with support for CRIS.
21530 * linux-crisv32-low.c: Ditto for CRISv32.
21531 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21532 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21533 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21534 reg-crisv32.o, and reg-crisv32.c to make rules.
21535 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21536 recognized targets.
21537
48d93c75
UW
215382005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21539
21540 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21541 of sizeof (PTRACE_XFER_TYPE).
21542 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21543
e013ee27
OF
215442005-05-12 Orjan Friberg <orjanf@axis.com>
21545
889bf7c5 21546 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21547 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21548 pointers for hardware watchpoint support.
21549 * linux-low.h (struct linux_target_ops): Ditto.
21550 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21551 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21552 to linux_target_ops.
21553 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21554 reply packet.
21555 * server.c (main): Recognize 'Z' and 'z' packets.
21556
b0ded00b
UW
215572005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21558
21559 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21560 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21561 (the_low_target): Add new members.
21562
8643e2ad
DJ
215632005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21564
21565 * proc-service.c (ps_lgetregs): Search all_processes instead of
21566 all_threads.
21567
fc620387
DJ
215682005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21569
21570 * server.c (start_inferior): Change return type to int.
21571 (attach_inferior): Change sigptr to int *.
21572 (handle_v_cont, handle_v_requests): Change signal to int *.
21573 (main): Change signal to int.
21574
215752005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21576
21577 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21578 * configure.srv: Add m32r*-*-linux*.
21579 * linux-m32r-low.c: New file.
21580
e0e76420
DJ
215812005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21582
21583 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21584
a1928bad
DJ
215852005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21586
21587 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21588 Take unsigned long arguments for PIDs.
21589 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21590 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21591 (wait_for_sigstop, linux_resume_one_process)
21592 (regsets_fetch_inferior_registers, linux_send_signal)
21593 (linux_read_auxv): Likewise. Update the types of variables holding
21594 PIDs. Update format string specifiers.
21595 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21596 * remote-utils.c (prepare_resume_reply): Likewise.
21597 * server.c (cont_thread, general_thread, step_thread)
21598 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21599 unsigned long.
21600 (handle_query): Update format specifiers.
21601 (handle_v_cont, main): Use strtoul for thread IDs.
21602 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21603 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21604 (general_thread, step_thread, thread_from_wait)
21605 (old_thread_from_wait): Update.
21606 * target.h (struct thread_resume): Use unsigned long for THREAD.
21607 (struct target_ops): Use unsigned long for arguments to attach and
21608 thread_alive.
21609
dcdb98d2
DJ
216102005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21611
21612 * acinclude.m4: Include bfd/bfd.m4 directly.
21613 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21614 <agriffis@toolchain.org>.
21615 * aclocal.m4, configure: Regenerated.
21616
bec39cab
AC
216172005-01-07 Andrew Cagney <cagney@gnu.org>
21618
21619 * configure.ac: Rename configure.in, require autoconf 2.59.
21620 * configure: Re-generate.
21621
434c4c77
DJ
216222004-12-08 Daniel Jacobowitz <dan@debian.org>
21623
21624 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21625 LIBS when finished.
21626 * aclocal.m4: Regenerated.
21627 * configure: Regenerated.
21628
db1d3e1b
AS
216292004-11-21 Andreas Schwab <schwab@suse.de>
21630
21631 * linux-m68k-low.c (m68k_num_gregs): Define.
21632 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21633 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21634 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21635 (m68k_breakpoint_at): New. Add to the_low_target.
21636
21637 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21638 srv_linux_thread_db to yes.
21639
43360365
JB
216402004-10-20 Joel Brobecker <brobecker@gnat.com>
21641
21642 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21643 (ARCH_SET_FS): Likewise.
21644 (ARCH_GET_FS): Likewise.
21645 (ARCH_GET_GS): Likewise.
21646
fd500816
DJ
216472004-10-16 Daniel Jacobowitz <dan@debian.org>
21648
21649 * linux-i386-low.c (ps_get_thread_area): New.
21650 * linux-x86-64-low.c (ps_get_thread_area): New.
21651 * linux-low.c: Include <sys/syscall.h>.
21652 (linux_kill_one_process): Don't kill the first thread here.
21653 (linux_kill): Kill the first thread here.
21654 (kill_lwp): New function.
21655 (send_sigstop, linux_send_signal): Use it.
21656 * proc-service.c: Clean up #ifdefs.
21657 (fpregset_info): Delete.
21658 (ps_lgetregs): Update and enable implementation.
21659 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21660 implementations.
21661 * remote-utils.c (struct sym_cache, symbol_cache): New.
21662 (input_interrupt): Print a clearer message.
21663 (async_io_enabled): New variable.
21664 (enable_async_io, disable_async_io): Use it. Update comments.
21665 (look_up_one_symbol): Use the symbol cache.
21666 * thread-db.c (thread_db_look_up_symbols): New function.
21667 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21668
f6de3c42
DJ
216692004-10-16 Daniel Jacobowitz <dan@debian.org>
21670
21671 * configure.in: Test for -rdynamic.
21672 * configure: Regenerated.
21673 * Makefile (INTERNAL_LDFLAGS): New.
21674 (gdbserver, gdbreplay): Use it.
21675
2c0fc042
AC
216762004-09-02 Andrew Cagney <cagney@gnu.org>
21677
21678 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21679
075b3282
DJ
216802004-03-23 Daniel Jacobowitz <drow@mvista.com>
21681
21682 * linux-low.c (linux_wait): Clear all_processes list also.
21683
fa6a77dc
DJ
216842004-03-12 Daniel Jacobowitz <drow@mvista.com>
21685
21686 * linux-low.c: Include <errno.h>. Remove extern declaration of
21687 errno.
21688
6d782a97
DJ
216892004-03-12 Daniel Jacobowitz <drow@mvista.com>
21690
21691 * gdbreplay.c, server.h, utils.c: Update copyright years.
21692
3a7fb99b
DJ
216932004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21694
21695 * server.c (main): Print child status or termination signal from
21696 variable 'signal', not 'sig'.
21697
c3e735a6
DJ
216982004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21699
21700 * linux-low.c (linux_read_memory): Change return type to
21701 int. Check for and return error from ptrace().
21702 * target.c (read_inferior_memory): Change return type to int. Pass
21703 back return status from the_target->read_memory().
21704 * target.h (struct target_ops): Adapt *read_memory() prototype.
21705 Update comment.
21706 (read_inferior_memory): Adapt prototype.
21707 * server.c (main): Return an error packet if
21708 read_inferior_memory() returns an error.
21709
a59d1c82
DJ
217102004-03-04 Daniel Jacobowitz <drow@mvista.com>
21711
21712 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21713 Unify with other clean targets.
21714
dc3f8883
DJ
217152004-02-29 Daniel Jacobowitz <drow@mvista.com>
21716
21717 * server.c (handle_v_cont): Call set_desired_inferior.
21718
89a208da
DJ
217192004-02-29 Daniel Jacobowitz <drow@mvista.com>
21720
21721 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21722
62ea82f5
DJ
217232004-02-29 Daniel Jacobowitz <drow@mvista.com>
21724
21725 * linux-low.c (linux_wait): Unblock async I/O.
21726 (linux_resume): Block and enable async I/O.
21727 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21728 * server.h (block_async_io, unblock_async_io): Add prototypes.
21729
6910d122
DJ
217302004-02-29 Daniel Jacobowitz <drow@mvista.com>
21731
21732 * remote-utils.c (remote_open): Print a status notice after
21733 opening a TCP port.
21734 * server.c (attach_inferior): Print a status notice after
21735 attaching.
21736
217372004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21738
21739 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21740
c89dc5d4
DJ
217412004-02-26 Daniel Jacobowitz <drow@mvista.com>
21742
21743 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21744 error packet.
21745 * server.c, target.h: Update copyright years.
21746
4b8dad4a
RM
217472004-02-25 Roland McGrath <roland@redhat.com>
21748
21749 * target.h (struct target_ops): New member `read_auxv'.
21750 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21751 * linux-low.c (linux_read_auxv): New function.
21752 (linux_target_ops): Initialize `read_auxv' member to that.
21753
d7446758
JB
217542004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21755
21756 Committed by Jim Blandy <jimb@redhat.com>.
21757
21758 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21759 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21760 instead of GPR_SIZE to distiguish s390 and s390x targets.
21761
5544ad89
DJ
217622004-01-31 Daniel Jacobowitz <drow@mvista.com>
21763
21764 * linux-low.c: Update copyright year.
21765 (check_removed_breakpoint): Clear pending_is_breakpoint.
21766 (linux_set_resume_request, linux_queue_one_thread)
21767 (resume_status_pending_p): New functions.
21768 (linux_continue_one_thread): Use process->resume.
21769 (linux_resume): Only resume threads if there are no pending events.
21770 * linux-low.h (struct process_info): Add resume request
21771 pointer.
21772
2a68b70e
DJ
217732004-01-30 Daniel Jacobowitz <drow@mvista.com>
21774
21775 * regcache.c (new_register_cache): Clear the allocated register
21776 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21777
64386c31
DJ
217782003-10-13 Daniel Jacobowitz <drow@mvista.com>
21779
21780 * linux-low.c (linux_resume): Take a struct thread_resume *
21781 argument.
21782 (linux_wait): Update call.
21783 (resume_ptr): New static variable.
21784 (linux_continue_one_thread): Renamed from
21785 linux_continue_one_process. Use resume_ptr.
21786 (linux_resume): Use linux_continue_one_thread.
21787 * server.c (handle_v_cont, handle_v_requests): New functions.
21788 (myresume): New function.
21789 (main): Handle 'v' case.
21790 * target.h (struct thread_resume): New type.
21791 (struct target_ops): Change argument of "resume" to struct
21792 thread_resume *.
21793 (myresume): Delete macro.
21794
c938e9b0
L
217952003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21796
21797 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21798 (uninstall): Support DESTDIR.
21799
7f313d07
BC
21800Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21801
21802 * configure.srv: Add xscale*linux copy of arm*linux entry.
21803
3b2fc2ea
DJ
218042003-07-24 Daniel Jacobowitz <drow@mvista.com>
21805
21806 * linux-arm-low.c (arm_reinsert_addr): New function.
21807 (the_low_target): Add arm_reinsert_addr.
21808
1c0a559e
MK
218092003-07-08 Mark Kettenis <kettenis@gnu.org>
21810
21811 * mem-break.c: Remove whitespace at end of file.
21812
43d5792c
DJ
218132003-06-28 Daniel Jacobowitz <drow@mvista.com>
21814
21815 * configure.in: Check whether we need to prototype strerror.
21816 * server.h: Optionally prototype strerror.
21817 * gdbreplay.c (perror_with_name): Use strerror.
21818 * linux-low.c (linux_attach_lwp): Use strerror.
21819 * utils.c (perror_with_name): Use strerror.
21820 * config.in, configure: Regenerated.
21821
c8a86edf
DJ
218222003-06-28 Daniel Jacobowitz <drow@mvista.com>
21823
21824 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21825 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21826
73d37363
DJ
218272003-06-20 Daniel Jacobowitz <drow@mvista.com>
21828
21829 * Makefile.in (SFILES): Update.
21830 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21831 low-sun3.c: Remove files.
21832
6ad8ae5c
DJ
218332003-06-17 Daniel Jacobowitz <drow@mvista.com>
21834
21835 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21836 (linux_detach_one_process, linux_detach): New functions.
21837 (linux_target_ops): Add linux_detach.
21838 * server.c (main): Handle 'D' packet.
21839 * target.h (struct target_ops): Add "detach" member.
21840 (detach_inferior): Define.
21841
1581182a
MK
218422003-06-13 Mark Kettenis <kettenis@gnu.org>
21843
21844 From Kelley Cook <kelleycook@wideopenwest.com>:
21845 * configure.srv: Accept i[34567]86 variants.
21846
e5379b03
DJ
218472003-06-05 Daniel Jacobowitz <drow@mvista.com>
21848
21849 * linux-low.c (linux_wait_for_event): Correct comment typos.
21850 (linux_resume_one_process): Call check_removed_breakpoint.
21851 (linux_send_signal): New function.
21852 (linux_target_ops): Add linux_send_signal.
21853 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21854 of kill.
21855 * target.h (struct target_ops): Add send_signal.
21856
2ff29de4
JB
218572003-05-29 Jim Blandy <jimb@redhat.com>
21858
21859 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21860 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21861 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21862 away part of the register's value.
21863
254787d4
DJ
218642003-03-26 Daniel Jacobowitz <drow@mvista.com>
21865
21866 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21867 (linux_wait_for_event, linux_init_signals): Likewise.
21868
94e10508
DJ
218692003-03-17 Daniel Jacobowitz <drow@mvista.com>
21870
21871 * configure.in: Check for stdlib.h.
21872 * configure: Regenerated.
21873 * config.in: Regenerated.
21874
4c0711e0
DJ
218752003-01-04 Andreas Schwab <schwab@suse.de>
21876
21877 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21878
ef66e766
AC
218792003-01-02 Andrew Cagney <ac131313@redhat.com>
21880
21881 * Makefile.in: Remove obsolete code.
21882
a1358604
DJ
218832002-11-20 Daniel Jacobowitz <drow@mvista.com>
21884
21885 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21886 defined(PT_FPR0_HI).
21887
23ce3b1c
DJ
218882002-11-17 Stuart Hughes <seh@zee2.com>
21889
21890 * linux-arm-low.c (arm_num_regs): Increase.
21891 (arm_regmap): Include status register.
21892
218932002-11-17 Daniel Jacobowitz <drow@mvista.com>
21894
21895 * linux-low.c (register_addr): Remove incorrect -1 check.
21896
a9fa9f7d
DJ
218972002-08-29 Daniel Jacobowitz <drow@mvista.com>
21898
21899 * linux-low.c (linux_create_inferior): Call setpgid. Return
21900 the new PID.
21901 (unstopped_p, linux_signal_pid): Remove.
21902 (linux_target_ops): Remove linux_signal_pid.
21903 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21904 global instead of target method.
21905 * target.h (struct target_ops): Remove signal_pid. Update comment
21906 for create_inferior.
21907 * server.c (signal_pid): New variable.
21908 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21909 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21910 (attach_inferior): Set signal_pid.
21911
17574093
DJ
219122002-08-23 Daniel Jacobowitz <drow@mvista.com>
21913
21914 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21915
219162002-08-20 Jim Blandy <jimb@redhat.com>
21917
21918 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21919 default for this.
21920
219212002-08-01 Andrew Cagney <cagney@redhat.com>
21922
21923 * Makefile.in: Make chill references obsolete.
21924
219252002-07-24 Kevin Buettner <kevinb@redhat.com>
21926
21927 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21928 * configure: Regenerate.
21929 * config.in: Regenerate.
21930
219312002-07-09 David O'Brien <obrien@FreeBSD.org>
21932
21933 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21934 (perror_with_name, remote_close, remote_open, expect, play): Static.
21935
219362002-07-04 Michal Ludvig <mludvig@suse.cz>
21937
4b8dad4a 21938 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21939 byte offsets instead of an array of indexes.
21940 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21941
219422002-06-13 Daniel Jacobowitz <drow@mvista.com>
21943
21944 * regcache.c: Add comment.
21945
219462002-06-11 Daniel Jacobowitz <drow@mvista.com>
21947
21948 * thread-db.c: New file.
21949 * proc-service.c: New file.
21950 * acinclude.m4: New file.
21951 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21952 proc-service.o, and thread-db.o.
21953 (linux-low.o): Add USE_THREAD_DB.
21954 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21955 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21956 * aclocal.m4: Regenerated.
21957 * config.in: Regenerated.
21958 * configure: Regenerated.
21959 * configure.in: Check for proc_service.h, sys/procfs.h,
21960 thread_db.h, and linux/elf.h headrs.
21961 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21962 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21963 Check for -lthread_db and thread support.
21964 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21965 PowerPC, and SuperH.
21966 * i387-fp.c: Constify arguments.
21967 * i387-fp.h: Likewise.
21968 * inferiors.c: (struct thread_info): Renamed from
21969 `struct inferior_info'. Remove PID member. Use generic inferior
21970 list header. All uses updated.
21971 (inferiors, signal_pid): Removed.
21972 (all_threads): New variable.
21973 (get_thread): Define.
21974 (add_inferior_to_list): New function.
21975 (for_each_inferior): New function.
21976 (change_inferior_id): New function.
21977 (add_inferior): Removed.
21978 (remove_inferior): New function.
21979 (add_thread): New function.
21980 (free_one_thread): New function.
21981 (remove_thread): New function.
21982 (clear_inferiors): Use for_each_inferior and free_one_thread.
21983 (find_inferior): New function.
21984 (find_inferior_id): New function.
21985 (inferior_target_data): Update argument type.
21986 (set_inferior_target_data): Likewise.
21987 (inferior_regcache_data): Likewise.
21988 (set_inferior_regcache_data): Likewise.
21989 * linux-low.c (linux_bp_reinsert): Remove.
21990 (all_processes, stopping_threads, using_thrads)
21991 (struct pending_signals, debug_threads, pid_of): New.
21992 (inferior_pid): Replace with macro.
21993 (struct inferior_linux_data): Remove.
21994 (get_stop_pc, add_process): New functions.
21995 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21996 Use add_process and add_thread.
21997 (linux_attach_lwp): New function, based on old linux_attach. Use
21998 add_process and add_thread. Set stop_expected for new threads.
21999 (linux_attach): New function.
22000 (linux_kill_one_process): New function.
22001 (linux_kill): Kill all LWPs.
22002 (linux_thread_alive): Use find_inferior_id.
22003 (check_removed_breakpoints, status_pending_p): New functions.
22004 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22005 Update. Use WNOHANG. Wait for cloned processes also. Update process
22006 struct for the found process.
22007 (linux_wait_for_event): New function.
22008 (linux_wait): Use it. Support LWPs.
22009 (send_sigstop, wait_for_sigstop, stop_all_processes)
22010 (linux_resume_one_process, linux_continue_one_process): New functions.
22011 (linux_resume): Support LWPs.
22012 (REGISTER_RAW_SIZE): Remove.
22013 (fetch_register): Use register_size instead. Call supply_register.
22014 (usr_store_inferior_registers): Likewise. Call collect_register.
22015 Fix recursive case.
22016 (regsets_fetch_inferior_registers): Improve error message.
22017 (regsets_store_inferior_registers): Add debugging.
22018 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22019 (unstopped_p, linux_signal_pid): New functions.
22020 (linux_target_ops): Add linux_signal_pid.
22021 (linux_init_signals): New function.
22022 (initialize_low): Call it. Initialize using_threads.
22023 * regcache.c (inferior_regcache_data): Add valid
22024 flag.
22025 (get_regcache): Fetch registers lazily. Add fetch argument
22026 and update all callers.
22027 (regcache_invalidate_one, regcache_invalidate): New
22028 functions.
22029 (new_register_cache): Renamed from create_register_cache.
22030 Return the new regcache.
22031 (free_register_cache): Change argument to a void *.
22032 (registers_to_string, registers_from_string): Call get_regcache
22033 with fetch flag set.
22034 (register_data): Make static. Pass fetch flag to get_regcache.
22035 (supply_register): Call get_regcache with fetch flag clear.
22036 (collect_register): Call get_regcache with fetch flag set.
22037 (collect_register_as_string): New function.
22038 * regcache.h: Update.
22039 * remote-utils.c (putpkt): Flush after debug output and use
22040 stderr.
22041 Handle input interrupts while waiting for an ACK.
22042 (input_interrupt): Use signal_pid method.
22043 (getpkt): Flush after debug output and use stderr.
22044 (outreg): Use collect_register_as_string.
22045 (new_thread_notify, dead_thread_notify): New functions.
22046 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22047 and general_thread.
22048 (look_up_one_symbol): Flush after debug output.
22049 * server.c (step_thread, server_waiting): New variables.
22050 (start_inferior): Don't use signal_pid. Update call to mywait.
22051 (attach_inferior): Update call to mywait.
22052 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22053 (main): Don't fetch/store registers explicitly. Use
22054 set_desired_inferior. Support proposed ``Hs'' packet. Update
22055 calls to mywait.
22056 * server.h: Update.
22057 (struct inferior_list, struct_inferior_list_entry): New.
22058 * target.c (set_desired_inferior): New.
22059 (write_inferior_memory): Constify.
22060 (mywait): New function.
22061 * target.h: Update.
22062 (struct target_ops): New signal_pid method.
22063 (mywait): Removed macro, added prototype.
22064
22065 * linux-low.h (regset_func): Removed.
22066 (regset_fill_func, regset_store_func): New.
22067 (enum regset_type): New.
22068 (struct regset_info): Add type field. Use new operation types.
22069 (struct linux_target_ops): stop_pc renamed to get_pc.
22070 Add decr_pc_after_break and breakpoint_at.
22071 (get_process, get_thread_proess, get_process_thread)
22072 (strut process_info, all_processes, linux_attach_lwp)
22073 (thread_db_init): New.
22074
22075 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22076 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22077 (the_low_target): Add new members.
22078 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22079 (i386_store_fpxregset): Constify.
22080 (target_regsets): Add new kind identifier.
22081 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22082 (i386_set_pc): Add debugging.
22083 (i386_breakpoint_at): New function.
22084 (the_low_target): Add new members.
22085 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22086 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22087 (mips_breakpoint_at): New.
22088 (the_low_target): Add new members.
22089 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22090 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22091 (the_low_target): Add new members.
22092 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22093 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22094 (the_low_target): Add new members.
22095 * linux-x86-64-low.c (target_regsets): Add new kind
22096 identifier.
22097
220982002-05-15 Daniel Jacobowitz <drow@mvista.com>
22099
22100 From Martin Pool <mbp@samba.org>:
22101 * server.c (gdbserver_usage): New function.
22102 (main): Call it.
22103
221042002-05-14 Daniel Jacobowitz <drow@mvista.com>
22105
22106 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22107 stop_at -> stop_pc.
22108
221092002-05-04 Andrew Cagney <ac131313@redhat.com>
22110
22111 * Makefile.in: Remove obsolete code.
22112
221132002-04-24 Michal Ludvig <mludvig@suse.cz>
22114
22115 * linux-low.c (regsets_fetch_inferior_registers),
22116 (regsets_store_inferior_registers): Removed cast to int from
22117 ptrace() calls.
22118 * regcache.h: Added declaration of struct inferior_info.
22119
221202002-04-20 Daniel Jacobowitz <drow@mvista.com>
22121
22122 * inferiors.c (struct inferior_info): Add regcache_data.
22123 (add_inferior): Call create_register_cache.
22124 (clear_inferiors): Call free_register_cache.
22125 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22126 * regcache.c (struct inferior_regcache_data): New.
22127 (registers): Remove.
22128 (get_regcache): New function.
22129 (create_register_cache, free_register_cache): New functions.
22130 (set_register_cache): Don't initialize the register cache here.
22131 (registers_to_string, registers_from_string, register_data): Call
22132 get_regcache.
22133 * regcache.h: Add prototypes.
22134 * server.h: Likewise.
22135
221362002-04-20 Daniel Jacobowitz <drow@mvista.com>
22137
22138 * mem-break.c: New file.
22139 * mem-break.h: New file.
22140 * Makefile.in: Add mem-break.o rule; update server.h
22141 dependencies.
22142 * inferiors.c (struct inferior_info): Add target_data
22143 member.
22144 (clear_inferiors): Free target_data member if set.
22145 (inferior_target_data, set_inferior_target_data): New functions.
22146 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22147 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22148 * linux-low.c (linux_bp_reinsert): New variable.
22149 (struct inferior_linux_data): New.
22150 (linux_create_inferior): Use set_inferior_target_data.
22151 (linux_attach): Likewise. Call add_inferior.
22152 (linux_wait_for_one_inferior): New function.
22153 (linux_wait): Call it.
22154 (linux_write_memory): Add const.
22155 (initialize_low): Call set_breakpoint_data.
22156 * linux-low.h (struct linux_target_ops): Add breakpoint
22157 handling members.
22158 * server.c (attach_inferior): Remove extra add_inferior
22159 call.
22160 * server.h: Include mem-break.h. Update inferior.c
22161 prototypes.
22162 * target.c (read_inferior_memory)
22163 (write_inferior_memory): New functions.
22164 * target.h (read_inferior_memory)
22165 (write_inferior_memory): Change macros to prototypes.
22166 (struct target_ops): Update comments. Add const to write_memory
22167 definition.
22168
221692002-04-11 Daniel Jacobowitz <drow@mvista.com>
22170
22171 * linux-low.c (usr_store_inferior_registers): Support
22172 registers which are allowed to fail to store.
22173 * linux-low.h (linux_target_ops): Likewise.
22174 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22175 (ppc_cannot_store_register): FPSCR may not be storable.
22176
221772002-04-09 Daniel Jacobowitz <drow@mvista.com>
22178
22179 * server.h: Include <string.h> if HAVE_STRING_H.
22180 * ChangeLog: Correct paths in last ChangeLog entry.
22181
221822002-04-09 Daniel Jacobowitz <drow@mvista.com>
22183
22184 * linux-low.h: Remove obsolete prototypes.
22185 (struct linux_target_ops): New.
22186 (extern the_low_target): New.
22187 * linux-low.c (num_regs, regmap): Remove declarations.
22188 (register_addr): Use the_low_target explicitly.
22189 (fetch_register): Likewise.
22190 (usr_fetch_inferior_registers): Likewise.
22191 (usr_store_inferior_registers): Likewise.
22192 * linux-arm-low.c (num_regs): Remove.
22193 (arm_num_regs): Define.
22194 (arm_regmap): Renamed from regmap, made static.
22195 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22196 made static.
22197 (arm_cannot_store_register): Renamed from cannot_store_register,
22198 made static.
22199 (the_low_target): New.
22200 * linux-i386-low.c (num_regs): Remove.
22201 (i386_num_regs): Define.
22202 (i386_regmap): Renamed from regmap, made static.
22203 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22204 made static.
22205 (i386_cannot_store_register): Renamed from cannot_store_register,
22206 made static.
22207 (the_low_target): New.
22208 * linux-ia64-low.c (num_regs): Remove.
22209 (ia64_num_regs): Define.
22210 (ia64_regmap): Renamed from regmap, made static.
22211 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22212 made static.
22213 (ia64_cannot_store_register): Renamed from cannot_store_register,
22214 made static.
22215 (the_low_target): New.
22216 * linux-m68k-low.c (num_regs): Remove.
22217 (m68k_num_regs): Define.
22218 (m68k_regmap): Renamed from regmap, made static.
22219 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22220 made static.
22221 (m68k_cannot_store_register): Renamed from cannot_store_register,
22222 made static.
22223 (the_low_target): New.
22224 * linux-mips-low.c (num_regs): Remove.
22225 (mips_num_regs): Define.
22226 (mips_regmap): Renamed from regmap, made static.
22227 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22228 made static.
22229 (mips_cannot_store_register): Renamed from cannot_store_register,
22230 made static.
22231 (the_low_target): New.
22232 * linux-ppc-low.c (num_regs): Remove.
22233 (ppc_num_regs): Define.
22234 (ppc_regmap): Renamed from regmap, made static.
22235 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22236 made static.
22237 (ppc_cannot_store_register): Renamed from cannot_store_register,
22238 made static.
22239 (the_low_target): New.
22240 * linux-s390-low.c (num_regs): Remove.
22241 (s390_num_regs): Define.
22242 (s390_regmap): Renamed from regmap, made static.
22243 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22244 made static.
22245 (s390_cannot_store_register): Renamed from cannot_store_register,
22246 made static.
22247 (the_low_target): New.
22248 * linux-sh-low.c (num_regs): Remove.
22249 (sh_num_regs): Define.
22250 (sh_regmap): Renamed from regmap, made static.
22251 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22252 made static.
22253 (sh_cannot_store_register): Renamed from cannot_store_register,
22254 made static.
22255 (the_low_target): New.
22256 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22257 (the_low_target): New.
22258
222592002-04-09 Daniel Jacobowitz <drow@mvista.com>
22260
22261 * Makefile.in: Add stamp-h target.
22262 * configure.in: Create stamp-h.
22263 * configure: Regenerated.
22264
222652002-04-09 Daniel Jacobowitz <drow@mvista.com>
22266
22267 * inferiors.c: New file.
22268 * target.c: New file.
22269 * target.h: New file.
22270 * Makefile.in: Add target.o and inferiors.o. Update
22271 dependencies.
22272 * linux-low.c (inferior_pid): New static variable,
22273 moved from server.c.
22274 (linux_create_inferior): Renamed from create_inferior.
22275 Call add_inferior. Return 0 on success instead of a PID.
22276 (linux_attach): Renamed from myattach.
22277 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22278 (linux_thread_alive): Renamed from mythread_alive.
22279 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22280 child dies.
22281 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22282 (regsets_store_inferior_registers): Correct error message.
22283 Add missing ``return 0''.
22284 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22285 (linux_store_registers): Renamed from store_inferior_registers.
22286 (linux_read_memory): Renamed from read_inferior_memory.
22287 (linux_write_memory): Renamed from write_inferior_memory.
22288 (linux_target_ops): New structure.
22289 (initialize_low): Call set_target_ops ().
22290 * remote-utils.c (unhexify): New function.
22291 (hexify): New function.
22292 (input_interrupt): Send signals to ``signal_pid''.
22293 * server.c (inferior_pid): Remove.
22294 (start_inferior): Update create_inferior call.
22295 (attach_inferior): Call add_inferior.
22296 (handle_query): New function.
22297 (main): Call handle_query for `q' packets.
22298 * server.h: Include "target.h". Remove obsolete prototypes.
22299 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22300
223012002-04-09 Daniel Jacobowitz <drow@mvista.com>
22302
22303 * Makefile.in: Add WARN_CFLAGS. Update configury
22304 dependencies.
22305 * configure.in: Check for <string.h>
22306 * configure: Regenerate.
22307 * config.in: Regenerate.
22308 * gdbreplay.c: Include needed system headers.
22309 (remote_open): Remove strchr prototype.
22310 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22311 * regcache.c (supply_register): Change buf argument to const void *.
22312 (supply_register_by_name): Likewise.
22313 (collect_register): Change buf argument to void *.
22314 (collect_register_by_name): Likewise.
22315 * regcache.h: Add missing prototypes.
22316 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22317 * server.c (handle_query): New function.
22318 (attached): New static variable, moved out of main.
22319 (main): Quiet longjmp clobber warnings.
22320 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22321 * utils.c (error): Remove NORETURN.
22322 (fatal): Likewise.