]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Don't unnecessarily redefine 'socklen_t' type in MinGW builds.
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
05a6b8c2
EZ
12020-07-26 Eli Zaretskii <eliz@gnu.org>
2
3 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
4 When checking whether socklen_t type is defined, use ws2tcpip.h if
5 it is available and sys/socket.h isn't.
6 * configure: Regenerate.
7 * config.in: Regenerate.
8
028a4603
PA
92020-07-22 Pedro Alves <pedro@palves.net>
10
11 * inferiors.cc (switch_to_process): New, moved here from
12 thread-db.cc, and made extern.
13 * inferiors.h (switch_to_process): Declare.
14 * server.cc: Include "gdbsupport/scoped_restore.h".
15 (handle_qxfer_threads_proper): Now returns bool. Prepare to
16 access memory around target calls.
17 (handle_qxfer_threads): Handle errors.
18 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
19
05c309a8
SM
202020-07-21 Simon Marchi <simon.marchi@efficios.com>
21
22 * linux-low.cc (stopped_pids): Make static.
23
0e267416
AB
242020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
25
26 * tdesc.cc (allocate_target_description): Add header comment.
27 (target_desc_deleter::operator()): New function.
28 * tdesc.h (struct target_desc): Declare as final.
29
b315b67d
SM
302020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * server.cc (handle_query): Use std::vector of
33 std::string for `qsupported` vector. Use separate
34 vector for unknowns.
35 * target.h (class process_stratum_target) <process_qsupported>:
36 Change parameters to array_view of const char *.
37 (target_process_qsupported): Remove `count` parameter.
38 * target.cc (process_stratum_target::process_qsupported): Change
39 parameters to array_view of const char *.
40 * linux-x86-low.cc (class x86_target) <process_qsupported>:
41 Likewise.
42
f638ed73
TV
432020-06-29 Tom de Vries <tdevries@suse.de>
44
45 * ax.h: Include gdbsupport/debug_agent.h.
46
fbf42f4e
AB
472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
48
49 * tdesc.cc (struct tdesc_compatible_info): New struct.
50 (tdesc_compatible_info_list): New function.
51 (tdesc_compatible_info_arch_name): New function.
52
013e3554
TBA
532020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
54
55 Use std::list to stop pending signal instead of manually-created
56 linked list.
57 * linux-low.h: Include <list>.
58 (struct pending_signal): Move here from linux-low.cc.
59 (struct lwp_info) <pending_signals>
60 <pending_signals_to_report>: Update the type.
61 * linux-low.cc (struct pending_signals): Remove.
62 (linux_process_target::delete_lwp)
63 (linux_process_target::add_lwp)
64 (enqueue_one_deferred_signal)
65 (dequeue_one_deferred_signal)
66 (enqueue_pending_signal)
67 (linux_process_target::resume_one_lwp_throw)
68 (linux_process_target::thread_needs_step_over)
69 (linux_process_target::resume_one_thread)
70 (linux_process_target::proceed_one_lwp): Update the use of pending
71 signal list.
72
7d458ea5
SM
732020-06-17 Simon Marchi <simon.marchi@efficios.com>
74
75 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
76 Remove.
77
84b300de
SM
782020-06-12 Simon Marchi <simon.marchi@efficios.com>
79
80 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
81 * configure.srv: Remove mingw32ce cases.
82 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
83 * win32-low.h (to_back_slashes): Remove.
84 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
85
96c16e2b
SM
862020-06-12 Simon Marchi <simon.marchi@efficios.com>
87
88 * Makefile.in (SFILES): linux-tile-low.cc.
89 * configure.srv: Remove tilegx case.
90 * linux-tile-low.cc: Remove.
91
bd1467ae
SM
922020-06-12 Simon Marchi <simon.marchi@efficios.com>
93
94 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
95 * configure.srv: Remove m32r case.
96 * linux-m32r-low.cc: Remove.
97
7b46bf6f
SM
982020-06-12 Simon Marchi <simon.marchi@efficios.com>
99
100 * Makefile.in (SFILES): Remove linux-cris-low.c.
101 * configure.srv: Remove cris cases.
102 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
103
1fa29f56
SM
1042020-06-12 Simon Marchi <simon.marchi@efficios.com>
105
106 * Makefile.in (SFILES): Remove linux-bfin-low.c.
107 * configure.srv: Remove bfin case.
108 * linux-bfin-low.cc: Remove.
109 * linux-low.cc: Remove BFIN-conditional code.
110
613f149a
SM
1112020-06-12 Simon Marchi <simon.marchi@efficios.com>
112
113 * configure: Re-generate.
114 * configure.ac: Remove srv_qnx test.
115 * configure.srv: Remove nto case.
116 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
117 * remote-utils.c: Remove __QNX__-guarded code.
118
fdb95bf5
SM
1192020-06-12 Simon Marchi <simon.marchi@efficios.com>
120
121 * configure: Re-generate.
122 * configure.ac: Remove srv_lynxos test.
123 * configure.srv: Remove lynxos cases.
124 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
125 Remove.
126
c00094dc
SM
1272020-06-12 Simon Marchi <simon.marchi@efficios.com>
128
129 * README: Fix a few outdated or incoherent things.
130
6479bf85
HD
1312020-05-27 Hannes Domani <ssbssa@yahoo.de>
132
133 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
134 (win32_clear_inferiors): Use open_process_used.
135 (get_child_debug_event): Likewise.
136
bea571eb
MW
1372020-05-25 Michael Weghorn <m.weghorn@posteo.de>
138
139 PR gdbserver/25893
140 * linux-low.cc (linux_process_target::create_inferior),
141 lynx-low.cc (lynx_process_target::create_inferior),
142 win32-low.cc (win32_process_target::create_inferior): Use
143 construct_inferior_arguments instead of stringify_argv
144 to get string representation which properly escapes
145 special characters.
146 * server.cc (handle_v_run): Just pass empty program arg
147 as such, since any further processing is now handled via
148 construct_inferior_arguments.
149
ace6b919
MW
1502020-05-25 Michael Weghorn <m.weghorn@posteo.de>
151
152 * nto-low.cc (nto_process_target::create_inferior): Pass
153 argv to spawnp function as char **.
154
b69ca137
MW
1552020-05-25 Michael Weghorn <m.weghorn@posteo.de>
156
157 * server.cc (captured_main), (handle_v_run): No longer
158 insert extra NULL element to args vector.
159
51e2cfa2
PA
1602020-05-23 Pedro Alves <palves@redhat.com>
161
162 * gdb-safe-ctype.h: New.
163
8bbf0394
TBA
1642020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
165
166 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
167 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
168 (ia64_target::low_breakpoint_at): Ditto.
169
01370779
HD
1702020-05-15 Hannes Domani <ssbssa@yahoo.de>
171
172 * win32-i386-low.cc (i386_supports_z_point_type): Handle
173 Z_PACKET_HW_BP z_type.
174 (i386_insert_point): Handle raw_bkpt_type type.
175 (i386_remove_point): Likewise.
176
7d186bc0
HD
1772020-04-30 Hannes Domani <ssbssa@yahoo.de>
178
179 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
180 Add arch/i386.o.
181 * win32-arm-low.cc (arm_num_regs): New function.
182 (struct win32_target_ops): Use arm_num_regs.
183 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
184 processes.
185 (i386_get_thread_context): Likewise.
186 (i386_prepare_to_resume): Likewise.
187 (i386_thread_added): Likewise.
188 (i386_single_step): Likewise.
189 (i386_fetch_inferior_register): Likewise.
190 (i386_store_inferior_register): Likewise.
191 (i386_arch_setup): Likewise.
192 (i386_win32_num_regs): New function.
193 (struct win32_target_ops): Use i386_win32_num_regs.
194 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
195 processes.
196 (win32_require_context): Likewise.
197 (child_add_thread): Likewise.
198 (do_initial_child_stuff): Likewise.
199 (continue_one_thread): Likewise.
200 (win32_process_target::resume): Likewise.
201 (load_psapi): Likewise.
202 (win32_add_all_dlls): Likewise.
203 (maybe_adjust_pc): Likewise.
204 (win32_process_target::qxfer_siginfo): Likewise.
205 (initialize_low): Likewise.
206 * win32-low.h (struct win32_target_ops): Change num_regs to
207 callback function.
208
1eb39914
SM
2092020-04-27 Simon Marchi <simon.marchi@efficios.com>
210
211 * configure.ac: Remove check for fs_base/gs_base in
212 user_regs_struct.
213 * configure: Re-generate.
214 * config.in: Re-generate.
215 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
216 x86_store_gregset): Adjust.
217
51ac8e22
HD
2182020-04-22 Hannes Domani <ssbssa@yahoo.de>
219
220 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
221 comparison.
222
a010605f
TT
2232020-04-16 Tom Tromey <tromey@adacore.com>
224
225 * win32-low.cc (windows_nat::handle_access_violation): New
226 function.
227
e2275c6e
SM
2282020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
229
230 * win32-low.cc (get_child_debug_event): Fix format string warning.
231
73944e9f
TT
2322020-04-13 Tom Tromey <tom@tromey.com>
233
234 * server.h (gdb_fildes_t): Remove typedef.
235 * remote-utils.c (remote_desc, list_desc): Now int.
236 (INVALID_DESCRIPTOR): Remove.
237 (gdb_connected, remote_close)
238 (check_remote_input_interrupt_request): Update.
239 * utils.h (pfildes): Don't declare.
240 * utils.c (pfildes): Remove.
241
55d7aec8
TT
2422020-04-13 Tom Tromey <tom@tromey.com>
243
244 * server.h (handle_serial_event, handle_target_event): Update.
245 * server.c: Don't call initialize_event_loop.
246 (keep_processing_events): New global.
247 (handle_serial_event): Return void. Set keep_processing_events.
248 (handle_target_event): Return void.
249 (start_event_loop): Move from event-loop.c. Rewrite.
250 * remote-utils.c (handle_accept_event): Return void.
251 (reset_readchar): Use delete_timer.
252 (process_remaining): Return void.
253 (reschedule): Use create_timer.
254 * event-loop.h: Remove.
255 * event-loop.cc: Remove.
256 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
257
e487f994
TT
2582020-04-13 Tom Tromey <tom@tromey.com>
259
260 * server.c (invoke_async_signal_handlers)
261 (check_async_event_handlers, flush_streams, gdb_select): New
262 functions.
263
8ae8e197
TT
2642020-04-13 Tom Tromey <tom@tromey.com>
265
266 * configure: Rebuild.
267 * config.in: Rebuild.
268
360ad8b3
TT
2692020-04-08 Tom Tromey <tromey@adacore.com>
270
271 PR gdb/22992
272 * win32-low.c (child_continue): Call matching_pending_stop.
273 (get_child_debug_event): Call fetch_pending_stop. Push pending
274 stop when needed.
275
523d4f80
TT
2762020-04-08 Tom Tromey <tromey@adacore.com>
277
278 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
279 (win32_process_target::supports_stopped_by_sw_breakpoint):
280 Declare.
281 * win32-low.c (win32_supports_z_point_type): Always handle
282 Z_PACKET_SW_BP.
283 (win32_insert_point): Call insert_memory_breakpoint when needed.
284 (win32_remove_point): Call remove_memory_breakpoint when needed.
285 (win32_process_target::stopped_by_sw_breakpoint)
286 (win32_process_target::supports_stopped_by_sw_breakpoint): New
287 methods.
288 (win32_target_ops): Update.
289 (maybe_adjust_pc): New function.
290 (win32_wait): Call maybe_adjust_pc.
291
e54e5929
TT
2922020-04-08 Tom Tromey <tromey@adacore.com>
293
294 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
295 field.
296 * win32-i386-low.c (the_low_target): Update.
297 * win32-arm-low.c (the_low_target): Update.
298
d6225aff
TT
2992020-04-08 Tom Tromey <tromey@adacore.com>
300
301 * win32-low.h (win32_process_target::read_pc)
302 (win32_process_target::write_pc): Declare.
303 * win32-low.c (win32_process_target::read_pc)
304 (win32_process_target::write_pc): New methods.
305 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
306 functions.
307 (the_low_target): Update.
308 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
309 functions.
310 (the_low_target): Update.
311
2c1d95e8
TT
3122020-04-08 Tom Tromey <tromey@adacore.com>
313
314 * win32-low.c (win32_kill, get_child_debug_event): Use
315 wait_for_debug_event.
316
e758e19c
TT
3172020-04-08 Tom Tromey <tromey@adacore.com>
318
319 * win32-low.c (child_continue): Call continue_last_debug_event.
320
8d30e395
TT
3212020-04-08 Tom Tromey <tromey@adacore.com>
322
323 * win32-low.c (handle_exception): Remove.
324 (windows_nat::handle_ms_vc_exception): New function.
325 (get_child_debug_event): Add "continue_status" parameter.
326 Update.
327 (win32_wait): Update.
328
a816ba18
TT
3292020-04-08 Tom Tromey <tromey@adacore.com>
330
331 * win32-low.c (windows_nat::handle_load_dll): Rename from
332 handle_load_dll. No longer static.
333 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
334 No longer static.
335
d41b524f
TT
3362020-04-08 Tom Tromey <tromey@adacore.com>
337
338 * win32-low.c (handle_output_debug_string): Add parameter. Change
339 return type.
340 (win32_kill, get_child_debug_event): Update.
341
3c76026d
TT
3422020-04-08 Tom Tromey <tromey@adacore.com>
343
344 * win32-low.c (current_process_handle, current_process_id)
345 (main_thread_id, last_sig, current_event, siginfo_er): Move to
346 nat/windows-nat.c.
347
9d8679cc
TT
3482020-04-08 Tom Tromey <tromey@adacore.com>
349
350 * win32-low.c (get_image_name): Remove.
351 (handle_load_dll): Update.
352
28688adf
TT
3532020-04-08 Tom Tromey <tromey@adacore.com>
354
355 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
356 No longer static. Change parameters.
357 (child_add_thread, child_fetch_inferior_registers)
358 (child_store_inferior_registers, win32_resume)
359 (win32_get_tib_address): Update.
360
4834dad0
TT
3612020-04-08 Tom Tromey <tromey@adacore.com>
362
363 * win32-low.h (struct win32_target_ops): Use qualified names where
364 needed.
365 * win32-i386-low.c: Add "using namespace".
366 * win32-low.c: Add "using namespace".
367 * win32-arm-low.c: Add "using namespace".
368
65bafd5b
TT
3692020-04-08 Tom Tromey <tromey@adacore.com>
370
371 * win32-low.c (delete_thread_info): Don't call CloseHandle.
372
98a03287
TT
3732020-04-08 Tom Tromey <tromey@adacore.com>
374
375 * win32-low.c (win32_require_context, suspend_one_thread): Use
376 windows_thread_info::suspend.
377 (continue_one_thread): Use windows_thread_info::resume.
378 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
379
62fe396b
TT
3802020-04-08 Tom Tromey <tromey@adacore.com>
381
382 * win32-i386-low.c (update_debug_registers)
383 (i386_prepare_to_resume, i386_thread_added): Update.
384
e9534bd2
TT
3852020-04-08 Tom Tromey <tromey@adacore.com>
386
387 * win32-low.c (child_add_thread): Use new.
388 (delete_thread_info): Use delete.
389
ae1f8880
TT
3902020-04-08 Tom Tromey <tromey@adacore.com>
391
392 * win32-low.h (struct windows_thread_info): Remove.
393
e56f8ccb
TT
3942020-04-08 Tom Tromey <tromey@adacore.com>
395
396 * win32-low.h (struct windows_thread_info): Rename from
397 win32_thread_info. Remove typedef.
398 (struct win32_target_ops, win32_require_context): Update.
399 * win32-low.c (win32_get_thread_context)
400 (win32_set_thread_context, win32_prepare_to_resume)
401 (win32_require_context, thread_rec, child_add_thread)
402 (delete_thread_info, continue_one_thread)
403 (child_fetch_inferior_registers, child_store_inferior_registers)
404 (win32_resume, suspend_one_thread, win32_get_tib_address):
405 Update.
406 * win32-i386-low.c (update_debug_registers)
407 (win32_get_current_dr, i386_get_thread_context)
408 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
409 (i386_fetch_inferior_register, i386_store_inferior_register):
410 Update.
411 * win32-arm-low.c (arm_get_thread_context)
412 (arm_fetch_inferior_register, arm_store_inferior_register):
413 Update.
414
0dd7b52e
TBA
4152020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
416
417 * linux-low.h (struct linux_target_ops): Remove.
418 (the_low_target): Remove.
419 * linux-x86-low.cc (the_low_target): Remove.
420 * linux-aarch64-low.cc (the_low_target): Ditto.
421 * linux-arm-low.cc (the_low_target): Ditto.
422 * linux-bfin-low.cc (the_low_target): Ditto.
423 * linux-cris-low.cc (the_low_target): Ditto.
424 * linux-crisv32-low.cc (the_low_target): Ditto.
425 * linux-ia64-low.cc (the_low_target): Ditto.
426 * linux-m32r-low.cc (the_low_target): Ditto.
427 * linux-m68k-low.cc (the_low_target): Ditto.
428 * linux-mips-low.cc (the_low_target): Ditto.
429 * linux-nios2-low.cc (the_low_target): Ditto.
430 * linux-ppc-low.cc (the_low_target): Ditto.
431 * linux-riscv-low.cc (the_low_target): Ditto.
432 * linux-s390-low.cc (the_low_target): Ditto.
433 * linux-sh-low.cc (the_low_target): Ditto.
434 * linux-sparc-low.cc (the_low_target): Ditto.
435 * linux-tic6x-low.cc (the_low_target): Ditto.
436 * linux-tile-low.cc (the_low_target): Ditto.
437 * linux-xtensa-low.cc (the_low_target): Ditto.
438
fc5ecdb6
TBA
4392020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
440
441 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
442 linux target define the op by overriding the declaration in
443 process_stratum_target.
444
445 * linux-low.h (struct linux_target_ops): Remove the op.
446 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
447 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
448 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
449 (x86_get_ipa_tdesc_idx): Turn into...
450 (x86_target::get_ipa_tdesc_idx): ...this.
451 (the_low_target): Remove the op field.
452 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
453 (ppc_get_ipa_tdesc_idx): Turn into...
454 (ppc_target::get_ipa_tdesc_idx): ...this.
455 (the_low_target): Remove the op field.
456 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
457 (s390_get_ipa_tdesc_idx): Turn into...
458 (s390_target::get_ipa_tdesc_idx): ...this.
459 (the_low_target): Remove the op field.
460
9eedd27d
TBA
4612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
462
463 Turn the 'get_syscall_trapinfo' linux target op into a method
464 of process_stratum_target.
465
466 * linux-low.h (struct linux_target_ops): Remove the op.
467 (class linux_process_target) <get_syscall_trapinfo>
468 <gdb_catch_this_syscall>
469 <low_supports_catch_syscall>
470 <low_get_syscall_trapinfo>: Declare.
471 * linux-low.cc (get_syscall_trapinfo): Turn into...
472 (linux_process_target::get_syscall_trapinfo): ...this.
473 (linux_process_target::low_get_syscall_trapinfo): Define.
474 (gdb_catch_this_syscall_p): Turn into...
475 (linux_process_target::gdb_catch_this_syscall): ...this.
476 (linux_process_target::low_supports_catch_syscall): Define.
477
478 Update the callers below.
479
480 (linux_process_target::wait_1)
481 (linux_process_target::supports_catch_syscall)
482
483 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
484 <low_get_syscall_trapinfo>: Declare.
485 (x86_target::low_supports_catch_syscall): Define.
486 (x86_get_syscall_trapinfo): Turn into...
487 (x86_target::low_get_syscall_trapinfo): ...this.
488 (the_low_target): Remove the op field.
489 * linux-aarch64-low.cc (class aarch64_target)
490 <low_supports_catch_syscall>
491 <low_get_syscall_trapinfo>: Declare.
492 (aarch64_target::low_supports_catch_syscall): Define.
493 (aarch64_get_syscall_trapinfo): Turn into...
494 (aarch64_target::low_get_syscall_trapinfo): ...this.
495 (the_low_target): Remove the op field.
496 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
497 <low_get_syscall_trapinfo>: Declare.
498 (arm_target::low_supports_catch_syscall): Define.
499 (arm_get_syscall_trapinfo): Turn into...
500 (arm_target::low_get_syscall_trapinfo): ...this.
501 (the_low_target): Remove the op field.
502 * linux-ppc-low.cc (the_low_target): Remove the op field.
503 * linux-s390-low.cc (the_low_target): Remove the op field.
504
b31cdfa6
TBA
5052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
506
507 Remove the 'supports_hardware_single_step' linux target op and
508 override the process_stratum_target's op definition in
509 linux_process_target to return true.
510
511 * linux-low.h (struct linux_target_ops): Remove the op.
512 (class linux_process_target) <finish_step_over>
513 <maybe_hw_step>: Declare.
514 * linux-low.cc (can_hardware_single_step): Remove.
515 (maybe_hw_step): Turn into...
516 (linux_process_target::maybe_hw_step): ...this.
517 (finish_step_over): Turn into...
518 (linux_process_target::finish_step_over): ...this.
519 (linux_process_target::supports_hardware_single_step): Update
520 to return true.
521
522 Update the callers below.
523
524 (linux_process_target::single_step)
525 (linux_process_target::resume_one_lwp_throw)
526
527 * linux-arm-low.cc (class arm_target)
528 <supports_hardware_single_step>: Declare.
529 (arm_supports_hardware_single_step): Turn into...
530 (arm_target::supports_hardware_single_step): ...this.
531 (the_low_target): Remove the op field.
532 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
533 (the_low_target): Remove the op field.
534 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
535 Remove.
536 (the_low_target): Remove the op field.
537 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
538 (the_low_target): Remove the op field.
539 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
540 (the_low_target): Remove the op field.
541 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
542 (the_low_target): Remove the op field.
543 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
544 (the_low_target): Remove the op field.
545 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
546 (the_low_target): Remove the op field.
547 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
548 (the_low_target): Remove the op field.
549 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
550 (the_low_target): Remove the op field.
551 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
552 (the_low_target): Remove the op field.
553 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
554 (the_low_target): Remove the op field.
555 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
556 Remove.
557 (the_low_target): Remove the op field.
558
9cfd8715
TBA
5592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
560
561 Turn the 'supports_range_stepping' linux target op into a method
562 of linux_process_target.
563
564 * linux-low.h (struct linux_target_ops): Remove the op.
565 (class linux_process_target) <low_supports_range_stepping>: Declare.
566 * linux-low.cc (linux_process_target::low_supports_range_stepping):
567 Define.
568 (linux_process_target::supports_range_stepping): Update the call
569 site.
570 * linux-x86-low.cc (class x86_target)
571 <low_supports_range_stepping>: Declare.
572 (x86_supports_range_stepping): Turn into...
573 (x86_target::low_supports_range_stepping): ...this.
574 (the_low_target): Remove the op field.
575 * linux-aarch64-low.cc (class aarch64_target)
576 <low_supports_range_stepping>: Declare.
577 (aarch64_supports_range_stepping): Turn into...
578 (aarch64_target::low_supports_range_stepping): ...this.
579 (the_low_target): Remove the op field.
580 * linux-arm-low.cc (the_low_target): Remove the op field.
581 * linux-bfin-low.cc (the_low_target): Ditto.
582 * linux-crisv32-low.cc (the_low_target): Ditto.
583 * linux-m32r-low.cc (the_low_target): Ditto.
584 * linux-m68k-low.cc (the_low_target): Ditto.
585 * linux-ppc-low.cc (the_low_target): Ditto.
586 * linux-s390-low.cc (the_low_target): Ditto.
587 * linux-sh-low.cc (the_low_target): Ditto.
588 * linux-tic6x-low.cc (the_low_target): Ditto.
589 * linux-tile-low.cc (the_low_target): Ditto.
590 * linux-xtensa-low.cc (the_low_target): Ditto.
591
ab64c999
TBA
5922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
593
594 Remove the 'emit_ops' linux target ops and let the concrete
595 linux target define the op by overriding the declaration of
596 process_stratum_target.
597
598 * linux-low.h (struct linux_target_ops): Remove the op.
599 (class linux_process_target) <emit_ops>: Remove.
600 * linux-low.cc (linux_process_target::emit_ops): Remove.
601 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
602 (x86_emit_ops): Turn into...
603 (x86_target::emit_ops): ...this.
604 (the_low_target): Remove the op field.
605 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
606 (aarch64_emit_ops): Turn into...
607 (aarch64_target::emit_ops): ...this.
608 (the_low_target): Remove the op field.
609 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
610 (ppc_emit_ops): Turn into...
611 (ppc_target::emit_ops): ...this.
612 (the_low_target): Remove the op field.
613 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
614 (s390_emit_ops): Turn into...
615 (s390_target::emit_ops): ...this.
616 (the_low_target): Remove the op field.
617 * linux-arm-low.cc (the_low_target): Remove the op field.
618 * linux-bfin-low.cc (the_low_target): Ditto.
619 * linux-crisv32-low.cc (the_low_target): Ditto.
620 * linux-m32r-low.cc (the_low_target): Ditto.
621 * linux-m68k-low.cc (the_low_target): Ditto.
622 * linux-sh-low.cc (the_low_target): Ditto.
623 * linux-tic6x-low.cc (the_low_target): Ditto.
624 * linux-tile-low.cc (the_low_target): Ditto.
625 * linux-xtensa-low.cc (the_low_target): Ditto.
626
809a0c35
TBA
6272020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
628
629 Remove the 'install_fast_tracepoint_jump_pad' and
630 'get_min_fast_tracepoint_insn_len' linux target ops to let the
631 concrete linux target define the ops by overriding the declarations
632 of process_stratum_target.
633
634 * linux-low.h (struct linux_target_ops): Remove the ops.
635 (class linux_process_target) <supports_fast_tracepoints>
636 <install_fast_tracepoint_jump_pad>
637 <get_min_fast_tracepoint_insn_len>: Remove.
638 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
639 (linux_process_target::install_fast_tracepoint_jump_pad)
640 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
641 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
642 <install_fast_tracepoint_jump_pad>
643 <get_min_fast_tracepoint_insn_len>: Declare.
644 (x86_target::supports_fast_tracepoints): Define.
645 (x86_install_fast_tracepoint_jump_pad): Turn into...
646 (x86_target::install_fast_tracepoint_jump_pad): ...this.
647 (x86_get_min_fast_tracepoint_insn_len): Turn into...
648 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
649 (the_low_target): Remove the op fields.
650 * linux-aarch64-low.cc (class aarch64_target)
651 <supports_fast_tracepoints>
652 <install_fast_tracepoint_jump_pad>
653 <get_min_fast_tracepoint_insn_len>: Declare.
654 (aarch64_target::supports_fast_tracepoints): Define.
655 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
656 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
657 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
658 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
659 (the_low_target): Remove the op fields.
660 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
661 <install_fast_tracepoint_jump_pad>
662 <get_min_fast_tracepoint_insn_len>: Declare.
663 (ppc_target::supports_fast_tracepoints): Define.
664 (ppc_install_fast_tracepoint_jump_pad): Turn into...
665 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
666 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
667 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
668 (the_low_target): Remove the op fields.
669 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
670 <install_fast_tracepoint_jump_pad>
671 <get_min_fast_tracepoint_insn_len>: Declare.
672 (s390_target::supports_fast_tracepoints): Define.
673 (s390_install_fast_tracepoint_jump_pad): Turn into...
674 (s390_target::install_fast_tracepoint_jump_pad): ...this.
675 (s390_get_min_fast_tracepoint_insn_len): Turn into...
676 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
677 (the_low_target): Remove the op fields.
678 * linux-arm-low.cc (the_low_target): Remove the op fields.
679 * linux-bfin-low.cc (the_low_target): Ditto.
680 * linux-crisv32-low.cc (the_low_target): Ditto.
681 * linux-m32r-low.cc (the_low_target): Ditto.
682 * linux-m68k-low.cc (the_low_target): Ditto.
683 * linux-sh-low.cc (the_low_target): Ditto.
684 * linux-tic6x-low.cc (the_low_target): Ditto.
685 * linux-tile-low.cc (the_low_target): Ditto.
686 * linux-xtensa-low.cc (the_low_target): Ditto.
687
13e567af
TBA
6882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
689
690 Turn the 'get_thread_area' linux target op into a method of
691 process_stratum_target.
692
693 * linux-low.h (struct linux_target_ops): Remove the op.
694 (class linux_process_target) <stuck_in_jump_pad>
695 <linux_fast_tracepoint_collecting>
696 <low_get_thread_area>: Declare.
697 * linux-low.cc (supports_fast_tracepoints): Remove.
698 (linux_fast_tracepoint_collecting): Turn into...
699 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
700 (linux_process_target::low_get_thread_area): Define.
701 (stuck_in_jump_pad_callback): Turn into...
702 (linux_process_target::stuck_in_jump_pad): ...this.
703
704 Update the caller below.
705
706 (linux_process_target::stabilize_threads)
707
708 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
709 Declare.
710 (x86_get_thread_area): Turn into...
711 (x86_target::low_get_thread_area): ...this.
712 (the_low_target): Remove the op field.
713 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
714 Declare.
715 (aarch64_get_thread_area): Turn into...
716 (aarch64_target::low_get_thread_area): ...this.
717 (the_low_target): Remove the op field.
718 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
719 Declare.
720 (ppc_get_thread_area): Turn into...
721 (ppc_target::low_get_thread_area): ...this.
722 (the_low_target): Remove the op field.
723 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
724 Declare.
725 (s390_get_thread_area): Turn into...
726 (s390_target::low_get_thread_area): ...this.
727 (the_low_target): Remove the op field.
728 * linux-arm-low.cc (the_low_target): Remove the op field.
729 * linux-bfin-low.cc (the_low_target): Ditto.
730 * linux-crisv32-low.cc (the_low_target): Ditto.
731 * linux-m32r-low.cc (the_low_target): Ditto.
732 * linux-m68k-low.cc (the_low_target): Ditto.
733 * linux-sh-low.cc (the_low_target): Ditto.
734 * linux-tic6x-low.cc (the_low_target): Ditto.
735 * linux-tile-low.cc (the_low_target): Ditto.
736 * linux-xtensa-low.cc (the_low_target): Ditto.
737
47f70aa7
TBA
7382020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
739
740 Remote the 'supports_tracepoints' linux target op and let the
741 concrete linux target define it by overriding the op declared in
742 process_stratum_target.
743
744 * linux-low.h (struct linux_target_ops): Remove the op.
745 (class linux_process_target) <supports_tracepoints>: Remove.
746 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
747 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
748 Declare.
749 (x86_supports_tracepoints): Turn into...
750 (x86_target::supports_tracepoints): ...this.
751 (the_low_target): Remove the op field.
752 * linux-aarch64-low.cc (class aarch64_target)
753 <supports_tracepoints>: Declare.
754 (aarch64_supports_tracepoints): Turn into...
755 (aarch64_target::supports_tracepoints): ...this.
756 (the_low_target): Remove the op field.
757 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
758 Declare.
759 (ppc_supports_tracepoints): Turn into...
760 (ppc_target::supports_tracepoints): ...this.
761 (the_low_target): Remove the op field.
762 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
763 Declare.
764 (s390_supports_tracepoints): Turn into...
765 (s390_target::supports_tracepoints): ...this.
766 (the_low_target): Remove the op field.
767 * linux-arm-low.cc (the_low_target): Remove the op field.
768 * linux-bfin-low.cc (the_low_target): Ditto.
769 * linux-crisv32-low.cc (the_low_target): Ditto.
770 * linux-m32r-low.cc (the_low_target): Ditto.
771 * linux-m68k-low.cc (the_low_target): Ditto.
772 * linux-sh-low.cc (the_low_target): Ditto.
773 * linux-tic6x-low.cc (the_low_target): Ditto.
774 * linux-tile-low.cc (the_low_target): Ditto.
775 * linux-xtensa-low.cc (the_low_target): Ditto.
776
a5b5da92
TBA
7772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
778
779 Remove the 'process_qsupported' linux target op and let a concrete
780 linux target define the op by overriding the op declaration in
781 process_stratum_target.
782
783 * linux-low.h (struct linux_target_ops): Remove the op.
784 (class linux_process_target) <process_qsupported>: Remove.
785 * linux-low.cc (linux_process_target::process_qsupported): Remove.
786 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
787 (x86_linux_process_qsupported): Turn into...
788 (x86_target::process_qsupported): ...this.
789 (the_low_target): Remove the op field.
790 * linux-aarch64-low.cc (the_low_target): Remove the op
791 field.
792 * linux-arm-low.cc (the_low_target): Ditto.
793 * linux-bfin-low.cc (the_low_target): Ditto.
794 * linux-crisv32-low.cc (the_low_target): Ditto.
795 * linux-m32r-low.cc (the_low_target): Ditto.
796 * linux-m68k-low.cc (the_low_target): Ditto.
797 * linux-ppc-low.cc (the_low_target): Ditto.
798 * linux-s390-low.cc (the_low_target): Ditto.
799 * linux-sh-low.cc (the_low_target): Ditto.
800 * linux-tic6x-low.cc (the_low_target): Ditto.
801 * linux-tile-low.cc (the_low_target): Ditto.
802 * linux-xtensa-low.cc (the_low_target): Ditto.
803
d7599cc0
TBA
8042020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
805
806 Turn the 'prepare_to_resume' linux target op into a method of
807 linux_process_target.
808
809 * linux-low.h (struct linux_target_ops): Remove the op.
810 (class linux_process_target) <low_prepare_to_resume>: Declare.
811 * linux-low.cc (linux_process_target::low_prepare_to_resume):
812 Define.
813
814 Update the callers below:
815
816 (linux_process_target::resume_one_lwp_throw)
817 (linux_process_target::low_prepare_to_resume)
818
819 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
820 Declare.
821 (x86_target::low_prepare_to_resume): Define.
822 (the_low_target): Remove the op field.
823 * linux-aarch64-low.cc (class aarch64_target)
824 <low_prepare_to_resume>: Declare.
825 (aarch64_target::low_prepare_to_resume): Define.
826 (the_low_target): Remove the op field.
827 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
828 Declare.
829 (arm_prepare_to_resume): Turn into...
830 (arm_target::low_prepare_to_resume): ...this.
831 (the_low_target): Remove the op field.
832 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
833 Declare.
834 (mips_linux_prepare_to_resume): Turn into...
835 (mips_target::low_prepare_to_resume): ...this.
836 (the_low_target): Remove the op field.
837 * linux-bfin-low.cc (the_low_target): Remove the op field.
838 * linux-crisv32-low.cc (the_low_target): Ditto.
839 * linux-m32r-low.cc (the_low_target): Ditto.
840 * linux-m68k-low.cc (the_low_target): Ditto.
841 * linux-ppc-low.cc (the_low_target): Ditto.
842 * linux-s390-low.cc (the_low_target): Ditto.
843 * linux-sh-low.cc (the_low_target): Ditto.
844 * linux-tic6x-low.cc (the_low_target): Ditto.
845 * linux-tile-low.cc (the_low_target): Ditto.
846 * linux-xtensa-low.cc (the_low_target): Ditto.
847
fd000fb3
TBA
8482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
849
850 Turn the 'new_process', 'delete_process', 'new_thread',
851 'delete_thread', and 'new_fork' linux target ops into methods
852 of linux_process_target.
853
854 * linux-low.h (struct linux_target_ops): Remove the ops.
855 (class linux_process_target) <add_linux_process>
856 <add_lwp>
857 <delete_lwp>
858 <attach_lwp>
859 <detach_one_lwp>
860 <check_zombie_leaders>
861 <filter_exit_event>
862 <low_new_process>
863 <low_delete_process>
864 <low_new_thread>
865 <low_delete_thread>
866 <low_new_fork>: Declare.
867 * linux-low.cc (delete_lwp): Turn into...
868 (linux_process_target::delete_lwp): ...this.
869 (linux_process_target::low_delete_thread): Define.
870 (linux_add_process): Turn into...
871 (linux_process_target::add_linux_process): ...this.
872 (linux_process_target::low_new_process): Define.
873 (linux_process_target::low_delete_process): Define.
874 (linux_process_target::low_new_fork): Define.
875 (add_lwp): Turn into...
876 (linux_process_target::add_lwp): ...this.
877 (linux_process_target::low_new_thread): Define.
878 (linux_attach_lwp): Turn into...
879 (linux_process_target::attach_lwp): ...this.
880 (linux_detach_one_lwp): Turn into...
881 (linux_process_target::detach_one_lwp): ...this.
882 (linux_detach_lwp_callback): Remove and inline...
883 (linux_process_target::detach): ...here.
884 (check_zombie_leaders): Turn into...
885 (linux_process_target::check_zombie_leaders): ...this.
886 (filter_exit_event): Turn into...
887 (linux_process_target::filter_exit_event): ...this.
888
889 Update the callers below.
890
891 (linux_process_target::handle_extended_wait)
892 (linux_process_target::create_inferior)
893 (attach_proc_task_lwp_callback)
894 (linux_process_target::attach)
895 (linux_process_target::detach)
896 (linux_process_target::mourn)
897 * thread-db.cc (attach_thread)
898
899 * linux-x86-low.cc (class x86_target) <low_new_process>
900 <low_delete_process>
901 <low_new_thread>
902 <low_delete_thread>
903 <low_new_fork>: Declare.
904 (x86_linux_new_process): Turn into...
905 (x86_target::low_new_process): ...this.
906 (x86_linux_delete_process): Turn into...
907 (x86_target::low_delete_process): ...this.
908 (x86_target::low_new_thread): Define.
909 (x86_target::low_delete_thread): Define.
910 (x86_linux_new_fork): Turn into...
911 (x86_target::low_new_fork): ...this.
912 (the_low_target): Remove the op fields.
913 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
914 <low_delete_process>
915 <low_new_thread>
916 <low_delete_thread>
917 <low_new_fork>: Declare.
918 (aarch64_linux_new_process): Turn into...
919 (aarch64_target::low_new_process): ...this.
920 (aarch64_linux_delete_process): Turn into...
921 (aarch64_target::low_delete_process): ...this.
922 (aarch64_target::low_new_thread): Define.
923 (aarch64_target::low_delete_thread): Define.
924 (aarch64_linux_new_fork): Turn into...
925 (aarch64_target::low_new_fork): ...this.
926 (the_low_target): Remove the op fields.
927 * linux-arm-low.cc (class arm_target) <low_new_process>
928 <low_delete_process>
929 <low_new_thread>
930 <low_delete_thread>
931 <low_new_fork>: Declare.
932 (arm_new_process): Turn into...
933 (arm_target::low_new_process): ...this.
934 (arm_delete_process): Turn into...
935 (arm_target::low_delete_process): ...this.
936 (arm_new_thread): Turn into...
937 (arm_target::low_new_thread): ...this.
938 (arm_delete_thread): Turn into...
939 (arm_target::low_delete_thread): ...this.
940 (arm_new_fork): Turn into...
941 (arm_target::low_new_fork): ...this.
942 (the_low_target): Remove the op fields.
943 * linux-mips-low.cc (class mips_target) <low_new_process>
944 <low_delete_process>
945 <low_new_thread>
946 <low_delete_thread>
947 <low_new_fork>: Declare.
948 (mips_linux_new_process): Turn into...
949 (mips_target::low_new_process): ...this.
950 (mips_linux_delete_process): Turn into...
951 (mips_target::low_delete_process): ...this.
952 (mips_linux_new_thread): Turn into...
953 (mips_target::low_new_thread): ...this.
954 (mips_linux_delete_thread): Turn into...
955 (mips_target::low_delete_thread): ...this.
956 (mips_linux_new_fork): Turn into...
957 (mips_target::low_new_fork): ...this.
958 (the_low_target): Remove the op fields.
959 * linux-bfin-low.cc (the_low_target): Remove the op fields.
960 * linux-crisv32-low.cc (the_low_target): Ditto.
961 * linux-m32r-low.cc (the_low_target): Ditto.
962 * linux-m68k-low.cc (the_low_target): Ditto.
963 * linux-ppc-low.cc (the_low_target): Ditto.
964 * linux-s390-low.cc (the_low_target): Ditto.
965 * linux-sh-low.cc (the_low_target): Ditto.
966 * linux-tic6x-low.cc (the_low_target): Ditto.
967 * linux-tile-low.cc (the_low_target): Ditto.
968 * linux-xtensa-low.cc (the_low_target): Ditto.
969
cb63de7c
TBA
9702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
971
972 Turn the 'siginfo_fixup' linux target op into a method of
973 linux_process_target.
974
975 * linux-low.h (struct linux_target_ops): Remove the op.
976 (class linux_process_target) <siginfo_fixup>
977 <low_siginfo_fixup>: Declare.
978 * linux-low.cc (siginfo_fixup): Turn into...
979 (linux_process_target::siginfo_fixup): ...this.
980 (linux_process_target::low_siginfo_fixup): Define.
981 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
982 (x86_siginfo_fixup): Turn into...
983 (x86_target::low_siginfo_fixup): ...this.
984 (the_low_target): Remove the op field.
985 * linux-aarch64-low.cc (class aarch64_target):
986 <low_siginfo_fixup>: Declare.
987 (aarch64_linux_siginfo_fixup): Turn into...
988 (aarch64_target::low_siginfo_fixup): ...this.
989 (the_low_target): Remove the op field.
990 * linux-arm-low.cc (the_low_target): Remove the op field.
991 * linux-bfin-low.cc (the_low_target): Ditto.
992 * linux-crisv32-low.cc (the_low_target): Ditto.
993 * linux-m32r-low.cc (the_low_target): Ditto.
994 * linux-m68k-low.cc (the_low_target): Ditto.
995 * linux-mips-low.cc (the_low_target): Ditto.
996 * linux-ppc-low.cc (the_low_target): Ditto.
997 * linux-s390-low.cc (the_low_target): Ditto.
998 * linux-sh-low.cc (the_low_target): Ditto.
999 * linux-tic6x-low.cc (the_low_target): Ditto.
1000 * linux-tile-low.cc (the_low_target): Ditto.
1001 * linux-xtensa-low.cc (the_low_target): Ditto.
1002
b35db733
TBA
10032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1004
1005 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1006 linux target ops into methods of linux_process_target.
1007
1008 * linux-low.h (struct linux_target_ops): Remove the ops.
1009 (class linux_process_target) <low_collect_ptrace_register>
1010 <low_store_ptrace_register>: Declare.
1011 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1012 (linux_process_target::low_supply_ptrace_register): Define.
1013
1014 Update the callers below.
1015
1016 (linux_process_target::fetch_register)
1017 (linux_process_target::store_register)
1018
1019 * linux-x86-low.cc (the_low_target): Remove the op fields.
1020 * linux-aarch64-low.cc (the_low_target): Ditto.
1021 * linux-arm-low.cc (the_low_target): Ditto.
1022 * linux-bfin-low.cc (the_low_target): Ditto.
1023 * linux-crisv32-low.cc (the_low_target): Ditto.
1024 * linux-m32r-low.cc (the_low_target): Ditto.
1025 * linux-m68k-low.cc (the_low_target): Ditto.
1026 * linux-sh-low.cc (the_low_target): Ditto.
1027 * linux-sparc-low.cc (the_low_target): Ditto.
1028 * linux-tic6x-low.cc (the_low_target): Ditto.
1029 * linux-tile-low.cc (the_low_target): Ditto.
1030 * linux-xtensa-low.cc (the_low_target): Ditto.
1031 * linux-mips-low.cc (class mips_target)
1032 <low_collect_ptrace_register>
1033 <low_supply_ptrace_register>: Declare.
1034 (mips_collect_ptrace_register): Turn into ...
1035 (mips_target::low_collect_ptrace_register): ...this.
1036 (mips_supply_ptrace_register): Turn into...
1037 (mips_target::low_supply_ptrace_register): ...this.
1038 (the_low_target): Remove the op fields.
1039 * linux-ppc-low.cc (class ppc_target)
1040 <low_collect_ptrace_register>
1041 <low_supply_ptrace_register>: Declare.
1042 (ppc_collect_ptrace_register): Turn into ...
1043 (ppc_target::low_collect_ptrace_register): ...this.
1044 (ppc_supply_ptrace_register): Turn into ...
1045 (ppc_target::low_supply_ptrace_register): ...this.
1046 (ppc_fill_gregset): Update for the calls to
1047 low_collect_ptrace_register.
1048 (the_low_target): Remove the op fields.
1049 * linux-s390-low.cc (class s390_target)
1050 <low_collect_ptrace_register>
1051 <low_supply_ptrace_register>: Declare.
1052 (s390_collect_ptrace_register): Turn into ...
1053 (s390_target::low_collect_ptrace_register): ...this.
1054 (s390_supply_ptrace_register): Turn into ...
1055 (s390_target::low_supply_ptrace_register): ...this.
1056 (s390_fill_gregset): Update for the calls to
1057 low_collect_ptrace_register.
1058 (the_low_target): Remove the op fields.
1059
ac1bbaca
TBA
10602020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1061
1062 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1063 target ops into methods of linux_process_target.
1064
1065 * linux-low.h (struct linux_target_ops): Remove the ops.
1066 (class linux_process_target) <check_stopped_by_watchpoint>
1067 <low_stopped_by_watchpoint>
1068 <low_stopped_data_address>: Declare.
1069 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1070 (linux_process_target::check_stopped_by_watchpoint): ...this.
1071 (linux_process_target::low_stopped_by_watchpoint): Define.
1072 (linux_process_target::low_stopped_data_address): Define.
1073 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1074 <low_stopped_data_address>: Declare.
1075 (x86_stopped_by_watchpoint): Turn into...
1076 (x86_target::low_stopped_by_watchpoint): ...this.
1077 (x86_stopped_data_address): Turn into...
1078 (x86_target::low_stopped_data_address): ...this.
1079 (the_low_target): Remove the op fields.
1080 * linux-aarch64-low.cc (class aarch64_target)
1081 <low_stopped_by_watchpoint>
1082 <low_stopped_data_address>: Declare.
1083 (aarch64_stopped_by_watchpoint): Turn into...
1084 (aarch64_target::low_stopped_by_watchpoint): ...this.
1085 (aarch64_stopped_data_address): Turn into...
1086 (aarch64_target::low_stopped_data_address): ...this.
1087 (the_low_target): Remove the op fields.
1088 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1089 <low_stopped_data_address>: Declare.
1090 (arm_stopped_by_watchpoint): Turn into...
1091 (arm_target::low_stopped_by_watchpoint): ...this.
1092 (arm_stopped_data_address): Turn into...
1093 (arm_target::low_stopped_data_address): ...this.
1094 (the_low_target): Remove the op fields.
1095 * linux-crisv32-low.cc (class crisv32_target)
1096 <low_stopped_by_watchpoint>
1097 <low_stopped_data_address>: Declare.
1098 (cris_stopped_by_watchpoint): Turn into...
1099 (crisv32_target::low_stopped_by_watchpoint): ...this.
1100 (cris_stopped_data_address): Turn into...
1101 (crisv32_target::low_stopped_data_address): ...this.
1102 (the_low_target): Remove the op fields.
1103 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1104 <low_stopped_data_address>: Declare.
1105 (mips_stopped_by_watchpoint): Turn into...
1106 (mips_target::low_stopped_by_watchpoint): ...this.
1107 (mips_stopped_data_address): Turn into...
1108 (mips_target::low_stopped_data_address): ...this.
1109 (the_low_target): Remove the op fields.
1110 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1111 * linux-m32r-low.cc (the_low_target): Ditto.
1112 * linux-m68k-low.cc (the_low_target): Ditto.
1113 * linux-ppc-low.cc (the_low_target): Ditto.
1114 * linux-s390-low.cc (the_low_target): Ditto.
1115 * linux-sh-low.cc (the_low_target): Ditto.
1116 * linux-sparc-low.cc (the_low_target): Ditto.
1117 * linux-tic6x-low.cc (the_low_target): Ditto.
1118 * linux-tile-low.cc (the_low_target): Ditto.
1119 * linux-xtensa-low.cc (the_low_target): Ditto.
1120
9db9aa23
TBA
11212020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1122
1123 Turn the 'insert_point' and 'remove_point' linux target ops into
1124 methods of linux_process_target.
1125
1126 * linux-low.h (struct linux_target_ops): Remove the ops.
1127 (class linux_process_target) <low_insert_point>
1128 <low_remove_point>: Declare.
1129 * linux-low.cc (linux_process_target::low_insert_point)
1130 (linux_process_target::low_remove_point): Define.
1131 (linux_process_target::insert_point)
1132 (linux_process_target::remove_point): Update for calls to
1133 low_insert_point and low_remove_point.
1134 * linux-x86-low.cc (class x86_target) <low_insert_point>
1135 <low_remove_point>: Declare.
1136 (x86_insert_point): Turn into...
1137 (x86_target::low_insert_point): ...this.
1138 (x86_remove_point): Turn into...
1139 (x86_target::low_remove_point): ...this.
1140 (the_low_target): Remove the op fields.
1141 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1142 <low_remove_point>: Declare.
1143 (aarch64_insert_point): Turn into...
1144 (aarch64_target::low_insert_point): ...this.
1145 (aarch64_remove_point): Turn into...
1146 (aarch64_target::low_remove_point): ...this.
1147 (the_low_target): Remove the op fields.
1148 * linux-arm-low.cc (class arm_target) <low_insert_point>
1149 <low_remove_point>: Declare.
1150 (arm_insert_point): Turn into...
1151 (arm_target::low_insert_point): ...this.
1152 (arm_remove_point): Turn into...
1153 (arm_target::low_remove_point): ...this.
1154 (the_low_target): Remove the op fields.
1155 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1156 <low_remove_point>: Declare.
1157 (crisv32_insert_point): Turn into...
1158 (crisv32_target::low_insert_point): ...this.
1159 (crisv32_remove_point): Turn into...
1160 (crisv32_target::low_remove_point): ...this.
1161 (the_low_target): Remove the op fields.
1162 * linux-mips-low.cc (class mips_target) <low_insert_point>
1163 <low_remove_point>: Declare.
1164 (mips_insert_point): Turn into...
1165 (mips_target::low_insert_point): ...this.
1166 (mips_remove_point): Turn into...
1167 (mips_target::low_remove_point): ...this.
1168 (the_low_target): Remove the op fields.
1169 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1170 <low_remove_point>: Declare.
1171 (ppc_insert_point): Turn into...
1172 (ppc_target::low_insert_point): ...this.
1173 (ppc_remove_point): Turn into...
1174 (ppc_target::low_remove_point): ...this.
1175 (the_low_target): Remove the op fields.
1176 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1177 * linux-m32r-low.cc (the_low_target): Ditto.
1178 * linux-m68k-low.cc (the_low_target): Ditto.
1179 * linux-s390-low.cc (the_low_target): Ditto.
1180 * linux-sh-low.cc (the_low_target): Ditto.
1181 * linux-sparc-low.cc (the_low_target): Ditto.
1182 * linux-tic6x-low.cc (the_low_target): Ditto.
1183 * linux-tile-low.cc (the_low_target): Ditto.
1184 * linux-xtensa-low.cc (the_low_target): Ditto.
1185
007c9b97
TBA
11862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1187
1188 Remove the 'supports_z_point_type' linux target op and let the
1189 concrete linux target define it by overriding the op declared in
1190 process_stratum_target.
1191
1192 * linux-low.cc (linux_process_target::supports_z_point_type):
1193 Remove.
1194 * linux-low.h (struct linux_target_ops): Remove the op.
1195 (class linux_process_target) <supports_z_point_type>: Remove.
1196 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1197 Declare.
1198 (x86_supports_z_point_type): Turn into...
1199 (x86_target::supports_z_point_type): ...this.
1200 (the_low_target): Remove the op field.
1201 * linux-aarch64-low.cc (class aarch64_target)
1202 <supports_z_point_type>: Declare.
1203 (aarch64_supports_z_point_type): Turn into...
1204 (aarch64_target::supports_z_point_type): ...this.
1205 (the_low_target): Remove the op field.
1206 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1207 Declare.
1208 (arm_supports_z_point_type): Turn into...
1209 (arm_target::supports_z_point_type): ...this.
1210 (the_low_target): Remove the op field.
1211 * linux-crisv32-low.cc (class crisv32_target)
1212 <supports_z_point_type>: Declare.
1213 (cris_supports_z_point_type): Turn into...
1214 (crisv32_target::supports_z_point_type): ...this.
1215 (the_low_target): Remove the op field.
1216 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1217 Declare.
1218 (mips_supports_z_point_type): Turn into...
1219 (mips_target::supports_z_point_type): ...this.
1220 (the_low_target): Remove the op field.
1221 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1222 Declare.
1223 (ppc_supports_z_point_type): Turn into...
1224 (ppc_target::supports_z_point_type): ...this.
1225 (the_low_target): Remove the op field.
1226 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1227 Declare.
1228 (s390_supports_z_point_type): Turn into...
1229 (s390_target::supports_z_point_type): ...this.
1230 (the_low_target): Remove the op field.
1231 * linux-bfin-low.cc (the_low_target): Remove the op field.
1232 * linux-m32r-low.cc (the_low_target): Ditto.
1233 * linux-m68k-low.cc (the_low_target): Ditto.
1234 * linux-sh-low.cc (the_low_target): Ditto.
1235 * linux-sparc-low.cc (the_low_target): Ditto.
1236 * linux-tic6x-low.cc (the_low_target): Ditto.
1237 * linux-tile-low.cc (the_low_target): Ditto.
1238 * linux-xtensa-low.cc (the_low_target): Ditto.
1239
d7146cda
TBA
12402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1241
1242 Turn the 'breakpoint_at' linux target op into a method of
1243 linux_process_target.
1244
1245 * linux-low.h (struct linux_target_ops): Remove the op.
1246 (class linux_process_target) <low_breakpoint_at>: Declare.
1247
1248 Update the callers below:
1249
1250 * linux-low.cc (linux_process_target::save_stop_reason)
1251 (linux_process_target::thread_still_has_status_pending)
1252 (linux_process_target::wait_1)
1253
1254 * linux-x86-low.cc (class x86_target)
1255 <low_breakpoint_at>: Declare.
1256 (x86_breakpoint_at): Turn into...
1257 (x86_target::low_breakpoint_at): ...this.
1258 (the_low_target): Remove the op field.
1259 * linux-aarch64-low.cc (class aarch64_target)
1260 <low_breakpoint_at>: Declare.
1261 (aarch64_breakpoint_at): Turn into...
1262 (aarch64_target::low_breakpoint_at): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-arm-low.cc (class arm_target)
1265 <low_breakpoint_at>: Declare.
1266 (arm_target::low_breakpoint_at): Define.
1267 (the_low_target): Remove the op field.
1268 * linux-bfin-low.cc (class bfin_target)
1269 <low_breakpoint_at>: Declare.
1270 (bfin_breakpoint_at): Turn into...
1271 (bfin_target::low_breakpoint_at): ...this.
1272 (the_low_target): Remove the op field.
1273 * linux-cris-low.cc (class cris_target)
1274 <low_breakpoint_at>: Declare.
1275 (cris_breakpoint_at): Turn into...
1276 (cris_target::low_breakpoint_at): ...this.
1277 (the_low_target): Remove the op field.
1278 * linux-crisv32-low.cc (class crisv32_target)
1279 <low_breakpoint_at>: Declare.
1280 (crisv32_breakpoint_at): Turn into...
1281 (crisv32_target::low_breakpoint_at): ...this.
1282 (the_low_target): Remove the op field.
1283 * linux-ia64-low.cc (class ia64_target)
1284 <low_breakpoint_at>: Declare.
1285 (ia64_target::low_breakpoint_at): Define.
1286 * linux-m32r-low.cc (class m32r_target)
1287 <low_breakpoint_at>: Declare.
1288 (m32r_breakpoint_at): Turn into...
1289 (m32r_target::low_breakpoint_at): ...this.
1290 (the_low_target): Remove the op field.
1291 * linux-m68k-low.cc (class m68k_target)
1292 <low_breakpoint_at>: Declare.
1293 (m68k_breakpoint_at): Turn into...
1294 (m68k_target::low_breakpoint_at): ...this.
1295 (the_low_target): Remove the op field.
1296 * linux-mips-low.cc (class mips_target)
1297 <low_breakpoint_at>: Declare.
1298 (mips_breakpoint_at): Turn into...
1299 (mips_target::low_breakpoint_at): ...this.
1300 (the_low_target): Remove the op field.
1301 * linux-nios2-low.cc (class nios2_target)
1302 <low_breakpoint_at>: Declare.
1303 (nios2_breakpoint_at): Turn into...
1304 (nios2_target::low_breakpoint_at): ...this.
1305 (the_low_target): Remove the op field.
1306 * linux-ppc-low.cc (class ppc_target)
1307 <low_breakpoint_at>: Declare.
1308 (ppc_breakpoint_at): Turn into...
1309 (ppc_target::low_breakpoint_at): ...this.
1310 (the_low_target): Remove the op field.
1311 * linux-riscv-low.cc (class riscv_target)
1312 <low_breakpoint_at>: Declare.
1313 (riscv_breakpoint_at): Turn into...
1314 (riscv_target::low_breakpoint_at): ...this.
1315 (the_low_target): Remove the op field.
1316 * linux-s390-low.cc (class s390_target)
1317 <low_breakpoint_at>: Declare.
1318 (s390_breakpoint_at): Turn into...
1319 (s390_target::low_breakpoint_at): ...this.
1320 (the_low_target): Remove the op field.
1321 * linux-sh-low.cc (class sh_target)
1322 <low_breakpoint_at>: Declare.
1323 (sh_breakpoint_at): Turn into...
1324 (sh_target::low_breakpoint_at): ...this.
1325 (the_low_target): Remove the op field.
1326 * linux-sparc-low.cc (class sparc_target)
1327 <low_breakpoint_at>: Declare.
1328 (sparc_breakpoint_at): Turn into...
1329 (sparc_target::low_breakpoint_at): ...this.
1330 (the_low_target): Remove the op field.
1331 * linux-tic6x-low.cc (class tic6x_target)
1332 <low_breakpoint_at>: Declare.
1333 (tic6x_breakpoint_at): Turn into...
1334 (tic6x_target::low_breakpoint_at): ...this.
1335 (the_low_target): Remove the op field.
1336 * linux-tile-low.cc (class tile_target)
1337 <low_breakpoint_at>: Declare.
1338 (tile_breakpoint_at): Turn into...
1339 (tile_target::low_breakpoint_at): ...this.
1340 (the_low_target): Remove the op field.
1341 * linux-xtensa-low.cc (class xtensa_target)
1342 <low_breakpoint_at>: Declare.
1343 (xtensa_breakpoint_at): Turn into...
1344 (xtensa_target::low_breakpoint_at): ...this.
1345 (the_low_target): Remove the op field.
1346
d4807ea2
TBA
13472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1348
1349 Turn the 'decr_pc_after_break' linux_target_ops field into
1350 a method of linux_process_target.
1351
1352 * linux-low.h (struct linux_target_ops)
1353 <decr_pc_after_break>: Remove.
1354 (class linux_process_target) <low_decr_pc_after_break>: New method
1355 declaration.
1356 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1357 New method implementation.
1358
1359 Update the users below.
1360
1361 (linux_process_target::save_stop_reason)
1362 (linux_process_target::wait_1)
1363 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1364 New declaration.
1365 (x86_target::low_decr_pc_after_break): New method implementation.
1366 (the_low_target): Remove the field.
1367 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1368 New declaration.
1369 (bfin_target::low_decr_pc_after_break): New method implementation.
1370 (the_low_target): Remove the field.
1371 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1372 New declaration.
1373 (m68k_target::low_decr_pc_after_break): New method implementation.
1374 (the_low_target): Remove the field.
1375 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1376 New declaration.
1377 (s390_target::low_decr_pc_after_break): New method implementation.
1378 (the_low_target): Remove the field.
1379 * linux-aarch64-low.cc (the_low_target): Remove the field.
1380 * linux-arm-low.cc (the_low_target): Remove the field.
1381 * linux-cris-low.cc (the_low_target): Remove the field.
1382 * linux-crisv32-low.cc (the_low_target): Remove the field.
1383 * linux-m32r-low.cc (the_low_target): Remove the field.
1384 * linux-mips-low.cc (the_low_target): Remove the field.
1385 * linux-nios2-low.cc (the_low_target): Remove the field.
1386 * linux-ppc-low.cc (the_low_target): Remove the field.
1387 * linux-riscv-low.cc (the_low_target): Remove the field.
1388 * linux-sh-low.cc (the_low_target): Remove the field.
1389 * linux-sparc-low.cc (the_low_target): Remove the field.
1390 * linux-tic6x-low.cc (the_low_target): Remove the field.
1391 * linux-tile-low.cc (the_low_target): Remove the field.
1392 * linux-xtensa-low.cc (the_low_target): Remove the field.
1393
7582c77c
TBA
13942020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1395
1396 Remove the 'supports_software_single_step' linux target op and let
1397 the concrete linux target define it by overriding the op in
1398 process_stratum_target.
1399 Turn the 'get_next_pcs' linux target op into a method of
1400 linux_process_target.
1401
1402 * linux-low.h (struct linux_target_ops): Remove the ops.
1403 (class linux_process_target) <supports_software_single_step>:
1404 Remove.
1405 <low_get_next_pcs>: Declare.
1406 * linux-low.cc (can_software_single_step): Remove.
1407 (linux_process_target::low_get_next_pcs): Define.
1408 (linux_process_target::supports_software_single_step): Remove.
1409
1410 Update the callers below.
1411
1412 (linux_process_target::handle_extended_wait)
1413 (linux_process_target::wait_1)
1414 (linux_process_target::install_software_single_step_breakpoints)
1415 (linux_process_target::single_step)
1416 (linux_process_target::thread_needs_step_over)
1417 (linux_process_target::proceed_one_lwp)
1418 (linux_process_target::supports_range_stepping)
1419
1420 * linux-x86-low.cc (the_low_target): Remove the op field.
1421 * linux-aarch64-low.cc (the_low_target): Ditto.
1422 * linux-bfin-low.cc (the_low_target): Ditto.
1423 * linux-cris-low.cc (the_low_target): Ditto.
1424 * linux-crisv32-low.cc (the_low_target): Ditto.
1425 * linux-m32r-low.cc (the_low_target): Ditto.
1426 * linux-m68k-low.cc (the_low_target): Ditto.
1427 * linux-mips-low.cc (the_low_target): Ditto.
1428 * linux-nios2-low.cc (the_low_target): Ditto.
1429 * linux-ppc-low.cc (the_low_target): Ditto.
1430 * linux-riscv-low.cc (the_low_target): Ditto.
1431 * linux-s390-low.cc (the_low_target): Ditto.
1432 * linux-sh-low.cc (the_low_target): Ditto.
1433 * linux-sparc-low.cc (the_low_target): Ditto.
1434 * linux-tic6x-low.cc (the_low_target): Ditto.
1435 * linux-tile-low.cc (the_low_target): Ditto.
1436 * linux-xtensa-low.cc (the_low_target): Ditto.
1437 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1438 <supports_software_single_step>: Declare.
1439 (arm_target::supports_software_single_step): Define.
1440 (arm_gdbserver_get_next_pcs): Turn into...
1441 (arm_target::low_get_next_pcs): ...this.
1442 (the_low_target): Remove the op field.
1443
3ca4edb6
TBA
14442020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1445
1446 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1447 the concrete linux target define it by overriding the op
1448 in process_stratum_target.
1449
1450 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1451 Remove.
1452 * linux-low.h (struct linux_target_ops): Remove the op.
1453 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1454 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1455 Declare.
1456 (x86_sw_breakpoint_from_kind): Turn into...
1457 (x86_target::sw_breakpoint_from_kind): ...this.
1458 (the_low_target): Remove the op field.
1459 * linux-aarch64-low.cc (class aarch64_target)
1460 <sw_breakpoint_from_kind>: Declare.
1461 (aarch64_sw_breakpoint_from_kind): Turn into...
1462 (aarch64_target::sw_breakpoint_from_kind): ...this.
1463 (the_low_target): Remove the op field.
1464 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1465 Declare.
1466 (arm_target::sw_breakpoint_from_kind): Define.
1467 (the_low_target): Remove the op field.
1468 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1469 Declare.
1470 (bfin_sw_breakpoint_from_kind): Turn into...
1471 (bfin_target::sw_breakpoint_from_kind): ...this.
1472 (the_low_target): Remove the op field.
1473 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1474 Declare.
1475 (cris_sw_breakpoint_from_kind): Turn into...
1476 (cris_target::sw_breakpoint_from_kind): ...this.
1477 (the_low_target): Remove the op field.
1478 * linux-crisv32-low.cc (class crisv32_target)
1479 <sw_breakpoint_from_kind>: Declare.
1480 (cris_sw_breakpoint_from_kind): Turn into...
1481 (crisv32_target::sw_breakpoint_from_kind): ...this.
1482 (the_low_target): Remove the op field.
1483 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1484 Declare.
1485 (ia64_target::sw_breakpoint_from_kind): Define.
1486 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1487 Declare.
1488 (m32r_sw_breakpoint_from_kind): Turn into...
1489 (m32r_target::sw_breakpoint_from_kind): ...this.
1490 (the_low_target): Remove the op field.
1491 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1492 Declare.
1493 (m68k_sw_breakpoint_from_kind): Turn into...
1494 (m68k_target::sw_breakpoint_from_kind): ...this.
1495 (the_low_target): Remove the op field.
1496 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1497 Declare.
1498 (mips_sw_breakpoint_from_kind): Turn into...
1499 (mips_target::sw_breakpoint_from_kind): ...this.
1500 (the_low_target): Remove the op field.
1501 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1502 Declare.
1503 (nios2_sw_breakpoint_from_kind): Turn into...
1504 (nios2_target::sw_breakpoint_from_kind): ...this.
1505 (the_low_target): Remove the op field.
1506 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1507 Declare.
1508 (ppc_sw_breakpoint_from_kind): Turn into...
1509 (ppc_target::sw_breakpoint_from_kind): ...this.
1510 (the_low_target): Remove the op field.
1511 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1512 Declare.
1513 (riscv_sw_breakpoint_from_kind): Turn into...
1514 (riscv_target::sw_breakpoint_from_kind): ...this.
1515 (the_low_target): Remove the op field.
1516 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1517 Declare.
1518 (s390_sw_breakpoint_from_kind): Turn into...
1519 (s390_target::sw_breakpoint_from_kind): ...this.
1520 (the_low_target): Remove the op field.
1521 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1522 Declare.
1523 (sh_sw_breakpoint_from_kind): Turn into...
1524 (sh_target::sw_breakpoint_from_kind): ...this.
1525 (the_low_target): Remove the op field.
1526 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1527 Declare.
1528 (sparc_sw_breakpoint_from_kind): Turn into...
1529 (sparc_target::sw_breakpoint_from_kind): ...this.
1530 (the_low_target): Remove the op field.
1531 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1532 Declare.
1533 (tic6x_sw_breakpoint_from_kind): Turn into...
1534 (tic6x_target::sw_breakpoint_from_kind): ...this.
1535 (the_low_target): Remove the op field.
1536 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1537 Declare.
1538 (tile_sw_breakpoint_from_kind): Turn into...
1539 (tile_target::sw_breakpoint_from_kind): ...this.
1540 (the_low_target): Remove the op field.
1541 * linux-xtensa-low.cc (class xtensa_target)
1542 <sw_breakpoint_from_kind>: Declare.
1543 (xtensa_sw_breakpoint_from_kind): Turn into...
1544 (xtensa_target::sw_breakpoint_from_kind): ...this.
1545 (the_low_target): Remove the op field.
1546
06250e4e
TBA
15472020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1548
1549 Remove the 'breakpoint_kind_from_pc' and
1550 'breakpoint_kind_from_current_state' linux target ops, and let the
1551 concrete linux target define them by overriding the ops of
1552 process_stratum_target.
1553
1554 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1555 Remove.
1556 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1557 * linux-low.h (struct linux_target_ops): Remove ops.
1558 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1559 <breakpoint_kind_from_current_state>: Remove.
1560 * linux-x86-low.cc (the_low_target): Remove the op fields.
1561 * linux-bfin-low.cc (the_low_target): Ditto.
1562 * linux-cris-low.cc (the_low_target): Ditto.
1563 * linux-crisv32-low.cc (the_low_target): Ditto.
1564 * linux-m32r-low.cc (the_low_target): Ditto.
1565 * linux-m68k-low.cc (the_low_target): Ditto.
1566 * linux-mips-low.cc (the_low_target): Ditto.
1567 * linux-nios2-low.cc (the_low_target): Ditto.
1568 * linux-ppc-low.cc (the_low_target): Ditto.
1569 * linux-s390-low.cc (the_low_target): Ditto.
1570 * linux-sh-low.cc (the_low_target): Ditto.
1571 * linux-sparc-low.cc (the_low_target): Ditto.
1572 * linux-tic6x-low.cc (the_low_target): Ditto.
1573 * linux-tile-low.cc (the_low_target): Ditto.
1574 * linux-xtensa-low.cc (the_low_target): Ditto.
1575 * linux-aarch64-low.cc (class aarch64_target)
1576 <breakpoint_kind_from_pc>
1577 <breakpoint_kind_from_current_state>: Declare.
1578 (aarch64_breakpoint_kind_from_pc): Turn into...
1579 (aarch64_target::breakpoint_kind_from_pc): ...this.
1580 (aarch64_breakpoint_kind_from_current_state): Turn into...
1581 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1582 (the_low_target): Remove the op fields.
1583 * linux-arm-low.cc (class arm_target):
1584 <breakpoint_kind_from_pc>
1585 <breakpoint_kind_from_current_state>: Declare.
1586 (arm_target::breakpoint_kind_from_pc): Define.
1587 (arm_target::breakpoint_kind_from_current_state): Define.
1588 (the_low_target): Remove the op fields.
1589 * linux-riscv-low.cc (class riscv_target):
1590 <breakpoint_kind_from_pc>: Declare.
1591 (riscv_breakpoint_kind_from_pc): Turn into...
1592 (riscv_target::breakpoint_kind_from_pc): ...this.
1593 (the_low_target): Remove the op fields.
1594
bf9ae9d8
TBA
15952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1596
1597 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1598 of linux_process_target.
1599
1600 * linux-low.h (struct linux_target_ops): Remove the ops.
1601 (class linux_process_target) <low_supports_breakpoints>
1602 <low_get_pc>
1603 <low_set_pc>: Declare.
1604 * linux-low.cc (supports_breakpoints): Turn into...
1605 (linux_process_target::low_supports_breakpoints): ...this.
1606 (linux_process_target::low_get_pc): Define.
1607 (linux_process_target::low_set_pc): Define.
1608
1609 Update the callers below.
1610
1611 (linux_process_target::get_pc)
1612 (linux_process_target::save_stop_reason)
1613 (linux_process_target::maybe_move_out_of_jump_pad)
1614 (linux_process_target::wait_1)
1615 (linux_process_target::resume_one_lwp_throw)
1616 (linux_process_target::resume)
1617 (linux_process_target::proceed_all_lwps)
1618 (linux_process_target::read_pc)
1619 (linux_process_target::write_pc)
1620
1621 * linux-x86-low.cc (class linux_process_target)
1622 <low_supports_breakpoints>
1623 <low_get_pc>
1624 <low_set_pc>: Declare.
1625 (x86_target::low_supports_breakpoints): Define.
1626 (x86_get_pc): Turn into...
1627 (x86_target::low_get_pc): ...this.
1628 (x86_set_pc): Turn into...
1629 (x86_target::low_set_pc): ...this.
1630 (the_low_target): Remove the op fields.
1631 * linux-arm-low.cc (class arm_target)
1632 <low_supports_breakpoints>
1633 <low_get_pc>
1634 <low_set_pc>: Declare.
1635 (arm_target::low_supports_breakpoints)
1636 (arm_target::low_get_pc)
1637 (arm_target::low_set_pc): Define.
1638 (the_low_target): Remove the op fields.
1639 * linux-bfin-low.cc (class bfin_target)
1640 <low_supports_breakpoints>
1641 <low_get_pc>
1642 <low_set_pc>: Declare.
1643 (bfin_target::low_supports_breakpoints)
1644 (bfin_target::low_get_pc)
1645 (bfin_target::low_set_pc): Define.
1646 (the_low_target): Remove the op fields.
1647 * linux-cris-low.cc (class cris_target)
1648 <low_supports_breakpoints>
1649 <low_get_pc>
1650 <low_set_pc>: Declare.
1651 (cris_target::low_supports_breakpoints)
1652 (cris_target::low_get_pc)
1653 (cris_target::low_set_pc): Define.
1654 (the_low_target): Remove the op fields.
1655 * linux-crisv32-low.cc (class crisv32_target)
1656 <low_supports_breakpoints>
1657 <low_get_pc>
1658 <low_set_pc>: Declare.
1659 (crisv32_target::low_supports_breakpoints)
1660 (crisv32_target::low_get_pc)
1661 (crisv32_target::low_set_pc): Define.
1662 (the_low_target): Remove the op fields.
1663 * linux-m32r-low.cc (class m32r_target)
1664 <low_supports_breakpoints>
1665 <low_get_pc>
1666 <low_set_pc>: Declare.
1667 (m32r_target::low_supports_breakpoints)
1668 (m32r_target::low_get_pc)
1669 (m32r_target::low_set_pc): Define.
1670 (the_low_target): Remove the op fields.
1671 * linux-m68k-low.cc (class m68k_target)
1672 <low_supports_breakpoints>
1673 <low_get_pc>
1674 <low_set_pc>: Declare.
1675 (m68k_target::low_supports_breakpoints)
1676 (m68k_target::low_get_pc)
1677 (m68k_target::low_set_pc): Define.
1678 (the_low_target): Remove the op fields.
1679 * linux-nios2-low.cc (class nios2_target)
1680 <low_supports_breakpoints>
1681 <low_get_pc>
1682 <low_set_pc>: Declare.
1683 (nios2_target::low_supports_breakpoints)
1684 (nios2_target::low_get_pc)
1685 (nios2_target::low_set_pc): Define.
1686 (the_low_target): Remove the op fields.
1687 * linux-sh-low.cc (class sh_target)
1688 <low_supports_breakpoints>
1689 <low_get_pc>
1690 <low_set_pc>: Declare.
1691 (sh_target::low_supports_breakpoints)
1692 (sh_target::low_get_pc)
1693 (sh_target::low_set_pc): Define.
1694 (the_low_target): Remove the op fields.
1695 * linux-xtensa-low.cc (class xtensa_target)
1696 <low_supports_breakpoints>
1697 <low_get_pc>
1698 <low_set_pc>: Declare.
1699 (xtensa_target::low_supports_breakpoints)
1700 (xtensa_target::low_get_pc)
1701 (xtensa_target::low_set_pc): Define.
1702 (the_low_target): Remove the op fields.
1703 * linux-sparc-low.cc (class sparc_target)
1704 <low_supports_breakpoints>
1705 <low_get_pc>: Declare.
1706 (sparc_target::low_supports_breakpoints)
1707 (sparc_target::low_get_pc): Define.
1708 (the_low_target): Remove the op fields.
1709 * linux-tile-low.cc (class tile_target)
1710 <low_supports_breakpoints>
1711 <low_get_pc>
1712 <low_set_pc>: Declare.
1713 (tile_target::low_supports_breakpoints)
1714 (tile_target::low_get_pc)
1715 (tile_target::low_set_pc): Define.
1716 (the_low_target): Remove the op fields.
1717 * linux-aarch64-low.cc (class aarch64_target)
1718 <low_supports_breakpoints>
1719 <low_get_pc>
1720 <low_set_pc>: Declare.
1721 (aarch64_target::low_supports_breakpoints): Define.
1722 (aarch64_get_pc): Turn into...
1723 (aarch64_target::low_get_pc): ...this.
1724 (aarch64_set_pc): Turn into...
1725 (aarch64_target::low_set_pc): ...this.
1726 (the_low_target): Remove the op fields.
1727 * linux-mips-low.cc (class mips_target)
1728 <low_supports_breakpoints>
1729 <low_get_pc>
1730 <low_set_pc>: Declare.
1731 (mips_target::low_supports_breakpoints): Define.
1732 (mips_get_pc): Turn into...
1733 (mips_target::low_get_pc): ...this.
1734 (mips_set_pc): Turn into...
1735 (mips_target::low_set_pc): ...this.
1736 (the_low_target): Remove the op fields.
1737 * linux-ppc-low.cc (class ppc_target)
1738 <low_supports_breakpoints>
1739 <low_get_pc>
1740 <low_set_pc>: Declare.
1741 (ppc_target::low_supports_breakpoints): Define.
1742 (ppc_get_pc): Turn into...
1743 (ppc_target::low_get_pc): ...this.
1744 (ppc_set_pc): Turn into...
1745 (ppc_target::low_set_pc): ...this.
1746 (the_low_target): Remove the op fields.
1747 * linux-riscv-low.cc (class riscv_target)
1748 <low_supports_breakpoints>
1749 <low_get_pc>
1750 <low_set_pc>: Declare.
1751 (riscv_target::low_supports_breakpoints): Define.
1752 (riscv_get_pc): Turn into...
1753 (riscv_target::low_get_pc): ...this.
1754 (riscv_set_pc): Turn into...
1755 (riscv_target::low_set_pc): ...this.
1756 (the_low_target): Remove the op fields.
1757 * linux-s390-low.cc (class s390_target)
1758 <low_supports_breakpoints>
1759 <low_get_pc>
1760 <low_set_pc>: Declare.
1761 (s390_target::low_supports_breakpoints): Define.
1762 (s390_get_pc): Turn into...
1763 (s390_target::low_get_pc): ...this.
1764 (s390_set_pc): Turn into...
1765 (s390_target::low_set_pc): ...this.
1766 (the_low_target): Remove the op fields.
1767 * linux-tic6x-low.cc (class tic6x_target)
1768 <low_supports_breakpoints>
1769 <low_get_pc>
1770 <low_set_pc>: Declare.
1771 (tic6x_target::low_supports_breakpoints): Define.
1772 (tic6x_get_pc): Turn into...
1773 (tic6x_target::low_get_pc): ...this.
1774 (tic6x_set_pc): Turn into...
1775 (tic6x_target::low_set_pc): ...this.
1776 (the_low_target): Remove the op fields.
1777
df95181f
TBA
17782020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1779
1780 Turn some more static methods in linux-low into private methods
1781 of linux_process_target.
1782
1783 * linux-low.cc (get_pc): Turn into...
1784 (linux_process_target::get_pc): ...this.
1785 (save_stop_reason): Turn into...
1786 (linux_process_target::save_stop_reason): ...this.
1787 (thread_still_has_status_pending_p): Turn into...
1788 (linux_process_target::thread_still_has_status_pending): ...this.
1789 (status_pending_p_callback): Turn into...
1790 (linux_process_target::status_pending_p_callback): ...this.
1791 (resume_stopped_resumed_lwps): Turn into...
1792 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1793 (install_software_single_step_breakpoints): Turn into...
1794 (linux_process_target::install_software_single_step_breakpoints):
1795 ...this.
1796 (single_step): Turn into...
1797 (linux_process_target::single_step): ...this.
1798 (linux_resume_one_lwp_throw): Turn into...
1799 (linux_process_target::resume_one_lwp_throw): ...this.
1800 (linux_resume_one_lwp): Turn into...
1801 (linux_process_target::resume_one_lwp): ...this.
1802 (resume_status_pending_p): Turn into...
1803 (linux_process_target::resume_status_pending): ...this.
1804 (need_step_over_p): Turn into...
1805 (linux_process_target::thread_needs_step_over): ...this.
1806 (linux_resume_one_thread): Turn into...
1807 (linux_process_target::resume_one_thread): ...this.
1808 (proceed_one_lwp): Turn into...
1809 (linux_process_target::proceed_one_lwp): ...this.
1810 (unsuspend_and_proceed_one_lwp): Turn into...
1811 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1812
1813 Update the calls/references to the above functions below.
1814
1815 (linux_process_target::handle_extended_wait)
1816 (linux_process_target::filter_event)
1817 (linux_process_target::wait_for_event_filtered)
1818 (linux_process_target::wait_1)
1819 (linux_process_target::move_out_of_jump_pad)
1820 (linux_process_target::start_step_over)
1821 (linux_process_target::resume)
1822 (linux_process_target::proceed_all_lwps)
1823 (regsets_store_inferior_registers)
1824 (linux_process_target::store_register)
1825
1826 * linux-low.h (class linux_process_target)
1827 <get_pc>
1828 <save_stop_reason>
1829 <thread_still_has_status_pending>
1830 <status_pending_p_callback>
1831 <resume_stopped_resumed_lwps>
1832 <install_software_single_step_breakpoints>
1833 <single_step>
1834 <resume_one_lwp_throw>
1835 <resume_one_lwp>
1836 <resume_status_pending>
1837 <thread_needs_step_over>
1838 <resume_one_thread>
1839 <proceed_one_lwp>
1840 <unsuspend_and_proceed_one_lwp>: Declare.
1841
bd70b1f2
TBA
18422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1843
1844 Turn the 'fetch_register' linux target op into a method of
1845 linux_process_target.
1846
1847 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1848 (class linux_process_target) <low_fetch_register>: Declare.
1849 * linux-x86-low.cc (the_low_target)
1850 * linux-aarch64-low.cc (the_low_target)
1851 * linux-arm-low.cc (the_low_target)
1852 * linux-bfin-low.cc (the_low_target)
1853 * linux-cris-low.cc (the_low_target)
1854 * linux-crisv32-low.cc (the_low_target)
1855 * linux-m32r-low.cc (the_low_target)
1856 * linux-m68k-low.cc (the_low_target)
1857 * linux-nios2-low.cc (the_low_target)
1858 * linux-ppc-low.cc (the_low_target)
1859 * linux-s390-low.cc (the_low_target)
1860 * linux-sh-low.cc (the_low_target)
1861 * linux-sparc-low.cc (the_low_target)
1862 * linux-tic6x-low.cc (the_low_target)
1863 * linux-tile-low.cc (the_low_target)
1864 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1865 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1866 Declare.
1867 (ia64_fetch_register): Turn into...
1868 (ia64_target::low_fetch_register): ...this.
1869 (the_low_target): Remove the op field.
1870 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1871 Declare.
1872 (mips_fetch_register): Turn into...
1873 (mips_target::low_fetch_register): ...this.
1874 (the_low_target): Remove the op field.
1875 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1876 Declare.
1877 (riscv_fetch_register): Turn into...
1878 (riscv_target::low_fetch_register): ...this.
1879 (the_low_target): Remove the op field.
1880
1881 Update the callers below.
1882
1883 * linux-low.cc (linux_process_target::fetch_registers)
1884 (linux_process_target::low_fetch_register)
1885
daca57a7
TBA
18862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1887
1888 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1889 linux target ops into methods of linux_process_target.
1890
1891 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1892 (class linux_process_target) <fetch_register>
1893 <store_register>
1894 <usr_fetch_inferior_registers>
1895 <usr_store_inferior_registers>
1896 <low_cannot_fetch_register>
1897 <low_cannot_fetch_register> Declare.
1898 * linux-low.cc (fetch_register): Turn into...
1899 (linux_process_target::fetch_register): ...this.
1900 (store_register): Turn into ...
1901 (linux_process_target::store_register): ...this.
1902 (usr_fetch_inferior_registers): Turn into...
1903 (linux_process_target::usr_fetch_inferior_registers): ...this.
1904 (usr_store_inferior_registers): Turn into...
1905 (linux_process_target::usr_store_inferior_registers): ...this.
1906 * linux-x86-low.cc (class x86_target)
1907 <low_cannot_fetch_register>
1908 <low_cannot_store_register>: Declare.
1909 (x86_cannot_store_register): Turn into...
1910 (x86_target::low_cannot_store_register): ...this.
1911 (x86_cannot_fetch_register): Turn into...
1912 (x86_target::low_cannot_fetch_register): ...this.
1913 (the_low_target): Remove the target op fields.
1914 * linux-aarch64-low.cc (class aarch64_target)
1915 <low_cannot_fetch_register>
1916 <low_cannot_store_register>: Declare.
1917 (aarch64_target::low_cannot_fetch_register)
1918 (aarch64_target::low_cannot_store_register): Define.
1919 (the_low_target): Remove the op fields.
1920 * linux-arm-low.cc (class arm_target)
1921 <low_cannot_fetch_register>
1922 <low_cannot_store_register>: Declare.
1923 (arm_cannot_fetch_register): Turn into...
1924 (arm_target::low_cannot_fetch_register): ...this.
1925 (arm_cannot_store_register): Turn into...
1926 (arm_target::low_cannot_store_register): ...this.
1927 (the_low_target): Remove the op fields.
1928 * linux-bfin-low.cc (class bfin_target)
1929 <low_cannot_fetch_register>
1930 <low_cannot_store_register>: Declare.
1931 (bfin_cannot_fetch_register): Turn into...
1932 (bfin_target::low_cannot_fetch_register): ...this.
1933 (bfin_cannot_store_register): Turn into...
1934 (bfin_target::low_cannot_store_register): ...this.
1935 (the_low_target): Remove the op fields.
1936 * linux-cris-low.cc (class cris_target)
1937 <low_cannot_fetch_register>
1938 <low_cannot_store_register>: Declare.
1939 (cris_cannot_fetch_register): Turn into...
1940 (cris_target::low_cannot_fetch_register): ...this.
1941 (cris_cannot_store_register): Turn into...
1942 (cris_target::low_cannot_store_register): ...this.
1943 (the_low_target): Remove the op fields.
1944 * linux-crisv32-low.cc (class crisv32_target)
1945 <low_cannot_fetch_register>
1946 <low_cannot_store_register>: Declare.
1947 (crisv32_target::low_cannot_fetch_register)
1948 (crisv32_target::low_cannot_store_register): Define.
1949 (the_low_target): Remove the op fields.
1950 * linux-ia64-low.cc (class ia64_target)
1951 <low_cannot_fetch_register>
1952 <low_cannot_store_register>: Declare.
1953 (ia64_cannot_fetch_register): Turn into...
1954 (ia64_target::low_cannot_fetch_register): ...this.
1955 (ia64_cannot_store_register): Turn into...
1956 (ia64_target::low_cannot_store_register): ...this.
1957 (the_low_target): Remove the op fields.
1958 * linux-m32r-low.cc (class m32r_target)
1959 <low_cannot_fetch_register>
1960 <low_cannot_store_register>: Declare.
1961 (m32r_cannot_fetch_register): Turn into...
1962 (m32r_target::low_cannot_fetch_register): ...this.
1963 (m32r_cannot_store_register): Turn into...
1964 (m32r_target::low_cannot_store_register): ...this.
1965 (the_low_target): Remove the op fields.
1966 * linux-m68k-low.cc (class m68k_target)
1967 <low_cannot_fetch_register>
1968 <low_cannot_store_register>: Declare.
1969 (m68k_cannot_fetch_register): Turn into...
1970 (m68k_target::low_cannot_fetch_register): ...this.
1971 (m68k_cannot_store_register): Turn into...
1972 (m68k_target::low_cannot_store_register): ...this.
1973 (the_low_target): Remove the op fields.
1974 * linux-mips-low.cc (class mips_target)
1975 <low_cannot_fetch_register>
1976 <low_cannot_store_register>: Declare.
1977 (mips_cannot_fetch_register): Turn into...
1978 (mips_target::low_cannot_fetch_register): ...this.
1979 (mips_cannot_store_register): Turn into...
1980 (mips_target::low_cannot_store_register): ...this.
1981 (get_usrregs_info): Inline at the call sites in
1982 low_cannot_fetch_register and low_cannot_store_register,
1983 and remove.
1984 (the_low_target): Remove the op fields.
1985 * linux-nios2-low.cc (class nios2_target)
1986 <low_cannot_fetch_register>
1987 <low_cannot_store_register>: Declare.
1988 (nios2_cannot_fetch_register): Turn into...
1989 (nios2_target::low_cannot_fetch_register): ...this.
1990 (nios2_cannot_store_register): Turn into...
1991 (nios2_target::low_cannot_store_register): ...this.
1992 (the_low_target): Remove the op fields.
1993 * linux-ppc-low.cc (class ppc_target)
1994 <low_cannot_fetch_register>
1995 <low_cannot_store_register>: Declare.
1996 (ppc_cannot_fetch_register): Turn into...
1997 (ppc_target::low_cannot_fetch_register): ...this.
1998 (ppc_cannot_store_register): Turn into...
1999 (ppc_target::low_cannot_store_register): ...this.
2000 (the_low_target): Remove the op fields.
2001 * linux-riscv-low.cc (class riscv_target)
2002 <low_cannot_fetch_register>
2003 <low_cannot_store_register>: Declare.
2004 (riscv_target::low_cannot_fetch_register)
2005 (riscv_target::low_cannot_store_register): Define.
2006 (the_low_target): Remove the op fields.
2007 * linux-s390-low.cc (class s390_target)
2008 <low_cannot_fetch_register>
2009 <low_cannot_store_register>: Declare.
2010 (s390_cannot_fetch_register): Turn into...
2011 (s390_target::low_cannot_fetch_register): ...this.
2012 (s390_cannot_store_register): Turn into...
2013 (s390_target::low_cannot_store_register): ...this.
2014 (the_low_target): Remove the op fields.
2015 * linux-sh-low.cc (class sh_target)
2016 <low_cannot_fetch_register>
2017 <low_cannot_store_register>: Declare.
2018 (sh_cannot_fetch_register): Turn into...
2019 (sh_target::low_cannot_fetch_register): ...this.
2020 (sh_cannot_store_register): Turn into...
2021 (sh_target::low_cannot_store_register): ...this.
2022 (the_low_target): Remove the op fields.
2023 * linux-sparc-low.cc (class sparc_target)
2024 <low_cannot_fetch_register>
2025 <low_cannot_store_register>: Declare.
2026 (sparc_cannot_fetch_register): Turn into...
2027 (sparc_target::low_cannot_fetch_register): ...this.
2028 (sparc_cannot_store_register): Turn into...
2029 (sparc_target::low_cannot_store_register): ...this.
2030 (the_low_target): Remove the op fields.
2031 * linux-tic6x-low.cc (class tic6x_target)
2032 <low_cannot_fetch_register>
2033 <low_cannot_store_register>: Declare.
2034 (tic6x_cannot_fetch_register): Turn into...
2035 (tic6x_target::low_cannot_fetch_register): ...this.
2036 (tic6x_cannot_store_register): Turn into...
2037 (tic6x_target::low_cannot_store_register): ...this.
2038 (the_low_target): Remove the op fields.
2039 * linux-tile-low.cc (class tile_target)
2040 <low_cannot_fetch_register>
2041 <low_cannot_store_register>: Declare.
2042 (tile_cannot_fetch_register): Turn into...
2043 (tile_target::low_cannot_fetch_register): ...this.
2044 (tile_cannot_store_register): Turn into...
2045 (tile_target::low_cannot_store_register): ...this.
2046 (the_low_target): Remove the op fields.
2047 * linux-xtensa-low.cc (class xtensa_target)
2048 <low_cannot_fetch_register>
2049 <low_cannot_store_register>: Declare.
2050 (xtensa_target::low_cannot_fetch_register)
2051 (xtensa_target::low_cannot_store_register): Define.
2052 (the_low_target): Remove the op fields.
2053
aa8d21c9
TBA
20542020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2055
2056 Turn the 'regs_info' linux target op into a method of
2057 linux_process_target.
2058
2059 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2060 (class linux_process_target) <get_regs_info>: Define.
2061
2062 Update the callers below.
2063
2064 * linux-low.cc (linux_process_target::fetch_registers)
2065 (linux_process_target::store_registers)
2066 * proc-service.cc (gregset_info)
2067
2068 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2069 (x86_linux_regs_info): Turn into ...
2070 (x86_target::get_regs_info): ...this.
2071 (the_low_target): Remove the op field.
2072 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2073 Declare.
2074 (aarch64_regs_info): Turn into ...
2075 (aarch64_target::get_regs_info): ...this.
2076 (the_low_target): Remove the op field.
2077 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2078 (arm_regs_info): Turn into ...
2079 (arm_target::get_regs_info): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2082 (bfin_regs_info): Turn into ...
2083 (bfin_target::get_regs_info): ...this.
2084 (the_low_target): Remove the op field.
2085 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2086 (cris_regs_info): Turn into ...
2087 (cris_target::get_regs_info): ...this.
2088 (the_low_target): Remove the op field.
2089 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2090 Declare.
2091 (crisv32_regs_info): Turn into ...
2092 (crisv32_target::get_regs_info): ...this.
2093 (the_low_target): Remove the op field.
2094 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2095 (ia64_regs_info): Turn into ...
2096 (ia64_target::get_regs_info): ...this.
2097 (the_low_target): Remove the op field.
2098 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2099 (m32r_regs_info): Turn into ...
2100 (m32r_target::get_regs_info): ...this.
2101 (the_low_target): Remove the op field.
2102 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2103 (m68k_regs_info): Turn into ...
2104 (m68k_target::get_regs_info): ...this.
2105 (the_low_target): Remove the op field.
2106 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2107 (mips_regs_info): Turn into ...
2108 (mips_target::get_regs_info): ...this.
2109 (the_low_target): Remove the op field.
2110 (get_usrregs_info): Update the call to the op.
2111 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2112 (nios2_regs_info): Turn into ...
2113 (nios2_target::get_regs_info): ...this.
2114 (the_low_target): Remove the op field.
2115 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2116 (ppc_regs_info): Turn into ...
2117 (ppc_target::get_regs_info): ...this.
2118 (the_low_target): Remove the op field.
2119 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2120 (riscv_regs_info): Turn into ...
2121 (riscv_target::get_regs_info): ...this.
2122 (the_low_target): Remove the op field.
2123 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2124 (s390_regs_info): Turn into ...
2125 (s390_target::get_regs_info): ...this.
2126 (the_low_target): Remove the op field.
2127 (s390_collect_ptrace_register)
2128 (s390_supply_ptrace_register)
2129 (s390_fill_gregset): Update the call to the op.
2130 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2131 (sh_regs_info): Turn into ...
2132 (sh_target::get_regs_info): ...this.
2133 (the_low_target): Remove the op field.
2134 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2135 (sparc_regs_info): Turn into ...
2136 (sparc_target::get_regs_info): ...this.
2137 (the_low_target): Remove the op field.
2138 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2139 (tic6x_regs_info): Turn into ...
2140 (tic6x_target::get_regs_info): ...this.
2141 (the_low_target): Remove the op field.
2142 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2143 (tile_regs_info): Turn into ...
2144 (tile_target::get_regs_info): ...this.
2145 (the_low_target): Remove the op field.
2146 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2147 Declare.
2148 (xtensa_regs_info): Turn into ...
2149 (xtensa_target::get_regs_info): ...this.
2150 (the_low_target): Remove the op field.
2151
797bcff5
TBA
21522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2153
2154 Turn the 'arch_setup' linux target op into a method of
2155 linux_process_target.
2156
2157 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2158 (class linux_process_target) <arch_setup_thread>
2159 <low_arch_setup>: New declarations.
2160 * linux-low.cc (linux_arch_setup): Delete.
2161 (linux_arch_setup_thread): Turn into...
2162 (linux_process_target::arch_setup_thread): ... this.
2163
2164 Update the callers below.
2165
2166 (linux_process_target::handle_extended_wait)
2167 (linux_process_target::post_create_inferior)
2168 (linux_process_target::filter_event)
2169
2170 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2171 declaration.
2172 (x86_linux_update_xmltarget): Turn into...
2173 (x86_target::update_xmltarget): ...this.
2174 (x86_linux_process_qsupported): Update the call to
2175 x86_linux_update_xmltarget.
2176 (x86_arch_setup): Turn into ...
2177 (x86_target::low_arch_setup): ...this.
2178 (the_low_target): Remove the op field.
2179 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2180 declaration.
2181 (aarch64_arch_setup): Turn into ...
2182 (aarch64_target::low_arch_setup): ...this.
2183 (the_low_target): Remove the op field.
2184 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2185 declaration.
2186 (arm_arch_setup): Turn into ...
2187 (arm_target::low_arch_setup): ...this.
2188 (the_low_target): Remove the op field.
2189 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2190 declaration.
2191 (bfin_arch_setup): Turn into ...
2192 (bfin_target::low_arch_setup): ...this.
2193 (the_low_target): Remove the op field.
2194 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2195 declaration.
2196 (cris_arch_setup): Turn into ...
2197 (cris_target::low_arch_setup): ...this.
2198 (the_low_target): Remove the op field.
2199 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2200 declaration.
2201 (crisv32_arch_setup): Turn into ...
2202 (crisv32_target::low_arch_setup): ...this.
2203 (the_low_target): Remove the op field.
2204 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2205 declaration.
2206 (ia64_arch_setup): Turn into ...
2207 (ia64_target::low_arch_setup): ...this.
2208 (the_low_target): Remove the op field.
2209 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2210 declaration.
2211 (m32r_arch_setup): Turn into ...
2212 (m32r_target::low_arch_setup): ...this.
2213 (the_low_target): Remove the op field.
2214 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2215 declaration.
2216 (m68k_arch_setup): Turn into ...
2217 (m68k_target::low_arch_setup): ...this.
2218 (the_low_target): Remove the op field.
2219 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2220 declaration.
2221 (mips_arch_setup): Turn into ...
2222 (mips_target::low_arch_setup): ...this.
2223 (the_low_target): Remove the op field.
2224 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2225 declaration.
2226 (nios2_arch_setup): Turn into ...
2227 (nios2_target::low_arch_setup): ...this.
2228 (the_low_target): Remove the op field.
2229 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2230 declaration.
2231 (ppc_arch_setup): Turn into ...
2232 (ppc_target::low_arch_setup): ...this.
2233 (the_low_target): Remove the op field.
2234 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2235 declaration.
2236 (riscv_arch_setup): Turn into ...
2237 (riscv_target::low_arch_setup): ...this.
2238 (the_low_target): Remove the op field.
2239 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2240 declaration.
2241 (s390_arch_setup): Turn into ...
2242 (s390_target::low_arch_setup): ...this.
2243 (the_low_target): Remove the op field.
2244 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2245 declaration.
2246 (sh_arch_setup): Turn into ...
2247 (sh_target::low_arch_setup): ...this.
2248 (the_low_target): Remove the op field.
2249 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2250 declaration.
2251 (sparc_arch_setup): Turn into ...
2252 (sparc_target::low_arch_setup): ...this.
2253 (the_low_target): Remove the op field.
2254 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2255 declaration.
2256 (tic6x_arch_setup): Turn into ...
2257 (tic6x_target::low_arch_setup): ...this.
2258 (the_low_target): Remove the op field.
2259 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2260 declaration.
2261 (tile_arch_setup): Turn into ...
2262 (tile_target::low_arch_setup): ...this.
2263 (the_low_target): Remove the op field.
2264 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2265 declaration.
2266 (xtensa_arch_setup): Turn into ...
2267 (xtensa_target::low_arch_setup): ...this.
2268 (the_low_target): Remove the op field.
2269
ef0478f6
TBA
22702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2271
2272 * linux-low.h (the_linux_target): New extern declaration.
2273 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2274 'the_target'.
2275 (the_linux_target): Remove.
2276 * linux-x86-low.cc (class x86_target): New class.
2277 (the_x86_target): New static object.
2278 (the_linux_target): Define as pointer to the_x86_target.
2279 * linux-aarch64-low.cc (class aarch64_target): New class.
2280 (the_aarch64_target): New static object.
2281 (the_linux_target): Define as pointer to the_aarch64_target.
2282 * linux-arm-low.cc (class arm_target): New class.
2283 (the_arm_target): New static object.
2284 (the_linux_target): Define as pointer to the_arm_target.
2285 * linux-bfin-low.cc (class bfin_target): New class.
2286 (the_bfin_target): New static object.
2287 (the_linux_target): Define as pointer to the_bfin_target.
2288 * linux-cris-low.cc (class cris_target): New class.
2289 (the_cris_target): New static object.
2290 (the_linux_target): Define as pointer to the_cris_target.
2291 * linux-crisv32-low.cc (class crisv32_target): New class.
2292 (the_crisv32_target): New static object.
2293 (the_linux_target): Define as pointer to the_crisv32_target.
2294 * linux-ia64-low.cc (class ia64_target): New class.
2295 (the_ia64_target): New static object.
2296 (the_linux_target): Define as pointer to the_ia64_target.
2297 * linux-m32r-low.cc (class m32r_target): New class.
2298 (the_m32r_target): New static object.
2299 (the_linux_target): Define as pointer to the_m32r_target.
2300 * linux-m68k-low.cc (class m68k_target): New class.
2301 (the_m68k_target): New static object.
2302 (the_linux_target): Define as pointer to the_m68k_target.
2303 * linux-mips-low.cc (class mips_target): New class.
2304 (the_mips_target): New static object.
2305 (the_linux_target): Define as pointer to the_mips_target.
2306 * linux-nios2-low.cc (class nios2_target): New class.
2307 (the_nios2_target): New static object.
2308 (the_linux_target): Define as pointer to the_nios2_target.
2309 * linux-ppc-low.cc (class ppc_target): New class.
2310 (the_ppc_target): New static object.
2311 (the_linux_target): Define as pointer to the_ppc_target.
2312 * linux-riscv-low.cc (class riscv_target): New class.
2313 (the_riscv_target): New static object.
2314 (the_linux_target): Define as pointer to the_riscv_target.
2315 * linux-s390-low.cc (class s390_target): New class.
2316 (the_s390_target): New static object.
2317 (the_linux_target): Define as pointer to the_s390_target.
2318 * linux-sh-low.cc (class sh_target): New class.
2319 (the_sh_target): New static object.
2320 (the_linux_target): Define as pointer to the_sh_target.
2321 * linux-sparc-low.cc (class sparc_target): New class.
2322 (the_sparc_target): New static object.
2323 (the_linux_target): Define as pointer to the_sparc_target.
2324 * linux-tic6x-low.cc (class tic6x_target): New class.
2325 (the_tic6x_target): New static object.
2326 (the_linux_target): Define as pointer to the_tic6x_target.
2327 * linux-tile-low.cc (class tile_target): New class.
2328 (the_tile_target): New static object.
2329 (the_linux_target): Define as pointer to the_tile_target.
2330 * linux-xtensa-low.cc (class xtensa_target): New class.
2331 (the_xtensa_target): New static object.
2332 (the_linux_target): Define as pointer to the_xtensa_target.
2333
d16f3f6c
TBA
23342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2335
2336 Turn some static functions in linux-low.cc into private methods of
2337 linux_process_target.
2338
2339 * linux-low.cc (handle_extended_wait): Turn into ...
2340 (linux_process_target::handle_extended_wait): ...this. Call
2341 'mourn' on 'this' object instead of 'the_target'.
2342 (maybe_move_out_of_jump_pad): Turn into...
2343 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2344 (linux_low_filter_event): Turn into...
2345 (linux_process_target::filter_event): ...this.
2346 (linux_wait_for_event_filtered): Turn into...
2347 (linux_process_target::wait_for_event_filtered): ...this.
2348 (linux_wait_for_event): Turn into...
2349 (linux_process_target::wait_for_event): ...this.
2350 (linux_wait_1): Turn into...
2351 (linux_process_target::wait_1): ...this.
2352 (wait_for_sigstop): Turn into...
2353 (linux_process_target::wait_for_sigstop): ...this.
2354 (move_out_of_jump_pad_callback): Turn into...
2355 (linux_process_target::move_out_of_jump_pad): ...this.
2356 (stop_all_lwps): Turn into...
2357 (linux_process_target::stop_all_lwps): ...this.
2358 (start_step_over): Turn into...
2359 (linux_process_target::start_step_over): ...this.
2360 (complete_ongoing_step_over): Turn into...
2361 (linux_process_target::complete_ongoing_step_over): ...this.
2362 (proceed_all_lwps): Turn into...
2363 (linux_process_target::proceed_all_lwps): ...this.
2364 (unstop_all_lwps): Turn into...
2365 (linux_process_target::unstop_all_lwps): ...this.
2366
2367 * linux-low.h (class linux_process_target)
2368 <handle_extended_wait>
2369 <maybe_move_out_of_jump_pad>
2370 filter_event>
2371 <wait_for_event_filtered>
2372 <wait_for_event>
2373 <wait_1>
2374 <wait_for_sigstop>
2375 <move_out_of_jump_pad>
2376 <stop_all_lwps>
2377 <start_step_over>
2378 <complete_ongoing_step_over>
2379 <proceed_all_lwps>
2380 <unstop_all_lwps>: Declare.
2381
2382 Update the callers below.
2383
2384 * linux-low.cc (linux_process_target::attach): Update.
2385 (linux_process_target::stabilize_threads): Ditto.
2386 (linux_process_target::wait): Ditto.
2387
a5863204
TBA
23882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2389
2390 * linux-low.h (struct linux_target_ops): Update the comment for
2391 'cannot_store_register' to return 0 or 1.
2392 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2393 of 2.
2394
c884cc46
SM
23952020-03-20 Simon Marchi <simon.marchi@efficios.com>
2396
2397 * config.in: Re-generate.
2398 * configure: Re-generate.
2399
5a82b8a1
KR
24002020-03-17 Kamil Rytarowski <n54@gmx.com>
2401
2402 * regcache.cc (find_register_by_number): Update.
2403 * tdesc.cc (init_target_desc): Likewise.
2404 * tdesc.h (target_desc::reg_defs): Likewise.
2405
4635ff97
TT
24062020-03-12 Tom Tromey <tom@tromey.com>
2407
2408 * configure: Rebuild.
2409 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2410 (WIN32APILIBS): New subst.
2411 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2412 gdbsupport files.
2413 (gdbsupport/%.o): Remove target.
2414 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2415 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2416 (WIN32APILIBS): New variable.
2417 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2418 (gdbreplay$(EXEEXT)): Likewise.
2419
9a665d62
TT
24202020-03-12 Tom Tromey <tom@tromey.com>
2421
2422 * config.in, configure: Rebuild.
2423 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2424 * acinclude.m4: Include gettext-sister.m4.
2425 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2426 variables.
2427 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2428 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2429
272cd5a3
SM
24302020-03-12 Simon Marchi <simon.marchi@efficios.com>
2431
2432 * acinclude.m4: Update path to selftest.m4.
2433
db6878ac
SM
24342020-03-12 Simon Marchi <simon.marchi@efficios.com>
2435
2436 * configure.ac: Don't source bfd/development.sh, move
2437 GDB_AC_COMMON higher.
2438 * configure: Re-generate.
2439
4d696a5c
SM
24402020-03-12 Simon Marchi <simon.marchi@efficios.com>
2441
2442 * configure: Re-generate.
2443
a0761e34
SM
24442020-03-11 Simon Marchi <simon.marchi@efficios.com>
2445
2446 * configure: Re-generate.
2447
20ea4a60
AB
24482020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * .dir-locals.el: New file.
2451
842806cb
TBA
24522020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2453
2454 * .gitattributes: New file.
2455
442131c1
AB
24562020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2457
2458 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2459 reply into an S reply.
2460 * server.cc (disable_packet_T): New global.
2461 (captured_main): Set new global when appropriate.
2462 * server.h (disable_packet_T): Declare.
2463
dda42c0b
TT
24642020-02-21 Tom Tromey <tom@tromey.com>
2465
2466 * Makefile.in (mostlyclean): New target.
2467
52405d85
TBA
24682020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2469
2470 * target.h (struct process_stratum_target): Remove.
2471 (class process_target): Rename to ...
2472 (class process_stratum_target): ... this.
2473 * linux-low.h (class linux_process_target): Derive from
2474 'process_stratum_target'.
2475 * linux-low.cc (linux_target_ops): Remove.
2476 (initialize_low): Set the_target to the singleton instance of
2477 linux_process_target.
2478 * lynx-low.h (class lynx_process_target): Derive from
2479 'process_stratum_target'.
2480 * lynx-low.cc (lynx_target_ops): Remove.
2481 (initialize_low): Set the_target to the singleton instance of
2482 lynx_process_target.
2483 * nto-low.h (class nto_process_target): Derive from
2484 'process_stratum_target'.
2485 * nto-low.cc (nto_target_ops): Remove.
2486 (initialize_low): Set the_target to the singleton instance of
2487 nto_process_target.
2488 * win32-low.h (class win32_process_target): Derive from
2489 'process_stratum_target'.
2490 * win32-low.cc (win32_target_ops): Remove.
2491 (initialize_low): Set the_target to the singleton instance of
2492 win32_process_target.
2493
2494 Replace 'the_target->pt' with 'the_target' in the uses below.
2495
2496 * hostio.cc (hostio_error)
2497 (handle_setfs)
2498 (handle_open)
2499 (handle_unlink)
2500 (handle_readlink)
2501 * linux-aarch32-low.cc (arm_breakpoint_at)
2502 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2503 * linux-arm-low.cc (arm_sigreturn_next_pc)
2504 (arm_get_hwcap)
2505 (arm_get_syscall_trapinfo)
2506 * linux-cris-low.cc (cris_breakpoint_at)
2507 * linux-crisv32-low.cc (cris_breakpoint_at)
2508 * linux-low.cc (handle_extended_wait)
2509 (linux_wait_1)
2510 (linux_read_memory)
2511 (linux_process_target::breakpoint_kind_from_pc)
2512 (linux_get_auxv)
2513 * linux-m32r-low.cc (m32r_breakpoint_at)
2514 * linux-mips-low.cc (mips_breakpoint_at)
2515 * linux-nios2-low.cc (nios2_breakpoint_at)
2516 * linux-ppc-low.cc (ppc_breakpoint_at)
2517 * linux-s390-low.cc (s390_get_hwcap)
2518 * linux-sh-low.cc (sh_breakpoint_at)
2519 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2520 (sparc_store_gregset_from_stack)
2521 (sparc_breakpoint_at)
2522 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2523 * linux-tile-low.cc (tile_breakpoint_at)
2524 * linux-x86-low.cc (x86_breakpoint_at)
2525 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2526 * mem-break.cc (bp_size)
2527 (bp_opcode)
2528 (insert_memory_breakpoint)
2529 (set_raw_breakpoint_at)
2530 (delete_raw_breakpoint)
2531 (z_type_supported)
2532 (uninsert_raw_breakpoint)
2533 (reinsert_raw_breakpoint)
2534 (validate_inserted_breakpoint)
2535 * regcache.cc (regcache_read_pc)
2536 (regcache_write_pc)
2537 * remote-utils.cc (putpkt_binary_1)
2538 (input_interrupt)
2539 (getpkt)
2540 (prepare_resume_reply)
2541 * server.cc (handle_general_set)
2542 (handle_detach)
2543 (handle_qxfer_auxv)
2544 (handle_qxfer_exec_file)
2545 (handle_qxfer_libraries_svr4)
2546 (handle_qxfer_osdata)
2547 (handle_qxfer_siginfo)
2548 (handle_qxfer_fdpic)
2549 (handle_query)
2550 (resume)
2551 (handle_v_requests)
2552 (queue_stop_reply_callback)
2553 (captured_main)
2554 * target.cc (prepare_to_access_memory)
2555 (done_accessing_memory)
2556 (read_inferior_memory)
2557 (target_write_memory)
2558 (target_stop_and_wait)
2559 (target_wait)
2560 (target_mourn_inferior)
2561 (target_continue_no_signal)
2562 (target_continue)
2563 (target_supports_multi_process)
2564 (kill_inferior)
2565 * target.h
2566 (target_create_inferior)
2567 (target_post_create_inferior)
2568 (myattach)
2569 (target_supports_fork_events)
2570 (target_supports_vfork_events)
2571 (target_supports_exec_events)
2572 (target_handle_new_gdb_connection)
2573 (detach_inferior)
2574 (mythread_alive)
2575 (fetch_inferior_registers)
2576 (store_inferior_registers)
2577 (join_inferior)
2578 (target_supports_non_stop)
2579 (target_async)
2580 (target_process_qsupported)
2581 (target_supports_catch_syscall)
2582 (target_get_ipa_tdesc_idx)
2583 (target_supports_tracepoints)
2584 (target_supports_fast_tracepoints)
2585 (target_get_min_fast_tracepoint_insn_len)
2586 (target_thread_stopped)
2587 (target_pause_all)
2588 (target_unpause_all)
2589 (target_stabilize_threads)
2590 (target_install_fast_tracepoint_jump_pad)
2591 (target_emit_ops)
2592 (target_supports_disable_randomization)
2593 (target_supports_agent)
2594 (target_enable_btrace)
2595 (target_disable_btrace)
2596 (target_read_btrace)
2597 (target_read_btrace_conf)
2598 (target_supports_range_stepping)
2599 (target_supports_stopped_by_sw_breakpoint)
2600 (target_stopped_by_sw_breakpoint)
2601 (target_supports_stopped_by_hw_breakpoint)
2602 (target_supports_hardware_single_step)
2603 (target_stopped_by_hw_breakpoint)
2604 (target_breakpoint_kind_from_pc)
2605 (target_breakpoint_kind_from_current_state)
2606 (target_supports_software_single_step)
2607 (target_core_of_thread)
2608 (target_thread_name)
2609 (target_thread_handle)
2610 * win32-low.cc (do_initial_child_stuff)
2611
2612 Rename target op default definitions listed below.
2613
2614 * target.cc (process_target::post_create_inferior): Rename as ...
2615 (process_stratum_target::post_create_inferior): ... this.
2616 (process_target::prepare_to_access_memory): Rename as ...
2617 (process_stratum_target::prepare_to_access_memory): ... this.
2618 (process_target::done_accessing_memory): Rename as ...
2619 (process_stratum_target::done_accessing_memory): ... this.
2620 (process_target::look_up_symbols): Rename as ...
2621 (process_stratum_target::look_up_symbols): ... this.
2622 (process_target::supports_read_auxv): Rename as ...
2623 (process_stratum_target::supports_read_auxv): ... this.
2624 (process_target::read_auxv): Rename as ...
2625 (process_stratum_target::read_auxv): ... this.
2626 (process_target::supports_z_point_type): Rename as ...
2627 (process_stratum_target::supports_z_point_type): ... this.
2628 (process_target::insert_point): Rename as ...
2629 (process_stratum_target::insert_point): ... this.
2630 (process_target::remove_point): Rename as ...
2631 (process_stratum_target::remove_point): ... this.
2632 (process_target::stopped_by_sw_breakpoint): Rename as ...
2633 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2634 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2635 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2636 (process_target::stopped_by_hw_breakpoint): Rename as ...
2637 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2638 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2639 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2640 (process_target::supports_hardware_single_step): Rename as ...
2641 (process_stratum_target::supports_hardware_single_step): ... this.
2642 (process_target::stopped_by_watchpoint): Rename as ...
2643 (process_stratum_target::stopped_by_watchpoint): ... this.
2644 (process_target::stopped_data_address): Rename as ...
2645 (process_stratum_target::stopped_data_address): ... this.
2646 (process_target::supports_read_offsets): Rename as ...
2647 (process_stratum_target::supports_read_offsets): ... this.
2648 (process_target::read_offsets): Rename as ...
2649 (process_stratum_target::read_offsets): ... this.
2650 (process_target::supports_get_tls_address): Rename as ...
2651 (process_stratum_target::supports_get_tls_address): ... this.
2652 (process_target::get_tls_address): Rename as ...
2653 (process_stratum_target::get_tls_address): ... this.
2654 (process_target::hostio_last_error): Rename as ...
2655 (process_stratum_target::hostio_last_error): ... this.
2656 (process_target::supports_qxfer_osdata): Rename as ...
2657 (process_stratum_target::supports_qxfer_osdata): ... this.
2658 (process_target::qxfer_osdata): Rename as ...
2659 (process_stratum_target::qxfer_osdata): ... this.
2660 (process_target::supports_qxfer_siginfo): Rename as ...
2661 (process_stratum_target::supports_qxfer_siginfo): ... this.
2662 (process_target::qxfer_siginfo): Rename as ...
2663 (process_stratum_target::qxfer_siginfo): ... this.
2664 (process_target::supports_non_stop): Rename as ...
2665 (process_stratum_target::supports_non_stop): ... this.
2666 (process_target::async): Rename as ...
2667 (process_stratum_target::async): ... this.
2668 (process_target::start_non_stop): Rename as ...
2669 (process_stratum_target::start_non_stop): ... this.
2670 (process_target::supports_multi_process): Rename as ...
2671 (process_stratum_target::supports_multi_process): ... this.
2672 (process_target::supports_fork_events): Rename as ...
2673 (process_stratum_target::supports_fork_events): ... this.
2674 (process_target::supports_vfork_events): Rename as ...
2675 (process_stratum_target::supports_vfork_events): ... this.
2676 (process_target::supports_exec_events): Rename as ...
2677 (process_stratum_target::supports_exec_events): ... this.
2678 (process_target::handle_new_gdb_connection): Rename as ...
2679 (process_stratum_target::handle_new_gdb_connection): ... this.
2680 (process_target::handle_monitor_command): Rename as ...
2681 (process_stratum_target::handle_monitor_command): ... this.
2682 (process_target::core_of_thread): Rename as ...
2683 (process_stratum_target::core_of_thread): ... this.
2684 (process_target::supports_read_loadmap): Rename as ...
2685 (process_stratum_target::supports_read_loadmap): ... this.
2686 (process_target::read_loadmap): Rename as ...
2687 (process_stratum_target::read_loadmap): ... this.
2688 (process_target::process_qsupported): Rename as ...
2689 (process_stratum_target::process_qsupported): ... this.
2690 (process_target::supports_tracepoints): Rename as ...
2691 (process_stratum_target::supports_tracepoints): ... this.
2692 (process_target::read_pc): Rename as ...
2693 (process_stratum_target::read_pc): ... this.
2694 (process_target::write_pc): Rename as ...
2695 (process_stratum_target::write_pc): ... this.
2696 (process_target::supports_thread_stopped): Rename as ...
2697 (process_stratum_target::supports_thread_stopped): ... this.
2698 (process_target::thread_stopped): Rename as ...
2699 (process_stratum_target::thread_stopped): ... this.
2700 (process_target::supports_get_tib_address): Rename as ...
2701 (process_stratum_target::supports_get_tib_address): ... this.
2702 (process_target::get_tib_address): Rename as ...
2703 (process_stratum_target::get_tib_address): ... this.
2704 (process_target::pause_all): Rename as ...
2705 (process_stratum_target::pause_all): ... this.
2706 (process_target::unpause_all): Rename as ...
2707 (process_stratum_target::unpause_all): ... this.
2708 (process_target::stabilize_threads): Rename as ...
2709 (process_stratum_target::stabilize_threads): ... this.
2710 (process_target::supports_fast_tracepoints): Rename as ...
2711 (process_stratum_target::supports_fast_tracepoints): ... this.
2712 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2713 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2714 (process_target::emit_ops): Rename as ...
2715 (process_stratum_target::emit_ops): ... this.
2716 (process_target::supports_disable_randomization): Rename as ...
2717 (process_stratum_target::supports_disable_randomization): ... this.
2718 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2719 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2720 (process_target::qxfer_libraries_svr4): Rename as ...
2721 (process_stratum_target::qxfer_libraries_svr4): ... this.
2722 (process_target::supports_agent): Rename as ...
2723 (process_stratum_target::supports_agent): ... this.
2724 (process_target::enable_btrace): Rename as ...
2725 (process_stratum_target::enable_btrace): ... this.
2726 (process_target::disable_btrace): Rename as ...
2727 (process_stratum_target::disable_btrace): ... this.
2728 (process_target::read_btrace): Rename as ...
2729 (process_stratum_target::read_btrace): ... this.
2730 (process_target::read_btrace_conf): Rename as ...
2731 (process_stratum_target::read_btrace_conf): ... this.
2732 (process_target::supports_range_stepping): Rename as ...
2733 (process_stratum_target::supports_range_stepping): ... this.
2734 (process_target::supports_pid_to_exec_file): Rename as ...
2735 (process_stratum_target::supports_pid_to_exec_file): ... this.
2736 (process_target::pid_to_exec_file): Rename as ...
2737 (process_stratum_target::pid_to_exec_file): ... this.
2738 (process_target::supports_multifs): Rename as ...
2739 (process_stratum_target::supports_multifs): ... this.
2740 (process_target::multifs_open): Rename as ...
2741 (process_stratum_target::multifs_open): ... this.
2742 (process_target::multifs_unlink): Rename as ...
2743 (process_stratum_target::multifs_unlink): ... this.
2744 (process_target::multifs_readlink): Rename as ...
2745 (process_stratum_target::multifs_readlink): ... this.
2746 (process_target::breakpoint_kind_from_pc): Rename as ...
2747 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2748 (process_target::breakpoint_kind_from_current_state): Rename as ...
2749 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2750 (process_target::thread_name): Rename as ...
2751 (process_stratum_target::thread_name): ... this.
2752 (process_target::thread_handle): Rename as ...
2753 (process_stratum_target::thread_handle): ... this.
2754 (process_target::supports_software_single_step): Rename as ...
2755 (process_stratum_target::supports_software_single_step): ... this.
2756 (process_target::supports_catch_syscall): Rename as ...
2757 (process_stratum_target::supports_catch_syscall): ... this.
2758 (process_target::get_ipa_tdesc_idx): Rename as ...
2759 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2760
478f9adf
PA
27612020-02-20 Pedro Alves <palves@redhat.com>
2762
2763 * target.cc (set_target_ops): Simply copy the given target pointer
2764 instead of creating a copy of the pointed object.
2765
d633e831
TBA
27662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2767
2768 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2769 of process_target.
2770
2771 * target.h (struct process_stratum_target): Remove the target op.
2772 (class process_target): Add the target op.
2773 (target_get_ipa_tdesc_idx): Update the macro.
2774 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2775
2776 Update the derived classes and callers below.
2777
2778 * linux-low.cc (linux_target_ops): Update.
2779 (linux_get_ipa_tdesc_idx): Turn into ...
2780 (linux_process_target::get_ipa_tdesc_idx): ... this.
2781 * linux-low.h (class linux_process_target): Update.
2782 * lynx-low.cc (lynx_target_ops): Update.
2783 * nto-low.cc (nto_target_ops): Update.
2784 * win32-low.cc (win32_target_ops): Update.
2785
bc8d3ae4
TBA
27862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2787
2788 Turn process_stratum_target's supports_catch_syscall op into a
2789 method of process_target.
2790
2791 * target.h (struct process_stratum_target): Remove the target op.
2792 (class process_target): Add the target op.
2793 (target_supports_catch_syscall): Update the macro.
2794 * target.cc (process_target::supports_catch_syscall): Define.
2795
2796 Update the derived classes and callers below.
2797
2798 * linux-low.cc (linux_target_ops): Update.
2799 (linux_supports_catch_syscall): Turn into ...
2800 (linux_process_target::supports_catch_syscall): ... this.
2801 * linux-low.h (class linux_process_target): Update.
2802 * lynx-low.cc (lynx_target_ops): Update.
2803 * nto-low.cc (nto_target_ops): Update.
2804 * win32-low.cc (win32_target_ops): Update.
2805
5303a34f
TBA
28062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2807
2808 Turn process_stratum_target's supports_software_single_step op
2809 into a method of process_target.
2810
2811 * target.h (struct process_stratum_target): Remove the target op.
2812 (class process_target): Add the target op.
2813 (target_supports_software_single_step): Update the macro.
2814 * target.cc (process_target::supports_software_single_step): Define.
2815
2816 Update the derived classes and callers below.
2817
2818 * linux-low.cc (linux_target_ops): Update.
2819 (linux_supports_software_single_step): Turn into ...
2820 (linux_process_target::supports_software_single_step): ... this.
2821 * linux-low.h (class linux_process_target): Update.
2822 * lynx-low.cc (lynx_target_ops): Update.
2823 * nto-low.cc (nto_target_ops): Update.
2824 * win32-low.cc (win32_target_ops): Update.
2825
7f63b89b
TBA
28262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2827
2828 Turn process_stratum_target's thread_name and thread_handle ops
2829 into methods of process_target.
2830
2831 * target.h (struct process_stratum_target): Remove the target ops.
2832 (class process_target): Add the target ops.
2833 (target_thread_name): Update the macro.
2834 (target_thread_handle): Update the macro.
2835 * target.cc (process_target::thread_name): Define.
2836 (process_target::thread_handle): Define.
2837
2838 Update the derived classes and callers below.
2839
2840 * linux-low.cc (linux_target_ops): Update.
2841 (linux_process_target::thread_name): Define.
2842 (linux_process_target::thread_handle): Define.
2843 * linux-low.h (class linux_process_target): Update.
2844 * lynx-low.cc (lynx_target_ops): Update.
2845 * nto-low.cc (nto_target_ops): Update.
2846 * win32-low.cc (win32_target_ops): Update.
2847
d367006f
TBA
28482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2849
2850 Turn process_stratum_target's breakpoint_kind_from_pc,
2851 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2852 ops into methods of process_target.
2853
2854 * target.h (struct process_stratum_target): Remove the target op.
2855 (class process_target): Add the target op.
2856 (target_breakpoint_kind_from_pc): Update the macro.
2857 (target_breakpoint_kind_from_current_state): Update the macro.
2858 (default_breakpoint_kind_from_pc): Remove declaration.
2859 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2860 (process_target::breakpoint_kind_from_pc): ... this.
2861 (process_target::breakpoint_kind_from_current_state): Define.
2862
2863 Update the derived classes and callers below.
2864
2865 * mem-break.cc (bp_size): Update.
2866 (bp_opcode): Update.
2867 * linux-low.cc (linux_target_ops): Update.
2868 (linux_wait_1): Update.
2869 (linux_breakpoint_kind_from_pc): Turn into ...
2870 (linux_process_target::breakpoint_kind_from_pc): ... this.
2871 (linux_sw_breakpoint_from_kind): Turn into ...
2872 (linux_process_target::sw_breakpoint_from_kind): ... this.
2873 (linux_breakpoint_kind_from_current_state): Turn into ...
2874 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2875 * linux-low.h (class linux_process_target): Update.
2876 * lynx-low.cc (lynx_target_ops): Update.
2877 (lynx_process_target::sw_breakpoint_from_kind): Define.
2878 * lynx-low.h (class lynx_process_target): Update.
2879 * nto-low.cc (nto_target_ops): Update.
2880 (nto_sw_breakpoint_from_kind): Turn into ...
2881 (nto_process_target::sw_breakpoint_from_kind): ... this.
2882 * nto-low.h (class nto_process_target): Update.
2883 * win32-low.cc (win32_target_ops): Update.
2884 (win32_sw_breakpoint_from_kind): Turn into ...
2885 (win32_process_target::sw_breakpoint_from_kind): ... this.
2886 * win32-low.h (class win32_process_target): Update.
2887
c9b7b804
TBA
28882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2889
2890 Turn process_stratum_target's multifs_open, multifs_readlink,
2891 multifs_unlink ops into methods of process_target.
2892
2893 * target.h (struct process_stratum_target): Remove the target ops.
2894 (class process_target): Add the target ops. Also add
2895 'supports_multifs'.
2896 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2897 "sys/stat.h".
2898 (process_target::supports_multifs): Define.
2899 (process_target::multifs_open): Define.
2900 (process_target::multifs_readlink): Define.
2901 (process_target::multifs_unlink): Define.
2902
2903 Update the derived classes and callers below.
2904
2905 * hostio.cc (handle_setfs): Update.
2906 (handle_open): Update.
2907 (handle_unlink): Update.
2908 (handle_readlink): Update.
2909 * linux-low.cc (linux_target_ops): Update.
2910 (linux_process_target::supports_multifs): Define.
2911 (linux_process_target::multifs_open): Define.
2912 (linux_process_target::multifs_readlink): Define.
2913 (linux_process_target::multifs_unlink): Define.
2914 * linux-low.h (class linux_process_target): Update.
2915 * lynx-low.cc (lynx_target_ops): Update.
2916 * nto-low.cc (nto_target_ops): Update.
2917 * win32-low.cc (win32_target_ops): Update.
2918
8247b823
TBA
29192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2920
2921 Turn process_stratum_target's pid_to_exec_file op into a method
2922 of process_target.
2923
2924 * target.h (struct process_stratum_target): Remove the target op.
2925 (class process_target): Add the target op. Also add
2926 'supports_pid_to_exec_file'.
2927 * target.cc (process_target::pid_to_exec_file): Define.
2928 (process_target::supports_pid_to_exec_file): Define.
2929
2930 Update the derived classes and callers below.
2931
2932 * server.cc (handle_qxfer_exec_file): Update.
2933 (handle_query): Update.
2934 * linux-low.cc (linux_target_ops): Update.
2935 (linux_process_target::supports_pid_to_exec_file): Define.
2936 (linux_process_target::pid_to_exec_file): Define.
2937 * linux-low.h (class linux_process_target): Update.
2938 * lynx-low.cc (lynx_target_ops): Update.
2939 * nto-low.cc (nto_target_ops): Update.
2940 * win32-low.cc (win32_target_ops): Update.
2941
2526e0cd
TBA
29422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2943
2944 Turn process_stratum_target's supports_range_stepping op into a
2945 method of process_target.
2946
2947 * target.h (struct process_stratum_target): Remove the target op.
2948 (class process_target): Add the target op.
2949 (target_supports_range_stepping): Update the macro.
2950 * target.cc (process_target::supports_range_stepping): Define.
2951
2952 Update the derived classes and callers below.
2953
2954 * linux-low.cc (linux_target_ops): Update.
2955 (linux_supports_range_stepping): Turn into ...
2956 (linux_process_target::supports_range_stepping): ... this.
2957 * linux-low.h (class linux_process_target): Update.
2958 * lynx-low.cc (lynx_target_ops): Update.
2959 * nto-low.cc (nto_target_ops): Update.
2960 * win32-low.cc (win32_target_ops): Update.
2961
79597bdd
TBA
29622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2963
2964 Turn process_stratum_target's btrace-related ops (enable_btrace,
2965 disable_btrace, read_btrace, read_btrace_conf) into methods of
2966 process_target.
2967
2968 * target.h (struct process_stratum_target): Remove the target ops.
2969 (class process_target): Add the target ops.
2970 (target_enable_btrace): Update.
2971 (target_disable_btrace): Update.
2972 (target_read_btrace): Update.
2973 (target_read_btrace_conf): Update.
2974 * target.cc (process_target::enable_btrace): Define.
2975 (process_target::disable_btrace): Define.
2976 (process_target::read_btrace): Define.
2977 (process_target::read_btrace_conf): Define.
2978
2979 Update the derived classes and callers below.
2980
2981 * linux-low.cc (linux_target_ops): Update.
2982 (linux_process_target:enable_btrace): Define as a wrapper around
2983 linux_enable_btrace.
2984 (linux_low_disable_btrace): Turn into ...
2985 (linux_process_target::disable_btrace): ... this.
2986 (linux_low_read_btrace): Turn into ...
2987 (linux_process_target::read_btrace): ... this.
2988 (linux_low_btrace_conf): Turn into ...
2989 (linux_process_target::read_btrace_conf): ... this.
2990 * linux-low.h (class linux_process_target): Update.
2991 * lynx-low.cc (lynx_target_ops): Update.
2992 * nto-low.cc (nto_target_ops): Update.
2993 * win32-low.cc (win32_target_ops): Update.
2994
c0245cb9
TBA
29952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2996
2997 Turn process_stratum_target's supports_agent op into a method of
2998 process_target.
2999
3000 * target.h (struct process_stratum_target): Remove the target op.
3001 (class process_target): Add the target op.
3002 (target_supports_agent): Update the macro.
3003 * target.cc (process_target::supports_agent): Define.
3004
3005 Update the derived classes and callers below.
3006
3007 * linux-low.cc (linux_target_ops): Update.
3008 (linux_supports_agent): Turn into ...
3009 (linux_process_target::supports_agent): ... this.
3010 * linux-low.h (class linux_process_target): Update.
3011 * lynx-low.cc (lynx_target_ops): Update.
3012 * nto-low.cc (nto_target_ops): Update.
3013 * win32-low.cc (win32_target_ops): Update.
3014
974387bb
TBA
30152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3016
3017 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3018 method of process_target.
3019
3020 * target.h (struct process_stratum_target): Remove the target op.
3021 (class process_target): Add the target op. Also add
3022 'supports_qxfer_libraries_svr4'.
3023 * target.cc (process_target::qxfer_libraries_svr4): Define.
3024 (process_target::supports_qxfer_libraries_svr4): Define.
3025
3026 Update the derived classes and callers below.
3027
3028 * server.cc (handle_qxfer_libraries_svr4): Update.
3029 (handle_query): Update.
3030 * linux-low.cc (linux_target_ops): Update.
3031 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3032 (linux_qxfer_libraries_svr4): Turn into ...
3033 (linux_process_target::qxfer_libraries_svr4): ... this.
3034 * linux-low.h (class linux_process_target): Update.
3035 * lynx-low.cc (lynx_target_ops): Update.
3036 * nto-low.cc (nto_target_ops): Update.
3037 * win32-low.cc (win32_target_ops): Update.
3038
c756403b
TBA
30392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3040
3041 Turn process_stratum_target's supports_disable_randomization op
3042 into a method of process_target.
3043
3044 * target.h (struct process_stratum_target): Remove the target op.
3045 (class process_target): Add the target op.
3046 (target_supports_disable_randomization): Update the macro.
3047 * target.cc (process_target::supports_disable_randomization): Define.
3048
3049 Update the derived classes and callers below.
3050
3051 * linux-low.cc (linux_target_ops): Update.
3052 (linux_supports_disable_randomization): Turn into ...
3053 (linux_process_target::supports_disable_randomization): ... this.
3054 * linux-low.h (class linux_process_target): Update.
3055 * lynx-low.cc (lynx_target_ops): Update.
3056 * nto-low.cc (nto_target_ops): Update.
3057 * win32-low.cc (win32_target_ops): Update.
3058
345dafad
TBA
30592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3060
3061 Turn process_stratum_target's emit_ops op into a method of
3062 process_target.
3063
3064 * target.h (struct process_stratum_target): Remove the target op.
3065 (class process_target): Add the target op.
3066 (target_emit_ops): Update the macro.
3067 * target.cc (process_target::emit_ops): Define.
3068
3069 Update the derived classes and callers below.
3070
3071 * linux-low.cc (linux_target_ops): Update.
3072 (linux_emit_ops): Turn into ...
3073 (linux_process_target::emit_ops): ... this.
3074 * linux-low.h (class linux_process_target): Update.
3075 * lynx-low.cc (lynx_target_ops): Update.
3076 * nto-low.cc (nto_target_ops): Update.
3077 * win32-low.cc (win32_target_ops): Update.
3078
c23c9391
TBA
30792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3080
3081 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3082 and get_min_fast_tracepoint_insn_len ops into methods of
3083 process_target.
3084
3085 * target.h (struct process_stratum_target): Remove the target ops.
3086 (class process_target): Add the target ops. Also add
3087 'supports_fast_tracepoints'.
3088 (target_supports_fast_tracepoints): Update the macro.
3089 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3090 (install_fast_tracepoint_jump_pad): Update and rename the macro
3091 to ...
3092 (target_install_fast_tracepoint_jump_pad): ... this.
3093 * target.cc (process_target::supports_fast_tracepoints): Define.
3094 (process_target::install_fast_tracepoint_jump_pad): Define.
3095 (process_target::get_min_fast_tracepoint_insn_len): Define.
3096
3097 Update the derived classes and callers below.
3098
3099 * tracepoint.cc (install_fast_tracepoint): Update.
3100 * linux-low.cc (linux_target_ops): Update.
3101 (linux_process_target::supports_fast_tracepoints): Define.
3102 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3103 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3104 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3105 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3106 * linux-low.h (class linux_process_target): Update.
3107 * lynx-low.cc (lynx_target_ops): Update.
3108 * nto-low.cc (nto_target_ops): Update.
3109 * win32-low.cc (win32_target_ops): Update.
3110
5c9eb2f2
TBA
31112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3112
3113 Turn process_stratum_target's stabilize_threads op into a
3114 method of process_target.
3115
3116 * target.h (struct process_stratum_target): Remove the target op.
3117 (class process_target): Add the target op.
3118 (target_stabilize_threads): Update the macro.
3119 * target.cc (process_target::stabilize_threads): Define.
3120
3121 Update the derived classes and callers below.
3122
3123 * server.cc (handle_status): Update.
3124 * tracepoint.cc (cmd_qtdp): Update.
3125 (cmd_qtstart): Update.
3126 * linux-low.cc (linux_target_ops): Update.
3127 (linux_stabilize_threads): Turn into ...
3128 (linux_process_target::stabilize_threads): ... this.
3129 (linux_wait_1): Update.
3130 * linux-low.h (class linux_process_target): Update.
3131 * lynx-low.cc (lynx_target_ops): Update.
3132 * nto-low.cc (nto_target_ops): Update.
3133 * win32-low.cc (win32_target_ops): Update.
3134
29e8dc09
TBA
31352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3136
3137 Turn process_stratum_target's pause_all and unpause_all ops
3138 into methods of process_target.
3139
3140 * target.h (struct process_stratum_target): Remove the target ops.
3141 (class process_target): Add the target ops.
3142 (pause_all): Update the macro and rename to...
3143 (target_pause_all): ... this.
3144 (unpause_all): Update the macro and rename to...
3145 (target_unpause_all): ... this.
3146 * target.cc (process_target::pause_all): Define.
3147 (process_target::unpause_all): Define.
3148
3149 Update the derived classes and callers below.
3150
3151 * server.cc (handle_status): Update.
3152 * tracepoint.cc (clear_installed_tracepoints): Update.
3153 (cmd_qtdp): Update.
3154 (cmd_qtstart): Update.
3155 (stop_tracing): Update.
3156 (cmd_qtstatus): Update.
3157 (upload_fast_traceframes): Update.
3158 (run_inferior_command): Update.
3159 * linux-low.cc (linux_target_ops): Update.
3160 (linux_pause_all): Turn into ...
3161 (linux_process_target::pause_all): ... this.
3162 (linux_unpause_all): Turn into ...
3163 (linux_process_target::unpause_all): ... this.
3164 (linux_process_target::prepare_to_access_memory): Update.
3165 (linux_process_target::done_accessing_memory): Update.
3166 * linux-low.h (class linux_process_target): Update.
3167 * lynx-low.cc (lynx_target_ops): Update.
3168 * nto-low.cc (nto_target_ops): Update.
3169 * win32-low.cc (win32_target_ops): Update.
3170
4e2e869c
TBA
31712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3172
3173 Turn process_stratum_target's get_tib_address op into a method of
3174 process_target.
3175
3176 * target.h (struct process_stratum_target): Remove the target op.
3177 (class process_target): Add the target op. Also add
3178 'supports_get_tib_address'.
3179 * target.cc (process_target::get_tib_address): Define.
3180 (process_target::supports_get_tib_address): Define.
3181
3182 Update the derived classes and callers below.
3183
3184 * server.cc (handle_query): Update.
3185 * linux-low.cc (win32_target_ops): Update.
3186 * lynx-low.cc (lynx_target_ops): Update.
3187 * nto-low.cc (nto_target_ops): Update.
3188 * win32-low.cc (win32_target_ops): Update.
3189 (win32_process_target::supports_get_tib_address): Define.
3190 (win32_get_tib_address): Turn into ...
3191 (win32_process_target::get_tib_address): ... this.
3192 * win32-low.h (class win32_process_target): Update.
3193
68119632
TBA
31942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3195
3196 Turn process_stratum_target's thread_stopped op into a method of
3197 process_target.
3198
3199 * target.h (struct process_stratum_target): Remove the target op.
3200 (class process_target): Add the target op. Also add
3201 'supports_thread_stopped'.
3202 (target_thread_stopped): Update the macro.
3203 * target.cc (process_target::thread_stopped): Define.
3204 (process_target::supports_thread_stopped): Define.
3205 (prepare_to_access_memory): Update.
3206
3207 Update the derived classes and callers below.
3208
3209 * server.cc (queue_stop_reply_callback): Update.
3210 * linux-low.cc (linux_target_ops): Update.
3211 (linux_process_target::supports_thread_stopped): Define.
3212 (linux_thread_stopped): Turn into ...
3213 (linux_process_target::thread_stopped): ... this.
3214 * linux-low.h (class linux_process_target): Update.
3215 * lynx-low.cc (lynx_target_ops): Update.
3216 * nto-low.cc (nto_target_ops): Update.
3217 * win32-low.cc (win32_target_ops): Update.
3218
770d8f6a
TBA
32192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3220
3221 Turn process_stratum_target's read_pc and write_pc ops into
3222 methods of process_target.
3223
3224 * target.h (struct process_stratum_target): Remove the target ops.
3225 (class process_target): Add the target ops.
3226 * target.cc (process_target::read_pc): Define.
3227 (process_target::write_pc): Define.
3228
3229 Update the derived classes and callers below.
3230
3231 * regcache.cc (regcache_read_pc): Update.
3232 (regcache_write_pc): Update.
3233 * linux-low.cc (linux_target_ops): Update.
3234 (linux_read_pc): Turn into ...
3235 (linux_process_target::read_pc): ... this.
3236 (linux_write_pc): Turn into ...
3237 (linux_process_target::write_pc): ... this.
3238 * linux-low.h (class linux_process_target): Update.
3239 * lynx-low.cc (lynx_target_ops): Update.
3240 * nto-low.cc (nto_target_ops): Update.
3241 * win32-low.cc (win32_target_ops): Update.
3242
290732bf
TBA
32432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3244
3245 Turn process_stratum_target's supports_tracepoints op into a
3246 method of process_target.
3247
3248 * target.h (struct process_stratum_target): Remove the target op.
3249 (class process_target): Add the target op.
3250 (target_supports_tracepoints): Update the macro.
3251 * target.cc (process_target::supports_tracepoints): Define.
3252
3253 Update the derived classes and callers below.
3254
3255 * linux-low.cc (linux_target_ops): Update.
3256 (linux_supports_tracepoints): Turn into ...
3257 (linux_process_target::supports_tracepoints): ... this.
3258 * linux-low.h (class linux_process_target): Update.
3259 * lynx-low.cc (lynx_target_ops): Update.
3260 * nto-low.cc (nto_target_ops): Update.
3261 * win32-low.cc (win32_target_ops): Update.
3262
0df28b1b
TBA
32632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3264
3265 Turn process_stratum_target's process_qsupported op into a method
3266 of process_target.
3267
3268 * target.h (struct process_stratum_target): Remove the target op.
3269 (class process_target): Add the target op.
3270 (target_process_qsupported): Update the macro.
3271 * target.cc (process_target::process_qsupported): Define.
3272
3273 Update the derived classes and callers below.
3274
3275 * linux-low.cc (linux_target_ops): Update.
3276 (linux_process_qsupported): Turn into ...
3277 (linux_process_target::process_qsupported): ... this.
3278 * linux-low.h (class linux_process_target): Update.
3279 * lynx-low.cc (lynx_target_ops): Update.
3280 * nto-low.cc (nto_target_ops): Update.
3281 * win32-low.cc (win32_target_ops): Update.
3282
9da41fda
TBA
32832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3284
3285 Turn process_stratum_target's read_loadmap op into a method of
3286 process_target.
3287
3288 * target.h (struct process_stratum_target): Remove the target op.
3289 (class process_target): Add the target op. Also add
3290 'supports_read_loadmap'.
3291 * target.cc (process_target::read_loadmap): Define.
3292 (process_target::supports_read_loadmap): Define.
3293
3294 Update the derived classes and callers below.
3295
3296 * server.cc (handle_qxfer_fdpic): Update.
3297 (handle_query): Update.
3298 * linux-low.cc (linux_target_ops): Update.
3299 (linux_process_target::supports_read_loadmap): Define.
3300 (linux_read_loadmap): Turn into ...
3301 (linux_process_target::read_loadmap): ... this.
3302 * linux-low.h (class linux_process_target): Update.
3303 * lynx-low.cc (lynx_target_ops): Update.
3304 * nto-low.cc (nto_target_ops): Update.
3305 * win32-low.cc (win32_target_ops): Update.
3306
95a45fc1
TBA
33072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3308
3309 Turn process_stratum_target's core_of_thread op into a method of
3310 process_target.
3311
3312 * target.h (struct process_stratum_target): Remove the target op.
3313 (class process_target): Add the target op.
3314 (target_core_of_thread): Update the macro.
3315 * target.cc (process_target::core_of_thread): Define.
3316
3317 Update the derived classes and callers below.
3318
3319 * linux-low.cc (linux_target_ops): Update.
3320 (linux_process_target::core_of_thread): Define.
3321 * linux-low.h (class linux_process_target): Update.
3322 * lynx-low.cc (lynx_target_ops): Update.
3323 * nto-low.cc (nto_target_ops): Update.
3324 * win32-low.cc (win32_target_ops): Update.
3325
55cf3021
TBA
33262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3327
3328 Turn process_stratum_target's handle_monitor_command op into a
3329 method of process_target.
3330
3331 * target.h (struct process_stratum_target): Remove the target op.
3332 (class process_target): Add the target op.
3333 (target_handle_monitor_command): Update the macro.
3334 * target.cc (process_target::handle_monitor_command): Define.
3335
3336 Update the derived classes and callers below.
3337
3338 * server.cc (handle_query): Update.
3339 * linux-low.cc (linux_target_ops): Update.
3340 (linux_process_target::handle_monitor_command): Define.
3341 * linux-low.h (class linux_process_target): Update.
3342 * lynx-low.cc (lynx_target_ops): Update.
3343 * nto-low.cc (nto_target_ops): Update.
3344 * win32-low.cc (win32_target_ops): Update.
3345
fb00dfce
TBA
33462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3347
3348 Turn process_stratum_target's handle_new_gdb_connection op into a
3349 method of process_target.
3350
3351 * target.h (struct process_stratum_target): Remove the target op.
3352 (class process_target): Add the target op.
3353 (target_handle_new_gdb_connection): Update the macro.
3354 * target.cc (process_target::handle_new_gdb_connection): Define.
3355
3356 Update the derived classes and callers below.
3357
3358 * linux-low.cc (linux_target_ops): Update.
3359 (linux_handle_new_gdb_connection): Turn into ...
3360 (linux_process_target::handle_new_gdb_connection): ... this.
3361 * linux-low.h (class linux_process_target): Update.
3362 * lynx-low.cc (lynx_target_ops): Update.
3363 * nto-low.cc (nto_target_ops): Update.
3364 * win32-low.cc (win32_target_ops): Update.
3365
9690a72a
TBA
33662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3367
3368 Turn process_stratum_target's supports_fork_events,
3369 supports_vfork_events, and supports_exec_events ops into methods
3370 of process_target.
3371
3372 * target.h (struct process_stratum_target): Remove the target ops.
3373 (class process_target): Add the target ops.
3374 (target_supports_fork_events): Update the macro.
3375 (target_supports_vfork_events): Update the macro.
3376 (target_supports_exec_events): Update the macro.
3377 * target.cc (process_target::supports_fork_events): Define.
3378 (process_target::supports_vfork_events): Define.
3379 (process_target::supports_exec_events): Define.
3380
3381 Update the derived classes and callers below.
3382
3383 * linux-low.cc (linux_target_ops): Update.
3384 (linux_supports_fork_events): Turn into ...
3385 (linux_process_target::supports_fork_events): ... this.
3386 (linux_supports_vfork_events): Turn into ...
3387 (linux_process_target::supports_vfork_events): ... this.
3388 (linux_supports_exec_events): Turn into ...
3389 (linux_process_target::supports_exec_events): ... this.
3390 * linux-low.h (class linux_process_target): Update.
3391 * lynx-low.cc (lynx_target_ops): Update.
3392 * nto-low.cc (nto_target_ops): Update.
3393 * win32-low.cc (win32_target_ops): Update.
3394
652aef77
TBA
33952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3396
3397 Turn process_stratum_target's supports_multi_process op into a
3398 method of process_target.
3399
3400 * target.h (struct process_stratum_target): Remove the target op.
3401 (class process_target): Add the target op.
3402 * target.cc (process_target::supports_multi_process): Define.
3403 (target_supports_multi_process): Update.
3404
3405 Update the derived classes and callers below.
3406
3407 * linux-low.cc (linux_target_ops): Update.
3408 (linux_supports_multi_process): Turn into ...
3409 (linux_process_target::supports_multi_process): ... this.
3410 * linux-low.h (class linux_process_target): Update.
3411 * lynx-low.cc (lynx_target_ops): Update.
3412 * nto-low.cc (nto_target_ops): Update.
3413 * win32-low.cc (win32_target_ops): Update.
3414
0dc587d4
TBA
34152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3416
3417 Turn process_stratum_target's supports_non_stop, async, and
3418 start_non_stop ops into methods of process_target.
3419
3420 * target.h (struct process_stratum_target): Remove the target ops.
3421 (class process_target): Add the target ops.
3422 (target_supports_non_stop): Update the macro.
3423 (target_async): Update the macro.
3424 (start_non_stop): Remove declaration.
3425 * target.cc (process_target::supports_non_stop): Define.
3426 (process_target::async): Define.
3427 (process_target::start_non_stop): Define.
3428 (start_non_stop): Remove.
3429
3430 Update the derived classes and callers below.
3431
3432 * server.cc (handle_qxfer_siginfo): Update.
3433 (handle_query): Update.
3434 * linux-low.cc (linux_target_ops): Update.
3435 (linux_supports_non_stop): Turn into ...
3436 (linux_process_target::supports_non_stop): ... this.
3437 (linux_async): Turn into ...
3438 (linux_process_target::async): ... this.
3439 (linux_start_non_stop): Turn into ...
3440 (linux_process_target::start_non_stop): ... this.
3441 * linux-low.h (class linux_process_target): Update.
3442 * lynx-low.cc (lynx_target_ops): Update.
3443 * nto-low.cc (nto_target_ops): Update.
3444 (nto_supports_non_stop): Remove; rely on the default behavior
3445 instead.
3446 * win32-low.cc (win32_target_ops): Update.
3447
d7abedf7
TBA
34482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3449
3450 Turn process_stratum_target's qxfer_siginfo op into a method of
3451 process_target.
3452
3453 * target.h (struct process_stratum_target): Remove the target op.
3454 (class process_target): Add the target op. Also add
3455 'supports_qxfer_siginfo'.
3456 * target.cc (process_target::qxfer_siginfo): Define.
3457 (process_target::supports_qxfer_siginfo): Define.
3458
3459 Update the derived classes and callers below.
3460
3461 * server.cc (handle_qxfer_siginfo): Update.
3462 (handle_query): Update.
3463 * linux-low.cc (linux_target_ops): Update.
3464 (linux_process_target::supports_qxfer_siginfo): Define.
3465 (linux_xfer_siginfo): Turn into ...
3466 (linux_process_target::qxfer_siginfo): ... this.
3467 * linux-low.h (class linux_process_target): Update.
3468 * lynx-low.cc (lynx_target_ops): Update.
3469 * nto-low.cc (nto_target_ops): Update.
3470 * win32-low.cc (win32_target_ops): Update.
3471
2d0795ee
TBA
34722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3473
3474 Turn process_stratum_target's qxfer_osdata op into a method of
3475 process_target.
3476
3477 * target.h (struct process_stratum_target): Remove the target op.
3478 (class process_target): Add the target op. Also add
3479 'supports_qxfer_osdata'.
3480 * target.cc (process_target::qxfer_osdata): Define.
3481 (process_target::supports_qxfer_osdata): Define.
3482
3483 Update the derived classes and callers below.
3484
3485 * server.cc (handle_qxfer_osdata): Update.
3486 (handle_query): Update.
3487 * linux-low.cc (linux_target_ops): Update.
3488 (linux_process_target::supports_qxfer_osdata): Define.
3489 (linux_qxfer_osdata): Turn into ...
3490 (linux_process_target::qxfer_osdata): ... this.
3491 * linux-low.h (class linux_process_target): Update.
3492 * lynx-low.cc (lynx_target_ops): Update.
3493 * nto-low.cc (nto_target_ops): Update.
3494 * win32-low.cc (win32_target_ops): Update.
3495
ea06bbaa
TBA
34962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3497
3498 Turn process_stratum_target's hostio_last_error op into a
3499 method of process_target.
3500
3501 * target.h (struct process_stratum_target): Remove the target op.
3502 (class process_target): Add the target op.
3503 * target.cc: Add "hostio.h" to includes.
3504 (process_target::hostio_last_error): Define.
3505
3506 Update the derived classes and callers below.
3507
3508 * hostio.cc (hostio_error): Update.
3509 * linux-low.cc: Remove "hostio.h" from includes.
3510 (linux_target_ops): Update.
3511 * lynx-low.cc (lynx_target_ops): Update.
3512 * nto-low.cc (nto_target_ops): Update.
3513 * win32-low.h (class win32_process_target): Update.
3514 * win32-low.cc (win32_target_ops): Update.
3515 (wince_hostio_last_error): Turn into ...
3516 (win32_process_target::hostio_last_error): ... this.
3517
6e3fd7e9
TBA
35182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3519
3520 Turn process_stratum_target's get_tls_address op into a method of
3521 process_target.
3522
3523 * target.h (struct process_stratum_target): Remove the target op.
3524 (class process_target): Add the target op. Also add
3525 'supports_get_tls_address'.
3526 * target.cc (process_target::get_tls_address): Define.
3527 (process_target::supports_get_tls_address): Define.
3528
3529 Update the derived classes and callers below.
3530
3531 * server.cc (handle_query): Update.
3532 * linux-low.cc (linux_target_ops): Update.
3533 (linux_process_target::supports_get_tls_address): Define.
3534 (linux_process_target::get_tls_address): Define.
3535 * linux-low.h (class linux_process_target): Update.
3536 * lynx-low.cc (lynx_target_ops): Update.
3537 * nto-low.cc (nto_target_ops): Update.
3538 * win32-low.cc (win32_target_ops): Update.
3539
5203ae1e
TBA
35402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3541
3542 Turn process_stratum_target's read_offsets op into a method of
3543 process_target.
3544
3545 * target.h (struct process_stratum_target): Remove the target op.
3546 (class process_target): Add the target op. Also add
3547 'supports_read_offsets'.
3548 * target.cc (process_target::read_offsets): Define.
3549 (process_target::supports_read_offsets): Define.
3550
3551 Update the derived classes and callers below.
3552
3553 * server.cc (handle_query): Update.
3554 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3555 (linux_target_ops): Update.
3556 (linux_process_target::supports_read_offsets): Define.
3557 (linux_read_offsets): Turn into ...
3558 (linux_process_target::read_offsets): ... this.
3559 * linux-low.h (class linux_process_target): Update.
3560 * lynx-low.cc (lynx_target_ops): Update.
3561 * nto-low.cc (nto_target_ops): Update.
3562 * win32-low.cc (win32_target_ops): Update.
3563
6eeb5c55
TBA
35642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3565
3566 Turn process_stratum_target's stopped_by_watchpoint and
3567 stopped_data_address ops into methods of process_target.
3568
3569 * target.h (struct process_stratum_target): Remove the target ops.
3570 (class process_target): Add the target ops.
3571 * target.cc (process_target::stopped_by_watchpoint): Define.
3572 (process_target::stopped_data_address): Define.
3573
3574 Update the derived classes and callers below.
3575
3576 * remote-utils.cc (prepare_resume_reply): Update.
3577 * linux-low.cc (linux_target_ops): Update.
3578 (linux_stopped_by_watchpoint): Turn into ...
3579 (linux_process_target::stopped_by_watchpoint): ... this.
3580 (linux_stopped_data_address): Turn into ...
3581 (linux_process_target::stopped_data_address): ... this.
3582 * linux-low.h (class linux_process_target): Update.
3583 * lynx-low.cc (lynx_target_ops): Update.
3584 * nto-low.cc (nto_target_ops): Update.
3585 (nto_stopped_by_watchpoint): Turn into ...
3586 (nto_process_target::stopped_by_watchpoint): ... this.
3587 (nto_stopped_data_address): Turn into ...
3588 (nto_process_target::stopped_data_address): ... this.
3589 * nto-low.h (class nto_process_target): Update.
3590 * win32-low.cc (win32_target_ops): Update.
3591 (win32_stopped_by_watchpoint): Turn into ...
3592 (win32_process_target::stopped_by_watchpoint): ... this.
3593 (win32_stopped_data_address): Turn into ...
3594 (win32_process_target::stopped_data_address): ... this.
3595 * win32-low.h (class win32_process_target): Update.
3596
22aa6223
TBA
35972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3598
3599 Turn process_stratum_target's supports_hardware_single_step op into
3600 a method of process_target.
3601
3602 * target.h (struct process_stratum_target): Remove the target op.
3603 (class process_target): Add the target op.
3604 (target_supports_hardware_single_step): Update the macro.
3605 (target_can_do_hardware_single_step): Remove declaration.
3606 * target.cc (process_target::supports_hardware_single_step): Define.
3607 (target_can_do_hardware_single_step): Remove.
3608
3609 Update the derived classes and callers below.
3610
3611 * linux-low.h (class linux_process_target): Update.
3612 * linux-low.cc (linux_target_ops): Update.
3613 (linux_supports_hardware_single_step): Turn into ...
3614 (linux_process_target::supports_hardware_single_step): ... this.
3615 * lynx-low.h (class lynx_process_target): Update.
3616 * lynx-low.cc (lynx_target_ops): Update.
3617 (lynx_process_target::supports_hardware_single_step): Define.
3618 * nto-low.h (class nto_process_target): Update.
3619 * nto-low.cc (nto_target_ops): Update.
3620 (nto_process_target::supports_hardware_single_step): Define.
3621 * win32-low.h (class win32_process_target): Update.
3622 * win32-low.cc (win32_target_ops): Update.
3623 (win32_process_target::supports_hardware_single_step): Define.
3624
93fe88b2
TBA
36252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3626
3627 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3628 ops into methods of process_target.
3629
3630 * target.h (struct process_stratum_target): Remove the target ops.
3631 (class process_target): Add the target ops.
3632 (target_stopped_by_hw_breakpoint): Update the macro.
3633 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3634 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3635 (process_target::supports_stopped_by_hw_breakpoint): Define.
3636
3637 Update the derived classes and callers below.
3638
3639 * linux-low.cc (linux_target_ops): Update.
3640 (linux_stopped_by_hw_breakpoint): Turn into ...
3641 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3642 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3643 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3644 * linux-low.h (class linux_process_target): Update.
3645 * lynx-low.cc (lynx_target_ops): Update.
3646 * nto-low.cc (nto_target_ops): Update.
3647 * win32-low.cc (win32_target_ops): Update.
3648
84320c4e
TBA
36492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3650
3651 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3652 ops into methods of process_target.
3653
3654 * target.h (struct process_stratum_target): Remove the target ops.
3655 (class process_target): Add the target ops.
3656 (target_stopped_by_sw_breakpoint): Update the macro.
3657 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3658 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3659 (process_target::supports_stopped_by_sw_breakpoint): Define.
3660
3661 Update the derived classes and callers below.
3662
3663 * linux-low.cc (linux_target_ops): Update.
3664 (linux_stopped_by_sw_breakpoint): Turn into ...
3665 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3666 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3667 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3668 * linux-low.h (class linux_process_target): Update.
3669 * lynx-low.cc (lynx_target_ops): Update.
3670 * nto-low.cc (nto_target_ops): Update.
3671 * win32-low.cc (win32_target_ops): Update.
3672
7e0bde70
TBA
36732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3674
3675 Turn process_stratum_target's insert_point and remove_point ops
3676 into methods of process_target.
3677
3678 * target.h (struct process_stratum_target): Remove the target ops.
3679 (class process_target): Add the target ops.
3680 * target.cc (process_target::insert_point): Define.
3681 (process_target::remove_point): Define.
3682
3683 Update the derived classes and callers below.
3684
3685 * mem-break.cc (set_raw_breakpoint_at): Update.
3686 (delete_raw_breakpoint): Update.
3687 (uninsert_raw_breakpoint): Update.
3688 (reinsert_raw_breakpoint): Update.
3689 * linux-low.cc (linux_target_ops): Update.
3690 (linux_insert_point): Turn into ...
3691 (linux_process_target::insert_point): ... this.
3692 (linux_remove_point): Turn into ...
3693 (linux_process_target::remove_point): ... this.
3694 * linux-low.h (class linux_process_target): Update.
3695 * lynx-low.cc (lynx_target_ops): Update.
3696 * nto-low.cc (nto_target_ops): Update.
3697 (nto_insert_point): Turn into ...
3698 (nto_process_target::insert_point): ... this.
3699 (nto_remove_point): Turn into ...
3700 (nto_process_target::remove_point): ... this.
3701 * nto-low.h (class nto_process_target): Update.
3702 * win32-low.cc (win32_target_ops): Update.
3703 (win32_insert_point): Turn into ...
3704 (win32_process_target::insert_point): ... this.
3705 (win32_remove_point): Turn into ...
3706 (win32_process_target::remove_point): ... this.
3707 * win32-low.h (class win32_process_target): Update.
3708
a2b2297a
TBA
37092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3710
3711 Turn process_stratum_target's supports_z_point_type op into a
3712 method of process_target.
3713
3714 * target.h (struct process_stratum_target): Remove the target op.
3715 (class process_target): Add the target op.
3716 * target.cc (process_target::supports_z_point_type): Define.
3717
3718 Update the derived classes and callers below.
3719
3720 * mem-break.cc (z_type_supported): Update.
3721 * linux-low.cc (linux_target_ops): Update.
3722 (linux_supports_z_point_type): Turn into ...
3723 (linux_process_target::supports_z_point_type): ... this.
3724 * linux-low.h (class linux_process_target): Update.
3725 * lynx-low.cc (lynx_target_ops): Update.
3726 * nto-low.cc (nto_target_ops): Update.
3727 (nto_supports_z_point_type): Turn into ...
3728 (nto_process_target::supports_z_point_type): ... this.
3729 * nto-low.h (class nto_process_target): Update.
3730 * win32-low.cc (win32_target_ops): Update.
3731 (win32_supports_z_point_type): Turn into ...
3732 (win32_process_target::supports_z_point_type): ... this.
3733 * win32-low.h (class win32_process_target): Update.
3734
eac215cc
TBA
37352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3736
3737 Turn process_stratum_target's read_auxv op into a method of
3738 process_target.
3739
3740 * target.h (class process_stratum_target): Remove the target op.
3741 (struct process_target): Add the target op. Also add
3742 'supports_read_auxv'.
3743 * target.cc (process_target::read_auxv): Define.
3744 (process_target::supports_read_auxv): Define.
3745
3746 Update the derived classes and callers below.
3747
3748 * server.cc (handle_qxfer_auxv): Update.
3749 (handle_query): Update.
3750 * linux-low.cc (linux_target_ops): Update.
3751 (linux_process_target::supports_read_auxv): Define.
3752 (linux_read_auxv): Turn into ...
3753 (linux_process_target::read_auxv): ... this.
3754 * linux-low.h (class linux_process_target): Update.
3755 * lynx-low.cc (lynx_target_ops): Update.
3756 * nto-low.cc (nto_target_ops): Update.
3757 (nto_process_target::supports_read_auxv): Define.
3758 (nto_read_auxv): Turn into ...
3759 (nto_process_target::read_auxv): ... this.
3760 * nto-low.h (class nto_process_target): Update.
3761 * win32-low.cc (win32_target_ops): Update.
3762
eb497a2a
TBA
37632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3764
3765 Turn process_stratum_target's request_interrupt op into a method of
3766 process_target.
3767
3768 * target.h (struct process_stratum_target): Remove the target op.
3769 (class process_target): Add the target op.
3770
3771 Update the derived classes and callers below.
3772
3773 * remote-utils.cc (putpkt_binary_1): Update.
3774 (input_interrupt): Update.
3775 (getpkt): Update.
3776 * server.cc (handle_v_requests): Update.
3777 * linux-low.cc (linux_target_ops): Update.
3778 (linux_request_interrupt): Turn into ...
3779 (linux_process_target::request_interrupt): ... this.
3780 * linux-low.h (class linux_process_target): Update.
3781 * lynx-low.cc (lynx_target_ops): Update.
3782 (lynx_request_interrupt): Turn into ...
3783 (lynx_process_target::request_interrupt): ... this.
3784 * lynx-low.h (class lynx_process_target): Update.
3785 * nto-low.cc (nto_target_ops): Update.
3786 (nto_request_interrupt): Turn into ...
3787 (nto_process_target::request_interrupt): ... this.
3788 * nto-low.h (class nto_process_target): Update.
3789 * win32-low.cc (win32_target_ops): Update.
3790 (win32_request_interrupt): Turn into ...
3791 (win32_process_target::request_interrupt): ... this.
3792 * win32-low.h (class win32_process_target): Update.
3793
2a31c7aa
TBA
37942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3795
3796 Turn process_stratum_target's look_up_symbols op into a method of
3797 process_target.
3798
3799 * target.h (struct process_stratum_target): Remove the target op.
3800 (class process_target): Add the target op.
3801 * target.cc (process_target::look_up_symbols): Define.
3802
3803 Update the derived classes and callers below.
3804
3805 * server.cc (handle_query): Update.
3806 * linux-low.cc (linux_target_ops): Update.
3807 (linux_look_up_symbols): Turn into ...
3808 (linux_process_target::look_up_symbols): ... this.
3809 * linux-low.h (class linux_process_target): Update.
3810 * lynx-low.cc (lynx_target_ops): Update.
3811 * nto-low.cc (nto_target_ops): Update.
3812 * win32-low.cc (win32_target_ops): Update.
3813
e2558df3
TBA
38142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3815
3816 Turn process_stratum_target's read_memory and write_memory
3817 ops into methods of process_target.
3818
3819 * target.h (struct process_stratum_target): Remove the target ops.
3820 (class process_target): Add the target ops.
3821
3822 Update the derived classes and callers below.
3823
3824 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3825 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3826 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3827 (arm_get_syscall_trapinfo): Update.
3828 * linux-cris-low.cc (cris_breakpoint_at): Update.
3829 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3830 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3831 * linux-mips-low.cc (mips_breakpoint_at): Update.
3832 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3833 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3834 * linux-sh-low.cc (sh_breakpoint_at): Update.
3835 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3836 (sparc_store_gregset_from_stack): Update.
3837 (sparc_breakpoint_at): Update.
3838 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3839 * linux-tile-low.cc (tile_breakpoint_at): Update.
3840 * linux-x86-low.cc (x86_breakpoint_at): Update.
3841 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3842 * mem-brea.cc (insert_memory_breakpoint): Update.
3843 (validate_inserted_breakpoint): Update.
3844 * target.cc (read_inferior_memory): Update.
3845 (target_write_memory): Update.
3846 * linux-low.cc (linux_target_ops): Update.
3847 (linux_read_memory): Make a wrapper around the read_memory target
3848 op call.
3849 (linux_process_target::read_memory): Rename from linux_read_memory.
3850 (linux_write_memory): Turn into ...
3851 (linux_process_target::write_memory): ... this.
3852 * linux-low.h (class linux_process_target): Update.
3853 * lynx-low.cc (lynx_target_ops): Update.
3854 (lynx_read_memory): Turn into ...
3855 (lynx_process_target::read_memory): ... this.
3856 (lynx_write_memory): Turn into ...
3857 (lynx_process_target::write_memory): ... this.
3858 * lynx-low.h (class lynx_process_target): Update.
3859 * nto-low.cc (nto_target_ops): Update.
3860 (nto_read_memory): Turn into ...
3861 (nto_process_target::read_memory): ... this.
3862 (nto_write_memory): Turn into ...
3863 (nto_process_target::write_memory): ... this.
3864 * nto-low.h (class nto_process_target): Update.
3865 * win32-low.cc (win32_target_ops): Update.
3866 (win32_read_inferior_memory): Turn into ...
3867 (win32_process_target::read_memory): ... this.
3868 (win32_write_inferior_memory): Turn into ...
3869 (win32_process_target::write_memory): ... this.
3870 * win32-low.h (class win32_process_target): Update.
3871
79b44087
TBA
38722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3873
3874 Turn process_stratum_target's prepare_to_access_memory and
3875 done_accessing_memory ops into methods of process_target.
3876
3877 * target.h (struct process_stratum_target): Remove the target ops.
3878 (class process_target): Add the target ops.
3879 * target.cc (process_target::prepare_to_access_memory): Define.
3880 (process_target::done_accessing_memory): Define.
3881 (prepare_to_access_memory): Update.
3882 (done_accessing_memory): Update.
3883
3884 Update the derived classes and callers below.
3885
3886 * linux-low.cc (linux_target_ops): Update.
3887 (linux_prepare_to_access_memory): Turn into ...
3888 (linux_process_target::prepare_to_access_memory): ... this.
3889 (linux_done_accessing_memory): Turn into ...
3890 (linux_process_target::done_accessing_memory): ... this.
3891 * linux-low.h (class linux_process_target): Update.
3892 * lynx-low.cc (lynx_target_ops): Update.
3893 * nto-low.cc (nto_target_ops): Update.
3894 * win32-low.cc (win32_target_ops): Update.
3895
a5a4d4cd
TBA
38962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3897
3898 Turn process_stratum_target's fetch_registers and store_registers
3899 ops into methods of process_target.
3900
3901 * target.h (struct process_stratum_target): Remove the target ops.
3902 (class process_target): Add the target ops.
3903 (fetch_inferior_registers): Update the macro.
3904 (store_inferior_registers): Update the macro.
3905
3906 Update the derived classes and callers below.
3907
3908 * linux-low.cc (linux_target_ops): Update.
3909 (linux_fetch_registers): Turn into ...
3910 (linux_process_target::fetch_registers): ... this.
3911 (linux_store_registers): Turn into ...
3912 (linux_process_target::store_registers): ... this.
3913 * linux-low.h (class linux_process_target): Update.
3914 * lynx-low.cc (lynx_target_ops): Update.
3915 (lynx_fetch_registers): Turn into ...
3916 (lynx_process_target::fetch_registers): ... this.
3917 (lynx_store_registers): Turn into ...
3918 (lynx_process_target::store_registers): ... this.
3919 * lynx-low.h (class lynx_process_target): Update.
3920 * nto-low.cc (nto_target_ops): Update.
3921 (nto_fetch_registers): Turn into ...
3922 (nto_process_target::fetch_registers): ... this.
3923 (nto_store_registers): Turn into ...
3924 (nto_process_target::store_registers): ... this.
3925 * nto-low.h (class nto_process_target): Update.
3926 * win32-low.cc (win32_target_ops): Update.
3927 (win32_fetch_inferior_registers): Turn into ...
3928 (win32_process_target::fetch_registers): ... this.
3929 (win32_store_inferior_registers): Turn into ...
3930 (win32_process_target::store_registers): ... this.
3931 * win32-low.h (class win32_process_target): Update.
3932
6532e7e3
TBA
39332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3934
3935 Turn process_stratum_target's wait op into a method of
3936 process_target.
3937
3938 * target.h (struct process_stratum_target): Remove the target op.
3939 (class process_target): Add the target op.
3940
3941 Update the derived classes and callers below.
3942
3943 * target.cc (target_wait): Update.
3944 * linux-low.cc (linux_target_ops): Update.
3945 (linux_wait): Turn into ...
3946 (linux_process_target::wait): ... this.
3947 * linux-low.h (class linux_process_target): Update.
3948 * lynx-low.cc (lynx_target_ops): Update.
3949 (lynx_wait): Turn into ...
3950 (lynx_process_target::wait): ... this.
3951 * lynx-low.h (class lynx_process_target): Update.
3952 * nto-low.cc (nto_target_ops): Update.
3953 (nto_wait): Turn into ...
3954 (nto_process_target::wait): ... this.
3955 * nto-low.h (class nto_process_target): Update.
3956 * win32-low.cc (win32_target_ops): Update.
3957 (win32_wait): Turn into ...
3958 (win32_process_target::wait): ... this.
3959 (do_initial_child_stuff): Update.
3960 * win32-low.h (class win32_process_target): Update.
3961
0e4d7e35
TBA
39622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3963
3964 Turn process_stratum_target's resume op into a method of
3965 process_target.
3966
3967 * target.h (struct process_stratum_target): Remove the target op.
3968 (class process_target): Add the target op.
3969
3970 Update the derived classes and callers below.
3971
3972 * server.cc (resume): Update.
3973 * target.cc (target_stop_and_wait): Update.
3974 (target_continue_no_signal): Update.
3975 (target_continue): Update.
3976 * linux-low.cc (linux_target_ops): Update.
3977 (linux_resume): Turn into ...
3978 (linux_process_target::resume): ... this.
3979 * linux-low.h (class linux_process_target): Update.
3980 * lynx-low.cc (lynx_target_ops): Update.
3981 (lynx_resume): Turn into ...
3982 (lynx_process_target::resume): ... this.
3983 * lynx-low.h (class lynx_process_target): Update.
3984 * nto-low.cc (nto_target_ops): Update.
3985 (nto_resume): Turn into ...
3986 (nto_process_target::resume): ... this.
3987 * nto-low.h (class nto_process_target): Update.
3988 * win32-low.cc (win32_target_ops): Update.
3989 (win32_resume): Turn into ...
3990 (win32_process_target::resume): ... this.
3991 (win32_process_target::detach): Update.
3992 (do_initial_child_stuff): Update.
3993 * win32-low.h (class win32_process_target): Update.
3994
13d3d99b
TBA
39952020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3996
3997 Turn process_stratum_target's thread_alive op into a method of
3998 process_target.
3999
4000 * target.h (struct process_stratum_target): Remove the target op.
4001 (class process_target): Add the target op.
4002 (mythread_alive): Update the macro.
4003
4004 Update the derived classes and callers below.
4005
4006 * linux-low.cc (linux_target_ops): Update.
4007 (linux_thread_alive): Turn into ...
4008 (linux_process_target::thread_alive): ... this.
4009 (wait_for_sigstop): Update.
4010 * linux-low.h (class linux_process_target): Update.
4011 * lynx-low.cc (lynx_target_ops): Update.
4012 (lynx_thread_alive): Turn into ...
4013 (lynx_process_target::thread_alive): ... this.
4014 * lynx-low.h (class lynx_process_target): Update.
4015 * nto-low.cc (nto_target_ops): Update.
4016 (nto_thread_alive): Turn into ...
4017 (nto_process_target::thread_alive): ... this.
4018 * nto-low.h (class nto_process_target): Update.
4019 * win32-low.cc (win32_target_ops): Update.
4020 (win32_thread_alive): Turn into ...
4021 (win32_process_target::thread_alive): ... this.
4022 * win32-low.h (class win32_process_target): Update.
4023
95a49a39
TBA
40242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4025
4026 Turn process_stratum_target's join op into a method of
4027 process_target.
4028
4029 * target.h (struct process_stratum_target): Remove the target op.
4030 (class process_target): Add the target op.
4031 (join_inferior): Update the macro.
4032
4033 Update the derived classes and callers below.
4034
4035 * linux-low.cc (linux_target_ops): Update.
4036 (linux_join): Turn into ...
4037 (linux_process_target::join): ... this.
4038 * linux-low.h (class linux_process_target): Update.
4039 * lynx-low.cc (lynx_target_ops): Update.
4040 (lynx_join): Turn into ...
4041 (lynx_process_target::join): ... this.
4042 * lynx-low.h (class lynx_process_target): Update.
4043 * nto-low.cc (nto_target_ops): Update.
4044 (nto_process_target::join): Define.
4045 * nto-low.h (class nto_process_target): Update.
4046 * win32-low.cc (win32_target_ops): Update.
4047 (win32_join): Turn into ...
4048 (win32_process_target::join): ... this.
4049 * win32-low.h (class win32_process_target): Update.
4050
8adb37b9
TBA
40512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4052
4053 Turn process_stratum_target's mourn op into a method of
4054 process_target.
4055
4056 * target.h (struct process_stratum_target): Remove the target op.
4057 (class process_target): Add the target op.
4058
4059 Update the derived classes and callers below.
4060
4061 * target.cc (target_mourn_inferior): Update.
4062 * linux-low.cc (linux_target_ops): Update.
4063 (linux_mourn): Turn into ...
4064 (linux_process_target::mourn): ... this.
4065 (handle_extended_wait): Update.
4066 (linux_process_target::kill): Update.
4067 (linux_process_target::detach): Update.
4068 * linux-low.h (class linux_process_target): Update.
4069 * lynx-low.cc (lynx_target_ops): Update.
4070 (lynx_mourn): Turn into ...
4071 (lynx_process_target::mourn): ... this.
4072 * lynx-low.h (class lynx_process_target): Update.
4073 * nto-low.cc (nto_target_ops): Update.
4074 (nto_mourn): Turn into ...
4075 (nto_process_target::mourn): ... this.
4076 * nto-low.h (class nto_process_target): Update.
4077 * win32-low.cc (win32_target_ops): Update.
4078 (win32_mourn): Turn into ...
4079 (win32_process_target::mourn): ... this.
4080 * win32-low.h (class win32_process_target): Update.
4081
9061c9cf
TBA
40822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4083
4084 Turn process_stratum_target's detach op into a method of
4085 process_target.
4086
4087 * target.h (struct process_stratum_target): Remove the target op.
4088 (class process_target): Add the target op.
4089 (detach_inferior): Update the macro.
4090
4091 Update the derived classes and callers below.
4092
4093 * linux-low.cc (linux_target_ops): Update.
4094 (linux_detach): Turn into ...
4095 (linux_process_target::detach): ... this.
4096 * linux-low.h (class linux_process_target): Update.
4097 * lynx-low.cc (lynx_target_ops): Update.
4098 (lynx_detach): Turn into ...
4099 (lynx_process_target::detach): ... this.
4100 * lynx-low.h (class lynx_process_target): Update.
4101 * nto-low.cc (nto_target_ops): Update.
4102 (nto_detach): Turn into ...
4103 (nto_process_target::detach): ... this.
4104 * nto-low.h (class nto_process_target): Update.
4105 * win32-low.cc (win32_target_ops): Update.
4106 (win32_detach): Turn into ...
4107 (win32_process_target::detach): ... this.
4108 * win32-low.h (class win32_process_target): Update.
4109
c6885a57
TBA
41102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4111
4112 Turn process_stratum_target's kill op into a method of
4113 process_target.
4114
4115 * target.h (struct process_stratum_target): Remove the target op.
4116 (class process_target): Add the target op.
4117
4118 Update the derived classes and callers below.
4119
4120 * target.cc (kill_inferior): Update.
4121 * linux-low.cc (linux_target_ops): Update.
4122 (linux_kill): Turn into ...
4123 (linux_process_target::kill): ... this.
4124 * linux-low.h (class linux_process_target): Update.
4125 * lynx-low.cc (lynx_target_ops): Update.
4126 (lynx_kill): Turn into ...
4127 (lynx_process_target::kill): ... this.
4128 * lynx-low.h (class lynx_process_target): Update.
4129 * nto-low.cc (nto_target_ops): Update.
4130 (nto_kill): Turn into ...
4131 (nto_process_target::kill): ... this.
4132 * nto-low.h (class nto_process_target): Update.
4133 * win32-low.cc (win32_target_ops): Update.
4134 (win32_kill): Turn into ...
4135 (win32_process_target::kill): ... this.
4136 * win32-low.h (class win32_process_target): Update.
4137
ef03dad8
TBA
41382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4139
4140 Turn process_stratum_target's attach op into a method of
4141 process_target.
4142
4143 * target.h (struct process_stratum_target): Remove the target op.
4144 (class process_target): Add the target op.
4145 (myattach): Update the macro.
4146
4147 Update the derived classes and callers below.
4148
4149 * linux-low.cc (linux_target_ops): Update.
4150 (linux_attach): Turn into ...
4151 (linux_process_target::attach): ... this.
4152 * linux-low.h (class linux_process_target): Update.
4153 * lynx-low.cc (lynx_target_ops): Update.
4154 (lynx_attach): Turn into ...
4155 (lynx_process_target::attach): ... this.
4156 * lynx-low.h (class lynx_process_target): Update.
4157 * nto-low.cc (nto_target_ops): Update.
4158 (nto_attach): Turn into ...
4159 (nto_process_target::attach): ... this.
4160 * nto-low.h (class nto_process_target): Update.
4161 * win32-low.cc (win32_target_ops): Update.
4162 (win32_attach): Turn into ...
4163 (win32_process_target::attach): ... this.
4164 * win32-low.h (class win32_process_target): Update.
4165
6dee9afb
TBA
41662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4167
4168 Turn process_stratum_target's post_create_inferior op into a method
4169 of process_target.
4170
4171 * target.h (struct process_stratum_target): Remove the target op.
4172 (class process_target): Add the target op.
4173 (target_post_create_inferior): Update the macro.
4174 * target.cc (process_target::post_create_inferior): Define.
4175
4176 Update the derived classes and callers below.
4177
4178 * linux-low.cc (linux_target_ops): Update.
4179 (linux_post_create_inferior): Turn into ...
4180 (linux_process_target::post_create_inferior): ... this.
4181 * linux-low.h (class linux_process_target): Update.
4182 * lynx-low.cc (lynx_target_ops): Update.
4183 * nto-low.cc (nto_target_ops): Update.
4184 * win32-low.cc (win32_target_ops): Update.
4185
15295543
TBA
41862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4187
4188 Turn process_stratum_target's create_inferior op into a method of
4189 process_target.
4190
4191 * target.h (struct process_stratum_target): Remove the target op.
4192 (class process_target): Add the target op.
4193 (create_inferior): Rename the macro to ...
4194 (target_create_inferior): ... this.
4195
4196 Update the derived classes and callers below.
4197
4198 * server.cc (handle_v_run): Update.
4199 (captured_main): Update.
4200 (process_serial_event): Update.
4201 * linux-low.cc (linux_target_ops): Update.
4202 (linux_create_inferior): Turn into ...
4203 (linux_process_target::create_inferior): ... this.
4204 * linux-low.h (class linux_process_target): Update.
4205 * lynx-low.cc (lynx_target_ops): Update.
4206 (lynx_create_inferior): Turn into ...
4207 (lynx_process_target::create_inferior): ... this.
4208 * lynx-low.h (class lynx_process_target): Update.
4209 * nto-low.cc (nto_target_ops): Update.
4210 (nto_create_inferior): Turn into ...
4211 (nto_process_target::create_inferior): ... this.
4212 * nto-low.h (class nto_process_target): Update.
4213 * win32-low.cc (win32_target_ops): Update.
4214 (win32_create_inferior): Turn into ...
4215 (win32_process_target::create_inferior): ... this.
4216 * win32-low.h (class win32_process_target): Update.
4217
5ef9273d
TBA
42182020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4219
4220 * target.h (class process_target): New class definition.
4221 (struct process_stratum_target) <pt>: New field with type
4222 'process_target*'.
4223 * linux-low.h (class linux_process_target): Define as a derived
4224 class of 'process_target'.
4225 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4226 as the 'pt' field.
4227 * lynx-low.h (class lynx_process_target): Define as a derived
4228 class of 'process_target'.
4229 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4230 as the 'pt' field.
4231 * nto-low.h (class nto_process_target): Define as a derived
4232 class of 'process_target'.
4233 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4234 as the 'pt' field.
4235 * win32-low.h (class win32_process_target): Define as a derived
4236 class of 'process_target'.
4237 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4238 as the 'pt' field.
4239
9f1528a1
AB
42402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4241
4242 * configure: Regenerate.
4243
bf84f706
MR
42442020-02-19 Maciej W. Rozycki <macro@wdc.com>
4245 Andrew Burgess <andrew.burgess@embecosm.com>
4246
4247 * linux-riscv-low.cc: New file.
4248 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4249 and nat/riscv-linux-tdesc.c.
4250 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4251 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4252 Define.
4253
1a627e7e
TT
42542020-02-14 Tom Tromey <tom@tromey.com>
4255
4256 * acinclude.m4: Don't include acx_configure_dir.m4.
4257 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4258 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4259 (all, install-only, uninstall, clean-info, clean)
4260 (maintainer-clean): Don't recurse.
4261 (subdir_do, all-lib): Remove.
4262 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4263 (GNULIB_H): Remove.
4264 (generated_files): Update.
4265 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4266 * configure: Rebuild.
4267 * configure.ac: Don't configure gnulib or libiberty.
4268 (GNULIB): Update.
4269
a9b34532
EZ
42702020-02-14 Eli Zaretskii <eliz@gnu.org>
4271
4272 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4273 preparing the command line for CreateProcess.
4274 (win32_create_inferior): Reflect the program name in debugging
4275 output that shows the process and its command line.
4276
feacfcac
SM
42772020-02-13 Simon Marchi <simon.marchi@efficios.com>
4278
4279 * Makefile.in: Rename source files from .c to .cc.
4280 * %.c: Rename to %.cc.
4281 * configure.ac: Rename server.c to server.cc.
4282 * configure: Re-generate.
4283
06b3c5bd
SM
42842020-02-13 Simon Marchi <simon.marchi@efficios.com>
4285
4286 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4287
052793ad
HD
42882020-02-12 Hannes Domani <ssbssa@yahoo.de>
4289
4290 * win32-low.c (win32_create_inferior): Set signal_pid.
4291
f20e3e82
MR
42922020-02-12 Maciej W. Rozycki <macro@wdc.com>
4293 Pedro Alves <palves@redhat.com>
4294
4295 Skip building gdbserver in a cross-configuration.
4296 * configure.srv: Set $gdbserver_host depending on whether $target
4297 is $host. Use $gdbserver_host instead of $host.
4298
8ddd8e0e
SM
42992020-02-11 Simon Marchi <simon.marchi@efficios.com>
4300
4301 * configure: Re-generate.
4302
898e7f60
SM
43032020-02-11 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * configure: Re-generate.
4306
58df732b
SM
43072020-02-11 Simon Marchi <simon.marchi@efficios.com>
4308
4309 * acinclude.m4: Update warning.m4 path.
4310
7928d571
HD
43112020-02-09 Hannes Domani <ssbssa@yahoo.de>
4312
4313 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4314 (handle_exception): Set siginfo_er.
4315 (win32_xfer_siginfo): New function.
4316
919adfe8
TT
43172020-02-07 Tom Tromey <tom@tromey.com>
4318 Pedro Alves <palves@redhat.com>
4319
4320 * README: Update build documentation.
4321 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4322 host, not target.
4323 * configure.ac: Update paths.
4324 * configure: Rebuild.
4325 * acinclude.m4: Update paths.
4326 * Makefile.in: Update include paths.
4327 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4328 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4329 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4330 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4331 (%-generated.c): Update paths.
4332 * Move entire directory from ../gdb/gdbserver.
4333
287c844a
MR
43342020-01-29 Maciej W. Rozycki <macro@wdc.com>
4335
4336 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4337
548a204f
PFC
43382020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4339
4340 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4341 assignment instead of srv_linux_obj.
4342
a2236a08
HD
43432020-01-28 Hannes Domani <ssbssa@yahoo.de>
4344
4345 * server.c (handle_qxfer_libraries): Write segment-address with
4346 paddress.
4347
bdaed379
HD
43482020-01-24 Hannes Domani <ssbssa@yahoo.de>
4349
4350 * Makefile.in (install-strip): New target.
4351 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4352 * aclocal.m4: Regenerate.
4353 * configure: Regenerate.
4354 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4355
42cd72aa
MR
43562020-01-24 Maciej W. Rozycki <macro@wdc.com>
4357
4358 * Makefile.in (SFILES): Adjust paths to point to real files.
4359 (OBS): Move waitstatus.o to target/waitstatus.o.
4360 (TAGS): Transform paths appropriately.
4361 (%.o): Rename to...
4362 (nat/%.o): ... this pattern rule.
4363 (%.o): Rename to...
4364 (target/%.o): ... this pattern rule.
4365 * configure.srv: Adjust paths throughout to include nat/ prefix
4366 with the revant files.
4367 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4368 * configure: Regenerate.
4369
42ba50ec
MR
43702020-01-24 Maciej W. Rozycki <macro@wdc.com>
4371
4372 * Makefile.in (TAGS): Remove config files from the recipe.
4373
05ea2a05
TT
43742020-01-14 Tom Tromey <tom@tromey.com>
4375
4376 * configure: Rebuild.
4377 * configure.ac: Remove any checks that were added to common.m4.
4378 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4379 lib-link.m4.
4380
01027315
TT
43812020-01-14 Tom Tromey <tom@tromey.com>
4382
4383 * server.h: Include config.h.
4384 * gdbreplay.c: Include config.h.
4385 * configure: Rebuild.
4386 * configure.ac: Don't source common.host.
4387 * acinclude.m4: Update path.
4388 * Makefile.in (INCSUPPORT): New variable.
4389 (INCLUDE_CFLAGS): Add INCSUPPORT.
4390 (SFILES): Update paths.
4391 (version-generated.c): Update path to create-version.sh.
4392 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4393
b2ceabe8
TT
43942020-01-14 Tom Tromey <tom@tromey.com>
4395
4396 * configure.ac (LIBS): Use WIN32APILIBS.
4397 (USE_WIN32API): Don't define.
4398 * configure: Rebuild.
4399
25c51f71
TT
44002020-01-14 Tom Tromey <tom@tromey.com>
4401
4402 * configure: Rebuild.
4403
c0bd321d
SM
44042020-01-13 Simon Marchi <simon.marchi@efficios.com>
4405
4406 * Makefile.in (%-generated.c): Remove rule for files from
4407 regformats/i386.
4408
bb564c58
SM
44092020-01-13 Simon Marchi <simon.marchi@efficios.com>
4410
4411 * configure: Re-generate.
4412
6e37c371
SM
44132020-01-13 Simon Marchi <simon.marchi@efficios.com>
4414
4415 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4416 Define to static.
4417 * tracepoint.c (stop_tracing, flush_trace_buffer,
4418 about_to_request_buffer_space, get_trace_state_variable_value,
4419 set_trace_state_variable_value, gdb_collect): Add declaration.
4420
df4a0200
SM
44212020-01-13 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4424 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4425 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4426 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4427 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4428 static.
4429
89e94ec9
SM
44302020-01-13 Simon Marchi <simon.marchi@efficios.com>
4431
4432 * inferiors.c: Include gdbsupport/common-inferior.h.
4433
2552728a
SM
44342020-01-13 Simon Marchi <simon.marchi@efficios.com>
4435
4436 * hostio-errno.c: Include hostio.h.
4437
4025fa09
SM
44382020-01-13 Simon Marchi <simon.marchi@efficios.com>
4439
4440 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4441 prerequisite.
4442
c0b0a142
SM
44432020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4444
4445 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4446 * linux-arm-tdesc.h: Include arch/arm.h.
4447
bb1183e2
SM
44482020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4449
4450 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4451
f5df0b5f
SM
44522020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4453
4454 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4455 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4456
5b6d1e4f
PA
44572020-01-10 Pedro Alves <palves@redhat.com>
4458
4459 * fork-child.c (post_fork_inferior): Pass target down to
4460 startup_inferior.
4461 * inferiors.c (switch_to_thread): Add process_stratum_target
4462 parameter.
4463 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4464 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4465 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4466 * remote-utils.c (prepare_resume_reply): Pass the target to
4467 switch_to_thread.
4468 * target.c (the_target): Now a process_stratum_target.
4469 (done_accessing_memory): Pass the target to switch_to_thread.
4470 (set_target_ops): Ajust to use process_stratum_target.
4471 * target.h (struct target_ops): Rename to ...
4472 (struct process_stratum_target): ... this.
4473 (the_target, set_target_ops): Adjust.
4474 (prepare_to_access_memory): Adjust comment.
4475 * win32-low.c (child_xfer_memory): Adjust to use
4476 process_stratum_target.
4477 (win32_target_ops): Now a process_stratum_target.
4478
559e7e50
EZ
44792020-01-06 Eli Zaretskii <eliz@gnu.org>
4480 Pedro Alves <palves@redhat.com>
4481
4482 * win32-low.c (get_child_debug_event): Extract the fatal exception
4483 from the exit status and convert to the equivalent Posix signal
4484 number.
4485 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4486 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4487
48189bec
HD
44882020-01-01 Hannes Domani <ssbssa@yahoo.de>
4489
4490 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4491
5dd8bf88
JB
44922020-01-01 Joel Brobecker <brobecker@adacore.com>
4493
4494 * server.c (gdbserver_version): Change copyright year to 2020.
4495 * gdbreplay.c (gdbreplay_version): Likewise.
4496
0ad6b8ee
CB
44972019-12-19 Christian Biesinger <cbiesinger@google.com>
4498
4499 * configure: Regenerate.
4500 * configure.ac: Quote variable arguments of test.
4501
1ee7b812
BE
45022019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4503
4504 * Makefile.in: Fix build with GNU Make 3.81
4505
d9fa87f4
TT
45062019-12-16 Tom Tromey <tromey@adacore.com>
4507
4508 * server.c (get_exec_file): Constify result.
4509
ab7d13f0
CB
45102019-12-10 Christian Biesinger <cbiesinger@google.com>
4511
4512 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4513 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4514 * config.in: Regenerate.
4515 * configure: Regenerate.
4516 * configure.ac: Don't check for strerror.
4517 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4518 Call safe_strerror instead of strerror.
4519 * server.h (strerror): Remove this now-unnecessary declaration.
4520 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4521 strerror.
4522 (gdb_agent_helper_thread): Likewise.
4523 * utils.c (perror_with_name): Likewise.
4524
4da8c3a8
TT
45252019-11-26 Tom Tromey <tom@tromey.com>
4526
4527 * configure, config.in: Rebuild.
4528
21987b9c
TT
45292019-11-26 Tom Tromey <tom@tromey.com>
4530
4531 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4532 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4533 gdb_sigmask.
4534 * configure, config.in: Rebuild.
4535
5e030278
TT
45362019-11-26 Tom Tromey <tom@tromey.com>
4537
4538 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4539 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4540 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4541 * acinclude.m4: Include ax_pthread.m4.
4542 * config.in, configure: Rebuild.
4543
6d91ce9a
CB
45442019-11-26 Christian Biesinger <cbiesinger@google.com>
4545
4546 * debug.c (debug_set_output): Call safe_strerror instead of
4547 strerror.
4548 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4549 (linux_kill_one_lwp): Likewise.
4550 (linux_detach_one_lwp): Likewise.
4551 (linux_wait_for_event_filtered): Likewise.
4552 (store_register): Likewise.
4553 * lynx-low.c (lynx_attach): Likewise.
4554 * mem-break.c (insert_memory_breakpoint): Likewise.
4555 (remove_memory_breakpoint): Likewise.
4556 (delete_fast_tracepoint_jump): Likewise.
4557 (set_fast_tracepoint_jump): Likewise.
4558 (uninsert_fast_tracepoint_jumps_at): Likewise.
4559 (reinsert_fast_tracepoint_jumps_at): Likewise.
4560 * nto-low.c (nto_xfer_memory): Likewise.
4561 (nto_resume): Likewise.
4562
6cdd651f
LM
45632019-11-20 Luis Machado <luis.machado@linaro.org>
4564
4565 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4566 instead of register count.
4567 * tdesc.c (tdesc_contains_feature): New function.
4568 * tdesc.h (tdesc_contains_feature): New prototype.
4569
cd850b40
CB
45702019-11-15 Christian Biesinger <cbiesinger@google.com>
4571
4572 * Makefile.in: Add safe-strerror.c.
4573 * configure: Regenerate.
4574 * configure.ac: Don't source common.host.
4575
5abebf3c
CB
45762019-11-15 Christian Biesinger <cbiesinger@google.com>
4577
4578 * config.in: Regenerate.
4579 * configure: Regenerate.
4580
e06f3d6e
AB
45812019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4582
4583 * ax.c (ax_printf): Handle size_t_arg.
4584
ca3a04f6
CB
45852019-11-06 Christian Biesinger <cbiesinger@google.com>
4586
4587 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4588 * mi/mi-main.c (output_cores): Likewise.
4589 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4590 (linux_xfer_osdata_modules): Likewise.
4591 * remote.c (register_remote_support_xml): Likewise.
4592 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4593 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4594
e48f6033
CB
45952019-11-01 Christian Biesinger <cbiesinger@google.com>
4596
4597 * configure: Regenerate.
4598 * configure.ac: Remove check for strerror_r.
4599
e7e97a2e
CB
46002019-10-31 Christian Biesinger <cbiesinger@google.com>
4601
4602 * config.in: Regenerate.
4603 * configure: Regenerate.
4604 * configure.ac: Also check for strerror_r.
4605
75cafaa6
CB
46062019-10-31 Christian Biesinger <cbiesinger@google.com>
4607
4608 * ax.h (debug_agent): Remove duplicate declaration.
4609
30baf67b
TV
46102019-10-26 Tom de Vries <tdevries@suse.de>
4611
4612 * linux-aarch64-low.c: Fix typos in comments.
4613 * linux-arm-low.c: Same.
4614 * linux-low.c: Same.
4615 * linux-ppc-low.c: Same.
4616 * proc-service.c: Same.
4617 * regcache.h: Same.
4618 * server.c: Same.
4619 * tracepoint.c: Same.
4620 * win32-low.c: Same.
4621
52c64cf7
TT
46222019-10-25 Tom Tromey <tromey@adacore.com>
4623
4624 * utils.c (xstrdup): Remove.
4625
c12d372d
TT
46262019-10-23 Tom Tromey <tom@tromey.com>
4627
4628 * configure, config.in: Rebuild.
4629
4d0b984b
TT
46302019-10-23 Tom Tromey <tom@tromey.com>
4631
4632 * configure: Rebuild.
4633 * acinclude.m4: Use m4_include, not sinclude.
4634
c5adaa19
TT
46352019-10-17 Tom Tromey <tromey@adacore.com>
4636
4637 * configure: Rebuild.
4638 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4639 in AC_CONFIG_FILES invocation.
4640 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4641 invocation.
4642
fec4e896
CB
46432019-10-16 Christian Biesinger <cbiesinger@google.com>
4644
4645 * server.c: Include xml-builtin.h.
4646 (get_xml_features): Don't declare xml_builtins here.
4647
00975ff6
AB
46482019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4649
4650 * Makefile.in: Remove references to vec-ipa.o.
4651
0dc32745
AB
46522019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4653
4654 * Makefile.in: Remove references to vec.c.
4655
3e6ec53a
CB
46562019-10-02 Christian Biesinger <cbiesinger@google.com>
4657
4658 * server.c (server_waiting): Change to bool.
4659 (extended_protocol): Likewise.
4660 (response_needed): Likewise.
4661 (exit_requested): Likewise.
4662 (run_once): Likewise.
4663 (report_no_resumed): Likewise.
4664 (non_stop): Likewise.
4665 (disable_packet_vCont): Likewise.
4666 (disable_packet_Tthread): Likewise.
4667 (disable_packet_qC): Likewise.
4668 (disable_packet_qfThreadInfo): Likewise.
4669 (handle_general_set): Update.
4670 (handle_detach): Update.
4671 (handle_monitor_command): Update.
4672 (handle_query): Update.
4673 (captured_main): Update.
4674 (process_serial_event): Update.
4675 * server.h (server_waiting): Change to bool.
4676 (disable_packet_vCont): Likewise.
4677 (disable_packet_Tthread): Likewise.
4678 (disable_packet_qC): Likewise.
4679 (disable_packet_qfThreadInfo): Likewise.
4680 (run_once): Likewise.
4681 (non_stop): Likewise.
4682 * target.c (target_stop_and_wait): Update.
4683
80fd2826
TT
46842019-10-02 Tom Tromey <tromey@adacore.com>
4685
4686 * Makefile.in (SFILES): Add common-inferior.c.
4687 (OBS): Add common-inferior.o.
4688 * server.c (startup_with_shell): Don't define.
4689
46f29a9a
AB
46902019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4691
4692 * linux-low.c (linux_low_read_btrace): Update for change to
4693 std::vector.
4694
f9d949fb
CB
46952019-09-20 Christian Biesinger <cbiesinger@google.com>
4696
4697 * debug.c (debug_threads): Remove comment in favor of the header.
4698 * debug.h (using_threads): Add declaration.
4699 (debug_threads): Add comment.
4700 * linux-aarch64-low.c: Include debug.h and remove declaration of
4701 debug_threads.
4702 * nto-low.c: Likewise.
4703 * remote-utils.c: Likewise.
4704 * thread-db.c: Likewise.
4705
abf516c6
UW
47062019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4707
4708 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4709 and powerpc-cell64l-ipa.o.
4710 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4711 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4712 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4713 (spu*-*-*): Remove.
4714
4715 * spu-low.c: Remove file.
4716
4717 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4718 (parse_spufs_run): Remove.
4719 (ppc_get_pc): Remove Cell/B.E. support.
4720 (ppc_set_pc): Likewise.
4721 (ppc_breakpoint_at): Likewise.
4722 (ppc_arch_setup): Likewise.
4723 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4724 tdesc_powerpc_cell32l.
4725 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4726 or init_registers_powerpc_cell32l.
4727 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4728 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4729 or init_registers_powerpc_cell32l.
4730 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4731 (init_registers_powerpc_cell32l): Remove prototype.
4732 (init_registers_powerpc_cell64l): Likewise.
4733
4734 * target.h (struct target_ops): Remove qxfer_spu member.
4735 * server.c (handle_qxfer_spu): Remove.
4736 (qxfer_packets): Remove entry for "spu".
4737 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4738 * linux-low.c (SPUFS_MAGIC): Remove.
4739 (spu_enumerate_spu_ids): Remove.
4740 (linux_qxfer_spu): Remove.
4741 (linux_target_ops): Remove qxfer_spu member.
4742 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4743 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4744 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4745
2d41fa11
SDJ
47462019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4747
4748 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4749 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4750 * config.in: Regenerate.
4751 * configure: Regenerate.
4752
d59b55f0
TT
47532019-08-15 Tom Tromey <tromey@adacore.com>
4754
4755 * target.c (target_write_memory): Use gdb::byte_vector.
4756
4196ab2a
TT
47572019-08-15 Tom Tromey <tromey@adacore.com>
4758
4759 * tracepoint.c (write_inferior_data_pointer)
4760 (write_inferior_integer, write_inferior_int8)
4761 (write_inferior_uinteger, m_tracepoint_action_download)
4762 (r_tracepoint_action_download, x_tracepoint_action_download)
4763 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4764 (download_agent_expr, download_tracepoint_1)
4765 (download_trace_state_variables, upload_fast_traceframes): Update.
4766 * server.c (gdb_write_memory): Update.
4767 * remote-utils.c (relocate_instruction): Update.
4768 * proc-service.c (ps_pdwrite): Update.
4769 * mem-break.c (remove_memory_breakpoint)
4770 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4771 (uninsert_fast_tracepoint_jumps_at)
4772 (reinsert_fast_tracepoint_jumps_at): Update.
4773 * linux-x86-low.c (append_insns)
4774 (i386_install_fast_tracepoint_jump_pad)
4775 (amd64_write_goto_address, i386_write_goto_address): Update.
4776 * linux-s390-low.c (append_insns, s390_write_goto_address):
4777 Update.
4778 * linux-ppc-low.c (ppc_relocate_instruction)
4779 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4780 (ppc_write_goto_address): Update.
4781 * linux-aarch64-low.c (append_insns): Update.
4782 * target.h (struct target_ops): Update.
4783 (write_inferior_memory): Don't declare.
4784 * target.c (target_write_memory): Rename from
4785 write_inferior_memory. Remove old target_write_memory.
4786
c6778d00
TT
47872019-08-15 Tom Tromey <tromey@adacore.com>
4788
4789 * target.c (write_inferior_memory): Use std::vector.
4790
404f2902
FCE
47912019-08-06 Frank Ch. Eigler <fche@redhat.com>
4792
4793 PR build/24886
4794 * configure.ac: Drop enable-libmcheck support.
4795 * configure, config.in: Rebuild.
4796 * acinclude.m4: Don't include it.
4797
4c5aa8e0
AH
47982019-07-19 Alan Hayward <alan.hayward@arm.com>
4799
4800 * configure.srv: Remove Arm xml files.
4801
7cc17433
AH
48022019-07-19 Alan Hayward <alan.hayward@arm.com>
4803
4804 * configure.srv: Add new files. Remove xml generated files.
4805 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4806 registers.
4807 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4808 * linux-aarch32-tdesc.c: New file.
4809 * linux-aarch32-tdesc.h: New file.
4810 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4811 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4812 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4813 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4814 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4815 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4816 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4817 (arm_read_description): Call arm_linux_read_description.
4818 (initialize_low_arch): Don't init registers.
4819 * linux-arm-tdesc.c: New file.
4820 * linux-arm-tdesc.h: New file.
4821
166a82be
AH
48222019-07-10 Alan Hayward <alan.hayward@arm.com>
4823
4824 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4825 Move counter inside for.
4826 (arm_read_description): Check ptrace earlier.
4827 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4828
268a13a5
TT
48292019-07-09 Tom Tromey <tom@tromey.com>
4830
4831 * configure: Rebuild.
4832 * configure.ac: Change common to gdbsupport.
4833 * acinclude.m4: Change common to gdbsupport.
4834 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4835 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4836 common to gdbsupport.
4837 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4838 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4839 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4840 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4841 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4842 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4843 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4844 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4845 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4846 common to gdbsupport.
4847
350fab54
AH
48482019-07-04 Alan Hayward <alan.hayward@arm.com>
4849
4850 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4851 defines.
4852 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4853
2b40fda7
AH
48542019-07-04 Alan Hayward <alan.hayward@arm.com>
4855
4856 * configure.srv: Remove legacy xml.
4857 * linux-aarch64-low.c (initialize_low_arch): Remove
4858 initialize_low_tdesc call.
4859 * linux-aarch64-tdesc-selftest.c: Remove file.
4860 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4861 * linux-x86-low.c (initialize_low_arch): Remove
4862 initialize_low_tdesc call.
4863 * linux-x86-tdesc-selftest.c: Remove file.
4864 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4865
7d10623d
TV
48662019-06-20 Tom de Vries <tdevries@suse.de>
4867
4868 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4869 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4870
8d6a48df
TV
48712019-06-19 Tom de Vries <tdevries@suse.de>
4872
4873 * debug.h (debug_write): Change return type to ssize_t.
4874 * debug.c (debug_write): Same.
4875
73cc7272
TT
48762019-06-14 Tom Tromey <tom@tromey.com>
4877
4878 * configure.ac: Use new path to gnulib.
4879 * configure: Rebuild.
4880 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4881 to gnulib.
4882
08f10e02
TT
48832019-06-11 Tom Tromey <tom@tromey.com>
4884
4885 * Makefile.in (SFILES): Add alloc.c.
4886 (OBS): Add alloc.o.
4887 (IPA_OBJS): Add alloc-ipa.o.
4888 (alloc-ipa.o): New target.
4889 (%.o: ../%.c): New pattern rule.
4890
422186a9
TT
48912019-06-10 Tom Tromey <tromey@adacore.com>
4892
4893 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4894 end warning with a newline.
4895 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4896 newline.
4897 * thread-db.c (attach_thread): Don't end warning with a newline.
4898 (thread_db_notice_clone): Likewise.
4899 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4900 newline.
4901 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4902 end warning with a newline.
4903
b02f78f9
PA
49042019-06-04 Pedro Alves <palves@redhat.com>
4905
4906 * server.c (captured_main): Use make_unique_xstrdup.
4907
88ed7edb
TT
49082019-06-02 Tom Tromey <tom@tromey.com>
4909
4910 * gdbreplay.c (fromhex): Remove.
4911 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4912
33a6bc35
TT
49132019-05-29 Tom Tromey <tromey@adacore.com>
4914
4915 * configure: Rebuild.
4916
e90a813d
KB
49172019-05-06 Kevin Buettner <kevinb@redhat.com>
4918
4919 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4920 sign extension code on 32-bit builds.
4921
353ea2d1
EZ
49222019-05-03 Eli Zaretskii <eliz@gnu.org>
4923
4924 * remote-utils.c:
4925 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4926
b494cdff
TT
49272019-04-19 Tom Tromey <tom@tromey.com>
4928
4929 * server.c (struct vstop_notif): Derive from notif_event.
4930 <base>: Remove.
4931 (queue_stop_reply): Update.
4932 (remove_all_on_match_ptid): Change type. Rewrite.
4933 (discard_queued_stop_replies): Rewrite.
4934 (in_queued_stop_replies_ptid): Change type.
4935 (in_queued_stop_replies): Rewrite.
4936 (notif_stop): Update.
4937 (queue_stop_reply_callback): Update.
4938 (captured_main): Don't call initialize_notif.
4939 (push_stop_notification): Update.
4940 * notif.c (notif_write_event, handle_notif_ack)
4941 (notif_event_enque, notif_push): Update.
4942 (notif_event_xfree, initialize_notif): Remove.
4943 * notif.h (struct notif_event): Include <list>, not
4944 "common/queue.h".
4945 (struct notif_server) <queue>: Now a std::list.
4946 (notif_event_p): Remove typedef.
4947 (initialize_notif): Don't declare.
4948 (struct notif_event): Add virtual destructor.
4949
a7e559cc
AH
49502019-04-17 Alan Hayward <alan.hayward@arm.com>
4951
4952 * ax.c (ax_vdebug): Call debug_printf.
4953 * debug.c (debug_write): New function.
4954 * debug.h (debug_write): New declaration.
4955 * linux-low.c (sigchld_handler): Call debug_write.
4956
aeb2e706
AH
49572019-04-17 Alan Hayward <alan.hayward@arm.com>
4958
4959 * debug.c (debug_set_output): New function.
4960 (debug_vprintf): Send output to debug_file.
4961 (debug_flush): Likewise.
4962 * debug.h (debug_set_output): New declaration.
4963 * server.c (handle_monitor_command): Add debug-file option.
4964 (captured_main): Likewise.
4965
c1bc0935
AH
49662019-04-17 Alan Hayward <alan.hayward@arm.com>
4967
4968 * debug.c (remote_debug): Add definition.
4969 * debug.h (remote_debug): Add declaration.
4970 * hostio.c (remote_debug): Remove declaration.
4971 * remote-utils.c (struct ui_file): Likewise.
4972 (remote_debug): Likewise.
4973 * remote-utils.h (remote_debug): Likewise,
4974 * server.c (remote_debug): Remove definition.
4975
3f52fdbc
KB
49762019-04-10 Kevin Buettner <kevinb@redhat.com>
4977
4978 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4979 when using a 64-bit gdbserver.
4980
b0319eaa
TT
49812019-04-09 Tom Tromey <tromey@adacore.com>
4982
4983 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4984
eedc3f4f
TT
49852019-04-08 Tom Tromey <tom@tromey.com>
4986
4987 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4988 throw.
4989 (linux_resume_one_lwp): Likewise.
4990
230d2906
TT
49912019-04-08 Tom Tromey <tom@tromey.com>
4992
4993 * gdbreplay.c: Update.
4994 * linux-low.c: Update.
4995 * server.c: Update.
4996
a70b8144
TT
49972019-04-08 Tom Tromey <tom@tromey.com>
4998
4999 * server.c: Use C++ exception handling.
5000 * linux-low.c: Use C++ exception handling.
5001 * gdbreplay.c: Use C++ exception handling.
5002
3d6e9d23
TT
50032019-04-08 Tom Tromey <tom@tromey.com>
5004
5005 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5006 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5007 (captured_main, main): Update.
5008 * gdbreplay.c (main): Update.
5009
0570503d
PFC
50102019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5011
5012 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5013 value in argument pointer, return 1 if the entry is found and 0
5014 otherwise. Move comment.
5015 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5016 * linux-low.h (linux_get_auxv): Declare.
5017 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5018
227a9e65
TT
50192019-04-05 Tom Tromey <tromey@adacore.com>
5020
5021 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5022 variables.
5023
69f4c9cc
AH
50242019-03-28 Alan Hayward <alan.hayward@arm.com>
5025
5026 * linux-low.c (AT_HWCAP2): Add define if not already included.
5027
974c89e0
AH
50282019-03-26 Alan Hayward <alan.hayward@arm.com>
5029
5030 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5031 (aarch64_arch_setup): Call linux_get_hwcap.
5032 * linux-arm-low.c (arm_get_hwcap): Remove function.
5033 (arm_read_description): Call linux_get_hwcap.
5034 * linux-low.c (linux_get_auxv): New function.
5035 (linux_get_hwcap): Likewise.
5036 (linux_get_hwcap2): Likewise.
5037 * linux-low.h (linux_get_hwcap): New declaration.
5038 (linux_get_hwcap2): Likewise.
5039 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5040 (ppc_arch_setup): Call linux_get_hwcap.
5041 * linux-s390-low.c (s390_get_hwcap): Remove function.
5042 (s390_arch_setup): Call linux_get_hwcap.
5043
1ef53e6b
AH
50442019-03-22 Alan Hayward <alan.hayward@arm.com>
5045 Jiong Wang <jiong.wang@arm.com>
5046
5047 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5048 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5049 to fail.
5050 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5051
ee4fbcfa
AH
50522019-03-22 Alan Hayward <alan.hayward@arm.com>
5053 Jiong Wang <jiong.wang@arm.com>
5054
5055 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5056 (aarch64_get_hwcap): New function.
5057 (aarch64_arch_setup): Read APIA hwcap.
5058
6dc0ebde
AH
50592019-03-22 Alan Hayward <alan.hayward@arm.com>
5060 Jiong Wang <jiong.wang@arm.com>
5061
5062 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5063 (initialize_low_tracepoint): Likewise.
5064 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5065 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5066 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5067 (aarch64_linux_read_description): Likewise.
5068 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5069
1163a4b7
JB
50702019-03-12 John Baldwin <jhb@FreeBSD.org>
5071
5072 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5073 i386_create_target_description for 'segments' parameter.
5074 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5075 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5076 * win32-i386-low.c (i386_arch_setup): Likewise.
5077
d3a70e03
TT
50782019-03-12 Tom Tromey <tromey@adacore.com>
5079
5080 * linux-low.c (iterate_over_lwps): Update.
5081
37991b4f
TT
50822019-03-06 Tom Tromey <tom@tromey.com>
5083
5084 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5085 (captured_main): Use SCOPE_EXIT.
5086
45950eb6
SDJ
50872019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5088
5089 * configure.srv: Use '$enable_unittest' instead of '$development'
5090 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5091 case.
5092
43ac54fc
TT
50932019-02-27 Tom Tromey <tromey@adacore.com>
5094
5095 * gdbreplay.c (logchar): Handle \r\n.
5096
df0da8a2
AH
50972019-02-07 Alan Hayward <alan.hayward@arm.com>
5098
5099 * linux-low.c (linux_attach): Add process before lwp.
5100 * server.c (attach_inferior): Check if already attached.
5101
1a5c2598
TT
51022019-02-07 Tom Tromey <tom@tromey.com>
5103
5104 * x86-tdesc.h: Rename include guard.
5105 * x86-low.h: Add include guard.
5106 * wincecompat.h: Rename include guard.
5107 * win32-low.h: Add include guard.
5108 * utils.h: Rename include guard.
5109 * tracepoint.h: Rename include guard.
5110 * tdesc.h: Rename include guard.
5111 * target.h: Rename include guard.
5112 * server.h: Rename include guard.
5113 * remote-utils.h: Rename include guard.
5114 * regcache.h: Rename include guard.
5115 * nto-low.h: Rename include guard.
5116 * notif.h: Add include guard.
5117 * mem-break.h: Rename include guard.
5118 * lynx-low.h: Add include guard.
5119 * linux-x86-tdesc.h: Add include guard.
5120 * linux-s390-tdesc.h: Add include guard.
5121 * linux-ppc-tdesc-init.h: Add include guard.
5122 * linux-low.h: Add include guard.
5123 * linux-aarch64-tdesc.h: Add include guard.
5124 * linux-aarch32-low.h: Add include guard.
5125 * inferiors.h: Rename include guard.
5126 * i387-fp.h: Rename include guard.
5127 * hostio.h: Rename include guard.
5128 * gdbthread.h: Rename include guard.
5129 * gdb_proc_service.h: Rename include guard.
5130 * event-loop.h: Rename include guard.
5131 * dll.h: Rename include guard.
5132 * debug.h: Rename include guard.
5133 * ax.h: Rename include guard.
5134
956cc47c
SN
51352018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5136
5137 PR gdb/23985
5138 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5139 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5140
a0707f3c
TT
51412019-01-25 Tom Tromey <tom@tromey.com>
5142
5143 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5144
0747795c
TT
51452019-01-25 Tom Tromey <tom@tromey.com>
5146
5147 * win32-low.c: Fix common/ includes.
5148 * win32-i386-low.c: Fix common/ includes.
5149 * tracepoint.c: Fix common/ includes.
5150 * thread-db.c: Fix common/ includes.
5151 * target.h: Fix common/ includes.
5152 * symbol.c: Fix common/ includes.
5153 * spu-low.c: Fix common/ includes.
5154 * server.h: Fix common/ includes.
5155 * server.c: Fix common/ includes.
5156 * remote-utils.c: Fix common/ includes.
5157 * regcache.h: Fix common/ includes.
5158 * regcache.c: Fix common/ includes.
5159 * nto-x86-low.c: Fix common/ includes.
5160 * notif.h: Fix common/ includes.
5161 * mem-break.h: Fix common/ includes.
5162 * lynx-low.c: Fix common/ includes.
5163 * lynx-i386-low.c: Fix common/ includes.
5164 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5165 * linux-x86-low.c: Fix common/ includes.
5166 * linux-low.c: Fix common/ includes.
5167 * inferiors.h: Fix common/ includes.
5168 * i387-fp.c: Fix common/ includes.
5169 * hostio.c: Fix common/ includes.
5170 * hostio-errno.c: Fix common/ includes.
5171 * gdbthread.h: Fix common/ includes.
5172 * gdbreplay.c: Fix common/ includes.
5173 * fork-child.c: Fix common/ includes.
5174 * event-loop.c: Fix common/ includes.
5175 * ax.c:
5176 (enum gdb_agent_op): Fix common/ includes.
5177
be6d4f74
TT
51782019-01-21 Tom Tromey <tom@tromey.com>
5179
5180 * tracepoint.c: Fix includes.
5181 * remote-utils.c: Fix includes.
5182 * linux-x86-low.c: Fix includes.
5183
66d91b39
JB
51842019-01-01 Joel Brobecker <brobecker@adacore.com>
5185
5186 * gdbreplay.c (gdbreplay_version): Update copyright year in
5187 version message.
5188 * server.c (gdbserver_version): Likewise.
5189
754e3168
AH
51902018-12-05 Alan Hayward <alan.hayward@arm.com>
5191
5192 * linux-low.c (add_lwp): Switch ordering.
5193
d105de22
TT
51942018-11-29 Tom Tromey <tom@tromey.com>
5195
5196 * win32-low.c (win32_join): Take pid, not process.
5197 * target.h (struct target_ops) <join>: Change argument type.
5198 (join_inferior): Change argument name.
5199 * spu-low.c (spu_join): Take pid, not process.
5200 * server.c (handle_detach): Preserve pid before destroying
5201 process.
5202 * lynx-low.c (lynx_join): Take pid, not process.
5203 * linux-low.c (linux_join): Take pid, not process.
5204
50138245
AH
52052018-11-23 Alan Hayward <alan.hayward@arm.com>
5206
5207 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5208 (aarch64_cannot_fetch_register): Likewise.
5209 (struct linux_target_ops): Update references.
5210
64f57f3d
PFC
52112018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5212
5213 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5214
8d619c01
EBM
52152018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5216
5217 * configure.srv (ipa_ppc_linux_regobj): Add
5218 powerpc-isa207-htm-vsx32l-ipa.o and
5219 powerpc-isa207-htm-vsx64l-ipa.o.
5220 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5221 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5222 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5223 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5224 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5225 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5226 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5227 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5228 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5229 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5230 (init_registers_powerpc_isa207_htm_vsx32l)
5231 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5232 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5233 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5234 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5235 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5236 (ppc_store_tm_ctarregset): New functions.
5237 (ppc_regsets): Add entries for HTM regsets.
5238 (ppc_arch_setup): Set htm in features struct when needed. Set
5239 sizes for the HTM regsets.
5240 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5241 (initialize_low_arch): Call
5242 init_registers_powerpc_isa207_htm_vsx32l and
5243 init_registers_powerpc_isa207_htm_vsx64l.
5244 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5245 PPC_TDESC_ISA207_HTM_VSX.
5246 (initialize_low_tracepoint): Call
5247 init_registers_powerpc_isa207_htm_vsx32l and
5248 init_registers_powerpc_isa207_htm_vsx64l.
5249
232bfb86
EBM
52502018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5251
5252 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5253 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5254 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5255 (ppc_store_pmuregset): New functions.
5256 (ppc_regsets): Add entries for ebb and pmu regsets.
5257 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5258 pmu regsets are available. Set sizes for these regsets.
5259
f2cf6173
EBM
52602018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5261
5262 * configure.srv (ipa_ppc_linux_regobj): Add
5263 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5264 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5265 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5266 rs6000/powerpc-isa207-vsx32l.xml, and
5267 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5268 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5269 <PPC_TDESC_ISA207_VSX>: New enum value.
5270 (init_registers_powerpc_isa207_vsx32l): Declare.
5271 (init_registers_powerpc_isa207_vsx64l): Declare.
5272 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5273 (ppc_store_tarregset): New function.
5274 (ppc_regsets): Add entry for the TAR regset.
5275 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5276 size for the TAR regsets.
5277 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5278 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5279 and init_registers_powerpc_isa207_vsx64l.
5280 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5281 (initialize_low_tracepoint): Call
5282 init_registers_powerpc_isa207_vsx32l and
5283 init_registers_powerpc_isa207_vsx64l.
5284
7ca18ed6
EBM
52852018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5286 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5287
5288 * configure.srv (ipa_ppc_linux_regobj): Add
5289 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5290 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5291 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5292 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5293 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5294 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5295 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5296 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5297 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5298 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5299 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5300 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5301 (ppc_hwcap): Add comment.
5302 (ppc_hwcap2): New global.
5303 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5304 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5305 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5306 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5307 when needed. Set sizes for the the DSCR and PPR regsets.
5308 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5309 (initialize_low_arch): Call
5310 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5311 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5312 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5313 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5314 (initialize_low_tracepoint): Call
5315 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5316 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5317
5c849b22
PFC
53182018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5319
5320 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5321
8ecfd7bd
SDJ
53222018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5323 Simon Marchi <simark@simark.ca>
5324
5325 * acinclude.m4: Include "../selftest.m4".
5326 * configure: Regenerate.
5327 * configure.ac: Use "GDB_AC_SELFTEST".
5328 * configure.srv: Use "$enable_unittests" instead of
5329 "$development" when checking whether unit tests have been
5330 enabled.
5331 * server.c (captured_main): Update message informing that
5332 selftests have been disabled.
5333
96643e35
TT
53342018-10-04 Tom Tromey <tom@tromey.com>
5335
5336 * configure: Rebuild.
5337
da4ae14a
TT
53382018-10-04 Tom Tromey <tom@tromey.com>
5339
5340 * server.c (handle_status): Rename inner "thread".
5341 (process_serial_event): Declare "res" in 'm' case.
5342 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5343 (iterate_over_lwps): Rename inner "thread".
5344 (linux_qxfer_libraries_svr4): Rename inner "len".
5345 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5346
7c619dbd
GB
53472018-10-01 Gary Benson <gbenson@redhat.com>
5348
5349 * gdb_proc_service.h: Moved common code to
5350 common/gdb_proc_service.h.
5351
3795e814
GB
53522018-10-01 Gary Benson <gbenson@redhat.com>
5353
5354 * gdb_proc_service.h: Synchronize comments and whitespace with
5355 GDB's version of this file.
5356
49b036f1
TT
53572018-09-25 Tom Tromey <tom@tromey.com>
5358
5359 * configure: Rebuild.
5360 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5361
8ff03f0b
SM
53622018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5363
5364 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5365 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5366 ($(IPA_LIB)): Sort IPA_OBJS.
5367
a1cd91dc
SM
53682018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5369
5370 * Makefile.in: Remove references to $(ADD_DEPS).
5371
752312ba
TT
53722018-09-16 Tom Tromey <tom@tromey.com>
5373
5374 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5375 variables.
5376 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5377 variables.
5378
f1628857
TT
53792018-09-05 Tom Tromey <tom@tromey.com>
5380
5381 * configure: Rebuild.
5382
ad202fcc
SM
53832018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5384
5385 PR build/23399
5386 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5387
d3d8724a
TT
53882018-08-27 Tom Tromey <tom@tromey.com>
5389
5390 PR build/23087:
5391 * configure: Rebuild.
5392
b4f183d2
TT
53932018-08-27 Tom Tromey <tom@tromey.com>
5394
5395 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5396 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5397 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5398 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5399 (s390x_emit_stack_adjust): Add casts to unsigned char.
5400
4e2aa472
SM
54012018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5402
5403 PR gdb/23374
5404 PR gdb/23375
5405 * server.h (struct client_state) <disable_randomization>:
5406 Initialize to 1.
5407
cf4088a9
SM
54082018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5409
5410 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5411 variable.
5412 (mips_supply_ptrace_register): Likewise.
5413
a0de763e
TT
54142018-07-22 Tom Tromey <tom@tromey.com>
5415
5416 * configure: Rebuild.
5417
b0a7723d
TT
54182018-07-22 Tom Tromey <tom@tromey.com>
5419
5420 * win32-low.c (win32_create_inferior): Remove unused variables.
5421 * gdbreplay.c (remote_open): Remove unused variable.
5422 * remote-utils.c (remote_prepare): Remove unused variable.
5423 * x86-tdesc.h (X86_TDESC_H): Define.
5424 (amd64_expedite_regs): Define conditionally.
5425 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5426 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5427 * remote-utils.c (readchar): Remove unused variable.
5428
a780ef4f
PA
54292018-07-13 Pedro Alves <palves@redhat.com>
5430
5431 * linux-low.c (linux_kill): Change parameter to process_info
5432 pointer instead of pid. Adjust.
5433 * lynx-low.c (lynx_kill): Likewise.
5434 * nto-low.c (nto_kill): Likewise.
5435 * spu-low.c (spu_kill): Likewise.
5436 * win32-low.c (win32_kill): Likewise.
5437 * server.c (handle_v_kill, kill_inferior_callback)
5438 (detach_or_kill_for_exit): Adjust.
5439 * target.c (kill_inferior): Change parameter to process_info
5440 pointer instead of pid. Adjust.
5441 * target.h (struct target_ops) <kill>: Change parameter to
5442 process_info pointer instead of pid. Adjust all implementations
5443 and callers.
5444 (kill_inferior): Likewise.
5445
ef2ddb33
PA
54462018-07-13 Pedro Alves <palves@redhat.com>
5447
5448 * linux-low.c (linux_detach, linux_join): Change parameter to
5449 process_info pointer instead of pid. Adjust.
5450 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5451 * nto-low.c (nto_detach): Likewise.
5452 * spu-low.c (spu_detach, spu_join): Likewise.
5453 * win32-low.c (win32_detach, win32_join): Likewise.
5454 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5455 * target.h (struct target_ops) <detach, join>: Change parameter to
5456 process_info pointer instead of pid. Adjust all implementations
5457 and callers.
5458 (detach_inferior, join_inferior): Rename 'pid' parameter to
5459 'proc'.
5460
c7ab0aef
SDJ
54612018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5462 Jan Kratochvil <jan.kratochvil@redhat.com>
5463 Paul Fertser <fercerpav@gmail.com>
5464 Tsutomu Seki <sekiriki@gmail.com>
5465
5466 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5467 (OBS): Add 'common/netstuff.o'.
5468 (GDBREPLAY_OBS): Likewise.
5469 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5470 (remote_open): Implement support for IPv6
5471 connections.
5472 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5473 and 'wspiapi.h'.
5474 (handle_accept_event): Accept connections from IPv6 sources.
5475 (remote_prepare): Handle IPv6-style hostnames; implement
5476 support for IPv6 connections.
5477 (remote_open): Implement support for printing connections from
5478 IPv6 sources.
5479
31445d10
PA
54802018-07-11 Pedro Alves <palves@redhat.com>
5481
5482 PR gdb/23377
5483 * mem-break.c (any_persistent_commands): Add process_info
5484 parameter and use it instead of relying on the current process.
5485 Change return type to bool.
5486 * mem-break.h (any_persistent_commands): Add process_info
5487 parameter and change return type to bool.
5488 * server.c (handle_detach): Remove require_running_or_return call.
5489 Look up the process_info for the process we're about to detach.
5490 If not found, return back error to GDB. Adjust
5491 any_persistent_commands call to pass down a process pointer.
5492
cb197132
PA
54932018-07-11 Pedro Alves <palves@redhat.com>
5494
5495 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5496 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5497 instead of collect_register_by_name.
5498 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5499 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5500
1b919490
VB
55012018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5502 Pedro Alves <palves@redhat.com>
5503
5504 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5505
d7e15655
TT
55062018-07-03 Tom Tromey <tom@tromey.com>
5507
5508 * linux-low.c: Update.
5509 * lynx-low.c: Update.
5510 * mem-break.c: Update.
5511 * nto-low.c: Update.
5512 * remote-utils.c: Update.
5513 * server.c: Update.
5514 * spu-low.c: Update.
5515 * target.c: Update.
5516 * win32-low.c: Update.
5517
26a57c92
TT
55182018-07-03 Tom Tromey <tom@tromey.com>
5519
5520 * server.c: Update.
5521
0e998d96
TT
55222018-07-03 Tom Tromey <tom@tromey.com>
5523
5524 * linux-low.c: Update.
5525
cc6bcb54
TT
55262018-07-03 Tom Tromey <tom@tromey.com>
5527
5528 * target.c: Update.
5529
e38504b3
TT
55302018-07-03 Tom Tromey <tom@tromey.com>
5531
5532 * linux-low.c: Update.
5533 * linux-mips-low.c: Update.
5534 * lynx-low.c: Update.
5535 * nto-low.c: Update.
5536 * remote-utils.c: Update.
5537 * server.c: Update.
5538 * spu-low.c: Update.
5539 * target.c: Update.
5540 * thread-db.c: Update.
5541
e99b03dc
TT
55422018-07-03 Tom Tromey <tom@tromey.com>
5543
5544 * linux-low.c: Update.
5545 * linux-mips-low.c: Update.
5546 * lynx-low.c: Update.
5547 * mem-break.c: Update.
5548 * nto-low.c: Update.
5549 * remote-utils.c: Update.
5550 * server.c: Update.
5551 * spu-low.c: Update.
5552 * target.c: Update.
5553 * tracepoint.c: Update.
5554
f2907e49
TT
55552018-07-03 Tom Tromey <tom@tromey.com>
5556
5557 * linux-low.c: Update.
5558 * linux-ppc-low.c: Update.
5559 * linux-x86-low.c: Update.
5560 * proc-service.c: Update.
5561 * server.c: Update.
5562 * spu-low.c: Update.
5563 * thread-db.c: Update.
5564 * win32-low.c: Update.
5565
fd79271b
TT
55662018-07-03 Tom Tromey <tom@tromey.com>
5567
5568 * linux-low.c: Update.
5569 * lynx-low.c: Update.
5570 * nto-low.c: Update.
5571 * remote-utils.c: Update.
5572 * spu-low.c: Update.
5573 * thread-db.c: Update.
5574 * win32-low.c: Update.
5575
c0867626
SDJ
55762018-06-29 Joel Brobecker <brobecker@adacore.com>
5577
5578 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5579 parameter in call to 'amd64_create_target_description'.
5580
2512d7ef
JK
55812018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5582
5583 * x86-tdesc.h: Remove executable permission flag.
5584
d0ac1c44
SM
55852018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5586
5587 * configure.ac: Remove AC_PREREQ, add missing quoting.
5588 * configure: Re-generate.
5589 * config.in: Re-generate.
5590 * aclocal.m4: Re-generate.
5591
c4eb05ff
SM
55922018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5593
5594 * tracepoint.h (current_traceframe): Remove declaration.
5595
02895270
AH
55962018-06-18 Alan Hayward <alan.hayward@arm.com>
5597
5598 * linux-aarch64-low.c (is_sve_tdesc): New function.
5599 (aarch64_sve_regs_copy_to_regcache): Likewise.
5600 (aarch64_sve_regs_copy_from_regcache): Likewise.
5601 (aarch64_regs_info): Add SVE checks.
5602 (initialize_low_arch): Initialize SVE.
5603
e9902bfc
AH
56042018-06-18 Alan Hayward <alan.hayward@arm.com>
5605
5606 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5607
fefa175e
AH
56082018-06-11 Alan Hayward <alan.hayward@arm.com>
5609
5610 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5611 (initialize_low_tracepoint): Likewise
5612 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5613 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5614 param.
5615 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5616 checks.
5617 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5618
b91ad3ff
AH
56192018-06-11 Alan Hayward <alan.hayward@arm.com>
5620
5621 * server.h (PBUFSIZ): Increase size
5622
f868386e
AH
56232018-06-11 Alan Hayward <alan.hayward@arm.com>
5624
5625 * regcache.c (regcache::raw_compare): New function.
5626 * regcache.h (regcache::raw_compare): New declaration.
5627
9c861883
AH
56282018-06-11 Alan Hayward <alan.hayward@arm.com>
5629
5630 * regcache.c (new_register_cache): Use new.
5631 (free_register_cache): Use delete.
5632 (register_data): Use const.
5633 (supply_register): Move body inside regcache.
5634 (regcache::raw_supply): New override function.
5635 (collect_register): Move body inside regcache.
5636 (regcache::raw_collect): New override function.
5637 (regcache::get_register_status): New override function.
5638 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5639
40591844
TT
56402018-06-09 Tom Tromey <tom@tromey.com>
5641
5642 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5643 declare queue.
5644 (event_queue): Use std::queue.
5645 (gdb_event_xfree): Remove.
5646 (initialize_event_loop, process_event, wait_for_event): Update.
5647
6341380d
SC
56482018-06-08 Stan Cox <scox@redhat.com>
5649
5650 * win32-low.c (win32_create_inferior): last_ptid and last_status
5651 moved to client_state.
5652
03349c93
PA
56532018-06-08 Pedro Alves <palves@redhat.com>
5654
5655 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5656 common/common-exceptions.o, common/common-utils.o,
5657 common/errors.o, common/print-utils.o and utils.o.
5658 * gdbreplay.c: Include "common-defs.h" instead of the two
5659 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5660 string.h or alloca.h.
5661 (perror_with_name): Delete.
5662 (remote_open): Use xstrdup instead of strdup.
5663 (main): Rename to ...
5664 (captured_main): ... this.
5665 (main): New.
5666
8dcc53b3
TT
56672018-06-08 Tom Tromey <tom@tromey.com>
5668
5669 * linux-low.c (linux_low_read_btrace): Update.
5670
c12a5089
SC
56712018-06-04 Stan Cox <scox@redhat.com>
5672
5673 * server.h (struct client_state): New.
5674 * server.c (cont_thread, general_thread, multi_process)
5675 (report_fork_events, report_vfork_events, report_exec_events)
5676 (report_thread_events, swbreak_feature, hwbreak_feature)
5677 (vCont_supported, disable_randomization, pass_signals)
5678 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5679 Moved to client_state.
5680 * remote-utils.c (remote_debug, noack_mode)
5681 (transport_is_reliable): Moved to client_state.
5682 * tracepoint.c (current_traceframe): Moved to client_state.
5683
5684 Update all callers.
5685 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5686 linux-low.c, remote-utils.h, target.c: Use client_state.
5687
122394f1
AH
56882018-05-31 Alan Hayward <alan.hayward@arm.com>
5689
5690 * configure.srv: Add new c/h file.
5691
95228a0d
AH
56922018-05-31 Alan Hayward <alan.hayward@arm.com>
5693
5694 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5695 null VQ.
5696
d8dab6c3
MR
56972018-05-25 Maciej W. Rozycki <macro@mips.com>
5698
5699 * gdb.arch/mips-fpregset-core.exp: New test.
5700 * gdb.arch/mips-fpregset-core.c: New test source.
5701
81e25b7c
EK
57022018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5703
5704 PR server/23198
5705 * hostio.c (require_int): Do not report overflow for integers
5706 between 0xfffffff and 0x7fffffff.
5707
7e947ad3
MR
57082018-05-22 Maciej W. Rozycki <macro@mips.com>
5709
5710 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5711 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5712 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5713 functions.
5714 (the_low_target): Wire them.
5715
1d75a658
PFC
57162018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5717
5718 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5719 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5720 mode. Call collect_register_by_name with vscr using
5721 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5722 (ppc_store_vrregset): Add and set vscr_offset variable as in
5723 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5724 vscr_offset.
5725
d078308a
PFC
57262018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5727
5728 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5729 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5730 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5731
7273b5fc
PFC
57322018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5733
5734 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5735 (ppc_store_vsxregset): Likewise.
5736 (ppc_fill_vrregset): Likewise.
5737 (ppc_store_vrregset): Likewise.
5738 (ppc_fill_evrregset): Likewise.
5739 (ppc_store_evrregset): Likewise.
5740 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5741 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5742 needed.
5743
2e077f5e
PFC
57442018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5745
5746 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5747 wordsize of the inferior. Call ppc_linux_target_wordsize.
5748
bd64614e
PFC
57492018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5750
5751 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5752 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5753 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5754 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5755 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5756 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5757 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5758 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5759 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5760 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5761 (tdesc_powerpc_e500l): Remove.
5762 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5763 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5764 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5765 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5766 linux-ppc-tdesc.h.
5767 (ppc_arch_setup): Remove target description matching code. Fill a
5768 ppc_linux_features struct and call ppc_linux_match_description
5769 with it.
5770
75d74cca
MR
57712018-05-22 Maciej W. Rozycki <macro@mips.com>
5772
5773 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5774 width of the requested register exceeds the width of the
5775 `ptrace' data type.
5776 (mips_cannot_store_register): Likewise.
5777
e4439e43
MR
57782018-05-21 Maciej W. Rozycki <macro@mips.com>
5779
5780 * linux-mips-low.c (mips_fetch_register): New function. Update
5781 preceding comment.
5782 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5783 (the_low_target): Wire `mips_fetch_register'.
5784
55271bf9
JB
57852018-05-10 Joel Brobecker <brobecker@adacore.com>
5786
5787 * lynx-i386-low.c (LYNXOS_178): New macro.
5788 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5789 the layout on LynxOS-178.
5790 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5791 handle floating point registers that are not supported by
5792 LynxOS-178.
5793
1a34f210
TT
57942018-05-10 Tom Tromey <tom@tromey.com>
5795
5796 * configure: Rebuild.
5797
190852c8
JB
57982018-05-10 Joel Brobecker <brobecker@adacore.com>
5799
5800 PR server/23158:
5801 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5802 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5803 Use it to set the expedite_regs field in the given tdesc.
5804 * x86-tdesc.h: New file.
5805 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5806 Adjust following the addition of the new expedite_regs parameter
5807 to init_target_desc.
5808 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5809 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5810 (i386_linux_read_description, amd64_linux_read_description):
5811 Adjust following the addition of the new expedite_regs parameter
5812 to init_target_desc.
5813 * lynx-i386-low.c: #include "x86-tdesc.h".
5814 (lynx_i386_arch_setup): Adjust following the addition of the new
5815 expedite_regs parameter to init_target_desc.
5816 * nto-x86-low.c: #include "x86-tdesc.h".
5817 (nto_x86_arch_setup): Adjust following the addition of the new
5818 expedite_regs parameter to init_target_desc.
5819 * win32-i386-low.c: #include "x86-tdesc.h".
5820 (i386_arch_setup): Adjust following the addition of the new
5821 expedite_regs parameter to init_target_desc.
5822
7dbac825
JB
58232018-05-10 Joel Brobecker <brobecker@adacore.com>
5824
5825 PR server/23158:
5826 * win32-low.c (win32_create_inferior): Add call to my_wait
5827 setting last_status global.
5828
906994d9
JB
58292018-05-10 Joel Brobecker <brobecker@adacore.com>
5830
5831 PR server/23158:
5832 * win32-low.c (create_process): Only call gdb_tilde_expand if
5833 inferior_cwd is not NULL.
5834
8ee22052
AB
58352018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5836
5837 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5838 registers to the cache if their values have changed.
5839 (i387_xsave_to_cache): Provide default values for x87 control
5840 registers when these features are available, but disabled.
5841 * regcache.c (supply_register_by_name_zeroed): New function.
5842 * regcache.h (supply_register_by_name_zeroed): Declare new
5843 function.
5844
aff689d3
TT
58452018-05-07 Tom Tromey <tom@tromey.com>
5846
5847 * configure: Rebuild.
5848
85e26832
TT
58492018-05-04 Tom Tromey <tom@tromey.com>
5850
5851 * configure: Rebuild.
5852
a3b60e45
JK
58532018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5854 Pedro Alves <palves@redhat.com>
5855
5856 * linux-aarch64-low.c (aarch64_stopped_data_address):
5857 Likewise.
5858
632e107b
TT
58592018-04-27 Tom Tromey <tom@tromey.com>
5860
5861 * configure: Rebuild.
5862
458412c3
TT
58632018-04-23 Tom Tromey <tom@tromey.com>
5864
5865 * configure: Rebuild.
5866
f31c089e
SM
58672018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5868
5869 * Makefile.in (depcomp): Add "..".
5870 (all_deps_files): New and use it.
5871
b319b098
AH
58722018-04-18 Alan Hayward <alan.hayward@arm.com>
5873
5874 * configure.srv (aarch64*-*-linux*): Don't include xml.
5875 (i[34567]86-*-cygwin*): Likewise.
5876 (i[34567]86-*-linux*): Likewise.
5877 (i[34567]86-*-lynxos*): Likewise.
5878 (i[34567]86-*-mingw32ce*): Likewise.
5879 (i[34567]86-*-mingw*): Likewise.
5880 (i[34567]86-*-nto*): Likewise.
5881 (tic6x-*-uclinux): Likewise.
5882 (x86_64-*-linux*): Likewise.
5883 (x86_64-*-mingw*): Likewise.
5884 (x86_64-*-cygwin*): Likewise.
5885
3b74854b
AH
58862018-04-18 Alan Hayward <alan.hayward@arm.com>
5887
5888 * tdesc.c: Remove xml parameter.
5889
e98577a9
AH
58902018-04-18 Alan Hayward <alan.hayward@arm.com>
5891
5892 * server.c (get_features_xml): Remove cast.
5893 * tdesc.c (void target_desc::accept): Fill in function.
5894 (tdesc_get_features_xml): Remove old xml creation.
5895 (print_xml_feature::visit_pre): Add xml vistor.
5896 * tdesc.h (struct target_desc): Make xmltarget mutable.
5897 (tdesc_get_features_xml): Remove declaration.
5898
d278f585
AH
58992018-04-18 Alan Hayward <alan.hayward@arm.com>
5900
5901 * tdesc.c (tdesc_architecture_name): Add new function.
5902 (tdesc_osabi_name): Likewise.
5903 (tdesc_get_features_xml): Use new functions.
5904
eee8a18d
AH
59052018-04-18 Alan Hayward <alan.hayward@arm.com>
5906
5907 * tdesc.c (tdesc_create_flags): Remove.
5908 (tdesc_add_flag): Likewise.
5909 (tdesc_named_type): Likewise.
5910 (tdesc_create_union): Likewise.
5911 (tdesc_create_struct): Likewise.
5912 (tdesc_create_vector): Likewise.
5913 (tdesc_add_bitfield): Likewise.
5914 (tdesc_add_field): Likewise.
5915 (tdesc_set_struct_size): Likewise.
5916
82ec9bc7
AH
59172018-04-18 Alan Hayward <alan.hayward@arm.com>
5918
5919 * tdesc.c (~target_desc): Remove implictly deleted items.
5920 (init_target_desc): Iterate all features.
5921 (tdesc_get_features_xml): Use vector.
5922 (tdesc_create_feature): Create feature.
5923 * tdesc.h (tdesc_feature) Remove
5924 (target_desc): Add features.
5925
ea3e7d71
AH
59262018-04-18 Alan Hayward <alan.hayward@arm.com>
5927
5928 * Makefile.in: Add common/tdesc.c
5929 * tdesc.c (init_target_desc): init all reg_defs from register
5930 vector.
5931 (tdesc_create_reg): Create tdesc_reg.
5932 * tdesc.h (tdesc_feature): Add register vector.
5933
17d08cd4
SM
59342018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5935
5936 * tdesc.h (struct target_desc) <features>: Change type to
5937 std::vector<std::string>.
5938 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5939 changes.
5940 (tdesc_get_features_xml): Likewise.
5941 (tdesc_create_feature): Likewise.
5942
5cd3e386
AH
59432018-03-26 Alan Hayward <alan.hayward@arm.com>
5944
5945 * regcache.c (find_register_by_number): Return a ref.
5946 (find_regno): Use references.
5947 (register_size): Likewise.
5948 (register_data): Likewise.
5949 * tdesc.c (target_desc::~target_desc): Remove free calls.
5950 (target_desc::operator==): Use std::vector compare.
5951 (init_target_desc): Use reference.
5952 (tdesc_create_reg): Use reg constructors.
5953 * tdesc.h (struct target_desc): Replace pointer with object.
5954
dff7492c
AH
59552018-03-23 Alan Hayward <alan.hayward@arm.com>
5956
5957 * regcache.c (find_register_by_number): Make static.
5958 (find_regno): Use find_register_by_number
5959 * regcache.h (struct reg): Remove declaration.
5960
d80e5242
AH
59612018-03-23 Alan Hayward <alan.hayward@arm.com>
5962
5963 * tdesc.c (target_desc::~target_desc): Move to here.
5964 (target_desc::operator==): Likewise.
5965 * tdesc.h (target_desc::~target_desc): Move from here.
5966 (target_desc::operator==): Likewise.
5967
f69c5afb
AA
59682018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5969
5970 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5971
ce29f843
AA
59722018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5973
5974 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5975 S390_TDESC_GS.
5976 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5977 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5978 and init_registers_s390_gs_linux64.
5979
c49bd90b
AA
59802018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5981
5982 * linux-s390-low.c (s390_fill_gs): Remove function.
5983 (s390_fill_gsbc): Remove function.
5984 (s390_regsets): Set fill functions for the guarded storage regsets
5985 to NULL.
5986
7edb9bd3
AA
59872018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5988
5989 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5990 the word size. Add comment.
5991 (s390_get_wordsize): New function.
5992 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5993 pswm with it. Instead, use s390_get_wordsize to determine the
5994 word size first and derive the correct tdesc from that directly.
5995
39be3c7e
SM
59962018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5997
5998 * Makefile.in: Include silent-rules.mk.
5999 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6000 (COMPILE): Add ECHO_CXX.
6001 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6002 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6003 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6004 (version-generated.c): Add ECHO_GEN.
6005 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6006 (IPAGENT_COMPILE): Add ECHO_CXX.
6007 (%-generated.c): Add ECHO_REGDAT.
6008
3ae9ce5d
TT
60092018-03-14 Tom Tromey <tom@tromey.com>
6010
6011 PR cli/14977:
6012 * ax.c (ax_printf): Special case for NULL.
6013
e6a58aa8
SM
60142018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6015
6016 * linux-low.c (linux_qxfer_libraries_svr4): Use
6017 xml_escape_text_append.
6018
f6e8a41e
SM
60192018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6020
6021 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6022
b9671caf
SM
60232018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6024
6025 * server.c (handle_general_set): Remove unnecessary xstrdup.
6026
e80aaf61
SM
60272018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6028
6029 * server.c (parse_debug_format_options): Adjust to
6030 delim_string_to_char_ptr_vec changes.
6031 * thread-db.c (thread_db_load_search): Adjust to
6032 dirnames_to_char_ptr_vec changes.
6033
b1223e78
MM
60342018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6035
6036 * target.h (target_enable_btrace, target_disable_btrace)
6037 (target_read_btrace, target_read_btrace_conf): Turn macro into
6038 inline function. Throw error if target method is not defined.
6039 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6040 check for btrace target method. Be prepared to handle exceptions
6041 from btrace target methods.
6042
81561546
SDJ
60432018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6044
6045 * server.c (captured_main): Change order of error message printed
6046 when the current working directory cannot be found.
6047
25e3c82c
SDJ
60482018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6049
6050 * server.c: Include "filenames.h" and "pathstuff.h".
6051 (program_name): Delete variable.
6052 (program_path): New anonymous class.
6053 (get_exec_wrapper): Use "program_path" instead of
6054 "program_name".
6055 (handle_v_run): Likewise.
6056 (captured_main): Likewise.
6057 (process_serial_event): Likewise.
6058
b4987c95
SDJ
60592018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6060
6061 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6062 (OBJS): Add "pathstuff.o".
6063 * server.c (current_directory): New global variable.
6064 (captured_main): Initialize "current_directory".
6065
f46cd62a
AH
60662018-02-26 Alan Hayward <alan.hayward@arm.com>
6067
6068 * tdesc.c: Use common/tdesc.h.
6069 * tdesc.h: Likewise.
6070
a543c5ca
AH
60712018-02-20 Alan Hayward <alan.hayward@arm.com>
6072 Simon Marchi <simon.marchi@ericsson.com>
6073
6074 * Makefile.in: Switch order of make rules.
6075
b5884fa7
AH
60762018-02-19 Alan Hayward <alan.hayward@arm.com>
6077
6078 * Makefile.in: Add common directory in build.
6079 * configure.ac: Add common reference.
6080 * configure: Regenerate.
6081
de6242d3
MM
60822018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6083
6084 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6085 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6086 * spu-low.c (spu_target_ops): Likewise.
6087 * win32-low.c (win32_target_ops): Likewise.
6088 * server.c (supported_btrace_packets): Report packets unconditionally.
6089 * target.h (target_ops) <supports_btrace>: Remove.
6090 (target_supports_btrace): Remove.
6091
9ee23a85
MM
60922018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6093
6094 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6095 (handle_btrace_disable): Change return type to void. Use exceptions
6096 to report errors.
6097 (handle_btrace_general_set): Catch exception and copy message to
6098 return message.
6099
8ce47547
TT
61002018-02-08 Tom Tromey <tom@tromey.com>
6101
6102 * linux-low.c (install_software_single_step_breakpoints): Use
6103 make_scoped_restore.
6104 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6105 (do_restore_current_thread_cleanup): Remove.
6106 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6107 declare.
6108
45dd3607
TT
61092018-02-08 Tom Tromey <tom@tromey.com>
6110
6111 * mem-break.c (set_raw_breakpoint_at): Use
6112 gdb::unique_xmalloc_ptr.
6113
e671cd59
PA
61142018-01-30 Pedro Alves <palves@redhat.com>
6115
6116 PR gdb/13211
6117 * target.c (target_terminal::terminal_state): Rename to ...
6118 (target_terminal::m_terminal_state): ... this.
6119
a0aad537
JC
61202018-01-19 James Clarke <jrtc27@jrtc27.com>
6121
6122 * linux-low.c (handle_extended_wait): Surround call to
6123 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6124
4d9b86e1
SM
61252018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6126
6127 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6128 linux_ptrace_attach_fail_reason_string now returning an
6129 std::string.
6130 (linux_attach): Likewise.
6131 * thread-db.c (attach_thread): Likewise.
6132
f517c180
EA
61332018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6134
6135 PR gdb/21559
6136 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6137 checking for fs_base/gs_base fields in struct user_regs_struct.
6138 * configure: Regenerate.
6139
9a70f35c
YQ
61402018-01-16 Yao Qi <yao.qi@linaro.org>
6141
6142 PR gdb/18749
6143 * linux-low.c (fetch_register): Call supply_register instead of
6144 error.
6145
605fd3c6
YQ
61462018-01-08 Yao Qi <yao.qi@linaro.org>
6147 Simon Marchi <simon.marchi@ericsson.com>
6148
6149 * Makefile.in (OBS): Remove selftest.o.
6150 * configure.ac: Set srv_selftest_objs if $development is true.
6151 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6152 * configure: Re-generated.
6153 * server.c (captured_main): Wrap variable selftest_filter with
6154 GDB_SELF_TEST.
6155
2cc05030
SM
61562018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6157
6158 * server.c (parse_debug_format_options): Return std::string.
6159 (handle_monitor_command, captured_main): Adjust.
6160
e379cee6
PA
61612018-01-05 Pedro Alves <palves@redhat.com>
6162
6163 PR gdb/18653
6164 * server.c (captured_main): Pass quiet=false to
6165 save_original_signals_state.
6166
82e1e79a
JB
61672018-01-01 Joel Brobecker <brobecker@adacore.com>
6168
6169 * gdbreplay.c (gdbreplay_version): Update copyright year in
6170 version message.
6171 * server.c (gdbserver_version): Likewise.
6172
8e481c3b
TT
61732017-12-08 Tom Tromey <tom@tromey.com>
6174
6175 * ax.c (ax_printf): Update.
6176
a8806230
YQ
61772017-12-07 Yao Qi <yao.qi@linaro.org>
6178
6179 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6180 aarch64_linux_read_description.
6181 * linux-amd64-ipa.c (idx2mask): New array.
6182 (get_ipa_tdesc): Move idx2mask out.
6183 (initialize_low_tracepoint): Initialize target descriptions.
6184 * linux-i386-ipa.c (idx2mask): New array.
6185 (get_ipa_tdesc): Move idx2mask out.
6186 (initialize_low_tracepoint): Initialize target descriptions.
6187
d4a0e8b5
SM
61882017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6189
6190 * tdesc.c (struct tdesc_type): Change return type.
6191 (tdesc_add_flag): Change parameter type.
6192 (tdesc_add_bitfield): Likewise.
6193 (tdesc_add_field): Likewise.
6194 (tdesc_set_struct_size): Likewise.
6195
798a7429
SM
61962017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6197
6198 * regcache.c (registers_to_string): Remove unused variable.
6199
c0e15c9b
SM
62002017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6201
6202 * inferiors.c (for_each_inferior_with_data): Remove.
6203 * inferiors.h (for_each_inferior_with_data): Remove.
6204 * server.c (handle_qxfer_threads_worker): Change parameter type.
6205 (handle_qxfer_threads_proper): Use for_each_thread.
6206
f0045347
SM
62072017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6208
6209 * inferiors.c (for_each_inferior): Remove.
6210 (clear_inferiors): Use for_each_thread.
6211 * inferiors.h (for_each_inferior): Remove.
6212 * linux-low.c (linux_wait_for_event_filtered): Use
6213 for_each_thread.
6214 (linux_stabilize_threads): Likewise.
6215 * regcache.c (regcache_release): Likewise.
6216 * server.c (gdb_wants_all_threads_stopped): Likewise.
6217 (clear_pending_status_callback): Remove.
6218 (handle_status): Use for_each_thread.
6219 (captured_main): Likewise.
6220 * win32-low.c (child_init_thread_list): Likewise.
6221 (win32_clear_inferiors): Likewise.
6222 (fake_breakpoint_event): Likewise.
6223
9521758b
SM
62242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6225
6226 * inferiors.h (find_inferior): Remove.
6227 * inferiors.c (find_inferior): Remove.
6228
8f86d7aa
SM
62292017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6230
6231 * linux-low.c (resume_status_pending_p): Update comment.
6232 (need_step_over_p): Update comment.
6233
e2b44075
SM
62342017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6235
6236 * linux-low.c (proceed_one_lwp): Return void, change parameter
6237 type.
6238 (unsuspend_and_proceed_one_lwp): Likewise.
6239 (proceed_all_lwps): Use for_each_thread.
6240 (unstop_all_lwps): Likewise.
6241
c80825ff
SM
62422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6243
6244 * linux-low.c (linux_resume_one_thread): Return void, take
6245 parameter directly.
6246 (linux_resume): Use for_each_thread.
6247
df3e4dbe
SM
62482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6249
6250 * linux-low.c (send_sigstop_callback): Return void, change
6251 parameter type. Rename to...
6252 (send_sigstop): ... this.
6253 (suspend_and_send_sigstop_callback): Return void, change parameter
6254 type. Rename to...
6255 (suspend_and_send_sigstop): ... this.
6256 (stop_all_lwps): Use for_each_thread.
6257
5a6b0a41
SM
62582017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * linux-low.c (lwp_running): Return bool, remove unused
6261 argument.
6262 (linux_stabilize_threads): Use find_thread.
6263
39a64da5
SM
62642017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6265
6266 * linux-low.c (select_singlestep_lwp_callback): Remove.
6267 (count_events_callback): Remove.
6268 (select_event_lwp_callback): Remove.
6269 (select_event_lwp): Use find_thread/for_each_thread.
6270
a1385b7b
SM
62712017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6272
6273 * linux-low.c (not_stopped_callback): Return bool, take filter
6274 argument directly.
6275 (linux_wait_for_event_filtered): Use find_thread.
6276 (linux_wait_1): Likewise.
6277
454296a2
SM
62782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6279
6280 * linux-low.c (same_lwp): Remove.
6281 (find_lwp_pid): Use find_thread.
6282
6b2a85da
SM
62832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6284
6285 * linux-low.c (delete_lwp_callback): Remove.
6286 (linux_mourn): Use for_each_thread.
6287
798a38e8
SM
62882017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6289
6290 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6291 args parameter, don't check for pid.
6292 (linux_detach): Use for_each_thread.
6293
e4eb0dec
SM
62942017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6295
6296 * linux-low.c (struct counter): Remove.
6297 (second_thread_of_pid_p): Remove.
6298 (last_thread_of_process_p): Use find_thread.
6299
83e1b6c1
SM
63002017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6301
6302 * inferiors.c (find_inferior_in_random): Remove.
6303 * inferiors.h (find_inferior_in_random): Remove.
6304 * linux-low.c (status_pending_p_callback): Return bool, accept
6305 parameter ptid directly.
6306 (linux_wait_for_event_filtered): Use find_thread_in_random.
6307 (linux_wait_1): Likewise.
6308
8dc7b443
SM
63092017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6310
6311 * inferiors.c (find_inferior_id): Remove.
6312 (find_thread_ptid): Move implemention from find_inferior_id to
6313 here.
6314 * inferiors.h (find_inferior_id): Remove.
6315 * server.c (handle_status): Use find_thread_ptid.
6316 (process_serial_event): Likewise.
6317 * thread-db.c (find_one_thread): Likewise.
6318 (thread_db_thread_handle): Likewise.
6319 * win32-low.c (thread_rec): Likewise.
6320 (child_delete_thread): Likewise.
6321 (win32_thread_alive): Likewise.
6322 (get_child_debug_event): Likewise.
6323
da25033c
SM
63242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6325
6326 * linux-mips-low.c (update_watch_registers_callback): Return
6327 void, remove pid_p parameter, don't check for pid.
6328 (mips_insert_point, mips_remove_point): Use for_each_thread.
6329
c91bb56b
SM
63302017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6331
6332 * lynx.low (lynx_delete_thread_callback): Remove.
6333 (lynx_mourn): Use for_each_thread.
6334
634a3254
SM
63352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6336
6337 * regcache.c (regcache_invalidate_one): Remove.
6338 (regcache_invalidate_pid): use for_each_thread.
6339
41272101
TT
63402017-11-26 Tom Tromey <tom@tromey.com>
6341
6342 * linux-low.c (linux_create_inferior): Update.
6343
f5291a6f
UW
63442017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6345
6346 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6347
6654d750
AH
63482017-11-24 Alan Hayward <alan.hayward@arm.com>
6349
6350 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6351 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6352 * linux-aarch64-tdesc-selftest.c: New file.
6353 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6354
63552017-11-24 Alan Hayward <alan.hayward@arm.com>
6356
6357 * configure.srv: Add new file.
6358 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6359 * linux-aarch64-tdesc-selftest.c: New file.
6360 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6361
49bdb7ee
AH
63622017-11-24 Alan Hayward <alan.hayward@arm.com>
6363
6364 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6365 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6366 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6367
d6d7ce56
AH
63682017-11-24 Alan Hayward <alan.hayward@arm.com>
6369
6370 * configure.srv: Add new files.
6371 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6372 aarch64_linux_read_description.
6373 * linux-aarch64-low.c (aarch64_linux_read_description):
6374 Merge with aarch64_arch_setup.
6375 (aarch64_arch_setup): Call aarch64_linux_read_description.
6376 * linux-aarch64-tdesc.c: New file.
6377 * linux-aarch64-tdesc.h: New file.
6378
506fe5f4
YQ
63792017-11-24 Yao Qi <yao.qi@linaro.org>
6380
6381 * configure.srv: Set $srv_regobj for tic6x-linux.
6382 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6383 (tic6x_read_description): Move some code to tic6x_arch_setup.
6384 (tic6x_tdesc_test): New function.
6385 (initialize_low_arch): Call selftests::register_test.
6386
29f9a567
YQ
63872017-11-22 Yao Qi <yao.qi@linaro.org>
6388
6389 * remote-utils.c (prepare_resume_reply): Use memcpy.
6390
578290ec
SM
63912017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6392
6393 * linux-low.c (kill_one_lwp_callback): Return void, take
6394 argument directly, don't filter on pid.
6395 (linux_kill): Use for_each_thread.
6396
eca55aec
SM
63972017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6398
6399 * linux-low.c (need_step_over_p): Return bool, remove dummy
6400 argument.
6401 (linux_resume, proceed_all_lwps): Use find_thread.
6402
25c28b4d
SM
64032017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6404
6405 * linux-low.c (resume_status_pending_p): Return bool, remove
6406 flag_p argument.
6407 (linux_resume): Use find_thread.
6408
5fdda392
SM
64092017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6410
6411 * linux-low.c (struct thread_resume_array): Remove.
6412 (linux_set_resume_request): Return void, take arguments
6413 directly.
6414 (linux_resume): Use for_each_thread.
6415
fcb056a5
SM
64162017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6417
6418 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6419 return bool, remove data argument.
6420 (linux_stabilize_threads): Use find_thread.
6421
139720c5
SM
64222017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6423
6424 * linux-low.c (unsuspend_one_lwp): Remove.
6425 (unsuspend_all_lwps): Use for_each_thread, inline code from
6426 unsuspend_one_lwp.
6427
6d1e5673
SM
64282017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6429
6430 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6431 * linux-low.c (struct iterate_over_lwps_args): Remove.
6432 (iterate_over_lwps_filter): Remove.
6433 (iterate_over_lwps): Use find_thread.
6434
bbf550d5
SM
64352017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6436
6437 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6438 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6439 code from reset_lwp_ptrace_options_callback.
6440
00192f77
SM
64412017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6442
6443 * linux-arm-low.c (struct update_registers_data): Remove.
6444 (update_registers_callback): Return void, take arguments
6445 directly, don't check thread's pid.
6446 (arm_insert_point, arm_remove_point): Use for_each_thread.
6447
2bee2b6c
SM
64482017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6449
6450 * win32-low.c (continue_one_thread): Return void, take argument
6451 directly.
6452 (child_continue): Use for_each_thread.
6453
0b360f19
SM
64542017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6455
6456 * win32-i386-low.c (update_debug_registers_callback): Rename
6457 to ...
6458 (update_debug_registers): ... this, return void, remove pid_p arg.
6459 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6460
f27866ba
SM
64612017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6462
6463 * inferiors.h (struct process_info): Add constructor, initialize
6464 fields..
6465 <syscalls_to_catch>: Change type to std::vector<int>.
6466 * inferiors.c (add_process): Allocate process_info with new.
6467 (remove_process): Free process_info with delete.
6468 * linux-low.c (handle_extended_wait): Adjust.
6469 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6470 * server.c (handle_general_set): Adjust.
6471
e849ea89
PA
64722017-11-16 Pedro Alves <palves@redhat.com>
6473
6474 * remote-utils.c (remote_close): Block SIGIO signals instead of
6475 uninstalling the SIGIO handler.
6476
1d0aa65c
AH
64772017-11-16 Alan Hayward <alan.hayward@arm.com>
6478
6479 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6480
3491a34c
YQ
64812017-11-16 Yao Qi <yao.qi@linaro.org>
6482
6483 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6484 (tic6x_store_gregset): Likewise.
6485 (tic6x_usrregs_info): Move it up.
6486
a602f924
AH
64872017-11-15 Alan Hayward <alan.hayward@arm.com>
6488
6489 * Makefile.in: Update arch rules.
6490 * configure.srv: Explicitly mark arch/ files.
6491
5616b6c3
AS
64922017-11-13 Andreas Schwab <schwab@suse.de>
6493
6494 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6495 function.
6496 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6497
d1928160
PA
64982017-11-06 Pedro Alves <palves@redhat.com>
6499
6500 * config.in, configure: Regenerate.
6501
bac608e7
SM
65022017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6503
6504 * target.c (struct thread_search): Remove.
6505 (thread_search_callback): Remove.
6506 (prepare_to_access_memory): Use for_each_thread instead of
6507 find_inferior. Inline code from thread_search_callback.
6508
eaddb425
SM
65092017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6510
6511 * server.c (struct visit_actioned_threads_data): Remove.
6512 (visit_actioned_threads): Change prototype to take arguments
6513 directly.
6514 (resume): Use find_thread instead of find_inferior.
6515
99078d34
SM
65162017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6517
6518 * server.c (queue_stop_reply_callback): Change prototype, return
6519 void.
6520 (find_status_pending_thread_callback): Remove.
6521 (handle_status): Replace find_inferior with find_thread and
6522 for_each_thread.
6523
cc628f3d
AH
65242017-10-25 Alan Hayward <alan.hayward@arm.com>
6525
6526 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6527 with REGNO.
6528 (aarch64_store_gregset): Likewise.
6529 (aarch64_fill_fpregset): Likewise.
6530 (aarch64_store_fpregset): Likewise.
6531
4d3bb80e
SM
65322017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6533
6534 * gdbthread.h (find_thread, for_each_thread): New functions.
6535 * inferiors.c (thread_of_pid): Remove.
6536 (find_any_thread_of_pid): Use find_thread.
6537 * linux-low.c (num_lwps): Use for_each_thread.
6538
7a7cdfa0
YQ
65392017-10-17 Yao Qi <yao.qi@linaro.org>
6540
6541 * Makefile.in: Remove one rule.
6542 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6543
e675d170
YQ
65442017-10-17 Yao Qi <yao.qi@linaro.org>
6545
6546 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6547 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6548
7eb4e0f9
YQ
65492017-10-17 Yao Qi <yao.qi@linaro.org>
6550
6551 * configure.srv: Rename arm.o with arch/arm.o.
6552
60d6cfc9
YQ
65532017-10-17 Yao Qi <yao.qi@linaro.org>
6554
6555 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6556 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6557 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6558 (arch-i386.o, arch-amd64.o): Remove rules.
6559 (arch/%.o): New rule.
6560 Update POSTCOMPILE and COMPILE.pre.
6561 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6562 * configure: Re-generated.
6563 * configure.srv: Replace arch-i386.o with arch/i386.o.
6564 Replace arch-amd64.o with arch/amd64.o.
6565
5bfda255
YQ
65662017-10-16 Yao Qi <yao.qi@linaro.org>
6567
6568 * configure: Regenerated.
6569
9c80ecd6
SM
65702017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6571
6572 * inferiors.h: (struct inferior_list): Remove.
6573 (struct inferior_list_entry); Remove.
6574 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6575 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6576 get_first_inferior): Remove.
6577 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6578 find_inferior_id, find_inferior_in_random): Change signature.
6579 * inferiors.c (all_threads): Change type to
6580 std::list<thread_info *>.
6581 (get_thread): Remove macro.
6582 (find_inferior, find_inferior_id): Change signature, implement
6583 using find_thread.
6584 (find_inferior_in_random): Change signature, implement using
6585 find_thread_in_random.
6586 (for_each_inferior, for_each_inferior_with_data): Change
6587 signature, implement using for_each_thread.
6588 (add_inferior_to_list, remove_inferior): Remove.
6589 (add_thread, get_first_thread, thread_of_pid,
6590 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6591 (get_first_inferior, one_inferior_p, clear_inferior_list):
6592 Remove.
6593 (clear_inferiors, get_thread_process): Update.
6594 * gdbthread.h: Include <list>.
6595 (struct thread_info) <entry>: Remove field.
6596 <id>: New field.
6597 (all_threads): Change type to std::list<thread_info *>.
6598 (get_first_inferior): Add doc.
6599 (find_thread, for_each_thread, find_thread_in_random): New
6600 functions.
6601 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6602 * linux-arm-low.c (update_registers_callback): Update.
6603 * linux-low.c (second_thread_of_pid_p): Update.
6604 (kill_one_lwp_callback, linux_detach_lwp_callback,
6605 delete_lwp_callback, status_pending_p_callback, same_lwp,
6606 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6607 iterate_over_lwps, not_stopped_callback,
6608 resume_stopped_resumed_lwps, count_events_callback,
6609 select_singlestep_lwp_callback, select_event_lwp_callback,
6610 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6611 suspend_and_send_sigstop_callback, wait_for_sigstop,
6612 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6613 lwp_running, linux_set_resume_request, resume_status_pending_p,
6614 need_step_over_p, start_step_over, linux_resume_one_thread,
6615 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6616 reset_lwp_ptrace_options_callback): Update.
6617 * linux-mips-low.c (update_watch_registers_callback): Update.
6618 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6619 Update.
6620 (free_register_cache_thread_one): Remove.
6621 (regcache_release): Update.
6622 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6623 handle_qxfer_threads_worker): Update.
6624 (handle_query): Update, use list iterator.
6625 (visit_actioned_threads, handle_pending_status,
6626 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6627 clear_pending_status_callback, set_pending_status_callback,
6628 find_status_pending_thread_callback, handle_status,
6629 process_serial_event): Update.
6630 * target.c (thread_search_callback): Update.
6631 * thread-db.c (thread_db_get_tls_address): Update.
6632 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6633 Update.
6634 * win32-i386-low.c (update_debug_registers_callback): Update.
6635 * win32-low.c (delete_thread_info, child_delete_thread,
6636 continue_one_thread, suspend_one_thread,
6637 get_child_debug_event): Adjust.
6638
9179355e
SM
66392017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6640
6641 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6642 * inferiors.h: Include <list>.
6643 (struct process_info) <entry>: Remove field.
6644 <pid>: New field.
6645 (pid_of): Change macro to function.
6646 (ptid_of, lwpid_of): Remove macro.
6647 (all_processes): Change type to std::list<process_info *>.
6648 (ALL_PROCESSES): Remove macro.
6649 (for_each_process, find_process): New function.
6650 * inferiors.c (all_processes): Change type to
6651 std::list<process_info *>.
6652 (find_thread_process): Adjust.
6653 (add_process): Likewise.
6654 (remove_process): Likewise.
6655 (find_process_pid): Likewise.
6656 (get_first_process): Likewise.
6657 (started_inferior_callback): Remove.
6658 (have_started_inferiors_p): Adjust.
6659 (attached_inferior_callback): Remove.
6660 (have_attached_inferiors_p): Adjust.
6661 * linux-low.c (check_zombie_leaders): Likewise.
6662 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6663 (x86_linux_update_xmltarget): Adjust.
6664 * server.c (handle_query): Likewise.
6665 (gdb_reattached_process): Remove.
6666 (handle_status): Adjust.
6667 (kill_inferior_callback): Likewise.
6668 (detach_or_kill_inferior): Remove.
6669 (print_started_pid): Likewise.
6670 (print_attached_pid): Likewise.
6671 (detach_or_kill_for_exit): Update.
6672 (process_serial_event): Likewise.
6673 * linux-arm-low.c (arm_new_fork): Likewise.
6674
c9cb8905
SM
66752017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6676
6677 * dll.h: Include <list>.
6678 (struct dll_info): Add constructor.
6679 <entry>: Remove field.
6680 (all_dlls): Change type to std::list<dll_info>.
6681 * dll.c: Include <algorithm>.
6682 (get_dll): Remove macro.
6683 (all_dlls): Change type to std::list<dll_info *>.
6684 (free_one_dll): Remove.
6685 (match_dll): Likewise.
6686 (loaded_dll): Adjust.
6687 (unloaded_dll): Adjust to all_dlls type change, use
6688 std::find_if. Inline code from match_dll.
6689 (clear_dlls): Adjust to all_dlls type change.
6690 * server.c (emit_dll_description): Remove.
6691 (handle_qxfer_libraries): Adjust to all_dlls type change,
6692 integrate emit_dll_description's functionality.
6693
04ec7890
SM
66942017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6695
6696 * linux-low.h (struct linux_target_ops) <delete_process>: New
6697 field.
6698 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6699 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6700 (struct linux_target_ops): Add delete_process callback.
6701 * linux-arm-low.c (arm_delete_process): New.
6702 (struct linux_target_ops): Add delete_process callback.
6703 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6704 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6705 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6706 * linux-mips-low.c (mips_linux_delete_process): New.
6707 (struct linux_target_ops): Add delete_process callback.
6708 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6709 * linux-s390-low.c (struct linux_target_ops): Likewise.
6710 * linux-sh-low.c (struct linux_target_ops): Likewise.
6711 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6712 * linux-tile-low.c (struct linux_target_ops): Likewise.
6713 * linux-x86-low.c (x86_linux_delete_process): New.
6714 (struct linux_target_ops): Add delete_process callback.
6715 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6716
466eecee
SM
67172017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6718
6719 * linux-aarch64-low.c (the_low_target): Add thread delete
6720 callback.
6721 * linux-arm-low.c (arm_delete_thread): New function.
6722 (the_low_target): Add thread delete callback.
6723 * linux-bfin-low.c (the_low_target): Likewise.
6724 * linux-crisv32-low.c (the_low_target): Likewise.
6725 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6726 set.
6727 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6728 field.
6729 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6730 * linux-mips-low.c (mips_linux_delete_thread): New function.
6731 (the_low_target): Add thread delete callback.
6732 * linux-ppc-low.c (the_low_target): Likewise.
6733 * linux-s390-low.c (the_low_target): Likewise.
6734 * linux-sh-low.c (the_low_target): Likewise.
6735 * linux-tic6x-low.c (the_low_target): Likewise.
6736 * linux-tile-low.c (the_low_target): Likewise.
6737 * linux-x86-low.c (the_low_target): Likewise.
6738 * linux-xtensa-low.c (the_low_target): Likewise.
6739
b79f7801
YZ
67402017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6741
6742 * win32-low.c: Include "common-inferior.h".
6743
bc3b087d
SDJ
67442017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6745
6746 * inferiors.c (set_inferior_cwd): New function.
6747 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6748 (handle_query): Inform that QSetWorkingDir is supported.
6749 * win32-low.c (create_process): Pass the inferior's cwd to
6750 CreateProcess.
6751
d092c5a2
SDJ
67522017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6753
6754 * inferiors.c (current_inferior_cwd): New global variable.
6755 (get_inferior_cwd): New function.
6756 * inferiors.h (struct process_info) <cwd>: New field.
6757
7da0a886
SDJ
67582017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6759
6760 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6761 (OBS): Add gdb_tilde_expand.o.
6762
289a6840
SM
67632017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6764
6765 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6766 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6767
256642e8
PA
67682017-09-29 Pedro Alves <palves@redhat.com>
6769
6770 * ax.c (gdb_parse_agent_expr): Constify.
6771 * ax.h (gdb_parse_agent_expr): Constify.
6772 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6773 Constify.
6774 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6775 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6776 * remote-utils.h (read_ptid): Constify.
6777 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6778 (process_point_options, process_serial_event): Constify.
6779 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6780 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6781 (cmd_qtbuffer): Constify.
6782
5b9ca4d4
PA
67832017-09-29 Pedro Alves <palves@redhat.com>
6784
6785 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6786 fails.
6787
94c207e0
PA
67882017-09-29 Pedro Alves <palves@redhat.com>
6789
6790 * linux-low.c (handle_extended_wait): Pass parent thread instead
6791 of process to thread_db_notice_clone.
6792 * linux-low.h (thread_db_notice_clone): Replace parent process
6793 parameter with parent thread parameter.
6794 * thread-db.c (find_one_thread): Add comment.
6795 (thread_db_notice_clone): Replace parent process parameter with
6796 parent thread parameter. Temporarily switch to the parent thread.
6797
75352e28
SDJ
67982017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6799
6800 * gdbthread.h: Include "common-gdbthread.h".
6801 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6802 "if" when validating the ptid.
6803 * remote-utils.c: Include "gdbthread.h".
6804 (prepare_resume_reply): Use "switch_to_thread".
6805 * target.c (done_accessing_memory): Likewise.
6806
ad339634
AA
68072017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6808
6809 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6810 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6811 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6812 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6813 s390x-gs-linux64-ipa.o to ipa_obj.
6814 * linux-s390-low.c (HWCAP_S390_GS): New define.
6815 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6816 New functions.
6817 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6818 (s390_arch_setup): Check for guarded-storage support and choose
6819 appropriate tdesc.
6820 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6821 init_registers_s390x_gs_linux64.
6822 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6823 enum value.
6824 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6825 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6826
cc4d742f
SM
68272017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6828
6829 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6830
f6327dcb
KB
68312017-09-21 Kevin Buettner <kevinb@redhat.com>
6832
6833 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6834 (thread_db_thread_handle): Declare.
6835 * linux-low.c (linux_target_ops): Initialize thread_handle.
6836 * server.c (handle_qxfer_threads_worker): Add support for
6837 "handle" attribute.
6838 * target.h (struct target_ops): Add new function pointer,
6839 thread_handle.
6840 (target_thread_handle): Define.
6841 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6842 field in lwp.
6843 (thread_db_thread_handle): New function.
6844
86299109
KB
68452017-09-21 Kevin Buettner <kevinb@redhat.com>
6846
6847 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6848 * linux-low.h (thread_db_notice_clone): Declare.
6849 * thread-db.c (thread_db_notice_clone): New function.
6850
f557a88a
PA
68512017-09-21 Pedro Alves <palves@redhat.com>
6852
6853 * server.c (gdb_read_memory, handle_status, process_serial_event)
6854 (handle_serial_event, handle_target_event): Adjust to
6855 set_desired_thread prototype change.
6856 * target.c (set_desired_thread): Remove 'use_general' parameter
6857 and adjust.
6858 * target.h (set_desired_thread): Remove 'use_general' parameter.
6859
223ffa71
TT
68602017-09-20 Tom Tromey <tom@tromey.com>
6861
6862 * target.c (target_terminal::terminal_state): Define.
6863 (target_terminal::init): Rename from target_terminal_init.
6864 (target_terminal::inferior): Rename from
6865 target_terminal_inferior.
6866 (target_terminal::ours): Rename from target_terminal_ours.
6867 (target_terminal::ours_for_output, target_terminal::info): New.
6868
04fd3ba9
SM
68692017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6870
6871 * server.c (accumulate_file_name_length): Remove.
6872 (emit_dll_description): Adjust to std::string change.
6873 (handle_qxfer_libraries): Use std::string to hold document.
6874
5e187554
SM
68752017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6876
6877 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6878 return type of xml_escape_text.
6879 * server.c (emit_dll_description): Likewise.
6880
1526853e
SM
68812017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6882
6883 * server.c (captured_main): Accept argument for --selftest.
6884 Update run_tests call.
6885 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6886 when registering selftests.
6887
c4dfafab
SDJ
68882017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6889
6890 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6891 instead of "VEC" for "target_desc.reg_defs".
6892 (regcache_cpy): Likewise.
6893 (registers_to_string): Likewise.
6894 (registers_from_string): Likewise.
6895 (find_regno): Likewise.
6896 (supply_regblock): Likewise.
6897 (regcache_raw_read_unsigned): Likewise.
6898 * tdesc.c (init_target_desc): Likewise.
6899 (tdesc_create_reg): Likewise.
6900 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6901 (struct target_desc) <reg_defs>: Convert to "std::vector".
6902 (target_desc): Do not initialize "reg_defs".
6903 (~target_desc): Update code to use "std::vector" instead of "VEC"
6904 for "target_desc.reg_defs".
6905 (operator==): Likewise.
6906
124aceb4
SM
69072017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6908
6909 * inferiors.h (thread_to_gdb_id): Remove.
6910 * inferiors.c (thread_to_gdb_id): Remove.
6911 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6912 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6913 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6914 Likewise.
6915 * nto-low.c (nto_fetch_registers, nto_store_registers,
6916 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6917
96cde54f
SM
69182017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6919
6920 * inferiors.h (gdb_id_to_thread_id): Remove.
6921 * inferiors.c (gdb_id_to_thread_id): Remove.
6922 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6923 removal. Move pid declaration closer to where it's used.
6924
e8ca139e
SM
69252017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6926
6927 * server.c (handle_detach): New function.
6928 (process_serial_event): Move code out, call handle_detach.
6929
f8a4e119
SM
69302017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6931
6932 * server.c (require_running): Rename to ...
6933 (require_running_or_return): ... this ...
6934 (require_running_or_break): ... and this.
6935 (handle_query, process_serial_event): Adjust.
6936
0eb0a407
SM
69372017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6938
6939 * linux-low.c (linux_set_resume_request): Remove unused
6940 variables.
6941
785922a5
SM
69422017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6943
6944 * server.c (first_thread_of): Remove.
6945 (process_serial_event): Replace usage of first_thread_of with
6946 find_any_thread_of_pid.
6947 * tracepoint.c (same_process_p): Remove.
6948 (gdb_agent_about_to_close): Replace usage of same_process_p with
6949 find_any_thread_of_pid.
6950 * linux-x86-low.c (same_process_callback): Remove.
6951 (x86_arch_setup_process_callback): Replace usage of
6952 same_process_callback with find_any_thread_of_pid.
6953 * thread-db.c (any_thread_of): Remove.
6954 (switch_to_process): Replace usage of any_thread_of with
6955 find_any_thread_of_pid.
6956 * inferiors.c (thread_pid_matches_callback): Remove.
6957 (find_thread_process): Adjust to use find_any_thread_of_pid.
6958
a059f00c
SDJ
69592017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6960
6961 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 6962 with "!VEC_empty".
a059f00c 6963
cc397f3a
SDJ
69642017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6965
6966 * linux-low.c (handle_extended_wait): Use
6967 "allocate_target_description" instead of "XNEW".
6968 * linux-x86-low.c (initialize_low_arch): Likewise.
6969
22916b07
YQ
69702017-09-05 Yao Qi <yao.qi@linaro.org>
6971
6972 * configure.srv (srv_i386_regobj): Remove.
6973 (srv_amd64_regobj): Remove.
6974 (srv_regobj): Set it to "" for x86 non-linux targets.
6975 * linux-x86-tdesc.c (i386_linux_read_description):
6976 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6977 (init_registers_i386): Remove the declaration.
6978 (tdesc_i386): Remove the declaration.
6979 (lynx_i386_arch_setup): Call i386_create_target_description.
6980 * nto-x86-low.c: Likewise.
6981 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6982 [!__x86_64__]: include arch/i386.h.
6983 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6984
38602d55
YQ
69852017-09-05 Yao Qi <yao.qi@linaro.org>
6986
6987 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6988 i386/amd64-XXX-linux from it.
6989
44b886ff
YQ
69902017-09-05 Yao Qi <yao.qi@linaro.org>
6991
6992 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6993 false.
6994 (ipa_amd64_linux_regobj): Remove.
6995 (ipa_x32_linux_regobj): Remove.
6996
b4570e4b
YQ
69972017-09-05 Yao Qi <yao.qi@linaro.org>
6998
6999 * Makefile.in (arch-amd64.o): New rule.
7000 * configure.srv: Append arch-amd64.o.
7001 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7002 (get_ipa_tdesc): Call amd64_linux_read_description.
7003 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7004 and init_registers_amd64_XXX.
7005 * linux-x86-low.c (x86_linux_read_description): Call
7006 amd64_linux_read_description.
7007 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7008 (initialize_low_arch): Don't call init_registers_x32_XXX and
7009 init_registers_amd64_XXX.
7010 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7011 and tdesc_amd64_XXX.
7012 [__x86_64__] (amd64_tdesc_test): New function.
7013 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7014 and init_registers_amd64_XXX.
7015 * linux-x86-tdesc.c: Include arch/amd64.h.
7016 (xcr0_to_tdesc_idx): New function.
7017 (i386_linux_read_description): New function.
7018 (amd64_get_ipa_tdesc_idx): New function.
7019 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7020 (amd64_get_ipa_tdesc): Declare.
7021
d1f28ea2
YQ
70222017-09-05 Yao Qi <yao.qi@linaro.org>
7023
7024 * configure.srv (srv_i386_linux_xmlfiles): Remove
7025 i386/i386-XXX-linux.xml from it.
7026
25a93583
YQ
70272017-09-05 Yao Qi <yao.qi@linaro.org>
7028
7029 * configure.srv: Set srv_i386_linux_regobj empty if $development
7030 is false.
7031 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7032 initialize_low_tdesc.
7033 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7034 with #if initialize_low_tdesc.
7035 * linux-x86-tdesc-selftest.c: New file.
7036 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7037
5f035c07
YQ
70382017-09-05 Yao Qi <yao.qi@linaro.org>
7039
7040 * Makefile.in (arch-i386.o): New rule.
7041 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7042 (x86_64-*-linux*): Likewise.
7043 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7044 include arch/i386.h.
7045 (i386_linux_read_description): Remove code and call
7046 i386_create_target_description.
7047 * tdesc.c (allocate_target_description): New function.
7048 * tdesc.h (set_tdesc_architecture): Remove declaration.
7049 (set_tdesc_osabi): Likewise.
7050
0abe8a89
YQ
70512017-09-05 Yao Qi <yao.qi@linaro.org>
7052
7053 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7054 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7055 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7056 .xmltarget.
7057 * server.c (get_features_xml): Call tdesc_get_features_xml.
7058 * tdesc.c (set_tdesc_architecture): New function.
7059 (set_tdesc_osabi): New function.
7060 (tdesc_get_features_xml): New function.
7061 (tdesc_create_feature): Add an argument.
7062 * tdesc.h (struct target_desc) <features>: New field.
7063 <arch, osabi>: New field.
7064 (~target_desc): xfree features, arch, and osabi.
7065 (target_desc::oerator==): Don't compare .xmltarget.
7066 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7067 (set_tdesc_osabi): Likewise.
7068 (tdesc_get_features_xml): Likewise.
7069
0a188386
YQ
70702017-09-05 Yao Qi <yao.qi@linaro.org>
7071
7072 * linux-x86-tdesc.c: Include selftest.h.
7073 (i386_tdesc_test): New function.
7074 (initialize_low_tdesc): Call selftests::register_test.
7075 * tdesc.h: Include regdef.h.
7076 (target_desc): Override operator == and !=.
7077
f49ff000
YQ
70782017-09-05 Yao Qi <yao.qi@linaro.org>
7079
7080 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7081 (ipa_obj): Likewise.
7082 * linux-i386-ipa.c: Include common/x86-xstate.h
7083 (get_ipa_tdesc): Call i386_linux_read_description.
7084 (initialize_low_tracepoint): Don't call init_registers_XXX
7085 functions, call initialize_low_tdesc instead.
7086 * linux-x86-low.c (x86_linux_read_description): Call
7087 i386_linux_read_description.
7088 (initialize_low_arch): Don't call init_registers_i386_XXX
7089 functions, call initialize_low_tdesc.
7090 * linux-x86-tdesc.c: New file.
7091 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7092 (i386_get_ipa_tdesc_idx): Declare.
7093 (i386_get_ipa_tdesc): Declare.
7094 (initialize_low_tdesc): Declare.
7095
2b68ef2f
YQ
70962017-09-05 Yao Qi <yao.qi@linaro.org>
7097
7098 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7099 instead of 0.
7100
f7000548
YQ
71012017-09-05 Yao Qi <yao.qi@linaro.org>
7102
7103 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7104 * regcache.c (get_thread_regcache): Use VEC_length.
7105 (init_register_cache): Likewise.
7106 (regcache_cpy): Likewise.
7107 (registers_to_string): Iterate reg_defs via VEC_iterate.
7108 (find_regno): Likewise.
7109 (find_register_by_number): Use VEC_index.
7110 (register_size): Call find_register_by_number.
7111 (register_data): Call find_register_by_number.
7112 (supply_regblock): Use VEC_length.
7113 (regcache_raw_read_unsigned): Likewise.
7114 * tdesc.c (init_target_desc): Iterate reg_defs via
7115 VEC_iterate.
7116 (default_description): Update initializer.
7117 (copy_target_description): Don't update field num_registers.
7118 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7119 <num_registers>: Remove.
7120
50a421ac
SM
71212017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7122
7123 * Makefile.in (.SECONDARY): Define target.
7124
23fdd69e
SM
71252017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7126
7127 * linux-low.c (linux_wait_1): Adjust.
7128 * server.c (queue_stop_reply_callback): Adjust.
7129
0a2dde4a
SDJ
71302017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7131
7132 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7133 QEnvironmentUnset and QEnvironmentReset packets.
7134 (handle_query): Inform remote that QEnvironmentHexEncoded,
7135 QEnvironmentUnset and QEnvironmentReset are supported.
7136
6afd337d
SM
71372017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7138
7139 * inferiors.h (inferior_target_data): Rename to ...
7140 (thread_target_data): ... this.
7141 (inferior_regcache_data): Rename to ...
7142 (thread_regcache_data): ... this.
7143 (set_inferior_regcache_data): Rename to ...
7144 (set_thread_regcache_data): ... this.
7145 * inferiors.c (inferior_target_data): Rename to ...
7146 (thread_target_data): ... this.
7147 (inferior_regcache_data): Rename to ...
7148 (thread_regcache_data): ... this.
7149 (set_inferior_regcache_data): Rename to ...
7150 (set_thread_regcache_data): ... this.
7151 (free_one_thread): Update.
7152 * linux-low.h (get_thread_lwp): Update.
7153 * regcache.c (get_thread_regcache): Update.
7154 (regcache_invalidate_thread): Update.
7155 (free_register_cache_thread): Update.
7156 * win32-i386-low.c (update_debug_registers_callback): Update.
7157 (win32_get_current_dr): Update.
7158 * win32-low.c (thread_rec): Update.
7159 (delete_thread_info): Update.
7160 (continue_one_thread): Update.
7161 (suspend_one_thread): Update.
7162
a160cc46
SM
71632017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7164
7165 * inferiors.c (set_inferior_target_data): Remove.
7166 * inferiors.h (set_inferior_target_data): Remove.
7167
6d580b63
YQ
71682017-08-18 Yao Qi <yao.qi@linaro.org>
7169
7170 * Makefile.in (OBS): Add selftest.o.
7171 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7172 * configure, config.in: Re-generated.
7173 * server.c: Include common/sefltest.h.
7174 (captured_main): Handle option --selftest.
7175
f5a29eb0
YQ
71762017-08-09 Yao Qi <yao.qi@linaro.org>
7177
7178 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7179 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7180 i386-avx-mpx.o and i386-mmx.o.
7181 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7182 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7183 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7184 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7185 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7186 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7187 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7188 i386/amd64-avx-mpx.xml.
7189
57757c2f
YQ
71902017-08-09 Yao Qi <yao.qi@linaro.org>
7191
7192 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7193 and x32-avx-avx512.o.
7194 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7195 i386/x32-avx-avx512.xml.
7196
229d26fc
SM
71972017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7198
7199 * tracepoint.h (enum class fast_tpoint_collect_result): New
7200 enumeration.
7201 (fast_tracepoint_collecting): Change return type to
7202 fast_tpoint_collect_result.
7203 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7204 * linux-low.h: Include tracepoint.h.
7205 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7206 fast_tpoint_collect_result.
7207 * linux-low.c (handle_tracepoints): Adjust.
7208 (linux_fast_tracepoint_collecting): Change return type to
7209 fast_tpoint_collect_result.
7210 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7211 linux_wait_1, stuck_in_jump_pad_callback,
7212 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7213 proceed_one_lwp): Adjust to type change.
7214
2e1e43e1
YQ
72152017-07-10 Yao Qi <yao.qi@linaro.org>
7216
7217 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7218
adc764e7
YQ
72192017-06-29 Yao Qi <yao.qi@linaro.org>
7220
7221 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7222 Remove.
7223 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7224
a206891a
SM
72252017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7226
7227 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7228
9a6c7d9c
SDJ
72292017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7230
7231 * linux-low.c (linux_create_inferior): Adjust code to access the
7232 environment information via 'gdb_environ' class.
7233 * lynx-low.c (lynx_create_inferior): Likewise.
7234 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7235 (get_environ): Return a pointer to 'our_environ'.
7236 (captured_main): Initialize 'our_environ'.
7237 * server.h (get_environ): Adjust prototype.
7238 * spu-low.c (spu_create_inferior): Adjust code to access the
7239 environment information via 'gdb_environ' class.
7240
ae3e2ccf
SM
72412017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7242
7243 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7244 usage of "register" keyword.
7245
3e019bdc
SM
72462017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7247
7248 * configure: Re-generate.
7249
8465943a
SM
72502017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7251
7252 * configure: Re-generate.
7253
cf0dd6f0
SM
72542017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7255
7256 * Makefile.in (COMPILE.pre): Add "-x c++".
7257
9845682b
SDJ
72582017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7259
7260 * fork-child.c: Conditionally include <signal.h>.
7261
aefd8b33
SDJ
72622017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7263
7264 * server.c (handle_general_set): Handle new packet
7265 "QStartupWithShell".
7266 (handle_query): Add "QStartupWithShell" to the list of supported
7267 packets.
7268 (gdbserver_usage): Add help text explaining the
7269 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7270 options.
7271 (captured_main): Recognize and act upon the presence of the new
7272 CLI options.
7273
2090129c
SDJ
72742017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7275 Pedro Alves <palves@redhat.com>
7276
7277 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7278 * configure: Regenerate.
7279 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7280 "fork-inferior.o".
7281 (i[34567]86-*-lynxos*): Likewise.
7282 (spu*-*-*): Likewise.
7283 * fork-child.c: New file.
7284 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7285 and "environ.h".
7286 (linux_ptrace_fun): New function.
7287 (linux_create_inferior): Adjust function prototype to reflect
7288 change on "target.h". Adjust function code to use
7289 "fork_inferior".
7290 (linux_request_interrupt): Delete "signal_pid".
7291 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7292 (lynx_ptrace_fun): New function.
7293 (lynx_create_inferior): Adjust function prototype to reflect
7294 change on "target.h". Adjust function code to use
7295 "fork_inferior".
7296 * nto-low.c (nto_create_inferior): Adjust function prototype and
7297 code to reflect change on "target.h". Update comments.
7298 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7299 "common-terminal.h" and "environ.h".
7300 (terminal_fd): Moved to fork-child.c.
7301 (old_foreground_pgrp): Likewise.
7302 (restore_old_foreground_pgrp): Likewise.
7303 (last_status): Make it global.
7304 (last_ptid): Likewise.
7305 (our_environ): New variable.
7306 (startup_with_shell): Likewise.
7307 (program_name): Likewise.
7308 (program_argv): Rename to...
7309 (program_args): ...this.
7310 (wrapper_argv): New variable.
7311 (start_inferior): Delete function.
7312 (get_exec_wrapper): New function.
7313 (get_exec_file): Likewise.
7314 (get_environ): Likewise.
7315 (prefork_hook): Likewise.
7316 (post_fork_inferior): Likewise.
7317 (postfork_hook): Likewise.
7318 (postfork_child_hook): Likewise.
7319 (handle_v_run): Update code to deal with arguments coming from the
7320 remote host. Update calls from "start_inferior" to
7321 "create_inferior".
7322 (captured_main): Likewise. Initialize environment variable. Call
7323 "have_job_control".
7324 * server.h (post_fork_inferior): New prototype.
7325 (get_environ): Likewise.
7326 (last_status): Declare.
7327 (last_ptid): Likewise.
7328 (signal_pid): Likewise.
7329 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7330 (spu_ptrace_fun): New function.
7331 (spu_create_inferior): Adjust function prototype to reflect change
7332 on "target.h". Adjust function code to use "fork_inferior".
7333 * target.c (target_terminal_init): New function.
7334 (target_terminal_inferior): Likewise.
7335 (target_terminal_ours): Likewise.
7336 * target.h: Include <vector>.
7337 (struct target_ops) <create_inferior>: Update prototype.
7338 (create_inferior): Update macro.
7339 * utils.c (gdb_flush_out_err): New function.
7340 * win32-low.c (win32_create_inferior): Adjust function prototype
7341 and code to reflect change on "target.h".
7342
043a4934
SDJ
73432017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7344
7345 * inferiors.c (switch_to_thread): New function.
7346
15652511
SDJ
73472017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7348
7349 * Makefile.in (SFILE): Add "common/job-control.c".
7350 (OBS): Add "job-control.o".
7351
21ea5acd
SDJ
73522017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7353
7354 * Makefile: Remove "@host_makefile_frag@".
7355
e13cb306
PA
73562017-05-05 Pedro Alves <palves@redhat.com>
7357
7358 * configure: Regenerate.
7359
c94fee56
SDJ
73602017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7361
7362 * configure: Regenerate.
7363
a0ff9e1a
SM
73642017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7365
7366 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7367 software_single_step change of return type to
7368 std::vector<CORE_ADDR>.
7369 * linux-low.c (install_software_single_step_breakpoints):
7370 Likewise.
7371 * linux-low.h (install_software_single_step_breakpoints):
7372 Likewise.
7373
be628ab8
SDJ
73742017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7375
7376 * remote-utils.c: Include "gdb_termios.h" instead of
7377 "terminal.h".
7378 * terminal.h: Delete file.
7379
7c5ded6a
SDJ
73802017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7381
7382 * server.c: Include <vector>.
7383 <program_argv, wrapper_argv>: Convert to std::vector.
7384 (start_inferior): Rewrite function to use C++.
7385 (handle_v_run): Likewise. Update code that calculates the argv
7386 based on the vRun packet; use C++.
7387 (captured_main): Likewise.
7388
436252de
SM
73892017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7390
7391 * server.c (handle_v_cont): Initialize thread_resume::thread
7392 with null_ptid.
7393
9bf2a700
PA
73942017-04-05 Pedro Alves <palves@redhat.com>
7395
7396 * configure: Regenerate.
7397
a121b7c1
PA
73982017-04-05 Pedro Alves <palves@redhat.com>
7399
7400 * gdbreplay.c (sync_error): Constify.
7401 * linux-x86-low.c (push_opcode): Constify.
7402
21c8a587
PA
74032017-04-05 Pedro Alves <palves@redhat.com>
7404
7405 * win32-low.c (get_child_debug_event)
7406 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7407 Report TARGET_WAITKIND_SPURIOUS instead.
7408
fb32b4f7
PA
74092017-04-05 Pedro Alves <palves@redhat.com>
7410
e79be6e5
SM
7411 * remote-utils.c (remote_prepare, remote_open): Constify.
7412 * remote-utils.h (remote_prepare, remote_open): Constify.
7413 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7414
65dd1e59
SM
74152017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7416
7417 * Makefile.in (clean): Clear .deps.
7418
8fa5b777
SM
74192017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7420
7421 * .gitignore: Remove generated files, replace with wildcard.
7422 * (clean): Replace removal of generated files with wildcard.
7423 (version.c): Replace with...
7424 (version-generated.c): ...this.
7425 (xml-builtin.c): Replace with...
7426 (xml-builtin-generated.c): ...this.
7427 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7428 (%.c: *regformats*): Replace with...
7429 (%-generated.c: *regformats*): ...this.
7430
a12e714b
MF
74312017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7432
7433 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7434 (xtensa_fill_gregset): Call collect_register_by_name for
7435 threadptr register.
7436 (xtensa_store_gregset): Call supply_register_by_name for
7437 threadptr register.
7438
1a09b50a
MF
74392017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7440
7441 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7442 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7443 (xtensa_store_gregset): Call supply_register for all registers in
7444 a0_regnum..a0_regnum + C0_NREGS range.
7445
1a01e7c6
SM
74462017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7447
7448 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7449 (ax-ipa.o: ax.c): Remove.
7450 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7451 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7452 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7453 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7454 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7455
36bc18a8
SM
74562017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7457
7458 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7459 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7460 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7461 (errors-ipa.o: ../common/errors.c): Remove.
7462 (format-ipa.o: ../common/format.c): Remove.
7463 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7464
a8ebe3d5
SM
74652017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7466
7467 * Makefile.in (%-ipa.o: %.c): New rule.
7468 (tracepoint-ipa.o: tracepoint.c): Remove.
7469 (utils-ipa.o: utils.c): Remove.
7470 (remote-utils-ipa.o: remote-utils.c): Remove.
7471 (regcache-ipa.o: regcache.c): Remove.
7472 (i386-linux-ipa.o: i386-linux.c): Remove.
7473 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7474 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7475 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7476 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7477 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7478 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7479 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7480 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7481 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7482 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7483 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7484 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7485 (aarch64-ipa.o: aarch64.c): Remove.
7486 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7487 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7488 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7489 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7490 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7491 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7492 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7493 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7494 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7495 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7496 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7497 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7498 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7499 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7500 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7501 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7502 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7503 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7504 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7505 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7506 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7507 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7508 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7509 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7510 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7511 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7512 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7513 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7514 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7515 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7516 (tdesc-ipa.o: tdesc.c): Remove.
7517 (x32-linux-ipa.o: x32-linux.c): Remove.
7518 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7519 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7520
50cfacb7
SM
75212017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7522
7523 * Makefile.in (%.o: ../arch/%.c): New rule.
7524 (arm.o: ../arch/arm.c): Remove.
7525 (arm-linux.o: ../arch/arm-linux.c): Remove.
7526 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7527 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7528
c5a22423
SM
75292017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7530
7531 * Makefile.in (%.o: ../nat/%.c): New rule.
7532 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7533 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7534 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7535 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7536 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7537 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7538 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7539 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7540 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7541 (linux-personality.o: ../nat/linux-personality.c): Remove.
7542 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7543 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7544 (x86-linux.o: ../nat/x86-linux.c): Remove.
7545 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7546 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7547
6bda016b
SM
75482017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7549
7550 * Makefile.in (%.o: ../common/%.c): New rule.
7551 (signals.o: ../common/signals.c): Remove.
7552 (print-utils.o: ../common/print-utils.c): Remove.
7553 (rsp-low.o: ../common/rsp-low.c): Remove.
7554 (common-utils.o: ../common/common-utils.c): Remove.
7555 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7556 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7557 (vec.o: ../common/vec.c): Remove.
7558 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7559 (xml-utils.o: ../common/xml-utils.c): Remove.
7560 (ptid.o: ../common/ptid.c): Remove.
7561 (buffer.o: ../common/buffer.c): Remove.
7562 (format.o: ../common/format.c): Remove.
7563 (filestuff.o: ../common/filestuff.c): Remove.
7564 (agent.o: ../common/agent.c): Remove.
7565 (errors.o: ../common/errors.c): Remove.
7566 (environ.o: ../common/environ.c): Remove.
7567 (common-debug.o: ../common/common-debug.c): Remove.
7568 (cleanups.o: ../common/cleanups.c): Remove.
7569 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7570 (fileio.o: ../common/fileio.c): Remove.
7571 (common-regcache.o: ../common/common-regcache.c): Remove.
7572 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7573 (new-op.o: ../common/new-op.c): Remove.
7574 (btrace-common.o: ../common/btrace-common.c): Remove.
7575
21122961
SM
75762017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7577
7578 * Makefile.in (%.o: ../target/%.c): New rule.
7579 (waitstatus.o: ../target/waitstatus.c): Remove.
7580
c362e621
SM
75812017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7582
7583 * Makefile.in
7584 (%.c: ../regformats/%.dat,
7585 (%.c: ../regformats/arm/%.dat,
7586 (%.c: ../regformats/i386/%.dat,
7587 (%.c: ../regformats/rs6000/%.dat): New rules.
7588 (aarch64.c): Remove.
7589 (reg-arm.c): Remove.
7590 (arm-with-iwmmxt.c): Remove.
7591 (arm-with-vfpv2.c): Remove.
7592 (arm-with-vfpv3.c): Remove.
7593 (arm-with-neon.c): Remove.
7594 (reg-bfin.c): Remove.
7595 (reg-cris.c): Remove.
7596 (reg-crisv32.c): Remove.
7597 (i386.c): Remove.
7598 (i386-linux.c): Remove.
7599 (i386-avx.c): Remove.
7600 (i386-avx-linux.c): Remove.
7601 (i386-avx-avx512.c): Remove.
7602 (i386-avx-avx512-linux.c): Remove.
7603 (i386-mpx.c): Remove.
7604 (i386-mpx-linux.c): Remove.
7605 (i386-avx-mpx-avx512-pku.c): Remove.
7606 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7607 (i386-avx-mpx.c): Remove.
7608 (i386-avx-mpx-linux.c): Remove.
7609 (i386-mmx.c): Remove.
7610 (i386-mmx-linux.c): Remove.
7611 (reg-ia64.c): Remove.
7612 (reg-m32r.c): Remove.
7613 (reg-m68k.c): Remove.
7614 (reg-cf.c): Remove.
7615 (mips-linux.c): Remove.
7616 (mips-dsp-linux.c): Remove.
7617 (mips64-linux.c): Remove.
7618 (mips64-dsp-linux.c): Remove.
7619 (nios2-linux.c): Remove.
7620 (powerpc-32.c): Remove.
7621 (powerpc-32l.c): Remove.
7622 (powerpc-altivec32l.c): Remove.
7623 (powerpc-cell32l.c): Remove.
7624 (powerpc-vsx32l.c): Remove.
7625 (powerpc-isa205-32l.c): Remove.
7626 (powerpc-isa205-altivec32l.c): Remove.
7627 (powerpc-isa205-vsx32l.c): Remove.
7628 (powerpc-e500l.c): Remove.
7629 (powerpc-64l.c): Remove.
7630 (powerpc-altivec64l.c): Remove.
7631 (powerpc-cell64l.c): Remove.
7632 (powerpc-vsx64l.c): Remove.
7633 (powerpc-isa205-64l.c): Remove.
7634 (powerpc-isa205-altivec64l.c): Remove.
7635 (powerpc-isa205-vsx64l.c): Remove.
7636 (s390-linux32.c): Remove.
7637 (s390-linux32v1.c): Remove.
7638 (s390-linux32v2.c): Remove.
7639 (s390-linux64.c): Remove.
7640 (s390-linux64v1.c): Remove.
7641 (s390-linux64v2.c): Remove.
7642 (s390-te-linux64.c): Remove.
7643 (s390-vx-linux64.c): Remove.
7644 (s390-tevx-linux64.c): Remove.
7645 (s390x-linux64.c): Remove.
7646 (s390x-linux64v1.c): Remove.
7647 (s390x-linux64v2.c): Remove.
7648 (s390x-te-linux64.c): Remove.
7649 (s390x-vx-linux64.c): Remove.
7650 (s390x-tevx-linux64.c): Remove.
7651 (tic6x-c64xp-linux.c): Remove.
7652 (tic6x-c64x-linux.c): Remove.
7653 (tic6x-c62x-linux.c): Remove.
7654 (reg-sh.c): Remove.
7655 (reg-sparc64.c): Remove.
7656 (reg-spu.c): Remove.
7657 (amd64.c): Remove.
7658 (amd64-linux.c): Remove.
7659 (amd64-avx.c): Remove.
7660 (amd64-avx-linux.c): Remove.
7661 (amd64-avx-avx512.c): Remove.
7662 (amd64-avx-avx512-linux.c): Remove.
7663 (amd64-mpx.c): Remove.
7664 (amd64-mpx-linux.c): Remove.
7665 (amd64-avx-mpx-avx512-pku.c): Remove.
7666 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7667 (amd64-avx-mpx.c): Remove.
7668 (amd64-avx-mpx-linux.c): Remove.
7669 (x32.c): Remove.
7670 (x32-linux.c): Remove.
7671 (x32-avx.c): Remove.
7672 (x32-avx-linux.c): Remove.
7673 (x32-avx-avx512.c): Remove.
7674 (x32-avx-avx512-linux.c): Remove.
7675 (reg-xtensa.c): Remove.
7676 (reg-tilegx.c): Remove.
7677 (reg-tilegx32.c): Remove.
7678
1672e0d9
SDJ
76792017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7680
7681 * Makefile.in (SFILES): Add "common/environ.c".
7682 (OBJS): Add "common/environ.h".
7683
239b6d10
WT
76842017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7685
7686 * configure.ac: Check if the fs_base and gs_base members of
7687 `struct user_regs_struct' exist.
7688 * config.in: Regenerated.
7689 * configure: Likewise.
7690
694b382c
AT
76912017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7692
7693 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7694 target_read_memory.
7695 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7696 (get_next_pcs_syscall_next_pc): Likewise.
7697
7dc53023
LM
76982016-12-23 Luis Machado <lgustavo@codesourcery.com>
7699
7700 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7701 * nto-x86-low.c: Likewise.
7702
ad02e4fe
SM
77032016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7704
7705 * Makefile.in: Include disable-implicit-rules.mk.
7706
dcb07cfa
PA
77072016-11-23 Pedro Alves <palves@redhat.com>
7708
7709 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7710 (debug_vprintf): Use std::chrono::steady_clock instead of
7711 gettimeofday. Use '.' instead of ':'.
7712 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7713 (get_timestamp): Use std::chrono::steady_clock instead of
7714 gettimeofday.
7715
8629c02c
SM
77162016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7717
7718 * Makefile.in: Fix whitespace formatting.
7719
b593ecca
SM
77202016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7721
7722 * Makefile.in (SFILES, OBS): Flatten list and order
7723 alphabetically.
7724
9986ba08
PA
77252016-11-23 Pedro Alves <palves@redhat.com>
7726
7727 * event-loop.c (handle_file_event): Use warning.
7728 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7729 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7730 Use warning.
7731
4eefa7bc
PA
77322016-11-23 Pedro Alves <palves@redhat.com>
7733
7734 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7735 output.
7736 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7737 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7738 debug_printf and debug_flush for debug output.
7739 * server.c (handle_general_set): Likewise.
7740 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7741 output.
7742
5443506e
SM
77432016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7744
7745 * Makefile.in (.c.o): Replace rule with ...
7746 (%.o: %.c): ... this one.
7747
3b165252
SM
77482016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7749
7750 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7751 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7752 make.
7753 * configure.ac: Remove checks for the make program.
7754 * configure: Re-generate.
7755
0bcda685
PA
77562016-10-28 Pedro Alves <palves@redhat.com>
7757
7758 * Makefile.in (CXX_DIALECT): Get from configure.
7759 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7760 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7761 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7762 * config.in: Regenerate.
7763 * configure: Regenerate.
7764
c3805894
YQ
77652016-10-27 Yao Qi <yao.qi@linaro.org>
7766
7767 * linux-low.c (linux_supports_range_stepping): Return true if
7768 can_software_single_step return true.
7769
89342618
YQ
77702016-10-27 Yao Qi <yao.qi@linaro.org>
7771
7772 * inferiors.c (find_inferior_in_random): New function.
7773 * inferiors.h (find_inferior_in_random): Declare.
7774 * linux-low.c (linux_wait_for_event_filtered): Call
7775 find_inferior_in_random instead of find_inferior.
7776
e3652c84
YQ
77772016-10-27 Yao Qi <yao.qi@linaro.org>
7778
7779 * linux-low.c (linux_wait_1): If single-step breakpoints are
7780 inserted, remove them.
7781
5a04c4cf
PA
77822016-10-26 Pedro Alves <palves@redhat.com>
7783
7784 * linux-low.c (handle_extended_wait): Link parent/child fork
7785 threads.
7786 (linux_wait_1): Unlink them.
7787 (linux_set_resume_request): Ignore resume requests for
7788 already-resumed and unhandled fork child threads.
7789 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7790 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7791 New functions.
7792 (handle_v_requests) <vCont>: Don't call require_running.
7793 * server.h (in_queued_stop_replies): New declaration.
7794
cb93dc7f
YQ
77952016-10-24 Yao Qi <yao.qi@linaro.org>
7796
7797 PR server/20733
7798 * linux-aarch64-low.c (append_insns): Cast the return value to
7799 'uint32_t *'.
7800
a1078bea
YQ
78012016-10-10 Yao Qi <yao.qi@linaro.org>
7802
7803 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7804
1fb77080
SDJ
78052016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7806
7807 * target.c (target_supports_multi_process): New function, moved
7808 from...
7809 * target.h (target_supports_multi_process): ... here. Remove
7810 macro.
7811
39b5a3b9
TT
78122016-10-05 Tom Tromey <tom@tromey.com>
7813
7814 PR remote/20655:
7815 * tracepoint.c (handle_tracepoint_bkpts): Check
7816 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7817
c1d0b70a
YQ
78182016-10-05 Yao Qi <yao.qi@linaro.org>
7819
7820 * configure.srv: Update the path of arm-*.xml files.
7821
0a69eedb
YQ
78222016-10-05 Terry Guo <terry.guo@arm.com>
7823 Yao Qi <yao.qi@linaro.org>
7824
7825 * Makefile.in: Adjust the path of rules.
7826 * configure.srv: Update the path of xml files.
7827 * regformats/arm-with-iwmmxt.dat: Regenerated.
7828 * regformats/arm-with-neon.dat: Likewise.
7829 * regformats/arm-with-vfpv2.dat: Likewise.
7830 * regformats/arm-with-vfpv3.dat Likewise.
7831
17e16485
YQ
78322016-09-30 Yao Qi <yao.qi@linaro.org>
7833
7834 PR gdbserver/20627
7835 * target.c (target_stop_and_wait): Don't call
7836 target_continue_no_signal, use resume_stop instead.
7837
edeeb602
YQ
78382016-09-26 Yao Qi <yao.qi@linaro.org>
7839
7840 * linux-low.c (linux_wait_1): Call debug_exit.
7841
503b1c39
PA
78422016-09-23 Pedro Alves <palves@redhat.com>
7843
7844 * Makefile.in (SFILES): Add common/new-op.c.
7845 (OBS): Add common/new-op.o.
7846 (new-op.o): New rule.
7847
74172ecf
SM
78482016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7849
7850 * .gitinore: Ignore more files.
7851
fc6cda2e
YQ
78522016-09-21 Yao Qi <yao.qi@linaro.org>
7853
7854 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7855 23.
7856
bc1e6c81
SDJ
78572016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7858
7859 * server.c (start_inferior): Call target_mourn_inferior instead of
7860 mourn_inferior; pass ptid_t argument to it.
7861 (resume): Likewise.
7862 (handle_target_event): Likewise.
7863 * target.c (target_mourn_inferior): New function.
7864 * target.h (mourn_inferior): Delete macro.
7865
0e00e962
AA
78662016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7867
7868 * linux-low.c (lwp_is_stepping): New function.
7869
1d8cb77d
CL
78702016-09-06 Carl Love <cel@us.ibm.com>
7871
7872 * server.c (start_inferior): Fixed comment, requested comment change
7873 didn't get updated correctly. Removed reference to ptrace () call as
7874 it is only true on Linux systems.
7875
7313bced
CL
78762016-09-06 Carl Love <cel@us.ibm.com>
7877
7878 * server.c (start_inferior): Do not call
7879 function target_post_create_inferior () if the
7880 inferior process has already exited.
7881
cf6de44d
PA
78822016-09-05 Pedro Alves <palves@redhat.com>
7883
7884 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7885 (COMPILE.pre, CC_LD): Use CXX directly.
7886 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7887 * acinclude.m4: Don't include build-with-cxx.m4.
7888 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7889 * configure: Regenerate.
7890
c1da6748
AT
78912016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7892
7893 PR gdb/19495
7894 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7895 call writing data to own_buf.
7896
f2b9e3df
SDJ
78972016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7898
7899 * target.c (mywait): Call target_wait instead of
7900 the_target->wait.
7901 (target_wait): New function.
7902
049a8570
SDJ
79032016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7904
7905 * server.c (start_inferior): New variable 'ptid'. Replace calls
7906 to the_target->resume by target_continue{,_no_signal}, depending
7907 on the case.
7908 * target.c (target_stop_and_wait): Call target_continue_no_signal
7909 instead of the_target->resume.
7910 (target_continue): New function.
7911
3aa5cfa0
AT
79122016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7913
7914 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7915
754653a7
AZ
79162016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7917
7918 PR server/20491
7919 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7920 ps_prochandle.
7921 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7922 * linux-arm-low.c (ps_get_thread_area): Likewise.
7923 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7924 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7925 * linux-mips-low.c (ps_get_thread_area): Likewise.
7926 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7927 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7928 * linux-x86-low.c (ps_get_thread_area): Likewise.
7929 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7930
ed036b40
PA
79312016-08-19 Pedro Alves <palves@redhat.com>
7932
7933 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7934
c8ef42ee
PA
79352016-08-19 Pedro Alves <palves@redhat.com>
7936
7937 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7938 comment. Use memcpy instead of casting through unsigned long.
7939
9c235a72
PA
79402016-08-19 Pedro Alves <palves@redhat.com>
7941
7942 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7943 allocating around 0x80000000.
7944
201506da
PA
79452016-08-19 Pedro Alves <palves@redhat.com>
7946
7947 PR gdb/20415
7948 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7949 (x32-avx512-linux-ipa.o): New rules.
7950 * configure.ac (x86_64-*-linux*): New x32 check.
7951 * configure.srv (ipa_x32_linux_regobj): New.
7952 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7953 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7954 descriptions.
7955 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7956 descriptions.
7957 * configure: Regenerate.
7958
f348d89a
PA
79592016-08-09 Pedro Alves <palves@redhat.com>
7960
7961 PR gdb/18653
7962 * Makefile.in (OBS): Add signals-state-save-restore.o.
7963 (signals-state-save-restore.o): New rule.
7964 * config.in: Regenerate.
7965 * configure: Regenerate.
7966 * linux-low.c: Include "signals-state-save-restore.h".
7967 (linux_create_inferior): Call
7968 restore_original_signals_state.
7969 * server.c: Include "dispositions-save-restore.h".
7970 (captured_main): Call save_original_signals_state.
7971
1baf5149
PA
79722016-08-05 Pedro Alves <palves@redhat.com>
7973
7974 * configure: Regenerate.
7975
fcd4a73d
YQ
79762016-08-04 Yao Qi <yao.qi@linaro.org>
7977
7978 * linux-low.c (regsets_fetch_inferior_registers): Check
7979 errno is ESRCH or not.
7980
979659d0
YQ
79812016-08-02 Yao Qi <yao.qi@linaro.org>
7982
7983 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7984 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7985 (thread_db_load_search): Update.
7986 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7987 td_ta_set_event and td_ta_event_getmsg.
7988
6598661d
PA
79892016-07-26 Pedro Alves <palves@redhat.com>
7990
7991 PR server/20414
7992 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7993 of unsigned long for 64-bit registers and use uint32_t instead of
7994 unsigned int for 32-bit registers.
7995
9cf12d57
PA
79962016-07-26 Pedro Alves <palves@redhat.com>
7997
7998 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7999 to 'ptrace'.
8000
305450ed
TT
80012016-07-21 Tom Tromey <tom@tromey.com>
8002
8003 * configure: Rebuild.
8004
2583da7c
YQ
80052016-07-21 Yao Qi <yao.qi@linaro.org>
8006
8007 * mem-break.c (find_gdb_breakpoint): Cast bp to
8008 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8009
21536b36
YQ
80102016-07-21 Yao Qi <yao.qi@linaro.org>
8011
8012 * server.c (handle_v_requests): Support s and S actions
8013 if target_supports_software_single_step return true.
8014
8901d193
YQ
80152016-07-21 Yao Qi <yao.qi@linaro.org>
8016
8017 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8018 is resume_step, call maybe_hw_step.
8019 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8020 and unstop them.
8021 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8022 breakpoints or not.
8023 (proceed_one_lwp): If resume request is resume_step, install
8024 reinsert breakpoints and call maybe_hw_step.
8025
0e9a339e
YQ
80262016-07-21 Yao Qi <yao.qi@linaro.org>
8027
8028 * linux-low.c (proceed_one_lwp): Declare.
8029 (linux_resume_one_thread): Remove local variable 'step'.
8030 Lift code enqueue signal. Call proceed_one_lwp instead of
8031 linux_resume_one_lwp.
8032
4281b351
YQ
80332016-07-21 Yao Qi <yao.qi@linaro.org>
8034
8035 * linux-low.c (linux_resume_one_thread): Call
8036 enqueue_pending_signal.
8037
984a2c04
YQ
80382016-07-21 Yao Qi <yao.qi@linaro.org>
8039
8040 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8041 * inferiors.c (do_restore_current_thread_cleanup): New function.
8042 (make_cleanup_restore_current_thread): Likewise.
8043 * linux-low.c (install_software_single_step_breakpoints): Call
8044 make_cleanup_restore_current_thread. Switch current_thread to
8045 thread.
8046
bec903c9
YQ
80472016-07-21 Yao Qi <yao.qi@linaro.org>
8048
8049 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8050 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8051 (clone_one_breakpoint): Likewise.
8052 (delete_reinsert_breakpoints): Change parameter to thread.
8053 Callers updated.
8054 (has_reinsert_breakpoints): Likewise.
8055 (uninsert_reinsert_breakpoints): Likewise.
8056 (reinsert_reinsert_breakpoints): Likewise.
8057 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8058 (delete_reinsert_breakpoints): Likewise.
8059 (reinsert_reinsert_breakpoints): Likewise.
8060 (uninsert_reinsert_breakpoints): Likewise.
8061 (has_reinsert_breakpoints): Likewise.
8062
63c40ec7
YQ
80632016-07-21 Yao Qi <yao.qi@linaro.org>
8064
8065 * inferiors.c (get_thread_process): Make parameter const.
8066 * inferiors.h (get_thread_process): Update declaration.
8067 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8068 Add new parameters child_thread and parent_thread. Callers
8069 updated.
8070 * mem-break.h (clone_all_breakpoints): Update declaration.
8071
9aa76cd0
YQ
80722016-07-21 Yao Qi <yao.qi@linaro.org>
8073
8074 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8075 <command_list, handler>: Remove.
8076 (struct gdb_breakpoint): New.
8077 (struct other_breakpoint): New.
8078 (struct reinsert_breakpoint): New.
8079 (is_gdb_breakpoint): New function.
8080 (any_persistent_commands): Update command_list if
8081 is_gdb_breakpoint returns true.
8082 (set_breakpoint): Create breakpoints according to their types.
8083 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8084 (set_gdb_breakpoint_1): Likewise.
8085 (set_gdb_breakpoint): Likewise.
8086 (clear_breakpoint_conditions): Change parameter type to
8087 'struct gdb_breakpoint *'.
8088 (clear_breakpoint_commands): Likewise.
8089 (clear_breakpoint_conditions_and_commands): Likewise.
8090 (add_condition_to_breakpoint): Likewise.
8091 (add_breakpoint_condition): Likewise.
8092 (add_commands_to_breakpoint): Likewise.
8093 (check_breakpoints): Check other_breakpoint.
8094 (clone_one_breakpoint): Clone breakpopint according to its type.
8095 * mem-break.h (struct gdb_breakpoint): Declare.
8096 (set_gdb_breakpoint): Update declaration.
8097 (clear_breakpoint_conditions_and_commands): Likewise.
8098 (add_breakpoint_condition): Likewise.
8099 (add_breakpoint_commands): Likewise.
8100 * server.c (process_point_options): Change parameter type to
8101 'struct gdb_breakpoint *'.
8102
811f8301
YQ
81032016-07-21 Yao Qi <yao.qi@linaro.org>
8104
8105 * mem-break.c (set_breakpoint_at): Rename it to ...
8106 (set_breakpoint_type_at): ... it.
8107 (set_breakpoint_at): Call set_breakpoint_type_at.
8108 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8109 * mem-break.h (set_breakpoint_at): Update comments.
8110
b1c51e36
CLT
81112016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8112
8113 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8114 to buf parameter.
8115 (nios2_store_gregset): Likewise.
8116
ced2dffb
PA
81172016-07-01 Pedro Alves <palves@redhat.com>
8118 Antoine Tremblay <antoine.tremblay@ericsson.com>
8119
8120 * linux-low.c: Change interface to take the target lwp_info
8121 pointer directly and return void. Handle detaching from a zombie
8122 thread.
8123 (linux_detach_lwp_callback): New function.
8124 (linux_detach): Detach from the leader thread after detaching from
8125 the clone threads.
8126
2ac09a5b
YQ
81272016-06-28 Yao Qi <yao.qi@linaro.org>
8128
8129 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8130 for variable new_offset.
8131 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8132 (aarch64_ftrace_insn_reloc_cb): Likewise.
8133 (aarch64_ftrace_insn_reloc_tb): Likewise.
8134 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8135 PRIx64 instead of PRIx32.
8136
79e7fd4f
YQ
81372016-06-28 Yao Qi <yao.qi@linaro.org>
8138
8139 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8140 (the_low_target): Install arm_get_syscall_trapinfo.
8141
061fc021
YQ
81422016-06-28 Yao Qi <yao.qi@linaro.org>
8143
8144 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8145 function.
8146 (the_low_target): Install aarch64_get_syscall_trapinfo.
8147
4cc32bec
YQ
81482016-06-28 Yao Qi <yao.qi@linaro.org>
8149
8150 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8151 Callers updated.
8152 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8153 Remove parameter sysno.
8154 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8155 sysret.
8156
782c1122
AA
81572016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8158
8159 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8160 (s390_emit_ne_goto): Likewise.
8161 (s390_emit_lt_goto): Likewise.
8162 (s390_emit_le_goto): Likewise.
8163 (s390_emit_gt_goto): Likewise.
8164 (s390_emit_ge_goto): Likewise.
8165 (s390x_emit_eq_goto): Likewise.
8166 (s390x_emit_ne_goto): Likewise.
8167 (s390x_emit_lt_goto): Likewise.
8168 (s390x_emit_le_goto): Likewise.
8169 (s390x_emit_gt_goto): Likewise.
8170 (s390x_emit_ge_goto): Likewise.
8171 (s390_emit_ops_impl): Mark variable static.
8172 (s390x_emit_ops): Likewise.
8173
2e7b624b
YQ
81742016-06-17 Yao Qi <yao.qi@linaro.org>
8175
8176 * linux-low.c (handle_extended_wait): Call
8177 uninsert_reinsert_breakpoints for the parent process. Remove
8178 reinsert breakpoints from the child process. Reinsert them to
8179 the parent process when vfork is done.
8180 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8181 (reinsert_reinsert_breakpoints): New function.
8182 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8183 (reinsert_reinsert_breakpoints): Declare.
8184
8a81c5d7
YQ
81852016-06-17 Yao Qi <yao.qi@linaro.org>
8186
8187 * linux-low.c (handle_extended_wait): If the parent is doing
8188 step-over, remove the reinsert breakpoints from the forked child.
8189
f50bf8e5
YQ
81902016-06-17 Yao Qi <yao.qi@linaro.org>
8191
8192 * linux-low.c (unsuspend_all_lwps): Declare.
8193 (linux_low_filter_event): If thread exited, call finish_step_over.
8194 If step-over is finished, unsuspend other threads.
8195
8376a3cb
YQ
81962016-06-17 Yao Qi <yao.qi@linaro.org>
8197
8198 * linux-low.c (linux_resume_one_lwp_throw): Assert
8199 has_reinsert_breakpoints returns false.
8200 * mem-break.c (delete_disabled_breakpoints): Assert
8201 bp type isn't reinsert_breakpoint.
8202
f79b145d
YQ
82032016-06-17 Yao Qi <yao.qi@linaro.org>
8204
8205 * linux-low.c (maybe_hw_step): New function.
8206 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8207 (finish_step_over): Switch current_thread to lwp temporarily,
8208 and assert has_reinsert_breakpoints returns true.
8209 (proceed_one_lwp): Call maybe_hw_step.
8210 * mem-break.c (has_reinsert_breakpoints): New function.
8211 * mem-break.h (has_reinsert_breakpoints): Declare.
8212
0ae534d2
JT
82132016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8214
8215 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8216
fcdad592
YQ
82172016-05-17 Yao Qi <yao.qi@linaro.org>
8218
8219 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8220 instead of find_inferior.
8221
9e784964
YQ
82222016-05-05 Yao Qi <yao.qi@linaro.org>
8223
8224 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8225 Initialize res to zero.
8226
cf2ebb6e
YQ
82272016-05-05 Yao Qi <yao.qi@linaro.org>
8228
8229 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8230 to uint32_t.
8231
c1aebf87
UW
82322016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8233
8234 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8235 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8236 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8237
35fd2deb 82382016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8239 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8240
8241 * tracepoint.c (write_inferior_int8): New function.
8242 (cmd_qtenable_disable): Write enable flag using
8243 write_inferior_int8.
8244
484b3c32
YQ
82452016-04-25 Yao Qi <yao.qi@linaro.org>
8246
8247 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8248 (need_step_over_p): Return zero if the LWP has pending signals
8249 can be delivered on software single step target.
8250
85ba7d86
YQ
82512016-04-25 Yao Qi <yao.qi@linaro.org>
8252
8253 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8254 return instead of error.
8255
3539aa13
YQ
82562016-04-22 Yao Qi <yao.qi@linaro.org>
8257
8258 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8259 to 23.
8260
5b061e98
YQ
82612016-04-22 Yao Qi <yao.qi@linaro.org>
8262
8263 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8264 signal when stepping over breakpoint with software single
8265 step.
8266
3451269c
PA
82672016-04-21 Pedro Alves <palves@redhat.com>
8268
8269 * linux-s390-low.c (s390_collect_ptrace_register)
8270 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8271 add casts.
8272 (s390_check_regset): Use void * instead of gdb_byte *.
8273
a2358508
PA
82742016-04-20 Pedro Alves <palves@redhat.com>
8275
8276 * configure: Renegerate.
8277
6885166d
YQ
82782016-04-20 Yao Qi <yao.qi@linaro.org>
8279
8280 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8281 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8282 number 16.
8283 (arm_store_gregset): Likewise.
8284
2b863f51
WT
82852016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8286
8287 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8288 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8289 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8290 (amd64-avx-mpx-linux.c): New rules.
8291 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8292 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8293 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8294 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8295 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8296 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8297 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8298 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8299 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8300 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8301 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8302 * linux-x86-low.c (x86_linux_read_description): Add case for
8303 X86_XSTATE_AVX_MPX_MASK.
8304 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8305 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8306 init_registers_i386_avx_mpx_linux.
8307 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8308 (initialize_low_tracepoint): Call
8309 init_registers_i386_avx_mpx_linux.
8310 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8311 (initialize_low_tracepoint): Call
8312 init_registers_amd64_avx_mpx_linux.
8313 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8314 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8315 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8316 declarations.
8317
9b30624b
PA
83182016-04-18 Pedro Alves <palves@redhat.com>
8319
8320 * configure: Regenerate.
8321
45e3745e
AT
83222016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8323
8324 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8325 (aarch64_emit_sub): Likewise.
8326
2afc13ff
PA
83272016-04-12 Pedro Alves <palves@redhat.com>
8328
8329 * utils.c (prepare_to_throw_exception): Delete.
8330
6e774b13
SM
83312016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8332
8333 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8334
4dca19f8
MK
83352016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8336
8337 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8338
d0a9981f
MK
83392016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8340
8341 * linux-aarch64-ipa.c: Add <elf.h> include.
8342 * linux-ppc-ipa.c: Add <elf.h> include.
8343 * linux-s390-ipa.c: Add <elf.h> include.
8344
252db07e
MK
83452016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8346
8347 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8348 (get_raw_reg_ptr): Likewise.
8349 (get_trace_state_variable_value_ptr): Likewise.
8350 (set_trace_state_variable_value_ptr): Likewise.
8351 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8352 char *.
8353
14e2b6d9
MK
83542016-03-31 Wei-cheng Wang <cole945@gmail.com>
8355 Marcin Kościelnicki <koriakin@0x04.net>
8356
8357 PR/17221
8358 * linux-ppc-low.c (emit_insns): New function.
8359 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8360 (ppc_emit_prologue): New function.
8361 (ppc_emit_epilogue): New function.
8362 (ppc_emit_add): New function.
8363 (ppc_emit_sub): New function.
8364 (ppc_emit_mul): New function.
8365 (ppc_emit_lsh): New function.
8366 (ppc_emit_rsh_signed): New function.
8367 (ppc_emit_rsh_unsigned): New function.
8368 (ppc_emit_ext): New function.
8369 (ppc_emit_zero_ext): New function.
8370 (ppc_emit_log_not): New function.
8371 (ppc_emit_bit_and): New function.
8372 (ppc_emit_bit_or): New function.
8373 (ppc_emit_bit_xor): New function.
8374 (ppc_emit_bit_not): New function.
8375 (ppc_emit_equal): New function.
8376 (ppc_emit_less_signed): New function.
8377 (ppc_emit_less_unsigned): New function.
8378 (ppc_emit_ref): New function.
8379 (ppc_emit_const): New function.
8380 (ppc_emit_reg): New function.
8381 (ppc_emit_pop): New function.
8382 (ppc_emit_stack_flush): New function.
8383 (ppc_emit_swap): New function.
8384 (ppc_emit_stack_adjust): New function.
8385 (ppc_emit_call): New function.
8386 (ppc_emit_int_call_1): New function.
8387 (ppc_emit_void_call_2): New function.
8388 (ppc_emit_if_goto): New function.
8389 (ppc_emit_goto): New function.
8390 (ppc_emit_eq_goto): New function.
8391 (ppc_emit_ne_goto): New function.
8392 (ppc_emit_lt_goto): New function.
8393 (ppc_emit_le_goto): New function.
8394 (ppc_emit_gt_goto): New function.
8395 (ppc_emit_ge_goto): New function.
8396 (ppc_write_goto_address): New function.
8397 (ppc_emit_ops_impl): New static variable.
8398 (ppc64v1_emit_prologue): New function.
8399 (ppc64v2_emit_prologue): New function.
8400 (ppc64_emit_epilogue): New function.
8401 (ppc64_emit_add): New function.
8402 (ppc64_emit_sub): New function.
8403 (ppc64_emit_mul): New function.
8404 (ppc64_emit_lsh): New function.
8405 (ppc64_emit_rsh_signed): New function.
8406 (ppc64_emit_rsh_unsigned): New function.
8407 (ppc64_emit_ext): New function.
8408 (ppc64_emit_zero_ext): New function.
8409 (ppc64_emit_log_not): New function.
8410 (ppc64_emit_bit_and): New function.
8411 (ppc64_emit_bit_or): New function.
8412 (ppc64_emit_bit_xor): New function.
8413 (ppc64_emit_bit_not): New function.
8414 (ppc64_emit_equal): New function.
8415 (ppc64_emit_less_signed): New function.
8416 (ppc64_emit_less_unsigned): New function.
8417 (ppc64_emit_ref): New function.
8418 (ppc64_emit_const): New function.
8419 (ppc64v1_emit_reg): New function.
8420 (ppc64v2_emit_reg): New function.
8421 (ppc64_emit_pop): New function.
8422 (ppc64_emit_stack_flush): New function.
8423 (ppc64_emit_swap): New function.
8424 (ppc64v1_emit_call): New function.
8425 (ppc64v2_emit_call): New function.
8426 (ppc64v1_emit_int_call_1): New function.
8427 (ppc64v2_emit_int_call_1): New function.
8428 (ppc64v1_emit_void_call_2): New function.
8429 (ppc64v2_emit_void_call_2): New function.
8430 (ppc64_emit_if_goto): New function.
8431 (ppc64_emit_eq_goto): New function.
8432 (ppc64_emit_ne_goto): New function.
8433 (ppc64_emit_lt_goto): New function.
8434 (ppc64_emit_le_goto): New function.
8435 (ppc64_emit_gt_goto): New function.
8436 (ppc64_emit_ge_goto): New function.
8437 (ppc64v1_emit_ops_impl): New static variable.
8438 (ppc64v2_emit_ops_impl): New static variable.
8439 (ppc_emit_ops): New function.
8440 (linux_low_target): Wire in ppc_emit_ops.
8441
a2174ba4
MK
84422016-03-31 Wei-cheng Wang <cole945@gmail.com>
8443 Marcin Kościelnicki <koriakin@0x04.net>
8444
8445 PR/17221
8446 * Makefile.in: Add powerpc-*-ipa.o
8447 * configure.srv: Add ipa_obj for powerpc*-linux.
8448 * linux-ppc-ipa.c: New file.
8449 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8450 includes.
8451 (PPC_FIELD): New macro.
8452 (PPC_SEXT): New macro.
8453 (PPC_OP6): New macro.
8454 (PPC_BO): New macro.
8455 (PPC_LI): New macro.
8456 (PPC_BD): New macro.
8457 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8458 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8459 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8460 (ppc_get_thread_area): New function.
8461 (is_elfv2_inferior): New function.
8462 (gen_ds_form): New function.
8463 (GEN_STD): New macro.
8464 (GEN_STDU): New macro.
8465 (GEN_LD): New macro.
8466 (GEN_LDU): New macro.
8467 (gen_d_form): New function.
8468 (GEN_ADDI): New macro.
8469 (GEN_ADDIS): New macro.
8470 (GEN_LI): New macro.
8471 (GEN_LIS): New macro.
8472 (GEN_ORI): New macro.
8473 (GEN_ORIS): New macro.
8474 (GEN_LWZ): New macro.
8475 (GEN_STW): New macro.
8476 (GEN_STWU): New macro.
8477 (gen_xfx_form): New function.
8478 (GEN_MFSPR): New macro.
8479 (GEN_MTSPR): New macro.
8480 (GEN_MFCR): New macro.
8481 (GEN_MTCR): New macro.
8482 (GEN_SYNC): New macro.
8483 (GEN_LWSYNC): New macro.
8484 (gen_x_form): New function.
8485 (GEN_OR): New macro.
8486 (GEN_MR): New macro.
8487 (GEN_LWARX): New macro.
8488 (GEN_STWCX): New macro.
8489 (GEN_CMPW): New macro.
8490 (gen_md_form): New function.
8491 (GEN_RLDICL): New macro.
8492 (GEN_RLDICR): New macro.
8493 (gen_i_form): New function.
8494 (GEN_B): New macro.
8495 (GEN_BL): New macro.
8496 (gen_b_form): New function.
8497 (GEN_BNE): New macro.
8498 (GEN_LOAD): New macro.
8499 (GEN_STORE): New macro.
8500 (gen_limm): New function.
8501 (gen_atomic_xchg): New function.
8502 (gen_call): New function.
8503 (ppc_relocate_instruction): New function.
8504 (ppc_install_fast_tracepoint_jump_pad): New function.
8505 (ppc_get_min_fast_tracepoint_insn_len): New function.
8506 (ppc_get_ipa_tdesc_idx): New function.
8507 (the_low_target): Wire in the new functions.
8508 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8509 tdescs.
8510 * linux-ppc-tdesc.h: New file.
8511
a13c4696
MK
85122016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8513
8514 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8515 (alloc_jump_pad_buffer): New function.
8516 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8517 (alloc_jump_pad_buffer): New function.
8518 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8519 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8520 (alloc_jump_pad_buffer): New function.
8521 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8522 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8523 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8524 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8525
1cda1512
MK
85262016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8527
8528 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8529 * linux-amd64-ipa.c: Likewise.
8530 * linux-i386-ipa.c: Likewise.
8531 * linux-s390-ipa.c: Likewise.
8532 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8533 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8534 set_trace_state_variable_value_ptr.
8535 (struct ipa_sym_addresses): Likewise.
8536 (symbol_list): Likewise.
8537 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8538 accessing gdb_collect directly.
8539 (gdb_collect_ptr_type): New typedef.
8540 (get_raw_reg_ptr_type): New typedef.
8541 (get_trace_state_variable_value_ptr_type): New typedef.
8542 (set_trace_state_variable_value_ptr_type): New typedef.
8543 (gdb_collect_ptr): New global.
8544 (get_raw_reg_ptr): New global.
8545 (get_trace_state_variable_value_ptr): New global.
8546 (set_trace_state_variable_value_ptr): New global.
8547 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8548 accessing get_raw_reg directly.
8549 (get_get_tsv_func_addr): Likewise for
8550 get_trace_state_variable_value_ptr.
8551 (get_set_tsv_func_addr): Likewise for
8552 set_trace_state_variable_value_ptr.
8553 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8554
72fb5488
SM
85552016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8556
8557 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8558
28170b88
MK
85592016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8560
8561 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8562 packets.
8563 (relocate_instruction): Remove own_buf.
8564 * server.c (own_buf): Make global.
8565 (handle_v_requests): Make global.
8566 * server.h (own_buf): New declaration.
8567 (handle_v_requests): New prototype.
8568
f39e8743
MK
85692016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8570
8571 PR 18377
8572 * linux-s390-low.c (add_insns): New function.
8573 (s390_emit_prologue): New function.
8574 (s390_emit_epilogue): New function.
8575 (s390_emit_add): New function.
8576 (s390_emit_sub): New function.
8577 (s390_emit_mul): New function.
8578 (s390_emit_lsh): New function.
8579 (s390_emit_rsh_signed): New function.
8580 (s390_emit_rsh_unsigned): New function.
8581 (s390_emit_ext): New function.
8582 (s390_emit_log_not): New function.
8583 (s390_emit_bit_and): New function.
8584 (s390_emit_bit_or): New function.
8585 (s390_emit_bit_xor): New function.
8586 (s390_emit_bit_not): New function.
8587 (s390_emit_equal): New function.
8588 (s390_emit_less_signed): New function.
8589 (s390_emit_less_unsigned): New function.
8590 (s390_emit_ref): New function.
8591 (s390_emit_if_goto): New function.
8592 (s390_emit_goto): New function.
8593 (s390_write_goto_address): New function.
8594 (s390_emit_litpool): New function.
8595 (s390_emit_const): New function.
8596 (s390_emit_call): New function.
8597 (s390_emit_reg): New function.
8598 (s390_emit_pop): New function.
8599 (s390_emit_stack_flush): New function.
8600 (s390_emit_zero_ext): New function.
8601 (s390_emit_swap): New function.
8602 (s390_emit_stack_adjust): New function.
8603 (s390_emit_set_r2): New function.
8604 (s390_emit_int_call_1): New function.
8605 (s390_emit_void_call_2): New function.
8606 (s390_emit_eq_goto): New function.
8607 (s390_emit_ne_goto): New function.
8608 (s390_emit_lt_goto): New function.
8609 (s390_emit_le_goto): New function.
8610 (s390_emit_gt_goto): New function.
8611 (s390_emit_ge_goto): New function.
8612 (s390x_emit_prologue): New function.
8613 (s390x_emit_epilogue): New function.
8614 (s390x_emit_add): New function.
8615 (s390x_emit_sub): New function.
8616 (s390x_emit_mul): New function.
8617 (s390x_emit_lsh): New function.
8618 (s390x_emit_rsh_signed): New function.
8619 (s390x_emit_rsh_unsigned): New function.
8620 (s390x_emit_ext): New function.
8621 (s390x_emit_log_not): New function.
8622 (s390x_emit_bit_and): New function.
8623 (s390x_emit_bit_or): New function.
8624 (s390x_emit_bit_xor): New function.
8625 (s390x_emit_bit_not): New function.
8626 (s390x_emit_equal): New function.
8627 (s390x_emit_less_signed): New function.
8628 (s390x_emit_less_unsigned): New function.
8629 (s390x_emit_ref): New function.
8630 (s390x_emit_if_goto): New function.
8631 (s390x_emit_const): New function.
8632 (s390x_emit_call): New function.
8633 (s390x_emit_reg): New function.
8634 (s390x_emit_pop): New function.
8635 (s390x_emit_stack_flush): New function.
8636 (s390x_emit_zero_ext): New function.
8637 (s390x_emit_swap): New function.
8638 (s390x_emit_stack_adjust): New function.
8639 (s390x_emit_int_call_1): New function.
8640 (s390x_emit_void_call_2): New function.
8641 (s390x_emit_eq_goto): New function.
8642 (s390x_emit_ne_goto): New function.
8643 (s390x_emit_lt_goto): New function.
8644 (s390x_emit_le_goto): New function.
8645 (s390x_emit_gt_goto): New function.
8646 (s390x_emit_ge_goto): New function.
8647 (s390_emit_ops): New function.
8648 (struct linux_target_ops): Fill in emit_ops hook.
8649
abd9baf9
MK
86502016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8651
8652 PR 18377
8653 * Makefile.in: Add s390 IPA files.
8654 * configure.srv: Build IPA for s390.
8655 * linux-s390-ipa.c: New file.
8656 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8657 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8658 (tdesc_s390_linux32): Likewise.
8659 (init_registers_s390_linux32v1): Likewise.
8660 (tdesc_s390_linux32v1): Likewise.
8661 (init_registers_s390_linux32v2): Likewise.
8662 (tdesc_s390_linux32v2): Likewise.
8663 (init_registers_s390_linux64): Likewise.
8664 (tdesc_s390_linux64): Likewise.
8665 (init_registers_s390_linux64v1): Likewise.
8666 (tdesc_s390_linux64v1): Likewise.
8667 (init_registers_s390_linux64v2): Likewise.
8668 (tdesc_s390_linux64v2): Likewise.
8669 (init_registers_s390_te_linux64): Likewise.
8670 (tdesc_s390_te_linux64): Likewise.
8671 (init_registers_s390_vx_linux64): Likewise.
8672 (tdesc_s390_vx_linux64): Likewise.
8673 (init_registers_s390_tevx_linux64): Likewise.
8674 (tdesc_s390_tevx_linux64): Likewise.
8675 (init_registers_s390x_linux64): Likewise.
8676 (tdesc_s390x_linux64): Likewise.
8677 (init_registers_s390x_linux64v1): Likewise.
8678 (tdesc_s390x_linux64v1): Likewise.
8679 (init_registers_s390x_linux64v2): Likewise.
8680 (tdesc_s390x_linux64v2): Likewise.
8681 (init_registers_s390x_te_linux64): Likewise.
8682 (tdesc_s390x_te_linux64): Likewise.
8683 (init_registers_s390x_vx_linux64): Likewise.
8684 (tdesc_s390x_vx_linux64): Likewise.
8685 (init_registers_s390x_tevx_linux64): Likewise.
8686 (tdesc_s390x_tevx_linux64): Likewise.
8687 (have_hwcap_s390_vx): New static variable.
8688 (s390_arch_setup): Fill have_hwcap_s390_vx.
8689 (s390_get_thread_area): New function.
8690 (s390_ft_entry_gpr_esa): New const.
8691 (s390_ft_entry_gpr_zarch): New const.
8692 (s390_ft_entry_misc): New const.
8693 (s390_ft_entry_fr): New const.
8694 (s390_ft_entry_vr): New const.
8695 (s390_ft_main_31): New const.
8696 (s390_ft_main_64): New const.
8697 (s390_ft_exit_fr): New const.
8698 (s390_ft_exit_vr): New const.
8699 (s390_ft_exit_misc): New const.
8700 (s390_ft_exit_gpr_esa): New const.
8701 (s390_ft_exit_gpr_zarch): New const.
8702 (append_insns): New function.
8703 (s390_relocate_instruction): New function.
8704 (s390_install_fast_tracepoint_jump_pad): New function.
8705 (s390_get_min_fast_tracepoint_insn_len): New function.
8706 (s390_get_ipa_tdesc_idx): New function.
8707 (struct linux_target_ops): Wire in the above functions.
8708 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8709 * linux-s390-tdesc.h: New file.
8710
a4105d04
MK
87112016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8712
8713 * linux-s390-low.c (s390_supports_tracepoints): New function.
8714 (struct linux_target_ops): Fill supports_tracepoints hook.
8715
35ac8b3e
YQ
87162016-03-18 Yao Qi <yao.qi@linaro.org>
8717
8718 * linux-low.c (lwp_signal_can_be_delivered): New function.
8719 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8720
94610ec4
YQ
87212016-03-18 Yao Qi <yao.qi@linaro.org>
8722
8723 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8724 0 if signal is enqueued. Remove 'signal' from one debugging
8725 message. Move one debugging message to some lines below.
8726 Remove code setting 'signal' to 0.
8727
80aea927
YQ
87282016-03-18 Yao Qi <yao.qi@linaro.org>
8729
8730 * linux-low.c (linux_low_filter_event): Remove redundant
8731 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8732
b04fd3be
MK
87332016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8734
8735 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8736 (struct linux_target_ops): Wire in the above.
8737
c40c8d4b
YQ
87382016-03-03 Yao Qi <yao.qi@linaro.org>
8739
8740 * linux-low.c: Update comments to start_step_over.
8741
0f8288ae
YQ
87422016-03-03 Yao Qi <yao.qi@linaro.org>
8743
8744 PR server/19736
8745 * linux-low.c (handle_extended_wait): Set child suspended
8746 if event_lwp->bp_reinsert isn't zero.
8747
fdbd04a8
YQ
87482016-03-02 Yao Qi <yao.qi@linaro.org>
8749
8750 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8751 enqueue_pending_signal.
8752
6896a8fa
MK
87532016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8754
8755 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8756 is actually loaded.
8757
ab503087
MK
87582016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8759
8760 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8761 (s390_regmap_3264) [!__s390x__]: New global.
8762 (s390_collect_ptrace_register): Skip map entries containing -1.
8763 (s390_supply_ptrace_register): Ditto.
8764 (s390_fill_gprs_high): New function.
8765 (s390_store_gprs_high): New function.
8766 (s390_regsets): Add NT_S390_HIGH_GPRS.
8767 (s390_get_hwcap): Enable on 31-bit.
8768 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8769 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8770 Detect NT_S390_HIGH_GPRS.
8771 (s390_usrregs_info_3264): Enable on 31-bit.
8772 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8773 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8774
ae91f625
MK
87752016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8776
8777 PR gdb/13808
8778 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8779 * configure.srv: Ditto.
8780 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8781 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8782 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8783 (init_registers_amd64_linux): Remove prototype.
8784 (tdesc_amd64_linux): Remove declaration.
8785 (get_ipa_tdesc): New function.
8786 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8787 initialize remaining tdescs.
8788 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8789 (init_registers_i386_linux): Remove prototype.
8790 (tdesc_i386_linux): Remove declaration.
8791 (get_ipa_tdesc): New function.
8792 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8793 initialize remaining tdescs.
8794 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8795 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8796 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8797 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8798 (x86_get_ipa_tdesc_idx): New function.
8799 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8800 * linux-x86-tdesc.h: New file.
8801 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8802 (target_get_ipa_tdesc_idx): New macro.
8803 * tracepoint.c (ipa_tdesc_idx): New macro.
8804 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8805 (symbol_list): Add ipa_tdesc_idx.
8806 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8807 (ipa_tdesc): Remove.
8808 (ipa_tdesc_idx): New variable.
8809 (get_context_regcache): Use get_ipa_tdesc.
8810 (gdb_collect): Ditto.
8811 (gdb_probe): Ditto.
8812 * tracepoint.h (get_ipa_tdesc): New prototype.
8813 (ipa_tdesc): Remove.
8814
e7ad2f14
PA
88152016-02-24 Pedro Alves <palves@redhat.com>
8816
8817 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8818 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8819 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8820 Factor out common code between the USE_SIGTRAP_SIGINFO and
8821 !USE_SIGTRAP_SIGINFO blocks.
8822 (linux_low_filter_event): Call save_stop_reason instead of
8823 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8824 Update comments.
8825 (linux_wait_1): Update comments.
8826
657f9cde
WW
88272016-02-24 Wei-cheng Wang <cole945@gmail.com>
8828
8829 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8830 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8831 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8832 ppc_insert_point, ppc_remove_point.
8833
b00b61e1
MK
88342016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8835
8836 * linux-s390-low.c (s390_supports_z_point_type): New function.
8837 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8838
553cb527
YQ
88392016-02-16 Yao Qi <yao.qi@linaro.org>
8840
8841 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8842 PC. Get pc from regcache_read_pc.
8843
a5652c21
YQ
88442016-02-12 Yao Qi <yao.qi@linaro.org>
8845
8846 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8847 or linux_get_pc_32bit.
8848 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8849
ed443b61
YQ
88502016-02-12 Yao Qi <yao.qi@linaro.org>
8851
8852 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8853 arm_linux_get_next_pcs_fixup.
8854
020ecd38
MK
88552016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8856
8857 * tracepoint.c (x_tracepoint_action_download): Change
8858 write_inferior_data_ptr to write_inferior_data_pointer.
8859 (cmd_qtstart): Likewise.
8860 (write_inferior_data_ptr): Remove.
8861 (download_agent_expr): Change write_inferior_data_ptr to
8862 write_inferior_data_pointer.
8863 (download_tracepoint_1): Likewise.
8864 (download_tracepoint): Likewise.
8865 (download_trace_state_variables): Likewise.
8866
7cae9051
WW
88672016-02-11 Wei-cheng Wang <cole945@gmail.com>
8868 Marcin Kościelnicki <koriakin@0x04.net>
8869
8870 * tracepoint.c (struct tracepoint_action_ops): Remove.
8871 (struct tracepoint_action): Remove ops.
8872 (m_tracepoint_action_download, r_tracepoint_action_download)
8873 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8874 size and offset accordingly.
8875 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8876 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8877 (tracepoint_action_send, tracepoint_action_download): New functions.
8878 Helpers for trace action handlers.
8879 (add_tracepoint_action): Remove setup actions ops.
8880 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8881
9f6a71b4
YQ
88822016-02-10 Yao Qi <yao.qi@linaro.org>
8883
8884 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8885
1e94266c
SM
88862016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8887
8888 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8889 to AC_OUTPUT.
8890 * configure: Regenerate.
8891
8adce034
SM
88922016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8893
8894 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8895 void * to gdb_byte *.
8896 * linux-low.c (siginfo_fixup): Likewise.
8897 (linux_xfer_siginfo): Likewise.
8898 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8899 Likewise.
8900 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8901
93813b37
WT
89022016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8903
8904 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8905 to srv_tgtobj.
8906 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8907 to srv_tgtobj.
8908 * linux-x86-low.c [__x86_64__]: Include
8909 "nat/amd64-linux-siginfo.h".
8910 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8911 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8912 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8913 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8914 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8915 (cpt_si_fd, si_timerid, si_overrun): Move from
8916 nat/amd64-linux-siginfo.c.
8917 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8918
8424cc97
SM
89192016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8920
8921 * server.c (skip_to_semicolon): Remove.
8922 (process_point_options): Use strchrnul instead of
8923 skip_to_semicolon.
8924
4d18591b
YQ
89252016-01-26 Yao Qi <yao.qi@linaro.org>
8926
8927 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8928 * linux-low.c (install_software_single_step_breakpoints): Don't
8929 call regcache_read_pc.
8930 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8931 argument pc.
8932
d8020970
YQ
89332016-01-26 Yao Qi <yao.qi@linaro.org>
8934
8935 * linux-low.c (install_software_single_step_breakpoints): Call
8936 regcache_read_pc instead of get_pc.
8937
8b207339
YQ
89382016-01-26 Yao Qi <yao.qi@linaro.org>
8939
8940 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8941 (unblock_async_io): Rename to ...
8942 (block_unblock_async_io): ... it. New function.
8943 (enable_async_io): Don't install SIGIO handler. Unblock it
8944 instead.
8945 (disable_async_io): Don't ignore SIGIO. Block it instead.
8946 (initialize_async_io): Install SIGIO handler. Don't call
8947 unblock_async_io.
8948
18879fef
YQ
89492016-01-26 Yao Qi <yao.qi@linaro.org>
8950
8951 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8952 first character is '\003', call *the_target->request_interrupt.
8953
a0f8e08a
YQ
89542016-01-25 Yao Qi <yao.qi@linaro.org>
8955
8956 * remote-utils.c (new_thread_notify): Remove.
8957 (dead_thread_notify): Likewise.
8958 * remote-utils.h (new_thread_notify): Remove declaration.
8959 (dead_thread_notify): Likewise.
8960
cc5fd9ab
MK
89612016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8962
8963 * gdb.trace/pending.exp: Fix expected message on continue.
8964
99e8eb11
MK
89652016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8966
8967 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8968 it works properly on big-endian machines where sizeof (CORE_ADDR)
8969 != sizeof (void *).
8970
a994041d
PA
89712016-01-21 Pedro Alves <palves@redhat.com>
8972
8973 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8974 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8975 * configure: Regenerate.
8976
f7a6a40d
YQ
89772016-01-21 Yao Qi <yao.qi@linaro.org>
8978
8979 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8980 is_thumb and set it according to CPSR saved on the stack.
8981 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8982 arm_sigreturn_next_pc.
8983
6f69e520
YQ
89842016-01-18 Yao Qi <yao.qi@linaro.org>
8985
8986 * linux-low.c (linux_set_pc_64bit): New function.
8987 (linux_get_pc_64bit): New function.
8988 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8989 Declare.
8990 * linux-sparc-low.c (debug_threads): Remove declaration.
8991 (sparc_get_pc): Remove.
8992 (the_low_target): Use linux_get_pc_64bit instead of
8993 sparc_get_pc.
8994 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8995 (the_low_target): Use linux_get_pc_64bit and
8996 linux_set_pc_64bit.
8997
276d4552
YQ
89982016-01-18 Yao Qi <yao.qi@linaro.org>
8999
9000 * linux-arm-low.c (debug_threads): Remove declaration.
9001 (arm_get_pc, arm_set_pc): Remove.
9002 (the_low_target): Use linux_get_pc_32bit and
9003 linux_set_pc_32bit.
9004 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9005 (the_low_target): Use linux_get_pc_32bit and
9006 linux_set_pc_32bit.
9007 * linux-cris-low.c (debug_threads): Remove declaration.
9008 (cris_get_pc, cris_set_pc,): Remove.
9009 (the_low_target): Use linux_get_pc_32bit and
9010 linux_set_pc_32bit.
9011 * linux-crisv32-low.c (debug_threads): Remove declaration.
9012 (cris_get_pc, cris_set_pc): Remove.
9013 (the_low_target): Use linux_get_pc_32bit and
9014 linux_set_pc_32bit.
9015 * linux-low.c: Include inttypes.h.
9016 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9017 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9018 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9019 (the_low_target): Use linux_get_pc_32bit and
9020 linux_set_pc_32bit.
9021 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9022 (the_low_target): Use linux_get_pc_32bit and
9023 linux_set_pc_32bit.
9024 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9025 (the_low_target): Use linux_get_pc_32bit and
9026 linux_set_pc_32bit.
9027 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9028 (the_low_target): Use linux_get_pc_32bit and
9029 linux_set_pc_32bit.
9030 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9031 (the_low_target): Use linux_get_pc_32bit and
9032 linux_set_pc_32bit.
9033
eb0edac8
GB
90342016-01-18 Gary Benson <gbenson@redhat.com>
9035
9036 * configure.ac (AC_FUNC_FORK): New check.
9037 * config.in: Regenerate.
9038 * configure: Likewise.
9039
1b451dda
YQ
90402016-01-14 Yao Qi <yao.qi@linaro.org>
9041
9042 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9043 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9044 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9045 arm_get_next_pcs_ctor.
9046
82075af2
JS
90472016-01-12 Josh Stone <jistone@redhat.com>
9048 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9049
9050 * inferiors.h: Include "gdb_vecs.h".
9051 (struct process_info): Add syscalls_to_catch.
9052 * inferiors.c (remove_process): Free syscalls_to_catch.
9053 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9054 syscall_return stops.
9055 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9056 * server.c (handle_general_set): Handle QCatchSyscalls.
9057 (handle_query): Report support for QCatchSyscalls.
9058 * target.h (struct target_ops): Add supports_catch_syscall.
9059 (target_supports_catch_syscall): New macro.
9060 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9061 (struct lwp_info): Add syscall_state.
9062 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9063 Maintain syscall_state and syscalls_to_catch across exec.
9064 (get_syscall_trapinfo): New function, proxy to the_low_target.
9065 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9066 (linux_low_filter_event): Toggle syscall_state entry/return for
9067 syscall traps, and set it ignored for all others.
9068 (gdb_catching_syscalls_p): New function.
9069 (gdb_catch_this_syscall_p): New function.
9070 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9071 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9072 (linux_supports_catch_syscall): New function.
9073 (linux_target_ops): Install it.
9074 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9075 (the_low_target): Install it.
9076
8f13a3ce
MF
90772016-01-12 Mike Frysinger <vapier@gentoo.org>
9078
9079 * acinclude.m4: Include new ../warning.m4 file.
9080 * configure: Regenerated.
9081 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9082
5b3da067
MF
90832016-01-12 Mike Frysinger <vapier@gentoo.org>
9084
9085 * ax.c (is_goto_target): Mark static.
9086 * linux-low.c (register_addr): Likewise.
9087 (linux_fetch_registers, linux_store_registers): Likewise.
9088 * mem-break.c (any_persistent_commands): Fix old prototype.
9089 (add_commands_to_breakpoint): Mark static.
9090 * regcache.c (find_register_by_name): Delete unused func.
9091 * remote-utils.c (hex_or_minus_one): Mark static.
9092 * server.c (monitor_show_help): Mark static.
9093 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9094 handle_v_requests): Likewise.
9095
bc504a31
PA
90962016-01-12 Pedro Alves <palves@redhat.com>
9097
9098 Remove use of the registered trademark symbol throughout.
9099
5a0dd67a
YQ
91002016-01-08 Yao Qi <yao.qi@linaro.org>
9101
9102 * remote-utils.c (getpkt): If c is '\003', call target hook
9103 request_interrupt.
9104
b2ca446f
YQ
91052016-01-06 Yao Qi <yao.qi@linaro.org>
9106
9107 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9108 linux-aarch32-low.c.
9109 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9110 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9111 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9112 (thumb2_breakpoint): Declare.
9113 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9114 linux-aarch32-low.h.
9115 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9116 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9117 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9118
edd88788
JB
91192016-01-01 Joel Brobecker <brobecker@adacore.com>
9120
9121 * gdbreplay.c (gdbreplay_version): Change copyright year in
9122 version message.
9123 * server.c (gdbserver_version): Likewise.
9124
65da7f14
PP
91252015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9126
9127 * server.c (crc32_table): Delete.
9128 (crc32): Use libiberty's xcrc32 function.
9129
4abd5ed2
JB
91302015-12-22 Joel Brobecker <brobecker@adacore.com>
9131
9132 * lynx-low.c (lynx_delete_thread_callback): New function.
9133 (lynx_mourn): Properly delete our process and all of its
9134 threads. Remove call to clear_inferiors.
9135
0e50fe5c
JB
91362015-12-22 Joel Brobecker <brobecker@adacore.com>
9137
9138 * target.c (thread_search_callback): Add check that
9139 the thread_stopped target callback is not NULL before
9140 calling it.
9141
35adc03f
YQ
91422015-12-21 Yao Qi <yao.qi@linaro.org>
9143
9144 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9145 arm breakpoint.
9146
bd2b2909
AT
91472015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9148
9149 * server.c (handle_query): Call target_supports_software_single_step.
9150
7fe5e27e
AT
91512015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9152
9153 * linux-low.c (single_step): New function.
9154 (linux_resume_one_lwp_throw): Call single_step.
9155 (start_step_over): Likewise.
9156
d9311bfa
AT
91572015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9158
9159 * Makefile.in (SFILES): Append arch/arm-linux.c,
9160 arch/arm-get-next-pcs.c.
9161 (arm-linux.o): New rule.
9162 (arm-get-next-pcs.o): New rule.
9163 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9164 arm-linux.o.
9165 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9166 to linux-aarch32-low.c.
9167 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9168 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9169 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9170 (thumb2_breakpoint_len): Likewise.
9171 (arm_is_thumb_mode): Make non-static.
9172 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9173 from linux-aarch32-low.c.
9174 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9175 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9176 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9177 (thumb2_breakpoint_len): Likewise.
9178 (arm_is_thumb_mode): New declaration.
9179 * linux-arm-low.c: Include arch/arm-linux.h
9180 aarch/arm-get-next-pcs.h, sys/syscall.h.
9181 (get_next_pcs_ops): New struct.
9182 (get_next_pcs_addr_bits_remove): New function.
9183 (get_next_pcs_is_thumb): New function.
9184 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9185 (arm_sigreturn_next_pc): Likewise.
9186 (get_next_pcs_syscall_next_pc): Likewise.
9187 (arm_gdbserver_get_next_pcs): Likewise.
9188 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9189 Initialize.
9190 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9191 * server.h: Include gdb_vecs.h.
9192
68ce2059
AT
91932015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9194
9195 * Makefile.in (SFILES): Append common/common-regcache.c.
9196 (OBS): Append common-regcache.o.
9197 (common-regcache.o): New rule.
9198 * regcache.c (init_register_cache): Initialize cache to
9199 REG_UNAVAILABLE.
9200 (regcache_raw_read_unsigned): New function.
9201 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9202 register_status enum.
9203
fa5308bd
AT
92042015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9205
9206 * linux-aarch64-low.c (the_low_targets): Rename
9207 breakpoint_reinsert_addr to get_next_pcs.
9208 * linux-arm-low.c (the_low_targets): Likewise.
9209 * linux-bfin-low.c (the_low_targets): Likewise.
9210 * linux-cris-low.c (the_low_targets): Likewise.
9211 * linux-crisv32-low.c (the_low_targets): Likewise.
9212 * linux-low.c (can_software_single_step): Likewise.
9213 (install_software_single_step_breakpoints): New function.
9214 (start_step_over): Use install_software_single_step_breakpoints.
9215 * linux-low.h: New CORE_ADDR vector.
9216 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9217 get_next_pcs.
9218 * linux-mips-low.c (the_low_targets): Likewise.
9219 * linux-nios2-low.c (the_low_targets): Likewise.
9220 * linux-sparc-low.c (the_low_targets): Likewise.
9221
4a6ed09b
PA
92222015-12-17 Pedro Alves <palves@redhat.com>
9223
9224 * linux-low.c (linux_kill_one_lwp): Remove references to
9225 LinuxThreads.
9226 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9227 to 'kill'.
9228 (linux_init_signals): Delete.
9229 (initialize_low): Adjust.
9230 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9231
7544db95
PA
92322015-12-16 Pedro Alves <palves@redhat.com>
9233
9234 * configure.ac (compiler warning flags): When testing a
9235 -Wno-foo option, check whether -Wfoo works instead.
9236 * configure: Regenerate.
9237
8020350c
DB
92382015-12-11 Don Breazeal <donb@codesourcery.com>
9239
9240 * server.c (process_serial_event): Don't exit from gdbserver
9241 in remote mode if there are still active inferiors.
9242
db91f502
YQ
92432015-12-11 Yao Qi <yao.qi@linaro.org>
9244
9245 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9246 arm_breakpoint_at if the process is 32-bit.
9247
b37a6290
YQ
92482015-12-11 Yao Qi <yao.qi@linaro.org>
9249
9250 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9251 arm breakpoint.
9252
17b1509a
YQ
92532015-12-07 Yao Qi <yao.qi@linaro.org>
9254
9255 * configure.srv: Append arm.o to srv_tgtobj for
9256 aarch64*-*-linux* target.
9257 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9258 from linux-arm-low.c.
9259 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9260 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9261 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9262 (thumb2_breakpoint_len): Likewise.
9263 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9264 (arm_breakpoint_kinds): Likewise.
9265 (arm_breakpoint_kind_from_pc): Likewise.
9266 (arm_sw_breakpoint_from_kind): Likewise.
9267 (arm_breakpoint_kind_from_current_state): Likewise.
9268 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9269 (arm_sw_breakpoint_from_kind): Declare.
9270 (arm_breakpoint_kind_from_current_state): Declare.
9271 (arm_breakpoint_at): Declare.
9272 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9273 arm_sw_breakpoint_from_kind if process is 32-bit.
9274 (aarch64_breakpoint_kind_from_pc): New function.
9275 (aarch64_breakpoint_kind_from_current_state): New function.
9276 (the_low_target): Initialize fields breakpoint_kind_from_pc
9277 and breakpoint_kind_from_current_state.
9278 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9279 linux-aarch32-low.c.
9280 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9281 (arm_breakpoint, arm_breakpoint_len): Likewise.
9282 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9283 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9284 (arm_is_thumb_mode): Likewise.
9285 (arm_breakpoint_at): Likewise.
9286 (arm_breakpoint_kind_from_pc): Likewise.
9287 (arm_sw_breakpoint_from_kind): Likewise.
9288 (arm_breakpoint_kind_from_current_state): Likewise.
9289
9290 Revert:
9291 2015-08-04 Yao Qi <yao.qi@linaro.org>
9292
9293 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9294 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9295 * server.c (extended_protocol): Remove "static".
9296 * server.h (extended_protocol): Declare it.
9297
ece66d65
JS
92982015-12-04 Josh Stone <jistone@redhat.com>
9299
9300 * target.h (struct target_ops) <arch_setup>: Rename to ...
9301 (struct target_ops) <post_create_inferior>: ... this.
9302 (target_arch_setup): Rename to ...
9303 (target_post_create_inferior): ... this, calling post_create_inferior.
9304 * server.c (start_inferior): Update target_arch_setup calls to
9305 target_post_create_inferior.
9306 * linux-low.c (linux_low_ptrace_options): Forward declare.
9307 (linux_arch_setup): Update its comment for general use.
9308 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9309 (struct linux_target_ops): Use linux_post_create_inferior.
9310 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9311 to post_create_inferior.
9312 * nto-low.c (struct nto_target_ops): Likewise.
9313 * spu-low.c (struct spu_target_ops): Likewise.
9314 * win32-low.c (struct win32_target_ops): Likewise.
9315
e58c48b4
AT
93162015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9317
9318 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9319
fbec8956
AT
93202015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9321
9322 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9323 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9324 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9325 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9326 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9327 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9328 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9329 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9330 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9331 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9332 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9333 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9334
9b4c5f87
AT
93352015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9336
9337 * linux-low.c (linux_look_up_symbols): Don't call
9338 linux_supports_traceclone.
9339 * linux-low.h (thread_db_init): Remove use_events argument.
9340 * thread-db.c (thread_db_use_event): Remove global variable.
9341 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9342 (struct thread_db) <td_create_bp>: Remove field.
9343 (thread_db_create_event): Remove function.
9344 (thread_db_enable_reporting): Likewise.
9345 (find_one_thread): Don't check for thread_db_use_events.
9346 (attach_thread): Likewise.
9347 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9348 (try_thread_db_load_1): Don't check for thread_db_use_events.
9349 (thread_db_init): Remove use_events argument and thread events
9350 handling.
9351 (remove_thread_event_breakpoints): Remove function.
9352 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9353
7d00775e
AT
93542015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9355
9356 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9357 New function.
9358 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9359 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9360 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9361 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9362 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9363 Initialize.
9364 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9365 New function.
9366 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9367 * linux-low.c (can_hardware_single_step): Use
9368 supports_hardware_single_step.
9369 (can_software_single_step): New function.
9370 (start_step_over): Call can_software_single_step.
9371 (linux_supports_hardware_single_step): New function.
9372 (struct target_ops) <supports_software_single_step>: Initialize.
9373 * linux-low.h (struct linux_target_ops)
9374 <supports_hardware_single_step>: Initialize.
9375 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9376 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9377 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9378 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9379 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9380 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9381 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9382 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9383 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9384 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9385 Initialize.
9386 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9387 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9388 Initialize.
9389 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9390 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9391 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9392 New function.
9393 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9394 * target.h (struct target_ops): <supports_software_single_step>:
9395 New field.
9396 (target_supports_software_single_step): New macro.
9397
2d97cd35
AT
93982015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9399
9400 * linux-low.c (linux_wait_1): Fix pc advance condition.
9401 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9402 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9403
769ef81f
AT
94042015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9405
9406 * linux-arm-low.c (arm_is_thumb_mode): New function.
9407 (arm_breakpoint_at): Use arm_is_thumb_mode.
9408 (arm_breakpoint_kind_from_current_state): New function.
9409 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9410 Initialize.
9411 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9412 (linux_breakpoint_kind_from_current_state): New function.
9413 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9414 * linux-low.h (struct linux_target_ops)
9415 <breakpoint_kind_from_current_state>: New field.
9416 * target.h (struct target_ops): Likewise.
9417 (target_breakpoint_kind_from_current_state): New macro.
9418
1bebeeca
PA
94192015-11-30 Pedro Alves <palves@redhat.com>
9420
9421 * linux-low.c (linux_resume): Wake up the event loop before
9422 returning.
9423
a67a9fae
PA
94242015-11-30 Pedro Alves <palves@redhat.com>
9425
9426 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9427 check.
9428 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9429 to -1.
9430 * target.c (struct thread_search): New structure.
9431 (thread_search_callback): New function.
9432 (prev_general_thread): New global.
9433 (prepare_to_access_memory, done_accessing_memory): New functions.
9434 * target.h (prepare_to_access_memory, done_accessing_memory):
9435 Replace macros with function declarations.
9436
f2faf941
PA
94372015-11-30 Pedro Alves <palves@redhat.com>
9438
9439 PR 14618
9440 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9441 report TARGET_WAITKIND_NO_RESUMED.
9442 * remote-utils.c (prepare_resume_reply): Handle
9443 TARGET_WAITKIND_NO_RESUMED.
9444 * server.c (report_no_resumed): New global.
9445 (handle_query) <qSupported>: Handle "no-resumed+". Report
9446 "no-resumed+" support.
9447 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9448 return error if the client doesn't support no-resumed events.
9449 (push_stop_notification): New function.
9450 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9451 events if the client supports them.
9452
a681f9c9
PA
94532015-11-30 Pedro Alves <palves@redhat.com>
9454
9455 * linux-low.c (thread_still_has_status_pending_p): Don't check
9456 vCont;t here.
9457 (lwp_resumed): New function.
9458 (status_pending_p_callback): Return early if the LWP is not
9459 supposed to be resumed.
9460
65706a29
PA
94612015-11-30 Pedro Alves <palves@redhat.com>
9462
9463 * linux-low.c (handle_extended_wait): Assert that the LWP's
9464 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9465 thread create events, leave the new child's status pending.
9466 (linux_low_filter_event): If GDB wants to hear about thread exit
9467 events, leave the LWP marked dead and don't delete it.
9468 (linux_wait_for_event_filtered): Don't check for thread exit.
9469 (filter_exit_event): New function.
9470 (linux_wait_1): Use it, when returning an exit event.
9471 (linux_resume_one_lwp_throw): Assert that the LWP's
9472 waitstatus is TARGET_WAITKIND_IGNORE.
9473 * remote-utils.c (prepare_resume_reply): Handle
9474 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9475 * server.c (report_thread_events): New global.
9476 (handle_general_set): Handle QThreadEvents.
9477 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9478 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9479 TARGET_WAITKIND_THREAD_EXITED.
9480 * server.h (report_thread_events): Declare.
9481
56cf4bed
PA
94822015-11-30 Pedro Alves <palves@redhat.com>
9483
9484 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9485 the thread's last_resume_kind was resume_stop.
9486
500c1d85
PA
94872015-11-30 Pedro Alves <palves@redhat.com>
9488
9489 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9490 before returning.
9491
de979965
PA
94922015-11-30 Pedro Alves <palves@redhat.com>
9493
9494 * server.c (handle_v_requests): Handle vCtrlC.
9495
34c65914
PA
94962015-11-30 Pedro Alves <palves@redhat.com>
9497
9498 * gdbthread.h (find_any_thread_of_pid): Declare.
9499 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9500 functions.
9501 * server.c (handle_query): If current_thread is NULL, look for
9502 another thread of the selected process.
9503
79efa585 95042015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9505 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9506
9507 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9508 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9509 name in reply.
9510 * target.h (struct target_ops) <thread_name>: New field.
9511 (target_thread_name): New macro.
9512
80d82c19
JB
95132015-11-23 Joel Brobecker <brobecker@adacore.com>
9514
9515 * regcache.h (regcache_invalidate_pid): Add declaration.
9516 * regcache.c (regcache_invalidate_pid): New function, extracted
9517 from regcache_invalidate.
9518 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9519 Add trivial documentation comment.
9520 * lynx-low.c: Use regcache_invalidate_pid instead of
9521 regcache_invalidate.
9522
64da5dd5
JB
95232015-11-23 Joel Brobecker <brobecker@adacore.com>
9524
9525 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9526 and Elf64_auxv_t if the target is Android.
9527
37ce4055
DE
95282015-11-22 Doug Evans <xdje42@gmail.com>
9529
9530 * target.h: #include <sys/types.h>.
9531
06e03fff
PA
95322015-11-19 Pedro Alves <palves@redhat.com>
9533
9534 * linux-low.c (linux_process_qsupported): Change prototype.
9535 Adjust.
9536 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9537 Change prototype.
9538 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9539 and adjust to loop over all features.
9540 * server.c (handle_query) <qSupported>: Adjust to call
9541 target_process_qsupported once, passing it a vector of unprocessed
9542 features.
9543 * target.h (struct target_ops) <process_qsupported>: Change
9544 prototype.
9545 (target_process_qsupported): Adjust.
9546
9a084706
PA
95472015-11-19 Pedro Alves <palves@redhat.com>
9548
9549 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9550 mode.
9551 * configure: Regenerate.
9552
dad44a1f
PA
95532015-11-19 Pedro Alves <palves@redhat.com>
9554
9555 * configure: Regenerate.
9556
231c0592
YQ
95572015-11-19 Yao Qi <yao.qi@linaro.org>
9558
9559 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9560 type to uint32_t.
9561
6c1c9a8b
YQ
95622015-11-19 Yao Qi <yao.qi@linaro.org>
9563
9564 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9565 (struct aarch64_operand): Move enum out.
9566
9caa3311
YQ
95672015-11-19 Yao Qi <yao.qi@linaro.org>
9568
9569 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9570 struct user_fpsimd_state *.
9571 (aarch64_store_fpregset): Likewise.
9572
6a69a054
YQ
95732015-11-19 Yao Qi <yao.qi@linaro.org>
9574
9575 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9576 struct user_pt_regs *.
9577 (aarch64_store_gregset): Likewise.
9578
1798301e
PA
95792015-11-18 Pedro Alves <palves@redhat.com>
9580
9581 * Makefile.in (all_object_files): Add $IPA_OBJS.
9582
ce7715e2
PA
95832015-11-17 Pedro Alves <palves@redhat.com>
9584
9585 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9586 GDB_SIGNAL_0 and gdb_signal_to_string.
9587
c0879059
PA
95882015-11-17 Pedro Alves <palves@redhat.com>
9589
9590 * win32-low.c (handle_output_debug_string): Remove parameter.
9591 (win32_kill): Remove our_status local and adjust call to
9592 handle_output_debug_string.
9593 (get_child_debug_event): Adjust call to
9594 handle_output_debug_string.
9595
1996e237
SM
95962015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9597
9598 * linux-mips-low.c (mips_fill_gregset): Add cast.
9599 (mips_store_gregset): Likewise.
9600 (mips_fill_fpregset): Likewise.
9601 (mips_store_fpregset): Likewise.
9602
cbec665b
SM
96032015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9604
9605 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9606 priv.
9607
eb3e3c67
SM
96082015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9609
9610 * linux-mips-low.c (mips_linux_new_thread): Change type of
9611 watch_type to enum target_hw_bp_type.
9612
171de4b8
SM
96132015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9614
9615 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9616 Change return type to arm_hwbp_type.
9617
04248ead
SM
96182015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9619
9620 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9621 (arm_store_gregset): Likewise.
9622 * linux-arm-low.c (arm_get_hwcap): Likewise.
9623 (arm_read_description): Likewise.
9624
04b3479c
SM
96252015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9626
9627 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9628
2bc84e8a
SM
96292015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9630
9631 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9632 (ppc_fill_vsxregset): Likewise.
9633 (ppc_store_vsxregset): Likewise.
9634 (ppc_fill_vrregset): Likewise.
9635 (ppc_store_vrregset): Likewise.
9636 (ppc_fill_evrregset): Likewise.
9637 (ppc_store_evrregset): Likewise.
9638
e6c5bb05
SM
96392015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9640
9641 * linux-ppc-low.c (ppc_usrregs_info): Remove
9642 forward-declaration.
9643 (ppc_arch_setup): Move lower in file.
9644
7ea45d72
SM
96452015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9646
9647 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9648 (ps_pdwrite): Likewise.
9649
69291610
HW
96502015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9651
9652 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9653 to after assert checks.
9654
b42945fd
SM
96552015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9656
9657 * proc-service.c (ps_pdread): Add/adjust casts.
9658 (ps_pdwrite): Add/adjust casts.
9659
d6f85c84
SM
96602015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9661
9662 * server.c (handle_search_memory_1): Cast return value of
9663 memmem.
9664
f98cd059
SM
96652015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9666
9667 * server.c (write_qxfer_response): Change type of data to
9668 gdb_byte *.
9669
d2412fa5
PA
96702015-10-29 Pedro Alves <palves@redhat.com>
9671
9672 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9673
c17414a2
PA
96742015-10-29 Pedro Alves <palves@redhat.com>
9675
9676 * tracepoint.c (clear_installed_tracepoints): Add casts.
9677
e053fbc4
PA
96782015-10-29 Pedro Alves <palves@redhat.com>
9679
9680 * server.c (handle_v_cont, process_serial_event): Add enum
9681 gdb_signal casts to signal parsing code.
9682
add67df8
PA
96832015-10-29 Pedro Alves <palves@redhat.com>
9684
9685 * linux-low.h (NULL_REGSET): Define.
9686 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9687 * linux-arm-low.c (arm_regsets): Likewise.
9688 * linux-crisv32-low.c (cris_regsets): Likewise.
9689 * linux-m68k-low.c (m68k_regsets): Likewise.
9690 * linux-mips-low.c (mips_regsets): Likewise.
9691 * linux-nios2-low.c (nios2_regsets): Likewise.
9692 * linux-ppc-low.c (ppc_regsets): Likewise.
9693 * linux-s390-low.c (s390_regsets): Likewise.
9694 * linux-sh-low.c (sh_regsets): Likewise.
9695 * linux-sparc-low.c (sparc_regsets): Likewise.
9696 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9697 * linux-tile-low.c (tile_regsets): Likewise.
9698 * linux-x86-low.c (x86_regsets): Likewise.
9699 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9700
50bc912a
PA
97012015-10-29 Pedro Alves <palves@redhat.com>
9702
9703 * linux-low.h (NULL_REGSET): Define.
9704 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9705 * linux-arm-low.c (arm_regsets): Likewise.
9706 * linux-crisv32-low.c (cris_regsets): Likewise.
9707 * linux-m68k-low.c (m68k_regsets): Likewise.
9708 * linux-mips-low.c (mips_regsets): Likewise.
9709 * linux-nios2-low.c (nios2_regsets): Likewise.
9710 * linux-ppc-low.c (ppc_regsets): Likewise.
9711 * linux-s390-low.c (s390_regsets): Likewise.
9712 * linux-sh-low.c (sh_regsets): Likewise.
9713 * linux-sparc-low.c (sparc_regsets): Likewise.
9714 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9715 * linux-tile-low.c (tile_regsets): Likewise.
9716 * linux-x86-low.c (x86_regsets): Likewise.
9717 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9718
682b2546
DE
97192015-10-26 Doug Evans <dje@google.com>
9720
9721 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9722
963843d4
DE
97232015-10-26 Doug Evans <dje@google.com>
9724
9725 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9726
d41401ac
DE
97272015-10-26 Doug Evans <dje@google.com>
9728
9729 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9730 for debug_printf.
9731 (attach_thread, find_new_threads_callback): Ditto.
9732
3db28855
AT
97332015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9734
9735 * mem-break.h (set_breakpoint_data): Remove.
9736
fb78e89c
AT
97372015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9738
9739 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9740 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9741 (initialize_low): Remove set_breakpoint_data call.
9742 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9743 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9744 (initialize_low): Remove set_breakpoint_data call.
9745 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9746 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9747 (initialize_low): Remove set_breakpoint_data call.
9748
2e6ee069
AT
97492015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9750
9751 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9752 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9753 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9754 * target.h (target_breakpoint_kind_from_pc): New macro.
9755
1652a986
AT
97562015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9757
9758 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9759 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9760 the default breakpoint kind.
9761
abeead09
AT
97622015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9763
9764 * linux-arm-low.c (arm_supports_z_point_type): Add software
9765 breakpoint support.
9766
b0b4b501
AT
97672015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9768
9769 * linux-arm-low.c: Refactor breakpoint definitions.
9770 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9771 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9772
8689682c
AT
97732015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9774
9775 * Makefile.in: Add arm.c/o.
9776 * configure.srv: Likewise.
9777 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9778 (arm_breakpoint_kind_from_pc): New function.
9779 (arm_sw_breakpoint_from_kind): Return proper kind.
9780 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9781
27165294
AT
97822015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9783
9784 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9785 removal.
9786 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9787 (struct raw_breakpoint) <size>: Remove.
9788 (struct raw_breakpoint) <kind>: Add.
9789 (bp_size): New function.
9790 (bp_opcode): Likewise.
9791 (find_raw_breakpoint_at): Adjust for kind.
9792 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9793 (remove_memory_breakpoint): Adjust for kind call bp_size.
9794 (set_raw_breakpoint_at): Adjust for kind.
9795 (set_breakpoint): Likewise.
9796 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9797 (delete_raw_breakpoint): Adjust for kind.
9798 (delete_breakpoint): Likewise.
9799 (find_gdb_breakpoint): Likewise.
9800 (set_gdb_breakpoint_1): Likewise.
9801 (set_gdb_breakpoint): Likewise.
9802 (delete_gdb_breakpoint_1): Likewise.
9803 (delete_gdb_breakpoint): Likewise.
9804 (uninsert_raw_breakpoint): Likewise.
9805 (reinsert_raw_breakpoint): Likewise.
9806 (set_breakpoint_data): Remove.
9807 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9808 (check_mem_read): Adjust for kind call bp_size.
9809 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9810 (clone_one_breakpoint): Adjust for kind.
9811 * mem-break.h (set_gdb_breakpoint): Likewise.
9812 (delete_gdb_breakpoint): Likewise.
9813 * server.c (process_serial_event): Likewise.
9814
dd373349
AT
98152015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9816
9817 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9818 (struct linux_target_ops) <breakpoint>: Remove.
9819 (struct linux_target_ops) <breakpoint_len>: Remove.
9820 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9821 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9822 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9823 (arm_sw_breakpoint_from_kind): New function.
9824 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9825 (struct linux_target_ops) <breakpoint>: Remove.
9826 (struct linux_target_ops) <breakpoint_len>: Remove.
9827 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9828 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9829 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9830 (struct linux_target_ops) <breakpoint>: Remove.
9831 (struct linux_target_ops) <breakpoint_len>: Remove.
9832 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9833 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9834 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9835 (struct linux_target_ops) <breakpoint>: Remove.
9836 (struct linux_target_ops) <breakpoint_len>: Remove.
9837 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9838 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9839 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9840 and sw_breakpoint_from_kind to increment the pc.
9841 (linux_breakpoint_kind_from_pc): New function.
9842 (linux_sw_breakpoint_from_kind): New function.
9843 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9844 (initialize_low): Call breakpoint_kind_from_pc and
9845 sw_breakpoint_from_kind to replace breakpoint_data/len.
9846 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9847 New field.
9848 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9849 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9850 (struct linux_target_ops) <breakpoint>: Remove.
9851 (struct linux_target_ops) <breakpoint_len>: Remove.
9852 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9853 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9854 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9855 (struct linux_target_ops) <breakpoint>: Remove.
9856 (struct linux_target_ops) <breakpoint_len>: Remove.
9857 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9858 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9859 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9860 (struct linux_target_ops) <breakpoint>: Remove.
9861 (struct linux_target_ops) <breakpoint_len>: Remove.
9862 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9863 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9864 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9865 (struct linux_target_ops) <breakpoint>: Remove.
9866 (struct linux_target_ops) <breakpoint_len>: Remove.
9867 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9868 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9869 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9870 (struct linux_target_ops) <breakpoint>: Remove.
9871 (struct linux_target_ops) <breakpoint_len>: Remove.
9872 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9873 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9874 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9875 (struct linux_target_ops) <breakpoint>: Remove.
9876 (struct linux_target_ops) <breakpoint_len>: Remove.
9877 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9878 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9879 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9880 (struct linux_target_ops) <breakpoint>: Remove.
9881 (struct linux_target_ops) <breakpoint_len>: Remove.
9882 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9883 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9884 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9885 (struct linux_target_ops) <breakpoint>: Remove.
9886 (struct linux_target_ops) <breakpoint_len>: Remove.
9887 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9888 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9889 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9890 (struct linux_target_ops) <breakpoint>: Remove.
9891 (struct linux_target_ops) <breakpoint_len>: Remove.
9892 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9893 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9894 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9895 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9896 (struct linux_target_ops) <breakpoint>: Remove.
9897 (struct linux_target_ops) <breakpoint_len>: Remove.
9898 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9899 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9900 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9901 (struct linux_target_ops) <breakpoint>: Remove.
9902 (struct linux_target_ops) <breakpoint_len>: Remove.
9903 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9904 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9905
4cd98a19
AT
99062015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9907
9908 * linux-cris-low.c (cris_get_pc): Remove void arg.
9909
774ee6d2
AR
99102015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9911
9912 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9913 variable name.
9914
833dcd29
AR
99152015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9916
9917 * inferiors.c (thread_pid_matches_callback): New function.
9918 (find_thread_process): New function.
9919 (remove_thread): Reset current_thread.
9920 (remove_process): Assert threads have been removed first.
9921
8d689ee5
YQ
99222015-10-15 Yao Qi <yao.qi@linaro.org>
9923
9924 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9925 if it is 3.
9926 (aarch64_remove_point): Likewise.
9927 * regcache.c (regcache_register_size): New function.
9928
1c2e1515
YQ
99292015-10-12 Yao Qi <yao.qi@linaro.org>
9930
9931 * linux-aarch64-low.c: Update all callers as emit_load_store
9932 is renamed to aarch64_emit_load_store.
9933
e1c587c3
YQ
99342015-10-12 Yao Qi <yao.qi@linaro.org>
9935
9936 * linux-aarch64-low.c: Update all callers of function renaming
9937 from emit_insn to aarch64_emit_insn.
9938
b6542f81
YQ
99392015-10-12 Yao Qi <yao.qi@linaro.org>
9940
9941 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9942 arch/aarch64-insn.h.
9943 (struct aarch64_memory_operand): Likewise.
9944 (ENCODE): Likewise.
9945 (emit_insn): Move to arch/aarch64-insn.c.
9946 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9947 (emit_load_store): Move to arch/aarch64-insn.c.
9948 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9949 (can_encode_int32): Remove.
9950
246994ce
YQ
99512015-10-12 Yao Qi <yao.qi@linaro.org>
9952
9953 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9954 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9955 (aarch64_relocate_instruction): Likewise.
9956 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9957 (struct aarch64_insn_visitor): Likewise.
9958
0badd99f
YQ
99592015-10-12 Yao Qi <yao.qi@linaro.org>
9960
9961 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9962 (struct aarch64_insn_visitor): New.
9963 (struct aarch64_insn_relocation_data): New.
9964 (aarch64_ftrace_insn_reloc_b): New function.
9965 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9966 (aarch64_ftrace_insn_reloc_cb): Likewise.
9967 (aarch64_ftrace_insn_reloc_tb): Likewise.
9968 (aarch64_ftrace_insn_reloc_adr): Likewise.
9969 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9970 (aarch64_ftrace_insn_reloc_others): Likewise.
9971 (visitor): New.
9972 (aarch64_relocate_instruction): Use visitor.
9973
dfaffe9d
YQ
99742015-10-12 Yao Qi <yao.qi@linaro.org>
9975
9976 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9977 int. Add argument buf.
9978 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9979 aarch64_relocate_instruction.
9980
70b439f0
YQ
99812015-10-12 Yao Qi <yao.qi@linaro.org>
9982
9983 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9984 argument insn. Remove local variable insn. Don't call
9985 target_read_uint32.
9986 (aarch64_install_fast_tracepoint_jump_pad): Call
9987 target_read_uint32.
9988
7781c06f
YQ
99892015-09-30 Yao Qi <yao.qi@linaro.org>
9990
9991 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9992 (emit_load_store_pair): Likewise.
9993
9a3c8263
SM
99942015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9995
9996 * dll.c (match_dll): Add cast(s).
9997 (unloaded_dll): Likewise.
9998 * linux-low.c (second_thread_of_pid_p): Likewise.
9999 (delete_lwp_callback): Likewise.
10000 (count_events_callback): Likewise.
10001 (select_event_lwp_callback): Likewise.
10002 (linux_set_resume_request): Likewise.
10003 * server.c (accumulate_file_name_length): Likewise.
10004 (emit_dll_description): Likewise.
10005 (handle_qxfer_threads_worker): Likewise.
10006 (visit_actioned_threads): Likewise.
10007 * thread-db.c (any_thread_of): Likewise.
10008 * tracepoint.c (same_process_p): Likewise.
10009 (match_blocktype): Likewise.
10010 (build_traceframe_info_xml): Likewise.
10011
224c3ddb
SM
100122015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10013
10014 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10015 assignment.
10016 (gdb_unparse_agent_expr): Likewise.
10017 * hostio.c (require_data): Likewise.
10018 (handle_pread): Likewise.
10019 * linux-low.c (disable_regset): Likewise.
10020 (fetch_register): Likewise.
10021 (store_register): Likewise.
10022 (get_dynamic): Likewise.
10023 (linux_qxfer_libraries_svr4): Likewise.
10024 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10025 (set_fast_tracepoint_jump): Likewise.
10026 (uninsert_fast_tracepoint_jumps_at): Likewise.
10027 (reinsert_fast_tracepoint_jumps_at): Likewise.
10028 (validate_inserted_breakpoint): Likewise.
10029 (clone_agent_expr): Likewise.
10030 * regcache.c (init_register_cache): Likewise.
10031 * remote-utils.c (putpkt_binary_1): Likewise.
10032 (decode_M_packet): Likewise.
10033 (decode_X_packet): Likewise.
10034 (look_up_one_symbol): Likewise.
10035 (relocate_instruction): Likewise.
10036 (monitor_output): Likewise.
10037 * server.c (handle_search_memory): Likewise.
10038 (handle_qxfer_exec_file): Likewise.
10039 (handle_qxfer_libraries): Likewise.
10040 (handle_qxfer): Likewise.
10041 (handle_query): Likewise.
10042 (handle_v_cont): Likewise.
10043 (handle_v_run): Likewise.
10044 (captured_main): Likewise.
10045 * target.c (write_inferior_memory): Likewise.
10046 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10047 * tracepoint.c (init_trace_buffer): Likewise.
10048 (add_tracepoint_action): Likewise.
10049 (add_traceframe): Likewise.
10050 (add_traceframe_block): Likewise.
10051 (cmd_qtdpsrc): Likewise.
10052 (cmd_qtdv): Likewise.
10053 (cmd_qtstatus): Likewise.
10054 (response_source): Likewise.
10055 (response_tsv): Likewise.
10056 (cmd_qtnotes): Likewise.
10057 (gdb_collect): Likewise.
10058 (initialize_tracepoint): Likewise.
10059
afbe19f8
PL
100602015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10061
10062 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10063 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10064 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10065 <NOP>: New.
10066 (enum aarch64_condition_codes): New enum.
10067 (w0): New static global.
10068 (fp): Likewise.
10069 (lr): Likewise.
10070 (struct aarch64_memory_operand) <type>: New
10071 MEMORY_OPERAND_POSTINDEX type.
10072 (postindex_memory_operand): New helper function.
10073 (emit_ret): New function.
10074 (emit_load_store_pair): New function, factored out of emit_stp
10075 with support for MEMORY_OPERAND_POSTINDEX.
10076 (emit_stp): Rewrite using emit_load_store_pair.
10077 (emit_ldp): New function.
10078 (emit_load_store): Likewise.
10079 (emit_ldr): Mention post-index instruction in comment.
10080 (emit_ldrh): New function.
10081 (emit_ldrb): New function.
10082 (emit_ldrsw): Mention post-index instruction in comment.
10083 (emit_str): Likewise.
10084 (emit_subs): New function.
10085 (emit_cmp): Likewise.
10086 (emit_and): Likewise.
10087 (emit_orr): Likewise.
10088 (emit_orn): Likewise.
10089 (emit_eor): Likewise.
10090 (emit_mvn): Likewise.
10091 (emit_lslv): Likewise.
10092 (emit_lsrv): Likewise.
10093 (emit_asrv): Likewise.
10094 (emit_mul): Likewise.
10095 (emit_sbfm): Likewise.
10096 (emit_sbfx): Likewise.
10097 (emit_ubfm): Likewise.
10098 (emit_ubfx): Likewise.
10099 (emit_csinc): Likewise.
10100 (emit_cset): Likewise.
10101 (emit_nop): Likewise.
10102 (emit_ops_insns): New helper function.
10103 (emit_pop): Likewise.
10104 (emit_push): Likewise.
10105 (aarch64_emit_prologue): New function.
10106 (aarch64_emit_epilogue): Likewise.
10107 (aarch64_emit_add): Likewise.
10108 (aarch64_emit_sub): Likewise.
10109 (aarch64_emit_mul): Likewise.
10110 (aarch64_emit_lsh): Likewise.
10111 (aarch64_emit_rsh_signed): Likewise.
10112 (aarch64_emit_rsh_unsigned): Likewise.
10113 (aarch64_emit_ext): Likewise.
10114 (aarch64_emit_log_not): Likewise.
10115 (aarch64_emit_bit_and): Likewise.
10116 (aarch64_emit_bit_or): Likewise.
10117 (aarch64_emit_bit_xor): Likewise.
10118 (aarch64_emit_bit_not): Likewise.
10119 (aarch64_emit_equal): Likewise.
10120 (aarch64_emit_less_signed): Likewise.
10121 (aarch64_emit_less_unsigned): Likewise.
10122 (aarch64_emit_ref): Likewise.
10123 (aarch64_emit_if_goto): Likewise.
10124 (aarch64_emit_goto): Likewise.
10125 (aarch64_write_goto_address): Likewise.
10126 (aarch64_emit_const): Likewise.
10127 (aarch64_emit_call): Likewise.
10128 (aarch64_emit_reg): Likewise.
10129 (aarch64_emit_pop): Likewise.
10130 (aarch64_emit_stack_flush): Likewise.
10131 (aarch64_emit_zero_ext): Likewise.
10132 (aarch64_emit_swap): Likewise.
10133 (aarch64_emit_stack_adjust): Likewise.
10134 (aarch64_emit_int_call_1): Likewise.
10135 (aarch64_emit_void_call_2): Likewise.
10136 (aarch64_emit_eq_goto): Likewise.
10137 (aarch64_emit_ne_goto): Likewise.
10138 (aarch64_emit_lt_goto): Likewise.
10139 (aarch64_emit_le_goto): Likewise.
10140 (aarch64_emit_gt_goto): Likewise.
10141 (aarch64_emit_ge_got): Likewise.
10142 (aarch64_emit_ops_impl): New static global variable.
10143 (aarch64_emit_ops): New target function, return
10144 &aarch64_emit_ops_impl.
10145 (struct linux_target_ops): Install it.
10146
bb903df0
PL
101472015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10148
10149 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10150 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10151 aarch64-ipa.o.
10152 * linux-aarch64-ipa.c: New file.
10153 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10154 and endian.h.
10155 (aarch64_get_thread_area): New target method.
10156 (extract_signed_bitfield): New helper function.
10157 (aarch64_decode_ldr_literal): New function.
10158 (enum aarch64_opcodes): New enum.
10159 (struct aarch64_register): New struct.
10160 (struct aarch64_operand): New struct.
10161 (x0): New static global.
10162 (x1): Likewise.
10163 (x2): Likewise.
10164 (x3): Likewise.
10165 (x4): Likewise.
10166 (w2): Likewise.
10167 (ip0): Likewise.
10168 (sp): Likewise.
10169 (xzr): Likewise.
10170 (aarch64_register): New helper function.
10171 (register_operand): Likewise.
10172 (immediate_operand): Likewise.
10173 (struct aarch64_memory_operand): New struct.
10174 (offset_memory_operand): New helper function.
10175 (preindex_memory_operand): Likewise.
10176 (enum aarch64_system_control_registers): New enum.
10177 (ENCODE): New macro.
10178 (emit_insn): New helper function.
10179 (emit_b): New function.
10180 (emit_bcond): Likewise.
10181 (emit_cb): Likewise.
10182 (emit_tb): Likewise.
10183 (emit_blr): Likewise.
10184 (emit_stp): Likewise.
10185 (emit_ldp_q_offset): Likewise.
10186 (emit_stp_q_offset): Likewise.
10187 (emit_load_store): Likewise.
10188 (emit_ldr): Likewise.
10189 (emit_ldrsw): Likewise.
10190 (emit_str): Likewise.
10191 (emit_ldaxr): Likewise.
10192 (emit_stxr): Likewise.
10193 (emit_stlr): Likewise.
10194 (emit_data_processing_reg): Likewise.
10195 (emit_data_processing): Likewise.
10196 (emit_add): Likewise.
10197 (emit_sub): Likewise.
10198 (emit_mov): Likewise.
10199 (emit_movk): Likewise.
10200 (emit_mov_addr): Likewise.
10201 (emit_mrs): Likewise.
10202 (emit_msr): Likewise.
10203 (emit_sevl): Likewise.
10204 (emit_wfe): Likewise.
10205 (append_insns): Likewise.
10206 (can_encode_int32_in): New helper function.
10207 (aarch64_relocate_instruction): New function.
10208 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10209 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10210 (struct linux_target_ops): Install aarch64_get_thread_area,
10211 aarch64_install_fast_tracepoint_jump_pad and
10212 aarch64_get_min_fast_tracepoint_insn_len.
10213
787749ea
PL
102142015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10215
10216 * Makefile.in (aarch64-insn.o): New rule.
10217 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10218
9812b2e6
YQ
102192015-09-21 Yao Qi <yao.qi@linaro.org>
10220
10221 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10222
18fe412b
YQ
102232015-09-21 Yao Qi <yao.qi@linaro.org>
10224
10225 * tracepoint.c (max_jump_pad_size): Remove.
10226
a0cc84cd
YQ
102272015-09-18 Yao Qi <yao.qi@linaro.org>
10228
10229 * linux-aarch64-low.c: Don't include sys/uio.h.
10230 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10231
d78908cf
WW
102322015-09-16 Wei-cheng Wang <cole945@gmail.com>
10233
10234 * tracepoint.c (eval_result_type): Change prototype.
10235 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10236
d57e0d50
PA
102372015-09-15 Pedro Alves <palves@redhat.com>
10238
10239 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10240 Check whether to report exec events instead of checking whether
10241 multiprocess is enabled.
10242
5a676acc
PA
102432015-09-15 Pedro Alves <palves@redhat.com>
10244
10245 PR remote/18965
10246 * remote-utils.c (prepare_resume_reply): Merge
10247 TARGET_WAITKIND_VFORK_DONE switch case with the
10248 TARGET_WAITKIND_FORKED case.
10249
7c5d0fad
YQ
102502015-09-15 Yao Qi <yao.qi@linaro.org>
10251
10252 * server.c (handle_query): Check string comparison using
10253 "else if" instead of "if".
10254
750ce8d1
YQ
102552015-09-15 Yao Qi <yao.qi@linaro.org>
10256
10257 * server.c (vCont_supported): New global variable.
10258 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10259 matches. Append ";vContSupported+" to own_buf.
10260 (handle_v_requests): Append ";s;S" to own_buf if target supports
10261 hardware single step or vCont_supported is false.
10262 (capture_main): Set vCont_supported to zero.
10263
70b90b91
YQ
102642015-09-15 Yao Qi <yao.qi@linaro.org>
10265
10266 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10267 it to ...
10268 (linux_supports_hardware_single_step): ... New function.
10269 (linux_target_ops): Update.
10270 * lynx-low.c (lynx_target_ops): Set field
10271 supports_hardware_single_step to target_can_do_hardware_single_step.
10272 * nto-low.c (nto_target_ops): Likewise.
10273 * spu-low.c (spu_target_ops): Likewise.
10274 * win32-low.c (win32_target_ops): Likewise.
10275 * target.c (target_can_do_hardware_single_step): New function.
10276 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10277 Remove. <supports_hardware_single_step>: New field.
10278 (target_supports_conditional_breakpoints): Remove.
10279 (target_supports_hardware_single_step): New macro.
10280 (target_can_do_hardware_single_step): Declare.
10281 * server.c (handle_query): Use target_supports_hardware_single_step
10282 instead of target_supports_conditional_breakpoints.
10283
ade90bde
YQ
102842015-09-15 Yao Qi <yao.qi@linaro.org>
10285
10286 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10287 function.
10288 (struct linux_target_ops the_low_target): Install
10289 aarch64_linux_siginfo_fixup.
10290
94585166
DB
102912015-09-11 Don Breazeal <donb@codesourcery.com>
10292 Luis Machado <lgustavo@codesourcery.com>
10293
10294 * linux-low.c (linux_mourn): Static declaration.
10295 (linux_arch_setup): Move in front of
10296 handle_extended_wait.
10297 (linux_arch_setup_thread): New function.
10298 (handle_extended_wait): Handle exec events. Call
10299 linux_arch_setup_thread. Make event_lwp argument a
10300 pointer-to-a-pointer.
10301 (check_zombie_leaders): Do not check stopped threads.
10302 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10303 (linux_low_filter_event): Add lwp and thread for exec'ing
10304 non-leader thread if leader thread has been deleted.
10305 Refactor code into linux_arch_setup_thread and call it.
10306 Pass child lwp pointer by reference to handle_extended_wait.
10307 (linux_wait_for_event_filtered): Update comment.
10308 (linux_wait_1): Prevent clobbering exec event status.
10309 (linux_supports_exec_events): New function.
10310 (linux_target_ops) <supports_exec_events>: Initialize new member.
10311 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10312 new member.
10313 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10314 * server.c (report_exec_events): New global variable.
10315 (handle_query): Handle qSupported query for exec-events feature.
10316 (captured_main): Initialize report_exec_events.
10317 * server.h (report_exec_events): Declare new global variable.
10318 * target.h (struct target_ops) <supports_exec_events>: New
10319 member.
10320 (target_supports_exec_events): New macro.
10321 * win32-low.c (win32_target_ops) <supports_exec_events>:
10322 Initialize new member.
10323
0568462b
MM
103242015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10325
10326 * linux-low.c (linux_low_enable_btrace): Remove.
10327 (linux_target_ops): Replace linux_low_enable_btrace with
10328 linux_enable_btrace.
10329
39edd165
YQ
103302015-09-03 Yao Qi <yao.qi@linaro.org>
10331
10332 * linux-aarch64-low.c (aarch64_insert_point): Call
10333 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10334 returns true.
10335
1db33b5a
UW
103362015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10337
10338 * linux-low.c (check_stopped_by_breakpoint): Use
10339 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10340
ab290430
PA
103412015-08-27 Pedro Alves <palves@redhat.com>
10342
10343 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10344
8d749320
SM
103452015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10346
6711b7f8
SM
10347 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10348 the XNEW-family equivalent.
8d749320
SM
10349 (compile_bytecodes): Likewise.
10350 * dll.c (loaded_dll): Likewise.
10351 * event-loop.c (append_callback_event): Likewise.
10352 (create_file_handler): Likewise.
10353 (create_file_event): Likewise.
10354 * hostio.c (handle_open): Likewise.
10355 * inferiors.c (add_thread): Likewise.
10356 (add_process): Likewise.
10357 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10358 * linux-arm-low.c (arm_new_process): Likewise.
10359 (arm_new_thread): Likewise.
10360 * linux-low.c (add_to_pid_list): Likewise.
10361 (linux_add_process): Likewise.
10362 (handle_extended_wait): Likewise.
10363 (add_lwp): Likewise.
10364 (enqueue_one_deferred_signal): Likewise.
10365 (enqueue_pending_signal): Likewise.
10366 (linux_resume_one_lwp_throw): Likewise.
10367 (linux_resume_one_thread): Likewise.
10368 (linux_read_memory): Likewise.
10369 (linux_write_memory): Likewise.
10370 * linux-mips-low.c (mips_linux_new_process): Likewise.
10371 (mips_linux_new_thread): Likewise.
10372 (mips_add_watchpoint): Likewise.
10373 * linux-x86-low.c (initialize_low_arch): Likewise.
10374 * lynx-low.c (lynx_add_process): Likewise.
10375 * mem-break.c (set_raw_breakpoint_at): Likewise.
10376 (set_breakpoint): Likewise.
10377 (add_condition_to_breakpoint): Likewise.
10378 (add_commands_to_breakpoint): Likewise.
10379 (clone_agent_expr): Likewise.
10380 (clone_one_breakpoint): Likewise.
10381 * regcache.c (new_register_cache): Likewise.
10382 * remote-utils.c (look_up_one_symbol): Likewise.
10383 * server.c (queue_stop_reply): Likewise.
10384 (start_inferior): Likewise.
10385 (queue_stop_reply_callback): Likewise.
10386 (handle_target_event): Likewise.
10387 * spu-low.c (fetch_ppc_memory): Likewise.
10388 (store_ppc_memory): Likewise.
10389 * target.c (set_target_ops): Likewise.
10390 * thread-db.c (thread_db_load_search): Likewise.
10391 (try_thread_db_load_1): Likewise.
10392 * tracepoint.c (add_tracepoint): Likewise.
10393 (add_tracepoint_action): Likewise.
10394 (create_trace_state_variable): Likewise.
10395 (cmd_qtdpsrc): Likewise.
10396 (cmd_qtro): Likewise.
10397 (add_while_stepping_state): Likewise.
10398 * win32-low.c (child_add_thread): Likewise.
10399 (get_image_name): Likewise.
10400
ed8b7b42
YQ
104012015-08-25 Yao Qi <yao.qi@linaro.org>
10402
10403 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10404
db3cb7cb
YQ
104052015-08-25 Yao Qi <yao.qi@linaro.org>
10406
10407 * Makefile.in (aarch64-linux.o): New rule.
10408 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10409 srv_tgtobj.
10410 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10411 (aarch64_init_debug_reg_state): Make it extern.
10412 (aarch64_linux_prepare_to_resume): Remove.
10413
f6011a1c
YQ
104142015-08-25 Yao Qi <yao.qi@linaro.org>
10415
10416 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10417 lwp_arch_private_info and ptid_of_lwp.
10418
88e2cf7e
YQ
104192015-08-25 Yao Qi <yao.qi@linaro.org>
10420
10421 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10422 Find proc_info by find_process_pid. All callers updated.
10423
5e35436e
YQ
104242015-08-25 Yao Qi <yao.qi@linaro.org>
10425
10426 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10427 Remove.
10428 (debug_reg_change_callback): Remove.
10429 (aarch64_notify_debug_reg_change): Remove.
10430
4a8a7965
YQ
104312015-08-25 Yao Qi <yao.qi@linaro.org>
10432
10433 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10434 Call current_lwp_ptid.
10435
32a271ee
YQ
104362015-08-25 Yao Qi <yao.qi@linaro.org>
10437
10438 * linux-aarch64-low.c (debug_reg_change_callback): Use
10439 debug_printf.
10440
0d51c8d7
YQ
104412015-08-25 Yao Qi <yao.qi@linaro.org>
10442
10443 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10444
31a43dd5
YQ
104452015-08-25 Yao Qi <yao.qi@linaro.org>
10446
10447 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10448
8ee52567
YQ
104492015-08-25 Yao Qi <yao.qi@linaro.org>
10450
10451 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10452 the code.
10453
ff3f0f45
YQ
104542015-08-25 Yao Qi <yao.qi@linaro.org>
10455
10456 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10457 Remove.
10458 (debug_reg_change_callback): Remove argument entry and add argument
10459 lwp. Remove local variable thread. Don't print thread id in the
10460 debugging output. Don't check whether pid of thread equals to pid.
10461 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10462 iterate_over_lwps instead find_inferior.
10463
3d40fbb5
PA
104642015-08-24 Pedro Alves <palves@redhat.com>
10465
10466 * inferiors.c (get_first_process): New function.
10467 * inferiors.h (get_first_process): New declaration.
10468 * remote-utils.c (read_ptid): Default to the first process in the
10469 list, instead of to the current thread's process.
10470
438e1e42
PA
104712015-08-24 Pedro Alves <palves@redhat.com>
10472
10473 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10474 * event-loop.c: Likewise.
10475 * remote-utils.c: Likewise.
10476 * tracepoint.c: Likewise.
10477
a8c6d4fc
PA
104782015-08-24 Pedro Alves <palves@redhat.com>
10479
10480 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10481 ptid_get_lwp.
10482
99b0bb12
PA
104832015-08-21 Pedro Alves <palves@redhat.com>
10484
10485 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10486 instead of literal 1.
10487
f8904751
PA
104882015-08-21 Pedro Alves <palves@redhat.com>
10489
10490 * tdesc.c (default_description): Explicitly zero-initialize.
10491
465a859e
PA
104922015-08-21 Pedro Alves <palves@redhat.com>
10493
10494 PR gdb/18749
10495 * inferiors.c (remove_thread): Discard any pending stop reply for
10496 this thread.
10497 * server.c (remove_all_on_match_pid): Rename to ...
10498 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10499 instead of a pid.
10500 (discard_queued_stop_replies): Change parameter to a ptid. Now
10501 extern.
10502 (handle_v_kill, kill_inferior_callback, captured_main)
10503 (process_serial_event): Adjust.
10504 * server.h (discard_queued_stop_replies): Declare.
10505
f0db101d
PA
105062015-08-21 Pedro Alves <palves@redhat.com>
10507
10508 * linux-low.c (wait_for_sigstop): Always switch to no thread
10509 selected if the previously current thread dies.
10510 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10511 process instead of the current thread's.
10512 * remote-utils.c (input_interrupt): Don't check if there's no
10513 current thread.
10514 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10515 current thread to the general thread fails, error out.
10516 (handle_qxfer_auxv, handle_qxfer_libraries)
10517 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10518 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10519 (handle_query): Check if there's a thread selected instead of
10520 checking whether there's any thread in the thread list.
10521 (handle_qxfer_threads, handle_qxfer_btrace)
10522 (handle_qxfer_btrace_conf): Don't error out early if there's no
10523 thread in the thread list.
10524 (handle_v_cont, myresume): Don't set the current thread to the
10525 continue thread.
10526 (process_serial_event) <Hg handling>: Also set thread_id if the
10527 previous general thread is still alive.
10528 (process_serial_event) <g/G handling>: If setting the current
10529 thread to the general thread fails, error out.
10530 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10531 thread's lwp instead of the current thread's.
10532 * target.c (set_desired_thread): If the desired thread was not
10533 found, leave the current thread pointing to NULL. Return an int
10534 (boolean) indicating success.
10535 * target.h (set_desired_thread): Change return type to int.
10536
40045d91
MF
105372015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10538
10539 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10540 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10541 #includes.
10542 (ps_get_thread_area): New function.
10543
45face3b
GB
105442015-08-19 Gary Benson <gbenson@redhat.com>
10545
10546 * hostio.c (handle_pread): Do not attempt to read more data
10547 than hostio_reply_with_data can fit in a packet.
10548
16d5f642
JB
105492015-08-18 Joel Brobecker <brobecker@adacore.com>
10550
10551 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10552
a738da3a
MF
105532015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10554
10555 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10556
33ebda9d
PA
105572015-08-06 Pedro Alves <palves@redhat.com>
10558
10559 * tracepoint.c (expr_eval_result): Now an int.
10560
a44892be
PA
105612015-08-06 Pedro Alves <palves@redhat.com>
10562
10563 * gdbthread.h (struct regcache): Forward declare.
10564 (struct thread_info) <regcache_data>: Now a struct regcache
10565 pointer.
10566 * inferiors.c (inferior_regcache_data)
10567 (set_inferior_regcache_data): Now work with struct regcache
10568 pointers.
10569 * inferiors.h (struct regcache): Forward declare.
10570 (inferior_regcache_data, set_inferior_regcache_data): Now work
10571 with struct regcache pointers.
10572 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10573 (free_register_cache_thread): Remove struct regcache pointer
10574 casts.
10575
608a1e46
PA
105762015-08-06 Pedro Alves <palves@redhat.com>
10577
10578 * server.c (captured_main): On error, print the exception message
10579 to stderr, and if run_once is set, throw a quit.
10580
f0ce0d3a
PA
105812015-08-06 Pedro Alves <palves@redhat.com>
10582
10583 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10584 the current thread.
10585
bf47e248
PA
105862015-08-06 Pedro Alves <palves@redhat.com>
10587
10588 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10589 reading beyond the passed in buffer length.
10590
b6b9ffcc
PL
105912015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10592
10593 * tracepoint.c (symbol_list) <required>: Remove.
10594
863d01bd
PA
105952015-08-06 Pedro Alves <palves@redhat.com>
10596
10597 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10598 count if stopping and suspending threads.
10599 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10600 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10601 (linux_detach): Complete an ongoing step-over.
10602 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10603 throughout.
10604 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10605 (linux_wait_1): If passing a signal to the inferior after
10606 finishing a step-over, unsuspend and re-resume all lwps. If we
10607 see a single-step event but the thread should be continuing, don't
10608 pass the trap to gdb.
10609 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10610 internal_error instead of gdb_assert.
10611 (enqueue_pending_signal): New function.
10612 (check_ptrace_stopped_lwp_gone): Add debug output.
10613 (start_step_over): Use internal_error instead of gdb_assert.
10614 (complete_ongoing_step_over): New function.
10615 (linux_resume_one_thread): Don't resume a suspended thread.
10616 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10617 it stepping.
10618
00db26fa
PA
106192015-08-06 Pedro Alves <palves@redhat.com>
10620
10621 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10622 (linux_thread_alive): Use lwp_is_marked_dead.
10623 (extended_event_reported): Delete.
10624 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10625 instead of extended_event_reported.
10626 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10627 as well.
10628 (lwp_is_marked_dead): New function.
10629 (lwp_running): Use lwp_is_marked_dead.
10630 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10631 comment.
10632
ad071a30
PA
106332015-08-06 Pedro Alves <palves@redhat.com>
10634
10635 * linux-low.c (linux_wait_1): Move fork event output out of the
10636 !report_to_gdb check. Pass event_child->waitstatus to
10637 target_waitstatus_to_string instead of ourstatus.
10638
524b57e6
YQ
106392015-08-04 Yao Qi <yao.qi@linaro.org>
10640
10641 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10642 if current_thread is 32 bit.
10643
6085d6f6
YQ
106442015-08-04 Yao Qi <yao.qi@linaro.org>
10645
10646 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10647 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10648 * server.c (extended_protocol): Remove "static".
10649 * server.h (extended_protocol): Declare it.
10650
8a7e4587
YQ
106512015-08-04 Yao Qi <yao.qi@linaro.org>
10652
10653 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10654 both aarch64 and aarch32.
10655 (aarch64_set_pc): Likewise.
10656
3b53ae99
YQ
106572015-08-04 Yao Qi <yao.qi@linaro.org>
10658
10659 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10660 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10661 arm-with-neon.xml to srv_xmlfiles.
10662 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10663 (is_64bit_tdesc): New function.
10664 (aarch64_linux_read_description): New function.
10665 (aarch64_arch_setup): Call aarch64_linux_read_description.
10666 (regs_info): Rename to regs_info_aarch64.
10667 (aarch64_regs_info): Return right regs_info.
10668 (initialize_low_arch): Call initialize_low_arch_aarch32.
10669
bd9e6534
YQ
106702015-08-04 Yao Qi <yao.qi@linaro.org>
10671
10672 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10673 * linux-aarch32-low.c: New file.
10674 * linux-aarch32-low.h: New file.
10675 * linux-arm-low.c (arm_fill_gregset): Move it to
10676 linux-aarch32-low.c.
10677 (arm_store_gregset): Likewise.
10678 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10679 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10680 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10681 (regs_info): Rename to regs_info_arm.
10682 (arm_regs_info): Return regs_info_aarch32 if
10683 have_ptrace_getregset is 1 and target description is
10684 arm_with_neon or arm_with_vfpv3.
10685 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10686 Call initialize_low_arch_aarch32 instead.
10687
ded48a5e
YQ
106882015-08-04 Yao Qi <yao.qi@linaro.org>
10689
10690 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10691 * linux-low.c: ... here.
10692 * linux-low.h (have_ptrace_getregset): Declare it.
10693
96e9210f
PA
106942015-08-04 Pedro Alves <palves@redhat.com>
10695
10696 * thread-db.c (struct thread_db): Use new typedefs.
10697 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10698 CHK calls.
10699 (disable_thread_event_reporting): Cast result of dlsym to
10700 destination function pointer type.
10701 (thread_db_mourn): Use td_ta_delete_ftype.
10702
af60a1ef
SL
107032015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10704
10705 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10706 arch variant.
10707 (CDX_BREAKPOINT): Define for R2.
10708 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10709 (the_low_target): Add comments.
10710
e8b41681
YQ
107112015-07-30 Yao Qi <yao.qi@linaro.org>
10712
10713 * linux-arm-low.c (arm_hwcap): Remove it.
10714 (arm_read_description): New local variable arm_hwcap. Don't
10715 set arm_hwcap to zero.
10716
89abb039
YQ
107172015-07-30 Yao Qi <yao.qi@linaro.org>
10718
10719 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10720 Use regcache->tdesc instead.
10721 (arm_store_wmmxregset): Likewise.
10722 (arm_fill_vfpregset): Likewise.
10723 (arm_store_vfpregset): Likewise.
10724
deca266c
YQ
107252015-07-30 Yao Qi <yao.qi@linaro.org>
10726
10727 * linux-arm-low.c: Include arch/arm.h.
10728 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10729 (arm_store_gregset): Likewise.
10730
aa58a496
SM
107312015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10732
10733 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10734 ptrace's 4th parameter.
10735
50904b25
YQ
107362015-07-27 Yao Qi <yao.qi@linaro.org>
10737
10738 * configure.srv (case aarch64*-*-linux*): Don't set
10739 srv_linux_usrregs.
10740
5826e159
PA
107412015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10742
10743 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10744 sys/ptrace.h.
10745 * linux-arm-low.c: Likewise.
10746 * linux-cris-low.c: Likewise.
10747 * linux-crisv32-low.c: Likewise.
10748 * linux-low.c: Likewise.
10749 * linux-m68k-low.c: Likewise.
10750 * linux-mips-low.c: Likewise.
10751 * linux-nios2-low.c: Likewise.
10752 * linux-s390-low.c: Likewise.
10753 * linux-sparc-low.c: Likewise.
10754 * linux-tic6x-low.c: Likewise.
10755 * linux-tile-low.c: Likewise.
10756 * linux-x86-low.c: Likewise.
10757
54019719
PA
107582015-07-24 Pedro Alves <palves@redhat.com>
10759
10760 * config.in: Regenerate.
10761 * configure: Regenerate.
10762
eb7aa561
PA
107632015-07-24 Pedro Alves <palves@redhat.com>
10764
10765 * acinclude.m4: Include ../ptrace.m4.
10766 * configure.ac: Call GDB_AC_PTRACE.
10767 * config.in, configure: Regenerate.
10768
55d7b841
YQ
107692015-07-24 Yao Qi <yao.qi@linaro.org>
10770
10771 * linux-low.c (linux_create_inferior): Remove setting to
10772 proc->priv->new_inferior.
10773 (linux_attach): Likewise.
10774 (linux_low_filter_event): Likewise.
10775 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10776
c06cbd92
YQ
107772015-07-24 Yao Qi <yao.qi@linaro.org>
10778
10779 * linux-low.c (linux_arch_setup): New function.
10780 (linux_low_filter_event): If proc->tdesc is NULL and
10781 proc->attached is true, call the_low_target.arch_setup.
10782 Otherwise, keep status pending, and return.
10783 (linux_resume_one_lwp_throw): Don't call get_pc if
10784 thread->while_stepping isn't NULL. Don't call
10785 get_thread_regcache if proc->tdesc is NULL.
10786 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10787 (linux_target_ops): Install arch_setup.
10788 * server.c (start_inferior): Call the_target->arch_setup.
10789 * target.h (struct target_ops) <arch_setup>: New field.
10790 (target_arch_setup): New marco.
10791 * lynx-low.c (lynx_target_ops): Update.
10792 * nto-low.c (nto_target_ops): Update.
10793 * spu-low.c (spu_target_ops): Update.
10794 * win32-low.c (win32_target_ops): Update.
10795
5ae3ebba
YQ
107962015-07-24 Yao Qi <yao.qi@linaro.org>
10797
10798 * linux-low.c (linux_add_process): Don't set
10799 proc->priv->new_inferior.
10800 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10801 (linux_attach): Likewise.
10802
eb97750b
YQ
108032015-07-24 Yao Qi <yao.qi@linaro.org>
10804
10805 * server.c (start_inferior): Code refactor.
10806
51aee833
YQ
108072015-07-24 Yao Qi <yao.qi@linaro.org>
10808
10809 * server.c (process_serial_event): Set general_thread.
10810
af1b22f3
YQ
108112015-07-21 Yao Qi <yao.qi@linaro.org>
10812
10813 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10814 aarch64_linux_get_debug_reg_capacity.
10815
554717a3
YQ
108162015-07-17 Yao Qi <yao.qi@linaro.org>
10817
10818 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10819 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10820 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10821 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10822 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10823 (AARCH64_HWP_ALIGNMENT): Likewise.
10824 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10825 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10826 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10827 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10828 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10829 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10830 (struct aarch64_debug_reg_state): Likewise.
10831 (struct arch_lwp_info): Likewise.
10832 (aarch64_align_watchpoint): Likewise.
10833 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10834 (aarch64_watchpoint_length): Likewise.
10835 (aarch64_point_encode_ctrl_reg): Likewise
10836 (aarch64_point_is_aligned): Likewise.
10837 (aarch64_align_watchpoint): Likewise.
10838 (aarch64_linux_set_debug_regs):
10839 (aarch64_dr_state_insert_one_point): Likewise.
10840 (aarch64_dr_state_remove_one_point): Likewise.
10841 (aarch64_handle_breakpoint): Likewise.
10842 (aarch64_handle_aligned_watchpoint): Likewise.
10843 (aarch64_handle_unaligned_watchpoint): Likewise.
10844 (aarch64_handle_watchpoint): Likewise.
10845
c67ca4de
YQ
108462015-07-17 Yao Qi <yao.qi@linaro.org>
10847
10848 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10849 and don't aarch64_get_debug_reg_state. All callers update.
10850 (aarch64_handle_aligned_watchpoint): Likewise.
10851 (aarch64_handle_unaligned_watchpoint): Likewise.
10852 (aarch64_handle_watchpoint): Likewise.
10853 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10854 (aarch64_remove_point): Likewise.
10855
25abf979
YQ
108562015-07-17 Yao Qi <yao.qi@linaro.org>
10857
10858 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10859 debug_printf.
10860 (aarch64_handle_unaligned_watchpoint): Likewise.
10861
db1ff28b
JK
108622015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10863
10864 Revert the previous 3 commits:
10865 Move gdb_regex* to common/
10866 Move linux_find_memory_regions_full & co.
10867 gdbserver build-id attribute generator
10868
700ca40f
JK
108692015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10870 Jan Kratochvil <jan.kratochvil@redhat.com>
10871
10872 gdbserver build-id attribute generator.
10873 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10874 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10875 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10876 (find_phdr): New.
10877 (get_dynamic): Use find_pdhr to traverse program headers.
10878 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10879 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10880 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10881 (get_hex_build_id): New.
10882 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10883 to reply XML document.
10884
9904185c
JK
108852015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10886 Jan Kratochvil <jan.kratochvil@redhat.com>
10887
10888 * target.c: Include target/target-utils.h and fcntl.h.
10889 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10890 (target_fileio_read_stralloc): New functions.
10891
6e5b4429
JK
108922015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10893
10894 * Makefile.in (OBS): Add gdb_regex.o.
10895 (gdb_regex.o): New.
10896 * config.in: Rebuilt.
10897 * configure: Rebuilt.
10898
ddc98fbf
JK
108992015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10900 Jan Kratochvil <jan.kratochvil@redhat.com>
10901
10902 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10903 * Makefile.in (OBS): Add target-utils.o.
10904 (linux-maps.o, target-utils.o): New.
10905 * configure.srv (srv_linux_obj): Add linux-maps.o.
10906
e57bb7a0
PL
109072015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10908
10909 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10910 function, return 1.
10911 (the_low_target): Install it.
10912
586b02a9
PA
109132015-07-14 Pedro Alves <palves@redhat.com>
10914
10915 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10916 Instead, ignore ECHILD, and throw an error for other errnos.
10917
58c1b36c
PA
109182015-07-10 Pedro Alves <palves@redhat.com>
10919
10920 * event-loop.c (struct callback_event) <data>: Change type to
10921 gdb_client_data instance instead of gdb_client_data pointer.
10922 (append_callback_event): Adjust.
10923
421530db
PL
109242015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10925
10926 * linux-aarch64-low.c: Add comments for each linux_target_ops
10927 method. Remove comments already covered in target_ops and
10928 linux_target_ops definitions.
10929 (the_low_target): Add comments for each unimplemented method.
10930
c2d65f38
YQ
109312015-07-09 Yao Qi <yao.qi@linaro.org>
10932
10933 * linux-aarch64-low.c (aarch64_regmap): Remove.
10934 (aarch64_usrregs_info): Remove.
10935 (regs_info): Set field usrregs to NULL.
10936
b20a6524
MM
109372015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10938
10939 * linux-low.c: Include "rsp-low.h"
10940 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10941 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10942 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10943 (handle_btrace_enable_pt): New.
10944 (handle_btrace_general_set): Support "pt".
10945 (handle_btrace_conf_general_set): Support "pt:size".
10946
96c97461
PL
109472015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10948
10949 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10950 Z_PACKET_SW_BP.
10951
37d66942
PL
109522015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10953
10954 * linux-aarch64-low.c: Remove comment about endianness.
10955 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10956 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10957 memcmp.
10958
dc06243f
GB
109592015-06-24 Gary Benson <gbenson@redhat.com>
10960
10961 * linux-i386-ipa.c (stdint.h): Do not include.
10962 * lynx-i386-low.c (stdint.h): Likewise.
10963 * lynx-ppc-low.c (stdint.h): Likewise.
10964 * mem-break.c (stdint.h): Likewise.
10965 * thread-db.c (stdint.h): Likewise.
10966 * tracepoint.c (stdint.h): Likewise.
10967 * win32-low.c (stdint.h): Likewise.
10968
124e13d9
SM
109692015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10970
10971 * server.c (write_qxfer_response): Update call to
10972 remote_escape_output.
10973
909c2cda
JK
109742015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10975 Jan Kratochvil <jan.kratochvil@redhat.com>
10976
10977 Merge multiple hex conversions.
10978 * gdbreplay.c (tohex): Rename to 'fromhex'.
10979 (logchar): Use fromhex.
10980
24c05f46
JK
109812015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10982
10983 * server.c (handle_qxfer_libraries): Set `version' attribute for
10984 <library-list>.
10985
14d2069a
GB
109862015-06-10 Gary Benson <gbenson@redhat.com>
10987
10988 * target.h (struct target_ops) <multifs_open>: New field.
10989 <multifs_unlink>: Likewise.
10990 <multifs_readlink>: Likewise.
10991 * linux-low.c (nat/linux-namespaces.h): New include.
10992 (linux_target_ops): Initialize the_target->multifs_open,
10993 the_target->multifs_unlink and the_target->multifs_readlink.
10994 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10995 * hostio.c (hostio_fs_pid): New static variable.
10996 (hostio_handle_new_gdb_connection): New function.
10997 (handle_setfs): Likewise.
10998 (handle_open): Use the_target->multifs_open as appropriate.
10999 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11000 (handle_readlink): Use the_target->multifs_readlink as
11001 appropriate.
11002 (handle_vFile): Handle vFile:setfs packets.
11003 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11004 after target_handle_new_gdb_connection.
11005
4b8b5e72
GB
110062015-06-10 Gary Benson <gbenson@redhat.com>
11007
11008 * configure.ac (AC_CHECK_FUNCS): Add setns.
11009 * config.in: Regenerate.
11010 * configure: Likewise.
11011 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11012 (linux-namespaces.o): New rule.
11013 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11014
3ac2e371
GB
110152015-06-09 Gary Benson <gbenson@redhat.com>
11016
11017 * hostio.c (handle_open): Process mode argument with
11018 fileio_to_host_mode.
11019
ca9b78ce
YQ
110202015-06-01 Yao Qi <yao.qi@linaro.org>
11021
11022 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11023 * linux-x86-low.c: Likewise.
11024
bfacd19d
DB
110252015-05-28 Don Breazeal <donb@codesourcery.com>
11026
11027 * linux-low.c (handle_extended_wait): Initialize
11028 thread_info.last_resume_kind for new fork children.
11029
452003ef
PA
110302015-05-15 Pedro Alves <palves@redhat.com>
11031
11032 * target.h (target_handle_new_gdb_connection): Rewrite using if
11033 wrapped in do/while.
11034
1041a03c
JB
110352015-05-14 Joel Brobecker <brobecker@adacore.com>
11036
11037 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11038 * configure, config.in: Regenerate.
11039 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11040 Declare typedef.
11041
c269dbdb
DB
110422015-05-12 Don Breazeal <donb@codesourcery.com>
11043
11044 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11045 PTRACE_EVENT_VFORK_DONE.
11046 (linux_low_ptrace_options, extended_event_reported): Add vfork
11047 events.
11048 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11049 and "vforkdone" for RSP 'T' Stop Reply Packet.
11050 * server.h (report_vfork_events): Declare
11051 global variable.
11052
3a8a0396
DB
110532015-05-12 Don Breazeal <donb@codesourcery.com>
11054
11055 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11056 (the_low_target) <new_fork>: Initialize new member.
11057 * linux-arm-low.c (arm_new_fork): New function.
11058 (the_low_target) <new_fork>: Initialize new member.
11059 * linux-low.c (handle_extended_wait): Call new target function
11060 new_fork.
11061 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11062 * linux-mips-low.c (mips_add_watchpoint): New function
11063 extracted from mips_insert_point.
11064 (the_low_target) <new_fork>: Initialize new member.
11065 (mips_linux_new_fork): New function.
11066 (mips_insert_point): Call mips_add_watchpoint.
11067 * linux-x86-low.c (x86_linux_new_fork): New function.
11068 (the_low_target) <new_fork>: Initialize new member.
11069
de0d863e
DB
110702015-05-12 Don Breazeal <donb@codesourcery.com>
11071
11072 * linux-low.c (handle_extended_wait): Implement return value,
11073 rename argument 'event_child' to 'event_lwp', handle
11074 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11075 (linux_low_ptrace_options): New function.
11076 (linux_low_filter_event): Call linux_low_ptrace_options,
11077 use different argument fo linux_enable_event_reporting,
11078 use return value from handle_extended_wait.
11079 (extended_event_reported): New function.
11080 (linux_wait_1): Call extended_event_reported and set
11081 status to report fork events.
11082 (linux_write_memory): Add pid to debug message.
11083 (reset_lwp_ptrace_options_callback): New function.
11084 (linux_handle_new_gdb_connection): New function.
11085 (linux_target_ops): Initialize new structure member.
11086 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11087 * lynx-low.c: Initialize new structure member.
11088 * remote-utils.c (prepare_resume_reply): Implement stop reason
11089 "fork" for "T" stop message.
11090 * server.c (handle_query): Call handle_new_gdb_connection.
11091 * server.h (report_fork_events): Declare global flag.
11092 * target.h (struct target_ops) <handle_new_gdb_connection>:
11093 New member.
11094 (target_handle_new_gdb_connection): New macro.
11095 * win32-low.c: Initialize new structure member.
11096
ddcbc397
DB
110972015-05-12 Don Breazeal <donb@codesourcery.com>
11098
11099 * mem-break.c (APPEND_TO_LIST): Define macro.
11100 (clone_agent_expr): New function.
11101 (clone_one_breakpoint): New function.
11102 (clone_all_breakpoints): New function.
11103 * mem-break.h: Declare new functions.
11104
89245bc0
DB
111052015-05-12 Don Breazeal <donb@codesourcery.com>
11106
11107 * linux-low.c (linux_supports_fork_events): New function.
11108 (linux_supports_vfork_events): New function.
11109 (linux_target_ops): Initialize new structure members.
11110 (initialize_low): Call linux_check_ptrace_features.
11111 * lynx-low.c (lynx_target_ops): Initialize new structure
11112 members.
11113 * server.c (report_fork_events, report_vfork_events):
11114 New global flags.
11115 (handle_query): Add new features to qSupported packet and
11116 response.
11117 (captured_main): Initialize new global variables.
11118 * target.h (struct target_ops) <supports_fork_events>:
11119 New member.
11120 <supports_vfork_events>: New member.
11121 (target_supports_fork_events): New macro.
11122 (target_supports_vfork_events): New macro.
11123 * win32-low.c (win32_target_ops): Initialize new structure
11124 members.
11125
835205d0
GB
111262015-05-12 Gary Benson <gbenson@redhat.com>
11127
11128 * server.c (handle_qxfer_exec_file): Use current process
11129 if annex is empty.
11130
21e94bd9
SL
111312015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11132
11133 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11134 Remove HAVE_PTRACE_GETREGS conditionals.
11135 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11136 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11137
45614f15
YQ
111382015-05-08 Yao Qi <yao.qi@linaro.org>
11139
11140 * linux-low.c (linux_supports_conditional_breakpoints): New
11141 function.
11142 (linux_target_ops): Install new target method.
11143 * lynx-low.c (lynx_target_ops): Install NULL hook for
11144 supports_conditional_breakpoints.
11145 * nto-low.c (nto_target_ops): Likewise.
11146 * spu-low.c (spu_target_ops): Likewise.
11147 * win32-low.c (win32_target_ops): Likewise.
11148 * server.c (handle_query): Check
11149 target_supports_conditional_breakpoints.
11150 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11151 New field.
11152 (target_supports_conditional_breakpoints): New macro.
11153
80ad801e
PA
111542015-05-06 Pedro Alves <palves@redhat.com>
11155
11156 PR server/18081
11157 * server.c (start_inferior): If the process exits, mourn it.
11158
819843c7
GB
111592015-04-21 Gary Benson <gbenson@redhat.com>
11160
11161 * hostio.c (fileio_open_flags_to_host): Factored out to
11162 fileio_to_host_openflags in common/fileio.c. Single use
11163 updated.
11164
a2d5a9d7
MF
111652015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11166
11167 * linux-xtensa-low.c (xtensa_fill_gregset)
11168 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11169 XCHAL_HAVE_LOOP.
11170
deb44829
MF
111712015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11172
11173 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11174 (regs_info): Replace usrregs pointer with NULL.
11175
e57f1de3
GB
111762015-04-17 Gary Benson <gbenson@redhat.com>
11177
11178 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11179 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11180 * server.c (handle_qxfer_exec_file): New function.
11181 (qxfer_packets): Add exec-file entry.
11182 (handle_query): Report qXfer:exec-file:read as supported packet.
11183
62828379
RN
111842015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11185
11186 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11187
b88bb450
GB
111882015-04-09 Gary Benson <gbenson@redhat.com>
11189
11190 * hostio-errno.c (errno_to_fileio_error): Remove function.
11191 Update caller to use remote_fileio_to_fio_error.
11192
c8f4bfdd
YQ
111932015-04-09 Yao Qi <yao.qi@linaro.org>
11194
11195 * linux-low.c (linux_insert_point): Call
11196 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11197 (linux_remove_point): Call remove_memory_breakpoint if type is
11198 raw_bkpt_type_sw.
11199 * linux-x86-low.c (x86_insert_point): Don't call
11200 insert_memory_breakpoint.
11201 (x86_remove_point): Don't call remove_memory_breakpoint.
11202
41f98f02
PA
112032015-04-01 Pedro Alves <palves@redhat.com>
11204 Cleber Rosa <crosa@redhat.com>
11205
11206 * server.c (gdbserver_usage): Reorganize and extend the usage
11207 message.
11208
2bf6fb9d
PA
112092015-03-24 Pedro Alves <palves@redhat.com>
11210
11211 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11212 output. Also dump TRAP_TRACE.
11213 (linux_low_filter_event): In debug output, distinguish a
11214 resume_stop SIGSTOP from a delayed SIGSTOP.
11215
369f6daa
GB
112162015-03-24 Gary Benson <gbenson@redhat.com>
11217
11218 * linux-x86-low.c (x86_linux_new_thread): Moved to
11219 nat/x86-linux.c.
11220 (x86_linux_prepare_to_resume): Likewise.
11221
8e5d4070
GB
112222015-03-24 Gary Benson <gbenson@redhat.com>
11223
11224 * Makefile.in (x86-linux-dregs.o): New rule.
11225 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11226 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11227 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11228 (x86_linux_dr_get): Likewise.
11229 (x86_linux_dr_set): Likewise.
11230 (update_debug_registers_callback): Likewise.
11231 (x86_linux_dr_set_addr): Likewise.
11232 (x86_linux_dr_get_addr): Likewise.
11233 (x86_linux_dr_set_control): Likewise.
11234 (x86_linux_dr_get_control): Likewise.
11235 (x86_linux_dr_get_status): Likewise.
11236 (x86_linux_update_debug_registers): Likewise.
11237
2b95d440
GB
112382015-03-24 Gary Benson <gbenson@redhat.com>
11239
11240 * linux-x86-low.c (x86_linux_update_debug_registers):
11241 New function, factored out from...
11242 (x86_linux_prepare_to_resume): ...this.
11243
14b0bc68
GB
112442015-03-24 Gary Benson <gbenson@redhat.com>
11245
11246 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11247 (x86_linux_dr_set): Likewise.
11248 (update_debug_registers_callback): Likewise.
11249 (x86_linux_dr_set_addr): Likewise.
11250 (x86_linux_dr_get_addr): Likewise.
11251 (x86_linux_dr_set_control): Likewise.
11252 (x86_linux_dr_get_control): Likewise.
11253 (x86_linux_dr_get_status): Likewise.
11254 (x86_linux_prepare_to_resume): Likewise.
11255
5dfe6ca8
GB
112562015-03-24 Gary Benson <gbenson@redhat.com>
11257
11258 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11259 Use perror_with_name. Pass string through gettext.
11260 (x86_linux_dr_set): Likewise.
11261
d33472ad
GB
112622015-03-24 Gary Benson <gbenson@redhat.com>
11263
11264 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11265 (x86_linux_dr_set_addr): ...this.
11266 (x86_dr_low_get_addr): Rename to...
11267 (x86_linux_dr_get_addr): ...this.
11268 (x86_dr_low_set_control): Rename to...
11269 (x86_linux_dr_set_control): ...this.
11270 (x86_dr_low_get_control): Rename to...
11271 (x86_linux_dr_get_control): ...this.
11272 (x86_dr_low_get_status): Rename to...
11273 (x86_linux_dr_get_status): ...this.
11274 (x86_dr_low): Update with new function names.
11275
4b134ca1
GB
112762015-03-24 Gary Benson <gbenson@redhat.com>
11277
11278 * Makefile.in (x86-linux.o): New rule.
11279 * configure.srv: Add x86-linux.o to relevant targets.
11280 * linux-low.c (lwp_set_arch_private_info): New function.
11281 (lwp_arch_private_info): Likewise.
11282 * linux-x86-low.c: Include nat/x86-linux.h.
11283 (arch_lwp_info): Removed structure.
11284 (update_debug_registers_callback):
11285 Use lwp_set_debug_registers_changed.
11286 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11287 and lwp_set_debug_registers_changed.
11288 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11289
34c703da
GB
112902015-03-24 Gary Benson <gbenson@redhat.com>
11291
11292 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11293 * linux-arm-low.c (arm_new_thread): Likewise.
11294 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11295 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11296 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11297 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11298
cff068da
GB
112992015-03-24 Gary Benson <gbenson@redhat.com>
11300
11301 * linux-low.c (ptid_of_lwp): New function.
11302 (lwp_is_stopped): Likewise.
11303 (lwp_stop_reason): Likewise.
11304 * linux-x86-low.c (update_debug_registers_callback):
11305 Use lwp_is_stopped.
11306 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11307 lwp_stop_reason.
11308
b2f7c7e8
GB
113092015-03-24 Gary Benson <gbenson@redhat.com>
11310
11311 * linux-low.h (linux_stop_lwp): Remove declaration.
11312
6d4ee8c6
GB
113132015-03-24 Gary Benson <gbenson@redhat.com>
11314
11315 * linux-low.h: Include nat/linux-nat.h.
11316 * linux-low.c (iterate_over_lwps_args): New structure.
11317 (iterate_over_lwps_filter): New function.
11318 (iterate_over_lwps): Likewise.
11319 * linux-x86-low.c (update_debug_registers_callback):
11320 Update signature to what iterate_over_lwps expects.
11321 Remove PID check that iterate_over_lwps now performs.
11322 (x86_dr_low_set_addr): Use iterate_over_lwps.
11323 (x86_dr_low_set_control): Likewise.
11324
70a0bb6b
GB
113252015-03-24 Gary Benson <gbenson@redhat.com>
11326
11327 * linux-x86-low.c (x86_debug_reg_state): New function.
11328 (x86_linux_prepare_to_resume): Use the above.
11329
7b669087
GB
113302015-03-24 Gary Benson <gbenson@redhat.com>
11331
11332 * linux-low.c (current_lwp_ptid): New function.
11333 * linux-x86-low.c: Include nat/linux-nat.h.
11334 (x86_dr_low_get_addr): Use current_lwp_ptid.
11335 (x86_dr_low_get_control): Likewise.
11336 (x86_dr_low_get_status): Likewise.
11337
eef49a3d
PA
113382015-03-20 Pedro Alves <palves@redhat.com>
11339
11340 * tracepoint.c (cmd_qtstatus): Make "str" const.
11341
b2333d22
PA
113422015-03-20 Pedro Alves <palves@redhat.com>
11343
11344 * server.c (handle_general_set): Make "req_str" const.
11345
23f238d3
PA
113462015-03-19 Pedro Alves <palves@redhat.com>
11347
11348 * linux-low.c (linux_resume_one_lwp): Rename to ...
11349 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11350 instead call perror_with_name.
11351 (check_ptrace_stopped_lwp_gone): New function.
11352 (linux_resume_one_lwp): Reimplement as wrapper around
11353 linux_resume_one_lwp_throw that swallows errors if the LWP is
11354 gone.
11355
91baf43f
PA
113562015-03-19 Pedro Alves <palves@redhat.com>
11357
11358 * linux-low.c (count_events_callback, select_event_lwp_callback):
11359 No longer check whether the thread has resume_stop as last resume
11360 kind.
11361
8bf3b159
PA
113622015-03-19 Pedro Alves <palves@redhat.com>
11363
11364 * linux-low.c (count_events_callback, select_event_lwp_callback):
11365 Use the lwp's status_pending_p field, not the thread's.
11366
b90fc188
PA
113672015-03-19 Pedro Alves <palves@redhat.com>
11368
11369 * linux-low.c (select_event_lwp_callback): Update comments to
11370 no longer mention SIGTRAP.
11371
464b0089
GB
113722015-03-18 Gary Benson <gbenson@redhat.com>
11373
11374 * server.c (handle_query): Do not report vFile:fstat as supported.
11375
aa9e327f
GB
113762015-03-11 Gary Benson <gbenson@redhat.com>
11377
11378 * hostio.c (sys/types.h): New include.
11379 (sys/stat.h): Likewise.
11380 (common-remote-fileio.h): Likewise.
11381 (handle_fstat): New function.
11382 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11383
791c0056
GB
113842015-03-11 Gary Benson <gbenson@redhat.com>
11385
11386 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11387 struct stat.st_blocks and struct stat.st_blksize.
11388 * configure: Regenerate.
11389 * config.in: Likewise.
11390 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11391 (OBS): Add common-remote-fileio.o.
11392 (common-remote-fileio.o): New rule.
11393
9a9df970
PA
113942015-03-09 Pedro Alves <palves@redhat.com>
11395
11396 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11397 'struct sockaddr' pointer in 'accept' call.
11398
9eb1356e
PA
113992015-03-09 Pedro Alves <palves@redhat.com>
11400
11401 Revert:
11402 2015-03-07 Pedro Alves <palves@redhat.com>
11403 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11404 or <winsock2.h> here. Instead include "gdb_socket.h".
11405 (remote_open): Use union gdb_sockaddr_u.
11406 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11407 or <winsock2.h> here. Instead include "gdb_socket.h".
11408 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11409 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11410 or <sys/un.h>.
11411 (init_named_socket, gdb_agent_helper_thread): Use union
11412 gdb_sockaddr_u.
11413
aac331e4
PA
114142015-03-07 Pedro Alves <palves@redhat.com>
11415
11416 * configure.ac (build_warnings): Move
11417 -Wdeclaration-after-statement to the C-specific set.
11418 * configure: Regenerate.
11419
366c75fc
PA
114202015-03-07 Pedro Alves <palves@redhat.com>
11421
11422 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11423 or <winsock2.h> here. Instead include "gdb_socket.h".
11424 (remote_open): Use union gdb_sockaddr_u.
11425 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11426 or <winsock2.h> here. Instead include "gdb_socket.h".
11427 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11428 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11429 or <sys/un.h>.
11430 (init_named_socket, gdb_agent_helper_thread): Use union
11431 gdb_sockaddr_u.
11432
492d29ea
PA
114332015-03-07 Pedro Alves <palves@redhat.com>
11434
11435 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11436 instead.
11437
60a191ed
YQ
114382015-03-06 Yao Qi <yao.qi@linaro.org>
11439
11440 * linux-aarch64-low.c (aarch64_insert_point): Use
11441 show_debug_regs as a boolean.
11442 (aarch64_remove_point): Likewise.
11443
f5771b1d
PA
114442015-03-05 Pedro Alves <palves@redhat.com>
11445
11446 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11447 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11448 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11449 * nto-low.c (nto_target_ops): Likewise.
11450 * spu-low.c (spu_target_ops): Likewise.
11451 * win32-low.c (win32_target_ops): Likewise.
11452
3e572f71
PA
114532015-03-04 Pedro Alves <palves@redhat.com>
11454
72f4393d 11455 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11456 Decide whether a breakpoint triggered based on the SIGTRAP's
11457 siginfo.si_code.
72f4393d
L
11458 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11459 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11460 (linux_low_filter_event): Check for breakpoints before checking
11461 watchpoints.
11462 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11463 siginfo.si_code.
72f4393d
L
11464 (linux_stopped_by_sw_breakpoint)
11465 (linux_supports_stopped_by_sw_breakpoint)
11466 (linux_stopped_by_hw_breakpoint)
11467 (linux_supports_stopped_by_hw_breakpoint): New functions.
11468 (linux_target_ops): Install new target methods.
3e572f71 11469
1ec68e26
PA
114702015-03-04 Pedro Alves <palves@redhat.com>
11471
11472 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11473 * server.c (swbreak_feature, hwbreak_feature): New globals.
11474 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11475 (captured_main): Clear swbreak_feature and hwbreak_feature.
11476 * server.h (swbreak_feature, hwbreak_feature): Declare.
11477 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11478 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11479 supports_stopped_by_hw_breakpoint>: New fields.
11480 (target_supports_stopped_by_sw_breakpoint)
11481 (target_stopped_by_sw_breakpoint)
11482 (target_supports_stopped_by_hw_breakpoint)
11483 (target_stopped_by_hw_breakpoint): Declare.
11484
15c66dd6
PA
114852015-03-04 Pedro Alves <palves@redhat.com>
11486
11487 enum lwp_stop_reason -> enum target_stop_reason
11488 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11489 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11490 (linux_wait_1, stuck_in_jump_pad_callback)
11491 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11492 (linux_stopped_by_watchpoint):
11493 * linux-low.h (enum lwp_stop_reason): Delete.
11494 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11495 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11496
98fc70d6
YQ
114972015-03-04 Yao Qi <yao.qi@linaro.org>
11498
11499 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11500
dd2ac174
GB
115012015-03-03 Gary Benson <gbenson@redhat.com>
11502
11503 * hostio.c (handle_vFile): Fix prefix lengths.
11504
d68e53f4
MM
115052015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11506
11507 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11508 ptr_bits.
11509
bf2d68ab
AA
115102015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11511
11512 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11513 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11514 (clean): Add "rm -f" for above C files.
11515 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11516 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11517 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11518 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11519 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11520 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11521 (init_registers_s390x_vx_linux64)
11522 (init_registers_s390x_tevx_linux64)
11523 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11524 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11525 declarations.
11526 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11527 (s390_store_vxrs_high): New functions.
11528 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11529 NT_S390_VXRS_HIGH.
11530 (s390_arch_setup): Add logic for selecting one of the new target
11531 descriptions. Activate the new vector regsets if applicable.
11532 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11533 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11534 and init_registers_s390x_tevx_linux64.
11535
c966a859
PA
115362015-03-01 Pedro Alves <palves@redhat.com>
11537
11538 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11539 parameter.
11540
4180215b
PA
115412015-02-27 Pedro Alves <palves@redhat.com>
11542
11543 * linux-x86-low.c (u_debugreg_offset): New function.
11544 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11545
749bab01
PA
115462015-02-27 Pedro Alves <palves@redhat.com>
11547
11548 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11549 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11550 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11551 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11552 (ps_lsetfpregs, ps_getpid)
11553 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11554 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11555 (ps_lsetxregs, ps_plog): Declare.
11556
3c14e5a3
PA
115572015-02-27 Pedro Alves <palves@redhat.com>
11558
11559 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11560 IP_AGENT_EXPORT_FUNC.
11561 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11562 IP_AGENT_EXPORT_FUNC.
11563 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11564 (IP_AGENT_EXPORT): Delete.
11565 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11566 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11567 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11568 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11569 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11570 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11571 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11572 (traceframe_read_count, traceframe_write_count)
11573 (traceframes_created, trace_state_variables, get_raw_reg)
11574 (get_trace_state_variable_value, set_trace_state_variable_value)
11575 (ust_loaded, helper_thread_id, cmd_buf): Use
11576 IPA_SYM_EXPORTED_NAME.
11577 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11578 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11579 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11580 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11581 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11582 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11583 EXTERN_C_PUSH/EXTERN_C_POP.
11584 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11585 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11586 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11587 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11588 (traceframe_write_count, traceframe_read_count)
11589 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11590 (about_to_request_buffer_space, get_trace_state_variable_value)
11591 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11592 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11593 EXTERN_C_PUSH/EXTERN_C_POP.
11594 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11595 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11596 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11597 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11598 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11599 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11600 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11601 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11602 Define.
11603 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11604 (IP_AGENT_EXPORT_VAR_DECL): Define.
11605 (tracing): Declare.
11606 (gdb_agent_get_raw_reg): Declare.
11607
fe978cb0
PA
116082015-02-27 Tom Tromey <tromey@redhat.com>
11609 Pedro Alves <palves@redhat.com>
11610
11611 Rename symbols whose names are reserved C++ keywords throughout.
11612
3bc3d82a
PA
116132015-02-27 Pedro Alves <palves@redhat.com>
11614
11615 * Makefile.in (COMPILER): New, get it from autoconf.
11616 (CXX): Get from autoconf instead.
11617 (COMPILE.pre): Use COMPILER.
11618 (CC-LD): Rename to ...
11619 (CC_LD): ... this. Use COMPILER.
11620 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11621 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11622 * acinclude.m4: Include build-with-cxx.m4.
11623 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11624 Disable -Werror by default if building in C++ mode.
11625 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11626 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11627 the C++ compiler. Save/restore CXXFLAGS too.
11628 * configure: Regenerate.
11629
07697489
PA
116302015-02-27 Pedro Alves <palves@redhat.com>
11631
11632 * acinclude.m4: Include libiberty.m4.
11633 * configure.ac: Call libiberty_INIT.
11634 * config.in, configure: Regenerate.
11635
9beb7c4e
PA
116362015-02-26 Pedro Alves <palves@redhat.com>
11637
11638 * linux-low.c (linux_wait_1): When incrementing the PC past a
11639 program breakpoint always use the_low_target.breakpoint_len as
11640 increment, rather than the maximum between that and
11641 the_low_target.decr_pc_after_break.
11642
8090aef2
PA
116432015-02-23 Pedro Alves <palves@redhat.com>
11644
11645 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11646 thread was doing a step-over; always adjust the PC if
11647 we stepped over a permanent breakpoint.
11648 (linux_wait_1): If we stepped over breakpoint that was on top of a
11649 permanent breakpoint, manually advance the PC past it.
11650
bc9540e8
PA
116512015-02-23 Pedro Alves <palves@redhat.com>
11652
11653 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11654 modes.
11655 (x86_fill_gregset, x86_store_gregset): Use it when handling
11656 $orig_eax.
11657
2db9a427
PA
116582015-02-20 Pedro Alves <palves@redhat.com>
11659
11660 * thread-db.c: Include "nat/linux-procfs.h".
11661 (thread_db_init): Skip listing new threads if the kernel supports
11662 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11663
afa8d396
PA
116642015-02-20 Pedro Alves <palves@redhat.com>
11665
11666 * linux-low.c (status_pending_p_callback): Use ptid_match.
11667
c9587f88
AT
116682015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11669
11670 PR breakpoints/16812
11671 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11672 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11673 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11674
b05ec7a5
AT
116752015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11676
11677 PR breakpoints/15956
11678 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11679
d33501a5
MM
116802015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11681
11682 * linux-low.c (linux_low_btrace_conf): Print size.
11683 * server.c (handle_btrace_conf_general_set): New.
11684 (hanle_general_set): Call handle_btrace_conf_general_set.
11685 (handle_query): Report Qbtrace-conf:bts:size as supported.
11686
f4abbc16
MM
116872015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11688
11689 * linux-low.c (linux_low_enable_btrace): Update parameters.
11690 (linux_low_btrace_conf): New.
11691 (linux_target_ops)<to_btrace_conf>: Initialize.
11692 * server.c (current_btrace_conf): New.
11693 (handle_btrace_enable): Rename to ...
11694 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11695 to target_enable_btrace. Update comment. Update users.
11696 (handle_qxfer_btrace_conf): New.
11697 (qxfer_packets): Add btrace-conf entry.
11698 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11699 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11700 (target_ops)<read_btrace_conf>: New.
11701 (target_enable_btrace): Update parameters.
11702 (target_read_btrace_conf): New.
11703
043c3577
MM
117042015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11705
11706 * server.c (handle_btrace_general_set): Remove call to
11707 target_supports_btrace.
11708 (supported_btrace_packets): New.
11709 (handle_query): Call supported_btrace_packets.
11710 * target.h: include btrace-common.h.
11711 (btrace_target_info): Removed.
11712 (supports_btrace, target_supports_btrace): Update parameters.
11713
734b0e4b
MM
117142015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11715
11716 * Makefile.in (SFILES): Add common/btrace-common.c.
11717 (OBS): Add common/btrace-common.o.
11718 (btrace-common.o): Add build rules.
11719 * linux-low: Include btrace-common.h.
11720 (linux_low_read_btrace): Use struct btrace_data. Call
11721 btrace_data_init and btrace_data_fini.
11722
d6c146e9
PA
117232015-02-06 Pedro Alves <palves@redhat.com>
11724
11725 * thread-db.c (find_new_threads_callback): Add debug output.
11726
20ba1ce6
PA
117272015-02-04 Pedro Alves <palves@redhat.com>
11728
11729 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11730 (resume_stopped_resumed_lwps): New function.
11731 (linux_wait_for_event_filtered): Use it.
11732
8cc73a39
SDJ
117332015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11734
11735 * Makefile.in (SFILES): Add linux-personality.c.
11736 (linux-personality.o): New rule.
11737 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11738 list of objects to be built.
11739 * linux-low.c: Include nat/linux-personality.h.
11740 (linux_create_inferior): Remove code to disable address space
11741 randomization (moved to ../nat/linux-personality.c). Create
11742 cleanup to disable address space randomization.
11743
fb23d554
SDJ
117442015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11745
11746 * Makefile.in (posix-strerror.o): New rule.
11747 (mingw-strerror.o): Likewise.
11748 * configure: Regenerated.
11749 * configure.ac: Source file ../common/common.host. Initialize new
11750 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11751
cdf43629
YQ
117522015-01-14 Yao Qi <yao@codesourcery.com>
11753
11754 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11755 (ppc-linux.o): New rule.
11756 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11757 * configure.ac: AC_CHECK_FUNCS(getauxval).
11758 * config.in: Re-generated.
11759 * configure: Re-generated.
11760 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11761 ppc64_64bit_inferior_p
11762
514c5338
YQ
117632015-01-14 Yao Qi <yao@codesourcery.com>
11764
11765 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11766 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11767 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11768 (PT_ORIG_R3, PT_TRAP): Likewise.
11769 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11770 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11771 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11772
3368c1e5
JB
117732015-01-10 Joel Brobecker <brobecker@adacore.com>
11774
11775 * i387-fp.c (i387_cache_to_xsave): In look over
11776 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11777 zmmh_low_space field by use of zmmh_high_space.
11778
582511be
PA
117792015-01-09 Pedro Alves <palves@redhat.com>
11780
11781 * linux-low.c (step_over_bkpt): Move higher up in the file.
11782 (handle_extended_wait): Don't store the stop_pc here.
11783 (get_stop_pc): Adjust comments and rename to ...
11784 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11785 stopped for a software breakpoint or hardware breakpoint.
11786 (thread_still_has_status_pending_p): New function.
11787 (status_pending_p_callback): Use
11788 thread_still_has_status_pending_p. If the event is no longer
11789 interesting, resume the LWP.
11790 (handle_tracepoints): Add assert.
11791 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11792 (wstatus_maybe_breakpoint): New function.
11793 (cancel_breakpoint): Delete function.
11794 (check_stopped_by_watchpoint): New function, factored out from
11795 linux_low_filter_event.
11796 (lp_status_maybe_breakpoint): Delete function.
11797 (linux_low_filter_event): Remove filter_ptid argument.
11798 Leave thread group exits pending here. Store the LWP's stop PC.
11799 Always leave events pending.
11800 (linux_wait_for_event_filtered): Pull all events out of the
11801 kernel, and leave them all pending.
11802 (count_events_callback, select_event_lwp_callback): Consider all
11803 events.
11804 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11805 (select_event_lwp): Only give preference to the stepping LWP in
11806 all-stop mode. Adjust comments.
11807 (ignore_event): New function.
11808 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11809 references to cancel_breakpoints. Adjust to renames. Also give
11810 equal priority to all LWPs that have had events in non-stop mode.
11811 If reporting a software breakpoint event, unadjust the LWP's PC.
11812 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11813 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11814 Adjust.
11815 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11816 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11817 (linux_stopped_by_watchpoint): Adjust.
11818 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11819 * linux-low.h (enum lwp_stop_reason): New.
11820 (struct lwp_info) <stop_pc>: Adjust comment.
11821 <stopped_by_watchpoint>: Delete field.
11822 <stop_reason>: New field.
11823 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11824 * mem-break.c (software_breakpoint_inserted_here)
11825 (hardware_breakpoint_inserted_here): New function.
11826 * mem-break.h (software_breakpoint_inserted_here)
11827 (hardware_breakpoint_inserted_here): Declare.
11828 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11829 (cancel_breakpoints): Delete.
11830 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11831 (upload_fast_traceframes): Remove references to
11832 cancel_breakpoints.
11833
a33e3959
PA
118342015-01-09 Pedro Alves <palves@redhat.com>
11835
11836 * thread-db.c (find_new_threads_callback): Ignore thread if the
11837 kernel thread ID is -1.
11838
8784d563
PA
118392015-01-09 Pedro Alves <palves@redhat.com>
11840
11841 * linux-low.c (linux_attach_fail_reason_string): Move to
11842 nat/linux-ptrace.c, and rename.
11843 (linux_attach_lwp): Update comment.
11844 (attach_proc_task_lwp_callback): New function.
11845 (linux_attach): Adjust to rename and use
11846 linux_proc_attach_tgid_threads.
11847 (linux_attach_fail_reason_string): Delete declaration.
11848
76f2b779
JB
118492015-01-01 Joel Brobecker <brobecker@adacore.com>
11850
11851 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11852 * server.c (gdbserver_version): Likewise.
11853
fafcc06a
SDJ
118542014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11855
11856 * remote-utils.c: Include ctype.h.
11857 (input_interrupt): Explicitly handle the case when the char
11858 received is the NUL byte. Improve the printing of non-ASCII
11859 characters.
11860
beed38b8
JB
118612014-12-16 Joel Brobecker <brobecker@adacore.com>
11862
11863 * linux-low.c (linux_low_filter_event): Update call to
11864 linux_enable_event_reporting following the addition of
11865 a new parameter to that function.
11866
bf330350
CU
118672014-12-16 Catalin Udma <catalin.udma@freescale.com>
11868
11869 PR server/17457
11870 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11871 (AARCH64_FPCR_REGNO): Likewise.
11872 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11873 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11874 (aarch64_store_fpregset): Likewise.
11875
5227d625
JB
118762014-12-15 Joel Brobecker <brobecker@adacore.com>
11877
11878 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11879 Remove FIXME comment about assumption about N.
11880
f93b65a0
JB
118812014-12-13 Joel Brobecker <brobecker@adacore.com>
11882
11883 * configure.ac: If large-file support is disabled in GDBserver,
11884 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11885 * configure: Regenerate.
11886
e5a9158d
AA
118872014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11888
11889 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11890 warning upon ENODATA from ptrace.
11891 * linux-s390-low.c (s390_store_tdb): New.
11892 (s390_regsets): Add regset for NT_S390_TDB.
11893
feea5f36
AA
118942014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11895
11896 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11897 without a fill_function.
11898 * linux-s390-low.c (s390_fill_last_break): Remove.
11899 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11900 (s390_arch_setup): Use regset's size instead of fill_function for
11901 loop end condition.
11902
098dbe61
AA
119032014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11904
11905 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11906 the regset's store function when ptrace returned an error.
11907 * regcache.c (get_thread_regcache): Invalidate register cache
11908 before fetching inferior's registers.
11909
28eef672
AA
119102014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11911
11912 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11913 while-loop as for-loop.
11914 (regsets_store_inferior_registers): Likewise.
11915
bdca27a2
YQ
119162014-11-28 Yao Qi <yao@codesourcery.com>
11917
11918 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11919 * config.in, configure: Re-generate.
11920 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11921 is defined.
11922
9c232dda
YQ
119232014-11-21 Yao Qi <yao@codesourcery.com>
11924
11925 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11926 (AC_CHECK_HEADERS): Remove malloc.h.
11927 * configure: Re-generated.
11928 * config.in: Re-generated.
11929 * server.h: Don't include alloca.h and malloc.h.
11930 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11931 Don't include malloc.h.
11932
43968415
JB
119332014-11-17 Joel Brobecker <brobecker@adacore.com>
11934
11935 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11936 corresponding ERRNO check in same block.
11937
40e91bc7
PA
119382014-11-12 Pedro Alves <palves@redhat.com>
11939
11940 * server.c (cont_thread): Update comment.
11941 (start_inferior, attach_inferior): No longer clear cont_thread.
11942 (handle_v_cont): No longer set cont_thread.
11943 (captured_main): Clear cont_thread each time a GDB connects.
11944
c2c118cf
PA
119452014-11-12 Pedro Alves <palves@redhat.com>
11946
11947 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11948 thread, and don't resume all threads if the Hc thread has exited.
11949
78708b7c
PA
119502014-11-12 Pedro Alves <palves@redhat.com>
11951
11952 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11953 the process group instead of to a specific LWP.
11954
a2abc7de
PA
119552014-10-15 Pedro Alves <palves@redhat.com>
11956
11957 PR server/17487
11958 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11959 parameter.
11960 (arm_set_thread_context): Delete.
11961 (the_low_target): Adjust.
11962 * win32-i386-low.c (debug_registers_changed)
11963 (debug_registers_used): Delete.
11964 (update_debug_registers_callback): New function.
11965 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11966 needing to update their debug registers.
11967 (win32_get_current_dr): New function.
11968 (x86_dr_low_get_addr, x86_dr_low_get_control)
11969 (x86_dr_low_get_status): Fetch the debug register from the thread
11970 record's context.
11971 (i386_initial_stuff): Adjust.
11972 (i386_get_thread_context): Remove current_event parameter. Don't
11973 clear debug_registers_changed nor copy DR values to
11974 debug_reg_state.
11975 (i386_set_thread_context): Delete.
11976 (i386_prepare_to_resume): New function.
11977 (i386_thread_added): Mark the thread as needing to update irs
11978 debug registers.
11979 (the_low_target): Remove i386_set_thread_context and install
11980 i386_prepare_to_resume.
11981 * win32-low.c (win32_get_thread_context): Adjust.
11982 (win32_set_thread_context): Use SetThreadContext
11983 directly.
11984 (win32_prepare_to_resume): New function.
11985 (win32_require_context): New function, factored out from ...
11986 (thread_rec): ... this.
11987 (continue_one_thread): Call win32_prepare_to_resume on each thread
11988 we're about to continue.
11989 (win32_resume): Call win32_prepare_to_resume on the event thread.
11990 * win32-low.h (struct win32_thread_info)
11991 <debug_registers_changed>: New field.
11992 (struct win32_target_ops): Change prototype of set_thread_context,
11993 delete set_thread_context and add prepare_to_resume.
11994 (win32_require_context): New declaration.
11995
a442d071
GB
119962014-10-08 Gary Benson <gbenson@redhat.com>
11997
11998 * server.h: Do not include common-exceptions.h.
11999
6f1947e8
GB
120002014-10-08 Gary Benson <gbenson@redhat.com>
12001
12002 * server.h: Do not include cleanups.h.
12003
63b434a4
JH
120042014-09-30 James Hogan <james.hogan@imgtec.com>
12005
12006 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12007 mips64-dsp-linux.c.
12008
c4d9ceb6
YQ
120092014-09-23 Yao Qi <yao@codesourcery.com>
12010
12011 * linux-low.c (lp_status_maybe_breakpoint): New function.
12012 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12013 (count_events_callback): Likewise.
12014 (select_event_lwp_callback): Likewise.
12015 (cancel_breakpoints_callback): Likewise.
12016
89a5711c
DB
120172014-09-19 Don Breazeal <donb@codesourcery.com>
12018
12019 * linux-low.c (handle_extended_wait): Call
12020 linux_ptrace_get_extended_event.
12021 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12022 linux_is_extended_waitstatus.
12023
bffc0964
JB
120242014-09-16 Joel Brobecker <brobecker@adacore.com>
12025
12026 * Makefile.in (CPPFLAGS): Define.
12027 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12028 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12029
0bfdf32f
GB
120302014-09-16 Gary Benson <gbenson@redhat.com>
12031
12032 * inferiors.h (current_inferior): Renamed as...
12033 (current_thread): New variable. All uses updated.
12034 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12035 (maybe_move_out_of_jump_pad): Likewise.
12036 (cancel_breakpoint): Likewise.
12037 (linux_low_filter_event): Likewise.
12038 (wait_for_sigstop): Likewise.
12039 (linux_resume_one_lwp): Likewise.
12040 (need_step_over_p): Likewise.
12041 (start_step_over): Likewise.
12042 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12043 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12044 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12045 and save_inferior as saved_thread.
12046 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12047 saved_thread.
12048 (regcache_invalidate_thread): Likewise.
12049 * remote-utils.c (prepare_resume_reply): Likewise.
12050 * thread-db.c (thread_db_get_tls_address): Likewise.
12051 (disable_thread_event_reporting): Likewise.
12052 (remove_thread_event_breakpoints): Likewise.
12053 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12054 as saved_thread.
12055 * target.h (set_desired_inferior): Renamed as...
12056 (set_desired_thread): New declaration. All uses updated.
12057 * server.c (myresume): Updated comment to reference thread instead
12058 of inferior.
12059 (handle_serial_event): Likewise.
12060 (handle_target_event): Likewise.
12061
361c8ade
GB
120622014-09-12 Tom Tromey <tromey@redhat.com>
12063 Gary Benson <gbenson@redhat.com>
12064
12065 * regcache.h: Include common-regcache.h.
12066 (regcache_read_pc): Don't declare.
12067 * regcache.c (get_thread_regcache_for_ptid): New function.
12068
bd9269f7
GB
120692014-09-11 Tom Tromey <tromey@redhat.com>
12070 Gary Benson <gbenson@redhat.com>
12071
12072 * symbol.c: New file.
12073 * Makefile.in (SFILES): Add symbol.c.
12074 (OBS): Add symbol.o.
12075
f8c1d06b
GB
120762014-09-11 Gary Benson <gbenson@redhat.com>
12077
12078 * target.c (target_stop_ptid, target_continue_ptid): New
12079 functions.
12080
721ec300
GB
120812014-09-11 Tom Tromey <tromey@redhat.com>
12082 Gary Benson <gbenson@redhat.com>
12083
12084 * target.h: Include target/target.h.
12085 * target.c (target_read_memory, target_read_uint32)
12086 (target_write_memory): New functions.
12087
c5e92cca
GB
120882014-09-11 Gary Benson <gbenson@redhat.com>
12089
12090 * server.h (debug_hw_points): Don't declare.
12091 * server.c (debug_hw_points): Don't define. Replace all uses
12092 with show_debug_regs.
12093 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12094 all uses with show_debug_regs.
12095
2e4bb98a
EBM
120962014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12097
12098 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12099 endianness into account.
12100 (ppc_supply_ptrace_register): Likewise.
12101
ac740bc7
JH
121022014-09-03 James Hogan <james.hogan@imgtec.com>
12103
12104 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12105 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12106
97ea6506
GB
121072014-09-03 Gary Benson <gbenson@redhat.com>
12108
12109 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12110 ALL_DEBUG_ADDRESS_REGISTERS.
12111
df7e5265
GB
121122014-09-02 Gary Benson <gbenson@redhat.com>
12113
12114 * i386-low.h: Renamed as...
12115 * x86-low.h: New file. All type, function and variable name
12116 prefixes changed from "i386_" to "x86_". All references updated.
12117 * i386-low.c: Renamed as...
12118 * x86-low.c: New file. All type, function and variable name
12119 prefixes changed from "i386_" to "x86_". All references updated.
12120
ed859da7
GB
121212014-09-02 Gary Benson <gbenson@redhat.com>
12122
12123 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12124 (x86_linux_new_thread): Likewise.
12125
860789c7
GB
121262014-08-29 Gary Benson <gbenson@redhat.com>
12127
12128 * server.h (setjmp.h): Do not include.
12129 (toplevel): Do not declare.
12130 (common-exceptions.h): Include.
12131 (cleanups.h): Likewise.
12132 * server.c (toplevel): Do not define.
12133 (exit_code): New static global.
12134 (detach_or_kill_for_exit_cleanup): New function.
12135 (main): New function. Original main renamed to...
12136 (captured_main): New function.
12137 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12138
ff55e1b5
GB
121392014-08-29 Gary Benson <gbenson@redhat.com>
12140
12141 * Makefile.in (SFILES): Add common/common-exceptions.c.
12142 (OBS): Add common-exceptions.o.
12143 (common-exceptions.o): New rule.
12144 * utils.c (prepare_to_throw_exception): New function.
12145
e9bcb658
GB
121462014-08-29 Gary Benson <gbenson@redhat.com>
12147
12148 * config.in: Regenerate.
12149 * configure: Likewise.
12150
e3180625
GB
121512014-08-29 Gary Benson <gbenson@redhat.com>
12152
12153 * Makefile.in (SFILES): Add common/cleanups.c.
12154 (OBS): cleanups.o.
12155 (cleanups.o): New rule.
12156
e3d6ba5d
GB
121572014-08-29 Gary Benson <gbenson@redhat.com>
12158
12159 * utils.c (internal_vwarning): New function.
12160
7096e886
GB
121612014-08-28 Gary Benson <gbenson@redhat.com>
12162
12163 * utils.h (fatal): Remove declaration.
12164 * utils.c (fatal): Remove function.
12165
14ce3192
GB
121662014-08-28 Gary Benson <gbenson@redhat.com>
12167
12168 * tracepoint.c (gdb_agent_init): Replace fatal with
12169 perror_with_name.
12170 (initialize_tracepoint): Likewise.
12171
50278d59
GB
121722014-08-28 Gary Benson <gbenson@redhat.com>
12173
12174 * remote-utils.c (remote_prepare): Replace fatal with error.
12175
aa96c426
GB
121762014-08-28 Gary Benson <gbenson@redhat.com>
12177
12178 * linux-low.c (linux_async): Replace fatal with warning.
12179 Tidy up and return.
12180 (linux_start_non_stop): Return -1 if linux_async failed.
12181
f7160e97
GB
121822014-08-28 Gary Benson <gbenson@redhat.com>
12183
12184 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12185 gdb_assert.
12186 (i386_dr_low_get_addr): Remove vague comment.
12187 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12188 gdb_assert.
12189
38e08fca
GB
121902014-08-28 Gary Benson <gbenson@redhat.com>
12191
12192 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12193 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12194 internal_error.
12195 (linux_resume_one_lwp): Likewise.
12196 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12197 gdb_assert.
12198 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12199 with internal_error.
12200 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12201 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12202 (find_register_by_name): Replace fatal with internal_error.
12203 (find_regno): Likewise.
12204 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12205 * thread-db.c (thread_db_create_event): Likewise.
12206 (thread_db_load_search): Likewise.
12207 (try_thread_db_load_1): Likewise.
12208 * tracepoint.c (get_jump_space_head): Replace fatal with
12209 internal_error.
12210 (claim_trampoline_space): Likewise.
12211 (have_fast_tracepoint_trampoline_buffer): Likewise.
12212 (cmd_qtstart): Likewise.
12213 (stop_tracing): Likewise.
12214 (fast_tracepoint_collecting): Likewise.
12215 (target_malloc): Likewise.
12216 (download_tracepoint): Likewise.
12217 (download_trace_state_variables): Replace check with gdb_assert.
12218 (upload_fast_traceframes): Replace fatal with internal_error.
12219
34abf635
GB
122202014-08-19 Tom Tromey <tromey@redhat.com>
12221 Gary Benson <gbenson@redhat.com>
12222
12223 * Makefile.in (SFILES): Add common/common-debug.c.
12224 (OBS): Add common-debug.o.
12225 (common-debug.o): New rule.
12226 * debug.h (debug_printf): Don't declare.
12227 * debug.c (debug_printf): Renamed and rewritten as...
12228 (debug_vprintf): New function.
12229
f6e94d78
GB
122302014-08-19 Gary Benson <gbenson@redhat.com>
12231
12232 * utils.h: Do not include print-utils.h.
12233
9239eeab
GB
122342014-08-19 Tom Tromey <tromey@redhat.com>
12235 Gary Benson <gbenson@redhat.com>
12236
12237 * server.h: Add static assertion.
12238 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12239
ef87c8bb
GB
122402014-08-19 Tom Tromey <tromey@redhat.com>
12241 Gary Benson <gbenson@redhat.com>
12242
12243 * Makefile.in (SFILES): Add common/errors.c.
12244 (OBS): Add errors.o.
12245 (IPA_OBS): Add errors-ipa.o.
12246 (errors.o): New rule.
12247 (errors-ipa.o): Likewise.
12248 * utils.h (perror_with_name, error, warning): Don't declare.
12249 * utils.c (warning): Renamed and rewritten as...
12250 (vwarning): New function.
12251 (error): Renamed and rewritten as...
12252 (verror): New function.
12253 (internal_error): Renamed and rewritten as...
12254 (internal_verror): New function.
12255
bb974a24
GB
122562014-08-07 Gary Benson <gbenson@redhat.com>
12257
12258 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12259 * configure: Regenerate.
12260 * config.in: Likewise.
12261 * server.h: Do not include errno.h.
12262 * event-loop.c: Likewise.
12263 * hostio-errno.c: Likewise.
12264 * linux-low.c: Likewise.
12265 * remote-utils.c: Likewise.
12266 * spu-low.c: Likewise.
12267 * utils.c: Likewise.
12268 * gdbreplay.c: Unconditionally include errno.h.
12269
6d3d12eb
GB
122702014-08-07 Gary Benson <gbenson@redhat.com>
12271
12272 * server.h: Do not include string.h.
12273 * event-loop.c: Likewise.
12274 * linux-low.c: Likewise.
12275 * regcache.c: Likewise.
12276 * remote-utils.c: Likewise.
12277 * spu-low.c: Likewise.
12278 * utils.c: Likewise.
12279
dccbb609
GB
122802014-08-07 Gary Benson <gbenson@redhat.com>
12281
12282 * server.h: Do not include gdb_assert.h.
12283
e76df0d0
GB
122842014-08-07 Gary Benson <gbenson@redhat.com>
12285
12286 * server.h: Do not include common-utils.h.
12287
4cb9c816
GB
122882014-08-07 Gary Benson <gbenson@redhat.com>
12289
12290 * server.h: Do not include ptid.h.
12291 * notif.h: Likewise.
12292
3995eeee
GB
122932014-08-07 Gary Benson <gbenson@redhat.com>
12294
12295 * server.h: Do not include gdb_locale.h.
12296
cb9f1a9b
GB
122972014-08-07 Gary Benson <gbenson@redhat.com>
12298
12299 * server.h: Do not include gdb/signals.h.
12300 * win32-low.c: Likewise.
12301
a5fceff8
GB
123022014-08-07 Gary Benson <gbenson@redhat.com>
12303
12304 * server.h: Do not include pathmax.h.
12305
b9391142
GB
123062014-08-07 Gary Benson <gbenson@redhat.com>
12307
12308 * server.h: Do not include libiberty.h.
12309 * linux-bfin-low.c: Likewise.
12310
0e443c87
GB
123112014-08-07 Gary Benson <gbenson@redhat.com>
12312
12313 * server.h: Do not include ansidecl.h.
12314
8ebb3f56
GB
123152014-08-07 Gary Benson <gbenson@redhat.com>
12316
12317 * linux-x86-low.c: Do not include stddef.h.
12318 * lynx-ppc-low.c: Likewise.
12319 * tracepoint.c: Likewise.
12320
8980bdf6
GB
123212014-08-07 Gary Benson <gbenson@redhat.com>
12322
12323 * server.h: Do not include stdarg.h.
12324 * nto-low.c: Likewise.
12325
d7096f71
GB
123262014-08-07 Gary Benson <gbenson@redhat.com>
12327
12328 * server.h: Do not include stdlib.h.
12329 * inferiors.c: Likewise.
12330 * linux-low.c: Likewise.
12331 * regcache.c: Likewise.
12332 * spu-low.c: Likewise.
12333 * tracepoint.c: Likewise.
12334 * utils.c: Likewise.
12335
d02f550d
GB
123362014-08-07 Gary Benson <gbenson@redhat.com>
12337
12338 * server.h: Do not include stdio.h.
12339 * linux-low.c: Likewise.
12340 * remote-utils.c: Likewise.
12341 * spu-low.c: Likewise.
12342 * utils.c: Likewise.
12343 * wincecompat.c: Likewise.
12344
87f6c4e3
GB
123452014-08-06 Gary Benson <gbenson@redhat.com>
12346
12347 * regcache.c (init_register_cache): Move conditionals inside if.
12348
7089dca4
GB
123492014-08-06 Gary Benson <gbenson@redhat.com>
12350
12351 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12352
462f517e
GB
123532014-07-31 Gary Benson <gbenson@redhat.com>
12354
12355 * ax.h: Do not include server.h.
12356 * gdbthread.h: Likewise.
12357 * lynx-low.h: Likewise.
12358 * notif.h: Likewise.
12359
976411d6
GB
123602014-07-30 Gary Benson <gbenson@redhat.com>
12361
12362 * server.h: Include common-defs.h.
12363 Do not include config.h or build-gnulib-gdbserver/config.h.
12364
d41f6d8e
GB
123652014-07-30 Gary Benson <gbenson@redhat.com>
12366
12367 * hostio-errno.c: Move server.h to top of includes list.
12368 * inferiors.c: Likewise.
12369 * linux-x86-low.c: Likewise.
12370 * notif.c: Include server.h.
12371
314c6a35
TT
123722014-07-24 Tom Tromey <tromey@redhat.com>
12373 Gary Benson <gbenson@redhat.com>
12374
12375 * server.h (CORE_ADDR): Now unsigned.
12376
69ff6be5
PA
123772014-07-16 Pedro Alves <palves@redhat.com>
12378
12379 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12380
ce9e3fe7
PA
123812014-07-15 Pedro Alves <palves@redhat.com>
12382
12383 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12384 copy.
12385
e76126e8
PA
123862014-07-11 Pedro Alves <palves@redhat.com>
12387
12388 * linux-low.c (kill_wait_lwp): New function, based on
12389 kill_one_lwp_callback, but use my_waitpid directly.
12390 (kill_one_lwp_callback, linux_kill): Use it.
12391
8e9db26e
PA
123922014-06-23 Pedro Alves <palves@redhat.com>
12393
12394 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12395 before setting DR0..DR3.
12396
698b3e08
GB
123972014-06-20 Gary Benson <gbenson@redhat.com>
12398
12399 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12400 * configure: Regenerated.
12401 * config.in: Likewise.
12402
125f8a3d
GB
124032014-06-20 Gary Benson <gbenson@redhat.com>
12404
12405 * Makefile.in (SFILES): Update locations for files moved
12406 from common to nat.
12407 (object file files): Reordered.
12408
42995dbd
GB
124092014-06-20 Gary Benson <gbenson@redhat.com>
12410
12411 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12412 (i386_dr_low_set_addr): Likewise.
12413 (i386_dr_low_get_addr): Likewise.
12414 (i386_dr_low_can_set_control): Likewise.
12415 (i386_dr_low_set_control): Likewise.
12416 (i386_dr_low_get_control): Likewise.
12417 (i386_dr_low_get_status): Likewise.
12418 (i386_get_debug_register_length): Likewise.
12419 * linux-x86-low.c (i386_dr_low_set_addr):
12420 Changed signature. Made static.
12421 (i386_dr_low_get_addr): Likewise.
12422 (i386_dr_low_set_control): Likewise.
12423 (i386_dr_low_get_control): Likewise.
12424 (i386_dr_low_get_status): Likewise.
12425 (i386_dr_low): New global variable.
12426 * win32-i386-low.c (i386_dr_low_set_addr):
12427 Changed signature. Made static.
12428 (i386_dr_low_get_addr): Likewise.
12429 (i386_dr_low_set_control): Likewise.
12430 (i386_dr_low_get_control): Likewise.
12431 (i386_dr_low_get_status): Likewise.
12432 (i386_dr_low): New global variable.
12433
e1d2394b
MS
124342014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12435
12436 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12437 * Makefile.in (AR, AR_FLAGS): Define.
12438 * configure: Regenerate.
12439
3a8ee006
GB
124402014-06-19 Gary Benson <gbenson@redhat.com>
12441
12442 * Makefile.in (i386-dregs.o): New rule.
12443 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12444 * i386-low.c (target.h): Remove include.
12445 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12446 (DR_CONTROL_SHIFT): Likewise.
12447 (DR_CONTROL_SIZE): Likewise.
12448 (DR_RW_EXECUTE): Likewise.
12449 (DR_RW_WRITE): Likewise.
12450 (DR_RW_READ): Likewise.
12451 (DR_RW_IORW): Likewise.
12452 (DR_LEN_1): Likewise.
12453 (DR_LEN_2): Likewise.
12454 (DR_LEN_4): Likewise.
12455 (DR_LEN_8): Likewise.
12456 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12457 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12458 (DR_ENABLE_SIZE): Likewise.
12459 (DR_LOCAL_SLOWDOWN): Likewise.
12460 (DR_GLOBAL_SLOWDOWN): Likewise.
12461 (DR_CONTROL_RESERVED): Likewise.
12462 (I386_DR_CONTROL_MASK): Likewise.
12463 (I386_DR_VACANT): Likewise.
12464 (I386_DR_LOCAL_ENABLE): Likewise.
12465 (I386_DR_GLOBAL_ENABLE): Likewise.
12466 (I386_DR_DISABLE): Likewise.
12467 (I386_DR_SET_RW_LEN): Likewise.
12468 (I386_DR_GET_RW_LEN): Likewise.
12469 (I386_DR_WATCH_HIT): Likewise.
12470 (i386_wp_op_t): Likewise.
12471 (i386_show_dr): Likewise.
12472 (i386_length_and_rw_bits): Likewise.
12473 (i386_insert_aligned_watchpoint): Likewise.
12474 (i386_remove_aligned_watchpoint): Likewise.
12475 (i386_handle_nonaligned_watchpoint): Likewise.
12476 i386_update_inferior_debug_regs(): Likewise.
12477 (i386_dr_insert_watchpoint): Likewise.
12478 (i386_dr_remove_watchpoint): Likewise.
12479 (i386_dr_region_ok_for_watchpoint): Likewise.
12480 (i386_dr_stopped_data_address): Likewise.
12481 (i386_dr_stopped_by_watchpoint): Likewise.
12482
8f26655c
GB
124832014-06-19 Gary Benson <gbenson@redhat.com>
12484
12485 * i386-low.c (i386_dr_show): Renamed to
12486 i386_show_dr and made static. All uses updated.
12487 (i386_dr_length_and_rw_bits): Renamed to
12488 i386_length_and_rw_bits and made static.
12489 All uses updated.
12490 (i386_dr_insert_aligned_watchpoint): Renamed to
12491 i386_insert_aligned_watchpoint and made static.
12492 All uses updated.
12493 (i386_dr_remove_aligned_watchpoint): Renamed to
12494 i386_remove_aligned_watchpoint and made static.
12495 All uses updated.
12496 (i386_dr_update_inferior_debug_regs): Renamed to
12497 i386_update_inferior_debug_regs and made static.
12498 All uses updated.
12499
b9228891
GB
125002014-06-18 Gary Benson <gbenson@redhat.com>
12501
5171def3
GB
12502 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12503 (i386_dr_low_can_set_control): Likewise.
12504 (i386_get_debug_register_length): Likewise.
12505 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12506 (i386_dr_low_can_set_control): Likewise.
12507 (i386_get_debug_register_length): Likewise.
12508
125092014-06-17 Gary Benson <gbenson@redhat.com>
12510
b9228891
GB
12511 * i386-low.h (i386-dregs.h): New include.
12512 (DR_FIRSTADDR): Now in i386-dregs.h.
12513 (DR_LASTADDR): Likewise.
12514 (DR_NADDR): Likewise.
12515 (DR_STATUS): Likewise.
12516 (DR_CONTROL): Likewise.
12517 (i386_debug_reg_state): Likewise.
12518 (i386_dr_insert_watchpoint): Likewise.
12519 (i386_dr_remove_watchpoint): Likewise.
12520 (i386_dr_region_ok_for_watchpoint): Likewise.
12521 (i386_dr_stopped_data_address): Likewise.
12522 (i386_dr_stopped_by_watchpoint): Likewise.
12523 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12524
4be83cc2
GB
125252014-06-18 Gary Benson <gbenson@redhat.com>
12526
12527 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12528 i386_dr_insert_watchpoint.
12529 (i386_low_remove_watchpoint): Renamed to
12530 i386_dr_remove_watchpoint.
12531 (i386_low_region_ok_for_watchpoint): Renamed to
12532 i386_dr_region_ok_for_watchpoint.
12533 (i386_low_stopped_data_address): Renamed to
12534 i386_dr_stopped_data_address.
12535 (i386_low_stopped_by_watchpoint): Renamed to
12536 i386_dr_stopped_by_watchpoint.
12537 * i386-low.c (i386_show_dr): Renamed to
12538 i386_dr_show and made nonstatic. All uses updated.
12539 (i386_length_and_rw_bits): Renamed to
12540 i386_dr_length_and_rw_bits and made nonstatic.
12541 All uses updated.
12542 (i386_insert_aligned_watchpoint): Renamed to
12543 i386_dr_insert_aligned_watchpoint and made nonstatic.
12544 All uses updated.
12545 (i386_remove_aligned_watchpoint): Renamed to
12546 i386_dr_remove_aligned_watchpoint and made nonstatic.
12547 All uses updated.
12548 (i386_update_inferior_debug_regs): Renamed to
12549 i386_dr_update_inferior_debug_regs and made nonstatic.
12550 All uses updated.
12551 (i386_low_insert_watchpoint): Renamed to
12552 i386_dr_insert_watchpoint. All uses updated.
12553 (i386_low_remove_watchpoint): Renamed to
12554 i386_dr_remove_watchpoint. All uses updated.
12555 (i386_low_region_ok_for_watchpoint): Renamed to
12556 i386_dr_region_ok_for_watchpoint. All uses updated.
12557 (i386_low_stopped_data_address): Renamed to
12558 i386_dr_stopped_data_address. All uses updated.
12559 (i386_low_stopped_by_watchpoint): Renamed to
12560 i386_dr_stopped_by_watchpoint. All uses updated.
12561
131aa0d4
GB
125622014-06-18 Gary Benson <gbenson@redhat.com>
12563
12564 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12565 (i386_dr_low_can_set_control): Likewise.
12566 (i386_insert_aligned_watchpoint): New check.
12567
d9305f7f
GB
125682014-06-18 Gary Benson <gbenson@redhat.com>
12569
12570 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12571 Renamed to state.
12572
e927c9fc
GB
125732014-06-18 Gary Benson <gbenson@redhat.com>
12574
12575 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12576 instead of fatal and error.
12577 (i386_handle_nonaligned_watchpoint): Likewise.
12578
1b6d4134
GB
125792014-06-18 Gary Benson <gbenson@redhat.com>
12580
12581 * i386-low.c (i386_get_debug_register_length): New macro.
12582 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12583 (i386_show_dr): Use debug_printf instead of fprintf. Use
12584 phex to format values.
12585
6e62758f
GB
125862014-06-18 Gary Benson <gbenson@redhat.com>
12587
12588 * i386-low.h: Comment changes.
12589 * i386-low.c: Likewise.
12590
fc6e2f03
GB
125912014-06-18 Gary Benson <gbenson@redhat.com>
12592
12593 * i386-low.c: Whitespace changes.
12594
f9d1eeed
TT
125952014-06-12 Tom Tromey <tromey@redhat.com>
12596
12597 * utils.c (freeargv): Remove.
12598
0b04e523
TT
125992014-06-12 Tom Tromey <tromey@redhat.com>
12600
12601 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12602 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12603 (parse_debug_format_options): Likewise.
12604 (gdbserver_usage): Likewise.
12605 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12606 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12607 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12608 against libiberty.
12609 ($(LIBGNU)): Depend on libiberty.
12610 (all-lib): Recurse into all subdirs.
12611 (install-only): Invoke "install" target in subdirs.
12612 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12613 targets.
12614 * configure: Rebuild.
12615 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12616 for vasprintf, vsnprintf, or gettimeofday.
12617 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12618 srv_tgtobj.
12619
270c9937
JB
126202014-06-05 Joel Brobecker <brobecker@adacore.com>
12621
12622 * development.sh: Delete.
12623 * Makefile.in (config.status): Adjust dependency on development.sh.
12624 * configure.ac: Adjust development.sh source call.
12625 * configure: Regenerate.
12626
0a261ed8
PA
126272014-06-02 Pedro Alves <palves@redhat.com>
12628
12629 * ax.c (gdb_free_agent_expr): New function.
12630 * ax.h (gdb_free_agent_expr): New declaration.
12631 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12632 list.
12633 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12634 static.
12635 (clear_breakpoint_conditions_and_commands): New function.
12636 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12637 (clear_breakpoint_conditions_and_commands): New declaration.
12638
e9dae05e
RR
126392014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12640
12641 * linux-aarch64-low.c (asm/ptrace.h): Include.
12642
5876f503
JK
126432014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12644
12645 Fix TLS access for -static -pthread.
12646 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12647 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12648 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12649
802e8e6d
PA
126502014-05-20 Pedro Alves <palves@redhat.com>
12651
12652 * linux-aarch64-low.c (aarch64_insert_point)
12653 (aarch64_remove_point): No longer check whether the type is
12654 supported here. Adjust to new interface.
12655 (the_low_target): Install aarch64_supports_z_point_type as
12656 supports_z_point_type method.
12657 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12658 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12659 instead of a Z packet char. Adjust.
12660 (arm_supports_z_point_type): New function.
12661 (arm_insert_point, arm_remove_point): Adjust to new interface.
12662 (the_low_target): Install arm_supports_z_point_type.
12663 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12664 (cris_insert_point, cris_remove_point): Adjust to new interface.
12665 Don't check whether the type is supported here.
12666 (the_low_target): Install cris_supports_z_point_type.
12667 * linux-low.c (linux_supports_z_point_type): New function.
12668 (linux_insert_point, linux_remove_point): Adjust to new interface.
12669 * linux-low.h (struct linux_target_ops) <insert_point,
12670 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12671 raw_breakpoint pointer parameter.
12672 <supports_z_point_type>: New method.
12673 * linux-mips-low.c (mips_supports_z_point_type): New function.
12674 (mips_insert_point, mips_remove_point): Adjust to new interface.
12675 Use mips_supports_z_point_type.
12676 (the_low_target): Install mips_supports_z_point_type.
12677 * linux-ppc-low.c (the_low_target): Install NULL as
12678 supports_z_point_type method.
12679 * linux-s390-low.c (the_low_target): Install NULL as
12680 supports_z_point_type method.
12681 * linux-sparc-low.c (the_low_target): Install NULL as
12682 supports_z_point_type method.
12683 * linux-x86-low.c (x86_supports_z_point_type): New function.
12684 (x86_insert_point): Adjust to new insert_point interface. Use
12685 insert_memory_breakpoint. Adjust to new
12686 i386_low_insert_watchpoint interface.
12687 (x86_remove_point): Adjust to remove_point interface. Use
12688 remove_memory_breakpoint. Adjust to new
12689 i386_low_remove_watchpoint interface.
12690 (the_low_target): Install x86_supports_z_point_type.
12691 * lynx-low.c (lynx_target_ops): Install NULL as
12692 supports_z_point_type callback.
12693 * nto-low.c (nto_supports_z_point_type): New.
12694 (nto_insert_point, nto_remove_point): Adjust to new interface.
12695 (nto_target_ops): Install nto_supports_z_point_type.
12696 * mem-break.c: Adjust intro comment.
12697 (struct raw_breakpoint) <raw_type, size>: New fields.
12698 <inserted>: Update comment.
12699 <shlib_disabled>: Delete field.
12700 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12701 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12702 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12703 (raw_bkpt_type_to_target_hw_bp_type): New function.
12704 (find_enabled_raw_code_breakpoint_at): New function.
12705 (find_raw_breakpoint_at): New type and size parameters. Use them.
12706 (insert_memory_breakpoint): New function, based off
12707 set_raw_breakpoint_at.
12708 (remove_memory_breakpoint): New function.
12709 (set_raw_breakpoint_at): Reimplement.
12710 (set_breakpoint): New, based on set_breakpoint_at.
12711 (set_breakpoint_at): Reimplement.
12712 (delete_raw_breakpoint): Go through the_target->remove_point
12713 instead of assuming memory breakpoints.
12714 (find_gdb_breakpoint_at): Delete.
12715 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12716 (find_gdb_breakpoint): New function.
12717 (set_gdb_breakpoint_at): Delete.
12718 (z_type_supported): New function.
12719 (set_gdb_breakpoint_1): New function, loosely based off
12720 set_gdb_breakpoint_at.
12721 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12722 (delete_gdb_breakpoint_at): Delete.
12723 (delete_gdb_breakpoint_1): New function, loosely based off
12724 delete_gdb_breakpoint_at.
12725 (delete_gdb_breakpoint): New function.
12726 (clear_gdb_breakpoint_conditions): Rename to ...
12727 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12728 breakpoint.
12729 (add_condition_to_breakpoint): Make static.
12730 (add_breakpoint_condition): Take a struct breakpoint pointer
12731 instead of an address. Adjust.
12732 (gdb_condition_true_at_breakpoint): Rename to ...
12733 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12734 z_type parameter.
12735 (gdb_condition_true_at_breakpoint): Reimplement.
12736 (add_breakpoint_commands): Take a struct breakpoint pointer
12737 instead of an address. Adjust.
12738 (gdb_no_commands_at_breakpoint): Rename to ...
12739 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12740 parameter. Return true if no breakpoint was found. Change debug
12741 output.
12742 (gdb_no_commands_at_breakpoint): Reimplement.
12743 (run_breakpoint_commands): Rename to ...
12744 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12745 and change return type to boolean.
12746 (run_breakpoint_commands): New function.
12747 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12748 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12749 breakpoint. Go through the_target->remove_point instead of
12750 assuming memory breakpoint.
12751 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12752 software and hardware breakpoints.
12753 (reinsert_raw_breakpoint): Go through the_target->insert_point
12754 instead of assuming memory breakpoint.
12755 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12756 software and hardware breakpoints.
12757 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12758 Check both software and hardware breakpoints.
12759 (validate_inserted_breakpoint): Assert the breakpoint is a
12760 software breakpoint. Set the inserted flag to -1 instead of
12761 setting shlib_disabled.
12762 (delete_disabled_breakpoints): Adjust.
12763 (validate_breakpoints): Only validate software breakpoints.
12764 Adjust to inserted flag change.
12765 (check_mem_read, check_mem_write): Skip breakpoint types other
12766 than software breakpoints. Adjust to inserted flag change.
12767 * mem-break.h (enum raw_bkpt_type): New enum.
12768 (raw_breakpoint, struct process_info): Forward declare.
12769 (Z_packet_to_target_hw_bp_type): Delete declaration.
12770 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12771 (set_gdb_breakpoint, delete_gdb_breakpoint)
12772 (clear_breakpoint_conditions): New declarations.
12773 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12774 (breakpoint_inserted_here): Update comment.
12775 (add_breakpoint_condition, add_breakpoint_commands): Replace
12776 address parameter with a breakpoint pointer parameter.
12777 (gdb_breakpoint_here): Update comment.
12778 (delete_gdb_breakpoint_at): Delete.
12779 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12780 * server.c (process_point_options): Take a struct breakpoint
12781 pointer instead of an address. Adjust.
12782 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12783 delete_gdb_breakpoint.
12784 * spu-low.c (spu_target_ops): Install NULL as
12785 supports_z_point_type method.
12786 * target.h: Include mem-break.h.
12787 (struct target_ops) <prepare_to_access_memory>: Update comment.
12788 <supports_z_point_type>: New field.
12789 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12790 instead of a char. Also take a raw breakpoint pointer.
12791 * win32-arm-low.c (the_low_target): Install NULL as
12792 supports_z_point_type.
12793 * win32-i386-low.c (i386_supports_z_point_type): New function.
12794 (i386_insert_point, i386_remove_point): Adjust to new interface.
12795 (the_low_target): Install i386_supports_z_point_type.
12796 * win32-low.c (win32_supports_z_point_type): New function.
12797 (win32_insert_point, win32_remove_point): Adjust to new interface.
12798 (win32_target_ops): Install win32_supports_z_point_type.
12799 * win32-low.h (struct win32_target_ops):
12800 <supports_z_point_type>: New method.
12801 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12802 instead of a char. Also take a raw breakpoint pointer.
12803
932539e3
PA
128042014-05-20 Pedro Alves <palves@redhat.com>
12805
12806 * mem-break.h: Include break-common.h.
12807 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12808 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12809 (Z_packet_to_target_hw_bp_type): New declaration.
12810 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12811 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12812 (Z_PACKET_ACCESS_WP): Delete macros.
12813 (Z_packet_to_hw_type): Delete function.
12814 * i386-low.h: Don't include break-common.h here.
12815 (Z_packet_to_hw_type): Delete declaration.
12816 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12817 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12818 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12819 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12820 * linux-aarch64-low.c: Don't include break-common.h here.
12821 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12822 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12823 (Z_packet_to_target_hw_bp_type): Delete function.
12824 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12825 function.
12826 (mips_insert_point, mips_remove_point): Use
12827 Z_packet_to_target_hw_bp_type.
12828
4ff0d3d8
PA
128292014-05-20 Pedro Alves <palves@redhat.com>
12830
12831 * linux-aarch64-low.c: Include break-common.h.
12832 (enum target_point_type): Delete.
12833 (Z_packet_to_point_type): Rename to ...
12834 (Z_packet_to_target_hw_bp_type): ... this, and return a
12835 target_hw_bp_type instead.
12836 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12837 instead of an enum target_point_type.
12838 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12839 breakpoint type.
12840 (aarch64_dr_state_insert_one_point)
12841 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12842 (aarch64_handle_aligned_watchpoint)
12843 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12844 Take an enum target_hw_bp_type instead of an enum
12845 target_point_type.
12846 (aarch64_supports_z_point_type): New function.
12847 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12848 use Z_packet_to_target_hw_bp_type.
12849
786dc519
JB
128502014-05-20 Joel Brobecker <brobecker@adacore.com>
12851
12852 * configure.ac: Only use -Werror by default when DEVELOPMENT
12853 is true.
12854 * configure: Regenerate.
12855
9e0aa64f
JK
128562014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12857
12858 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12859 * linux-x86-low.c (X86_64_USER_REGS): New.
12860 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12861
2b577b92
YQ
128622014-04-28 Yao Qi <yao@codesourcery.com>
12863
12864 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12865 name.
12866
94611da2
PA
128672014-04-25 Pedro Alves <palves@redhat.com>
12868
12869 PR server/16255
12870 * linux-low.c (linux_attach_fail_reason_string): New function.
12871 (linux_attach_lwp): Delete.
12872 (linux_attach_lwp_1): Rename to ...
12873 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12874 argument. Remove "initial" parameter. Return int instead of
12875 void. Don't error or warn here.
12876 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12877 failure to attach to the tgid. Call warning when failing to
12878 attach to an lwp.
12879 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12880 argument. Remove "initial" parameter. Return int instead of
12881 void. Don't error or warn here.
12882 (linux_attach_fail_reason_string): New declaration.
12883 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12884 interface change. Use linux_attach_fail_reason_string.
12885
01f9f808
MS
128862014-04-24 Michael Sturm <michael.sturm@mintel.com>
12887 Walfred Tedeschi <walfred.tedeschi@intel.com>
12888
12889 * Makefile.in: Added rules to handle new files
12890 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12891 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12892 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12893 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12894 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12895 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12896 x32-avx512-linux.o.
12897 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12898 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12899 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12900 i386/x32-avx512.xml.
12901 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12902 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12903 i386/x32-avx512-linux.xml.
12904 * i387-fp.c (num_avx512_k_registers): New constant for number
12905 of K registers.
12906 (num_avx512_zmmh_low_registers): New constant for number of
12907 lower ZMM registers (0-15).
12908 (num_avx512_zmmh_high_registers): New constant for number of
12909 higher ZMM registers (16-31).
12910 (num_avx512_ymmh_registers): New contant for number of higher
12911 YMM registers (ymm16-31 added by avx521 on x86_64).
12912 (num_avx512_xmm_registers): New constant for number of higher
12913 XMM registers (xmm16-31 added by AVX512 on x86_64).
12914 (struct i387_xsave): Add space for AVX512 registers.
12915 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12916 Add code to handle AVX512 registers.
12917 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12918 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12919 prototypei from generated file.
12920 (tdesc_amd64_avx512_linux): Likewise.
12921 (init_registers_x32_avx512_linux): Likewise.
12922 (tdesc_x32_avx512_linux): Likewise.
12923 (init_registers_i386_avx512_linux): Likewise.
12924 (tdesc_i386_avx512_linux): Likewise.
12925 (x86_64_regmap): Add AVX512 registers.
12926 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12927 mask.
12928 (initialize_low_arch): Add code to initialize AVX512 registers.
12929
51aa91f9
PA
129302014-04-23 Pedro Alves <palves@redhat.com>
12931
12932 * mem-break.c (find_gdb_breakpoint_at): Make static.
12933 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12934
a4165e94
PA
129352014-04-23 Pedro Alves <palves@redhat.com>
12936
12937 * i386-low.c: Don't include break-common.h here.
12938 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12939 prototype to take target_hw_bp_type as argument instead of a Z
12940 packet char.
12941 * i386-low.h: Include break-common.h here.
12942 (Z_packet_to_hw_type): Declare.
12943 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12944 prototypes.
12945 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12946 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12947 (x86_remove_point): Convert the packet number to a
12948 target_hw_bp_type before calling i386_low_remove_watchpoint.
12949 * win32-i386-low.c (i386_insert_point): Convert the packet number
12950 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12951 (i386_remove_point): Convert the packet number to a
12952 target_hw_bp_type before calling i386_low_remove_watchpoint.
12953
b8acf843
PA
129542014-04-23 Pedro Alves <palves@redhat.com>
12955
12956 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12957
d708bcd1
PA
129582014-04-10 Pedro Alves <palves@redhat.com>
12959
12960 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12961 Check if the condition or command is NULL before checking if the
12962 breakpoint is known. On success, return true.
12963 * mem-break.h (add_breakpoint_condition): Document return.
12964 (add_breakpoint_commands): Add describing comment.
12965 * server.c (skip_to_semicolon): New function.
12966 (process_point_options): Use it.
12967
2eec7d5b
PA
129682014-04-09 Pedro Alves <palves@redhat.com>
12969
12970 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12971 to lwpid_of.
12972
fa96cb38
PA
129732014-02-27 Pedro Alves <palves@redhat.com>
12974
12975 PR 12702
12976 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12977 macros.
12978 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12979 output.
12980 (last_thread_of_process_p): Take a PID argument instead of a
12981 thread pointer.
12982 (linux_wait_for_lwp): Delete.
12983 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12984 functions.
12985 (linux_low_filter_event): New function, party factored out from
12986 linux_wait_for_event.
12987 (linux_wait_for_event): Rename to ...
12988 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12989 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12990 sigsuspend. Check for zombie leaders.
12991 (linux_wait_for_event): Reimplement as wrapper around
12992 linux_wait_for_event_filtered.
12993 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12994 a normal or signal exit is seen, it's the whole process exiting.
12995 (wait_for_sigstop): No longer a for_each_inferior callback.
12996 Rewrite on top of linux_wait_for_event_filtered.
12997 (stop_all_lwps): Call wait_for_sigstop directly.
12998 * server.c (resume, handle_target_event): Handle
12999 TARGET_WAITKIND_NO_RESUMED.
13000
d763de10
JB
130012014-02-26 Joel Brobecker <brobecker@adacore.com>
13002
13003 * win32-low.c (psapi_get_dll_name,
13004 * win32_CreateToolhelp32Snapshot): Delete.
13005 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13006 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13007 Delete.
13008 (handle_load_dll): Add function description.
13009 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13010
850a0f76
JB
130112014-02-26 Joel Brobecker <brobecker@adacore.com>
13012
13013 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13014 Add comment.
13015 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13016 base address when calling win32_add_one_solib.
13017 (handle_load_dll): Delete local variable load_addr.
13018 Remove 0x1000 offset applied to DLL base address when calling
13019 win32_add_one_solib.
13020 (handle_unload_dll): Add comment.
13021
f25b3fc3
JB
130222014-02-26 Joel Brobecker <brobecker@adacore.com>
13023
13024 * win32-low.c (win32_add_all_dlls): Renames
13025 win32_ensure_ntdll_loaded. Rewrite function documentation.
13026 Adjust implementation to always load all DLLs.
13027 Add 0x1000 offset to DLL base address when calling
13028 win32_add_one_solib.
13029 (child_initialization_done): New static global.
13030 (do_initial_child_stuff): Set child_initialization_done to
13031 zero during child initialization, and 1 after. Replace call
13032 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13033 Add comment.
13034 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13035 (handle_unload_dll): Add function documentation.
13036 (get_child_debug_event): Ignore load and unload DLL events
13037 during child initialization.
13038
d86d4aaf
DE
130392014-02-20 Doug Evans <dje@google.com>
13040
3bc32da3 13041 Remove global all_lwps.
d86d4aaf
DE
13042 * inferiors.h (ptid_of): Move here from linux-low.h.
13043 (pid_of, lwpid_of): Ditto.
13044 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13045 parameter is a struct thread_info * now.
13046 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13047 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13048 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13049 directly.
13050 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13051 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13052 * linux-arm-low.c (update_registers_callback): Update, "entry"
13053 parameter is a struct thread_info * now.
13054 Fetch lwpid from current_inferior directly.
13055 (arm_insert_point): Pass &all_threads to find_inferior instead of
13056 &all_lwps.
13057 (arm_remove_point): Ditto.
13058 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13059 (arm_prepare_to_resume): Fetch pid from thread.
13060 (arm_read_description): Fetch lwpid from current_inferior directly.
13061 * linux-low.c (all_lwps): Delete.
13062 (delete_lwp): Delete call to remove_inferior.
13063 (handle_extended_wait): Fetch lwpid from thread.
13064 (add_lwp): Don't set lwp->entry.id. Remove call to
13065 add_inferior_to_list.
13066 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13067 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13068 (kill_one_lwp_callback): Ditto.
13069 (linux_kill): Don't dereference NULL pointer.
13070 Fetch ptid,lwpid from thread.
13071 (get_detach_signal): Fetch ptid from thread.
13072 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13073 Simplify call to regcache_invalidate_thread.
13074 (delete_lwp_callback): Update, "entry" parameter is a
13075 struct thread_info * now. Fetch pid from thread.
13076 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13077 (status_pending_p_callback): Update, "entry" parameter is a
13078 struct thread_info * now. Fetch ptid from thread.
13079 (find_lwp_pid): Update, "entry" parameter is a
13080 struct thread_info * now.
13081 (linux_wait_for_lwp): Fetch pid from thread.
13082 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13083 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13084 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13085 (dequeue_one_deferred_signal): Ditto.
13086 (cancel_breakpoint): Fetch ptid from current_inferior.
13087 (linux_wait_for_event): Pass &all_threads to find_inferior,
13088 not &all_lwps. Fetch ptid, lwpid from thread.
13089 (count_events_callback): Update, "entry" parameter is a
13090 struct thread_info * now.
13091 (select_singlestep_lwp_callback): Ditto.
13092 (select_event_lwp_callback): Ditto.
13093 (cancel_breakpoints_callback): Ditto.
13094 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13095 not &all_lwps.
13096 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13097 (unsuspend_one_lwp): Update, "entry" parameter is a
13098 struct thread_info * now.
13099 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13100 not &all_lwps.
13101 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13102 Fetch lwpid from thread, not lwp.
13103 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13104 Pass &all_threads to find_inferior, not &all_lwps.
13105 (send_sigstop): Fetch lwpid from thread, not lwp.
13106 (send_sigstop_callback): Update, "entry" parameter is a
13107 struct thread_info * now.
13108 (suspend_and_send_sigstop_callback): Ditto.
13109 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13110 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13111 struct thread_info * now.
13112 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13113 from thread, lwp.
13114 (lwp_running): Update, "entry" parameter is a
13115 struct thread_info * now.
13116 (stop_all_lwps): Fetch ptid from thread.
13117 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13118 (linux_resume_one_lwp): Fetch lwpid from thread.
13119 (linux_set_resume_request): Update, "entry" parameter is a
13120 struct thread_info * now. Fetch pid, lwpid from thread.
13121 (resume_status_pending_p): Update, "entry" parameter is a
13122 struct thread_info * now.
13123 (need_step_over_p): Ditto. Fetch lwpid from thread.
13124 (start_step_over): Fetch lwpid from thread.
13125 (linux_resume_one_thread): Update, "entry" parameter is a
13126 struct thread_info * now. Fetch lwpid from thread.
13127 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13128 (proceed_one_lwp): Update, "entry" parameter is a
13129 struct thread_info * now. Fetch lwpid from thread.
13130 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13131 struct thread_info * now.
13132 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13133 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13134 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13135 directly.
13136 (regsets_store_inferior_registers): Ditto.
13137 (fetch_register, store_register): Ditto.
13138 (linux_read_memory, linux_write_memory): Ditto.
13139 (linux_request_interrupt): Ditto.
13140 (linux_read_auxv): Ditto.
13141 (linux_xfer_siginfo): Ditto.
13142 (linux_qxfer_spu): Ditto.
13143 (linux_qxfer_libraries_svr4): Ditto.
13144 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13145 moved to inferiors.h.
13146 (get_lwp): Delete.
13147 (get_thread_lwp): Update.
13148 (struct lwp_info): Delete member "entry". Simplify comment for
13149 member "thread".
13150 (all_lwps): Delete.
13151 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13152 current_inferior directly.
13153 (update_watch_registers_callback): Update, "entry" parameter is a
13154 struct thread_info * now. Fetch pid from thread.
13155 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13156 (mips_insert_point): Fetch lwpid from current_inferior.
13157 Pass &all_threads to find_inferior, not &all_lwps.
13158 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13159 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13160 directly.
13161 (mips_stopped_data_address): Ditto.
13162 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13163 directly.
13164 * linux-tile-low.c (tile_arch_setup): Ditto.
13165 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13166 (update_debug_registers_callback): Update, "entry" parameter is a
13167 struct thread_info * now. Fetch pid from thread.
13168 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13169 Pass &all_threads to find_inferior, not &all_lwps.
13170 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13171 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13172 Pass &all_threads to find_inferior, not &all_lwps.
13173 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13174 (i386_dr_low_get_status): Ditto.
13175 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13176 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13177 (x86_linux_read_description): Ditto.
13178 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13179
3b8361aa
DE
131802014-02-20 Doug Evans <dje@google.com>
13181
13182 * inferiors.c (get_first_inferior): Fix buglet.
13183
f7667f0d
DE
131842014-02-19 Doug Evans <dje@google.com>
13185
13186 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13187 * inferiors.c (add_thread): Change result type to struct thread_info *.
13188 All callers updated.
13189 (add_lwp): Call add_thread here instead of in callers.
13190 All callers updated.
13191 * linux-low.h (get_lwp_thread): Rewrite.
13192 (struct lwp_info): New member "thread".
13193
b3312d80
DE
131942014-02-19 Doug Evans <dje@google.com>
13195
13196 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13197 All callers updated.
13198
ecc6f45c
DE
131992014-02-19 Doug Evans <dje@google.com>
13200
13201 * inferiors.c (add_thread): Fix whitespace.
13202
649ebbca
DE
132032014-02-19 Doug Evans <dje@google.com>
13204
13205 * dll.c (clear_dlls): Replace accessing list implemention details
13206 with API function.
13207 * gdbthread.h (get_first_thread): Declare.
13208 * inferiors.c (for_each_inferior_with_data): New function.
13209 (get_first_thread): New function.
13210 (find_thread_ptid): Simplify.
13211 (get_first_inferior): New function.
13212 (clear_list): Delete.
13213 (one_inferior_p): New function.
13214 (clear_inferior_list): New function.
13215 (clear_inferiors): Update.
13216 * inferiors.h (for_each_inferior_with_data): Declare.
13217 (clear_inferior_list): Declare.
13218 (one_inferior_p): Declare.
13219 (get_first_inferior): Declare.
13220 * linux-low.c (linux_wait_for_event): Replace accessing list
13221 implemention details with API function.
13222 * server.c (target_running): Ditto.
13223 (accumulate_file_name_length): New function.
13224 (emit_dll_description): New function.
13225 (handle_qxfer_libraries): Replace accessing list implemention
13226 details with API function.
13227 (handle_qxfer_threads_worker): New function.
13228 (handle_qxfer_threads_proper): Replace accessing list implemention
13229 details with API function.
13230 (handle_query): Ditto.
13231 (visit_actioned_threads_callback_ftype): New typedef.
13232 (visit_actioned_threads_data): New struct.
13233 (visit_actioned_threads): Rewrite to be find_inferior callback.
13234 (resume): Call find_inferior.
13235 (handle_status): Replace accessing list implemention
13236 details with API function.
13237 (process_serial_event): Replace accessing list implemention details
13238 with API function.
13239 * target.c (set_desired_inferior): Replace accessing list implemention
13240 details with API function.
13241 * tracepoint.c (same_process_p): New function.
13242 (gdb_agent_about_to_close): Replace accessing list implemention
13243 details with API function.
13244 * win32-low.c (child_delete_thread): Replace accessing list
13245 implemention details with API function.
13246 (match_dll_by_basename): New function.
13247 (dll_is_loaded_by_basename): New function.
13248 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13249 details call to dll_is_loaded_by_basename.
13250
80894984
DE
132512014-02-19 Doug Evans <dje@google.com>
13252
13253 * dll.h (struct dll_info): Add comment.
13254 * gdbthread.h (struct thread_info): Add comment.
13255 (current_ptid): Simplify.
13256 * inferiors.c (add_process): Update.
13257 (remove_process): Update.
13258 * inferiors.h (struct process_info): Rename member "head" to "entry".
13259 * linux-low.c (delete_lwp): Update.
13260 (add_lwp): Update.
13261 (last_thread_of_process_p): Update.
13262 (kill_one_lwp_callback, linux_kill): Update.
13263 (status_pending_p_callback): Update.
13264 (wait_for_sigstop): Update. Simplify read of ptid.
13265 (start_step_over): Update.
13266 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13267 (get_lwp_thread): Update.
13268 (struct lwp_info): Rename member "head" to "entry".
13269 * regcache.h (inferior_list_entry): Delete.
13270 * server.c (kill_inferior_callback): Update.
13271 (detach_or_kill_inferior_callback): Update.
13272 (print_started_pid): Update.
13273 (print_attached_pid): Update.
13274 (process_serial_event): Simplify read of ptid.
13275 * thread-db.c (thread_db_create_event): Update.
13276 (thread_db_get_tls_address): Update.
13277 * win32-low.c (current_inferior_ptid): Simplify.
13278
46917d26
TT
132792014-02-19 Tom Tromey <tromey@redhat.com>
13280
13281 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13282 argument.
13283 (target_supports_btrace): Update.
13284
0759a81e
YQ
132852014-02-14 Yao Qi <yao@codesourcery.com>
13286
13287 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13288 (rsp-low-ipa.o): New target.
13289
a7191e8b
TT
132902014-02-12 Tom Tromey <tromey@redhat.com>
13291
13292 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13293 convert_ascii_to_int.
13294 * regcache.c (registers_to_string): Likewise.
13295 * remote-utils.c (decode_M_packet): Likewise.
13296 * server.c (process_serial_event): Likewise.
13297
ff0e980e
TT
132982014-02-12 Tom Tromey <tromey@redhat.com>
13299
13300 * server.c (handle_query, handle_v_run): Use hex2bin, not
13301 unhexify.
13302 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13303
e9371aff
TT
133042014-02-12 Tom Tromey <tromey@redhat.com>
13305
13306 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13307 convert_int_to_ascii.
13308 * regcache.c (registers_to_string, collect_register_as_string):
13309 Likewise.
13310 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13311 Likewise.
13312 * server.c (process_serial_event): Likewise.
13313 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13314 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13315
971dc0b8
TT
133162014-02-12 Tom Tromey <tromey@redhat.com>
13317
13318 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13319 bin2hex, not hexify.
13320 * tracepoint.c (cmd_qtstatus): Likewise.
13321
0a822afb
TT
133222014-02-12 Tom Tromey <tromey@redhat.com>
13323
13324 * remote-utils.c (monitor_output): Pass explicit length to
13325 hexify.
13326
9c3d6531
TT
133272014-02-12 Tom Tromey <tromey@redhat.com>
13328
13329 * tracepoint.c: Include rsp-low.h.
13330 * server.c: Include rsp-low.h.
13331 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13332 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13333 declare.
13334 * remote-utils.c: Include rsp-low.h.
13335 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13336 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13337 (convert_int_to_ascii, convert_ascii_to_int): Move to
13338 common/rsp-low.c.
13339 * regcache.c: Include rsp-low.h.
13340 * ax.c: Include rsp-low.h.
13341 * Makefile.in (SFILES): Add common/rsp-low.c.
13342 (OBS): Add rsp-low.o.
13343 (rsp-low.o): New target.
13344
01fd3ea5
TT
133452014-02-12 Tom Tromey <tromey@redhat.com>
13346
13347 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13348 Include print-utils.h.
13349 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13350 (plongest, thirty_two, phex_nz): Remove.
13351 * Makefile.in (SFILES): Add common/print-utils.c.
13352 (OBS): Add print-utils.o.
13353 (print-utils-ipa.o): New target.
13354 (print-utils.o): New target.
13355 (IPA_OBJS): Add print-utils-ipa.o.
13356
e99dc820
TT
133572014-02-06 Tom Tromey <tromey@redhat.com>
13358
13359 * Makefile.in (SFILES): Fix indentation.
13360
ee1e2d4f
DE
133612014-02-05 Doug Evans <dje@google.com>
13362
13363 * linux-low.c (linux_wait_for_event): Improve comment.
13364 (linux_wait_1): Keep current_inferior in sync with event_child.
13365
f5a02773
DE
133662014-01-22 Doug Evans <dje@google.com>
13367
13368 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13369
87ce2a04
DE
133702014-01-22 Doug Evans <dje@google.com>
13371
13372 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13373 * configure: Regenerate.
13374 * config.in: Regenerate.
13375 * Makefile.in (SFILES): Add debug.c.
13376 (OBS): Add debug.o.
13377 * debug.c: New file.
13378 * debug.h: New file.
13379 * linux-aarch64-low.c (*): Update all debugging printfs to use
13380 debug_printf instead of fprintf.
13381 * linux-arm-low.c (*): Ditto.
13382 * linux-cris-low.c (*): Ditto.
13383 * linux-crisv32-low.c (*): Ditto.
13384 * linux-m32r-low.c (*): Ditto.
13385 * linux-sparc-low.c (*): Ditto.
13386 * linux-x86.c (*): Ditto.
13387 * linux-low.c (*): Ditto.
13388 (linux_wait_1): Add calls to debug_enter, debug_exit.
13389 (linux_wait): Remove redundant debugging printf.
13390 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13391 (linux_resume, unstop_all_lwps): Ditto.
13392 * mem-break.c (*): Update all debugging printfs to use
13393 debug_printf instead of fprintf.
13394 * remote-utils.c (*): Ditto.
13395 * thread-db.c (*): Ditto.
13396 * server.c #include <ctype.h>, "gdb_vecs.h".
13397 (debug_threads): Moved to debug.c.
13398 (*): Update all debugging printfs to use debug_printf instead of
13399 fprintf.
13400 (start_inferior): Replace call to fflush with call to debug_flush.
13401 (monitor_show_help): Mention set debug-format.
13402 (parse_debug_format_options): New function.
13403 (handle_monitor_command): Handle "monitor set debug-format".
13404 (gdbserver_usage): Mention --debug-format.
13405 (main): Parse --debug-format.
13406 * server.h (debug_threads): Declaration moved to debug.h.
13407 #include "debug.h".
13408 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13409 trace_debug_1 that uses debug_printf.
13410 (tracepoint_look_up_symbols): Update all debugging printfs to use
13411 debug_printf instead of fprintf.
13412
e671835b
BS
134132014-01-20 Baruch Siach <baruch@tkos.co.il>
13414
13415 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13416 sys/ptrace.h.
13417
b5737fa9
PA
134182014-01-17 Pedro Alves <palves@redhat.com>
13419
ea38d2a9 13420 PR build/16445
c7faa97a
PA
13421 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13422 defined after including gdb_proc_service.h.
b5737fa9 13423
40ed484e
DE
134242014-01-16 Doug Evans <dje@google.com>
13425
13426 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13427 (match_dll): Use it.
13428
969c39fb
MM
134292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13430
13431 * target.h (target_ops) <read_btrace>: Change parameters and
13432 return type to allow error reporting.
13433 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13434 trace reading errors on.
13435 * linux-low.c (linux_low_read_btrace): Pass trace reading
13436 errors on.
13437 (linux_low_disable_btrace): New.
13438
ab7f45ba
DE
134392014-01-15 Doug Evans <dje@google.com>
13440
13441 * inferiors.c (thread_id_to_gdb_id): Delete.
13442 * inferiors.h (thread_id_to_gdb_id): Delete.
13443
66af0f44
EZ
134442014-01-13 Eli Zaretskii <eliz@gnu.org>
13445
13446 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13447 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13448 versions.
13449
9939e131
PA
134502014-01-08 Pedro Alves <palves@redhat.com>
13451
13452 * server.c (handle_status): Don't discard previous queued stop
13453 replies or thread's pending status here.
13454 (main) <disconnection>: Do it here instead.
13455
b7ea362b
PA
134562014-01-08 Pedro Alves <palves@redhat.com>
13457
13458 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13459 * server.c (visit_actioned_threads, handle_pending_status): New
13460 function.
13461 (handle_v_cont): Factor out parts to ...
13462 (resume): ... this new function. If in all-stop, and a thread
13463 being resumed has a pending status, report it without actually
13464 resuming.
13465 (myresume): Adjust to use the new 'resume' function.
13466 (clear_pending_status_callback, set_pending_status_callback)
13467 (find_status_pending_thread_callback): New functions.
13468 (handle_status): Handle the case of multiple threads having
13469 interesting statuses to report. Report threads' real last signal
13470 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13471 with an interesting thread to report the status for, instead of
13472 always reporting the status of the first thread.
13473
28498c42
JB
134742014-01-01 Joel Brobecker <brobecker@adacore.com>
13475
13476 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13477 * gdbreplay.c (gdbreplay_version): Likewise.
13478
f45c82da
YZ
134792013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13480
13481 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13482 iov.iov_len with the real length in use.
13483
379a5e2d
JB
134842013-12-13 Joel Brobecker <brobecker@adacore.com>
13485
13486 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13487 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13488 for all targets that use win32-low.c.
13489 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13490 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13491
4210d83e
PA
134922013-12-13 Pedro Alves <palves@redhat.com>
13493
13494 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13495 if equal to TARGET_WAITKIND_LOADED.
13496 * win32-low.c (cached_status): New static global.
13497 (win32_wait): Add declaration.
13498 (do_initial_child_stuff): Flush all initial pending debug events
13499 up to the initial breakpoint.
13500 (win32_wait): If CACHED_STATUS was set, return that instead
13501 of doing a real wait. Remove the code resuming the execution
13502 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13503 during the initial phase. Also remove the code changing
13504 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13505 TARGET_WAITKIND_STOPPED.
13506
e7f0d979
YQ
135072013-12-11 Yao Qi <yao@codesourcery.com>
13508
13509 * notif.c (handle_notif_ack): Return 0 if no notification
13510 matches.
13511
ebcf782c
DE
135122013-11-20 Doug Evans <dje@google.com>
13513
13514 * linux-low.c (linux_set_resume_request): Fix comment.
13515
20ad9378
DE
135162013-11-20 Doug Evans <dje@google.com>
13517
13518 * linux-low.c (resume_status_pending_p): Tweak comment.
13519
a196ebeb
WT
135202013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13521
13522 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13523 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13524 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13525 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13526 (srv_amd64_regobj): Add amd64-mpx.o.
13527 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13528 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13529 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13530 * i387-fp.c (num_pl_bnd_register) Added constant.
13531 (num_pl_bnd_cfg_registers) Added constant.
13532 (struct i387_xsave) Added reserved area and MPX fields.
13533 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13534 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13535 function.
13536 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13537 (init_registers_amd64_mpx_linux): Declare new function.
13538 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13539 (x86_64_regmap): Add MPX registers.
13540 (x86_linux_read_description): Add MPX case.
13541 (initialize_low_arch): Initialize MPX targets.
13542
0080a2f6
TT
135432013-11-18 Tom Tromey <tromey@redhat.com>
13544
13545 * configure: Rebuild.
13546 * configure.ac: Don't check for stdlib.h.
13547 * gdbreplay.c: Unconditionally include stdlib.h.
13548
2978b111
TT
135492013-11-18 Tom Tromey <tromey@redhat.com>
13550
13551 * config.in: Rebuild.
13552 * configure: Rebuild.
13553 * configure.ac: Don't use AC_HEADER_DIRENT.
13554
a3d08894
TT
135552013-11-18 Tom Tromey <tromey@redhat.com>
13556
13557 * server.h: Don't check HAVE_STRING_H.
13558 * gdbreplay.c: Don't check HAVE_STRING_H.
13559 * configure: Rebuild.
13560
0a5dd17d
TT
135612013-11-18 Tom Tromey <tromey@redhat.com>
13562
13563 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13564 LIBGNU.
13565
1bd2f0ba
TT
135662013-11-08 Tom Tromey <tromey@redhat.com>
13567
13568 * configure, config.in: Rebuild.
13569 * configure.ac: Remove unused configury.
13570
3266f10b
TT
135712013-11-08 Tom Tromey <tromey@redhat.com>
13572
13573 * acinclude.m4: Include common.m4, codeset.m4.
13574 * configure, config.in: Rebuild.
13575 * configure.ac: Use GDB_AC_COMMON.
13576
6682d959
AA
135772013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13578
13579 * linux-s390-low.c (HWCAP_S390_TE): New define.
13580 (s390_arch_setup): Consider the TE field in the HWCAP for
13581 determining 'have_regset_tdb'.
13582
fd0a4d76
SDJ
135832013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13584
13585 PR gdb/16014
13586 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13587 call to sizeof.
13588
1a3d890b
PA
135892013-10-02 Pedro Alves <palves@redhat.com>
13590
13591 * server.c (process_serial_event): Don't output "GDBserver
13592 exiting" if GDB is connected through stdio.
13593 * target.c (mywait): Likewise, be silent if GDB is connected
13594 through stdio.
13595
97ad4581
JB
135962013-10-01 Joel Brobecker <brobecker@adacore.com>
13597
13598 * lynx-low.c (lynx_add_threads_after_attach): New function.
13599 (lynx_attach): Remove call to add_thread. Add call to
13600 lynx_add_threads_after_attach instead.
13601
5b4e221c
MF
136022013-09-28 Mike Frysinger <vapier@gentoo.org>
13603
13604 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13605 * config.in, configure: Regenerated.
13606
ee47b2f8
YQ
136072013-09-18 Yao Qi <yao@codesourcery.com>
13608
13609 PR server/15959
13610 * server.c (start_inferior): Clear 'resume_info'.
13611
d6707650 136122013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13613
d6707650
JW
13614 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13615 for each register.
13616
9243dd0e 136172013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13618
9243dd0e
JW
13619 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13620 linux-tile-low.o to srv_tgtobj.
13621
c623a6ef
WN
136222013-09-16 Will Newton <will.newton@linaro.org>
13623
13624 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13625 out regs.
13626
fb71d39e
PA
136272013-09-06 Pedro Alves <palves@redhat.com>
13628
13629 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13630 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13631 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13632 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13633 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13634 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13635
8e7e9910
PA
136362013-09-06 Pedro Alves <palves@redhat.com>
13637
13638 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13639 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13640
7c3a12ca
PA
136412013-09-06 Pedro Alves <palves@redhat.com>
13642
13643 * linux-amd64-ipa.c: Include tracepoint.h.
13644 * linux-i386-ipa.c: Include tracepoint.h.
13645
8eb3d7b6
RW
136462013-09-06 Ricard Wanderlof <ricardw@axis.com>
13647
13648 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13649 (ps_get_thread_area): New function.
13650
eddddb9d
RW
136512013-09-06 Ricard Wanderlof <ricardw@axis.com>
13652
13653 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13654 (initialize_low_arch): Call init_registers_crisv32 rather than
13655 init_register_crisv32.
13656
533b0600
PA
136572013-09-05 Pedro Alves <palves@redhat.com>
13658
13659 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13660 to ...
13661 * hostio.h: ... this new file.
13662 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13663 win32-low.c: Include hostio.h.
13664
0ce3d3b5
PA
136652013-09-05 Pedro Alves <palves@redhat.com>
13666
13667 * server.h (gdb_client_data, handler_func, callback_handler_func)
13668 (delete_file_handler, add_file_handler, append_callback_event)
13669 (delete_callback_event, start_event_loop, initialize_event_loop):
13670 Move to event-loop.h and include it.
13671 * event-loop.h: New file.
13672
799cdc37
PA
136732013-09-05 Pedro Alves <palves@redhat.com>
13674
13675 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13676 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13677 (loaded_dll, unloaded_dll): Move to ...
13678 * dll.h: ... this new file.
13679 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13680
6a6bbd9d
PA
136812013-09-05 Pedro Alves <palves@redhat.com>
13682
13683 * server.h (current_process, get_thread_process, all_processes)
13684 (add_inferior_to_list, for_each_inferior, current_inferior)
13685 (remove_inferior, add_process, remove_process, find_process_pid)
13686 (have_started_inferiors_p, have_attached_inferiors_p)
13687 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13688 (clear_inferiors, find_inferior, find_inferior_id)
13689 (inferior_target_data, set_inferior_target_data)
13690 (inferior_regcache_data, set_inferior_regcache_data): Move to
13691 inferiors.h, and include it.
13692 * inferiors.h: New file.
13693
f699aaba
PA
136942013-09-05 Pedro Alves <palves@redhat.com>
13695
13696 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13697 Move ...
72f4393d 13698 * ax.h: ... here.
f699aaba 13699
c144c7a0
PA
137002013-09-05 Pedro Alves <palves@redhat.com>
13701
13702 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13703 tracepoint.h.
13704 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13705 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13706 (handle_tracepoint_general_set, handle_tracepoint_query)
13707 (tracepoint_finished_step, tracepoint_was_hit)
13708 (release_while_stepping_state_list, current_traceframe)
13709 (in_readonly_region, traceframe_read_mem)
13710 (fetch_traceframe_registers, traceframe_read_sdata)
13711 (traceframe_read_info, struct fast_tpoint_collect_status)
13712 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13713 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13714 (supply_fast_tracepoint_registers)
13715 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13716 (ipa_tdesc, claim_trampoline_space)
13717 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13718 (agent_mem_read, agent_get_trace_state_variable_value)
13719 (agent_set_trace_state_variable_value, agent_tsv_read)
13720 (agent_mem_read_string, get_raw_reg_func_addr)
13721 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13722 * tracepoint.h: ... this new file.
13723
ff42e6ab
PA
137242013-09-05 Pedro Alves <palves@redhat.com>
13725
13726 * server.h (perror_with_name, error, fatal, warning, paddress)
13727 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13728 include it.
13729 * utils.h: New file.
13730
541af0f4
PA
137312013-09-05 Pedro Alves <palves@redhat.com>
13732
13733 * server.h (remote_debug, noack_mode, transport_is_reliable)
13734 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13735 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13736 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13737 (write_enn, initialize_async_io, enable_async_io)
13738 (disable_async_io, check_remote_input_interrupt_request)
13739 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13740 (dead_thread_notify, prepare_resume_reply)
13741 (decode_address_to_semicolon, decode_address, decode_m_packet)
13742 (decode_M_packet, decode_X_packet, decode_xfer_write)
13743 (decode_search_memory_packet, unhexify, hexify)
13744 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13745 (look_up_one_symbol, relocate_instruction)
13746 (monitor_output): Move to remote-utils.h, and include it.
13747 * remote-utils.h: New file.
13748
eebdf26b
PA
137492013-09-05 Pedro Alves <palves@redhat.com>
13750
13751 * server.h (_): Delete.
13752
3aafd2ff
PA
137532013-09-02 Pedro Alves <palves@redhat.com>
13754
13755 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13756 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13757 allocated.
13758 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13759
cee83bcb
PM
137602013-09-02 Pierre Muller <muller@sourceware.org>
13761
13762 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13763 or WriteProcessMemory complete successfully and handle
13764 ERROR_PARTIAL_COPY error.
13765
9a13b2fa
PA
137662013-09-02 Pedro Alves <palves@redhat.com>
13767
13768 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13769 error instead of EIO.
13770
602e3198
JK
137712013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13772
13773 PR server/15604
13774 * linux-low.c: Include filestuff.h.
13775 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13776 * lynx-low.c: Include filestuff.h.
13777 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13778 * server.c: Include filestuff.h.
13779 (main): Call notice_open_fds.
13780 * spu-low.c: Include filestuff.h.
13781 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13782
96d7229d
LM
137832013-08-22 Luis Machado <lgustavo@codesourcery.com>
13784
13785 * Makefile.in: Explain why ../target and ../nat are not
13786 listed as include file search paths.
13787 (linux-waitpid.o): New object file rule.
13788 * configure.srv (srv_native_linux_obj): New variable.
13789 Replace all occurrences of linux native object files with
13790 $srv_native_linux_obj.
13791 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13792 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13793 (linux_enable_event_reporting): Remove declaration.
13794 (my_waitpid): Moved to common/linux-waitpid.c.
13795 (linux_wait_for_event): Pass ptid when calling
13796 linux_enable_event_reporting.
13797 (linux_supports_tracefork_flag): Remove.
13798 (linux_enable_event_reporting): Likewise.
13799 (linux_tracefork_grandchild): Remove.
13800 (STACK_SIZE): Moved to common/linux-ptrace.c.
13801 (linux_tracefork_child): Remove.
13802 (linux_test_for_tracefork): Remove.
13803 (linux_look_up_symbols): Call linux_supports_traceclone.
13804 (initialize_low): Remove call to linux_test_for_tracefork.
13805 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13806 common/linux-ptrace.h.
13807 (PTRACE_TYPE_ARG4): Likewise.
13808 Include linux-ptrace.h.
13809
32940073
PA
138102013-08-21 Pedro Alves <palves@redhat.com>
13811
13812 * config.in: Renegerate.
13813
33b60d58 138142013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13815
33b60d58
LM
13816 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13817 (SFILES): Remove $(srcdir)/common/target-common.c and
13818 add $(srcdir)/target/waitstatus.c.
13819 (OBS): Remove target-common.o and add waitstatus.o.
13820 (server_h): Remove $(srcdir)/../common/target-common.h and
13821 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13822 and $(srcdir)/../target/waitstatus.h.
13823 (target-common.o): Remove.
13824 (waitstatus.o): New target object file.
13825 * target.h: Do not include target-common.h and
13826 include target/resume.h, target/wait.h and
13827 target/waitstatus.h.
13828
b8e1b30e
LM
138292013-08-13 Luis Machado <lgustavo@codesourcery.com>
13830
13831 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13832 to PTRACE_TYPE_ARG3.
13833 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13834 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13835 PTRACE_TYPE_ARG4.
13836 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13837 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13838
7a60ad40
YQ
138392013-07-27 Jie Zhang <jie@codesourcery.com>
13840 Daniel Jacobowitz <dan@codesourcery.com>
13841 Yao Qi <yao@codesourcery.com>
13842
13843 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13844 (mips-linux-watch.o): New rule.
13845 (mips_linux_watch_h): New variable.
13846 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13847 srv_tgtobj.
13848 * linux-mips-low.c: Include mips-linux-watch.h.
13849 (struct arch_process_info, struct arch_lwp_info): New.
13850 (update_watch_registers_callback): New function.
13851 (mips_linux_new_process, mips_linux_new_thread) New functions.
13852 (mips_linux_prepare_to_resume, mips_insert_point): New
13853 functions.
13854 (mips_remove_point, mips_stopped_by_watchpoint): New
13855 functions.
13856 (rsp_bp_type_to_target_hw_bp_type): New function.
13857 (mips_stopped_data_address): New function.
13858 (the_low_target): Add watchpoint support functions.
13859
de6f69ad
YQ
138602013-07-27 Yao Qi <yao@codesourcery.com>
13861
13862 * i386-low.c: Include break-common.h.
13863 (enum target_hw_bp_type): Remove.
13864
3360c0bf
LM
138652013-07-24 Luis Machado <lgustavo@codesourcery.com>
13866
13867 * Makefile.in (SFILES): /common/target-common.c.
13868 (OBS): Add target-common.o.
13869 (server_h): Add $(srcdir)/../common/target-common.h.
13870 (target-common.o): New target.
13871 * server.c (queue_stop_reply_callback): Free
13872 status string after use.
13873 * target.c (target_waitstatus_to_string): Remove.
13874 * target.h: Include target-common.h.
13875 (resume_kind): Likewise.
13876 (target_waitkind): Likewise.
13877 (target_waitstatus): Likewise.
13878 (TARGET_WNOHANG): Likewise.
13879
bd885420
YQ
138802013-07-04 Yao Qi <yao@codesourcery.com>
13881
13882 * Makefile.in (host_alias): Use @host_noncanonical@.
13883 (target_alias): Use @target_noncanonical@.
13884 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13885 ACX_NONCANONICAL_HOST.
13886 * configure: Regenerated.
13887
13888 Revert:
13889 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13890
13891 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13892 * configure: Rebuild.
13893 * Makefile.in (version_host, version_target): Get from configure.
13894 (version.c): Use $(version_host) and $(version_target).
13895
17ef446e
PA
138962013-07-03 Pedro Alves <palves@redhat.com>
13897
13898 * Makefile.in (config.status): Depend on development.sh.
13899 * acinclude.m4: Include libmcheck.m4.
13900 * configure: Regenerate.
13901
7a9a7487
MG
139022013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13903
13904 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13905 attribute inside the parentheses.
13906 (winapi_DebugSetProcessKillOnExit): Ditto.
13907 (winapi_DebugBreakProcess): Ditto.
13908 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13909
49b64de6
MG
139102013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13911
13912 * notif.h (notif_event): Add a dummy member to avoid compiler
13913 errors.
13914
d5749ee7
PA
139152013-07-01 Pedro Alves <palves@redhat.com>
13916
13917 * hostio.c (HOSTIO_PATH_MAX): Define.
13918 (require_filename, handle_open, handle_unlink, handle_readlink):
13919 Use it.
13920
d8d2a3ee
PA
139212013-07-01 Pedro Alves <palves@redhat.com>
13922
13923 * server.h: Include "pathmax.h".
13924 * linux-low.c: Don't include sys/param.h.
13925 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13926 MAXPATHLEN.
13927 * win32-low.c: Don't include sys/param.h.
13928 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13929
bc7dea8d
PA
139302013-07-01 Pedro Alves <palves@redhat.com>
13931
13932 * event-loop.c: Don't check HAVE_UNISTD_H before including
13933 <unistd.h>.
13934 * gdbreplay.c: Likewise.
13935 * remote-utils.c: Likewise.
13936 * server.c: Likewise.
13937 * configure.ac: Don't check for unistd.h.
13938 * configure: Regenerate.
13939
d6c2da54
TT
139402013-06-28 Tom Tromey <tromey@redhat.com>
13941
13942 * Makefile.in (version.c): Use version.in, not
13943 common/version.in.
13944
257b6bec
MG
139452013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13946
13947 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13948 * configure: Rebuild.
13949 * Makefile.in (version_host, version_target): Get from configure.
13950 (version.c): Use $(version_host) and $(version_target).
13951
86ebe149
DK
139522013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13953
13954 Fix trace-status to output user name without trailing colon.
13955 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13956
f30aa5af
DK
139572013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13958
13959 Fix trace-status to output proper start-time and stop-time.
13960 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13961 output start time and stop time in hex as gdb expects.
13962
28a93511
YQ
139632013-06-26 Pedro Alves <pedro@codesourcery.com>
13964
13965 * tracepoint.c (build_traceframe_info_xml): Output trace state
13966 variables present in the trace buffer.
13967
01208463
TT
139682013-06-24 Tom Tromey <tromey@redhat.com>
13969
13970 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13971 create-version.sh.
13972 (version.o): Remove.
13973 * gdbreplay.c: Include version.h.
13974 (version, host_name): Don't declare.
13975 * server.h: Include version.h.
13976 (version, host_name): Don't declare.
13977
760256f9
PA
139782013-06-12 Pedro Alves <palves@redhat.com>
13979
13980 * linux-x86-low.c (linux_is_elf64): Delete global.
13981 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13982 with local linux_pid_exe_is_elf_64_file use.
13983
030031ee
PA
139842013-06-11 Pedro Alves <palves@redhat.com>
13985
13986 * linux-low.c (regset_disabled, disable_regset): New functions.
13987 (regsets_fetch_inferior_registers)
13988 (regsets_store_inferior_registers): Use them.
13989 (initialize_regsets_info); Don't allocate the disabled_regsets
13990 array here.
13991 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13992 comment.
13993
5da6eb0a
PA
139942013-06-11 Pedro Alves <palves@redhat.com>
13995
13996 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13997 xmalloc.
13998
7e5aaa09
PA
139992013-06-11 Pedro Alves <palves@redhat.com>
14000
14001 * linux-x86-low.c (initialize_low_arch): Call
14002 init_registers_x32_avx_linux.
14003
d878444c
JK
140042013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14005
14006 Fix compatibility with Android Bionic.
14007 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14008 it is not empty.
14009
3aee8918
PA
140102013-06-07 Pedro Alves <palves@redhat.com>
14011
5f2b57b5 14012 PR server/14823
3aee8918
PA
14013 * Makefile.in (OBS): Add tdesc.o.
14014 (IPA_OBJS): Add tdesc-ipa.o.
14015 (tdesc-ipa.o): New rule.
14016 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14017 interface.
14018 * linux-low.c (new_inferior): Delete.
14019 (disabled_regsets, num_regsets): Delete.
14020 (linux_add_process): Adjust to set the new per-process
14021 new_inferior flag.
14022 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14023 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14024 was a stop. When calling arch_setup, switch the current inferior
14025 to the thread that got an event.
14026 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14027 (regsets_fetch_inferior_registers)
14028 (regsets_store_inferior_registers): New regsets_info parameter.
14029 Adjust to use it.
14030 (linux_register_in_regsets): New regs_info parameter. Adjust to
14031 use it.
14032 (register_addr, fetch_register, store_register): New usrregs_info
14033 parameter. Adjust to use it.
14034 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14035 parameter regs_info. Adjust to use it.
14036 (linux_fetch_registers): Get the current inferior's regs_info, and
14037 adjust to use it.
14038 (linux_store_registers): Ditto.
14039 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14040 (initialize_low): Don't initialize the target_regsets here. Call
14041 initialize_low_arch.
14042 * linux-low.h (target_regsets): Delete declaration.
14043 (struct regsets_info): New.
14044 (struct usrregs_info): New.
14045 (struct regs_info): New.
14046 (struct process_info_private) <new_inferior>: New field.
14047 (struct linux_target_ops): Delete the num_regs, regmap, and
14048 regset_bitmap fields. New field regs_info.
14049 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14050 * i387-fp.c (num_xmm_registers): Delete.
14051 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14052 calls to new interface.
14053 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14054 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14055 Infer the number of xmm registers from the regcache's target
14056 description.
14057 * i387-fp.h (num_xmm_registers): Delete.
14058 * inferiors.c (add_thread): Don't install the thread's regcache
14059 here.
14060 * proc-service.c (gregset_info): Fetch the current inferior's
14061 regs_info. Adjust to use it.
14062 * regcache.c: Include tdesc.h.
14063 (register_bytes, reg_defs, num_registers)
14064 (gdbserver_expedite_regs): Delete.
14065 (get_thread_regcache): If the thread doesn't have a regcache yet,
14066 create one, instead of aborting gdbserver.
14067 (regcache_invalidate_one): Rename to ...
14068 (regcache_invalidate_thread): ... this.
14069 (regcache_invalidate_one): New.
14070 (regcache_invalidate): Only invalidate registers of the current
14071 process.
14072 (init_register_cache): Add target_desc parameter, and use it.
14073 (new_register_cache): Ditto. Assert the target description has a
14074 non zero registers_size.
14075 (regcache_cpy): Add assertions. Adjust.
14076 (realloc_register_cache, set_register_cache): Delete.
14077 (registers_to_string, registers_from_string): Adjust.
14078 (find_register_by_name, find_regno, find_register_by_number)
14079 (register_cache_size): Add target_desc parameter, and use it.
14080 (free_register_cache_thread, free_register_cache_thread_one)
14081 (regcache_release, register_cache_size): New.
14082 (register_size): Add target_desc parameter, and use it.
14083 (register_data, supply_register, supply_register_zeroed)
14084 (supply_regblock, supply_register_by_name, collect_register)
14085 (collect_register_as_string, collect_register_by_name): Adjust.
14086 * regcache.h (struct target_desc): Forward declare.
14087 (struct regcache) <tdesc>: New field.
14088 (init_register_cache, new_register_cache): Add target_desc
14089 parameter.
14090 (regcache_invalidate_thread): Declare.
14091 (regcache_invalidate_one): Delete declaration.
14092 (regcache_release): Declare.
14093 (find_register_by_number, register_cache_size, register_size)
14094 (find_regno): Add target_desc parameter.
14095 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14096 declarations.
14097 * remote-utils.c: Include tdesc.h.
14098 (outreg, prepare_resume_reply): Adjust.
14099 * server.c: Include tdesc.h.
14100 (gdbserver_xmltarget): Delete declaration.
14101 (get_features_xml, process_serial_event): Adjust.
14102 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14103 declare.
14104 (struct process_info) <tdesc>: New field.
14105 (ipa_tdesc): Declare.
14106 * tdesc.c: New file.
14107 * tdesc.h: New file.
14108 * tracepoint.c: Include tdesc.h.
14109 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14110 (get_context_regcache): Adjust to pass ipa_tdesc down.
14111 (do_action_at_tracepoint): Adjust to get the register cache size
14112 from the context regcache's description.
14113 (traceframe_walk_blocks): Adjust to get the register cache size
14114 from the current trace frame's description.
14115 (traceframe_get_pc): Adjust to get current trace frame's
14116 description and pass it down.
14117 (gdb_collect): Adjust to get the register cache size from the
14118 IPA's description.
14119 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14120 (gdbserver_xmltarget): Delete.
14121 (initialize_low_tracepoint): Set the ipa's target description.
14122 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14123 (initialize_low_tracepoint): Set the ipa's target description.
14124 * linux-x86-low.c: Include tdesc.h.
14125 [__x86_64__] (is_64bit_tdesc): New.
14126 (ps_get_thread_area, x86_get_thread_area): Use it.
14127 (i386_cannot_store_register): Rename to ...
14128 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14129 (i386_cannot_fetch_register): Rename to ...
14130 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14131 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14132 to new interface.
14133 (target_regsets): Rename to ...
14134 (x86_regsets): ... this.
14135 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14136 interface.
14137 (x86_siginfo_fixup): Use is_64bit_tdesc.
14138 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14139 (tdesc_x32_avx_linux, tdesc_x32_linux)
14140 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14141 Declare.
14142 (x86_linux_update_xmltarget): Delete.
14143 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14144 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14145 (AMD64_LINUX_USER64_CS): New.
14146 (x86_linux_read_description): New, based on
14147 x86_linux_update_xmltarget.
14148 (same_process_callback): New.
14149 (x86_arch_setup_process_callback): New.
14150 (x86_linux_update_xmltarget): New.
14151 (x86_regsets_info): New.
14152 (amd64_linux_regs_info): New.
14153 (i386_linux_usrregs_info): New.
14154 (i386_linux_regs_info): New.
14155 (x86_linux_regs_info): New.
14156 (x86_arch_setup): Reimplement.
14157 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14158 (x86_emit_ops): Ditto.
14159 (the_low_target): Adjust. Install x86_linux_regs_info,
14160 x86_cannot_fetch_register, and x86_cannot_store_register.
14161 (initialize_low_arch): New.
14162 * linux-ia64-low.c (tdesc_ia64): Declare.
14163 (ia64_fetch_register): Adjust.
14164 (ia64_usrregs_info, regs_info): New globals.
14165 (ia64_regs_info): New function.
14166 (the_low_target): Adjust.
14167 (initialize_low_arch): New function.
14168 * linux-sparc-low.c (tdesc_sparc64): Declare.
14169 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14170 Adjust.
14171 (sparc_arch_setup): New function.
14172 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14173 (the_low_target): Adjust.
14174 (initialize_low_arch): New function.
14175 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14176 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14177 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14178 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14179 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14180 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14181 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14182 (tdesc_powerpc_isa205_vsx64l): Declare.
14183 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14184 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14185 (ppc_set_pc, ppc_get_hwcap): Adjust.
14186 (ppc_usrregs_info): Forward declare.
14187 (!__powerpc64__) ppc_regmap_adjusted: New global.
14188 (ppc_arch_setup): Adjust to the current process'es target
14189 description.
14190 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14191 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14192 (ppc_store_evrregset): Adjust.
14193 (target_regsets): Rename to ...
14194 (ppc_regsets): ... this, and make static.
14195 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14196 (ppc_regs_info): New function.
14197 (the_low_target): Adjust.
14198 (initialize_low_arch): New function.
14199 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14200 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14201 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14202 (tdesc_s390x_linux64v2): Declare.
14203 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14204 (s390_fill_gregset, s390_store_last_break): Adjust.
14205 (target_regsets): Rename to ...
14206 (s390_regsets): ... this, and make static.
14207 (s390_get_pc, s390_set_pc): Adjust.
14208 (s390_get_hwcap): New target_desc parameter, and use it.
14209 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14210 (s390_arch_setup): Adjust to set the current process'es target
14211 description. Don't adjust the regmap.
14212 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14213 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14214 (regs_info_3264): New globals.
14215 (s390_regs_info): New function.
14216 (the_low_target): Adjust.
14217 (initialize_low_arch): New function.
14218 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14219 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14220 [__mips64] (init_registers_mips_linux)
14221 (init_registers_mips_dsp_linux): Delete defines.
14222 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14223 (have_dsp): New global.
14224 (mips_read_description): New, based on mips_arch_setup.
14225 (mips_arch_setup): Reimplement.
14226 (get_usrregs_info): New function.
14227 (mips_cannot_fetch_register, mips_cannot_store_register)
14228 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14229 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14230 (target_regsets): Rename to ...
14231 (mips_regsets): ... this, and make static.
14232 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14233 (dsp_regs_info, regs_info): New globals.
14234 (mips_regs_info): New function.
14235 (the_low_target): Adjust.
14236 (initialize_low_arch): New function.
14237 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14238 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14239 Declare.
14240 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14241 (arm_read_description): New, with bits factored from
14242 arm_arch_setup.
14243 (arm_arch_setup): Reimplement.
14244 (target_regsets): Rename to ...
14245 (arm_regsets): ... this, and make static.
14246 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14247 (arm_regs_info): New function.
14248 (the_low_target): Adjust.
14249 (initialize_low_arch): New function.
14250 * linux-m68k-low.c (tdesc_m68k): Declare.
14251 (target_regsets): Rename to ...
14252 (m68k_regsets): ... this, and make static.
14253 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14254 (m68k_regs_info): New function.
14255 (m68k_arch_setup): New function.
14256 (the_low_target): Adjust.
14257 (initialize_low_arch): New function.
14258 * linux-sh-low.c (tdesc_sharch): Declare.
14259 (target_regsets): Rename to ...
14260 (sh_regsets): ... this, and make static.
14261 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14262 (sh_regs_info, sh_arch_setup): New functions.
14263 (the_low_target): Adjust.
14264 (initialize_low_arch): New function.
14265 * linux-bfin-low.c (tdesc_bfin): Declare.
14266 (bfin_arch_setup): New function.
14267 (bfin_usrregs_info, regs_info): New globals.
14268 (bfin_regs_info): New function.
14269 (the_low_target): Adjust.
14270 (initialize_low_arch): New function.
14271 * linux-cris-low.c (tdesc_cris): Declare.
14272 (cris_arch_setup): New function.
14273 (cris_usrregs_info, regs_info): New globals.
14274 (cris_regs_info): New function.
14275 (the_low_target): Adjust.
14276 (initialize_low_arch): New function.
14277 * linux-cris-low.c (tdesc_crisv32): Declare.
14278 (cris_arch_setup): New function.
14279 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14280 (cris_regs_info): New function.
14281 (the_low_target): Adjust.
14282 (initialize_low_arch): New function.
14283 * linux-m32r-low.c (tdesc_m32r): Declare.
14284 (m32r_arch_setup): New function.
14285 (m32r_usrregs_info, regs_info): New globals.
14286 (m32r_regs_info): Adjust.
14287 (initialize_low_arch): New function.
14288 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14289 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14290 (tic6x_usrregs_info): Forward declare.
14291 (tic6x_read_description): New function, based on ...
14292 (tic6x_arch_setup): ... this. Reimplement.
14293 (target_regsets): Rename to ...
14294 (tic6x_regsets): ... this, and make static.
14295 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14296 (tic6x_regs_info): New function.
14297 (the_low_target): Adjust.
14298 (initialize_low_arch): New function.
14299 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14300 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14301 (target_regsets): Rename to ...
14302 (xtensa_regsets): ... this, and make static.
14303 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14304 globals.
14305 (xtensa_arch_setup, xtensa_regs_info): New functions.
14306 (the_low_target): Adjust.
14307 (initialize_low_arch): New function.
14308 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14309 (nios2_arch_setup): Set the current process'es tdesc.
14310 (target_regsets): Rename to ...
14311 (nios2_regsets): ... this.
14312 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14313 (nios2_regs_info): New function.
14314 (the_low_target): Adjust.
14315 (initialize_low_arch): New function.
a261b8f5
PA
14316 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14317 (aarch64_arch_setup): Set the current process'es tdesc.
14318 (target_regsets): Rename to ...
14319 (aarch64_regsets): ... this.
14320 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14321 (aarch64_regs_info): New function.
14322 (the_low_target): Adjust.
14323 (initialize_low_arch): New function.
3aee8918
PA
14324 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14325 globals.
14326 (target_regsets): Rename to ...
14327 (tile_regsets): ... this.
14328 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14329 (tile_regs_info): New function.
14330 (tile_arch_setup): Set the current process'es tdesc.
14331 (the_low_target): Adjust.
14332 (initialize_low_arch): New function.
14333 * spu-low.c (tdesc_spu): Declare.
14334 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14335 * win32-arm-low.c (tdesc_arm): Declare.
14336 (arm_arch_setup): New function.
14337 (the_low_target): Install arm_arch_setup instead of
14338 init_registers_arm.
14339 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14340 (init_windows_x86): Rename to ...
14341 (i386_arch_setup): ... this. Set `win32_tdesc'.
14342 (the_low_target): Adjust.
14343 * win32-low.c (win32_tdesc): New global.
14344 (child_add_thread): Don't create the thread cache here.
14345 (do_initial_child_stuff): Set the new process'es tdesc.
14346 * win32-low.h (struct target_desc): Forward declare.
14347 (win32_tdesc): Declare.
14348 * lynx-i386-low.c (tdesc_i386): Declare global.
14349 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14350 * lynx-low.c (lynx_tdesc): New global.
14351 (lynx_add_process): Set the new process'es tdesc.
14352 * lynx-low.h (struct target_desc): Forward declare.
14353 (lynx_tdesc): Declare global.
14354 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14355 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14356 * nto-low.c (nto_tdesc): New global.
14357 (do_attach): Set the new process'es tdesc.
14358 * nto-low.h (struct target_desc): Forward declare.
14359 (nto_tdesc): Declare.
14360 * nto-x86-low.c (tdesc_i386): Declare.
14361 (nto_x86_arch_setup): Set `nto_tdesc'.
14362
b1fbec62
GB
143632013-06-04 Gary Benson <gbenson@redhat.com>
14364
14365 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14366 to qSupported response when appropriate.
14367 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14368 with nonzero-length annex.
14369 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14370 arguments supplied in annex.
14371
d1ec4ce7
DE
143722013-05-31 Doug Evans <dje@google.com>
14373
ac44adcb 14374 PR server/15594
d1ec4ce7
DE
14375 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14376 64 bits in 64-cross-32 environment.
14377
9b25f2d3
PA
143782013-05-28 Pedro Alves <palves@redhat.com>
14379
14380 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14381 (aarch64-without-fpu.c): Delete rule.
14382 * configure.srv (aarch64*-*-linux*): Remove references to
14383 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14384 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14385 declaration.
14386
6740dc9c
PA
143872013-05-24 Pedro Alves <palves@redhat.com>
14388
14389 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14390 instead of strchr/decode_address. Error if the range isn't split
14391 with a ','. Don't assume there's be a ':' in the action.
14392
c2d6af84
PA
143932013-05-23 Yao Qi <yao@codesourcery.com>
14394 Pedro Alves <palves@redhat.com>
14395
14396 * linux-low.c (lwp_in_step_range): New function.
14397 (linux_wait_1): If the thread was range stepping and stopped
14398 outside the stepping range, report the stop to GDB. Otherwise,
14399 continue stepping. Add range stepping debug output.
14400 (linux_set_resume_request): Copy the step range from the resume
14401 request to the lwp.
14402 (linux_supports_range_stepping): New.
14403 (linux_target_ops) <supports_range_stepping>: Set to
14404 linux_supports_range_stepping.
14405 * linux-low.h (struct linux_target_ops)
14406 <supports_range_stepping>: New field.
14407 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14408 * linux-x86-low.c (x86_supports_range_stepping): New.
14409 (the_low_target) <supports_range_stepping>: Set to
14410 x86_supports_range_stepping.
14411 * server.c (handle_v_cont): Handle 'r' action.
14412 (handle_v_requests): Append ";r" if the target supports range
14413 stepping.
14414 * target.h (struct thread_resume) <step_range_start,
14415 step_range_end>: New fields.
14416 (struct target_ops) <supports_range_stepping>:
14417 New field.
14418 (target_supports_range_stepping): New macro.
14419
58794e1a
JB
144202013-05-17 Joel Brobecker <brobecker@adacore.com>
14421
14422 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14423 confusion in comment.
14424
d631c5a7
JB
144252013-05-17 Joel Brobecker <brobecker@adacore.com>
14426
14427 * lynx-low.c (struct process_info_private): New type.
14428 (lynx_add_process): New function.
14429 (lynx_create_inferior, lynx_attach): Replace calls to
14430 add_process by calls to lynx_add_process.
14431 (lynx_resume): If PTID is null, then try using
14432 current_process()->private->last_wait_event_ptid.
14433 Add comments.
14434 (lynx_clear_inferiors): Delete. The contents of that function
14435 has been inlined in lynx_mourn;
14436 (lynx_wait_1): Save the ptid in the process's private data.
14437 (lynx_mourn): Free the process' private data. Replace call
14438 to lynx_clear_inferiors by call to clear_inferiors.
14439
96f7a20f
YQ
144402013-05-17 Yao Qi <yao@codesourcery.com>
14441
14442 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14443 the right place.
14444
db0dfaa0
LM
144452013-05-16 Luis Machado <lgustavo@codesourcery.com>
14446
14447 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14448 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14449 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14450 PT_TEXT_END_ADDR guards. Update comments.
14451 (linux_target_op) <read_offsets>: Conditionally define to
14452 linux_read_offsets if the target is UCLIBC and if it defines
14453 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14454
68f5f838
SL
144552013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14456 Andrew Jenner <andrew@codesourcery.com>
14457
14458 * Makefile.in (SFILES): Add linux-nios2-low.c.
14459 (clean): Add action to delete nios2-linux.c.
14460 (nios2-linux.c): New rule.
14461 * configure.srv: Add nios2*-*-linux*.
14462 * linux-nios2-low.c: New.
14463
1ebff1fd
HAQ
144642013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14465
14466 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14467
f6150862
HZ
144682013-04-25 Hui Zhu <hui@codesourcery.com>
14469
14470 PR gdb/15186
f6150862
HZ
14471 * ax.c (ax_printf): Add fflush.
14472
614c279d
TT
144732013-04-22 Tom Tromey <tromey@redhat.com>
14474
14475 * Makefile.in (SFILES): Add filestuff.c.
14476 (OBS): Add filestuff.o.
14477 (filestuff.o): New target.
14478 * config.in, configure: Rebuild.
14479 * configure.ac: Check for fdwalk, pipe2.
14480
7d4e5717
PA
144812013-04-17 Pedro Alves <palves@redhat.com>
14482
14483 * configure.ac (USE_THREAD_DB): Delete variable.
14484 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14485 Don't AC_SUBST USE_THREAD_DB.
14486 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14487 * config.in, configure: Regenerate.
14488
d5c93e41
PA
144892013-04-16 Pedro Alves <palves@redhat.com>
14490
14491 * linux-low.h (struct lwp_info) <thread_known>: Move under
14492 the USE_THREAD_DB #ifdef.
14493
04f5fe89
PA
144942013-04-16 Pedro Alves <palves@redhat.com>
14495
14496 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14497 (linux-low.o): Delete rule.
14498 * linux-low.h: Always include "gdb_thread_db.h" instead of
14499 conditionally including thread_db.h.
14500 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14501 HAVE_THREAD_DB_H.
14502
480b27bf
JK
145032013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14504
14505 * Makefile.in (install-only): Fix make install regression.
14506
43662968
JK
145072013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14508
14509 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14510 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14511 installation.
14512 * gdbserver.1: Remove.
14513
3e74e146
PA
145142013-03-22 Pedro Alves <palves@redhat.com>
14515
14516 * linux-low.c (handle_extended_wait): Don't call
14517 linux_enable_event_reporting.
14518
a8347a2a
TT
145192013-03-15 Tony Theodore <tonyt@logyst.com>
14520
14521 PR build/9098:
14522 * Makefile.in (SHELL): Use @SHELL@.
14523
eeb56fa7
SDJ
145242013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14525
14526 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14527 compiler warning.
14528
4fa7e2ff
JB
145292013-03-13 Joel Brobecker <brobecker@adacore.com>
14530
14531 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14532 Remove extraneous NULL element.
14533
8ddb1965
YQ
145342013-03-13 Yao Qi <yao@codesourcery.com>
14535
14536 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14537 'V' block in trace frame.
14538
9accd112
MM
145392013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14540
14541 * target.h (struct target_ops): Add btrace ops.
14542 (target_supports_btrace): New macro.
14543 (target_enable_btrace): New macro.
14544 (target_disable_btrace): New macro.
14545 (target_read_btrace): New macro.
14546 * gdbthread.h (struct thread_info): Add btrace field.
14547 * server.c: Include btrace-common.h.
14548 (handle_btrace_general_set): New function.
14549 (handle_btrace_enable): New function.
14550 (handle_btrace_disable): New function.
14551 (handle_general_set): Call handle_btrace_general_set.
14552 (handle_qxfer_btrace): New function.
14553 (struct qxfer qxfer_packets[]): Add btrace entry.
14554 * inferiors.c (remove_thread): Disable btrace.
14555 * linux-low: Include linux-btrace.h.
14556 (linux_low_enable_btrace): New function.
14557 (linux_low_read_btrace): New function.
14558 (linux_target_ops): Add btrace ops.
14559 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14560 Add srv_linux_btrace=yes.
14561 (x86_64-*-linux*): Add linux-btrace.o.
14562 Add srv_linux_btrace=yes.
14563 * configure.ac: Define HAVE_LINUX_BTRACE.
14564 * config.in: Regenerated.
14565 * configure: Regenerated.
14566
5cc22e4c
MM
145672013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14568
14569 * server.c (handle_qxfer): Preserve error message if -3 is
14570 returned.
14571 (qxfer): Document the -3 return value.
14572
7c97f91e
MM
145732013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14574
14575 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14576 (linux_btrace_h): New variable.
14577 (linux-btrace.o): New rule.
14578
be9a119c 145792013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14580 Hafiz Abid Qadeer <abidh@codesourcery.com>
14581
14582 * tracepoint.c (trace_buffer_size): New global.
14583 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14584 (init_trace_buffer): Change to one-argument function. Allocate
14585 trace buffer memory.
14586 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14587 handle QTBuffer:size packet.
14588 (cmd_bigqtbuffer_size): New function.
14589 (initialize_tracepoint): Call init_trace_buffer with
14590 DEFAULT_TRACE_BUFFER_SIZE.
14591 * server.c (handle_query): Add QTBuffer:size in the
14592 supported packets.
14593
e64f7499
YQ
145942013-03-07 Yao Qi <yao@codesourcery.com>
14595
14596 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14597 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14598 of -1.
14599 (cmd_qtsp): Adjust condition. Do post increment.
14600 Set cur_action and cur_step_action back to 0.
14601
f0ae6fc3
PA
146022013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14603
14604 PR server/15236
14605 * linux-low.c (linux_write_memory): Return early success if LEN is
14606 zero.
14607
b5b0b0af
CV
146082013-03-05 Corinna Vinschen <vinschen@redhat.de>
14609
334ad4a8 14610 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14611
589bc927
TT
146122013-02-28 Tom Tromey <tromey@redhat.com>
14613
14614 * configure.ac: Invoke AC_SYS_LARGEFILE.
14615 * configure, config.in: Rebuild.
14616
dfe07582
CV
146172013-02-28 Corinna Vinschen <vinschen@redhat.com>
14618
14619 * win32-low.c: Throughout, fix format strings and casts of
14620 printf-like functions to avoid type related warnings on all
14621 platforms.
14622 (get_child_debug_event): Print dwDebugEventCode as hex since
14623 that's how it's usually documented.
14624
736cd585
YQ
146252013-02-28 Yao Qi <yao@codesourcery.com>
14626
14627 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14628 pulongest.
14629
e1f58301
JW
146302013-02-27 Jiong Wang <jiwang@tilera.com>
14631
14632 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14633 (reg-tilegx32.c): New rule.
14634 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14635 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14636 different register info initializer according to elf class.
14637 (init_registers_tilgx32): New function. The tilegx32 register info
14638 initializer.
14639 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14640 (tile_store_gregset): Likewise.
14641
d171ca78
YQ
146422013-02-27 Yao Qi <yao@codesourcery.com>
14643
14644 * server.c (process_point_options): Print debug message when
14645 debug_threads is true.
14646
282bbdf3
YQ
146472013-02-26 Yao Qi <yao@codesourcery.com>
14648
14649 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14650
aca22551
PA
146512013-02-19 Pedro Alves <palves@redhat.com>
14652 Kai Tietz <ktietz@redhat.com>
14653
14654 PR gdb/15161
14655
14656 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14657 instead of strtoul to extract address from packet.
14658 (process_serial_event) <'z'>: Likewise.
14659
4f3cee1c
YQ
146602013-02-18 Yao Qi <yao@codesourcery.com>
14661
14662 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14663
8e1d55a3
PA
146642013-02-14 Pedro Alves <palves@redhat.com>
14665
14666 Plug memory leak.
14667
14668 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14669 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14670
458820da
PA
146712013-02-14 Pedro Alves <palves@redhat.com>
14672
14673 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14674
baea0dae
PA
146752013-02-14 Pedro Alves <palves@redhat.com>
14676
14677 * tracepoint.c (save_string): Delete.
14678 (add_tracepoint_action): Use savestring instead of save_string.
14679
0b1afbb3
PA
146802013-02-12 Pedro Alves <palves@redhat.com>
14681
14682 * linux-xtensa-low.c: Ditto.
14683 * xtensa-xtregs.c: Ditto.
14684
8a4ac37e
PA
146852013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14686
14687 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14688 thread_db.
14689
148de6bb
MS
146902013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14691
14692 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14693 aarch64_num_wp_regs and aarch64_num_bp_regs to
14694 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14695
55fac6e0
MS
146962013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14697
14698 * linux-aarch64-low.c (ps_get_thread_area): Replace
14699 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14700
176eb98c
MS
147012013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14702 Marcus Shawcroft <marcus.shawcroft@arm.com>
14703 Nigel Stephens <nigel.stephens@arm.com>
14704 Yufeng Zhang <yufeng.zhang@arm.com>
14705
14706 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14707 (aarch64.c, aarch64-without-fpu.c): New targets.
14708 * configure.srv (aarch64*-*-linux*): New.
14709 * linux-aarch64-low.c: New file.
14710
56f7af9c
MS
147112013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14712
43aaf8b6 14713 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14714 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14715 (dequeue_one_deferred_signal, linux_resume_one_thread)
14716 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14717 (linux_tracefork_grandchild, linux_test_for_tracefork)
14718 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14719 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14720 where the argument is 0.
14721
60f662b0
YQ
147222013-01-25 Yao Qi <yao@codesourcery.com>
14723
14724 * event-loop.c: Include "queue.h".
14725 (gdb_event_p): New typedef.
14726 (struct gdb_event) <next_event>: Remove.
14727 (event_queue): Change to QUEUE(gdb_event_p).
14728 (async_queue_event): Remove.
14729 (gdb_event_xfree): New.
14730 (initialize_event_loop): New.
14731 (process_event): Use API from QUEUE.
14732 (wait_for_event): Likewise.
14733 * server.c (main): Call initialize_event_loop.
14734 * server.h (initialize_event_loop): Declare.
14735
5ae4861a
YQ
147362013-01-18 Yao Qi <yao@codesourcery.com>
14737
14738 * ax.h (struct eval_agent_expr_context): New.
14739 (gdb_eval_agent_expr): Update declaration.
14740 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14741 TFRAME. Add new argument CTX.
14742 * server.h (struct eval_agent_expr_context): Declare.
14743 (agent_mem_read, agent_tsv_read): Update declaration.
14744 (agent_mem_read_string): Likewise.
14745 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14746 (add_traceframe_block): Add new argument TPOINT.
14747 Increase TPOINT->traceframe_usage.
14748 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14749 eval_tracepoint_agent_expr.
14750 (condition_true_at_tracepoint): Likewise.
14751 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14752 (agent_mem_read_string, agent_tsv_read): Likewise.
14753
85e00e85
YQ
147542013-01-16 Yao Qi <yao@codesourcery.com>
14755
14756 * linux-low.c (linux_resume_one_lwp): Don't check
14757 'lwp->bp_reinsert != 0'.
14758
4039cf45
JB
147592013-01-07 Joel Brobecker <brobecker@adacore.com>
14760 Pedro Alves <palves@redhat.com>
14761
14762 * lynx-low.c (ptrace_request_to_str): Define a temporary
14763 macro and use it to simplify this function's implementation.
14764
9044dee2
JB
147652013-01-07 Joel Brobecker <brobecker@adacore.com>
14766
14767 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14768 sets errno.
14769
e6352c8f
JB
147702013-01-07 Joel Brobecker <brobecker@adacore.com>
14771
14772 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14773
50681a27
JB
147742013-01-07 Joel Brobecker <brobecker@adacore.com>
14775
14776 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14777
3f6e77ef
JB
147782013-01-07 Joel Brobecker <brobecker@adacore.com>
14779
14780 * lynx-low.c (lynx_resume): Use the resume_info parameter
14781 to determine the ptid for the lynx_ptrace call, unless
14782 it is equal to minus_one_ptid, in which case we use the
14783 ptid of the current_inferior.
14784 (lynx_wait_1): After having received a thread create/exit
14785 event, resume the inferior's execution using the signaling
14786 thread's ptid, rather than the old ptid.
14787
7fda33ae
JB
147882013-01-07 Joel Brobecker <brobecker@adacore.com>
14789
14790 * lynx-low.c (lynx_resume): Delete variable ret.
14791
b9786c74
JB
147922013-01-01 Joel Brobecker <brobecker@adacore.com>
14793
14794 * gdbreplay.c (gdbreplay_version): Update copyright year.
14795 * server.c (gdbserver_version): Likewise.
14796
8b93d60f
JB
147972012-12-17 Joel Brobecker <brobecker@adacore.com>
14798
14799 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14800 new thread.
14801
037335a7
JB
148022012-12-17 Joel Brobecker <brobecker@adacore.com>
14803
14804 * lynx-low.c (ptrace_request_to_str): Add handling for
14805 PTRACE_GETTRACESIG.
14806
52d4cbd8
JB
148072012-12-17 Joel Brobecker <brobecker@adacore.com>
14808
14809 * lynx-low.c (lynx_attach): Delete variable new_process.
14810
ab8f6ca9
JB
148112012-12-17 Joel Brobecker <brobecker@adacore.com>
14812
14813 * lynx-low.c (lynx_create_inferior): Delete variable
14814 new_process.
14815
78cbc024
JB
148162012-12-17 Joel Brobecker <brobecker@adacore.com>
14817
14818 * lynx-low.c (ptrace_request_to_str): Do not handle
14819 PTRACE_GETTHREADLIST if this macro does not exist.
14820
14a00470
YQ
148212012-12-15 Yao Qi <yao@codesourcery.com>
14822
14823 * Makefile.in (OBS): Add notif.o.
14824 * notif.c, notif.h: New.
14825 * server.c: Include "notif.h".
14826 (struct vstop_notif) <next>: Remove.
14827 <base>: New field.
14828 (queue_stop_reply): Update.
14829 (push_event, send_next_stop_reply): Remove.
14830 (discard_queued_stop_replies): Update.
14831 (notif_stop): New variable.
14832 (handle_v_stopped): Remove.
14833 (handle_v_requests): Don't call handle_v_stopped. Call
14834 handle_ack_notif instead.
14835 (queue_stop_reply_callback): Call notif_event_enque instead
14836 of queue_stop_reply.
14837 (handle_status): Don't call send_next_stop_reply, call
14838 notif_write_event instead.
14839 (kill_inferior_callback): Likewise.
14840 (detach_or_kill_inferior_callback): Likewise.
14841 (main): Call initialize_notif.
14842 (process_serial_event): Call QUEUE_is_empty.
14843 (handle_target_event): Call notif_push instead of push event.
14844 * server.h (push_event): Remove declaration.
14845
61c125b9
TT
148462012-12-10 Tom Tromey <tromey@redhat.com>
14847
14848 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14849 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14850 macros.
14851 (.c.o): Rewrite.
14852 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14853 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14854 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14855 (amd64-linux-ipa.o, ax.o): Rewrite.
14856 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14857 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14858 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14859 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14860 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14861 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14862 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14863 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14864 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14865 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14866 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14867 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14868 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14869 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14870 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14871 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14872 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14873 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14874 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14875 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14876 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14877 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14878 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14879 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14880 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14881 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14882 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14883 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14884 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14885 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14886 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14887 (reg-tilegx.o): Remove.
14888 (all_object_files): New macro.
14889 Include .deps files.
14890 * aclocal.m4, configure: Rebuild.
14891 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14892 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14893 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14894
e90e9ad9
TT
148952012-12-05 Tom Tromey <tromey@redhat.com>
14896
14897 PR gdb/14917:
14898 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14899
02d403bf 149002012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14901
14902 * configure.ac: Check for linux/perf_event.h.
14903 * config.in: Regenerated.
14904 * configure: Regenerated.
14905
0270a750
PA
149062012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14907
14908 * hostio.c (handle_readlink): Decrease buffer size
14909 parameter passed to readlink by one byte.
14910
8c29b58e
YQ
149112012-11-26 Yao Qi <yao@codesourcery.com>
14912
14913 * configure.ac (build_warnings): Append '-Wempty-body'.
14914 * configure: Regenerated.
14915 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14916 body.
14917
8bdce1ff
PM
149182012-11-15 Pierre Muller <muller@sourceware.org>
14919
14920 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14921 * config.in: Regenerate.
14922 * configure: Regenerate.
14923 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14924 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14925 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14926 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14927 header.
14928 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14929 instead of <sys/wait.h> header.
14930 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14931
02d403bf 149322012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14933
14934 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14935 (various make rules): Remove -DGDBSERVER
14936
fbd5db48
YQ
149372012-11-09 Yao Qi <yao@codesourcery.com>
14938
14939 * spu-low.c (current_ptid): Move it to ..
14940 * gdbthread.h: ... here. New.
14941 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14942 * server.c (myresume, process_serial_event): Likewise.
14943 * thread-db.c (thread_db_find_new_threads): Likewise.
14944 * tracepoint.c (run_inferior_command): Likewise.
14945
b3dc46ff
AB
149462012-10-01 Andrew Burgess <aburgess@broadcom.com>
14947
14948 * server.c (handle_search_memory_1): Include access length in
14949 warning message.
14950
07c04788
HPN
149512012-09-05 Michael Brandt <michael.brandt@axis.com>
14952
14953 * linux-crisv32-low.c: Fix compile errors.
14954
918d227b
YQ
149552012-09-04 Yao Qi <yao@codesourcery.com>
14956
14957 * tracepoint.c (cmd_qtsv): Adjust debug message.
14958 Don't check CUR_TPOINT.
14959
18c1b81a
YQ
149602012-08-28 Yao Qi <yao@codesourcery.com>
14961
14962 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14963 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14964 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14965 Remove declarations of xmalloc, xreallloc, xstrdup and
14966 freeargv.
14967 * Makefile.in (libiberty_h): New.
14968 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14969 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14970
dc82f37b
YQ
149712012-08-23 Yao Qi <yao@codesourcery.com>
14972
14973 * server.h: Remove declaration of 'xsnprintf'.
14974
406b1477
KS
149752012-08-22 Keith Seitz <keiths@redhat.com>
14976
14977 * server.h: Include build-gnulib-gbserver/config.h.
14978 * gdbreplay.c: Likewise.
14979
e6712ff1
DE
149802012-08-08 Doug Evans <dje@google.com>
14981
14982 * Makefile.in (SFILES): Add gdb_vecs.c.
14983 (OBS): Add gdb_vecs.o.
14984 (gdb_vecs_h, host_defs_h): New variables.
14985 (thread-db.o): Add $(gdb_vecs_h) dependency.
14986 (gdb_vecs.o): New rule.
14987 * thread-db.c: #include "gdb_vecs.h".
14988 (thread_db_load_search): Use a vector to iterate over path elements.
14989 Handle text appearing after "$pdir".
14990
14991 * configure.ac: Add check for strstr.
14992 * config.in: Regenerate.
14993 * configure: Regenerate.
14994
7c3270ae
UW
149952012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14996
14997 * hostio.c (handle_pread): If pread fails, fall back to attempting
14998 lseek/read.
14999 (handle_pwrite): Likewise for pwrite.
15000
b62e2b27
UW
150012012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15002
15003 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15004 between unsupported TYPE and unimplementable ADDR/LEN combination.
15005 (arm_insert_point): Act on new return value.
15006
78a99e91
PA
150072012-07-31 Pedro Alves <palves@redhat.com>
15008
15009 * server.c (process_point_options): Only skip tokens if we find
15010 one that is unrecognized. Don't treat 'X' specially while
15011 skipping unrecognized tokens.
15012
fcf303ab
UW
150132012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15014
15015 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15016 to 4-byte-align HW breakpoint addresses for Thumb.
15017
7255706c
YQ
150182012-07-27 Yao Qi <yao@codesourcery.com>
15019
15020 PR remote/14161.
15021
15022 * server.h: Declare gdb_agent_about_to_close.
15023 * target.c (kill_inferior): Include "agent.h".
15024 New. Send command 'kill'.
15025 * target.h (kill_inferior): Removed macro.
15026 * tracepoint.c (gdb_agent_about_to_close): New.
15027 (gdb_agent_helper_thread): Handle command 'close'.
15028 Wait endlessly until the inferior stops.
15029 Install gdb_agent_remove_socket to atexit hook.
15030 (agent_socket_name): New static variable.
15031 (gdb_agent_socket_init): Replace local variable 'name' with
15032 'agent_socket_name'.
15033 (gdb_agent_remove_socket): New.
15034
5a3f286f
YQ
150352012-07-27 Yao Qi <yao@codesourcery.com>
15036
15037 * server.c (process_point_options): Stop at 'X' when parsing.
15038
961bd387
ME
150392012-07-19 Michael Eager <eager@eagercon.com>
15040
a261b8f5 15041 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15042 to hw_execute.
15043 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15044 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15045 hardware breakpoint.
15046
aa7c7447
JK
150472012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15048
15049 * gdbserver/linux-low.c (initialize_low): Call
15050 linux_ptrace_init_warnings.
15051
7f216e7c
DE
150522012-07-02 Doug Evans <dje@google.com>
15053
15054 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15055 pointer to int.
15056
d3ce09f5
SS
150572012-07-02 Stan Shebs <stan@codesourcery.com>
15058
15059 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15060 (ax.o): Add it to build rule.
15061 (ax-ipa.o): Ditto.
15062 (OBS): Add format.o.
15063 (IPA_OBS): Add format.o.
15064 * server.c (handle_query): Claim support for breakpoint commands.
15065 (process_point_options): Add command case.
15066 (process_serial_event): Leave running if there are printfs in
15067 effect.
15068 * mem-break.h (any_persistent_commands): Declare.
15069 (add_breakpoint_commands): Declare.
15070 (gdb_no_commands_at_breakpoint): Declare.
15071 (run_breakpoint_commands): Declare.
15072 * mem-break.c (struct point_command_list): New struct.
15073 (struct breakpoint): New field command_list.
15074 (any_persistent_commands): New function.
15075 (add_commands_to_breakpoint): New function.
15076 (add_breakpoint_commands): New function.
15077 (gdb_no_commands_at_breakpoint): New function.
15078 (run_breakpoint_commands): New function.
15079 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15080 locally.
15081 * ax.c: Include format.h.
15082 (ax_printf): New function.
15083 (gdb_eval_agent_expr): Add printf opcode.
15084
2f8f6aed
YQ
150852012-06-13 Yao Qi <yao@codesourcery.com>
15086
15087 * server.c (start_inferior): Remove duplicated writes to fields
15088 'last_resume_kind' and 'last_status' of 'current_inferior'.
15089
0c9070b3
YQ
150902012-06-12 Yao Qi <yao@codesourcery.com>
15091 Pedro Alves <palves@redhat.com>
15092
15093 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15094 comment.
15095 * server.c (handle_v_cont): Extend comment.
15096
c52daf70
YQ
150972012-06-11 Yao Qi <yao@codesourcery.com>
15098
15099 * linux-low.c (linux_attach): Add 'static'.
15100
d38bbb0a
YQ
151012012-06-06 Yao Qi <yao@codesourcery.com>
15102
15103 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15104
89dc0afd
JK
151052012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15106
15107 Fix gcc -flto compilation warning.
15108 * server.c (main): Make variable multi_mode and attach volatile.
15109
75f62ce7
TJB
151102012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15111
15112 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15113 if the platform doesn't know about it.
15114
65f479b6
PA
151152012-05-30 Jeff Kenton <jkenton@tilera.com>
15116
15117 * Makefile.in (SFILES): Add linux-tile-low.c.
15118 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15119 * configure.srv: Handle tilegx-*-linux*.
15120 * linux-tile-low.c: New file.
15121
0c5bf5a9
JK
151222012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15123
15124 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15125
a493e3e2
PA
151262012-05-24 Pedro Alves <palves@redhat.com>
15127
15128 PR gdb/7205
15129
43aaf8b6 15130 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15131
2ea28649
PA
151322012-05-24 Pedro Alves <palves@redhat.com>
15133
15134 PR gdb/7205
15135
15136 Replace target_signal with gdb_signal throughout.
15137
8d409d16
MR
151382012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15139
15140 * linux-low.c (linux_store_registers): Avoid the copying sequence
15141 when no data has been retrieved by ptrace.
15142
23512c01
MGD
151432012-05-22 Will Deacon <will.deacon@arm.com>
15144
15145 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15146 Include asm/ptrace.h.
15147 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15148 already defined.
15149
4934b29e
MR
151502012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15151
15152 * linux-low.c (linux_store_registers): Don't re-retrieve data
15153 with ptrace that has already been obtained from /proc. Always
15154 copy any data retrieved with ptrace to the buffer supplied.
15155
bde24c0a
PA
151562012-05-11 Yao Qi <yao@codesourcery.com>
15157 Pedro Alves <palves@redhat.com>
15158
15159 * linux-low.c (enum stopping_threads_kind): New.
15160 (stopping_threads): Change type to `enum stopping_threads_kind'.
15161 (handle_extended_wait): If stopping and suspending threads, leave
15162 the new_lwp suspended too.
15163 (linux_wait_for_event): Adjust.
15164 (stop_all_lwps): Set `stopping_threads' to
15165 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15166 whether we're suspending threads or just stopping them. Assert no
15167 recursion happens.
15168
623b6bdf
YQ
151692012-04-29 Yao Qi <yao@codesourcery.com>
15170
15171 * server.h: Move some code to ...
15172 * gdbthread.h: ... here. New.
15173 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15174 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15175 (nto-low.o, win32-low.o): Likewise.
15176 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15177 * regcache.c, remote-utils.c, server.c: Likewise.
15178 * target.c, tracepoint.c, win32-low.c: Likewise.
15179
f15f9948
TJB
151802012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15181
15182 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15183 (PTRACE_ARG4_TYPE): Likewise.
15184 (PTRACE_XFER_TYPE): Likewise.
15185 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15186 ptrace to PTRACE_ARG3_TYPE.
15187 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15188 (PTRACE_ARG4_TYPE): Likewise.
15189 (PTRACE_XFER_TYPE): Likewise.
15190 (linux_detach_one_lwp): Cast fourth argument of
15191 ptrace to long then PTRACE_ARG4_TYPE.
15192 (regsets_fetch_inferior_registers): Cast third argument of
15193 ptrace to long then PTRACE_ARG3_TYPE.
15194 (regsets_store_inferior_registers): Likewise.
15195
38ea300a
PA
151962012-04-20 Pedro Alves <palves@redhat.com>
15197
15198 * configure: Regenerate.
15199
c971b7fa
PA
152002012-04-19 Pedro Alves <palves@redhat.com>
15201
43aaf8b6 15202 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15203 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15204 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15205 (all, install-only, uninstall, clean-info, all-lib, clean): No
15206 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15207 (maintainer-clean realclean distclean): Use subdir_do.
15208 (subdir_do): New.
15209 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15210 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15211 * acinclude.m4: Include acx_configure_dir.m4.
15212 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15213 calls. Call AC_PROG_RANLIB. Configure gnulib using
15214 ACX_CONFIGURE_DIR.
15215 (GNULIB): New.
15216 (GNULIB_STDINT_H): Adjust.
15217 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15218 * gdbreplay.c: Include build-gnulib/config.h.
15219 * server.h: Likewise.
15220 * aclocal.m4: Regenerate.
15221 * config.in: Regenerate.
15222 * configure: Regenerate.
c971b7fa 15223
809277f8
PA
152242012-04-19 Pedro Alves <palves@redhat.com>
15225
15226 * Makefile.in (LIBGNU, INCGNU): Adjust.
15227 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15228 (all, install-only, uninstall, clean-info, all-lib, clean)
15229 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15230 * configure.ac: Adjust AC_OUTPUT output.
15231 * aclocal.m4: Regenerate.
15232 * configure: Regenerate.
15233
fd9bb8b8
PA
152342012-04-19 Pedro Alves <palves@redhat.com>
15235
15236 * Makefile.in (generated_files): New.
15237 (server_h): Remove the explicit dependency on config.h, and depend
15238 on $generated_files.
15239
1c298c66
PA
152402012-04-19 Pedro Alves <palves@redhat.com>
15241
15242 * Makefile.in (INCGNU): Add -Ignulib.
15243
57c4b50b
PA
152442012-04-19 Pedro Alves <palves@redhat.com>
15245
15246 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15247 (INCGNU): ... this, and spell out -I here.
15248 (GNULIB_LIB): Rename to ...
15249 (LIBGNU): ... this.
15250 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15251
1030e047
PA
152522012-04-19 Pedro Alves <palves@redhat.com>
15253
15254 * config.in: Regenerate.
15255
447d4319
PA
152562012-04-19 Pedro Alves <palves@redhat.com>
15257
15258 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15259 * server.h (memmem): Remove declaration.
15260 * config.in: Regenerate.
15261 * configure: Regenerate.
15262
aad9eab9
YQ
152632012-04-19 Yao Qi <yao@codesourcery.com>
15264
15265 * Makefile.in (SFILES): Add common/vec.c.
15266 (OBS): Add vec.o.
15267 (vec.o): New rule.
15268
3e10640f
YQ
152692012-04-19 Yao Qi <yao@codesourcery.com>
15270
15271 * remote-utils.c (prepare_resume_reply): Replace with macro
15272 target_core_of_thread.
15273 * server.c (handle_qxfer_threads_proper): Likewise.
15274 * target.h (traget_core_of_thread): New macro.
15275
71622373
PA
152762012-04-18 Pedro Alves <palves@redhat.com>
15277
15278 * aclocal.m4: Regenerate.
15279 * configure: Regenerate.
15280
80d26939
YQ
152812012-04-16 Yao Qi <yao@codesourcery.com>
15282
15283 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15284 duplicated on address.
15285
42476b70
YQ
152862012-04-16 Yao Qi <yao@codesourcery.com>
15287
15288 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15289 (struct tracepoint_action_ops) <send>: New field.
15290 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15291 (agent_expr_send, x_tracepoint_action_send): New.
15292 (l_tracepoint_action_send): New.
15293 (cmd_qtdp): Download and install tracepoint
15294 according to `use_agent'.
15295 (run_inferior_command): Add one more parameter `len'.
15296 Update callers.
15297 (tracepoint_send_agent): New.
15298 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15299
7bc83639
YQ
153002012-04-16 Yao Qi <yao@codesourcery.com>
15301
15302 * tracepoint.c (download_tracepoints): Moved to ...
15303 (cmd_qtstart): ... here.
15304
5f18041e
YQ
153052012-04-14 Yao Qi <yao@codesourcery.com>
15306
15307 * tracepoint.c: Include inttypes.h.
15308 (struct collect_memory_action): Use sized types.
15309 (struct tracepoint): Likewise.
15310 (cmd_qtdp, stop_tracing): Update print specifiers.
15311 (cmd_qtp, response_tracepoint): Likewise.
15312 (collect_data_at_tracepoint): Likewise.
15313 (collect_data_at_step): Likewise.
15314
55a8c076
YQ
153152012-04-14 Yao Qi <yao@codesourcery.com>
15316
15317 Import gnulib module inttypes.
15318 * aclocal.m4, config.in, configure: Regenerated.
15319
dc750257
YQ
153202012-04-14 Yao Qi <yao@codesourcery.com>
15321
15322 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15323 Makefile and config.status at last.
15324
0ab5faf9
YQ
153252012-04-13 Yao Qi <yao@codesourcery.com>
15326
15327 * tracepoint.c: Include stdint.h unconditionally.
15328
18f5fd81
TJB
153292012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15330
15331 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15332 on BFD_HAVE_SYS_PROCFS_TYPE.
15333 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15334 * configure: Regenerate.
15335 * config.in: Likewise.
15336
4d47af5c
L
153372012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15338
15339 * Makefile.in (clean): Also remove x32.c x32-linux.c
15340 x32-avx.c x32-avx-linux.c.
15341 (x32.o): New target.
15342 (x32.c): Likewise.
15343 (x32-linux.o): Likewise.
15344 (x32-linux.c): Likewise.
15345 (x32-avx.o): Likewise.
15346 (x32-avx.c): Likewise.
15347 (x32-avx-linux.o): Likewise.
15348 (x32-avx-linux.c): Likewise.
15349
15350 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15351 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15352 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15353 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15354 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15355 i386/x32-avx-linux.xml.
15356
15357 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15358 (init_registers_x32_avx_linux): Likwise.
15359 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15360 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15361
ecedbe58
PA
153622012-04-13 Pedro Alves <palves@redhat.com>
15363
15364 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15365 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15366 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15367 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15368 the sub-make.
15369
c92b5177
L
153702012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15371
15372 * linux-x86-low.c (compat_x32_clock_t): New.
15373 (compat_x32_siginfo_t): Likewise.
15374 (compat_x32_siginfo_from_siginfo): Likewise.
15375 (siginfo_from_compat_x32_siginfo): Likewise.
15376 (linux_is_elf64): Likewise.
15377 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15378 and siginfo_from_compat_x32_siginfo for x32.
15379 (x86_arch_setup): Set linux_is_elf64.
15380
214d508e
L
153812012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15382
15383 PR gdb/13969
15384 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15385 e_machine field.
15386 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15387 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15388 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15389 compatible with process.
15390
c9a1864a
YQ
153912012-04-12 Yao Qi <yao@codesourcery.com>
15392
15393 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15394 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15395 (install-only, install-info, clean): Handle sub dir gnulib.
15396 (all-lib, am--refresh): New targets.
15397 (memmem.o): Remove target.
15398 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15399 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15400 (AC_REPLACE_FUNCS): Remove memmem.
15401 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15402 (AC_OUTPUT): Generate Makefile in gnulib/.
15403 * aclocal.m4, config.in, configure: Regenerated.
15404
367ba2c2
MR
154052012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15406
15407 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15408
9d236627
PA
154092012-04-05 Pedro Alves <palves@redhat.com>
15410
15411 -Werror=strict-aliasing
15412
15413 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15414 pointer.
15415
111217b3
PA
154162012-04-04 Pedro Alves <palves@redhat.com>
15417
15418 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15419 (sparc_store_gregset_from_stack, sparc_store_gregset)
15420 (sparc_breakpoint_at): Fix formatting.
15421
8365dcf5
TJB
154222012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15423
15424 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15425 are available.
15426 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15427 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15428 * config.in: Regenerate.
15429 * configure: Likewise.
15430
689cc2ae
PA
154312012-03-29 Pedro Alves <palves@redhat.com>
15432
15433 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15434 Correct ptrace arguments.
15435
c14dfd32
PA
154362012-03-28 Pedro Alves <palves@redhat.com>
15437
15438 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15439 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15440 (IA64_FR1_REGNUM): New defines.
15441 (ia64_fetch_register): New.
15442 (the_low_target): Install it.
15443 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15444 field.
15445 * linux-low.c (linux_fetch_registers): Try the
15446 the_low_target.fetch_register hook first.
15447
15448 * linux-arm-low.c (the_low_target): Adjust.
15449 * linux-bfin-low.c (the_low_target): Adjust.
15450 * linux-cris-low.c (the_low_target): Adjust.
15451 * linux-crisv32-low.c (the_low_target): Adjust.
15452 * linux-m32r-low.c (the_low_target): Adjust.
15453 * linux-m68k-low.c (the_low_target): Adjust.
15454 * linux-mips-low.c (the_low_target): Adjust.
15455 * linux-ppc-low.c (the_low_target): Adjust.
15456 * linux-s390-low.c (the_low_target): Adjust.
15457 * linux-sh-low.c (the_low_target): Adjust.
15458 * linux-sparc-low.c (the_low_target): Adjust.
15459 * linux-tic6x-low.c (the_low_target): Adjust.
15460 * linux-x86-low.c (the_low_target): Adjust.
15461 * linux-xtensa-low.c (the_low_target): Adjust.
15462
63c88e13
PA
154632012-03-26 Pedro Alves <palves@redhat.com>
15464
15465 * server.c (handle_qxfer_libraries): Don't bail early if
15466 the_target->qxfer_libraries_svr4 is not NULL.
15467
fb723180
PA
154682012-03-26 Pedro Alves <palves@redhat.com>
15469
15470 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15471
0afae3cf
PA
154722012-03-23 Pedro Alves <palves@redhat.com>
15473
15474 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15475 "library-list-svr4" element's start tag when the the DSO list is
15476 empty.
15477
485f1ee4
PA
154782012-03-23 Pedro Alves <palves@redhat.com>
15479
15480 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15481 a variable whose type size is the same as the inferior's pointer
15482 size.
15483
a5362b9a
TS
154842012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15485
15486 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15487 struct siginfo.
15488 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15489 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15490 * linux-low.h: Include <signal.h>.
15491 (struct siginfo): Remove forward declaration.
15492 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15493 struct siginfo.
15494
d226c142
MF
154952012-03-21 Mike Frysinger <vapier@gentoo.org>
15496
15497 * .gitignore: Ignore more files.
15498
122f36ef
PA
154992012-03-19 Pedro Alves <palves@redhat.com>
15500 Jan Kratochvil <jan.kratochvil@redhat.com>
15501
15502 * server.c (cont_thread, general_thread): Add describing comments.
15503 (start_inferior): Clear `cont_thread'.
15504 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15505 of a process.
15506
fc3e5175
YQ
155072012-03-15 Yao Qi <yao@codesourcery.com>
15508
15509 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15510 handling to ...
15511 (cmd_qtdp): ... here.
15512
8d0d92cd
YQ
155132012-03-15 Yao Qi <yao@codesourcery.com>
15514
15515 * tracepoint.c (struct tracepoint_action_ops): New.
15516 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15517 (m_tracepoint_action_download): New.
15518 (r_tracepoint_action_download): New.
15519 (x_tracepoint_action_download): New.
15520 (l_tracepoint_action_download): New.
15521 (add_tracepoint_action): Install `action->ops' according type.
15522 (download_tracepoint_1): Move code `download' function pointer
15523 of various tracepoint_action_ops.
15524
87b0bb13
JK
155252012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15526
15527 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15528 linux_ptrace_attach_warnings.
15529
5f572dec
JK
155302012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15531
15532 * Makefile.in (linux-ptrace.o): New.
15533 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15534 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15535 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15536 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15537 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15538 of these targets.
15539 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15540
f4647387
YQ
155412012-03-08 Yao Qi <yao@codesourcery.com>
15542 Pedro Alves <palves@redhat.com>
15543
15544 Fix PR server/13392.
15545 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15546 offset of JMP insn.
15547 * tracepoint.c (remove_tracepoint): New.
15548 (cmd_qtdp): Call remove_tracepoint when failed to install.
15549
9b224c5e
PA
155502012-03-07 Pedro Alves <palves@redhat.com>
15551
15552 * linux-low.c (get_detach_signal): New.
15553 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15554 Pass on pending signals to PTRACE_DETACH. Check the result of the
15555 ptrace call.
15556 * server.c (program_signals, program_signals_p): New.
15557 (handle_general_set): Handle QProgramSignals.
15558 * server.h (program_signals, program_signals_p): Declare.
15559
e237a7e2
JK
155602012-03-05 Pedro Alves <palves@redhat.com>
15561 Jan Kratochvil <jan.kratochvil@redhat.com>
15562
15563 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15564 New comment why.
15565
5808517f
YQ
155662012-03-03 Yao Qi <yao@codesourcery.com>
15567
15568 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15569 agent_look_up_symbols.
15570
58b4daa5
YQ
155712012-03-03 Yao Qi <yao@codesourcery.com>
15572
15573 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15574 (linux-x86-low.o): Likewise.
15575 * server.h: Remove in_process_agent_loaded.
15576 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15577 common/agent.c.
15578 Update callers.
15579
8ffcbaaf
YQ
155802012-03-03 Yao Qi <yao@codesourcery.com>
15581
15582 * tracepoint.c (gdb_agent_capability): New global.
15583 (in_process_agent_loaded_ust): Renamed to
15584 `in_process_agent_supports_ust'.
15585 Update callers.
15586 (in_process_agent_supports_ust): Call agent_capability_check.
15587 (clear_installed_tracepoints): Assert that agent supports
15588 agent.
15589
d1feda86
YQ
155902012-03-03 Yao Qi <yao@codesourcery.com>
15591
15592 * linux-low.c (linux_supports_agent): New.
15593 (linux_target_ops): Initialize field `supports_agent' with
15594 linux_supports_agent.
15595 * target.h (struct target_ops) <supports_agent>: New.
15596 (target_supports_agent): New macro.
15597 * server.c (handle_general_set): Handle packet 'QAgent'.
15598 (handle_query): Send `QAgent+'.
15599 * Makefile.in (server.o): Depends on agent.h.
15600
2fa291ac
YQ
156012012-03-03 Yao Qi <yao@codesourcery.com>
15602
15603 * Makefile.in (OBS): Add agent.o.
15604 Add new rule for agent.o.
15605 Track dependence of tracepoint.c on agent.h.
15606 * tracepoint.c (run_inferior_command_1):
15607 (run_inferior_command): Call agent_run_command.
15608 (gdb_ust_connect_sync_socket): Deleted. Move it to
15609 common/agent.c.
15610 (resume_thread, stop_thread): Likewise.
15611 (gdb_ust_socket_init): Renamed to ...
15612 (gdb_agent_socket_init): ... New.
15613 (gdb_ust_thread): Renamed to ...
15614 (gdb_agent_helper_thread): ... New.
15615 (gdb_ust_init): Move some code to ...
15616 (gdb_agent_init): ... here. New.
15617 [HAVE_UST]: Call gdb_ust_init.
15618 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15619 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15620 * config.in, configure: Regenerated.
15621
05044653
PA
156222012-03-02 Pedro Alves <palves@redhat.com>
15623
15624 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15625 * linux-low.c (struct simple_pid_list): New.
15626 (stopped_pids): New a struct simple_pid_list pointer.
15627 (add_to_pid_list, pull_pid_from_list): New.
15628 (handle_extended_wait): Don't assume the first signal new children
15629 report is SIGSTOP. Adjust call to pull_pid_from_list.
15630 (linux_wait_for_lwp): Adjust.
15631
8d00225b
YQ
156322012-03-02 Yao Qi <yao@codesourcery.com>
15633
15634 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15635 debug log.
15636
19560ba5
YQ
156372012-03-02 Yao Qi <yao@codesourcery.com>
15638
15639 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15640 `stop_pc' and `tpoint'. Update caller.
15641
1faeff08
MR
156422012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15643
15644 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15645 * linux-low.c (use_linux_regsets): New macro.
15646 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15647 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15648 (linux_register_in_regsets): New function.
15649 (usr_fetch_inferior_registers): Skip registers covered by
15650 regsets.
15651 (usr_store_inferior_registers): Likewise.
15652 (usr_fetch_inferior_registers): New macro.
15653 (usr_store_inferior_registers): Likewise.
15654 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15655 (linux_store_registers): Likewise.
15656 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15657 prototype.
15658 (init_registers_mips64_dsp_linux): Likewise.
15659 (init_registers_mips_linux): New macro.
15660 (init_registers_mips_dsp_linux): Likewise.
15661 (mips_dsp_num_regs): Likewise.
15662 (DSP_BASE, DSP_CONTROL): New fallback macros.
15663 (mips_base_regs): New macro.
15664 (mips_regmap): Use it. Fix the size.
15665 (mips_dsp_regmap): New variable.
15666 (mips_dsp_regset_bitmap): Likewise.
15667 (mips_arch_setup): New function.
15668 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15669 than mips_regmap.
15670 (mips_cannot_store_register): Likewise.
15671 (the_low_target): Update .arch_setup, .num_regs and .regmap
15672 initializers. Add .regset_bitmap initializer.
15673 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15674 initializer.
15675 * linux-bfin-low.c (the_low_target): Likewise.
15676 * linux-cris-low.c (the_low_target): Likewise.
15677 * linux-crisv32-low.c (the_low_target): Likewise.
15678 * linux-ia64-low.c (the_low_target): Likewise.
15679 * linux-m32r-low.c (the_low_target): Likewise.
15680 * linux-m68k-low.c (the_low_target): Likewise.
15681 * linux-ppc-low.c (the_low_target): Likewise.
15682 * linux-s390-low.c (the_low_target): Likewise.
15683 * linux-sh-low.c (the_low_target): Likewise.
15684 * linux-sparc-low.c (the_low_target): Likewise.
15685 * linux-tic6x-low.c (the_low_target): Likewise.
15686 * linux-x86-low.c (the_low_target): Likewise.
15687 * linux-xtensa-low.c (the_low_target): Likewise.
15688 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15689 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15690 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15691 srv_xmlfiles.
15692 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15693 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15694
c03e6ccc
YQ
156952012-02-29 Yao Qi <yao@codesourcery.com>
15696 Pedro Alves <palves@redhat.com>
15697
15698 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15699 `step_over_finished' is true.
15700
644cebc9
PA
157012012-02-27 Pedro Alves <palves@redhat.com>
15702
15703 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15704 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15705
c14d7ab2
PA
157062012-02-27 Pedro Alves <palves@redhat.com>
15707
15708 PR server/9684
15709 * linux-low.c (pid_is_stopped): New.
15710 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15711
412c89dd
LM
157122012-02-25 Luis Machado <lgustavo@codesourcery.com>
15713
15714 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15715 of conditions.
15716
b745defe
MR
157172012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15718
15719 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15720
9f3a5c85
LM
157212012-02-24 Luis Machado <lgustavo@codesourcery>
15722
15723 * server.c (handle_query): Advertise support for target-side
15724 breakpoint condition evaluation.
15725 (process_point_options): New function.
15726 (process_serial_event): When inserting a breakpoint, check for
15727 a target-side condition that should be evaluated.
15728
15729 * mem-break.c: Include regcache.h and ax.h.
15730 (point_cond_list_t): New data structure.
15731 (breakpoint) <cond_list>: New field.
15732 (find_gdb_breakpoint_at): Make non-static.
15733 (delete_gdb_breakpoint_at): Clear any target-side
15734 conditions.
15735 (clear_gdb_breakpoint_conditions): New function.
15736 (add_condition_to_breakpoint): Likewise.
15737 (add_breakpoint_condition): Likewise.
15738 (gdb_condition_true_at_breakpoint): Likewise.
15739 (gdb_breakpoint_here): Return result directly instead
15740 of going through a local variable.
15741
15742 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15743 (clear_gdb_breakpoint_conditions): Likewise.
15744 (add_breakpoint_condition): Likewise.
15745 (gdb_condition_true_at_breakpoint): Likewise.
15746
15747 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15748 (need_step_over_p): Take target-side breakpoint condition into
15749 consideration.
15750
5e1dc496
LM
157512012-02-24 Luis Machado <lgustavo@codesourcery>
15752
15753 * server.h: Include tracepoint.h.
15754 (agent_mem_read, agent_get_trace_state_variable_value,
15755 agent_set_trace_state_variable_value,
15756 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15757 get_set_tsv_func_addr): New prototypes.
15758
15759 * ax.h: New include file.
15760 * ax.c: New source file.
15761
15762 * tracepoint.c: Include ax.h.
15763 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15764 agent_expr, eval_result_type): Move to ax.h.
15765 (parse_agent_expr): Rename to ...
15766 (gdb_parse_agent_expr): ... this, make it non-static and move
15767 to ax.h.
15768 (unparse_agent_expr) Rename to ...
15769 (gdb_unparse_agent_expr): ... this, make it non-static and move
15770 to ax.h.
15771 (eval_agent_expr): Rename to ...
15772 (eval_tracepoint_agent_expr): ... this.
15773 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15774 forward declarations.
15775 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15776 (agent_get_trace_state_variable_value): New function.
15777 (agent_set_trace_state_variable_value): New function.
15778 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15779 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15780 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15781 (condition_true_at_tracepoint): Likewise.
15782 (parse_agent_expr): Rename to ...
15783 (gdb_parse_agent_expr): ... this and move to ax.c.
15784 (unparse_agent_expr): Rename to ...
15785 (gdb_unparse_agent_expr): ... this and move to ax.c.
15786 (gdb_agent_op_name): Move to ax.c.
15787 (eval_agent_expr): Rename to ...
15788 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15789 and move to ax.c.
15790 (eval_tracepoint_agent_expr): New function.
15791 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15792 non-static.
5e1dc496
LM
15793 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15794 ax.c.
15795 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15796 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15797 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15798 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15799 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15800 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15801 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15802 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15803 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15804 (compile_bytecodes): Remove forward declaration.
15805 (is_goto_target): Move to ax.c.
15806 (compile_bytecodes): Move to ax.c and call
15807 agent_get_trace_state_variable_value (...) and
15808 agent_set_trace_state_variable_value (...).
15809
15810 * Makefile.in: Update ax.c and IPA dependencies.
15811
277e4e52
PA
158122012-02-24 Pedro Alves <palves@redhat.com>
15813
15814 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15815 (cmd_bigqtbuffer_circular): ... this. Only handle
15816 'QTBuffer:circular:'.
15817 (handle_tracepoint_general_set): Adjust.
15818
bf4c19f7
YQ
158192012-02-16 Yao Qi <yao@codesourcery.com>
15820
15821 * inferiors.c: Move code to ...
15822 * dll.c: .... here. New.
15823 * server.h: Declare clear_dlls.
15824 * Makefile.in (SFILES): Add dll.c.
15825 (OBS): Add dll.o
15826 (dll.o): New rule.
15827
d73f2619
YQ
158282012-02-11 Yao Qi <yao@codesourcery.com>
15829
15830 * server.c: (handle_monitor_command): Add a new parameter
15831 `own_buf'.
15832 (handle_query): Update caller.
15833
f8255c2a
JB
158342012-02-09 Joel Brobecker <brobecker@adacore.com>
15835
15836 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15837 * configure, config.in: Regenerate.
15838 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15839 is not defined.
15840
da84f473
PA
158412012-02-02 Pedro Alves <palves@redhat.com>
15842
15843 Try SIGKILL first, then PTRACE_KILL.
15844 * linux-low.c (linux_kill_one_lwp): New.
15845 (linux_kill_one_lwp): Rename to ...
15846 (kill_one_lwp_callback): ... this. Use the new
15847 linux_kill_one_lwp.
15848
e886a173
PA
158492012-02-02 Pedro Alves <palves@redhat.com>
15850
15851 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15852 inferior.
15853
be07f1a2
PA
158542012-01-27 Pedro Alves <palves@redhat.com>
15855
15856 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15857 (elf_64_file_p): Make static.
15858 (linux_pid_exe_is_elf_64_file): New.
15859 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15860 Delete declarations.
15861 (linux_pid_exe_is_elf_64_file): Declare.
15862 * linux-x86-low.c (x86_arch_setup): Use
15863 linux_pid_exe_is_elf_64_file.
15864
d8301ad1
JK
158652012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15866
15867 * linux-low.c (linux_wait_for_event_1): Rename to ...
15868 (linux_wait_for_event): ... here and merge it with former
15869 linux_wait_for_event - new variable wait_ptid, use it.
15870 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15871
01b17894
PA
158722012-01-23 Pedro Alves <palves@redhat.com>
15873
15874 * server.c (main): Avoid yet another case of infinite loop while
15875 detaching/killing after a longjmp.
15876
e825046f
JK
158772012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15878
15879 Code cleanup.
15880 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15881
b9e7b9c3
UW
158822012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15883
15884 * hostio.c (handle_readlink): New function.
15885 (handle_vFile): Call it to handle "vFile:readlink" packets.
15886
901f9912
UW
158872012-01-20 Pedro Alves <palves@redhat.com>
15888 Ulrich Weigand <ulrich.weigand@linaro.org>
15889
15890 * server.c (handle_v_requests): Only support vAttach and vRun to
15891 start multiple processes when in extended protocol mode.
15892
fc1ab1a0
PA
158932012-01-17 Pedro Alves <palves@redhat.com>
15894
15895 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15896 memalign plus mprotect to allocate the scratch buffer.
15897
7d5d4e98
PA
158982012-01-13 Pedro Alves <palves@redhat.com>
15899
15900 * server.c (attach_inferior): Clear `cont_thread'.
15901
f128d5e9
PA
159022012-01-13 Pedro Alves <palves@redhat.com>
15903
15904 * server.c (main): Avoid infinite loop while detaching/killing
15905 after a longjmp.
15906
06db92f0
DE
159072012-01-09 Doug Evans <dje@google.com>
15908
15909 * server.c (start_inferior): Set last_ptid in --wrapper case.
15910
32d92999
YQ
159112012-01-06 Yao Qi <yao@codesourcery.com>
15912
15913 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15914 defined.
15915 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15916
5e0a92a9
YQ
159172012-01-04 Yao Qi <yao@codesourcery.com>
15918
15919 * tracepoint.c (cmd_qtdp): Print debug message
15920 for static tracepoint.
15921
ae639e8c
YQ
159222012-01-04 Yao Qi <yao@codesourcery.com>
15923
15924 * tracepoint.c (trace_vdebug): Differentiate debug message
15925 between gdbserver and IPA.
15926
f72429c5
YQ
159272012-01-03 Yao Qi <yao@codesourcery.com>
15928
15929 * tracepoint.c (tracepoint_was_hit): Don't collect for
15930 static tracepoint.
15931
12c3e59c
JB
159322012-01-02 Joel Brobecker <brobecker@adacore.com>
15933
15934 * terminal.h: Reformat copyright header.
15935
67827812
JB
159362012-01-02 Joel Brobecker <brobecker@adacore.com>
15937
15938 * server.c (gdbserver_version): Update copyright year.
15939 * gdbreplay.c (gdbreplay_version): Likewise.
15940
3e52c33d
JK
159412011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15942
15943 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15944
15945 Revert:
15946 2011-12-18 Hui Zhu <teawater@gmail.com>
15947 * linux-low.c (linux_create_inferior): Save return value to ret.
15948
66f1260e
HZ
159492011-12-18 Hui Zhu <teawater@gmail.com>
15950
15951 * linux-low.c (linux_create_inferior): Save return value to ret.
15952
e77616d7
DE
159532011-12-16 Doug Evans <dje@google.com>
15954
e7b06c57
DE
15955 * linux-low.c (linux_create_inferior): If stdio connection,
15956 redirect stdin from /dev/null, stdout to stderr.
15957 * remote-utils.c (remote_is_stdio): New static global.
15958 (remote_connection_is_stdio): New function.
15959 (remote_prepare): Handle stdio connection.
15960 (remote_open): Ditto.
15961 (remote_close): Don't close stdin for stdio connections.
15962 (read_prim,write_prim): New functions. Replace all calls to
15963 read/write to these.
15964 * server.c (main): Watch for "-" argument. Move call to
15965 remote_prepare before start_inferior.
15966 * server.h (STDIO_CONNECTION_NAME): New macro.
15967 (remote_connection_is_stdio): Declare.
15968
e77616d7
DE
15969 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15970 in debugging output.
15971
82067193
YQ
159722011-12-15 Yao Qi <yao@codesourcery.com>
15973
15974 * tracepoint.c: Include sys/syscall.h.
15975 (gdb_ust_thread): Remove preprocessor conditional.
15976
82bfbe7e
PA
159772011-12-14 Pedro Alves <pedro@codesourcery.com>
15978
15979 * linux-low.c (linux_detach_one_lwp): Call
15980 the_low_target.prepare_to_resume before detaching.
15981
712c6575
YQ
159822011-12-14 Yao Qi <yao@codesourcery.com>
15983
15984 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15985 of write.
15986
d54d1edf
YQ
159872011-12-14 Yao Qi <yao@codesourcery.com>
15988
15989 * i386-low.c (i386_low_stopped_data_address): Initialize local
15990 variable `control'.
15991
6210a125
PA
159922011-12-13 Pedro Alves <pedro@codesourcery.com>
15993
15994 PR remote/13492
15995
15996 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15997 DR_CONTROL unless necessary. Extend comments.
15998 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15999 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16000
2ece8244
YQ
160012011-12-13 Yao Qi <yao@codesourcery.com>
16002
16003 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16004 macros.
16005 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16006
784867a5
JK
160072011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16008
16009 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16010 Print new debug message for such case.
16011
6bf36717
JK
160122011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16013
16014 Fix overlapping memcpy.
16015 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16016 the read_inferior_memory transfer.
16017 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16018 write_inferior_memory transfer.
16019 (set_fast_tracepoint_jump): New variable buf. Use it for the
16020 read_inferior_memory and write_inferior_memory transfers.
16021 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16022 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16023 Use it for the write_inferior_memory transfer.
16024 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16025 buffers.
16026
50275556
MR
160272011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16028
16029 * linux-low.c (fetch_register, store_register): Make code
16030 consistent, fix formatting.
16031
7325beb4
MR
160322011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16033
16034 * linux-low.c (usr_store_inferior_registers): Factor out code
16035 to handle individual registers into...
16036 (store_register): ... this new function.
16037
c642a434
UW
160382011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16039
16040 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16041 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16042 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16043 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16044 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16045 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16046 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16047 (srv_xmlfiles): Add new XML files.
16048
16049 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16050 and <sys/uio.h>.
16051 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16052 (init_registers_s390_linux32v1): Add prototype.
16053 (init_registers_s390_linux32v2): Likewise.
16054 (init_registers_s390_linux64v1): Likewise.
16055 (init_registers_s390_linux64v2): Likewise.
16056 (init_registers_s390x_linux64v1): Likewise.
16057 (init_registers_s390x_linux64v2): Likewise.
16058 (s390_num_regs): Increment to 52.
16059 (s390_regmap): Add orig_r2 register.
16060 (s390_num_regs_3264): Increment to 68.
16061 (s390_regmap_3264): Add orig_r2 register.
16062 (s390_collect_ptrace_register): Handle orig_r2 register.
16063 (s390_supply_ptrace_register): Likewise.
16064 (s390_fill_last_break): New function.
16065 (s390_store_last_break): Likewise.
16066 (s390_fill_system_call): New function.
16067 (s390_store_system_call): Likewise.
16068 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16069 register sets.
16070 (s390_check_regset): New function.
16071 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16072 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16073 Update target_regsets for available register sets.
16074
2268b414
JK
160752011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16076 Jan Kratochvil <jan.kratochvil@redhat.com>
16077
16078 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16079 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16080 New.
16081 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16082 * linux-low.h (struct process_info_private): New member r_debug.
16083 * server.c (handle_qxfer_libraries): Call
16084 the_target->qxfer_libraries_svr4.
16085 (handle_qxfer_libraries_svr4): New function.
16086 (qxfer_packets): New entry "libraries-svr4".
16087 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16088 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16089 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16090 PACKET_qXfer_libraries_svr4.
16091
d6db1fab
UW
160922011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16093
16094 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16095 PSW address/mask between 8-byte and 16-byte formats.
16096 (s390_supply_ptrace_register): Likewise.
16097 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16098 basic addressing mode bit.
16099
242f5f1c
SS
161002011-11-24 Stan Shebs <stan@codesourcery.com>
16101
16102 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16103
f196051f
SS
161042011-11-17 Stan Shebs <stan@codesourcery.com>
16105
16106 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16107 (tracing_start_time): New global.
16108 (tracing_stop_time): New global.
16109 (tracing_user_name): New global.
16110 (tracing_notes): New global.
16111 (tracing_stop_note): New global.
16112 (cmd_qtstart): Set traceframe_usage, start_time.
16113 (stop_tracing): Set stop_time.
16114 (cmd_qtstatus): Report additional status.
16115 (cmd_qtp): New function.
16116 (handle_tracepoint_query): Call it.
16117 (cmd_qtnotes): New function.
16118 (handle_tracepoint_general_set): Call it.
16119 (get_timestamp): Rename from tsv_get_timestamp.
16120
405f8e94
SS
161212011-11-14 Stan Shebs <stan@codesourcery.com>
16122 Kwok Cheung Yeung <kcy@codesourcery.com>
16123
16124 * linux-x86-low.c (small_jump_insn): New.
16125 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16126 trampoline and error message, build a trampoline and issue a small
16127 jump instruction to it.
16128 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16129 trampoline and error message.
16130 (x86_get_min_fast_tracepoint_insn_len): New.
16131 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16132 * linux-low.h (struct linux_target_ops): Add arguments to
16133 install_fast_tracepoint_jump_pad operation, add new operation.
16134 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16135 arguments.
16136 (linux_get_min_fast_tracepoint_insn_len): New function.
16137 (linux_target_op): Add new operation.
16138 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16139 (gdb_trampoline_buffer_end): Ditto.
16140 (gdb_trampoline_buffer_error): Ditto.
16141 (struct ipa_sym_addresses): Add fields for new IPA variables.
16142 (symbol_list): Add entries for new IPA variables.
16143 (struct tracepoint): Add fields to hold the address range of the
16144 trampoline used by the tracepoint.
16145 (trampoline_buffer_head): New static variable.
16146 (trampoline_buffer_tail): Ditto.
16147 (claim_trampoline_space): New function.
16148 (have_fast_tracepoint_trampoline_buffer): New function.
16149 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16150 structure.
16151 (install_fast_tracepoint): Ditto, also add error buffer argument.
16152 (cmd_qtminftpilen): New function.
16153 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16154 (fast_tracepoint_from_trampoline_address): New function.
16155 (fast_tracepoint_collecting): Handle trampoline as part of jump
16156 pad space.
16157 (set_trampoline_buffer_space): New function.
16158 (initialize_tracepoint): Initialize new IPA variables.
16159 * target.h (struct target_ops): Add arguments to
16160 install_fast_tracepoint_jump_pad operation, add new
16161 get_min_fast_tracepoint_insn_len operation.
16162 (target_get_min_fast_tracepoint_insn_len): New.
16163 (install_fast_tracepoint_jump_pad): Add arguments.
16164 * server.h (IPA_BUFSIZ): Define.
16165 * linux-i386-ipa.c: Include extra header files.
16166 (initialize_fast_tracepoint_trampoline_buffer): New function.
16167 (initialize_low_tracepoint): Call it.
16168 * server.h (set_trampoline_buffer_space): Declare.
16169 (claim_trampoline_space): Ditto.
16170 (have_fast_tracepoint_trampoline_buffer): Ditto.
16171
1e4d1764
YQ
161722011-11-14 Yao Qi <yao@codesourcery.com>
16173
16174 * server.c (handle_query): Handle InstallInTrace for qSupported.
16175 * tracepoint.c (add_tracepoint): Sort list.
16176 (install_tracepoint, download_tracepoint): New.
16177 (cmd_qtdp): Call them to install and download tracepoints.
16178 (sort_tracepoints): Removed.
16179 (cmd_qtstart): Update.
16180
5c73ff4e
YQ
161812011-11-14 Yao Qi <yao@codesourcery.com>
16182
16183 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16184 * mem-break.h: Declare.
16185 * tracepoint.c (cmd_qtstart): Move some code to ...
16186 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16187 New.
16188 (download_tracepoints): Move some code to ...
16189 (download_tracepoint_1): ... here. New.
16190
86a30030
YQ
161912011-11-08 Yao Qi <yao@codesourcery.com>
16192
16193 * remote-utils.c (relocate_instruction): A comment fix.
16194
8d26e50c
JB
161952011-11-07 Joel Brobecker <brobecker@adacore.com>
16196
16197 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16198 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16199 dr_status_mirror and dr_control_mirror from debug_reg_state.
16200 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16201 (i386_initial_stuff): Remove use of deleted globals.
16202 (i386_get_thread_context, i386_set_thread_context,
16203 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16204 from debug_reg_state.
16205
a59306a3
YQ
162062011-11-05 Yao Qi <yao@codesourcery.com>
16207
16208 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16209 address as TPOINT's.
16210
3065dfb6
SS
162112011-11-02 Stan Shebs <stan@codesourcery.com>
16212
16213 * tracepoint.c (agent_mem_read_string): New function.
16214 (eval_agent_expr): Call it for tracenz.
16215 * server.c (handle_query): Report support for tracenz.
16216
fd0d8c7c
YQ
162172011-11-02 Yao Qi <yao@codesourcery.com>
16218
16219 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16220
609086b1
YQ
162212011-11-02 Yao Qi <yao@codesourcery.com>
16222
16223 * target.h: Fix a typo in comment.
16224
b9fd1791
PA
162252011-10-31 Pedro Alves <pedro@codesourcery.com>
16226
16227 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16228 clobber the breakpoints' shadows with fast tracepoint jumps.
16229 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16230 * target.c (write_inferior_memory): Also pass MYADDR down to
16231 check_mem_write.
16232
03583c20
UW
162332011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16234
16235 * configure.ac: Check support for personality routine.
16236 * configure: Regenerate.
16237 * config.in: Likewise.
16238 * linux-low.c: Include <sys/personality.h>.
16239 Define ADDR_NO_RANDOMIZE if necessary.
16240 (linux_create_inferior): Disable address space randomization when
16241 forking inferior, if requested.
16242 (linux_supports_disable_randomization): New function.
16243 (linux_target_ops): Install it.
16244 * server.h (disable_randomization): Declare.
16245 * server.c (disable_randomization): New global variable.
16246 (handle_general_set): Handle QDisableRandomization.
16247 (handle_query): Likewise for qSupported.
16248 (main): Support --disable-randomization and --no-disable-randomization
16249 command line arguments.
16250 * target.h (struct target_ops): Add supports_disable_randomization.
16251 (target_supports_disable_randomization): New macro.
16252
723b724b
MF
162532011-09-29 Mike Frysinger <vapier@gentoo.org>
16254
16255 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16256 ifdef check.
16257 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16258 [!PT_GETDSBT] (target_loadmap): New definition.
16259 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16260 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16261 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16262 and PT_GETDSBT to LINUX_LOADMAP.
16263 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16264 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16265
55329a5c 162662011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16267
16268 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16269 (arm_linux_hwbp_cap): New static variable.
16270 (arm_linux_get_hwbp_cap): Replace by ...
16271 (arm_linux_init_hwbp_cap): ... this new function.
16272 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16273 (arm_linux_get_hw_watchpoint_count): Likewise.
16274 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16275 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16276 (arm_prepare_to_resume): Use perror_with_name instead of error.
16277
55329a5c 162782011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16279
16280 * linux-arm-low.c: Include <signal.h>.
16281 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16282 (struct arm_linux_hwbp_cap): New data type.
16283 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16284 (struct arm_linux_hw_breakpoint): New data type.
16285 (MAX_BPTS, MAX_WPTS): Define.
16286 (struct arch_process_info, struct arch_lwp_info): New data types.
16287 (arm_linux_get_hwbp_cap): New function.
16288 (arm_linux_get_hw_breakpoint_count): Likewise.
16289 (arm_linux_get_hw_watchpoint_count): Likewise.
16290 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16291 (arm_hwbp_control_initialize): Likewise.
16292 (arm_hwbp_control_is_enabled): Likewise.
16293 (arm_hwbp_control_is_initialized): Likewise.
16294 (arm_hwbp_control_disable): Likewise.
16295 (arm_linux_hw_breakpoint_equal): Likewise.
16296 (arm_linux_hw_point_initialize): Likewise.
16297 (struct update_registers_data): New data structure.
16298 (update_registers_callback: New function.
16299 (arm_insert_point): Likewise.
16300 (arm_remove_point): Likewise.
16301 (arm_stopped_by_watchpoint): Likewise.
16302 (arm_stopped_data_address): Likewise.
16303 (arm_new_process): Likewise.
16304 (arm_new_thread): Likewise.
16305 (arm_prepare_to_resume): Likewise.
16306 (the_low_target): Register arm_insert_point, arm_remove_point,
16307 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16308 arm_new_thread, and arm_prepare_to_resume.
16309
6b9801d4
SS
163102011-09-15 Stan Shebs <stan@codesourcery.com>
16311
16312 * server.h (struct emit_ops): Add compare-goto fields.
16313 * tracepoint.c (gdb_agent_op_sizes): New table.
16314 (emit_eq_goto): New function.
16315 (emit_ne_goto): New function.
16316 (emit_lt_goto): New function.
16317 (emit_le_goto): New function.
16318 (emit_gt_goto): New function.
16319 (emit_ge_goto): New function.
16320 (is_goto_target): New function.
16321 (compile_bytecodes): Recognize special cases of compare-goto
16322 combinations and call specialized emitters for them.
16323 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16324 (amd64_emit_ne_goto): New function.
16325 (amd64_emit_lt_goto): New function.
16326 (amd64_emit_le_goto): New function.
16327 (amd64_emit_gt_goto): New function.
16328 (amd64_emit_ge_goto): New function.
16329 (amd64_emit_ops): Add the new functions.
16330 (i386_emit_eq_goto): New function.
16331 (i386_emit_ne_goto): New function.
16332 (i386_emit_lt_goto): New function.
16333 (i386_emit_le_goto): New function.
16334 (i386_emit_gt_goto): New function.
16335 (i386_emit_ge_goto): New function.
16336 (i386_emit_ops): Add the new functions.
16337
bf15cbda
SS
163382011-09-08 Stan Shebs <stan@codesourcery.com>
16339
16340 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16341 (i386_emit_epilogue): Restore %ebx.
16342
943ca1dd
JZ
163432011-08-31 Jie Zhang <jzhang918@gmail.com>
16344
16345 * server.c (step_thread): Remove definition.
16346 (process_serial_event): Don't handle Hs.
16347 * server.h (step_thread): Remove declaration.
16348 * target.c (set_desired_inferior): Remove use of step_thread.
16349
e3deef73
LM
163502011-08-24 Luis Machado <lgustavo@codesourcery.com>
16351
16352 * linux-low.c: Include linux-procfs.h.
16353 (linux_attach_lwp_1): Update comments.
16354 (linux_attach): Scan for existing threads when attaching to a
16355 process that is the tgid.
16356 * Makefile.in: Update dependencies.
16357
13da1c97
LM
163582011-08-24 Luis Machado <lgustavo@codesourcery.com>
16359
16360 * configure.srv: Add linux-procfs.o dependencies.
16361
881127c9
YQ
163622011-08-14 Yao Qi <yao@codesourcery.com>
16363
16364 * target.h (struct target_ops): Fix indent.
16365 * win32-low.c (win32_target_ops): Fix comment.
16366
58dbd541
YQ
163672011-08-14 Andrew Jenner <andrew@codesourcery.com>
16368 Yao Qi <yao@codesourcery.com>
16369
16370 * Makefile.in (clean): Remove tic6x-*.c files.
16371 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16372 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16373 (tic6x-c64xp-linux.c): Likewise.
16374 * configure.srv: Add support for tic6x-*-uclinux.
16375 * linux-tic6x-low.c: New.
16376 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16377
78d85199
YQ
163782011-08-14 Andrew Stubbs <ams@codesourcery.com>
16379 Yao Qi <yao@codesourcery.com>
16380
16381 * target.h (struct target_ops): Add read_loadmap.
16382 * linux-low.c (struct target_loadseg): New type.
16383 (struct target_loadmap): New type.
16384 (linux_read_loadmap): New function.
16385 (linux_target_ops): Add linux_read_loadmap.
16386 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16387 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16388 to NULL.
78d85199 16389
a959a88d
EZ
163902011-08-05 Eli Zaretskii <eliz@gnu.org>
16391
16392 * win32-low.c: Include <stdint.h>.
16393
1ced966e
PA
163942011-07-22 Pedro Alves <pedro@codesourcery.com>
16395
16396 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16397 to the inferior here.
16398 (i386_remove_aligned_watchpoint): Ditto.
16399 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16400 fit part of the watchpoint in the debug registers.
16401 (i386_update_inferior_debug_regs): New.
16402 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16403 registers, and only update the inferior on success.
16404 (i386_low_remove_watchpoint): Ditto.
16405
d26e3629
KY
164062011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16407
16408 * linux-low.c (compare_ints, unique, list_threads, show_process,
16409 linux_core_of_thread): Delete.
16410 (linux_target_ops): Change linux_core_of_thread to
16411 linux_common_core_of_thread.
16412 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16413 * utils.c (malloc_failure): Change type of argument.
16414 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16415 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16416 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16417 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16418 (IPA_OBJS): Add common-utils-ipa.o.
16419 (ptid_h, linux_osdata_h): New macros.
16420 (server_h): Add common/common-utils.h, common/xml-utils.h,
16421 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16422 common/ptid.h.
16423 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16424 ptid.o, buffer.o): New rules.
16425 (linux-low.o): Add common/linux-osdata.h as a dependency.
16426 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16427 * configure.ac: Add AC_HEADER_DIRENT check.
16428 * config.in: Regenerate.
16429 * configure: Regenerate.
16430 * remote-utils.c (xml_escape_text): Delete.
16431 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16432 buffer_xml_printf): Move to common/buffer.c.
16433 * server.c (main): Remove call to initialize_inferiors.
16434 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16435 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16436 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16437 internal_error, gdb_assert, gdb_assert_fail): Delete.
16438 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16439 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16440 common/buffer.h.
16441 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16442 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16443 initialize_inferiors): Delete.
16444
2275a1a7
PA
164452011-07-20 Pedro Alves <pedro@codesourcery.com>
16446
16447 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16448 symbol error.
16449
0a5b1e09
PA
164502011-05-31 Pedro Alves <pedro@codesourcery.com>
16451
16452 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16453 assertion.
16454 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16455
6938fd34
YQ
164562011-05-26 Yao Qi <yao@codesourcery.com>
16457
16458 * Makefile.in (thread-db.o): Track dependence to
16459 common/gdb_thread_db.h.
16460 * thread-db.c: include gdb_thread_db.h from right place.
16461
b481f9e0
TT
164622011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16463
16464 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16465 __FILE__ and __LINE__ to internal_error.
16466
98a5dd13
DE
164672011-05-13 Doug Evans <dje@google.com>
16468
16469 * thread-db.c (try_thread_db_load_from_sdir): New function.
16470 (try_thread_db_load_from_dir): New function.
16471 (thread_db_load_search): Handle $sdir, ignore $pdir.
16472 Remove trying of system directories if search of
16473 libthread-db-search-path fails, that is now done via $sdir.
16474
d248b706
KY
164752011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16476
16477 * server.c (handle_query): Add EnableDisableTracepoints to the list
16478 of supported features.
43aaf8b6 16479 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16480 tracepoints.
43aaf8b6
PA
16481 (cmd_qtenable_disable): New.
16482 (cmd_qtstart): Install tracepoints even if disabled.
16483 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16484 receiving a QTEnable or QTDisable packet.
16485 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16486 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16487 tracepoints.
16488 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16489
84e578fb
DE
164902011-05-10 Doug Evans <dje@google.com>
16491
16492 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16493
71f55dd8
DE
164942011-05-04 Doug Evans <dje@google.com>
16495
16496 * linux-low.c (linux_join): Skip process lookup.
16497 * spu-low.c (spu_join): Ditto.
16498 * server.c (join_inferiors_callback): Delete.
16499 (process_serial_event): For 'D' packet (detach) call join_inferior
16500 directly.
16501
4d393d60
JM
165022011-05-04 Joseph Myers <joseph@codesourcery.com>
16503
16504 * README: Don't mention xscale*-*-linux*.
16505 * configure.srv (xscale*-*-linux*): Don't handle target.
16506
b00ad6ff
NF
165072011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16508
16509 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16510 casting pointers.
16511 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16512 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16513 (i386_emit_void_call_2): Likewise.
16514
af96c192
YQ
165152011-04-26 Yao Qi <yao@codesourcery.com>
16516
43aaf8b6
PA
16517 * linux-low.c: Move common macros to linux-ptrace.h.
16518 Include linux-ptrace.h.
af96c192
YQ
16519 * Makefile.in (linux_ptrace_h): New.
16520 (linux-low.o): Depends on linux-ptrace.h.
16521
03f2bd59
JK
165222011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16523
16524 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16525 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16526 (remote_prepare): New function with most of the TCP code from ...
16527 (remote_open): ... here. Detect PORT here unconditionally. Move also
16528 setting transport_is_reliable.
16529 * server.c (run_once): New variable.
16530 (gdbserver_usage): Document it.
16531 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16532 the first run if RUN_ONCE.
16533 * server.h (run_once, remote_prepare): New declarations.
16534
7a9dd1b2
TT
165352011-04-19 Tom Tromey <tromey@redhat.com>
16536
16537 * win32-low.c (handle_load_dll): Remove duplicate "the".
16538
81239425
PM
165392011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16540
16541 Remove support for old Cygwin 1.5 versions.
16542 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16543 function to avoid warning.
16544 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16545 warning.
16546
9e0627f1
PM
165472011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16548
16549 * gdbserver/server.h (Macro _): Define it if not available.
16550
588eebee
MS
165512011-03-14 Michael Snyder <msnyder@vmware.com>
16552
348af9f7 16553 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16554
43f70d4c
JB
165552011-03-10 Joel Brobecker <brobecker@adacore.com>
16556
16557 * Makefile.in (maintainer-clean realclean distclean): Remove
16558 "make ... subdir_do" command.
16559
348af9f7
MS
165602011-03-10 Michael Snyder <msnyder@vmware.com>
16561
16562 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16563
16564 * server.c (handle_v_run): Free alloced buffer on early return.
16565
e637a4f5
YQ
165662011-03-09 Yao Qi <yao@codesourcery.com>
16567
16568 Revert:
16569 2011-03-04 Yao Qi <yao@codesourcery.com>
16570
16571 * Makefile.in: Remove GNU make feature --directory.
16572
16573 2011-03-05 Yao Qi <yao@codesourcery.com>
16574
16575 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16576 (subdir_do): New make target. Copied from gdb/Makefile.
16577 (maintainer-clean, realclean, distclean, clean): Call corresponding
16578 make targets in common/Makefile.
16579
16580 2011-02-11 Yao Qi <yao@codesourcery.com>
16581
16582 * configure.ac: Call AC_PROG_RANLIB.
16583 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16584 * configure: Regenerate.
16585
e6edda56
JK
165862011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16587
16588 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16589
e5141119
JB
165902011-03-06 Yao Qi <yao@codesourcery.com>
16591
16592 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16593
64794aa4
JB
165942011-03-05 Yao Qi <yao@codesourcery.com>
16595
16596 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16597 (subdir_do): New make target. Copied from gdb/Makefile.
16598 (maintainer-clean, realclean, distclean, clean): Call corresponding
16599 make targets in common/Makefile.
16600
7a762829
YQ
166012011-03-04 Yao Qi <yao@codesourcery.com>
16602
16603 * Makefile.in: Remove GNU make feature --directory.
16604
348af9f7
MS
166052011-03-04 Michael Snyder <msnyder@vmware.com>
16606
16607 * server.c (queue_stop_reply): Call xmalloc not malloc.
16608
166092011-03-02 Michael Snyder <msnyder@vmware.com>
16610
16611 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16612
9f72fee2
MS
166132011-02-28 Michael Snyder <msnyder@vmware.com>
16614
588eebee
MS
16615 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16616 (cmd_qtframe): Ditto.
16617 (cmd_qtbuffer): Ditto.
16618 (cmd_bigqtbuffer): Ditto.
16619
9f72fee2
MS
16620 * utils.c (decimal2str): Initialize 'width' to nine, then
16621 don't mess with it.
16622
8040bd49
UW
166232011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16624
16625 * hostio.c (require_data): Free *data, not data.
16626
7e52cbd0
JK
166272011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16628
16629 * hostio.c (require_data): Use free, not xfree.
16630
9130f83e
MS
166312011-02-27 Michael Snyder <msnyder@vmware.com>
16632
4b812f4e
MS
16633 * server.c (handle_query): Discard unused value.
16634
9130f83e
MS
16635 * hostio.c (require_data): Free malloc memory before returning
16636 error.
16637
69d37113
MS
166382011-02-26 Michael Snyder <msnyder@vmware.com>
16639
16640 * linux-low.c (list_threads): Call closedir for dirent.
16641
35f5825a
MS
166422011-02-27 Michael Snyder <msnyder@vmware.com>
16643
2a589cef
MS
16644 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16645 a case statement falls through.
16646
0adea5f7
MS
16647 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16648
35f5825a
MS
16649 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16650 in comparison.
16651
238f1c74
MS
166522011-02-26 Michael Snyder <msnyder@vmware.com>
16653
16654 * utils.c (decimal2str): Eliminate dead code and dead param.
16655 (pulongest): Drop dead param from call to decimal2str.
16656 (plongest): Ditto.
16657
633ff500
JB
166582011-02-24 Joel Brobecker <brobecker@adacore.com>
16659
16660 Revert the following patch (not approved yet):
16661 2011-02-21 Hui Zhu <teawater@gmail.com>
16662 * tracepoint.c (tp_printf): New function.
16663 (eval_agent_expr): Handle gdb_agent_op_printf.
16664
f9c6ff72
HZ
166652011-02-21 Hui Zhu <teawater@gmail.com>
16666
16667 * tracepoint.c (tp_printf): New function.
16668 (eval_agent_expr): Handle gdb_agent_op_printf.
16669
94d5e490
TT
166702011-02-18 Tom Tromey <tromey@redhat.com>
16671
16672 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16673 (tracepoint.o): Likewise.
16674 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16675 (gdb_agent_op_names): Likewise.
16676
c7f96d2b
TT
166772011-02-18 Tom Tromey <tromey@redhat.com>
16678
16679 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16680 gdb_agent_op_rot>: New constants.
16681 (gdb_agent_op_names): Add pick and roll.
16682 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16683 cases.
16684
0feedb2c
JK
166852011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16686
16687 * aclocal.m4: Regenerated with aclocal-1.11.1.
16688
b3b9301e
PA
166892011-02-14 Pedro Alves <pedro@codesourcery.com>
16690
16691 * server.c (handle_qxfer_traceframe_info): New.
16692 (qxfer_packets): Register "traceframe-info".
16693 (handle_query): Report support for qXfer:traceframe-info:read+.
16694 * tracepoint.c (match_blocktype): New.
16695 (traceframe_find_block_type): Rename to ...
16696 (traceframe_walk_blocks): ... this. Add callback filter argument,
16697 and use it.
16698 (traceframe_find_block_type): New, reimplemented on top of
16699 traceframe_walk_blocks.
16700 (build_traceframe_info_xml): New.
16701 (traceframe_read_info): New.
16702 * server.h (traceframe_read_info): Declare.
16703
4f3e6fb7
YQ
167042011-02-11 Yao Qi <yao@codesourcery.com>
16705
16706 * configure.ac: Call AC_PROG_RANLIB.
16707 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16708 * configure: Regenerate.
16709
764880b7
PA
167102011-02-07 Pedro Alves <pedro@codesourcery.com>
16711
16712 * server.c (gdb_read_memory): Change return semantics to allow
16713 partial transfers.
16714 (handle_search_memory_1): Adjust.
16715 (process_serial_event) <'m' packet>: Handle partial transfers.
16716 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16717
1c79eb8a
PA
167182011-01-28 Pedro Alves <pedro@codesourcery.com>
16719
16720 * regcache.c (init_register_cache): Initialize
16721 regcache->register_status.
16722 (free_register_cache): Release regcache->register_status.
16723 (regcache_cpy): Copy register_status.
16724 (registers_to_string): Print 'x's for unavailable registers.
16725 (supply_register): Mark the register's status valid or
16726 unavailable, depending on whether a buffer was passed in or not.
16727 (supply_register_zeroed): New.
16728 (supply_regblock): Mark the registers' status valid or
16729 unavailable, depending on whether a buffer was passed in or not.
16730 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16731 (struct regcache): New `register_status' field.
16732 (supply_register_zeroed): Declare.
16733 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16734 supply_register_zeroed, rather than passing a NULL buffer to
16735 supply_register.
16736 * tracepoint.c (fetch_traceframe_registers): Update comment.
16737
85724a0e
PA
167382011-01-28 Pedro Alves <pedro@codesourcery.com>
16739
16740 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16741 buffer explicit.
16742
d08aafef
PA
167432011-01-25 Pedro Alves <pedro@codesourcery.com>
16744
16745 * server.h (decode_xfer_write): Change prototype.
16746 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16747 and don't extract the annex here.
16748 * server.c (decode_xfer_read): Remove `annex' parameter,
16749 and don't extract the annex here.
16750 (decode_xfer): New.
16751 (struct qxfer): New.
16752 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16753 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16754 (handle_qxfer_statictrace): New functions, abstracted out from
16755 handle_query, and made to use the struct qxfer interface.
16756 (handle_threads_qxfer_proper): Rename to ...
16757 (handle_qxfer_threads_proper): ... this.
16758 (handle_threads_qxfer): Rename to ...
16759 (handle_qxfer_threads): ... this. Adjust.
16760 (qxfer_packets): New array.
16761 (handle_qxfer): New function.
16762 (handle_query): Use handle_qxfer.
16763
493e2a69
MS
167642011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16765
16766 * gdbreplay.c: Shorten lines of >= 80 columns.
16767 * linux-low.c: Ditto.
16768 * linux-ppc-low.c: Ditto.
16769 * linux-s390-low.c: Ditto.
16770 * linux-sparc-low.c: Ditto.
16771 * linux-x86-low.c: Ditto.
16772 * linux-xtensa-low.c: Ditto.
16773 * mem-break.c: Ditto.
16774 * nto-low.c: Ditto.
16775 * regcache.h: Ditto.
16776 * remote-utils.c: Ditto.
16777 * server.c: Ditto.
16778 * server.h: Ditto.
16779 * thread-db.c: Ditto.
16780 * tracepoint.c: Ditto.
16781 * utils.c: Ditto.
16782 * win32-low.h: Ditto.
16783
44944448
JB
167842011-01-05 Joel Brobecker <brobecker@adacore.com>
16785
16786 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16787 update.
16788
71ce852c
JB
167892011-01-01 Joel Brobecker <brobecker@adacore.com>
16790
16791 * server.c (gdbserver_version): Update copyright year in version
16792 output.
16793 * gdbreplay.c (gdbreplay_version): Ditto.
16794
eb826dc6
MF
167952010-12-29 Jie Zhang <jie.zhang@analog.com>
16796
16797 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16798 * linux-bfin-low.c: New file.
16799 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16800 PT_DATA_ADDR for BFIN targets.
16801 * Makefile.in (SFILES): Add linux-bfin-low.c.
16802 (clean): Remove reg-bfin.c.
16803 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16804 * README: Mention supported Blackfin targets.
16805
39ab222a
MF
168062010-12-23 Mike Frysinger <vapier@gentoo.org>
16807
16808 * .gitignore: New file.
16809
a1f2ce7d
MF
168102010-11-16 Mike Frysinger <vapier@gentoo.org>
16811
16812 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16813
f474844c
JZ
168142010-10-22 Jie Zhang <jie@codesourcery.com>
16815
16816 * Makefile.in: Add FLAGS_TO_PASS variable.
16817 (install): Remove dependency of install-only and recursively
16818 invoke make for install-only.
16819
f1048712
DE
168202010-10-04 Doug Evans <dje@google.com>
16821
16822 * Makefile.in (uninstall): Use $(DESTDIR).
16823
b53a1623
PA
168242010-09-24 Pedro Alves <pedro@codesourcery.com>
16825
e6ee044d
PA
16826 PR gdb/11842
16827
b53a1623
PA
16828 * linux-x86-low.c (compat_siginfo_from_siginfo)
16829 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16830 si_code is < 0. Check for si_code == SI_TIMER before checking for
16831 si_code < 0.
16832
fa1bd1e4
JB
168332010-09-13 Joel Brobecker <brobecker@adacore.com>
16834
16835 * lynx-i386-low.c: New file.
16836 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16837
47fac8f8
JB
168382010-09-13 Joel Brobecker <brobecker@adacore.com>
16839
16840 * lynx-low.c (ptrace_request_to_str): Remove handling for
16841 request values that have been removed in LynxOS 5.x.
16842
1adfc54d
JB
168432010-09-13 Joel Brobecker <brobecker@adacore.com>
16844
16845 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16846 <ptrace.h>
16847
c2a66c29
NS
168482010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16849
16850 * configure.ac: Add --enable-inprocess-agent option.
16851 * configure: Rebuilt.
16852
32fcada3
YQ
168532010-09-06 Yao Qi <yao@codesourcery.com>
16854
16855 * linux-low.c (linux_kill): Remove unused variable.
16856 (linux_stabilize_threads): Likewise.
16857 * server.c (start_inferior): Likewise.
16858 (queue_stop_reply_callback): Likewise.
16859 * tracepoint.c (do_action_at_tracepoint): Likewise.
16860
0cccb683
YQ
168612010-09-06 Yao Qi <yao@codesourcery.com>
16862
16863 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16864 on return.
16865
423ec54c
JK
168662010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16867
16868 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16869
12ac6819
PA
168702010-09-06 Pedro Alves <pedro@codesourcery.com>
16871
16872 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16873 "$(IPA_DEPFILES)".
16874
8ed54b31
JB
168752010-09-01 Joel Brobecker <brobecker@adacore.com>
16876
16877 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16878 gdbserver/lynx-ppc-low.c: New files.
16879 * Makefile.in (lynx_low_h): New variable.
16880 (lynx-low.o, lynx-ppc-low.o): New rules.
16881 * configure.ac: On LynxOS, link with -lnetinet.
16882 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16883 * configure: regenerate.
16884
bb0116a4
JB
168852010-09-01 Joel Brobecker <brobecker@adacore.com>
16886
16887 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16888 * configure.ac: Add check for vasprintf and vsnprintf.
16889 * configure, config.in: Regenerate.
16890 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16891
a778ab81 168922010-09-01 Joel Brobecker <brobecker@adacore.com>
16893
16894 * gdbreplay.c: Move include of alloca.h up, next to include of
16895 malloc.h.
16896 * server.h: Add include of malloc.h.
16897 * mem-break.c: Remove include of malloc.h.
16898 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16899
8b034a19 169002010-09-01 Joel Brobecker <brobecker@adacore.com>
16901
16902 * Makefile.in (memmem.o): Build with -Wno-error.
16903
169042010-09-01 Joel Brobecker <brobecker@adacore.com>
16905
16906 * utils.c (xsnprintf): Make non-static.
16907 * server.h: Add xsnprintf declaration.
16908 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16909 replace calls to snprintf by calls to xsnprintf throughout.
16910
169112010-09-01 Joel Brobecker <brobecker@adacore.com>
16912
16913 * configure.ac: Add configure check for alloca.
16914 * configure, config.in: Regenerate.
16915 * server.h: Include alloca.h if it exists.
16916 * gdbreplay.c: Include alloca.h if it exists.
16917
1a981360
PA
169182010-08-28 Pedro Alves <pedro@codesourcery.com>
16919
16920 * linux-low.c (__SIGRTMIN): Define if not already defined.
16921 (linux_create_inferior): Check for __ANDROID__ rather than
16922 __SIGRTMIN.
16923 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16924 are already deferred.
16925 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16926 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16927 stopped and already has a pending signal to report.
16928 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16929 a pending signal to report or is moving out of a jump pad.
16930 (linux_init_signals): Check for __ANDROID__ rather than
16931 __SIGRTMIN.
16932
b4d51a55
PA
169332010-08-28 Pedro Alves <pedro@codesourcery.com>
16934
16935 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16936 debug_threads check. Avoid a linear search when not doing debug
16937 output.
16938
ec48365d
PA
169392010-08-27 Pedro Alves <pedro@codesourcery.com>
16940
16941 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16942 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16943 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16944 (process_event): Change local fd's type to gdb_fildes_t.
16945 (create_file_handler): Adjust prototype.
16946 (delete_file_handler): Adjust prototype.
16947 (handle_file_event): Adjust prototype. Use pfildes.
16948 (create_file_event): Adjsut prototype.
16949 * remote-utils.c (remote_desc, listen_desc): Change type to
16950 gdb_fildes_t.
16951 * server.h: New gdb_fildes_t typedef.
16952 [USE_WIN32API]: Include winsock2.h.
16953 (delete_file_handler, add_file_handler): Adjust prototypes.
16954 (pfildes): Declare.
16955 * utils.c (pfildes): New.
16956
854d88f0
PA
169572010-08-27 Pedro Alves <pedro@codesourcery.com>
16958
16959 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16960 * configure: Regenerate.
16961
0146f85b
PA
169622010-08-27 Pedro Alves <pedro@codesourcery.com>
16963
16964 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16965 (linux_done_accessing_memory): ... this.
16966 (linux_target_ops): Adjust.
16967 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16968 * nto-low.c (nto_target_ops): Adjust comment.
16969 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16970 * spu-low.c (spu_target_ops): Adjust comment.
16971 * target.h (target_ops): Rename unprepare_to_access_memory field
16972 to done_accessing_memory.
16973 (unprepare_to_access_memory): Rename to ...
16974 (done_accessing_memory): ... this.
16975
90d74c30
PA
169762010-08-26 Pedro Alves <pedro@codesourcery.com>
16977
16978 * linux-low.c (linux_prepare_to_access_memory): New.
16979 (linux_unprepare_to_access_memory): New.
16980 (linux_target_ops): Install them.
16981 * server.c (read_memory): Rename to ...
16982 (gdb_read_memory): ... this. Use
16983 prepare_to_access_memory/prepare_to_access_memory.
16984 (write_memory): Rename to ...
16985 (gdb_write_memory): ... this. Use
16986 prepare_to_access_memory/prepare_to_access_memory.
16987 (handle_search_memory_1): Adjust.
16988 (process_serial_event): Adjust.
16989 * target.h (struct target_ops): New fields
16990 prepare_to_access_memory and unprepare_to_access_memory.
16991 (prepare_to_access_memory, unprepare_to_access_memory): New.
16992 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16993 prepare_to_access_memory/prepare_to_access_memory.
16994 * nto-low.c (nto_target_ops): Adjust.
16995 * spu-low.c (spu_target_ops): Adjust.
16996 * win32-low.c (win32_target_ops): Adjust.
16997
fd467969
PA
169982010-08-26 Pedro Alves <pedro@codesourcery.com>
16999
17000 * Makefile.in (WARN_CFLAGS): Get it from configure.
17001 (WERROR_CFLAGS): New.
17002 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17003 * configure.ac: Introduce --enable-werror, which adds -Werror to
17004 the compiler command line. Enabled by default. Disable with
17005 --disable-werror. Add -Wdeclaration-after-statement
17006 Wpointer-arith and -Wformat-nonliteral to warning flags.
17007 * configure: Regenerate.
17008
331e2f5f
PA
170092010-08-26 Pedro Alves <pedro@codesourcery.com>
17010
17011 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17012
e581f2b4
PA
170132010-08-26 Pedro Alves <pedro@codesourcery.com>
17014
17015 * gdbreplay.c (remote_error): New.
17016 (gdbchar): New.
17017 (expect): Use gdbchar. Check for error reading from GDB.
17018 Clarify sync error output.
17019 (play): Check for errors writing to GDB.
17020 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17021 * remote-utils.c (getpkt): Check for errors writing to the remote
17022 descriptor.
17023
3c11dd79
PA
170242010-08-25 Pedro Alves <pedro@codesourcery.com>
17025
17026 * linux-low.c (linux_wait_1): Move non-debugging code out of
17027 `debug_threads' control.
17028
d20a8ad9
PA
170292010-08-25 Pedro Alves <pedro@codesourcery.com>
17030
17031 * linux-low.c (linux_wait_1): Don't set last_status here.
17032 * server.c (push_event, queue_stop_reply_callback): Assert we're
17033 not pushing a TARGET_WAITKIND_IGNORE event.
17034 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17035 (myresume, handle_target_event): Set the thread's last_resume_kind
17036 and last_status from the target returned status.
17037
964e4306
PA
170382010-08-25 Pedro Alves <pedro@codesourcery.com>
17039
17040 PR threads/10729
17041
17042 * linux-x86-low.c (update_debug_registers_callback): New.
17043 (i386_dr_low_set_addr): Use it.
17044 (i386_dr_low_get_addr): New.
17045 (i386_dr_low_set_control): Use update_debug_registers_callback.
17046 (i386_dr_low_get_control): New.
17047 (i386_dr_low_get_status): Adjust.
17048 * linux-low.c (linux_stop_lwp): New.
17049 * linux-low.h (linux_stop_lwp): Declare.
17050
17051 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17052 argument instead of a i386_debug_reg_state.
17053 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17054 a i386_debug_reg_state.
17055 (i386_insert_aligned_watchpoint): Adjust.
17056 (i386_remove_aligned_watchpoint): Adjust.
17057 (i386_low_stopped_data_address): Read the debug registers from the
17058 inferior instead of from the mirrors.
17059 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17060 (i386_dr_low_get_addr): Declare.
17061 (i386_dr_low_get_control): Declare.
17062 (i386_dr_low_get_status): Change prototype.
17063
17064 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17065 (i386_dr_low_get_addr): New.
17066 (i386_dr_low_get_control): New.
17067 (i386_dr_low_get_status): Adjust prototype. Return
17068 dr_status_mirror.
17069 (i386_initial_stuff): Clear dr_status_mirror and
17070 dr_control_mirror.
17071 (i386_get_thread_context): Adjust.
17072 (i386_set_thread_context): Adjust.
17073 (i386_thread_added): Adjust.
17074
5f21a75b
PA
170752010-08-24 Pedro Alves <pedro@codesourcery.com>
17076
17077 * linux-low.h (linux_thread_area): Delete declaration.
17078
3e4c1235
TS
170792010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17080
17081 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17082 after its termination.
17083
1971b033
PA
170842010-08-09 Pedro Alves <pedro@codesourcery.com>
17085
17086 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17087 (gdb_wants_all_stopped): Delete.
17088 (linux_wait_1): Don't call them.
17089 * server.c (handle_v_cont): Tag all threads as want-stopped.
17090 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17091 stopped as "client-wants-stopped".
17092
310444ac
PA
170932010-07-31 Pedro Alves <pedro@codesourcery.com>
17094
17095 * Makefile.in (signals_h): New.
17096 (server_h): Depend on it.
17097 (server.o): Don't depend on $(signals_def).
17098 (signals.o): Depend on $(signals_def).
17099
a19cae16
JK
171002010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17101
17102 * Makefile.in (signals_def): New.
17103 (server_h): Append include/gdb/signals.h and signals_def.
17104 (server.o): Append signals_def.
17105
30d50328
JK
171062010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17107
17108 * server.c (handle_target_event): Use target_signal_to_host for
17109 resume_info.sig initialization.
17110 * target.h (struct thread_resume) <sig>: New comment.
17111
5c3216e2
OS
171122010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17113
c6f46ca0
OS
17114 * server.c (handle_query): strcpy() the returned string from paddress()
17115 instead of sprintf().
5c3216e2
OS
17116 * utils.c (paddress): Return phex_nz().
17117
6bd31874
JB
171182010-07-07 Joel Brobecker <brobecker@adacore.com>
17119
17120 * server.c (handle_v_cont): Call mourn_inferior if process
17121 just exited.
17122 (myresume): Likewise.
17123
0fb4aa4b
PA
171242010-07-01 Pedro Alves <pedro@codesourcery.com>
17125
17126 Static tracepoints, and integration with UST.
17127
17128 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17129 * mem-break.c (uninsert_all_breakpoints)
17130 (reinsert_all_breakpoints): New.
17131 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17132 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17133 (gdb_agent_ust_loaded, helper_thread_id)
17134 (gdb_agent_helper_thread_id): New macros.
17135 (struct ipa_sym_addresses): Add addr_ust_loaded,
17136 addr_helper_thread_id, addr_cmd_buf.
17137 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17138 (in_process_agent_loaded_ust): New.
17139 (write_e_ust_not_loaded): New.
17140 (maybe_write_ipa_ust_not_loaded): New.
17141 (struct collect_static_trace_data_action): New.
17142 (enum tracepoint_type) <static_tracepoint>: New.
17143 (struct tracepoint) <handle>: Mention static tracepoints.
17144 (struct static_tracepoint_ctx): New.
17145 (CMD_BUF_SIZE): New.
17146 (add_tracepoint_action): Handle static tracepoint actions.
17147 (unprobe_marker_at): New.
17148 (clear_installed_tracepoints): Handle static tracepoints.
17149 (cmd_qtdp): Handle static tracepoints.
17150 (probe_marker_at): New.
17151 (cmd_qtstart): Handle static tracepoints.
17152 (response_tracepoint): Handle static tracepoints.
17153 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17154 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17155 (get_context_regcache): Handle static tracepoints.
17156 (do_action_at_tracepoint): Handle static tracepoint actions.
17157 (traceframe_find_block_type): Handle static trace data blocks.
17158 (traceframe_read_sdata): New.
17159 (download_tracepoints): Download static tracepoint actions.
17160 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17161 (GDB_PROBE_NAME): New.
17162 (ust_ops): New.
17163 (GET_UST_SYM): New.
17164 (USTF): New.
17165 (dlsym_ust): New.
17166 (ust_marker_to_static_tracepoint): New.
17167 (gdb_probe): New.
17168 (collect_ust_data_at_tracepoint): New.
17169 (gdb_ust_probe): New.
17170 (UNIX_PATH_MAX, SOCK_DIR): New.
17171 (gdb_ust_connect_sync_socket): New.
17172 (resume_thread, stop_thread): New.
17173 (run_inferior_command): New.
17174 (init_named_socket): New.
17175 (gdb_ust_socket_init): New.
17176 (cstr_to_hexstr): New.
17177 (next_st): New.
17178 (first_marker, next_marker): New.
17179 (response_ust_marker): New.
17180 (cmd_qtfstm, cmd_qtsstm): New.
17181 (unprobe_marker_at, probe_marker_at): New.
17182 (cmd_qtstmat, gdb_ust_thread): New.
17183 (gdb_ust_init): New.
17184 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17185 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17186 (ST_REGENTRY): New.
17187 (x86_64_st_collect_regmap): New.
17188 (X86_64_NUM_ST_COLLECT_GREGS): New.
17189 (AMD64_RIP_REGNUM): New.
17190 (supply_static_tracepoint_registers): New.
17191 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17192 (ST_REGENTRY): New.
17193 (i386_st_collect_regmap): New.
17194 (i386_NUM_ST_COLLECT_GREGS): New.
17195 (supply_static_tracepoint_registers): New.
17196 * server.c (handle_query): Handle qXfer:statictrace:read.
17197 <qSupported>: Report support for StaticTracepoints, and
17198 qXfer:statictrace:read features.
17199 * server.h (traceframe_read_sdata)
17200 (supply_static_tracepoint_registers): Declare.
17201 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17202 (unpack_varlen_hex): Include in IPA build.
17203 * Makefile.in (ustlibs, ustinc): New.
17204 (IPA_OBJS): Add remote-utils-ipa.o.
17205 ($(IPA_LIB)): Link -ldl and -lpthread.
17206 (UST_CFLAGS): New.
17207 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17208 * config.in, configure: Regenerate.
17209
9e4344e5
PA
172102010-06-20 Ian Lance Taylor <iant@google.com>
17211 Pedro Alves <pedro@codesourcery.com>
17212
17213 * linux-x86-low.c (always_true): Delete.
17214 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17215 trying to fool the compiler with always_true.
17216
c6beb2cb
PA
172172010-06-20 Pedro Alves <pedro@codesourcery.com>
17218
17219 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17220 conditions in gdbserver.
17221
d2ed6730
UW
172222010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17223
17224 * spu-low.c (spu_read_memory): Wrap around local store limit.
17225 (spu_write_memory): Likewise.
17226
4e29fb54
PA
172272010-06-15 Pedro Alves <pedro@codesourcery.com>
17228
17229 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17230 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17231 LONGEST uses.
17232 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17233 uses.
17234 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17235 uses with LONGEST uses.
17236
6a271cae
PA
172372010-06-14 Stan Shebs <stan@codesourcery.com>
17238 Pedro Alves <pedro@codesourcery.com>
17239
17240 Bytecode compiler.
17241
17242 * linux-x86-low.c: Include limits.h.
17243 (add_insns): New.
17244 (always_true): New.
17245 (EMIT_ASM): New.
17246 (EMIT_ASM32): New.
17247 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17248 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17249 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17250 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17251 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17252 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17253 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17254 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17255 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17256 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17257 (amd64_emit_void_call_2): New.
17258 (amd64_emit_ops): New.
17259 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17260 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17261 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17262 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17263 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17264 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17265 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17266 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17267 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17268 (i386_emit_stack_adjust, i386_emit_int_call_1)
17269 (i386_emit_void_call_2): New.
17270 (i386_emit_ops): New.
17271 (x86_emit_ops): New.
17272 (the_low_target): Install x86_emit_ops.
17273 * server.h (struct emit_ops): New.
17274 (get_raw_reg_func_addr): Declare.
17275 (current_insn_ptr, emit_error): Declare.
17276 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17277 (set_trace_state_variable_value): New defines.
17278 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17279 addr_get_trace_state_variable_value and
17280 addr_set_trace_state_variable_value.
17281 (symbol_list): New fields for get_raw_reg,
17282 get_trace_state_variable_value and set_trace_state_variable_value.
17283 (condfn): New typedef.
17284 (struct tracepoint): New field `compiled_cond'.
17285 (do_action_at_tracepoint): Clear compiled_cond.
17286 (get_trace_state_variable_value, set_trace_state_variable_value):
17287 Export in the IPA.
17288 (condition_true_at_tracepoint): If there's a compiled condition,
17289 run that.
17290 (current_insn_ptr, emit_error): New globals.
17291 (struct bytecode_address): New.
17292 (get_raw_reg_func_addr): New.
17293 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17294 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17295 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17296 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17297 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17298 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17299 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17300 (compile_tracepoint_condition, compile_bytecodes): New.
17301 * target.h (emit_ops): Forward declare.
17302 (struct target_ops): New field emit_ops.
17303 (target_emit_ops): New.
17304 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17305 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17306 * linux-low.c (linux_emit_ops): New.
17307 (linux_target_ops): Install it.
17308 * linux-low.h (struct linux_target_ops): New field emit_ops.
17309
92b72907
UW
173102010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17311
17312 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17313 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17314
fa593d66
PA
173152010-06-01 Pedro Alves <pedro@codesourcery.com>
17316 Stan Shebs <stan@codesourcery.com>
17317
17318 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17319 (all): Depend on $(extra_libraries).
17320 (install-only): Install the IPA.
17321 (IPA_OBJS, IPA_LIB): New.
17322 (clean): Remove the IPA lib.
17323 (IPAGENT_CFLAGS): New.
17324 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17325 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17326 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17327 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17328 * configure.ac: Check for atomic builtins support in the compiler.
17329 (IPA_DEPFILES, extra_libraries): Define.
17330 * configure.srv (ipa_obj): Add description.
17331 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17332 (i[34567]86-*-linux*): Set ipa_obj.
17333 (x86_64-*-linux*): Set ipa_obj.
17334 * linux-low.c (stabilizing_threads): New.
17335 (supports_fast_tracepoints): New.
17336 (linux_detach): Stabilize threads before detaching.
17337 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17338 the lwp is either not stabilizing, or is moving out of a jump pad.
17339 (linux_fast_tracepoint_collecting): New.
17340 (maybe_move_out_of_jump_pad): New.
17341 (enqueue_one_deferred_signal): New.
17342 (dequeue_one_deferred_signal): New.
17343 (linux_wait_for_event_1): If moving out of a jump pad, defer
17344 pending signals to later.
17345 (linux_stabilize_threads): New.
17346 (linux_wait_1): Check if threads need moving out of jump pads, and
17347 do it if so.
17348 (stuck_in_jump_pad_callback): New.
17349 (move_out_of_jump_pad_callback): New.
17350 (lwp_running): New.
17351 (linux_resume_one_lwp): Handle moving out of jump pads.
17352 (linux_set_resume_request): Dequeue deferred signals.
17353 (need_step_over_p): Also step over fast tracepoint jumps.
17354 (start_step_over): Also uninsert fast tracepoint jumps.
17355 (finish_step_over): Also reinsert fast tracepoint jumps.
17356 (linux_install_fast_tracepoint_jump): New.
17357 (linux_target_ops): Install linux_stabilize_threads and
17358 linux_install_fast_tracepoint_jump_pad.
17359 * linux-low.h (linux_target_ops) <get_thread_area,
17360 install_fast_tracepoint_jump_pad>: New fields.
17361 (struct lwp_info) <collecting_fast_tracepoint,
17362 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17363 (linux_get_thread_area): Declare.
17364 * linux-x86-low.c (jump_insn): New.
17365 (x86_get_thread_area): New.
17366 (append_insns): New.
17367 (push_opcode): New.
17368 (amd64_install_fast_tracepoint_jump_pad): New.
17369 (i386_install_fast_tracepoint_jump_pad): New.
17370 (x86_install_fast_tracepoint_jump_pad): New.
17371 (the_low_target): Install x86_get_thread_area and
17372 x86_install_fast_tracepoint_jump_pad.
17373 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17374 (struct fast_tracepoint_jump): New.
17375 (fast_tracepoint_jump_insn): New.
17376 (fast_tracepoint_jump_shadow): New.
17377 (find_fast_tracepoint_jump_at): New.
17378 (fast_tracepoint_jump_here): New.
17379 (delete_fast_tracepoint_jump): New.
17380 (set_fast_tracepoint_jump): New.
17381 (uninsert_fast_tracepoint_jumps_at): New.
17382 (reinsert_fast_tracepoint_jumps_at): New.
17383 (set_breakpoint_at): Use write_inferior_memory.
17384 (uninsert_raw_breakpoint): Use write_inferior_memory.
17385 (check_mem_read): Mask out fast tracepoint jumps.
17386 (check_mem_write): Mask out fast tracepoint jumps.
17387 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17388 (set_fast_tracepoint_jump): Declare.
17389 (delete_fast_tracepoint_jump)
17390 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17391 (reinsert_fast_tracepoint_jumps_at): Declare.
17392 * regcache.c: Don't compile many functions when building the
17393 in-process agent library.
17394 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17395 the register buffer in the heap.
17396 (free_register_cache): If the register buffer isn't owned by the
17397 regcache, don't free it.
17398 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17399 pre-existing register caches.
17400 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17401 type.
17402 (convert_ascii_to_int): : Constify `from' parameter type.
17403 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17404 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17405 the needed buffer in-place.
17406 (relocate_instruction): New.
17407 * server.c (handle_query) <qSymbols>: If the target supports
17408 tracepoints, give it a chance of looking up symbols. Report
17409 support for fast tracepoints.
17410 (handle_status): Stabilize threads.
17411 (process_serial_event): Adjust.
17412 * server.h (struct fast_tracepoint_jump): Forward declare.
17413 (struct process_info) <fast_tracepoint_jumps>: New field.
17414 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17415 (decode_X_packet, decode_M_packet): Adjust.
17416 (relocate_instruction): Declare.
17417 (in_process_agent_loaded): Declare.
17418 (tracepoint_look_up_symbols): Declare.
17419 (struct fast_tpoint_collect_status): Declare.
17420 (fast_tracepoint_collecting): Declare.
17421 (force_unlock_trace_buffer): Declare.
17422 (handle_tracepoint_bkpts): Declare.
17423 (initialize_low_tracepoint)
17424 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17425 * target.h (struct target_ops) <stabilize_threads,
17426 install_fast_tracepoint_jump_pad>: New fields.
17427 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17428 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17429 [HAVE_STDINT_H]: Include stdint.h.
17430 (trace_debug_1): Rename to ...
17431 (trace_vdebug): ... this.
17432 (trace_debug): Rename to ...
17433 (trace_debug_1): ... this. Add `level' parameter.
17434 (trace_debug): New.
17435 (ATTR_USED, ATTR_NOINLINE): New.
17436 (IP_AGENT_EXPORT): New.
17437 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17438 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17439 (about_to_request_buffer_space, trace_buffer_is_full)
17440 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17441 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17442 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17443 (traceframe_write_count, traceframes_created)
17444 (trace_state_variables)
17445 New renaming defines.
17446 (struct ipa_sym_addresses): New.
17447 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17448 (symbol_list): New.
17449 (ipa_sym_addrs): New.
17450 (all_tracepoint_symbols_looked_up): New.
17451 (in_process_agent_loaded): New.
17452 (write_e_ipa_not_loaded): New.
17453 (maybe_write_ipa_not_loaded): New.
17454 (tracepoint_look_up_symbols): New.
17455 (debug_threads) [IN_PROCESS_AGENT]: New.
17456 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17457 (UNKNOWN_SIDE_EFFECTS): New.
17458 (stop_tracing): New.
17459 (flush_trace_buffer): New.
17460 (stop_tracing_bkpt): New.
17461 (flush_trace_buffer_bkpt): New.
17462 (read_inferior_integer): New.
17463 (read_inferior_uinteger): New.
17464 (read_inferior_data_pointer): New.
17465 (write_inferior_data_pointer): New.
17466 (write_inferior_integer): New.
17467 (write_inferior_uinteger): New.
17468 (struct collect_static_trace_data_action): Delete.
17469 (enum tracepoint_type): New.
17470 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17471 <actions_str, step_actions, step_actions_str>: Only include in
17472 GDBserver.
fa593d66
PA
17473 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17474 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17475 (tracepoints): Use IP_AGENT_EXPORT.
17476 (last_tracepoint): Don't include in the IPA.
17477 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17478 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17479 (alloced_trace_state_variables): New.
17480 (trace_state_variables): Use IP_AGENT_EXPORT.
17481 (traceframe_t): Delete unused variable.
17482 (circular_trace_buffer): Don't include in the IPA.
17483 (trace_buffer_start): Delete.
17484 (struct trace_buffer_control): New.
17485 (trace_buffer_free): Delete.
17486 (struct ipa_trace_buffer_control): New.
17487 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17488 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17489 New.
17490 (trace_buffer_ctrl): New.
17491 (TRACE_BUFFER_CTRL_CURR): New.
17492 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17493 Reimplement as macros.
17494 (trace_buffer_wrap): Delete.
17495 (traceframe_write_count, traceframe_read_count)
17496 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17497 (struct tracepoint_hit_ctx) <type>: New field.
17498 (struct fast_tracepoint_ctx): New.
17499 (memory_barrier): New.
17500 (cmpxchg): New.
17501 (record_tracepoint_error): Update atomically in the IPA.
17502 (clear_inferior_trace_buffer): New.
17503 (about_to_request_buffer_space): New.
17504 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17505 updating the same buffer.
17506 (add_tracepoint): Default the tracepoint's type to trap
17507 tracepoint, and orig_size to -1.
17508 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17509 internal variables.
17510 (create_trace_state_variable): New parameter `gdb'. Handle it.
17511 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17512 (cmd_qtdp): Handle fast tracepoints.
17513 (cmd_qtdv): Adjust.
17514 (max_jump_pad_size): New.
17515 (gdb_jump_pad_head): New.
17516 (get_jump_space_head): New.
17517 (claim_jump_space): New.
17518 (sort_tracepoints): New.
17519 (MAX_JUMP_SIZE): New.
17520 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17521 IPA.
17522 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17523 support. Upload fast traceframes, and delete internal IPA
17524 breakpoints.
17525 (stop_tracing_handler): New.
17526 (flush_trace_buffer_handler): New.
17527 (cmd_qtstop): Upload fast tracepoints.
17528 (response_tracepoint): Handle fast tracepoints.
17529 (tracepoint_finished_step): Upload fast traceframes. Set the
17530 tracepoint hit context's tracepoint type.
17531 (handle_tracepoint_bkpts): New.
17532 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17533 type. Add comment about fast tracepoints.
17534 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17535 non-existing action_str field.
17536 (get_context_regcache): Handle fast tracepoints.
17537 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17538 to the regcache.
17539 (fast_tracepoint_from_jump_pad_address): New.
17540 (fast_tracepoint_from_ipa_tpoint_address): New.
17541 (collecting_t): New.
17542 (force_unlock_trace_buffer): New.
17543 (fast_tracepoint_collecting): New.
17544 (collecting): New.
17545 (gdb_collect): New.
17546 (write_inferior_data_ptr): New.
17547 (target_tp_heap): New.
17548 (target_malloc): New.
17549 (download_agent_expr): New.
17550 (UALIGN): New.
17551 (download_tracepoints): New.
17552 (download_trace_state_variables): New.
17553 (upload_fast_traceframes): New.
17554 (IPA_FIRST_TRACEFRAME): New.
17555 (IPA_NEXT_TRACEFRAME_1): New.
17556 (IPA_NEXT_TRACEFRAME): New.
17557 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17558 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17559 (gdb_jump_pad_buffer_end): New.
17560 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17561 (initialize_tracepoint): Adjust.
17562 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17563 buffer. Initialize the low module.
17564 * utils.c (PREFIX, TOOLNAME): New.
17565 (malloc_failure): Use PREFIX.
17566 (error): In the IPA, an error causes an exit.
17567 (fatal, warning): Use PREFIX.
17568 (internal_error): Use TOOLNAME.
17569 (NUMCELLS): Increase to 10.
17570 * configure, config.in: Regenerate.
17571
d149dd1d
PA
175722010-06-01 Pedro Alves <pedro@codesourcery.com>
17573
17574 * server.c (handle_query) <qSupported>: Do two passes over the
17575 qSupported string to avoid nesting strtok.
17576
f6528abd
JK
175772010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17578
17579 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17580 (CDEPS): New.
17581 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17582 -Wl,--dynamic-list.
17583 * configure: Regenerate.
17584 * proc-service.list: New.
17585
ca2a87a0
JK
175862010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17587
17588 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17589 New comment.
17590
363a6e9f
OS
175912010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17592
17593 * gdbreplay.c (remote_open): Check error return from socket() call by
17594 its equality to -1 not by it being negative.
17595 * remote-utils.c (remote_open): Likewise.
17596
d23b6cb1
PA
175972010-05-23 Pedro Alves <pedro@codesourcery.com>
17598
17599 * config.h: Regenerate.
17600
28d3cf85
MK
176012010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17602
17603 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17604 doesn't provide PTRACE_GET_THREAD_AREA.
17605
fea36a59
MK
176062010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17607
17608 * linux-m68k-low.c: Include <asm/ptrace.h>
17609 (ps_get_thread_area): Implement.
17610
24b066ba
DE
176112010-05-03 Doug Evans <dje@google.com>
17612
17613 * event-loop.c (struct callback_event): New struct.
17614 (callback_list): New global.
17615 (append_callback_event, delete_callback_event): New functions.
17616 (process_callback): New function.
17617 (start_event_loop): Call it.
17618 * remote-utils.c (NOT_SCHEDULED): Define.
17619 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17620 moved out of readchar.
17621 (readchar): Rewrite. Call reschedule before returning.
17622 (reset_readchar): New function.
17623 (remote_close): Call it.
17624 (process_remaining, reschedule): New functions.
17625 * server.h (callback_handler_func): New typedef.
17626 (append_callback_event, delete_callback_event): Declare.
17627
9836d6ea
PA
176282010-05-03 Pedro Alves <pedro@codesourcery.com>
17629
17630 * proc-service.c (ps_pglobal_lookup): Use
17631 thread_db_look_up_one_symbol.
17632 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17633 parameter. Use it instead of all_symbols_looked_up.
17634 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17635 field.
17636 (all_symbols_looked_up): Don't declare.
17637 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17638 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17639 field.
17640 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17641 Set all_symbols_looked_up here.
17642 (thread_db_look_up_one_symbol): New.
17643 (thread_db_get_tls_address): Adjust.
17644 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17645 thread_db object on the heap, and tentatively set it in the
17646 process structure.
17647 (thread_db_init): Don't set all_symbols_looked_up here.
17648 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17649
7984d532
PA
176502010-05-03 Pedro Alves <pedro@codesourcery.com>
17651
17652 * linux-low.c (linux_kill, linux_detach): Adjust.
17653 (status_pending_p_callback): Remove redundant statement. Check
17654 for !TARGET_WAITIKIND_IGNORE, instead of
17655 TARGET_WAITKIND_STOPPED.
17656 (handle_tracepoints): Make sure LWP is locked. Adjust.
17657 (linux_wait_for_event_1): Adjust.
17658 (linux_cancel_breakpoints): New.
17659 (unsuspend_one_lwp): New.
17660 (unsuspend_all_lwps): New.
17661 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17662 (send_sigstop_callback): Change return type to int, add new
17663 `except' parameter and handle it.
17664 (suspend_and_send_sigstop_callback): New.
17665 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17666 pass them down. If SUSPEND, also increment the lwp's suspend
17667 count.
17668 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17669 (need_step_over_p): Don't consider suspended LWPs.
17670 (start_step_over): Adjust.
17671 (proceed_one_lwp): Change return type to int, add new `except'
17672 parameter and handle it.
17673 (unsuspend_and_proceed_one_lwp): New.
17674 (proceed_all_lwps): Use find_inferior instead of
17675 for_each_inferior.
17676 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17677 also decrement the suspend count of LWPs. Pass `except' down,
17678 instead of hacking its suspend count.
17679 (linux_pause_all): Add `freeze' parameter. Adjust.
17680 (linux_unpause_all): New.
17681 (linux_target_ops): Install linux_unpause_all.
17682 * server.c (handle_status): Adjust.
17683 * target.h (struct target_ops): New fields `unpause_all' and
17684 `cancel_breakpoints'. Add new parameter to `pause_all'.
17685 (pause_all): Add new `freeze' parameter.
17686 (unpause_all): New.
17687 (cancel_breakpoints): New.
17688 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17689 cancel breakpoints.
17690 (cmd_qtstart): Pause threads.
17691 (stop_tracing): Pause threads, and cancel breakpoints.
17692 * win32-low.c (win32_target_ops): Adjust.
17693
e471f25b
PA
176942010-05-03 Pedro Alves <pedro@codesourcery.com>
17695
17696 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17697 the inferior right away from here...
17698 (linux_wait_1): ... to here, and adjust to check the thread's
17699 last_resume_kind instead of the lwp's step or stop_expected flags.
17700
1915ef4f
PA
177012010-05-02 Pedro Alves <pedro@codesourcery.com>
17702
17703 * README: Use consistent `GDB' and `GDBserver' spellings.
17704
f9e39928
PA
177052010-05-02 Pedro Alves <pedro@codesourcery.com>
17706
17707 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17708 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17709 (linux_detach_one_lwp): Assume the lwp is stopped.
17710 (any_thread_of): Delete.
17711 (linux_detach): Stop all lwps here. Don't blindly delete all
17712 breakpoints.
17713 (delete_lwp_callback): New.
17714 (linux_mourn): Delete all lwps of the process that is gone.
17715 (linux_wait_1): Don't delete the last lwp of the process here.
17716 * mem-break.h (mark_breakpoints_out): Declare.
17717 * mem-break.c (mark_breakpoints_out): New.
17718 (free_all_breakpoints): Use it.
17719 * server.c (handle_target_event): If the process is gone, mark
17720 breakpoints out.
17721 * thread-db.c (struct thread_db) <create_bp>: New field.
17722 (thread_db_enable_reporting): Fix prototype. Store a thread event
17723 breakpoint reference in the thread_db struct.
17724 (thread_db_load_search): Clear the thread_db object.
17725 (try_thread_db_load_1): Ditto.
17726 (switch_to_process): New.
17727 (disable_thread_event_reporting): Use it.
17728 (remove_thread_event_breakpoints): New.
17729 (thread_db_detach, thread_db_mourn): Use it.
17730
1e7fc18c
PA
177312010-05-01 Pedro Alves <pedro@codesourcery.com>
17732
17733 * linux-low.c (linux_enable_event_reporting): New.
17734 (linux_wait_for_event_1, handle_extended_wait): Use it.
17735
02fc4de7
PA
177362010-04-30 Pedro Alves <pedro@codesourcery.com>
17737
17738 * linux-low.c (linux_kill_one_lwp, linux_kill)
17739 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17740 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17741 SIGSTOP even if the LWP is stopped.
17742 (send_sigstop_callback): New.
17743 (stop_all_lwps): Use send_sigstop_callback instead.
17744 (linux_resume_one_thread): Adjust.
17745 (proceed_one_lwp): Still proceed an LWP that the client has
17746 requested to stop, if we haven't reported it as stopped yet. Make
17747 sure that LWPs the client want stopped, have a pending SIGSTOP.
17748
bc3b5632
DE
177492010-04-26 Doug Evans <dje@google.com>
17750
ae1ada35
DE
17751 * server.c (handle_general_set): Make static.
17752
bc3b5632
DE
17753 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17754 Print received char after testing for error/eof instead of before.
17755 (input_interrupt): Tweak comment.
17756
65730243
DE
177572010-04-23 Doug Evans <dje@google.com>
17758
17759 * server.c (start_inferior): Print inferior argv if --debug.
17760
a8ae7dc0
AR
177612010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17762
17763 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17764 * nto-x86-low.c: Include server.h
17765
1c07cc19
PM
177662010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17767
17768 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17769 be consistent with other sources of this directory.
17770 (init_registers_amd64): Correct name of source file of this function
17771 in the comment.
17772
e0a61e09
PM
177732010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17774
17775 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17776 64-bit executables.
17777
54709339
PM
177782010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17779
17780 * win32-i386-low.c: Add 64-bit support.
17781 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17782 (init_registers_amd64): Declare.
17783 (mappings): Add 64-bit version of array.
17784 (init_windows_x86): New function.
17785 (the_low_target): Change init_arch field to init_windows_x86.
17786
e8f0053d
PM
177872010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17788
17789 * win32-low.c: Adapt to support also 64-bit architecture.
17790 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17791 (get_image_name): Use SIZE_T type for local variable `done'.
17792 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17793 (toolhelp_get_dll_name): Idem.
17794 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17795 Use uintptr_t typecast to avoid warning.
17796 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17797 (handle_exception): Use phex_nz to avoid warning.
17798 (win32_wait): Remove unused local variable `process'.
17799
c481e77e
PM
178002010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17801
17802 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17803 `amd64-avx.o'.
17804
12ea4b69
PM
178052010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17806
17807 * configure.ac: Use `ws2_32' library for srv_mingw.
17808 * configure: Regenerate.
17809 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17810 * remote-utils.c: Likewise.
17811
f6d1620c
L
178122010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17813
17814 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17815 if __x86_64__ is defined.
17816
8e642873
PM
178172010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17818
17819 * configure: Regenerate.
17820
711e434b
PM
178212010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17822
17823 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17824 * target.h (target_ops): New get_tib_address field.
17825 * win32-low.h (win32_thread_info): Add thread_local_base field.
17826 * win32-low.c (child_add_thread): Add tlb argument.
17827 Set thread_local_base field to TLB.
17828 (get_child_debug_event): Adapt to child_add_thread change.
17829 (win32_get_tib_address): New function.
17830 (win32_target_ops): Set get_tib_address field to
17831 win32_get_tib_address.
17832 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17833
505106cd
PA
178342010-04-12 Pedro Alves <pedro@codesourcery.com>
17835
505106cd
PA
17836 * linux-low.c (linux_mourn): Also remove the process.
17837 * server.c (handle_target_event): Don't remove the process here.
17838 * nto-low.c (nto_mourn): New.
17839 (nto_target_ops): Install it.
17840 * spu-low.c (spu_mourn): New.
17841 (spu_target_ops): Install it.
17842 * win32-low.c (win32_mourn): New.
17843 (win32_target_ops): Install it.
17844
e8470a06
PA
178452010-04-12 Pedro Alves <pedro@codesourcery.com>
17846
17847 * server.h (buffer_xml_printf): Remove redundant `;'.
17848
45ba0d02
PA
178492010-04-12 Pedro Alves <pedro@codesourcery.com>
17850
17851 * regcache.c (set_register_cache): Invalidate regcaches before
17852 changing the register cache layout.
17853 (regcache_invalidate_one): Allow a NULL regcache.
17854 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17855 regcaches before changing the register cache layout or the target
17856 regsets.
17857
59e04013
L
178582010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17859
17860 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17861 variable warning on Linux/x86-64.
17862
8336d594
PA
178632010-04-11 Pedro Alves <pedro@codesourcery.com>
17864
17865 GDBserver disconnected tracing support.
17866
17867 * linux-low.c (linux_remove_process): Delete.
17868 (add_lwp): Don't set last_resume_kind here.
17869 (linux_kill): Use `mourn'.
17870 (linux_detach): Use `thread_db_detach', and `mourn'.
17871 (linux_mourn): New.
17872 (linux_attach_lwp_1): Adjust comment.
17873 (linux_attach): last_resume_kind moved the thread_info; adjust.
17874 (status_pending_p_callback): Adjust.
17875 (linux_wait_for_event_1): Adjust.
17876 (count_events_callback, select_singlestep_lwp_callback)
17877 (select_event_lwp_callback, cancel_breakpoints_callback)
17878 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17879 (proceed_one_lwp): Adjust.
17880 (linux_async): Add debug output.
17881 (linux_thread_stopped): New.
17882 (linux_pause_all): New.
17883 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17884 linux_pause_all.
17885 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17886 (thread_db_free): Delete declaration.
17887 (thread_db_detach, thread_db_mourn): Declare.
17888 * thread-db.c (thread_db_init): Use thread_db_mourn.
17889 (thread_db_free): Delete, split in two.
17890 (disable_thread_event_reporting): New.
17891 (thread_db_detach): New.
17892 (thread_db_mourn): New.
17893
17894 * server.h (struct thread_info) <last_resume_kind>: New field.
17895 <attached>: Add comment.
17896 <gdb_detached>: New field.
17897 (handler_func): Change return type to int.
17898 (handle_serial_event, handle_target_event): Ditto.
17899 (gdb_connected): Declare.
17900 (tracing): Delete.
17901 (disconnected_tracing): Declare.
17902 (stop_tracing): Declare.
17903
17904 * server.c (handle_query) <qSupported>: Report support for
17905 disconnected tracing.
17906 (queue_stop_reply_callback): Account for running threads.
17907 (gdb_wants_thread_stopped): New.
17908 (gdb_wants_all_threads_stopped): New.
17909 (gdb_reattached_process): New.
17910 (handle_status): Clear the `gdb_detached' flag of all processes.
17911 In all-stop, stop all threads.
17912 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17913 (process_serial_event): If the remote connection breaks, or if an
17914 exit was forced with "monitor exit", force an event loop exit.
17915 Handle disconnected tracing on detach.
17916 (handle_serial_event): Adjust.
17917 (handle_target_event): If GDB isn't connected, forward events back
17918 to the inferior, unless the last process exited, in which case,
17919 exit gdbserver. Adjust interface.
17920
17921 * remote-utils.c (remote_open): Don't block in accept. Instead
17922 register an event loop source on the listen socket file
17923 descriptor. Refactor bits into ...
17924 (listen_desc): ... this new global.
17925 (gdb_connected): ... this new function.
17926 (enable_async_notification): ... this new function.
17927 (handle_accept_event): ... this new function.
17928 (remote_close): Clear remote_desc.
17929
17930 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17931
17932 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17933 New fields.
17934 (mourn_inferior): Define.
17935 (target_process_qsupported): Avoid the dangling else problem.
17936 (thread_stopped): Define.
17937 (pause_all): Define.
17938 (target_waitstatus_to_string): Declare.
17939 * target.c (target_waitstatus_to_string): New.
17940
17941 * tracepoint.c (tracing): Make extern.
17942 (disconnected_tracing): New.
17943 (stop_tracing): Make extern. Handle tracing stops due to GDB
17944 disconnecting.
17945 (cmd_qtdisconnected): New.
17946 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17947 (handle_tracepoint_general_set): Handle QTDisconnected.
17948
17949 * event-loop.c (event_handler_func): Change return type to int.
17950 (process_event): Bail out if the event handler wants the event
17951 loop to stop.
17952 (handle_file_event): Ditto.
17953 (start_event_loop): Bail out if the event handler wants the event
17954 loop to stop.
17955
17956 * nto-low.c (nto_target_ops): Adjust.
17957 * spu-low.c (spu_wait): Don't remove the process here.
17958 (spu_target_ops): Adjust.
17959 * win32-low.c (win32_wait): Don't remove the process here.
17960 (win32_target_ops): Adjust.
17961
5d267c4c
PA
179622010-04-11 Pedro Alves <pedro@codesourcery.com>
17963
17964 * regcache.c (realloc_register_cache): Invalidate inferior's
17965 regcache before recreating it.
17966
623ccd72
PA
179672010-04-09 Pedro Alves <pedro@codesourcery.com>
17968
17969 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17970
219f2f23
PA
179712010-04-09 Stan Shebs <stan@codesourcery.com>
17972 Pedro Alves <pedro@codesourcery.com>
17973
17974 * server.h (LONGEST): New.
17975 (struct thread_info) <while_stepping>: New field.
17976 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17977 Declare.
17978 (initialize_tracepoint, handle_tracepoint_general_set)
17979 (handle_tracepoint_query, tracepoint_finished_step)
17980 (tracepoint_was_hit, release_while_stepping_state_list):
17981 (current_traceframe): Declare.
17982 * server.c (handle_general_set): Handle tracepoint packets.
17983 (read_memory): New.
17984 (write_memory): New.
17985 (handle_search_memory_1): Use read_memory.
17986 (handle_query): Report support for conditional tracepoints, trace
17987 state variables, and tracepoint sources. Handle tracepoint
17988 queries.
17989 (main): Initialize the tracepoints module.
17990 (process_serial_event): Handle traceframe reads/writes.
17991
17992 * linux-low.c (handle_tracepoints): New.
17993 (linux_wait_1): Call it.
17994 (linux_resume_one_lwp): Handle while-stepping.
17995 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17996 (linux_target_ops): Install them.
17997 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17998 New field.
17999 * linux-x86-low.c (x86_supports_tracepoints): New.
18000 (the_low_target). Install it.
18001
18002 * mem-break.h (delete_breakpoint): Declare.
18003 * mem-break.c (delete_breakpoint): Make external.
18004
18005 * target.h (struct target_ops): Add `supports_tracepoints',
18006 `read_pc', and `write_pc' fields.
18007 (target_supports_tracepoints): Define.
18008 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18009 (phex_nz): New.
18010
18011 * regcache.h (struct regcache) <registers_owned>: New field.
18012 (init_register_cache, regcache_cpy): Declare.
18013 (regcache_read_pc, regcache_write_pc): Declare.
18014 (register_cache_size): Declare.
18015 (supply_regblock): Declare.
18016 * regcache.c (init_register_cache): New.
18017 (new_register_cache): Use it.
18018 (regcache_cpy): New.
18019 (register_cache_size): New.
18020 (supply_regblock): New.
18021 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18022
219f2f23
PA
18023 * tracepoint.c: New.
18024
18025 * Makefile.in (OBS): Add tracepoint.o.
18026 (tracepoint.o): New rule.
18027
3a13a53b
L
180282010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18029
18030 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18031 (i386-mmx.o): New.
18032 (i386-mmx.c): Likewise.
18033 (i386-mmx-linux.o): Likewise.
18034 (i386-mmx-linux.c): Likewise.
18035
18036 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18037 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18038 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18039 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18040
18041 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18042 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18043 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18044
1570b33e
L
180452010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18046
18047 * Makefile.in (clean): Updated.
18048 (i386-avx.o): New.
18049 (i386-avx.c): Likewise.
18050 (i386-avx-linux.o): Likewise.
18051 (i386-avx-linux.c): Likewise.
18052 (amd64-avx.o): Likewise.
18053 (amd64-avx.c): Likewise.
18054 (amd64-avx-linux.o): Likewise.
18055 (amd64-avx-linux.c): Likewise.
18056
18057 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18058 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18059 (srv_amd64_regobj): Add amd64-avx.o.
18060 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18061 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18062 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18063 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18064 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18065 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18066 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18067
18068 * i387-fp.c: Include "i386-xstate.h".
18069 (i387_xsave): New.
18070 (i387_cache_to_xsave): Likewise.
18071 (i387_xsave_to_cache): Likewise.
18072 (x86_xcr0): Likewise.
18073
18074 * i387-fp.h (i387_cache_to_xsave): Likewise.
18075 (i387_xsave_to_cache): Likewise.
18076 (x86_xcr0): Likewise.
18077
18078 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18079 * linux-crisv32-low.c (target_regsets): Likewise.
18080 * linux-m68k-low.c (target_regsets): Likewise.
18081 * linux-mips-low.c (target_regsets): Likewise.
18082 * linux-ppc-low.c (target_regsets): Likewise.
18083 * linux-s390-low.c (target_regsets): Likewise.
18084 * linux-sh-low.c (target_regsets): Likewise.
18085 * linux-sparc-low.c (target_regsets): Likewise.
18086 * linux-xtensa-low.c (target_regsets): Likewise.
18087
18088 * linux-low.c: Include <sys/uio.h>.
18089 (regsets_fetch_inferior_registers): Support nt_type.
18090 (regsets_store_inferior_registers): Likewise.
18091 (linux_process_qsupported): New.
18092 (linux_target_ops): Add linux_process_qsupported.
18093
18094 * linux-low.h (regset_info): Add nt_type.
18095 (linux_target_ops): Add process_qsupported.
18096
18097 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18098 and <sys/uio.h>.
18099 (init_registers_i386_avx_linux): New.
18100 (init_registers_amd64_avx_linux): Likewise.
18101 (xmltarget_i386_linux_no_xml): Likewise.
18102 (xmltarget_amd64_linux_no_xml): Likewise.
18103 (PTRACE_GETREGSET): Likewise.
18104 (PTRACE_SETREGSET): Likewise.
18105 (x86_fill_xstateregset): Likewise.
18106 (x86_store_xstateregset): Likewise.
18107 (use_xml): Likewise.
18108 (x86_linux_update_xmltarget): Likewise.
18109 (x86_linux_process_qsupported): Likewise.
18110 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18111 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18112 init_registers_i386_linux here. Call
18113 x86_linux_update_xmltarget.
18114 (the_low_target): Add x86_linux_process_qsupported.
18115
18116 * server.c (handle_query): Call target_process_qsupported.
18117
18118 * target.h (target_ops): Add process_qsupported.
18119 (target_process_qsupported): New.
18120
fc7238bb
PA
181212010-04-03 Pedro Alves <pedro@codesourcery.com>
18122
18123 * inferiors.c (add_thread): Set last_status kind to
18124 TARGET_WAITKIND_IGNORE.
18125 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18126 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18127 (linux_wait_1): Move `thread' local definition to block that uses
18128 it. Don't NULL initialize `event_child'.
18129 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18130 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18131 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18132
bdabb078
PA
181332010-04-01 Pedro Alves <pedro@codesourcery.com>
18134
18135 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18136 an extended waitstatus, or by a watchpoint.
18137 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18138 thread was stepping or has been stopped by a watchpoint.
18139
d3bbe7a0
PA
181402010-04-01 Pedro Alves <pedro@codesourcery.com>
18141
18142 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18143 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18144 of another, then delete the previous, and validate all
18145 breakpoints.
18146 (validate_inserted_breakpoint): New.
18147 (delete_disabled_breakpoints): New.
18148 (validate_breakpoints): New.
18149 (check_mem_read): Validate breakpoints before trusting their
18150 shadow. Delete disabled breakpoints.
18151 (check_mem_write): Validate breakpoints before trusting they
18152 should be inserted. Delete disabled breakpoints.
18153 * mem-break.h (validate_breakpoints):
18154 * server.c (handle_query): Validate breakpoints when we see a
18155 qSymbol query.
18156
8b07ae33
PA
181572010-04-01 Pedro Alves <pedro@codesourcery.com>
18158
18159 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18160 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18161 if we could tell there's a GDB breakpoint at stop_pc.
18162 (need_step_over_p): Don't do a step over if we find a GDB
18163 breakpoint at the resume PC.
18164
18165 * mem-break.c (struct raw_breakpoint): New.
18166 (enum bkpt_type): New type `gdb_breakpoint'.
18167 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18168 fields. New field `raw'.
18169 (find_raw_breakpoint_at): New.
18170 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18171 breakpoint instead.
18172 (set_breakpoint_at): Adjust.
18173 (delete_raw_breakpoint): New.
18174 (release_breakpoint): New.
18175 (delete_breakpoint): Rename to...
18176 (delete_breakpoint_1): ... this. Add proc parameter. Use
18177 release_breakpoint. Return ENOENT.
18178 (delete_breakpoint): Reimplement.
18179 (find_breakpoint_at): Delete.
18180 (find_gdb_breakpoint_at): New.
18181 (delete_breakpoint_at): Delete.
18182 (set_gdb_breakpoint_at): New.
18183 (delete_gdb_breakpoint_at): New.
18184 (gdb_breakpoint_here): New.
18185 (set_reinsert_breakpoint): Use release_breakpoint.
18186 (uninsert_breakpoint): Rename to ...
18187 (uninsert_raw_breakpoint): ... this.
18188 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18189 (reinsert_raw_breakpoint): Change parameter type to
18190 raw_breakpoint.
18191 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18192 instead.
18193 (check_breakpoints): Adjust. Use release_breakpoint.
18194 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18195 (breakpoint_inserted_here): Ditto.
18196 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18197 Don't trust the breakpoint's shadow if it is not inserted.
18198 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18199 (delete_all_breakpoints): Adjust.
18200 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18201 use delete_breakpoint_1.
18202
18203 * mem-break.h (breakpoints_supported): Delete declaration.
18204 (set_gdb_breakpoint_at): Declare.
18205 (gdb_breakpoint_here): Declare.
18206 (delete_breakpoint_at): Delete.
18207 (delete_gdb_breakpoint_at): Declare.
18208
18209 * server.h (struct raw_breakpoint): Forward declare.
18210 (struct process_info): New field `raw_breakpoints'.
18211
18212 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18213 breakpoints.
18214
6bf5e0ba
PA
182152010-03-24 Pedro Alves <pedro@codesourcery.com>
18216
18217 * linux-low.c (status_pending_p_callback): Fix comment.
18218 (linux_wait_for_event_1): Move most of the internal breakpoint
18219 handling from here...
18220 (linux_wait_1): ... to here.
18221 (count_events_callback): New.
18222 (select_singlestep_lwp_callback): New.
18223 (select_event_lwp_callback): New.
18224 (cancel_breakpoints_callback): New.
18225 (select_event_lwp): New.
18226 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18227 priority to all LWPs that have had events that should be reported
18228 to the client. Cancel breakpoints when about to reporting the
18229 event to the client, not while stopping lwps. No longer cancel
18230 finished single-steps here.
18231 (cancel_finished_single_step): Delete.
18232 (cancel_finished_single_steps): Delete.
18233
414a389f
PA
182342010-03-24 Pedro Alves <pedro@codesourcery.com>
18235
18236 * mem-break.c (enum bkpt_type): New.
18237 (struct breakpoint): New field `type'.
18238 (set_breakpoint_at): Change return type to struct breakpoint
18239 pointer. Set type to `other_breakpoint' by default.
18240 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18241 in the breakpoint list.
18242 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18243 (reinsert_breakpoint): Rename to ...
18244 (reinsert_raw_breakpoint): ... this.
18245 (reinsert_breakpoints_at): Adjust.
18246 * mem-break.h (struct breakpoint): Declare.
18247 (set_breakpoint_at): Change return type to struct breakpoint
18248 pointer.
18249
2280c721
PA
182502010-03-24 Pedro Alves <pedro@codesourcery.com>
18251
18252 * server.c (handle_query): Assign, not compare.
18253
d50171e4
PA
182542010-03-24 Pedro Alves <pedro@codesourcery.com>
18255
18256 Teach linux gdbserver to step-over-breakpoints.
18257
18258 * linux-low.c (can_hardware_single_step): New.
18259 (supports_breakpoints): New.
18260 (handle_extended_wait): If stopping threads, read the stop pc of
18261 the new cloned LWP.
18262 (get_pc): New.
18263 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18264 low target doesn't support retrieving the PC.
18265 (add_lwp): Set last_resume_kind to resume_continue.
18266 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18267 (linux_attach): Don't clear stop_expected. Set the lwp's
18268 last_resume_kind to resume_stop.
18269 (linux_detach_one_lwp): Don't check for removed breakpoints.
18270 (check_removed_breakpoint): Delete.
18271 (status_pending_p): Rename to ...
18272 (status_pending_p_callback): ... this. Don't check for removed
18273 breakpoints. Don't consider threads that are stopped from GDB's
18274 perspective.
18275 (linux_wait_for_lwp): Always read the stop_pc here.
18276 (cancel_breakpoint): New.
18277 (step_over_bkpt): New global.
18278 (linux_wait_for_event_1): Implement stepping over breakpoints.
18279 (gdb_wants_lwp_stopped): New.
18280 (gdb_wants_all_stopped): New.
18281 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18282 single-step traps here. Store the thread's last reported target
18283 wait status.
18284 (send_sigstop): Don't clear stop_expected. Always set it,
18285 instead.
18286 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18287 (cancel_finished_single_step): New.
18288 (cancel_finished_single_steps): New.
18289 (wait_for_sigstop): Don't cancel finished single-step traps here.
18290 (linux_resume_one_lwp): Don't check for removed breakpoints.
18291 Don't set `step' on non-hardware step archs.
18292 (linux_set_resume_request): Ignore resume_stop requests if already
18293 stopping or stopped. Set the lwp's last_resume_kind.
18294 (resume_status_pending_p): Don't check for removed breakpoints.
18295 (need_step_over_p): New.
18296 (start_step_over): New.
18297 (finish_step_over): New.
18298 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18299 requests. Clear the thread's last reported target waitstatus.
18300 Don't use the `suspended' flag. Don't consider pending breakpoints.
18301 (linux_resume): Start a step-over if necessary.
18302 (proceed_one_lwp): New.
18303 (proceed_all_lwps): New.
18304 (unstop_all_lwps): New.
18305 * linux-low.h (struct lwp_info): Rewrite comment for the
18306 `suspended' flag. Add the `stop_pc' field. Delete the
18307 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18308 Add `'last_resume_kind' and `need_step_over' fields.
18309 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18310 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18311 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18312 (set_raw_breakpoint_at): New.
18313 (set_breakpoint_at): Rewrite to use it.
18314 (reinsert_breakpoint_handler): Delete.
18315 (set_reinsert_breakpoint): New.
18316 (reinsert_breakpoint_by_bp): Delete.
18317 (delete_reinsert_breakpoints): New.
18318 (uninsert_breakpoint): Rewrite.
18319 (uninsert_breakpoints_at): New.
18320 (reinsert_breakpoint): Rewrite.
18321 (reinsert_breakpoints_at): New.
18322 (check_breakpoints): Rewrite.
18323 (breakpoint_here): New.
18324 (breakpoint_inserted_here): New.
18325 (check_mem_read): Adjust.
18326 * mem-break.h (breakpoints_supported, breakpoint_here)
18327 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18328 (reinsert_breakpoint_by_bp): Delete declaration.
18329 (delete_reinsert_breakpoints): Declare.
18330 (reinsert_breakpoint): Delete declaration.
18331 (reinsert_breakpoints_at): Declare.
18332 (uninsert_breakpoint): Delete declaration.
18333 (uninsert_breakpoints_at): Declare.
18334 (check_breakpoints): Adjust prototype.
18335 * server.h: Adjust include order.
18336 (struct thread_info): Declare here. Add a `last_status' field.
18337
30ba68cb
MS
183382010-03-23 Michael Snyder <msnyder@vmware.com>
18339
18340 * server.c (crc32): New function.
18341 (handle_query): Add handling for 'qCRC:' request.
18342
b9a881c2
PA
183432010-03-23 Pedro Alves <pedro@codesourcery.com>
18344
18345 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18346 lwp had been stopped by a watchpoint.
18347
e92d13d5
PA
183482010-03-16 Pedro Alves <pedro@codesourcery.com>
18349
18350 * server.h (internal_error): Declare.
18351 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18352 * utils.c (internal_error): New function.
18353
64daa791
AS
183542010-03-15 Andreas Schwab <schwab@redhat.com>
18355
18356 * configure.srv: Fix typo setting srv_regobj.
18357
f52cd8cd
PA
183582010-03-15 Pedro Alves <pedro@codesourcery.com>
18359
18360 * linux-low.c (fetch_register): Avoid passing a non string literal
18361 format to `error'.
18362 (usr_store_inferior_registers): Ditto.
18363
93ae6fdc
PA
183642010-03-14 Pedro Alves <pedro@codesourcery.com>
18365
18366 * linux-low.c (linux_write_memory): Bail out early if peeking
18367 memory failed.
18368
c3adc08c
PA
183692010-03-14 Pedro Alves <pedro@codesourcery.com>
18370
18371 * linux-low.h (struct lwp_info): New fields
18372 `stopped_by_watchpoint' and `stopped_data_address'.
18373 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18374 here, and cache them in the lwp object.
18375 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18376 directly.
18377 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18378 field.
18379 (linux_stopped_by_watchpoint): Rewrite.
18380 (linux_stopped_data_address): Rewrite.
18381
bce522a2
PA
183822010-03-06 Simo Melenius <simo.melenius@iki.fi>
18383
18384 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18385 switching the current inferior, not before.
18386
90884b2b
L
183872010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18388
18389 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18390 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18391 i386-linux.c and amd64-linux.c.
18392 (reg-i386.o): Removed.
18393 (reg-i386.c): Likewise.
18394 (reg-i386-linux.o): Likewise.
18395 (reg-i386-linux.c): Likewise.
18396 (reg-x86-64.o): Likewise.
18397 (reg-x86-64.c): Likewise.
18398 (reg-x86-64-linux.o): Likewise.
18399 (reg-x86-64-linux.c): Likewise.
18400 (i386.o): New.
18401 (i386.c): Likewise.
18402 (i386-linux.o): Likewise.
18403 (i386-linux.c): Likewise.
18404 (amd64.o): Likewise.
18405 (amd64.c): Likewise.
18406 (amd64-linux.o): Likewise.
18407 (amd64-linux.c): Likewise.
18408
18409 * configure.srv (srv_i386_regobj): New.
18410 (srv_i386_linux_regobj): Likewise.
18411 (srv_amd64_regobj): Likewise.
18412 (srv_amd64_linux_regobj): Likewise.
18413 (srv_i386_32bit_xmlfiles): Likewise.
18414 (srv_i386_64bit_xmlfiles): Likewise.
18415 (srv_i386_xmlfiles): Likewise.
18416 (srv_amd64_xmlfiles): Likewise.
18417 (srv_i386_linux_xmlfiles): Likewise.
18418 (srv_amd64_linux_xmlfiles): Likewise.
18419 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18420 srv_xmlfiles to $srv_i386_xmlfiles.
18421 (i[34567]86-*-mingw32ce*): Likewise.
18422 (i[34567]86-*-mingw*): Likewise.
18423 (i[34567]86-*-nto*): Likewise.
18424 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18425 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18426 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18427 (x86_64-*-linux*): Likewise.
18428
18429 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18430 (init_registers_amd64_linux): New.
18431 (x86_arch_setup): Replace init_registers_x86_64_linux with
18432 init_registers_amd64_linux.
18433
193f13e6
MK
184342010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18435
18436 * configure.ac: Check for libdl. If it is not available link against
18437 static libthread_db.
18438 * configure: Regenerate.
18439
85d721b8
PA
184402010-02-22 Pedro Alves <pedro@codesourcery.com>
18441
18442 PR9605
18443
18444 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18445 handing a read watchpoint.
18446 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18447
6076632b
DE
184482010-02-12 Doug Evans <dje@google.com>
18449
18450 * linux-low.c (linux_supports_tracefork_flag): Document.
18451 (linux_look_up_symbols): Add comment.
18452
3327ccf7
L
184532010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18454
18455 * regcache.c (supply_register): Clear regcache if buf is NULL.
18456
0718675c 184572010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18458 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18459
18460 * inferiors.c (find_inferior): Add function documentation.
18461 (unloaded_dll): Handle the case where the unloaded dll has not
18462 been previously registered in the dll list.
18463
177321bd
DJ
184642010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18465
18466 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18467 (thumb2_breakpoint): New.
18468 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18469
2b009048
DJ
184702010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18471
18472 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18473 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18474 breakpoints.
18475
3be029c7
PA
184762010-01-21 Pedro Alves <pedro@codesourcery.com>
18477
18478 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18479
18f5de3b
JK
184802010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18481
18482 * linux-s390-low.c (s390_collect_ptrace_register)
18483 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18484
3743bb4f
DE
184852010-01-21 Doug Evans <dje@google.com>
18486
14ce3065
DE
18487 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18488 (PTRACE_ARG4_TYPE): New macro.
18489 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18490 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18491 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18492 (usr_store_inferior_registers): Ditto.
18493 (linux_read_memory, linux_write_memory): Ditto.
18494 (linux_test_for_tracefork): Ditto.
18495
3743bb4f
DE
18496 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18497 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18498
8b315be5
PA
184992010-01-21 Pedro Alves <pedro@codesourcery.com>
18500
18501 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18502 target.
18503
85492558
PA
185042010-01-21 Pedro Alves <pedro@codesourcery.com>
18505
18506 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18507 prototype to take a regcache. Adjust.
18508
442ea881
PA
185092010-01-20 Pedro Alves <pedro@codesourcery.com>
18510
18511 * regcache.h (struct thread_info): Forward declare.
18512 (struct regcache): New.
18513 (new_register_cache): Adjust prototype.
18514 (get_thread_regcache): Declare.
18515 (free_register_cache): Adjust prototype.
18516 (registers_to_string, registers_from_string): Ditto.
18517 (supply_register, supply_register_by_name, collect_register)
18518 (collect_register_as_string, collect_register_by_name): Ditto.
18519 * regcache.c (struct inferior_regcache_data): Delete.
18520 (get_regcache): Rename to ...
18521 (get_thread_regcache): ... this. Adjust. Switch inferior before
18522 fetching registers.
18523 (regcache_invalidate_one): Adjust.
18524 (regcache_invalidate): Fix prototype.
18525 (new_register_cache): Return the new register cache.
18526 (free_register_cache): Change prototype.
18527 (realloc_register_cache): Adjust.
18528 (registers_to_string): Change prototype to take a regcache. Adjust.
18529 (registers_from_string): Ditto.
18530 (register_data): Ditto.
18531 (supply_register): Ditto.
18532 (supply_register_by_name): Ditto.
18533 (collect_register): Ditto.
18534 (collect_register_as_string): Ditto.
18535 (collect_register_by_name): Ditto.
18536 * server.c (process_serial_event): Adjust.
18537 * linux-low.h (regset_fill_func, regset_store_func): Change
18538 prototype.
18539 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18540 Change prototype.
18541 * linux-low.c (get_stop_pc): Adjust.
18542 (check_removed_breakpoint): Adjust.
18543 (linux_wait_for_event): Adjust.
18544 (linux_resume_one_lwp): Adjust.
18545 (fetch_register): Add regcache parameter. Adjust.
18546 (usr_store_inferior_registers): Ditto.
18547 (regsets_fetch_inferior_registers): Ditto.
18548 (regsets_store_inferior_registers): Ditto.
18549 (linux_fetch_registers, linux_store_registers): Ditto.
18550 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18551 regcache. Adjust.
43aaf8b6
PA
18552 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18553 Ditto.
442ea881
PA
18554 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18555 prototype to take a regcache.
18556 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18557 * remote-utils.c (convert_ascii_to_int, outreg)
18558 (prepare_resume_reply): Change prototype to take a regcache.
18559 Adjust.
18560 * target.h (struct target_ops) <fetch_registers, store_registers>:
18561 Change prototype to take a regcache.
18562 (fetch_inferior_registers, store_inferior_registers): Change
18563 prototype to take a regcache. Adjust.
18564 * proc-service.c (ps_lgetregs): Adjust.
18565 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18566 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18567 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18568 take a regcache. Adjust.
18569 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18570 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18571 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18572 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18573 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18574 (cris_cannot_fetch_register):
18575 (cris_breakpoint_at): Change prototype to take a regcache.
18576 Adjust.
18577 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18578 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18579 to take a regcache. Adjust.
18580 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18581 Adjust.
18582 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18583 take a regcache. Adjust.
18584 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18585 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18586 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18587 * linux-mips-low.c (mips_get_pc):
18588 (mips_set_pc): Change prototype to take a regcache. Adjust.
18589 (mips_reinsert_addr): Adjust.
18590 (mips_collect_register): Change prototype to take a regcache.
18591 Adjust.
18592 (mips_supply_register):
18593 (mips_collect_register_32bit, mips_supply_register_32bit)
18594 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18595 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18596 * linux-ppc-low.c (ppc_supply_ptrace_register)
18597 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18598 (parse_spufs_run): Adjust.
18599 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18600 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18601 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18602 take a regcache. Adjust.
18603 * linux-s390-low.c (s390_collect_ptrace_register)
18604 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18605 (s390_set_pc): Change prototype to take a regcache. Adjust.
18606 (s390_arch_setup): Adjust.
18607 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18608 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18609 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18610 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18611 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18612 regcache. Adjust.
18613 (sparc_breakpoint_at): Adjust.
18614 * linux-xtensa-low.c (xtensa_fill_gregset):
18615 (xtensa_store_gregset):
18616 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18617 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18618 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18619 prototype to take a regcache. Adjust.
18620 * win32-arm-low.c (arm_fetch_inferior_register)
18621 (arm_store_inferior_register): Change prototype to take a
18622 regcache. Adjust.
18623 * win32-i386-low.c (i386_fetch_inferior_register)
18624 (i386_store_inferior_register): Change prototype to take a
18625 regcache. Adjust.
18626 * win32-low.c (child_fetch_inferior_registers)
18627 (child_store_inferior_registers): Change prototype to take a
18628 regcache. Adjust.
18629 (win32_wait): Adjust.
18630 (win32_fetch_inferior_registers): Change prototype to take a
18631 regcache. Adjust.
18632 (win32_store_inferior_registers): Adjust.
18633 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18634 store_inferior_register>: Change prototype to take a regcache.
18635
60c3d7b0
DE
186362010-01-20 Doug Evans <dje@google.com>
18637
18638 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18639 #ifdef.
18640 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18641 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18642
dc146f7c
VP
186432010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18644
18645 * linux-low.c (linux_core_of_thread): New.
18646 (compare_ints, show_process, list_threads): New.
18647 (linux_qxfer_osdata): Report threads and cores.
18648 (linux_target_op): Register linux_core_of_thread.
18649 * remote-utils.c (prepare_resume_reply): Report the core.
18650 (buffer_xml_printf): Support %d specifier.
18651 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18652 New.
18653 (handle_query): Handle qXfer:threads. Announce availability
18654 thereof.
18655 * target.h (struct target_ops): New field core_of_thread.
18656
7803799a
UW
186572010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18658
18659 * Makefile.in (clean): Remove new generated files.
18660 (reg-s390.o, reg-s390.c): Remove rules.
18661 (reg-s390x.o, reg-s390x.c): Likewise.
18662 (s390-linux32.o, s390-linux32.c): Add rules.
18663 (s390-linux64.o, s390-linux64.c): Likewise.
18664 (s390x-linux64.o, s390x-linux64.c): Likewise.
18665 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18666 * linux-s390-low.c: Include <elf.h>.
18667 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18668 (init_registers_s390): Remove prototype.
18669 (init_registers_s390x): Likewise.
18670 (init_registers_s390_linux32): Add prototype.
18671 (init_registers_s390_linux64): Likewise.
18672 (init_registers_s390x_linux64): Likewise.
18673 (s390_num_regs_3264): New define.
18674 (s390_regmap_3264): New global variable.
18675 (s390_cannot_fetch_register): Remove obsolete check.
18676 (s390_cannot_store_register): Likewise.
18677 (s390_collect_ptrace_register): Handle upper/lower register halves.
18678 (s390_supply_ptrace_register): Likewise.
18679 (s390_fill_gregset): Update to register number changes.
18680 (s390_get_hwcap): New routine.
18681 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18682 Install appropriate regmap and register set.
18683
6e7ffa39
JB
186842010-01-01 Joel Brobecker <brobecker@adacore.com>
18685
18686 * server.c (gdbserver_version): Update copyright year to 2010.
18687 * gdbreplay.c (gdbreplay_version): Likewise.
18688
957f3f49
DE
186892009-12-28 Doug Evans <dje@google.com>
18690
18691 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18692 elf/external.h. Include <elf.h> instead but only if necessary.
18693
ca5c370d
PA
186942009-12-28 Pedro Alves <pedro@codesourcery.com>
18695
18696 * linux-low.c (linux_remove_process): Remove `detaching'
18697 parameter. Don't release/detach from thread_db here.
18698 (linux_kill): Release/detach from thread_db here, ...
18699 (linux_detach): ... and here, before actually detaching.
18700 (linux_wait_1): ... and here, when a process exits.
18701 * thread-db.c (any_thread_of): New.
18702 (thread_db_free): Switch the current inferior to a thread of the
18703 passed in process.
18704
4ee62156
DE
187052009-12-21 Doug Evans <dje@google.com>
18706
d90e6a88
DE
18707 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18708
c5f62d5f
DE
18709 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18710 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18711 warning ifndef __NR_tkill. Move setting of errno there too.
18712 Delete unnecessary resetting of errno after syscall.
18713 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18714
10e86dd7
DE
18715 * configure.ac: Check for dladdr.
18716 * config.in: Regenerate.
18717 * configure: Regenerate.
18718 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18719 (try_thread_db_load): Update.
18720
4ee62156
DE
18721 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18722
00f515da
DE
187232009-12-18 Doug Evans <dje@google.com>
18724
e9464885
DE
18725 * event-loop.c: Include unistd.h if it exists.
18726
07d4f67e
DE
18727 * linux-low.c (my_waitpid): Move definition away from being in
18728 between linux_tracefork_child/linux_test_for_tracefork.
18729
00f515da
DE
18730 * gdb_proc_service.h (psaddr_t): Fix type.
18731 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18732 signature to match glibc.
18733
1de1badb
DE
187342009-12-16 Doug Evans <dje@google.com>
18735
18736 * linux-low.c (linux_read_memory): Fix argument to read.
18737
aeeb81d1
PA
187382009-11-26 Pedro Alves <pedro@codesourcery.com>
18739
18740 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18741 events, don't leave current_inferior pointing at null.
18742
10357975
PA
187432009-11-26 Pedro Alves <pedro@codesourcery.com>
18744
18745 * win32-low.c (LOG): Delete.
18746 (OUTMSG): Output to stderr.
18747 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18748 on compile time LOG macro.
18749 (win32_wait): Fix debug output.
18750
cf6e3471
PA
187512009-11-26 Pedro Alves <pedro@codesourcery.com>
18752
18753 * win32-low.c (win32_add_one_solib): If the dll name is
18754 "ntdll.dll", prepend the system directory to the dll path.
18755
0c85e18e
MK
187562009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18757
18758 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18759
9ac544ce 187602009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18761 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18762
18763 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18764 * configure.ac: Check for __mcoldfire__ and set
18765 gdb_cv_m68k_is_coldfire.
18766 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18767 reg-cf.o and reg-m68k.o.
18768 * configure: Regenerated.
18769
fd7dd3e6
PA
187702009-11-16 Pedro Alves <pedro@codesourcery.com>
18771
18772 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18773 Pass it to thread_db_free.
18774 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18775 proper `detaching' argument to linux_remove_process.
18776 * linux-low.h (thread_db_free): Add `detaching' parameter.
18777 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18778 to thread_db_free.
18779 (thread_db_free): Add `detaching' parameter. Only
18780 call td_ta_clear_event if detaching from process.
18781
75aa492e
MK
187822009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18783
18784 * thread-db.c (thread_db_free): Fix typo.
18785
21e1bee4
PP
187862009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18787
18788 PR gdb/10838
18789 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18790
8838b45e
NS
187912009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18792
18793 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18794 with an i686 compiler.
18795 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18796 needed.
18797 * configure: Rebuilt.
18798
8a35fb51
SL
187992009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18800
18801 PR gdb/10783
18802
18803 * server.c (handle_search_memory_1): Correct read_addr initialization
18804 in loop for searching subsequent chunks.
18805
96f15937
PP
188062009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18807
18808 * configure.ac: New --with-libthread-db option.
18809 * thread-db.c: Allow direct dependence on libthread_db.
18810 (thread_db_free): Adjust.
18811 * config.in: Regenerate.
18812 * configure: Likewise.
889bf7c5 18813
5f7d1694
PP
188142009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18815
18816 PR gdb/10757
18817 * thread-db.c (attach_thread): New function.
18818 (maybe_attach_thread): Return success/failure.
18819 (find_new_threads_callback): Adjust.
889bf7c5
PA
18820 (thread_db_find_new_threads): Loop until no new threads.
18821
88e3b899
PA
188222009-10-13 Pedro Alves <pedro@codesourcery.com>
18823
18824 * proc-service.c (ps_lgetregs): Formatting.
18825
cdbfd419
PP
188262009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18827
18828 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18829 * configure.ac: Adjust.
18830 * linux-low.h (struct process_info_private): Move members to struct
18831 thread_db.
18832 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18833 * linux-low.c (linux_remove_process): Adjust.
18834 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18835 * server.c (handle_query): Move code ...
18836 (handle_monitor_command): ... here. New function.
18837 * target.h (struct target_ops): New member.
18838 * thread-db.c (struct thread_db): New.
18839 (libthread_db_search_path): New variable.
18840 (thread_db_create_event, thread_db_enable_reporting)
18841 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18842 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18843 (try_thread_db_load_1, dladdr_to_soname): New functions.
18844 (try_thread_db_load, thread_db_load_search): New functions.
18845 (thread_db_init): Search for libthread_db.
18846 (thread_db_free): New function.
18847 (thread_db_handle_monitor_command): Likewise.
18848 * config.in: Regenerate.
18849 * configure: Regenerate.
889bf7c5 18850
4168d2d6
UW
188512009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18852
18853 * spu-low.c (spu_kill): Wait for inferior to terminate.
18854 Call clear_inferiors.
18855 (spu_detach): Call clear_inferiors.
18856
81ecdfbb
RW
188572009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18858
18859 * aclocal.m4: Regenerate.
18860 * config.in: Likewise.
18861 * configure: Likewise.
18862
0b9ff2c0
UW
188632009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18864
18865 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18866 (parse_spufs_run): New function.
18867 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18868 (ppc_breakpoint_at): Handle SPU breakpoints.
18869
efcbbd14
UW
188702009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18871
18872 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18873 (SPUFS_MAGIC): Define.
18874 (spu_enumerate_spu_ids): New function.
18875 (linux_qxfer_spu): New function.
18876 (linux_target_ops): Install linux_qxfer_spu.
18877
f4d9bade
UW
188782009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18879
18880 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18881 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18882 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18883 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18884 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18885 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18886 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18887 (init_registers_powerpc_cell32l): Add prototype.
18888 (init_registers_powerpc_cell64l): Likewise.
18889 (ppc_arch_setup): Detect Cell/B.E. architecture.
18890
96e946ca
RW
188912009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18892
18893 * Makefile.in (datarootdir): New variable.
18894
58d6951d
DJ
188952009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18896
18897 * linux-low.c (linux_write_memory): Update debugging output.
18898 * Makefile.in (clean): Add new descriptions.
18899 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18900 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18901 * configure.srv: Add new files for arm*-*-linux*.
18902 * linux-arm-low.c: Add new declarations.
18903 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18904 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18905 (HWCAP_VFPv3D16): New.
18906 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18907 instead of __IWMMXT__.
18908 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18909 (arm_arch_setup): New.
18910 (target_regsets): Remove #ifdef. Add VFP regset.
18911 (the_low_target): Use arm_arch_setup.
18912
12b42a12
DJ
189132009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18914
18915 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18916 the main thread again.
18917
ac8c974e
AR
189182009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18919
18920 Adding Neutrino gdbserver.
18921 * configure: Regenerated.
18922 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18923 * configure.srv (i[34567]86-*-nto*): New target.
18924 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18925 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18926 (nto_comctrl) [__QNX__]: New function.
18927 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18928
4424e0c3 189292009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18930
18931 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18932 srv_tgtobj.
18933
912cf4ba
PA
189342009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18935 Pedro Alves <pedro@codesourcery.com>
18936
18937 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18938 don't support CONTEXT_EXTENDED_REGISTERS.
18939 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18940 (the_low_target): Install them.
18941 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18942 failing with ERROR_PIPE_NOT_CONNECTED.
18943
aa5ca48f
DE
189442009-06-30 Doug Evans <dje@google.com>
18945 Pierre Muller <muller@ics.u-strasbg.fr>
18946
18947 Add h/w watchpoint support to x86-linux, win32-i386.
18948 * Makefile.in (SFILES): Add i386-low.c
18949 (i386_low_h): Define.
18950 (i386-low.o): Add dependencies.
18951 (linux-x86-low.o): Add i386-low.h dependency.
18952 (win32-i386-low.o): Ditto.
18953 * i386-low.c: New file.
18954 * i386-low.h: New file.
18955 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18956 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18957 * linux-low.c (linux_add_process): Initialize arch_private.
18958 (linux_remove_process): Free arch_private.
18959 (add_lwp): Initialize arch_private.
18960 (delete_lwp): Free arch_private.
18961 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18962 provided.
18963 * linux-low.h (process_info_private): New member arch_private.
18964 (lwp_info): New member arch_private.
18965 (linux_target_ops): New members new_process, new_thread,
18966 prepare_to_resume.
18967 (ptid_of): New macro.
18968 * linux-x86-low.c: Include stddef.h, i386-low.h.
18969 (arch_process_info): New struct.
18970 (arch_lwp_info): New struct.
18971 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18972 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18973 (i386_dr_low_get_status): New function.
18974 (x86_insert_point, x86_remove_point): New functions.
18975 (x86_stopped_by_watchpoint): New function.
18976 (x86_stopped_data_address): New function.
18977 (x86_linux_new_process, x86_linux_new_thread): New functions.
18978 (x86_linux_prepare_to_resume): New function.
18979 (the_low_target): Add entries for insert_point, remove_point,
18980 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18981 prepare_to_resume.
18982 * server.c (debug_hw_points): New global.
18983 (monitor_show_help): Document set debug-hw-points.
18984 (handle_query): Process "set debug-hw-points".
18985 * server.h (debug_hw_points): Declare.
18986 (paddress): Declare.
18987 * utils.c (NUMCELLS, CELLSIZE): New macros.
18988 (get_sell, xsnprintf, paddress): New functions.
18989 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18990 remove_point, stopped_by_watchpoint, stopped_data_address.
18991 * win32-i386-low.c: Include i386-low.h.
18992 (debug_reg_state): Replaces dr.
18993 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18994 (i386_dr_low_get_status): New function.
18995 (i386_insert_point, i386_remove_point): New functions.
18996 (i386_stopped_by_watchpoint): New function.
18997 (i386_stopped_data_address): New function.
18998 (i386_initial_stuff): Update.
18999 (get_thread_context,set_thread_context,i386_thread_added): Update.
19000 (the_low_target): Add entries for insert_point,
19001 remove_point, stopped_by_watchpoint, stopped_data_address.
19002 * win32-low.c (win32_insert_watchpoint): New function.
19003 (win32_remove_watchpoint): New function.
19004 (win32_stopped_by_watchpoint): New function.
19005 (win32_stopped_data_address): New function.
19006 (win32_target_ops): Add entries for insert_watchpoint,
19007 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19008 * win32-low.h (win32_target_ops): New members insert_point,
19009 remove_point, stopped_by_watchpoint, stopped_data_address.
19010
d993e290
PA
190112009-06-25 Pedro Alves <pedro@codesourcery.com>
19012
19013 * server.c (process_serial_event): Re-return unsupported, not
19014 error, if the type isn't recognized. Re-allow supporting only
19015 insert or remove packets. Also call require_running for
19016 breakpoints. Add missing break statement to default case. Tidy.
19017 * target.h (struct target_ops): Rename insert_watchpoint to
19018 insert_point, and remove_watchpoint to remove_point.
19019
19020 * linux-low.h (struct linux_target_ops): Likewise.
19021 * linux-low.c (linux_insert_watchpoint): Rename to ...
19022 (linux_insert_point): ... this. Adjust.
19023 (linux_remove_watchpoint): Rename to ...
19024 (linux_remove_point): ... this. Adjust.
19025 (linux_target_ops): Adjust.
19026 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19027 (cris_insert_point): ... this.
19028 (cris_remove_watchpoint): Rename to ...
19029 (cris_remove_point): ... this.
19030 (the_low_target): Adjust.
19031
0f54c268
PM
190322009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19033
19034 * server.c (handle_v_kill): Pass signal_pid to
19035 kill_inferior if multi_process is zero.
19036
c6314022
AR
190372009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19038
19039 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19040 * target.h (target_ops): Comment for *_watchpoint to make it clear
19041 the functions can get types '0' and '1'.
19042
4463ce24
AR
190432009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19044
19045 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19046 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19047 * regcache.c (get_regcache): Likewise.
19048 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19049 * win32-low.c (child_fetch_inferior_registers): Remove check for
19050 regno 0.
19051
cf8fd78b
PA
190522009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19053 Pedro Alves <pedro@codesourcery.com>
19054
19055 * target.h (struct target_ops) <supports_multi_process>: New
19056 callback.
19057 (target_supports_multi_process): New.
19058 * server.c (handle_query): Even if GDB reports support, only
19059 enable multi-process if the target also supports it. Report
19060 multi-process support only if the target backend supports it.
19061 * linux-low.c (linux_supports_multi_process): New function.
19062 (linux_target_ops): Install it as target_supports_multi_process
19063 callback.
19064
47c0c975
DE
190652009-05-24 Doug Evans <dje@google.com>
19066
e09875d4
DE
19067 Global renaming of find_thread_pid to find_thread_ptid.
19068 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19069 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19070 All callers updated.
19071
e27d73f6
DE
19072 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19073 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19074 directly.
19075
47c0c975
DE
19076 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19077 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19078 (linux_resume_one_lwp): Ditto.
19079
2acc282a
DE
190802009-05-23 Doug Evans <dje@google.com>
19081
19082 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19083 from struct inferior_list_entry * to struct lwp_info *.
19084 All callers updated.
19085
9f1036c1
DE
190862009-05-13 Doug Evans <dje@google.com>
19087
19088 * linux-x86-low.c: Don't include assert.h.
19089 (x86_siginfo_fixup): Use fatal, not assert.
19090 (x86_arch_setup): Fix comment.
19091
d0722149
DE
190922009-05-12 Doug Evans <dje@google.com>
19093
19094 Biarch support for i386/amd64 gdbserver.
19095 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19096 Add linux-x86-low.c.
19097 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19098 (linux-x86-low.o): Add.
19099 * linux-x86-64-low.c: Delete.
19100 * linux-i386-low.c: Delete.
19101 * linux-x86-low.c: New file.
19102 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19103 linux-x86-low.o.
19104 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19105 linux-x86-low.o.
19106 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19107 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19108 (linux_child_pid_to_exec_file): New function.
19109 (elf_64_header_p, elf_64_file_p): New functions.
19110 (siginfo_fixup): New function.
19111 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19112 give target a chance to convert layout.
19113 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19114 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19115
fdeb2a12
DE
191162009-05-07 Doug Evans <dje@google.com>
19117
19118 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19119 (regsets_store_inferior_registers): Ditto.
19120
a6dbe5df
PA
191212009-05-06 Pedro Alves <pedro@codesourcery.com>
19122
19123 PR server/10048
19124
19125 * linux-low.c (must_set_ptrace_flags): Delete.
19126 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19127 of the global.
19128 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19129 `lwp->must_set_ptrace_flags' instead.
ba42693b 19130 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19131 (linux_wait_1): ... not here.
19132
5091eb23
DE
191332009-04-30 Doug Evans <dje@google.com>
19134
9f767825
DE
19135 * inferiors.c (started_inferior_callback): New function.
19136 (attached_inferior_callback): New function.
19137 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19138 * server.c (print_started_pid, print_attached_pid): New functions.
19139 (detach_or_kill_for_exit): New function.
19140 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19141 * server.h (have_started_inferiors_p): Declare.
19142 (have_attached_inferiors_p): Declare.
19143
5091eb23
DE
19144 * inferiors.c (remove_process): Fix memory leak, free process.
19145 * linux-low.c (linux_remove_process): New function.
19146 (linux_kill): Call it instead of remove_process.
19147 (linux_detach, linux_wait_1): Ditto.
19148
155c8968
PA
191492009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19150
19151 * configure.srv: Add x86 Windows CE target.
19152
7fe519cb
UW
191532009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19154
19155 * inferiors.c (get_thread_process): Make global.
19156 * server.h (get_thread_process): Add prototype.
19157 * thread-db.c (find_one_thread): Use get_thread_process
19158 instead of current_process.
19159 (thread_db_get_tls_address): Do not crash if called when
19160 thread layer is not yet initialized.
19161
5472f405
UW
191622009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19163
19164 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19165 * spu-low.c (current_tid): Rename to ...
19166 (current_ptid): ... this.
19167 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19168 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19169 ptid_get_lwp (current_ptid) instead of current_tid.
19170 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19171 instead of current_tid. Use find_process_pid to verify pid
19172 argument is valid. Pass proper argument to remove_process.
19173 (spu_thread_alive): Compare current_ptid instead of current_tid.
19174 (spu_resume): Likewise.
19175
55ac2b99
PA
191762009-04-02 Pedro Alves <pedro@codesourcery.com>
19177
19178 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19179 variable.
19180
95954743
PA
191812009-04-01 Pedro Alves <pedro@codesourcery.com>
19182
19183 Implement the multiprocess extensions, and add linux multiprocess
19184 support.
19185
19186 * server.h (ULONGEST): Declare.
19187 (struct ptid, ptid_t): New.
19188 (minus_one_ptid, null_ptid): Declare.
19189 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19190 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19191 (struct inferior_list_entry): Change `id' type from unsigned from
19192 to ptid_t.
19193 (struct sym_cache, struct breakpoint, struct
19194 process_info_private): Forward declare.
19195 (struct process_info): Declare.
19196 (current_process): Declare.
19197 (all_processes): Declare.
19198 (initialize_inferiors): Declare.
19199 (add_thread): Adjust to use ptid_t.
19200 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19201 (add_process, remove_process, find_thread_pid): Declare.
19202 (find_inferior_id): Adjust to use ptid_t.
19203 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19204 (multi_process): Declare.
19205 (push_event): Adjust to use ptid_t.
19206 (read_ptid, write_ptid): Declare.
19207 (prepare_resume_reply): Adjust to use ptid_t.
19208 (clear_symbol_cache): Declare.
19209 * inferiors.c (all_processes): New.
19210 (null_ptid, minus_one_ptid): New.
19211 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19212 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19213 (add_thread): Change unsigned long to ptid. Remove gdb_id
19214 parameter. Adjust.
19215 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19216 (gdb_id_to_thread): Rename to ...
19217 (find_thread_pid): ... this. Change unsigned long to ptid.
19218 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19219 (loaded_dll, pull_pid_from_list): Adjust.
19220 (add_process, remove_process, find_process_pid)
19221 (get_thread_process, current_process, initialize_inferiors): New.
19222 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19223 (struct target_waitstatus) <related_pid>: Ditto.
19224 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19225 return type to int.
19226 (struct target_ops) <join>: Add `pid' argument.
19227 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19228 (struct target_ops) <wait>: Add `ptid' field. Change return type
19229 to ptid.
19230 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19231 (mywait): Add `ptid' argument. Change return type to ptid_t.
19232 (target_pid_to_str): Declare.
19233 * target.c (set_desired_inferior): Adjust to use ptids.
19234 (mywait): Add new `ptid' argument. Adjust.
19235 (target_pid_to_str): New.
19236 * mem-break.h (free_all_breakpoints): Declare.
19237 * mem-break.c (breakpoints): Delelete.
19238 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19239 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19240 to use per-process breakpoint list.
19241 (free_all_breakpoints): New.
19242 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19243 (symbol_cache, all_symbols_looked_up): Delete.
19244 (hexchars): New.
19245 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19246 read_ptid): New.
19247 (prepare_resume_reply): Change ptid argument's type from unsigned
19248 long to ptid_t. Adjust. Implement W;process and X;process.
19249 (free_sym_cache, clear_symbol_cache): New.
19250 (look_up_one_symbol): Adjust to per-process symbol cache. *
19251 * server.c (cont_thread, general_thread, step_thread): Change type
19252 to ptid_t.
19253 (attached): Delete.
19254 (multi_process): New.
19255 (last_ptid): Change type to ptid_t.
19256 (struct vstop_notif) <ptid>: Change type to ptid_t.
19257 (queue_stop_reply, push_event): Change `ptid' argument's type to
19258 ptid_t.
19259 (discard_queued_stop_replies): Add `pid' argument.
19260 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19261 changes. Don't reference the `attached' global.
19262 (attach_inferior): Adjust to mywait interface changes.
19263 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19264 features. Handle and report "multiprocess+". Handle
19265 "qAttached:PID".
19266 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19267 changes.
19268 (handle_v_kill): New.
19269 (handle_v_stopped): Adjust to use target_pid_to_str.
19270 (handle_v_requests): Allow multiple attaches and runs when
19271 multiprocess extensions are in effect. Handle "vKill".
19272 (myresume): Adjust to use ptids.
19273 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19274 (handle_status): Adjust to discard_queued_stop_replies interface
19275 change.
19276 (first_thread_of, kill_inferior_callback)
19277 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19278 (main): Call initialize_inferiors. Adjust to use ptids, killing
19279 and detaching from all inferiors. Handle multiprocess packet
19280 variants.
19281 * linux-low.h: Include gdb_proc_service.h.
19282 (struct process_info_private): New.
19283 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19284 <lwpid_of>: Use ptid_get_lwp.
19285 (get_lwp_thread): Adjust.
19286 (struct lwp_info): Add `dead' member.
19287 (find_lwp_pid): Declare.
19288 * linux-low.c (thread_db_active): Delete.
19289 (new_inferior): Adjust comment.
19290 (inferior_pid): Delete.
19291 (linux_add_process): New.
19292 (handle_extended_wait): Adjust.
19293 (add_lwp): Change unsigned long to ptid.
19294 (linux_create_inferior): Add process to processes table. Adjust
19295 to use ptids. Don't set new_inferior here.
19296 (linux_attach_lwp): Rename to ...
19297 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19298 it. Adjust to use ptids.
19299 (linux_attach_lwp): New.
19300 (linux_attach): Add process to processes table. Don't set
19301 new_inferior here.
19302 (struct counter): New.
19303 (second_thread_of_pid_p, last_thread_of_process_p): New.
19304 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19305 multiple processes.
19306 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19307 processes. Remove process from process table.
19308 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19309 to multiple processes.
19310 (any_thread_of): New.
19311 (linux_detach): Add `pid' argument, and handle it. Remove process
19312 from processes table.
19313 (linux_join): Add `pid' argument. Handle it.
19314 (linux_thread_alive): Change unsighed long argument to ptid_t.
19315 Consider dead lwps as not being alive.
19316 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19317 threads we're not interested in.
19318 (same_lwp, find_lwp_pid): New.
19319 (linux_wait_for_lwp): Change `pid' argument's type from int to
19320 ptid_t. Adjust.
19321 (linux_wait_for_event): Rename to ...
19322 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19323 from int to ptid_t. Adjust.
19324 (linux_wait_for_event): New.
19325 (linux_wait_1): Add `ptid' argument. Change return type to
19326 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19327 that exit from the process table.
19328 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19329 Adjust.
19330 (mark_lwp_dead): New.
19331 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19332 stopping all threads, mark its main lwp as dead.
19333 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19334 ptids.
19335 (fetch_register, usr_store_inferior_registers)
19336 (regsets_fetch_inferior_registers)
19337 (regsets_store_inferior_registers, linux_read_memory)
19338 (linux_write_memory): Inline `inferior_pid'.
19339 (linux_look_up_symbols): Adjust to use per-process
19340 `thread_db_active'.
19341 (linux_request_interrupt): Adjust to use ptids.
19342 (linux_read_auxv): Inline `inferior_pid'.
19343 (initialize_low): Don't reference thread_db_active.
19344 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19345 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19346 (ps_getpid): Return the pid of the current inferior.
19347 * thread-db.c (proc_handle, thread_agent): Delete.
19348 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19349 per-process data.
19350 (find_one_thread): Change argument type to ptid_t. Adjust to
19351 per-process data.
19352 (maybe_attach_thread): Adjust to per-process data and ptids.
19353 (thread_db_find_new_threads): Ditto.
19354 (thread_db_init): Ditto.
19355 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19356 processes table. Adjust to use ptids.
19357 (spu_kill, spu_detach): Adjust interface. Remove process from
19358 processes table.
19359 (spu_join, spu_thread_alive): Adjust interface.
19360 (spu_wait): Adjust interface. Remove process from processes
19361 table. Adjust to use ptids.
19362 * win32-low.c (current_inferior_tid): Delete.
19363 (current_inferior_ptid): New.
19364 (debug_event_ptid): New.
19365 (thread_rec): Take a ptid. Adjust.
19366 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19367 (child_delete_thread): Ditto.
19368 (do_initial_child_stuff): Add `attached' argument. Add process to
19369 processes table.
19370 (child_fetch_inferior_registers, child_store_inferior_registers):
19371 Adjust.
19372 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19373 (win32_attach): Pass 1 to do_initial_child_stuff.
19374 (win32_kill): Adjust interface. Remove process from processes
19375 table.
19376 (win32_detach): Ditto.
19377 (win32_join): Adjust interface.
19378 (win32_thread_alive): Take a ptid.
19379 (win32_resume): Adjust to use ptids.
19380 (get_child_debug_event): Ditto.
19381 (win32_wait): Adjust interface. Remove exiting process from
19382 processes table.
19383
bd99dc85
PA
193842009-04-01 Pedro Alves <pedro@codesourcery.com>
19385
19386 Non-stop mode support.
19387
19388 * server.h (non_stop): Declare.
19389 (gdb_client_data, handler_func): Declare.
19390 (delete_file_handler, add_file_handler, start_event_loop):
19391 Declare.
19392 (handle_serial_event, handle_target_event, push_event)
19393 (putpkt_notif): Declare.
19394 * target.h (enum resume_kind): New.
19395 (struct thread_resume): Replace `step' field by `kind' field.
19396 (TARGET_WNOHANG): Define.
19397 (struct target_ops) <wait>: Add `options' argument.
19398 <supports_non_stop, async, start_non_stop>: New fields.
19399 (target_supports_non_stop, target_async): New.
19400 (start_non_stop): Declare.
19401 (mywait): Add `options' argument.
19402 * target.c (mywait): Add `options' argument. Print child exit
19403 notifications here.
19404 (start_non_stop): New.
19405 * server.c (non_stop, own_buf, mem_buf): New globals.
19406 (struct vstop_notif): New.
19407 (notif_queue): New global.
19408 (queue_stop_reply, push_event, discard_queued_stop_replies)
19409 (send_next_stop_reply): New.
19410 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19411 interface changes.
19412 (attach_inferior): In non-stop mode, don't wait for the target
19413 here.
19414 (handle_general_set): Handle QNonStop.
19415 (handle_query): When handling qC, return the current general
19416 thread, instead of the first thread of the list.
19417 (handle_query): If the backend supports non-stop mode, include
19418 QNonStop+ in the qSupported query response.
19419 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19420 and non-stop mode.
19421 (handle_v_attach, handle_v_run): Handle non-stop mode.
19422 (handle_v_stopped): New.
19423 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19424 (myresume): Adjust to use resume_kind. Handle non-stop.
19425 (queue_stop_reply_callback): New.
19426 (handle_status): Handle non-stop mode.
19427 (main): Clear non_stop flag on reconnection. Use the event-loop.
19428 Refactor serial protocol handling from here ...
19429 (process_serial_event): ... to this new function. When GDB
19430 selects any thread, select one here. In non-stop mode, wait until
19431 GDB acks all pending events before exiting.
19432 (handle_serial_event, handle_target_event): New.
19433 * remote-utils.c (remote_open): Install remote_desc in the event
19434 loop.
19435 (remote_close): Remove remote_desc from the event loop.
19436 (putpkt_binary): Rename to...
19437 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19438 (putpkt_binary): New as wrapper around putpkt_binary_1.
19439 (putpkt_notif): New.
19440 (prepare_resume_reply): In non-stop mode, don't change the
19441 general_thread.
19442 * event-loop.c: New.
19443 * Makefile.in (OBJ): Add event-loop.o.
19444 (event-loop.o): New rule.
19445
19446 * linux-low.h (pid_of): Moved here.
19447 (lwpid_of): New.
19448 (get_lwp_thread): Use lwpid_of.
19449 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19450 * linux-low.c (pid_of): Delete.
19451 (inferior_pid): Use lwpid_of.
19452 (linux_event_pipe): New.
19453 (target_is_async_p): New.
19454 (delete_lwp): New.
19455 (handle_extended_wait): Use lwpid_of.
19456 (add_lwp): Don't set lwpid field.
19457 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19458 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19459 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19460 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19461 first. Adjust to linux_wait_for_event interface changes. Use
19462 lwpid_of.
19463 (linux_detach): Don't delete the main lwp here.
19464 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19465 (status_pending_p): Don't consider explicitly suspended lwps.
19466 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19467 pointer. Add OPTIONS argument. Change return type to int. Use
19468 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19469 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19470 pointer. Add status pointer argument. Return a pid instead of a
19471 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19472 changes. In non-stop mode, don't switch to a random thread.
19473 (linux_wait): Rename to...
19474 (linux_wait_1): ... this. Add target_options argument, and handle
19475 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19476 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19477 clean exit and signal exit code. Don't stop all threads in
19478 non-stop mode. In all-stop mode, only stop all threads when
19479 reporting a stop to GDB. Handle explicit thread stop requests.
19480 (async_file_flush, async_file_mark): New.
19481 (linux_wait): New.
19482 (send_sigstop): Use lwpid_of.
19483 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19484 interface changes. In non-stop mode, don't switch to a random
19485 thread.
19486 (linux_resume_one_lwp): Use lwpid_of.
19487 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19488 (linux_resume_one_thread): ... this. Handle resume_stop. In
19489 non-stop mode, don't look for pending flag in all threads.
19490 (resume_status_pending_p): Don't consider explicitly suspended
19491 threads.
19492 (my_waitpid): Reimplement. Emulate __WALL.
19493 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19494 Use lwpid_of.
19495 (sigchld_handler, linux_supports_non_stop, linux_async)
19496 (linux_start_non_stop): New.
19497 (linux_target_ops): Register linux_supports_non_stop, linux_async
19498 and linux_start_non_stop.
19499 (initialize_low): Install SIGCHLD handler.
19500 * thread-db.c (thread_db_create_event, find_one_thread)
19501 (thread_db_get_tls_address): Use lwpid_of.
19502 * win32-low.c (win32_detach): Adjust to use resume_kind.
19503 (win32_wait): Add `options' argument.
19504 * spu-low.c (spu_resume): Adjust to use resume_kind.
19505 (spu_wait): Add `options' argument.
19506
5b1c542e
PA
195072009-04-01 Pedro Alves <pedro@codesourcery.com>
19508
19509 Decouple target code from remote protocol.
19510
19511 * target.h (enum target_waitkind): New.
19512 (struct target_waitstatus): New.
19513 (struct target_ops) <wait>: Return an unsigned long. Take a
19514 target_waitstatus pointer instead of a char pointer.
19515 (mywait): Likewise.
19516 * target.c (mywait): Change prototype to return an unsigned long.
19517 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19518 * server.h (thread_from_wait, old_thread_from_wait): Delete
19519 declarations.
19520 (prepare_resume_reply): Change prototype to take a
19521 target_waitstatus.
19522 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19523 (last_status, last_ptid): New.
19524 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19525 pid instead of a signal.
19526 (attach_inferior): Remove "status" and "signal" parameters.
19527 Adjust.
19528 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19529 not as an address.
19530 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19531 (handle_v_requests, myresume): Remove "status" and "signal"
19532 parameters. Adjust.
19533 (handle_status): New.
19534 (main): Delete local `status'. Adjust.
19535 * remote-utils.c: Include target.h.
19536 (prepare_resume_reply): Change prototype to take a
19537 target_waitstatus. Adjust.
19538
19539 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19540 interface.
19541 * spu-low.c (spu_wait): Adjust.
19542 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19543 Delete.
19544 (win32_wait): Adjust.
19545
2bd7c093
PA
195462009-04-01 Pedro Alves <pedro@codesourcery.com>
19547
19548 * target.h (struct thread_resume): Delete leave_stopped member.
19549 (struct target_ops): Add a `n' argument to the `resume' callback.
19550 * server.c (start_inferior): Adjust.
19551 (handle_v_cont, myresume): Adjust.
19552 * linux-low.c (check_removed_breakpoint): Adjust to resume
19553 interface change, and to removed leave_stopped field.
19554 (resume_ptr): Delete.
19555 (struct thread_resume_array): New.
19556 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19557 resume interface change.
19558 (linux_continue_one_thread, linux_queue_one_thread)
19559 (resume_status_pending_p): Check if the resume field is NULL
19560 instead of checking the leave_stopped member.
19561 (linux_resume): Adjust to the target resume interface change.
19562 * spu-low.c (spu_resume): Adjust to the target resume interface
19563 change.
19564 * win32-low.c (win32_detach, win32_resume): Ditto.
19565
c35fafde
PA
195662009-04-01 Pedro Alves <pedro@codesourcery.com>
19567
19568 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19569 flag.
19570 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19571 pending.
19572 (linux_continue_one_thread): Only preserve the stepping flag if
19573 there's a pending breakpoint.
19574
0a59d50b
PA
195752009-03-31 Pedro Alves <pedro@codesourcery.com>
19576
19577 * server.c (main): After the inferior having exited, call
19578 remote_close before exiting gdbserver.
19579
f04c6d38
TJB
195802009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19581
19582 Fix size of FPSCR in Power 7 processors.
19583 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19584 (PPC_FEATURE_HAS_DFP): New #define.
19585 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19586 size of the FPSCR.
19587
78e5cee6
PA
195882009-03-23 Pedro Alves <pedro@codesourcery.com>
19589
19590 * server.c (handle_query) Whitespace and formatting.
19591
1b3f6016
PA
195922009-03-22 Pedro Alves <pedro@codesourcery.com>
19593
19594 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19595 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19596 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19597 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19598 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19599 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19600 Makefile.in, configure.ac: Fix whitespace throughout.
19601 * configure: Regenerate.
19602
a07b2135
PA
196032009-03-22 Pedro Alves <pedro@codesourcery.com>
19604
19605 * inferiors.c (find_inferior): Make it safe for the callback
19606 function to delete the currently iterated inferior.
19607
67cc2626
PA
196082009-03-22 Pedro Alves <pedro@codesourcery.com>
19609
19610 * Makefile.in (linuw_low_h): Move higher.
19611 (thread-db.o): Depend on $(linux_low_h).
19612
54a0b537
PA
196132009-03-17 Pedro Alves <pedro@codesourcery.com>
19614
19615 Rename "process" to "lwp" throughout.
19616
19617 * linux-low.c (all_processes): Rename to...
19618 (all_lwps): ... this.
19619 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19620 (add_process): Rename to ...
19621 (add_lwp): ... this. Adjust.
19622 (linux_create_inferior): Adjust.
19623 (linux_attach_lwp): Adjust.
19624 (linux_attach): Adjust.
19625 (linux_kill_one_process): Rename to ...
19626 (linux_kill_one_lwp): ... this. Adjust.
19627 (linux_kill): Adjust.
19628 (linux_detach_one_process): Rename to ...
19629 (linux_detach_one_lwp): ... this. Adjust.
19630 (linux_detach): Adjust.
19631 (check_removed_breakpoint): Adjust.
19632 (status_pending_p): Adjust.
19633 (linux_wait_for_process): Rename to ...
19634 (linux_wait_for_lwp): ... this. Adjust.
19635 (linux_wait_for_event): Adjust.
19636 (send_sigstop): Adjust.
19637 (wait_for_sigstop): Adjust.
19638 (stop_all_processes): Rename to ...
19639 (stop_all_lwps): ... this.
19640 (linux_resume_one_process): Rename to ...
19641 (linux_resume_one_lwp): ... this. Adjust.
19642 (linux_set_resume_request, linux_continue_one_thread)
19643 (linux_queue_one_thread, resume_status_pending_p)
19644 (usr_store_inferior_registers, regsets_store_inferior_registers)
19645 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19646 Adjust.
19647 * linux-low.h (get_process): Rename to ...
19648 (get_lwp): ... this. Adjust.
19649 (get_thread_process): Rename to ...
19650 (get_thread_lwp): ... this. Adjust.
19651 (get_process_thread): Rename to ...
19652 (get_lwp_thread): ... this. Adjust.
19653 (struct process_info): Rename to ...
19654 (struct lwp_info): ... this.
19655 (all_processes): Rename to ...
19656 (all_lwps): ... this.
19657 * proc-service.c (ps_lgetregs): Adjust.
19658 * thread-db.c (thread_db_create_event, find_one_thread)
19659 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19660
0b16c5cf
PA
196612009-03-14 Pedro Alves <pedro@codesourcery.com>
19662
19663 * server.c (handle_query): Handle "qAttached".
19664
32de4b9d
NS
196652009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19666
19667 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19668 GPLv3, update license URL.
19669
2aecd87f
DE
196702009-03-01 Doug Evans <dje@google.com>
19671
93efd302 19672 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19673 (server_h): Add gdb_signals.h.
19674 (signals.o): Update.
19675 * server.h (target_signal_from_host,target_signal_to_host_p)
19676 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19677
86b1f9c5
PM
196782009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19679
19680 * remote-utils.c (getpkt): Also generate remote-debug
19681 information if noack_mode is set.
19682
4aa995e1
PA
196832009-02-06 Pedro Alves <pedro@codesourcery.com>
19684
19685 * server.c (handle_query): Report qXfer:siginfo:read and
19686 qXfer:siginfo:write as supported and handle them.
19687 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19688 * linux-low.c (linux_xfer_siginfo): New.
19689 (linux_target_ops): Set it.
19690
62709adf
PA
196912009-01-26 Pedro Alves <pedro@codesourcery.com>
19692
19693 * server.c (gdbserver_usage): Mention --remote-debug.
19694 (main): Accept '--remote-debug' switch.
19695
aef93bd7
DE
196962009-01-18 Doug Evans <dje@google.com>
19697
19698 * regcache.c (new_register_cache): No need to check result of xcalloc.
19699 * server.c (handle_search_memory): Back out calls to xmalloc,
19700 result is checked and error is returned to user upon failure.
19701 (handle_query): Ditto. Add more checks for result of malloc.
19702 (handle_v_cont): Check result of malloc, report error back to
19703 user upon failure.
19704 (handle_v_run): Ditto. Call freeargv.
19705 * server.h (freeargv): Declare.
19706 * utils.c (freeargv): New fn.
19707
54363045
DE
197082009-01-15 Doug Evans <dje@google.com>
19709
f626972c
DE
19710 * gdbreplay.c (perror_with_name): Make arg const char *.
19711 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19712 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19713 * utils.c (perror_with_name): Make arg const char *.
54363045 19714
18aae699
PA
197152009-01-14 Pedro Alves <pedro@codesourcery.com>
19716
19717 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19718 when handling a EXIT_PROCESS_DEBUG_EVENT.
19719
ff703abe
JB
197202009-01-06 Joel Brobecker <brobecker@adacore.com>
19721
19722 * gdbreplay.c (gdbreplay_version): Update copyright year.
19723 * server.c (gdbserver_version): Likewise.
19724
f21cc1a2 197252009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19726
19727 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19728 (handle_extended_wait): Improve comment.
0e21c1ec 19729
bca929d3
DE
197302008-12-13 Doug Evans <dje@google.com>
19731
19732 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19733 * server.h (ATTR_MALLOC): New macro.
19734 (xmalloc,xcalloc,xstrdup): Declare.
19735 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19736 * inferiors.c: Ditto.
19737 * linux-low.c: Ditto.
19738 * mem-break.c: Ditto.
19739 * regcache.c: Ditto.
19740 * remote-utils.c: Ditto.
19741 * server.c: Ditto.
19742 * target.c: Ditto.
19743 * win32-low.c: Ditto.
19744
97438e3f
DE
197452008-12-12 Doug Evans <dje@google.com>
19746
896c7fbb
DE
19747 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19748 in debugging printf.
19749
97438e3f
DE
19750 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19751
e3b886f8
DE
197522008-12-09 Doug Evans <dje@google.com>
19753
19754 * linux-low.h (struct process_info): Delete member tid, unused.
19755 * thread-db.c (find_one_thread): Update.
19756 (maybe_attach_thread): Update.
19757
07e059b5
VP
197582008-12-02 Pedro Alves <pedro@codesourcery.com>
19759
889bf7c5
PA
19760 * target.h (struct target_ops): Add qxfer_osdata member.
19761 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19762 and dirent.h.
19763 (linux_qxfer_osdata): New functions.
19764 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19765 callback.
19766 * server.c (handle_query): Handle "qXfer:osdata:read:".
19767 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19768 (buffer_xml_printf): New functions.
19769 * server.h (struct buffer): New.
19770 (buffer_grow_str, buffer_grow_str0): New macros.
19771 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19772 (buffer_xml_printf): Declare.
07e059b5 19773
4cab47ab
DE
197742008-11-24 Doug Evans <dje@google.com>
19775
19776 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19777
f142445f
DJ
197782008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19779
19780 * server.c (handle_v_run): Always use the supplied argument list.
19781
d0107bb6 197822008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19783
d0107bb6
BW
19784 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19785 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19786
2c4ad781
TJB
197872008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19788
19789 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19790 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19791 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19792 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19793 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19794 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19795 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19796 XML target descriptions.
19797 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19798 when inferior is running on an ISA 2.05 or later processor. Add
19799 special case to return offset for full 64-bit slot of FPSCR when
19800 in 32-bits.
19801
dfb64f85
DJ
198022008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19803
19804 * Makefile.in (SFILES, clean): Added sparc64 files.
19805 (reg-sparc64.o, reg-sparc64.c): New.
19806 * configure.srv (sparc*-*-linux*): New configuration.
19807 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19808 syscall arguments for SPARC.
19809 (regsets_store_inferior_registers): Likewise.
19810 * linux-sparc-low.c: New file.
19811
66b6e1dd
DE
198122008-10-21 Doug Evans <dje@google.com>
19813
19814 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19815 (READLINE_DIR,READLINE_DEP): Delete.
19816 (INTERNAL_CFLAGS): Update.
19817 (LINTFLAGS): Update.
19818
9b710a42
PA
198192008-10-10 Pedro Alves <pedro@codesourcery.com>
19820
19821 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19822 whole argv from the last run, not just argv[0].
19823
5822d809
PA
198242008-09-08 Pedro Alves <pedro@codesourcery.com>
19825
19826 * regcache.c (new_register_cache): Return NULL if the register
19827 cache size isn't known yet.
19828 (free_register_cache): Avoid dereferencing a NULL regcache.
19829
74aac56f
DJ
198302008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19831
19832 * configure.srv: Merge MIPS and MIPS64.
19833
400b20f5
MR
198342008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19835
19836 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19837
677c5bb1
LM
198382008-08-18 Luis Machado <luisgpm@br.ibm.com>
19839
19840 * Makefile.in: Add required vsx dependencies.
19841
19842 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19843 Declare init_registers_powerpc_vsx32l.
19844 Declare init_registers_powerpc_vsx64l.
19845 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19846 (ppc_arch_setup): Check for VSX in hwcap.
19847 (ppc_fill_vsxregset): New function.
19848 (ppc_store_vsxregset): New function.
19849 Add new VSX entry in regset_info target_regsets.
19850
19851 * configure.srv: Add new VSX dependencies.
19852
a6f3e723
SL
198532008-08-12 Pedro Alves <pedro@codesourcery.com>
19854
19855 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19856 (remote_open): Set or clear transport_is_reliable.
19857 (putpkt_binary): Don't expect acks in noack mode.
19858 (getpkt): Don't send ack/nac in noack mode.
19859 * server.c (handle_general_set): Handle QStartNoAckMode.
19860 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19861 qSupported.
19862 (main): Reset noack_mode on every connection.
19863 * server.h (noack_mode): Declare.
19864
a417dc56
RW
198652008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19866
19867 * Makefile.in (GDBREPLAY_OBS): New variable.
19868 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19869
3221518c
UW
198702008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19871 Daniel Jacobowitz <dan@codesourcery.com>
19872
19873 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19874 (usr_store_inferior_registers): Likewise.
19875 (regsets_store_inferior_registers): Likewise.
19876
ec56be1b
PA
198772008-07-31 Rolf Jansen <rj@surtec.com>
19878 Pedro Alves <pedro@codesourcery.com>
19879
19880 * configure.ac: Check for memmem declaration.
19881 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19882 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19883 (disable_packet_qfThreadInfo): Unconditionally compile.
19884 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19885 * configure, config.in: Regenerate.
19886
2fe5e3ff
DE
198872008-07-28 Doug Kwan <dougkwan@google.com>
19888
19889 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19890 (linux_write_memory): Remove declaration of errno.
19891
836acd6d
UW
198922008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19893
19894 * linux-low.c (handle_extended_wait): Do not use "status"
19895 variable uninitialized.
19896
aeba519e
PA
198972008-07-07 Pedro Alves <pedro@codesourcery.com>
19898
19899 * server.c (handle_v_attach): Inhibit reporting dll changes.
19900
db42f210
PA
199012008-06-27 Pedro Alves <pedro@codesourcery.com>
19902
19903 * remote-utils.c (prepare_resume_reply): If requested, don't
19904 output "thread:TID" in the T stop reply.
19905
19906 * server.c (disable_packet_vCont, disable_packet_Tthread)
19907 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19908 (handle_query): If requested, disable support for qC, qfThreadInfo
19909 and qsThreadInfo.
19910 (handle_v_requests): If requested, disable support for vCont.
19911 (gdbserver_show_disableable): New.
19912 (main): Handle --disable-packet and --disable-packet=LIST.
19913
19914 * server.h (disable_packet_vCont, disable_packet_Tthread)
19915 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19916
8e4c5421
CD
199172008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19918
19919 * server.c (gdbserver_usage): Mention --version.
19920
6e23a804
DJ
199212008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19922
19923 * Makefile.in (gdbreplay.o): New rule.
19924
90aa6a40
JM
199252008-06-06 Joseph Myers <joseph@codesourcery.com>
19926
19927 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19928 message, not gdbserver.
19929
c16158bc 199302008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19931 Nathan Sidwell <nathan@codesourcery.com>
19932 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19933
19934 * acinclude.m4: Include ../../config/acx.m4.
19935 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19936 * configure, config.in: Regenerate.
19937 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19938 * server.c (gdbserver_version): Print PKGVERSION.
19939 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19940 (main): Adjust gdbserver_usage calls.
19941 * gdbreplay.c (version, host_name): Add declarations.
19942 (gdbreplay_version, gdbreplay_usage): New.
19943 (main): Accept --version and --help options.
19944
aeb75bf5
DJ
199452008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19946
19947 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19948 (arm_breakpoint_at): Handle Thumb.
19949 (the_low_target): Add comment.
19950
76b233dd
UW
199512008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19952
19953 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19954
08388c79
DE
199552008-05-09 Doug Evans <dje@google.com>
19956
a3c83fae
DE
19957 * server.h (decode_search_memory_packet): Declare.
19958 * remote-utils.c (decode_search_memory_packet): New fn.
19959 * server.c (handle_search_memory_1): New fn.
08388c79
DE
19960 (handle_search_memory): New fn.
19961 (handle_query): Process qSearch:memory packets.
19962
bb9c3d36
UW
199632008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19964
19965 * regcache.c (registers_length): Remove.
19966 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19967 full register packet.
19968 * regcache.h (registers_length): Remove prototype.
19969 * server.h (PBUFSIZ): Define to 16384.
19970
7284e1be
UW
199712008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19972
19973 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19974 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19975 powerpc-64l.o, and powerpc-altivec64l.o.
19976 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19977 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19978 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19979 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19980 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19981 to srv_xmlfiles.
19982
19983 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19984 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19985 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19986 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19987 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19988 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19989 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19990 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19991 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19992 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19993 (clean): Update.
19994
19995 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19996 (init_registers_powerpc_32l): ... this new prototype.
19997 (init_registers_powerpc_32): Remove, replace by ...
19998 (init_registers_powerpc_altivec32l): ... this new prototype.
19999 (init_registers_powerpc_e500): Remove, replace by ...
20000 (init_registers_powerpc_e500l): ... this new prototype.
20001 (init_registers_ppc64): Remove, replace by ...
20002 (init_registers_powerpc_64l): ... this new prototype.
20003 (init_registers_powerpc_64): Remove, replace by ...
20004 (init_registers_powerpc_altivec64l): ... this new prototype.
20005 (ppc_num_regs): Set to 73.
20006 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20007 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20008 (ppc_cannot_store_register): Handle orig_r3 and trap.
20009 (ppc_arch_setup): Update init_registers_... calls.
20010 (ppc_fill_gregset): Handle orig_r3 and trap.
20011
20012 * inferiors.c (clear_inferiors): Reset current_inferior.
20013
fdc59709
PB
200142008-04-23 Paolo Bonzini <bonzini@gnu.org>
20015
889bf7c5
PA
20016 * acinclude.m4: Add override.m4.
20017 * configure: Regenerate.
fdc59709 20018
c9b2f845
UW
200192008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20020
20021 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20022 initial call to init_register_ppc64.
20023
550512b8
UW
200242008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20025
43aaf8b6
PA
20026 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20027 single powerpc*-*-linux* case.
550512b8
UW
20028 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20029
b6430ec3
UW
200302008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20031
20032 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20033 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20034 from reg_xmlfiles.
20035 * linux-ppc-low.c: Include <elf.h>.
20036 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20037 (ppc_hwcap): New global variable.
20038 (ppc_regmap): Remove __SPE__ #ifdef sections.
20039 (ppc_regmap_e500): New global variable.
20040 (ppc_cannot_store_register): Update __SPE__ special case.
20041 (ppc_get_hwcap): New function.
20042 (ppc_arch_setup): Use it to determine whether inferior supports
20043 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20044 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20045 Do not access registers if target does not support AltiVec.
20046 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20047 Do not access registers if target does not support SPE.
20048 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20049
52fa2412
UW
200502008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20051
20052 * linux-low.c (disabled_regsets, num_regsets): New.
20053 (use_regsets_p): Delete.
20054 (linux_wait_for_process): Clear disabled_regsets.
20055 (regsets_fetch_inferior_registers): Check and set it.
20056 (regsets_store_inferior_registers): Likewise.
20057 (linux_fetch_registers, linux_store_registers): Do not use
20058 use_regsets_p.
20059 (initialize_low): Allocate disabled_regsets.
20060
e28b3332
DJ
200612008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20062
20063 * Makefile.in (LIBOBJS): New.
20064 (OBS): Use LIBOBJS.
20065 (memmem.o): New rule.
20066 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20067 * configure: Regenerated.
20068
4536995d
UW
200692008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20070
20071 * server.c (handle_query): Never return "unsupported" for
20072 qXfer:features:read queries.
20073
221c031f
UW
200742008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20075
20076 * server.c (get_features_xml): Fix inverted condition.
20077 (handle_query): Always support qXfer:feature:read.
20078
ccd213ac
DJ
200792008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20080
20081 * server.c (wrapper_argv): New.
20082 (start_inferior): Handle wrapper_argv. If set, expect an extra
20083 trap.
20084 (gdbserver_usage): Document --wrapper.
20085 (main): Parse --wrapper.
20086
6fe305f7
UW
200872008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20088
20089 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20090 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20091 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20092 (ppc_set_pc): Likewise.
20093 (ppc_arch_setup): New function.
20094 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20095 of collect_register.
889bf7c5 20096 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20097
5b0a002e
UW
200982008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20099
20100 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20101 instead of linux-ppc64-low.o.
20102 * linux-ppc64-low.c: Remove file.
20103 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20104 (linux-ppc64-low.o): Remove rule.
20105
20106 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20107 (init_registers_powerpc_64): Likewise.
20108 (ppc_regmap): Conditionally define depending on __powerpc64__.
20109 (ppc_cannot_store_register): Do not special-case "fpscr" when
20110 compiled on __powerpc64__.
20111 (ppc_collect_ptrace_register): New function.
20112 (ppc_supply_ptrace_register): New function.
20113 (ppc_breakpoint): Change type to "unsigned int".
20114 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20115 (the_low_target): Conditionally provide initializers for the
889bf7c5 20116 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20117 collect_ptrace_register and supply_ptrace_register members.
20118
9b4b61c8
UW
201192008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20120
20121 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20122 * server.c (gdbserver_xmltarget): Define.
20123 (get_features_xml): Use it to replace "target.xml" and arch_string.
20124
20125 * configure.srv: Remove srv_xmltarget. Add XML files that were
20126 mentioned there to srv_xmlfiles instead. Remove conditional tests
20127 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20128 srv_xmlfiles and srv_regobj to include all possible choices.
20129 * configure.ac (srv_xmltarget): Remove.
20130 (srv_xmlfiles): Do not add "target.xml".
20131 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20132 checks for supplementary target information.
20133 * configure: Regenerate.
20134 * Makefile.in (XML_TARGET): Remove.
20135 (target.xml): Remove rule.
20136 (clean): Do not clean up target.xml.
20137 (.PRECIOUS): Do not mention target.xml.
20138
20139 * target.h (struct target_ops): Remove arch_string member.
20140 * linux-low.c (linux_arch_string): Remove.
20141 (linux_target_ops): Remove arch_string initializer.
20142 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20143 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20144 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20145 * spu-low.c (spu_arch_string): Remove.
20146 (spu_target_ops): Remove arch_string initializer.
20147 * win32-low.c (win32_arch_string): Remove.
20148 (win32_target_ops): Remove arch_string initializer.
20149 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20150 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20151 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20152
ee1a7ae4
UW
201532008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20154
20155 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20156 by collect_ptrace_register and supply_ptrace_register hooks.
20157 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20158 instead of checking for the_low_target.left_pad_xfer.
20159 (usr_store_inferior_registers): Use collect_ptrace_register callback
20160 instead of checking for the_low_target.left_pad_xfer.
20161
20162 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20163 (s390_supply_ptrace_register): Likewise.
20164 (s390_fill_gregset): Call s390_collect_ptrace_register.
20165 (the_low_target): Update.
20166
20167 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20168 (ppc_supply_ptrace_register): Likewise.
20169 (the_low_target): Update.
20170
20171 * linux-i386-low.c (the_low_target): Update.
20172 * linux-x86-64-low.c (the_low_target): Update.
20173
d61ddec4
UW
201742008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20175
20176 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20177 reg-s390.o and reg-s390x.o.
20178
20179 * linux-low.c (new_inferior): New global variable.
20180 (linux_create_inferior, linux_attach): Set it.
20181 (linux_wait_for_process): Call the_low_target.arch_setup after the
20182 target has stopped for the first time.
20183 (initialize_low): Do not call the_low_target.arch_setup.
20184
20185 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20186 (s390_set_pc): Likewise.
20187 (s390_arch_setup): New function.
20188 (the_low_target): Use s390_arch_setup as arch_setup routine.
20189
20190 * regcache.c (realloc_register_cache): New function.
20191 (set_register_cache): Call it for each existing regcache.
20192
d05b4ac3
UW
201932008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20194
20195 * server.h (init_registers): Remove prototype.
20196
20197 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20198 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20199 instead of init_registers ().
20200 * linux-arm-low.c (init_registers_arm): Add prototype.
20201 (init_registers_arm_with_iwmmxt): Likewise.
20202 (the_low_target): Add initializer for arch_setup field.
20203 * linux-cris-low.c (init_registers_cris): Add prototype.
20204 (the_low_target): Add initializer for arch_setup field.
20205 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20206 (the_low_target): Add initializer for arch_setup field.
20207 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20208 (the_low_target): Add initializer for arch_setup field.
20209 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20210 (the_low_target): Add initializer for arch_setup field.
20211 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20212 (the_low_target): Add initializer for arch_setup field.
20213 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20214 (the_low_target): Add initializer for arch_setup field.
20215 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20216 (init_registers_mips64_linux): Likewise.
20217 (the_low_target): Add initializer for arch_setup field.
20218 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20219 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20220 (the_low_target): Add initializer for arch_setup field.
20221 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20222 (init_registers_powerpc_64): Likewise.
20223 (the_low_target): Add initializer for arch_setup field.
20224 * linux-s390-low.c (init_registers_s390): Add prototype.
20225 (init_registers_s390x): Likewise.
20226 (the_low_target): Add initializer for arch_setup field.
20227 * linux-sh-low.c (init_registers_sh): Add prototype.
20228 (the_low_target): Add initializer for arch_setup field.
20229 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20230 (the_low_target): Add initializer for arch_setup field.
20231 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20232 (the_low_target): Add initializer for arch_setup field.
20233
20234 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20235 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20236 instead of init_registers ().
20237 * win32-arm-low.c (init_registers_arm): Add prototype.
20238 (the_low_target): Add initializer for arch_setup field.
20239 * win32-i386-low.c (init_registers_i386): Add prototype.
20240 (the_low_target): Add initializer for arch_setup field.
20241
20242 * spu-low.c (init_registers_spu): Add prototype.
20243 (initialize_low): Call initialie_registers_spu () instead of
20244 initialize_registers ().
20245
fd96d250
PA
202462008-02-19 Pedro Alves <pedro@codesourcery.com>
20247
20248 * server.c (handle_v_requests): When handling the vRun and vAttach
20249 packets, if already debugging a process, don't kill it. Return an
20250 error instead.
20251
d41b6bb4
DJ
202522008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20253
20254 * server.c (handle_query): Correct length check.
20255
5ac588cf
PA
202562008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20257
20258 * win32-low.c (do_initial_child_stuff): Add process handle
20259 parameter. Set current_process_handle and current_process_id from the
20260 parameters. Clear globals.
20261 (win32_create_inferior): Don't set current_process_handle and
20262 current_process_id here. Instead pass them on the call to
20263 do_initial_child_stuff.
20264 (win32_attach): Likewise.
20265 (win32_clear_inferiors): New.
20266 (win32_kill): Don't close the current process handle or the
20267 current thread handle here. Instead call win32_clear_inferiors.
20268 (win32_detach): Don't open a new handle to the process. Call
20269 win32_clear_inferiors.
20270 (win32_join): Don't rely on current_process_handle; open a new
20271 handle using the process id.
20272 (win32_wait): Call win32_clear_inferiors when the inferior process
20273 has exited.
20274
ecd7ecbc
DJ
202752008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20276
20277 * server.c (monitor_show_help): Add "exit".
20278
1525d545
MG
202792008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20280
ecd7ecbc 20281 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20282 (clean): Add reg-xtensa.c.
20283 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20284 * configure.srv (xtensa*-*-linux*) New target.
20285 * linux-xtensa-low.c: New.
20286 * xtensa-xtregs.c: New.
1525d545 20287
59a016f0
PA
202882008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20289
20290 * hostio.c: Don't include errno.h.
20291 (errno_to_fileio_errno): Move to hostio-errno.
20292 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20293 error number outputting to the target->hostio_last_error callback.
20294 (hostio_packet_error): Use FILEIO_EINVAL directly.
20295 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20296 calls to hostio_error.
20297 * hostio-errno.c: New.
20298 * server.h (hostio_last_error_from_errno): Declare.
20299 * target.h (target_ops): Add hostio_last_error member.
20300 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20301 as hostio_last_error handler.
889bf7c5 20302 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20303 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20304 (wince_hostio_last_error): New functions.
20305 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20306 as hostio_last_error handler.
20307 (win32_target_ops) [!_WIN32_WCE]: Register
20308 hostio_last_error_from_errno as hostio_last_error handler.
20309 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20310 (hostio-errno.o): New rule.
20311 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20312 * configure.srv (srv_hostio_err_objs): New variable. Default to
20313 hostio-errno.o.
20314 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20315 * configure: Regenerate.
20316
2d717e4f
DJ
203172008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20318
20319 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20320 (linux_kill, linux_detach): Clean up the process list.
20321 * remote-utils.c (remote_open): Improve port number parsing.
20322 (putpkt_binary, input_interrupt): Only send interrupts if the target
20323 is running.
20324 * server.c (extended_protocol): Make static.
20325 (attached): Define earlier.
20326 (exit_requested, response_needed, program_argv): New variables.
20327 (target_running): New.
20328 (start_inferior): Clear attached here.
20329 (attach_inferior): Set attached here.
20330 (require_running): Define.
20331 (handle_query): Use require_running and target_running. Implement
20332 "monitor exit".
20333 (handle_v_attach, handle_v_run): New.
20334 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20335 (gdbserver_usage): Update.
20336 (main): Redo argument parsing. Handle --debug and --multi. Handle
20337 --attach along with other options or after the port. Save
20338 program_argv. Support no initial program. Resynchronize
20339 communication with GDB after an error. Handle "monitor exit".
20340 Use require_running and target_running. Always allow the extended
20341 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20342 restart in extended mode.
20343 * README: Refer to the GDB manual. Update --attach usage.
20344
7407e2de
AS
203452007-12-20 Andreas Schwab <schwab@suse.de>
20346
20347 * linux-low.c (STACK_SIZE): Define.
20348 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20349 (linux_test_for_tracefork): Likewise.
20350
b65d95c5
DJ
203512007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20352
20353 * linux-low.c (linux_wait_for_event): Update messages. Do not
20354 reinsert auto-delete breakpoints.
20355 * mem-break.c (struct breakpoint): Change return type of handler to
20356 int.
20357 (set_breakpoint_at): Update handler type.
20358 (reinsert_breakpoint_handler): Return 1 instead of calling
20359 delete_breakpoint.
20360 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20361 setting a new one.
20362 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20363 * mem-break.h (set_breakpoint_at): Update handler type.
20364 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20365 * win32-low.c (auto_delete_breakpoint): New.
20366 (get_child_debug_event): Use it.
20367
4e799345
DJ
203682007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20369
20370 * configure.ac: Check for pread and pwrite.
20371 * hostio.c (handle_pread): Fall back to lseek and read.
20372 (handle_pwrite): Fall back to lseek and write.
20373 * config.in, configure: Regenerated.
20374
27524b67
DJ
203752007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20376
20377 * server.c (myresume): Add own_buf argument.
20378 (main): Update calls.
20379
a20d5e98
DJ
203802007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20381
20382 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20383 * remote-utils.c (remote_open): Do not call disable_async_io.
20384 (block_async_io): Delete.
20385 (unblock_async_io): Make static.
20386 (initialize_async_io): New.
20387 * server.c (handle_v_cont): Handle async I/O here.
20388 (myresume): Likewise. Move other common resume tasks here...
20389 (main): ... from here. Call initialize_async_io. Disable async
20390 I/O before the main loop.
20391 * server.h (initialize_async_io): Declare.
20392 (block_async_io, unblock_async_io): Delete prototypes.
20393 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20394
b79d787e
DJ
203952007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20396
20397 * remote-utils.c (readchar): Allow binary data in received messages.
20398
d97903b2
PA
203992007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20400
20401 * win32-low.c (attaching): New global.
20402 (win32_create_inferior): Clear the `attaching' global.
20403 (win32_attach): Set the `attaching' global.
20404 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20405 attaching. Only set a breakpoint at the entry point if not
20406 attaching.
20407
311de423
PA
204082007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20409
20410 * server.c (main): Don't report dll events on the initial
20411 connection on attaches.
20412
6c2d16d2
PA
204132007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20414
20415 * server.c (main): Relax numerical bases supported for the pid of
20416 the --attach command line argument.
20417
5ca906e6
PA
204182007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20419
20420 * win32-low.c (win32_attach): Call OpenProcess before
20421 DebugActiveProcess, not after. Add last error output to error
20422 call.
20423
9c6c8194
PA
204242007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20425
20426 * win32-low.c (win32_get_thread_context)
20427 (win32_set_thread_context): New functions.
20428 (thread_rec): Use win32_get_thread_context.
20429 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20430 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20431 field.
20432
4d5d1aaa
PA
204332007-12-03 Leo Zayas
20434 Pedro Alves <pedro_alves@portugalmail.pt>
20435
20436 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20437 global variables.
20438 (child_add_thread): Minor cleanup.
20439 (child_continue): Resume artificially suspended threads before
20440 calling ContinueDebugEvent.
20441 (suspend_one_thread): New.
20442 (fake_breakpoint_event): New.
20443 (get_child_debug_event): Change return type to int. Check here if
20444 gdb sent an interrupt request. If a soft interrupt was requested,
20445 fake a breakpoint event. Return 0 if there is no event to handle,
20446 and 1 otherwise.
20447 (win32_wait): Don't check here if gdb sent an interrupt request.
20448 Ensure there is a valid event to handle.
20449 (win32_request_interrupt): Add soft interruption method as last
20450 resort.
20451
c436e841
PA
204522007-12-03 Leo Zayas
20453 Pedro Alves <pedro_alves@portugalmail.pt>
20454
20455 * win32-low.h (win32_thread_info): Add descriptions to the
20456 structure members. Replace `suspend_count' counter by a
20457 `suspended' flag.
20458 * win32-low.c (thread_rec): Update condition of when to get the
20459 context from the inferior. Rely on ContextFlags being set if it
20460 has already been retrieved. Only suspend the inferior thread if
20461 we haven't already. Warn if that fails.
20462 (continue_one_thread): s/suspend_count/suspended/. Only call
20463 ResumeThread once. Warn if that fails.
20464
e7b5fa67
PA
204652007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20466
20467 * win32-low.c (win32_wait): Don't read from the inferior when it
20468 has already exited.
20469
a385171d
PA
204702007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20471
20472 * Makefile.in (win32_low_h): New variable.
20473 (win32-low.o): Add dependency on $(win32_low_h).
20474 (win32-arm-low.o, win32-i386-low.o): New rules.
20475
f80c84b3
DJ
204762007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20477
20478 * hostio.c: Correct copyright year.
20479
a6b151f1
DJ
204802007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20481
20482 * Makefile.in (OBS): Add hostio.o.
20483 (hostio.o): New rule.
20484 * server.h (handle_vFile): Declare.
20485 * hostio.c: New file.
20486 * server.c (handle_v_requests): Take packet_len and new_packet_len
20487 for binary packets. Call handle_vFile.
20488 (main): Update call to handle_v_requests.
20489
f9387fc3
DJ
204902007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20491
20492 * linux-low.c: Include <sched.h>.
20493
51c2684e
DJ
204942007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20495
20496 * linux-low.c (linux_tracefork_grandchild): New.
20497 (linux_tracefork_child): Use clone.
20498 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20499
75f83163
JB
205002007-10-31 Joel Brobecker <brobecker@adacore.com>
20501
20502 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20503
da5898ce
DJ
205042007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20505
20506 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20507
24a09b5f
DJ
205082007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20509
20510 * inferiors.c (change_inferior_id): Delete.
20511 (add_pid_to_list, pull_pid_from_list): New.
20512 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20513 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20514 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20515 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20516 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20517 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20518 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20519 (using_threads): Always set to 1.
20520 (handle_extended_wait): New.
20521 (add_process): Do not set TID.
20522 (linux_create_inferior): Set must_set_ptrace_flags.
20523 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20524 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20525 (linux_thread_alive): Rename TID argument to LWPID.
20526 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20527 (linux_wait_for_event): Do not use TID or check using_threads. Update
20528 call to dead_thread_notify. Call handle_extended_wait.
20529 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20530 (send_sigstop): Delete sigstop_sent.
20531 (wait_for_sigstop): Avoid TID.
20532 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20533 (linux_test_for_tracefork): New.
20534 (linux_lookup_signals): Use thread_db_active and
20535 linux_supports_tracefork_flag.
20536 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20537 * linux-low.h (get_process_thread): Avoid TID.
20538 (struct process_ifo): Move thread_known and tid to the end. Remove
20539 sigstop_sent.
20540 (linux_attach_lwp, thread_db_init): Update prototypes.
20541 * server.h (change_inferior_id): Delete prototype.
20542 (add_pid_to_list, pull_pid_from_list): New prototypes.
20543 * thread-db.c (thread_db_use_events): New.
20544 (find_first_thread): Rename to...
20545 (find_one_thread): ...this. Update callers and messages. Do not
20546 call fatal. Check thread_db_use_events. Do not call
20547 change_inferior_id or new_thread_notify.
20548 (maybe_attach_thread): Update. Do not call new_thread_notify.
20549 (thread_db_init): Set thread_db_use_events. Check use_events.
20550 * utils.c (fatal, warning): Correct message prefix.
20551
30ed0a8f
DJ
205522007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20553
20554 * Makefile.in (clean): Remove new files.
20555 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20556 (powerpc-64.o, powerpc-64.c): New rules.
20557 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20558 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20559 with SPE.
20560 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20561 SPE targets.
20562 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20563 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20564 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20565 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20566 (target_regsets): Add AltiVec and SPE register sets.
20567 * configure.ac: Check for AltiVec and SPE.
20568 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20569 (ppc_fill_vrregset, ppc_store_vrregset): New.
20570 (target_regsets): Add AltiVec register set.
20571 * configure: Regenerated.
20572
fd462a61
DJ
205732007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20574
20575 * linux-low.c (O_LARGEFILE): Define.
20576 (linux_read_memory): Use /proc/PID/mem.
20577 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20578 * configure, config.in: Regenerated.
20579
69f223ed
DJ
205802007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20581
20582 * linux-low.c (linux_wait_for_event): Do not pass signals while
20583 single-stepping.
20584
aec18585
PA
205852007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20586
20587 * win32-low.c (create_process): New.
20588 (win32_create_inferior): Use create_process instead of
20589 CreateProcess. If create_process failed retry appending an ".exe"
20590 suffix. Store the GetLastError result immediatelly after
20591 create_process calls and use it on the call to error.
20592
34d86ddd
PA
205932007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20594
20595 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20596
5a0e3bd0
JB
205972007-08-23 Joel Brobecker <brobecker@adacore.com>
20598
20599 * configure.ac: Switch license to GPLv3.
20600
f88c79e6
MS
206012007-08-01 Michael Snyder <msnyder@access-company.com>
20602
20603 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20604
6b3d9b83
PA
206052007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20606
20607 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20608 typedef.
20609 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20610 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20611 CloseToolhelp32Snapshot.
20612 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20613 CloseToolhelp32Snapshot.
20614
c588c53c
MS
206152007-07-27 Michael Snyder <michael.snyder@access-company.com>
20616
20617 * server.c (main): Check for inferior exit before main loop.
20618
aa0403d9
PA
206192007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20620
20621 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20622 instead of on tmp_desc.
20623
255e7678
DJ
206242007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20625 Daniel Jacobowitz <dan@codesourcery.com>
20626
20627 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20628 (add_thread): Minor cleanups.
20629 (clear_inferiors): Move lower in the file. Clear the DLL
20630 list.
20631 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20632 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20633 (xml_escape_text): New.
20634 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20635 for qSupported.
20636 (handle_v_cont): Report errors.
20637 (gdbserver_version): Update.
20638 (main): Correct size of own_buf. Do not report initial DLL events.
20639 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20640 (unloaded_dll, xml_escape_text): New.
20641 * win32-low.c (enum target_waitkind): Update comments.
20642 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20643 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20644 (win32_EnumProcessModules, win32_GetModuleInformation)
20645 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20646 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20647 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20648 (win32_Module32First, win32_Module32Next, load_toolhelp)
20649 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20650 (get_child_debug_event): Handle DLL events.
20651 (win32_wait): Likewise.
20652
0d37add9
DJ
206532007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20654
20655 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20656 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20657
45e2715e
PA
206582007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20659
20660 * win32-low.c (handle_output_debug_string): Ignore event if not
20661 waiting.
20662
c5674cf1
PA
206632007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20664
20665 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20666
2bbe3cc1
DJ
206672007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20668
20669 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20670
ae13219e
DJ
206712007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20672
20673 * inferiors.c (change_inferior_id): Add comment.
20674 * linux-low.c (check_removed_breakpoint): Add an early
20675 prototype. Improve debug output.
20676 (linux_attach): Doc update.
20677 (linux_detach_one_process, linux_detach): Clean up before releasing
20678 each process.
20679 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20680 * linux-low.h (struct process_info): Doc improvement.
20681 * mem-break.c (delete_all_breakpoints): New.
20682 * mem-break.h (delete_all_breakpoints): New prototype.
20683 * thread-db.c (find_first_thread): New.
20684 (thread_db_create_event): Call it instead of
20685 thread_db_find_new_threads. Clean up unused variables.
20686 (maybe_attach_thread): Remove first thread handling.
20687 (thread_db_find_new_threads): Use find_first_thread.
20688 (thread_db_get_tls_address): Likewise.
20689
4105de34
DJ
206902007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20691
20692 * thread-db.c (thread_db_find_new_threads): Add prototype.
20693 (thread_db_create_event): Check for the main thread before adding
20694 a new thread.
20695 (maybe_attach_thread): Only enable event reporting if TID == 0.
20696 (thread_db_get_tls_address): Check for new threads.
20697
2b876972
DJ
206982007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20699
20700 * linux-low.c (linux_create_inferior): Try execv before execvp.
20701 * spu-low.c (spu_create_inferior): Likewise.
20702
7a245884
DJ
207032007-06-13 Mike Frysinger <vapier@gentoo.org>
20704
20705 * linux-low.c (linux_create_inferior): Change execv to execvp.
20706 * spu-low.c (spu_create_inferior): Likewies.
20707
117ce543
DJ
207082007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20709
20710 * Makefile.in (clean): Clean new files instead of deleted ones.
20711 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20712 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20713 rules.
20714 * configure.srv: Specify XML files and new regformats for MIPS and
20715 MIPS64 GNU/Linux.
20716 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20717 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20718 an entry for the restart register.
20719 (mips_cannot_fetch_register, mips_cannot_store_register)
20720 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20721 register names to match the XML descriptions.
20722 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20723 restart register instead of $0.
20724
0e7f50da
UW
207252007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20726 Markus Deuling <deuling@de.ibm.com>
20727
20728 * remote-utils.c (decode_xfer_write): New function.
20729 * server.h (decode_xfer_write): Add prototype.
20730 * server.c (handle_query): Add PACKET_LEN argument. Support
20731 qXfer:spu:read and qXfer:spu:write packets.
20732 (main): Pass packet_len to handle_query.
20733 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20734 * target.h (target_ops): Add qxfer_spu.
20735
374c1d38
UW
207362007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20737
20738 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20739 accessing non-seekable spufs files.
20740
bb63802a
UW
207412007-05-16 Markus Deuling <deuling@de.ibm.com>
20742
889bf7c5 20743 * server.c (handle_query): Add reply for qC packet.
bb63802a 20744
7390519e
PA
207452007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20746 Leo Zayas <lerele@champenstudios@com>
20747
20748 * server.h (check_remote_input_interrupt_request): New function.
20749 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20750 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20751 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20752 (check_remote_input_interrupt_request): New function.
20753 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20754 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20755 winapi_GenerateConsoleCtrlEvent): New typedefs.
20756 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20757 to 250 ms.
20758 (win32_wait): Check for remote interrupt request
20759 with check_remote_input_interrupt_request.
20760 (win32_request_interrupt): New function.
20761 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20762
34b34921
PA
207632007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20764
20765 * win32-low.c (debug_registers_changed,
20766 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20767 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20768 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20769 (thread_rec): Get context using the low target.
20770 (child_add_thread): Call thread_added on the low target,
20771 which does the same thing.
20772 (regptr): Delete.
20773 (do_initial_child_stuff): Remove debug registers references.
20774 Set context using the low target. Resume threads after
20775 setting the contexts.
20776 (child_continue): Remove dead variable. Remove debug
20777 registers references.
20778 (child_fetch_inferior_registers): Go through the low target.
20779 (do_child_store_inferior_registers): Remove.
20780 (child_store_inferior_registers): Go through the low target.
20781 (win32_resume): Remove debug registers references.
20782 Set context using the low target.
20783 (handle_exception): Change return type to void. Don't record
20784 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20785 first chance exception.
889bf7c5 20786 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20787 goto loop. Always return after waiting for debug event.
20788 (win32_wait): Convert to switch statement. Handle spurious
20789 events.
20790
20791 * win32-i386-low.c (debug_registers_changed,
20792 debug_registers_used): New.
20793 (initial_stuff): Rename to ...
20794 (i386_initial_stuff): ... this. Clear debug registers
20795 state variables.
20796 (store_debug_registers): Delete.
20797 (i386_get_thread_context): New.
20798 (load_debug_registers): Delete.
20799 (i386_set_thread_context): New.
20800 (i386_thread_added): New.
20801 (single_step): Rename to ...
20802 (i386_single_step): ... this.
20803 (do_fetch_inferior_registers): Rename to ...
20804 (i386_fetch_inferior_register): ... this.
20805 (i386_store_inferior_register): New.
20806 (the_low_target): Adapt to new interface.
20807
20808 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20809 (arm_get_thread_context): New.
20810 (arm_set_thread_context): New.
20811 (regptr): New.
20812 (do_fetch_inferior_registers): Rename to ...
20813 (arm_fetch_inferior_register): ... this.
20814 (arm_store_inferior_register): New.
20815 (arm_wince_breakpoint): Reimplement as unsigned long.
20816 (arm_wince_breakpoint_len): Define.
20817 (the_low_target): Adapt to new interface.
20818
20819 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20820 load_debug_registers. Add get_thread_context, set_thread_context,
20821 thread_added and store_inferior_register. Rename
20822 fetch_inferior_registers to fetch_inferior_register.
20823 (regptr): Remove declaration.
20824
dd6953e1
PA
208252007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20826
20827 * linux-low.c (linux_detach): Change return type to int. Return 0.
20828 * spu-low.c (spu_detach): Likewise.
20829
444d6139
PA
208302007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20831
20832 * target.h (target_ops): Change return type of detach to int.
20833 Add join.
20834 (join_inferior): New.
20835 * server.c (main): Don't skip detach support on mingw32.
20836 If the inferior doesn't support detaching return error.
20837 Call join_inferior instead of using waitpid.
20838 * linux-low.c (linux_join): New.
20839 (linux_target_op): Add linux_join.
20840 * spu-low.c (spu_join): New.
20841 (spu_target_ops): Add spu_join.
20842 * win32-low.c (win32_detach): Adapt to new interface.
20843 Reopen current_process_handle before detaching. Issue a child
20844 resume before detaching.
20845 (win32_join): New.
20846 (win32_target_op): Add win32_join.
20847
1d5315fe
PA
208482007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20849
20850 * win32-low.c (win32-attach): Fix return value.
20851 * target.h (target_ops): Describe ATTACH return values.
20852
bf914831
PA
208532007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20854
20855 * win32-low.c (GETPROCADDRESS): Define.
20856 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20857 (winapi_DebugSetProcessKillOnExit): Likewise.
20858 (win32_create_inferior): Force usage of ansi CreateProcessA.
20859 (win32_attach): Use GETPROCADDRESS.
20860 (win32_detach): Likewise.
20861
f72f3e60
PA
208622007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20863
20864 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20865
ed50f18f
PA
208662007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20867
20868 * win32-low.c: Commit leftover changes from 2007-03-29.
20869
0c2ead7e
DJ
208702007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20871
20872 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20873 fields short instead of int. Add explicit padding.
20874 (i387_cache_to_fsave): Remove unnecessary casts.
20875 (i387_fsave_to_cache): Doc fix.
20876 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20877
73725ff3
DJ
208782007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20879
20880 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20881 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20882
d99f33d8
PA
208832007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20884
20885 * configure.srv (arm*-*-mingw32ce*): Move near the other
20886 arm targets.
20887
68070c10
PA
208882007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20889
2482afc6 20890 * configure.ac: Add errno checking.
68070c10
PA
20891 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20892 sys/file.h and malloc.h.
20893 (AC_CHECK_DECLS): Add perror.
20894 (srv_mingwce): Handle.
2482afc6 20895 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20896 win32-i386-low.o to srv_tgtobj.
20897 (i[34567]86-*-mingw*): Likewise.
20898 (arm*-*-mingw32ce*): Add case.
20899 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20900 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20901 [__MINGW32CE__] (strerror): New function.
20902 [__MINGW32CE__] (errno): Define to GetLastError.
20903 [__MINGW32CE__] (COUNTOF): New macro.
20904 (remote_open): Remove extra close call.
20905 * mem-break.c (delete_breakpoint_at): New function.
20906 * mem-break.h (delete_breakpoint_at): Declare.
20907 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20908 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20909 [USE_WIN32API] (read, write): Add char* casts.
20910 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20911 * server.h: Include wincecompat.h on Windows CE.
20912 [HAVE_ERRNO_H]: Check.
20913 (perror): Declare if not declared.
20914 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20915 (perror_with_name): Remove errno declaration.
20916 * wincecompat.h: New.
20917 * wincecompat.c: New.
20918 * win32-low.h: New.
20919 * win32-arm-low.c: New.
20920 * win32-i386-low.c: New.
20921 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20922 (OUTMSG2): Make it safe.
20923 (_T): New macro.
20924 (COUNTOF): New macro.
20925 (NUM_REGS): Get it from the low target.
20926 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20927 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20928 (thread_rec): Let low target handle debug registers.
20929 (child_add_thread): Likewise.
20930 (child_init_thread_list): Likewise.
20931 (continue_one_thread): Likewise.
20932 (regptr): New.
20933 (do_child_fetch_inferior_registers): Move to ...
20934 * win32-i386-low.c: ... here, and rename to ...
20935 (do_fetch_inferior_registers): ... this.
889bf7c5 20936 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
20937 Go through the low target.
20938 (do_child_store_inferior_registers): Use regptr.
20939 (strwinerror): New function.
20940 (win32_create_inferior): Handle Windows CE.
20941 Use strwinerror instead of strerror on Windows error
20942 codes. Add program to the error output.
20943 Don't close the main thread handle on Windows CE.
20944 (win32_attach): Use coredll.dll on Windows CE.
20945 (win32_kill): Close current process and current
20946 thread handles.
20947 (win32_detach): Use coredll.dll on Windows CE.
20948 (win32_resume): Let low target handle debug registers, and
20949 step request.
20950 (handle_exception): Add/Remove initial breakpoint. Avoid
20951 non-existant WSTOPSIG on Windows CE.
20952 (win32_read_inferior_memory): Cast to remove warning.
20953 (win32_arch_string): Go through the low target.
20954 (initialize_low): Call set_breakpoint_data with the low
20955 target's breakpoint.
20956 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20957 FOP_REGNUM, mappings): Move to ...
20958 * win32-i386-low.c: ... here.
20959 * win32-low.c (win32_thread_info): Move to ...
20960 * win32-low.h: ... here.
20961 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20962 win32-arm-low.c and wincecompat.c.
20963 (all:): Add $EXEEXT.
20964 (install-only:): Likewise.
20965 (gdbserver:): Likewise.
20966 (gdbreplay:): Likewise.
20967 * config.in: Regenerate.
20968 * configure: Regenerate.
20969
41093d81
PA
209702007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20971
20972 * win32-low.c: Rename typedef thread_info to
20973 win32_thread_info throughout.
20974
544afa54
PA
209752007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20976
20977 * win32-i386-low.c: Rename to ...
20978 * win32-low.c: ... this.
20979 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20980 * Makefile.in: Likewise.
20981
bce7165d
PA
209822007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20983
20984 * remote-utils.c (monitor_output): Constify msg parameter.
20985 * server.h (monitor_output): Likewise.
20986 * win32-i386-low.c (handle_output_debug_string): New.
20987 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20988 handle_output_debug_string.
20989 (get_child_debug_event): Likewise.
20990
506c7aa0
DJ
209912007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20992
20993 * server.c (main): Correct strtoul check.
20994
42c81e2a
DJ
209952007-03-27 Jon Ringle <jon@ringle.org>
20996
20997 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20998
9453113a
DJ
209992007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21000
21001 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21002
64a69107
DJ
210032007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21004
21005 * terminal.h: Check HAVE_SGTTY_H.
21006
210072007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21008
21009 * remote-utils.c (remote_open): Print out the assigned port number.
21010
c74d0ad8
DJ
210112007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21012
21013 * remote-utils.c (monitor_output): New function.
21014 * server.c (debug_threads): Define here.
21015 (monitor_show_help): New function.
21016 (handle_query): Handle qRcmd.
21017 (main): Do not handle 'd' packet.
21018 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21019 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21020 of debug_threads.
21021
de7c3b4a
PA
210222007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21023
21024 * Makefile.in (EXEEXT): New.
21025 (clean): Use $(EXEEXT).
21026
ef57601b
PA
210272007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21028
21029 * target.h (target_ops): Rename send_signal to request_interrupt,
21030 and remove enum target_signal parameter.
21031 * linux-low.c (linux_request_interrupt): Rename from
21032 linux_send_signal, and always send SIGINT.
21033 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21034 and always send SIGINT.
21035 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21036 of send_signal.
21037 (input_interrupt): Likewise.
21038
820f2bda
PA
210392007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21040
21041 * server.c (get_features_xml): Check if target implemented
21042 arch_string.
21043 * win32-i386-low.c (win32_arch_string): New.
21044 (win32_target_ops): Add win32_arch_string as arch_string member.
21045
ab39bf24
UW
210462007-02-22 Markus Deuling <deuling@de.ibm.com>
21047
21048 * spu-low.c (spu_arch_string): New.
21049 (spu_target_ops): Add spu_arch_string.
21050
61ff6e04
DJ
210512007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21052
21053 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21054 * configure.ac: Do not check for terminal.h.
21055 * configure, config.in: Regenerated.
21056
fb1e4ffc
DJ
210572007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21058
21059 * Makefile.in (OBS): Add $(XML_BUILTIN).
21060 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21061 (clean): Update.
21062 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21063 (arm-with-iwmmxt.c): New.
21064 * config.in, configure: Regenerate.
21065 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21066 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21067 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21068 (arm*-*-linux*): Add iWMMXt and regset support.
21069 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21070 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21071 (arm_store_wmmxregset, target_regsets): New.
21072 * server.c (get_features_xml): Take annex argument. Check builtin
21073 XML documents.
21074 (handle_query): Handle multiple annexes.
21075
0f48aa01
DJ
210762007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21077
21078 * remote-utils.c [USE_WIN32API] (read, write): Define.
21079 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21080 write.
21081
23181151
DJ
210822007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21083
21084 * linux-i386-low.c (the_low_target): Set arch_string.
21085 * linux-x86-64-low.c (the_low_target): Likewise.
21086 * linux-low.c (linux_arch_string): New.
21087 (linux_target_ops): Add it.
21088 * linux-low.h (struct linux_target_ops): Add arch_string.
21089 * server.c (write_qxfer_response): Use const void * for DATA.
21090 (get_features_xml): New.
21091 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21092 * target.h (struct target_ops): Add arch_string method.
21093
9d606399
DJ
210942007-01-03 Denis Pilat <denis.pilat@st.com>
21095 Daniel Jacobowitz <dan@codesourcery.com>
21096
21097 * linux-low.c (linux_kill): Handle being called with no threads.
21098 * win32-i386-low.c (win32_kill): Likewise.
21099 (get_child_debug_event): Clear current_process_handle.
21100
211012006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21102 Daniel Jacobowitz <dan@codesourcery.com>
21103
21104 * remote-utils.c (remote_open): Check the type of specified
21105 serial port devices before opening them.
21106 * server.c (main): Kill the inferior if an error occurs during
21107 the first remote_open.
21108
a5e13d24
DJ
211092006-12-05 Markus Deuling <deuling@de.ibm.com>
21110
21111 * README: Update supported targets.
21112
186947f7
DJ
211132006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21114
21115 * Makefile.in (clean): Remove reg-mips64.c.
21116 (reg-mips64.c, reg-mips64.o): New rules.
21117 * configure.srv: Handle mips64. Include regset support for mips.
21118 * linux-mips-low.c (union mips_register): New.
21119 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21120 (mips_breakpoint, mips_breakpoint_at): Use int.
21121 (mips_collect_register, mips_supply_register)
21122 (mips_collect_register_32bit, mips_supply_register_32bit)
21123 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21124 (mips_store_fpregset, target_regsets): New.
21125 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21126
a13e2c95
UW
211272006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21128
21129 * configure.srv: Add target "spu*-*-*".
21130 * Makefile.in (clean): Remove reg-spu.c.
21131 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21132 * spu-low.c: New file.
21133
cb7283db
DJ
211342006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21135
21136 * configure.ac: Correct td_thr_tls_get_addr test.
21137 * configure: Regenerated.
21138
89be2091
DJ
211392006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21140
21141 * linux-low.c (linux_wait_for_event): Reformat. Use the
21142 pass_signals array.
21143 * remote-utils.c (decode_address_to_semicolon): New.
21144 * server.c (pass_signals, handle_general_set): New.
21145 (handle_query): Mention QPassSignals for qSupported.
21146 (main): Call handle_general_set.
21147 * server.h (pass_signals, decode_address_to_semicolon): New.
21148
000ef4f0
DJ
211492006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21150
21151 * server.c (handle_query): Correct error handling for read_auxv.
21152
b7149293
UW
211532005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21154
21155 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21156 and srv_linux_thread_db to yes.
21157 * linux-s390-low.c (s390_fill_gregset): New function.
21158 (target_regsets): Define data structure.
21159
dae5f5cf
DJ
211602006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21161
21162 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21163 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21164 * config.in, configure: Regenerated.
21165 * inferiors.c (gdb_id_to_thread): New function.
21166 (gdb_id_to_thread_id): Use it.
21167 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21168 * linux-low.h (struct process_info): Add th member.
21169 (thread_db_get_tls_address): New prototype.
21170 * remote-utils.c (decode_address): Make non-static.
21171 * server.c (handle_query): Handle qGetTLSAddr.
21172 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21173 * target.h (struct target_ops): Add get_tls_address.
21174 * thread-db.c (maybe_attach_thread): Save the thread handle.
21175 (thread_db_get_tls_address): New.
21176
32ca6d61
DJ
211772006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21178
21179 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21180 (linux_resume_one_process): Take a siginfo_t *. Update all
21181 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21182 (struct pending_signals): Add a siginfo_t.
21183 (linux_wait_for_process): Always set last_status.
21184 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21185 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21186 * linux-low.h (struct process_info): Add last_status.
21187
5ffff7c1
DJ
211882006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21189
21190 * remote-utils.c (try_rle): New function.
21191 (putpkt_binary): Use it.
21192
8695c747
DJ
211932006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21194
21195 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21196 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21197 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21198 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21199 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21200 point registers.
21201
290fadea
RS
212022006-08-08 Richard Sandiford <richard@codesourcery.com>
21203
21204 * server.c (terminal_fd): New variable.
21205 (old_foreground_pgrp): Likewise.
21206 (restore_old_foreground_pgrp): New function.
21207 (start_inferior): Record the terminal file descriptor in terminal_fd
21208 and its original foreground group in old_foreground_pgrp. Register
21209 restore_old_foreground_pgrp with atexit().
21210
9f2e1e63
DJ
212112006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21212
21213 * server.c (handle_query): Correct qPart to qXfer.
21214
b80864fb
DJ
212152006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21216
21217 * configure.ac: Check for more headers which are missing on
21218 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21219 * configure.srv: Add Cygwin and mingw32.
21220 * remote-utils.c: Don't include headers unconditionally which
21221 are missing on mingw32. Include <winsock.h> for mingw32.
21222 (remote_open): Adjust for mingw32 support. Flush
21223 standard error after writing to it.
21224 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21225 (unblock_async_io, enable_async_io, disable_async_io)
21226 (readchar, getpkt): Update for Winsock support.
21227 (prepare_resume_reply): Expect a protocol signal number.
21228 * server.c: Disable <sys/wait.h> on mingw32.
21229 (start_inferior): Adjust for mingw32 support. Flush
21230 standard error after writing to it.
21231 (attach_inferior): Likewise. Use protocol signal
21232 numbers.
21233 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21234 and names.
21235 * win32-i386-low.c: New file.
21236 * Makefile.in (XM_CLIBS): Set.
21237 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21238 (win32-i386-low.o): New dependency rule.
21239 * linux-low.c (linux_wait): Use target signal numbers.
21240 * target.h (struct target_ops): Doc fix.
21241 * server.h (target_signal_to_name): New prototype.
21242 * gdbreplay.c: Don't include headers unconditionally which
21243 are missing on mingw32. Include <winsock.h> for mingw32.
21244 (remote_close, remote_open): Adjust for Winsock support.
21245 * configure, config.in: Regenerated.
21246
0876f84a
DJ
212472006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21248
21249 * server.c (decode_xfer_read, write_qxfer_response): New.
21250 (handle_query): Take a packet length argument. Handle
21251 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21252 the qSupported response.
21253 (main): Update call to handle_query.
21254
01f9e8fa
DJ
212552006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21256
21257 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21258 (putpkt_binary): Renamed from putpkt and adjusted for binary
21259 data.
21260 (putpkt): New wrapper for putpkt_binary.
21261 (readchar): Don't mask off the high bit.
21262 (decode_X_packet): New function.
21263 * server.c (main): Call putpkt_binary if a handler sets the packet
21264 length. Save the length of the incoming packet. Handle 'X'.
21265 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21266
be2a5f71
DJ
212672006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21268
21269 * server.c (handle_query): Handle qSupported.
21270
ea025f5f
DJ
212712006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21272
21273 * remote-utils.c (all_symbols_looked_up): New variable.
21274 (look_up_one_symbol): Check it.
21275 * server.h (look_up_one_symbol): New declaration.
21276 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21277
9308fc88
DJ
212782006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21279
21280 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21281 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21282 (PTRACE_GET_THREAD_AREA): Define.
21283 (ps_get_thread_area): New function.
21284
52fb6437
NS
212852006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21286
21287 * configure.srv (m68k*-*-uclinux*): New target.
21288 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21289 (linux_resume_one_process): Remove extraneous cast.
21290 (linux_read_offsets): New.
21291 (linux_target_op): Add linux_read_offsets on mmuless systems.
21292 * server.c (handle_query): Add qOffsets logic.
21293 * target.h (struct target_ops): Add read_offsets.
21294
21b0f40c
DJ
212952006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21296
21297 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21298 (PTRACE_GET_THREAD_AREA): Define.
21299 (ps_get_thread_area): New function.
21300 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21301 (linux-x86-64-low.o): Update.
21302
0050a760
DJ
213032006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21304
21305 * configure.ac: Remove checks for prfpregset_t.
21306 * gdb_proc_service.h: New file.
21307 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21308 new "gdb_proc_service.h".
21309 * proc-service.c: Likewise.
21310 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21311 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21312 * Makefile.in (gdb_proc_service_h): Updated.
21313 * configure, config.in: Regenerated.
21314
b92a518e
DJ
213152006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21316
21317 * remote-utils.c (prepare_resume_reply): Move declaration
21318 of gdb_id_from_wait to the top of the block.
21319
545587ee
DJ
213202006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21321
21322 * linux-low.c (regsets_store_inferior_registers): Read the regset
21323 from the target before filling it.
21324
9db87ebd
DJ
213252006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21326
21327 * server.c (attach_inferior): Return SIGTRAP for a successful
21328 attach.
21329
dd24457d
DJ
213302006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21331
21332 * Makefile.in (OBS): Add version.o.
21333 (STAGESTUFF): Delete.
21334 (version.o): Add dependencies.
21335 (version.c): Replace rule.
21336 (clean): Remove version.c.
21337 * server.c (gdbserver_version): New.
21338 (gdbserver_usage): Use printf.
21339 (main): Handle --version and --help.
21340 * server.h (version, host_name): Add declarations.
21341
6f0f660e
EZ
213422005-12-23 Eli Zaretskii <eliz@gnu.org>
21343
889bf7c5
PA
21344 * linux-arm-low.c:
21345 * linux-arm-low.c:
21346 * inferiors.c:
21347 * i387-fp.h:
21348 * i387-fp.c:
21349 * gdbreplay.c:
21350 * regcache.c:
21351 * proc-service.c:
21352 * mem-break.h:
21353 * mem-break.c:
21354 * linux-x86-64-low.c:
21355 * linux-sh-low.c:
21356 * linux-s390-low.c:
21357 * linux-ppc64-low.c:
21358 * linux-ppc-low.c:
21359 * linux-mips-low.c:
21360 * linux-m68k-low.c:
21361 * linux-m32r-low.c:
21362 * linux-low.h:
21363 * linux-low.c:
21364 * linux-ia64-low.c:
21365 * linux-i386-low.c:
21366 * linux-crisv32-low.c:
21367 * thread-db.c:
21368 * terminal.h:
21369 * target.h:
21370 * target.c:
21371 * server.h:
21372 * server.c:
21373 * remote-utils.c:
21374 * regcache.h:
21375 * utils.c:
21376 * Makefile.in:
21377 * configure.ac:
6f0f660e
EZ
21378 * gdbserver.1: Add (C) after Copyright. Update the FSF
21379 address.
21380
9d1fb177
DJ
213812005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21382
21383 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21384 (arm_breakpoint_at): Recognize both breakpoints.
21385 (the_low_target): Use the correct breakpoint instruction.
21386
011a70c2
DJ
213872005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21388
21389 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21390 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21391 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21392 (the_low_target): Update.
21393
7fb85e41
AS
213942005-10-25 Andreas Schwab <schwab@suse.de>
21395
21396 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21397
21398 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21399 (ia64_num_regs): Reduce to 462.
21400
3db0444b
DJ
214012005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21402
21403 * acinclude.m4: Correct quoting.
21404 * aclocal.m4: Regenerated.
21405
21406 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21407 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21408 (thread_db_init): Call thread_db_err_str.
21409 * configure.ac: Check for TD_VERSION.
21410 * config.in, configure: Regenerated.
21411
bee0189a
DJ
214122005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21413
21414 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21415
e9d25b98
DJ
214162005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21417
21418 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21419 is not available. Define HAVE_PTRACE_GETREGS if it is.
21420 * config.in, configure: Regenerated.
21421 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21422 * linux-i386-low.c, linux-m68k-low.c: Update to use
21423 HAVE_PTRACE_GETREGS.
21424 * linux-low.c (regsets_fetch_inferior_registers)
21425 (regsets_store_inferior_registers): Only return 0 if we processed
21426 GENERAL_REGS.
21427 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21428 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21429
a06660f7
DJ
214302005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21431
21432 * inferiors.c (struct thread_info): Add gdb_id.
21433 (add_thread): Add gdb_id argument.
21434 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21435 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21436 calls to add_thread.
21437 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21438 * server.c (handle_query): Use thread_to_gdb_id.
21439 (handle_v_cont, main): Use gdb_id_to_thread_id.
21440 * server.h (add_thread): Update prototype.
21441 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21442 prototypes.
21443
5a1f5858
DJ
214442005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21445
21446 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21447 left-padded registers.
21448 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21449 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21450
e122f1f5
SE
214512005-07-01 Steve Ellcey <sje@cup.hp.com>
21452
21453 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21454 * configure: Regenerate.
21455 * config.in: Regenerate.
21456 * server.h (NEED_DECLARATION_STRERROR):
21457 Replace with !HAVE_DECL_STRERROR.
21458
d592fa2f
DJ
214592005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21460
21461 * linux-low.c (linux_wait, linux_send_signal): Don't test
21462 an unsigned long variable for > 0 if it could be MAX_ULONG.
21463 * server.c (myresume): Likewise.
21464 * target.c (set_desired_inferior): Likewise.
21465
ccbd4912
MK
214662005-06-13 Mark Kettenis <kettenis@gnu.org>
21467
21468 * configure.ac: Simplify and improve check for socklen_t.
21469 * configure, config.in: Regenerate.
21470
f450004a
DJ
214712005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21472
21473 * acconfig.h: Remove.
21474 * configure.ac: Add a test for socklen_t. Use three-argument
21475 AC_DEFINE throughout.
21476 * config.in: Regenerated using autoheader 2.59.
21477 * configure: Regenerated.
21478
21479 * gdbreplay.c (socklen_t): Provide a default.
21480 (remote_open): Use socklen_t.
21481 * remote-utils.c (socklen_t): Provide a default.
21482 (remote_open): Use socklen_t.
21483 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21484 unsigned char.
21485
21486 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21487 char for buffers.
21488 * linux-low.c (linux_read_memory, linux_write_memory)
21489 (linux_read_auxv): Likewise.
21490 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21491 (check_mem_write): Likewise.
21492 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21493 Likewise.
21494 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21495 (registers_from_string, register_data): Likewise.
21496 * server.c (handle_query, main): Likewise.
21497 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21498 (decode_M_packet): Likewise.
21499 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21500 * target.h (struct target_ops): Update read_memory, write_memory,
21501 and read_auxv.
21502 (read_inferior_memory, write_inferior_memory): Update.
21503 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21504 to unsigned char *.
21505 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21506 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21507 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21508 linux-s390-low.c, linux-sh-low.c: Update for changes in
21509 read_inferior_memory and the_low_target->breakpoint.
21510
eee84df1
DJ
215112005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21512
21513 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21514 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21515 * configure.srv: Add powerpc64-*-linux*.
21516 * linux-ppc64-low.c: New file.
21517
45b134e5
OF
215182005-05-23 Orjan Friberg <orjanf@axis.com>
21519
21520 * linux-cris-low.c: New file with support for CRIS.
21521 * linux-crisv32-low.c: Ditto for CRISv32.
21522 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21523 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21524 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21525 reg-crisv32.o, and reg-crisv32.c to make rules.
21526 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21527 recognized targets.
21528
48d93c75
UW
215292005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21530
21531 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21532 of sizeof (PTRACE_XFER_TYPE).
21533 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21534
e013ee27
OF
215352005-05-12 Orjan Friberg <orjanf@axis.com>
21536
889bf7c5 21537 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21538 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21539 pointers for hardware watchpoint support.
21540 * linux-low.h (struct linux_target_ops): Ditto.
21541 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21542 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21543 to linux_target_ops.
21544 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21545 reply packet.
21546 * server.c (main): Recognize 'Z' and 'z' packets.
21547
b0ded00b
UW
215482005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21549
21550 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21551 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21552 (the_low_target): Add new members.
21553
8643e2ad
DJ
215542005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21555
21556 * proc-service.c (ps_lgetregs): Search all_processes instead of
21557 all_threads.
21558
fc620387
DJ
215592005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21560
21561 * server.c (start_inferior): Change return type to int.
21562 (attach_inferior): Change sigptr to int *.
21563 (handle_v_cont, handle_v_requests): Change signal to int *.
21564 (main): Change signal to int.
21565
215662005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21567
21568 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21569 * configure.srv: Add m32r*-*-linux*.
21570 * linux-m32r-low.c: New file.
21571
e0e76420
DJ
215722005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21573
21574 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21575
a1928bad
DJ
215762005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21577
21578 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21579 Take unsigned long arguments for PIDs.
21580 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21581 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21582 (wait_for_sigstop, linux_resume_one_process)
21583 (regsets_fetch_inferior_registers, linux_send_signal)
21584 (linux_read_auxv): Likewise. Update the types of variables holding
21585 PIDs. Update format string specifiers.
21586 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21587 * remote-utils.c (prepare_resume_reply): Likewise.
21588 * server.c (cont_thread, general_thread, step_thread)
21589 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21590 unsigned long.
21591 (handle_query): Update format specifiers.
21592 (handle_v_cont, main): Use strtoul for thread IDs.
21593 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21594 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21595 (general_thread, step_thread, thread_from_wait)
21596 (old_thread_from_wait): Update.
21597 * target.h (struct thread_resume): Use unsigned long for THREAD.
21598 (struct target_ops): Use unsigned long for arguments to attach and
21599 thread_alive.
21600
dcdb98d2
DJ
216012005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21602
21603 * acinclude.m4: Include bfd/bfd.m4 directly.
21604 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21605 <agriffis@toolchain.org>.
21606 * aclocal.m4, configure: Regenerated.
21607
bec39cab
AC
216082005-01-07 Andrew Cagney <cagney@gnu.org>
21609
21610 * configure.ac: Rename configure.in, require autoconf 2.59.
21611 * configure: Re-generate.
21612
434c4c77
DJ
216132004-12-08 Daniel Jacobowitz <dan@debian.org>
21614
21615 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21616 LIBS when finished.
21617 * aclocal.m4: Regenerated.
21618 * configure: Regenerated.
21619
db1d3e1b
AS
216202004-11-21 Andreas Schwab <schwab@suse.de>
21621
21622 * linux-m68k-low.c (m68k_num_gregs): Define.
21623 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21624 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21625 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21626 (m68k_breakpoint_at): New. Add to the_low_target.
21627
21628 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21629 srv_linux_thread_db to yes.
21630
43360365
JB
216312004-10-20 Joel Brobecker <brobecker@gnat.com>
21632
21633 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21634 (ARCH_SET_FS): Likewise.
21635 (ARCH_GET_FS): Likewise.
21636 (ARCH_GET_GS): Likewise.
21637
fd500816
DJ
216382004-10-16 Daniel Jacobowitz <dan@debian.org>
21639
21640 * linux-i386-low.c (ps_get_thread_area): New.
21641 * linux-x86-64-low.c (ps_get_thread_area): New.
21642 * linux-low.c: Include <sys/syscall.h>.
21643 (linux_kill_one_process): Don't kill the first thread here.
21644 (linux_kill): Kill the first thread here.
21645 (kill_lwp): New function.
21646 (send_sigstop, linux_send_signal): Use it.
21647 * proc-service.c: Clean up #ifdefs.
21648 (fpregset_info): Delete.
21649 (ps_lgetregs): Update and enable implementation.
21650 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21651 implementations.
21652 * remote-utils.c (struct sym_cache, symbol_cache): New.
21653 (input_interrupt): Print a clearer message.
21654 (async_io_enabled): New variable.
21655 (enable_async_io, disable_async_io): Use it. Update comments.
21656 (look_up_one_symbol): Use the symbol cache.
21657 * thread-db.c (thread_db_look_up_symbols): New function.
21658 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21659
f6de3c42
DJ
216602004-10-16 Daniel Jacobowitz <dan@debian.org>
21661
21662 * configure.in: Test for -rdynamic.
21663 * configure: Regenerated.
21664 * Makefile (INTERNAL_LDFLAGS): New.
21665 (gdbserver, gdbreplay): Use it.
21666
2c0fc042
AC
216672004-09-02 Andrew Cagney <cagney@gnu.org>
21668
21669 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21670
075b3282
DJ
216712004-03-23 Daniel Jacobowitz <drow@mvista.com>
21672
21673 * linux-low.c (linux_wait): Clear all_processes list also.
21674
fa6a77dc
DJ
216752004-03-12 Daniel Jacobowitz <drow@mvista.com>
21676
21677 * linux-low.c: Include <errno.h>. Remove extern declaration of
21678 errno.
21679
6d782a97
DJ
216802004-03-12 Daniel Jacobowitz <drow@mvista.com>
21681
21682 * gdbreplay.c, server.h, utils.c: Update copyright years.
21683
3a7fb99b
DJ
216842004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21685
21686 * server.c (main): Print child status or termination signal from
21687 variable 'signal', not 'sig'.
21688
c3e735a6
DJ
216892004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21690
21691 * linux-low.c (linux_read_memory): Change return type to
21692 int. Check for and return error from ptrace().
21693 * target.c (read_inferior_memory): Change return type to int. Pass
21694 back return status from the_target->read_memory().
21695 * target.h (struct target_ops): Adapt *read_memory() prototype.
21696 Update comment.
21697 (read_inferior_memory): Adapt prototype.
21698 * server.c (main): Return an error packet if
21699 read_inferior_memory() returns an error.
21700
a59d1c82
DJ
217012004-03-04 Daniel Jacobowitz <drow@mvista.com>
21702
21703 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21704 Unify with other clean targets.
21705
dc3f8883
DJ
217062004-02-29 Daniel Jacobowitz <drow@mvista.com>
21707
21708 * server.c (handle_v_cont): Call set_desired_inferior.
21709
89a208da
DJ
217102004-02-29 Daniel Jacobowitz <drow@mvista.com>
21711
21712 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21713
62ea82f5
DJ
217142004-02-29 Daniel Jacobowitz <drow@mvista.com>
21715
21716 * linux-low.c (linux_wait): Unblock async I/O.
21717 (linux_resume): Block and enable async I/O.
21718 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21719 * server.h (block_async_io, unblock_async_io): Add prototypes.
21720
6910d122
DJ
217212004-02-29 Daniel Jacobowitz <drow@mvista.com>
21722
21723 * remote-utils.c (remote_open): Print a status notice after
21724 opening a TCP port.
21725 * server.c (attach_inferior): Print a status notice after
21726 attaching.
21727
217282004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21729
21730 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21731
c89dc5d4
DJ
217322004-02-26 Daniel Jacobowitz <drow@mvista.com>
21733
21734 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21735 error packet.
21736 * server.c, target.h: Update copyright years.
21737
4b8dad4a
RM
217382004-02-25 Roland McGrath <roland@redhat.com>
21739
21740 * target.h (struct target_ops): New member `read_auxv'.
21741 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21742 * linux-low.c (linux_read_auxv): New function.
21743 (linux_target_ops): Initialize `read_auxv' member to that.
21744
d7446758
JB
217452004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21746
21747 Committed by Jim Blandy <jimb@redhat.com>.
21748
21749 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21750 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21751 instead of GPR_SIZE to distiguish s390 and s390x targets.
21752
5544ad89
DJ
217532004-01-31 Daniel Jacobowitz <drow@mvista.com>
21754
21755 * linux-low.c: Update copyright year.
21756 (check_removed_breakpoint): Clear pending_is_breakpoint.
21757 (linux_set_resume_request, linux_queue_one_thread)
21758 (resume_status_pending_p): New functions.
21759 (linux_continue_one_thread): Use process->resume.
21760 (linux_resume): Only resume threads if there are no pending events.
21761 * linux-low.h (struct process_info): Add resume request
21762 pointer.
21763
2a68b70e
DJ
217642004-01-30 Daniel Jacobowitz <drow@mvista.com>
21765
21766 * regcache.c (new_register_cache): Clear the allocated register
21767 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21768
64386c31
DJ
217692003-10-13 Daniel Jacobowitz <drow@mvista.com>
21770
21771 * linux-low.c (linux_resume): Take a struct thread_resume *
21772 argument.
21773 (linux_wait): Update call.
21774 (resume_ptr): New static variable.
21775 (linux_continue_one_thread): Renamed from
21776 linux_continue_one_process. Use resume_ptr.
21777 (linux_resume): Use linux_continue_one_thread.
21778 * server.c (handle_v_cont, handle_v_requests): New functions.
21779 (myresume): New function.
21780 (main): Handle 'v' case.
21781 * target.h (struct thread_resume): New type.
21782 (struct target_ops): Change argument of "resume" to struct
21783 thread_resume *.
21784 (myresume): Delete macro.
21785
c938e9b0
L
217862003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21787
21788 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21789 (uninstall): Support DESTDIR.
21790
7f313d07
BC
21791Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21792
21793 * configure.srv: Add xscale*linux copy of arm*linux entry.
21794
3b2fc2ea
DJ
217952003-07-24 Daniel Jacobowitz <drow@mvista.com>
21796
21797 * linux-arm-low.c (arm_reinsert_addr): New function.
21798 (the_low_target): Add arm_reinsert_addr.
21799
1c0a559e
MK
218002003-07-08 Mark Kettenis <kettenis@gnu.org>
21801
21802 * mem-break.c: Remove whitespace at end of file.
21803
43d5792c
DJ
218042003-06-28 Daniel Jacobowitz <drow@mvista.com>
21805
21806 * configure.in: Check whether we need to prototype strerror.
21807 * server.h: Optionally prototype strerror.
21808 * gdbreplay.c (perror_with_name): Use strerror.
21809 * linux-low.c (linux_attach_lwp): Use strerror.
21810 * utils.c (perror_with_name): Use strerror.
21811 * config.in, configure: Regenerated.
21812
c8a86edf
DJ
218132003-06-28 Daniel Jacobowitz <drow@mvista.com>
21814
21815 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21816 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21817
73d37363
DJ
218182003-06-20 Daniel Jacobowitz <drow@mvista.com>
21819
21820 * Makefile.in (SFILES): Update.
21821 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21822 low-sun3.c: Remove files.
21823
6ad8ae5c
DJ
218242003-06-17 Daniel Jacobowitz <drow@mvista.com>
21825
21826 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21827 (linux_detach_one_process, linux_detach): New functions.
21828 (linux_target_ops): Add linux_detach.
21829 * server.c (main): Handle 'D' packet.
21830 * target.h (struct target_ops): Add "detach" member.
21831 (detach_inferior): Define.
21832
1581182a
MK
218332003-06-13 Mark Kettenis <kettenis@gnu.org>
21834
21835 From Kelley Cook <kelleycook@wideopenwest.com>:
21836 * configure.srv: Accept i[34567]86 variants.
21837
e5379b03
DJ
218382003-06-05 Daniel Jacobowitz <drow@mvista.com>
21839
21840 * linux-low.c (linux_wait_for_event): Correct comment typos.
21841 (linux_resume_one_process): Call check_removed_breakpoint.
21842 (linux_send_signal): New function.
21843 (linux_target_ops): Add linux_send_signal.
21844 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21845 of kill.
21846 * target.h (struct target_ops): Add send_signal.
21847
2ff29de4
JB
218482003-05-29 Jim Blandy <jimb@redhat.com>
21849
21850 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21851 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21852 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21853 away part of the register's value.
21854
254787d4
DJ
218552003-03-26 Daniel Jacobowitz <drow@mvista.com>
21856
21857 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21858 (linux_wait_for_event, linux_init_signals): Likewise.
21859
94e10508
DJ
218602003-03-17 Daniel Jacobowitz <drow@mvista.com>
21861
21862 * configure.in: Check for stdlib.h.
21863 * configure: Regenerated.
21864 * config.in: Regenerated.
21865
4c0711e0
DJ
218662003-01-04 Andreas Schwab <schwab@suse.de>
21867
21868 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21869
ef66e766
AC
218702003-01-02 Andrew Cagney <ac131313@redhat.com>
21871
21872 * Makefile.in: Remove obsolete code.
21873
a1358604
DJ
218742002-11-20 Daniel Jacobowitz <drow@mvista.com>
21875
21876 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21877 defined(PT_FPR0_HI).
21878
23ce3b1c
DJ
218792002-11-17 Stuart Hughes <seh@zee2.com>
21880
21881 * linux-arm-low.c (arm_num_regs): Increase.
21882 (arm_regmap): Include status register.
21883
218842002-11-17 Daniel Jacobowitz <drow@mvista.com>
21885
21886 * linux-low.c (register_addr): Remove incorrect -1 check.
21887
a9fa9f7d
DJ
218882002-08-29 Daniel Jacobowitz <drow@mvista.com>
21889
21890 * linux-low.c (linux_create_inferior): Call setpgid. Return
21891 the new PID.
21892 (unstopped_p, linux_signal_pid): Remove.
21893 (linux_target_ops): Remove linux_signal_pid.
21894 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21895 global instead of target method.
21896 * target.h (struct target_ops): Remove signal_pid. Update comment
21897 for create_inferior.
21898 * server.c (signal_pid): New variable.
21899 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21900 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21901 (attach_inferior): Set signal_pid.
21902
17574093
DJ
219032002-08-23 Daniel Jacobowitz <drow@mvista.com>
21904
21905 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21906
219072002-08-20 Jim Blandy <jimb@redhat.com>
21908
21909 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21910 default for this.
21911
219122002-08-01 Andrew Cagney <cagney@redhat.com>
21913
21914 * Makefile.in: Make chill references obsolete.
21915
219162002-07-24 Kevin Buettner <kevinb@redhat.com>
21917
21918 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21919 * configure: Regenerate.
21920 * config.in: Regenerate.
21921
219222002-07-09 David O'Brien <obrien@FreeBSD.org>
21923
21924 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21925 (perror_with_name, remote_close, remote_open, expect, play): Static.
21926
219272002-07-04 Michal Ludvig <mludvig@suse.cz>
21928
4b8dad4a 21929 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21930 byte offsets instead of an array of indexes.
21931 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21932
219332002-06-13 Daniel Jacobowitz <drow@mvista.com>
21934
21935 * regcache.c: Add comment.
21936
219372002-06-11 Daniel Jacobowitz <drow@mvista.com>
21938
21939 * thread-db.c: New file.
21940 * proc-service.c: New file.
21941 * acinclude.m4: New file.
21942 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21943 proc-service.o, and thread-db.o.
21944 (linux-low.o): Add USE_THREAD_DB.
21945 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21946 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21947 * aclocal.m4: Regenerated.
21948 * config.in: Regenerated.
21949 * configure: Regenerated.
21950 * configure.in: Check for proc_service.h, sys/procfs.h,
21951 thread_db.h, and linux/elf.h headrs.
21952 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21953 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21954 Check for -lthread_db and thread support.
21955 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21956 PowerPC, and SuperH.
21957 * i387-fp.c: Constify arguments.
21958 * i387-fp.h: Likewise.
21959 * inferiors.c: (struct thread_info): Renamed from
21960 `struct inferior_info'. Remove PID member. Use generic inferior
21961 list header. All uses updated.
21962 (inferiors, signal_pid): Removed.
21963 (all_threads): New variable.
21964 (get_thread): Define.
21965 (add_inferior_to_list): New function.
21966 (for_each_inferior): New function.
21967 (change_inferior_id): New function.
21968 (add_inferior): Removed.
21969 (remove_inferior): New function.
21970 (add_thread): New function.
21971 (free_one_thread): New function.
21972 (remove_thread): New function.
21973 (clear_inferiors): Use for_each_inferior and free_one_thread.
21974 (find_inferior): New function.
21975 (find_inferior_id): New function.
21976 (inferior_target_data): Update argument type.
21977 (set_inferior_target_data): Likewise.
21978 (inferior_regcache_data): Likewise.
21979 (set_inferior_regcache_data): Likewise.
21980 * linux-low.c (linux_bp_reinsert): Remove.
21981 (all_processes, stopping_threads, using_thrads)
21982 (struct pending_signals, debug_threads, pid_of): New.
21983 (inferior_pid): Replace with macro.
21984 (struct inferior_linux_data): Remove.
21985 (get_stop_pc, add_process): New functions.
21986 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21987 Use add_process and add_thread.
21988 (linux_attach_lwp): New function, based on old linux_attach. Use
21989 add_process and add_thread. Set stop_expected for new threads.
21990 (linux_attach): New function.
21991 (linux_kill_one_process): New function.
21992 (linux_kill): Kill all LWPs.
21993 (linux_thread_alive): Use find_inferior_id.
21994 (check_removed_breakpoints, status_pending_p): New functions.
21995 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21996 Update. Use WNOHANG. Wait for cloned processes also. Update process
21997 struct for the found process.
21998 (linux_wait_for_event): New function.
21999 (linux_wait): Use it. Support LWPs.
22000 (send_sigstop, wait_for_sigstop, stop_all_processes)
22001 (linux_resume_one_process, linux_continue_one_process): New functions.
22002 (linux_resume): Support LWPs.
22003 (REGISTER_RAW_SIZE): Remove.
22004 (fetch_register): Use register_size instead. Call supply_register.
22005 (usr_store_inferior_registers): Likewise. Call collect_register.
22006 Fix recursive case.
22007 (regsets_fetch_inferior_registers): Improve error message.
22008 (regsets_store_inferior_registers): Add debugging.
22009 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22010 (unstopped_p, linux_signal_pid): New functions.
22011 (linux_target_ops): Add linux_signal_pid.
22012 (linux_init_signals): New function.
22013 (initialize_low): Call it. Initialize using_threads.
22014 * regcache.c (inferior_regcache_data): Add valid
22015 flag.
22016 (get_regcache): Fetch registers lazily. Add fetch argument
22017 and update all callers.
22018 (regcache_invalidate_one, regcache_invalidate): New
22019 functions.
22020 (new_register_cache): Renamed from create_register_cache.
22021 Return the new regcache.
22022 (free_register_cache): Change argument to a void *.
22023 (registers_to_string, registers_from_string): Call get_regcache
22024 with fetch flag set.
22025 (register_data): Make static. Pass fetch flag to get_regcache.
22026 (supply_register): Call get_regcache with fetch flag clear.
22027 (collect_register): Call get_regcache with fetch flag set.
22028 (collect_register_as_string): New function.
22029 * regcache.h: Update.
22030 * remote-utils.c (putpkt): Flush after debug output and use
22031 stderr.
22032 Handle input interrupts while waiting for an ACK.
22033 (input_interrupt): Use signal_pid method.
22034 (getpkt): Flush after debug output and use stderr.
22035 (outreg): Use collect_register_as_string.
22036 (new_thread_notify, dead_thread_notify): New functions.
22037 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22038 and general_thread.
22039 (look_up_one_symbol): Flush after debug output.
22040 * server.c (step_thread, server_waiting): New variables.
22041 (start_inferior): Don't use signal_pid. Update call to mywait.
22042 (attach_inferior): Update call to mywait.
22043 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22044 (main): Don't fetch/store registers explicitly. Use
22045 set_desired_inferior. Support proposed ``Hs'' packet. Update
22046 calls to mywait.
22047 * server.h: Update.
22048 (struct inferior_list, struct_inferior_list_entry): New.
22049 * target.c (set_desired_inferior): New.
22050 (write_inferior_memory): Constify.
22051 (mywait): New function.
22052 * target.h: Update.
22053 (struct target_ops): New signal_pid method.
22054 (mywait): Removed macro, added prototype.
22055
22056 * linux-low.h (regset_func): Removed.
22057 (regset_fill_func, regset_store_func): New.
22058 (enum regset_type): New.
22059 (struct regset_info): Add type field. Use new operation types.
22060 (struct linux_target_ops): stop_pc renamed to get_pc.
22061 Add decr_pc_after_break and breakpoint_at.
22062 (get_process, get_thread_proess, get_process_thread)
22063 (strut process_info, all_processes, linux_attach_lwp)
22064 (thread_db_init): New.
22065
22066 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22067 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22068 (the_low_target): Add new members.
22069 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22070 (i386_store_fpxregset): Constify.
22071 (target_regsets): Add new kind identifier.
22072 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22073 (i386_set_pc): Add debugging.
22074 (i386_breakpoint_at): New function.
22075 (the_low_target): Add new members.
22076 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22077 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22078 (mips_breakpoint_at): New.
22079 (the_low_target): Add new members.
22080 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22081 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22082 (the_low_target): Add new members.
22083 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22084 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22085 (the_low_target): Add new members.
22086 * linux-x86-64-low.c (target_regsets): Add new kind
22087 identifier.
22088
220892002-05-15 Daniel Jacobowitz <drow@mvista.com>
22090
22091 From Martin Pool <mbp@samba.org>:
22092 * server.c (gdbserver_usage): New function.
22093 (main): Call it.
22094
220952002-05-14 Daniel Jacobowitz <drow@mvista.com>
22096
22097 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22098 stop_at -> stop_pc.
22099
221002002-05-04 Andrew Cagney <ac131313@redhat.com>
22101
22102 * Makefile.in: Remove obsolete code.
22103
221042002-04-24 Michal Ludvig <mludvig@suse.cz>
22105
22106 * linux-low.c (regsets_fetch_inferior_registers),
22107 (regsets_store_inferior_registers): Removed cast to int from
22108 ptrace() calls.
22109 * regcache.h: Added declaration of struct inferior_info.
22110
221112002-04-20 Daniel Jacobowitz <drow@mvista.com>
22112
22113 * inferiors.c (struct inferior_info): Add regcache_data.
22114 (add_inferior): Call create_register_cache.
22115 (clear_inferiors): Call free_register_cache.
22116 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22117 * regcache.c (struct inferior_regcache_data): New.
22118 (registers): Remove.
22119 (get_regcache): New function.
22120 (create_register_cache, free_register_cache): New functions.
22121 (set_register_cache): Don't initialize the register cache here.
22122 (registers_to_string, registers_from_string, register_data): Call
22123 get_regcache.
22124 * regcache.h: Add prototypes.
22125 * server.h: Likewise.
22126
221272002-04-20 Daniel Jacobowitz <drow@mvista.com>
22128
22129 * mem-break.c: New file.
22130 * mem-break.h: New file.
22131 * Makefile.in: Add mem-break.o rule; update server.h
22132 dependencies.
22133 * inferiors.c (struct inferior_info): Add target_data
22134 member.
22135 (clear_inferiors): Free target_data member if set.
22136 (inferior_target_data, set_inferior_target_data): New functions.
22137 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22138 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22139 * linux-low.c (linux_bp_reinsert): New variable.
22140 (struct inferior_linux_data): New.
22141 (linux_create_inferior): Use set_inferior_target_data.
22142 (linux_attach): Likewise. Call add_inferior.
22143 (linux_wait_for_one_inferior): New function.
22144 (linux_wait): Call it.
22145 (linux_write_memory): Add const.
22146 (initialize_low): Call set_breakpoint_data.
22147 * linux-low.h (struct linux_target_ops): Add breakpoint
22148 handling members.
22149 * server.c (attach_inferior): Remove extra add_inferior
22150 call.
22151 * server.h: Include mem-break.h. Update inferior.c
22152 prototypes.
22153 * target.c (read_inferior_memory)
22154 (write_inferior_memory): New functions.
22155 * target.h (read_inferior_memory)
22156 (write_inferior_memory): Change macros to prototypes.
22157 (struct target_ops): Update comments. Add const to write_memory
22158 definition.
22159
221602002-04-11 Daniel Jacobowitz <drow@mvista.com>
22161
22162 * linux-low.c (usr_store_inferior_registers): Support
22163 registers which are allowed to fail to store.
22164 * linux-low.h (linux_target_ops): Likewise.
22165 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22166 (ppc_cannot_store_register): FPSCR may not be storable.
22167
221682002-04-09 Daniel Jacobowitz <drow@mvista.com>
22169
22170 * server.h: Include <string.h> if HAVE_STRING_H.
22171 * ChangeLog: Correct paths in last ChangeLog entry.
22172
221732002-04-09 Daniel Jacobowitz <drow@mvista.com>
22174
22175 * linux-low.h: Remove obsolete prototypes.
22176 (struct linux_target_ops): New.
22177 (extern the_low_target): New.
22178 * linux-low.c (num_regs, regmap): Remove declarations.
22179 (register_addr): Use the_low_target explicitly.
22180 (fetch_register): Likewise.
22181 (usr_fetch_inferior_registers): Likewise.
22182 (usr_store_inferior_registers): Likewise.
22183 * linux-arm-low.c (num_regs): Remove.
22184 (arm_num_regs): Define.
22185 (arm_regmap): Renamed from regmap, made static.
22186 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22187 made static.
22188 (arm_cannot_store_register): Renamed from cannot_store_register,
22189 made static.
22190 (the_low_target): New.
22191 * linux-i386-low.c (num_regs): Remove.
22192 (i386_num_regs): Define.
22193 (i386_regmap): Renamed from regmap, made static.
22194 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22195 made static.
22196 (i386_cannot_store_register): Renamed from cannot_store_register,
22197 made static.
22198 (the_low_target): New.
22199 * linux-ia64-low.c (num_regs): Remove.
22200 (ia64_num_regs): Define.
22201 (ia64_regmap): Renamed from regmap, made static.
22202 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22203 made static.
22204 (ia64_cannot_store_register): Renamed from cannot_store_register,
22205 made static.
22206 (the_low_target): New.
22207 * linux-m68k-low.c (num_regs): Remove.
22208 (m68k_num_regs): Define.
22209 (m68k_regmap): Renamed from regmap, made static.
22210 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22211 made static.
22212 (m68k_cannot_store_register): Renamed from cannot_store_register,
22213 made static.
22214 (the_low_target): New.
22215 * linux-mips-low.c (num_regs): Remove.
22216 (mips_num_regs): Define.
22217 (mips_regmap): Renamed from regmap, made static.
22218 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22219 made static.
22220 (mips_cannot_store_register): Renamed from cannot_store_register,
22221 made static.
22222 (the_low_target): New.
22223 * linux-ppc-low.c (num_regs): Remove.
22224 (ppc_num_regs): Define.
22225 (ppc_regmap): Renamed from regmap, made static.
22226 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22227 made static.
22228 (ppc_cannot_store_register): Renamed from cannot_store_register,
22229 made static.
22230 (the_low_target): New.
22231 * linux-s390-low.c (num_regs): Remove.
22232 (s390_num_regs): Define.
22233 (s390_regmap): Renamed from regmap, made static.
22234 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22235 made static.
22236 (s390_cannot_store_register): Renamed from cannot_store_register,
22237 made static.
22238 (the_low_target): New.
22239 * linux-sh-low.c (num_regs): Remove.
22240 (sh_num_regs): Define.
22241 (sh_regmap): Renamed from regmap, made static.
22242 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22243 made static.
22244 (sh_cannot_store_register): Renamed from cannot_store_register,
22245 made static.
22246 (the_low_target): New.
22247 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22248 (the_low_target): New.
22249
222502002-04-09 Daniel Jacobowitz <drow@mvista.com>
22251
22252 * Makefile.in: Add stamp-h target.
22253 * configure.in: Create stamp-h.
22254 * configure: Regenerated.
22255
222562002-04-09 Daniel Jacobowitz <drow@mvista.com>
22257
22258 * inferiors.c: New file.
22259 * target.c: New file.
22260 * target.h: New file.
22261 * Makefile.in: Add target.o and inferiors.o. Update
22262 dependencies.
22263 * linux-low.c (inferior_pid): New static variable,
22264 moved from server.c.
22265 (linux_create_inferior): Renamed from create_inferior.
22266 Call add_inferior. Return 0 on success instead of a PID.
22267 (linux_attach): Renamed from myattach.
22268 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22269 (linux_thread_alive): Renamed from mythread_alive.
22270 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22271 child dies.
22272 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22273 (regsets_store_inferior_registers): Correct error message.
22274 Add missing ``return 0''.
22275 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22276 (linux_store_registers): Renamed from store_inferior_registers.
22277 (linux_read_memory): Renamed from read_inferior_memory.
22278 (linux_write_memory): Renamed from write_inferior_memory.
22279 (linux_target_ops): New structure.
22280 (initialize_low): Call set_target_ops ().
22281 * remote-utils.c (unhexify): New function.
22282 (hexify): New function.
22283 (input_interrupt): Send signals to ``signal_pid''.
22284 * server.c (inferior_pid): Remove.
22285 (start_inferior): Update create_inferior call.
22286 (attach_inferior): Call add_inferior.
22287 (handle_query): New function.
22288 (main): Call handle_query for `q' packets.
22289 * server.h: Include "target.h". Remove obsolete prototypes.
22290 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22291
222922002-04-09 Daniel Jacobowitz <drow@mvista.com>
22293
22294 * Makefile.in: Add WARN_CFLAGS. Update configury
22295 dependencies.
22296 * configure.in: Check for <string.h>
22297 * configure: Regenerate.
22298 * config.in: Regenerate.
22299 * gdbreplay.c: Include needed system headers.
22300 (remote_open): Remove strchr prototype.
22301 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22302 * regcache.c (supply_register): Change buf argument to const void *.
22303 (supply_register_by_name): Likewise.
22304 (collect_register): Change buf argument to void *.
22305 (collect_register_by_name): Likewise.
22306 * regcache.h: Add missing prototypes.
22307 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22308 * server.c (handle_query): New function.
22309 (attached): New static variable, moved out of main.
22310 (main): Quiet longjmp clobber warnings.
22311 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22312 * utils.c (error): Remove NORETURN.
22313 (fatal): Likewise.