]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
Refactor the NetBSD amd64 gdbserver support
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
15397b0e
KR
12020-10-01 Kamil Rytarowski <n54@gmx.com>
2
3 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
4 (netbsd_target_regsets): Now const.
5 (the_low_target): Remove.
6 (class netbsd_amd64_target, the_netbsd_amd64_target)
7 (the_netbsd_target): Add.
8 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
9 low_arch_setup ().
10 (netbsd_process_target::fetch_registers)
11 (netbsd_process_target::store_registers, initialize_low): Update.
12 (the_netbsd_target): Remove.
13 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
14 (the_low_target, netbsd_tdesc): Remove.
15 (netbsd_process_target::get_regs_info)
16 (netbsd_process_target::low_arch_setup): Add.
17
99bb393f
HD
182020-09-23 Hannes Domani <ssbssa@yahoo.de>
19
20 * win32-low.cc: Remove local wow64_process variable.
21 * win32-low.h: Remove local wow64_process variable.
22
b60cea74
TT
232020-09-18 Tom Tromey <tromey@adacore.com>
24
25 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
26 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
27 (netbsd_process_target::wait): Change type of target_options.
28 * win32-low.h (class win32_process_target) <wait>: Update.
29 * win32-low.cc (win32_process_target::wait): Update.
30 * target.h (class process_stratum_target) <wait>: Update.
31 (mywait): Update.
32 * target.cc (mywait, target_wait): Change type of "options".
33 * linux-low.h (class linux_process_target) <wait, wait_1>:
34 Update.
35 * linux-low.cc (linux_process_target::wait)
36 (linux_process_target::wait_1): Update.
37
db92ac45
TT
382020-09-15 Tom Tromey <tromey@adacore.com>
39
40 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
41 (xmltarget_amd64_linux_no_xml): Now arrays.
42
27087b7f
TT
432020-09-14 Tom Tromey <tromey@adacore.com>
44
45 * tracepoint.cc (eval_result_names): Now const.
46 * ax.cc (gdb_agent_op_names): Now const.
47
62ba5048
KR
482020-09-10 Kamil Rytarowski <n54@gmx.com>
49
50 * netbsd-low.cc: Add.
51 * netbsd-low.h: Likewise.
52 * netbsd-amd64-low.cc: Likewise.
53 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
54 "netbsd-amd64-low.cc".
55 * configure.srv: Add x86_64-*-netbsd*.
56
ece5bc8a
SM
572020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
58
59 * server.cc (captured_main): Accept multiple `--selftest=`
60 options. Pass all `--selftest=` arguments to run_tests.
61
c8693053
RO
622020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
63
64 * configure, config.in: Regenerate.
65
05a6b8c2
EZ
662020-07-26 Eli Zaretskii <eliz@gnu.org>
67
68 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
69 When checking whether socklen_t type is defined, use ws2tcpip.h if
70 it is available and sys/socket.h isn't.
71 * configure: Regenerate.
72 * config.in: Regenerate.
73
028a4603
PA
742020-07-22 Pedro Alves <pedro@palves.net>
75
76 * inferiors.cc (switch_to_process): New, moved here from
77 thread-db.cc, and made extern.
78 * inferiors.h (switch_to_process): Declare.
79 * server.cc: Include "gdbsupport/scoped_restore.h".
80 (handle_qxfer_threads_proper): Now returns bool. Prepare to
81 access memory around target calls.
82 (handle_qxfer_threads): Handle errors.
83 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
84
05c309a8
SM
852020-07-21 Simon Marchi <simon.marchi@efficios.com>
86
87 * linux-low.cc (stopped_pids): Make static.
88
0e267416
AB
892020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
90
91 * tdesc.cc (allocate_target_description): Add header comment.
92 (target_desc_deleter::operator()): New function.
93 * tdesc.h (struct target_desc): Declare as final.
94
b315b67d
SM
952020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
96
97 * server.cc (handle_query): Use std::vector of
98 std::string for `qsupported` vector. Use separate
99 vector for unknowns.
100 * target.h (class process_stratum_target) <process_qsupported>:
101 Change parameters to array_view of const char *.
102 (target_process_qsupported): Remove `count` parameter.
103 * target.cc (process_stratum_target::process_qsupported): Change
104 parameters to array_view of const char *.
105 * linux-x86-low.cc (class x86_target) <process_qsupported>:
106 Likewise.
107
f638ed73
TV
1082020-06-29 Tom de Vries <tdevries@suse.de>
109
110 * ax.h: Include gdbsupport/debug_agent.h.
111
fbf42f4e
AB
1122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
113
114 * tdesc.cc (struct tdesc_compatible_info): New struct.
115 (tdesc_compatible_info_list): New function.
116 (tdesc_compatible_info_arch_name): New function.
117
013e3554
TBA
1182020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
119
120 Use std::list to stop pending signal instead of manually-created
121 linked list.
122 * linux-low.h: Include <list>.
123 (struct pending_signal): Move here from linux-low.cc.
124 (struct lwp_info) <pending_signals>
125 <pending_signals_to_report>: Update the type.
126 * linux-low.cc (struct pending_signals): Remove.
127 (linux_process_target::delete_lwp)
128 (linux_process_target::add_lwp)
129 (enqueue_one_deferred_signal)
130 (dequeue_one_deferred_signal)
131 (enqueue_pending_signal)
132 (linux_process_target::resume_one_lwp_throw)
133 (linux_process_target::thread_needs_step_over)
134 (linux_process_target::resume_one_thread)
135 (linux_process_target::proceed_one_lwp): Update the use of pending
136 signal list.
137
7d458ea5
SM
1382020-06-17 Simon Marchi <simon.marchi@efficios.com>
139
140 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
141 Remove.
142
84b300de
SM
1432020-06-12 Simon Marchi <simon.marchi@efficios.com>
144
145 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
146 * configure.srv: Remove mingw32ce cases.
147 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
148 * win32-low.h (to_back_slashes): Remove.
149 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
150
96c16e2b
SM
1512020-06-12 Simon Marchi <simon.marchi@efficios.com>
152
153 * Makefile.in (SFILES): linux-tile-low.cc.
154 * configure.srv: Remove tilegx case.
155 * linux-tile-low.cc: Remove.
156
bd1467ae
SM
1572020-06-12 Simon Marchi <simon.marchi@efficios.com>
158
159 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
160 * configure.srv: Remove m32r case.
161 * linux-m32r-low.cc: Remove.
162
7b46bf6f
SM
1632020-06-12 Simon Marchi <simon.marchi@efficios.com>
164
165 * Makefile.in (SFILES): Remove linux-cris-low.c.
166 * configure.srv: Remove cris cases.
167 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
168
1fa29f56
SM
1692020-06-12 Simon Marchi <simon.marchi@efficios.com>
170
171 * Makefile.in (SFILES): Remove linux-bfin-low.c.
172 * configure.srv: Remove bfin case.
173 * linux-bfin-low.cc: Remove.
174 * linux-low.cc: Remove BFIN-conditional code.
175
613f149a
SM
1762020-06-12 Simon Marchi <simon.marchi@efficios.com>
177
178 * configure: Re-generate.
179 * configure.ac: Remove srv_qnx test.
180 * configure.srv: Remove nto case.
181 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
182 * remote-utils.c: Remove __QNX__-guarded code.
183
fdb95bf5
SM
1842020-06-12 Simon Marchi <simon.marchi@efficios.com>
185
186 * configure: Re-generate.
187 * configure.ac: Remove srv_lynxos test.
188 * configure.srv: Remove lynxos cases.
189 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
190 Remove.
191
c00094dc
SM
1922020-06-12 Simon Marchi <simon.marchi@efficios.com>
193
194 * README: Fix a few outdated or incoherent things.
195
6479bf85
HD
1962020-05-27 Hannes Domani <ssbssa@yahoo.de>
197
198 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
199 (win32_clear_inferiors): Use open_process_used.
200 (get_child_debug_event): Likewise.
201
bea571eb
MW
2022020-05-25 Michael Weghorn <m.weghorn@posteo.de>
203
204 PR gdbserver/25893
205 * linux-low.cc (linux_process_target::create_inferior),
206 lynx-low.cc (lynx_process_target::create_inferior),
207 win32-low.cc (win32_process_target::create_inferior): Use
208 construct_inferior_arguments instead of stringify_argv
209 to get string representation which properly escapes
210 special characters.
211 * server.cc (handle_v_run): Just pass empty program arg
212 as such, since any further processing is now handled via
213 construct_inferior_arguments.
214
ace6b919
MW
2152020-05-25 Michael Weghorn <m.weghorn@posteo.de>
216
217 * nto-low.cc (nto_process_target::create_inferior): Pass
218 argv to spawnp function as char **.
219
b69ca137
MW
2202020-05-25 Michael Weghorn <m.weghorn@posteo.de>
221
222 * server.cc (captured_main), (handle_v_run): No longer
223 insert extra NULL element to args vector.
224
51e2cfa2
PA
2252020-05-23 Pedro Alves <palves@redhat.com>
226
227 * gdb-safe-ctype.h: New.
228
8bbf0394
TBA
2292020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
230
231 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
232 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
233 (ia64_target::low_breakpoint_at): Ditto.
234
01370779
HD
2352020-05-15 Hannes Domani <ssbssa@yahoo.de>
236
237 * win32-i386-low.cc (i386_supports_z_point_type): Handle
238 Z_PACKET_HW_BP z_type.
239 (i386_insert_point): Handle raw_bkpt_type type.
240 (i386_remove_point): Likewise.
241
7d186bc0
HD
2422020-04-30 Hannes Domani <ssbssa@yahoo.de>
243
244 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
245 Add arch/i386.o.
246 * win32-arm-low.cc (arm_num_regs): New function.
247 (struct win32_target_ops): Use arm_num_regs.
248 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
249 processes.
250 (i386_get_thread_context): Likewise.
251 (i386_prepare_to_resume): Likewise.
252 (i386_thread_added): Likewise.
253 (i386_single_step): Likewise.
254 (i386_fetch_inferior_register): Likewise.
255 (i386_store_inferior_register): Likewise.
256 (i386_arch_setup): Likewise.
257 (i386_win32_num_regs): New function.
258 (struct win32_target_ops): Use i386_win32_num_regs.
259 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
260 processes.
261 (win32_require_context): Likewise.
262 (child_add_thread): Likewise.
263 (do_initial_child_stuff): Likewise.
264 (continue_one_thread): Likewise.
265 (win32_process_target::resume): Likewise.
266 (load_psapi): Likewise.
267 (win32_add_all_dlls): Likewise.
268 (maybe_adjust_pc): Likewise.
269 (win32_process_target::qxfer_siginfo): Likewise.
270 (initialize_low): Likewise.
271 * win32-low.h (struct win32_target_ops): Change num_regs to
272 callback function.
273
1eb39914
SM
2742020-04-27 Simon Marchi <simon.marchi@efficios.com>
275
276 * configure.ac: Remove check for fs_base/gs_base in
277 user_regs_struct.
278 * configure: Re-generate.
279 * config.in: Re-generate.
280 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
281 x86_store_gregset): Adjust.
282
51ac8e22
HD
2832020-04-22 Hannes Domani <ssbssa@yahoo.de>
284
285 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
286 comparison.
287
a010605f
TT
2882020-04-16 Tom Tromey <tromey@adacore.com>
289
290 * win32-low.cc (windows_nat::handle_access_violation): New
291 function.
292
e2275c6e
SM
2932020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
294
295 * win32-low.cc (get_child_debug_event): Fix format string warning.
296
73944e9f
TT
2972020-04-13 Tom Tromey <tom@tromey.com>
298
299 * server.h (gdb_fildes_t): Remove typedef.
300 * remote-utils.c (remote_desc, list_desc): Now int.
301 (INVALID_DESCRIPTOR): Remove.
302 (gdb_connected, remote_close)
303 (check_remote_input_interrupt_request): Update.
304 * utils.h (pfildes): Don't declare.
305 * utils.c (pfildes): Remove.
306
55d7aec8
TT
3072020-04-13 Tom Tromey <tom@tromey.com>
308
309 * server.h (handle_serial_event, handle_target_event): Update.
310 * server.c: Don't call initialize_event_loop.
311 (keep_processing_events): New global.
312 (handle_serial_event): Return void. Set keep_processing_events.
313 (handle_target_event): Return void.
314 (start_event_loop): Move from event-loop.c. Rewrite.
315 * remote-utils.c (handle_accept_event): Return void.
316 (reset_readchar): Use delete_timer.
317 (process_remaining): Return void.
318 (reschedule): Use create_timer.
319 * event-loop.h: Remove.
320 * event-loop.cc: Remove.
321 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
322
e487f994
TT
3232020-04-13 Tom Tromey <tom@tromey.com>
324
325 * server.c (invoke_async_signal_handlers)
326 (check_async_event_handlers, flush_streams, gdb_select): New
327 functions.
328
8ae8e197
TT
3292020-04-13 Tom Tromey <tom@tromey.com>
330
331 * configure: Rebuild.
332 * config.in: Rebuild.
333
360ad8b3
TT
3342020-04-08 Tom Tromey <tromey@adacore.com>
335
336 PR gdb/22992
337 * win32-low.c (child_continue): Call matching_pending_stop.
338 (get_child_debug_event): Call fetch_pending_stop. Push pending
339 stop when needed.
340
523d4f80
TT
3412020-04-08 Tom Tromey <tromey@adacore.com>
342
343 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
344 (win32_process_target::supports_stopped_by_sw_breakpoint):
345 Declare.
346 * win32-low.c (win32_supports_z_point_type): Always handle
347 Z_PACKET_SW_BP.
348 (win32_insert_point): Call insert_memory_breakpoint when needed.
349 (win32_remove_point): Call remove_memory_breakpoint when needed.
350 (win32_process_target::stopped_by_sw_breakpoint)
351 (win32_process_target::supports_stopped_by_sw_breakpoint): New
352 methods.
353 (win32_target_ops): Update.
354 (maybe_adjust_pc): New function.
355 (win32_wait): Call maybe_adjust_pc.
356
e54e5929
TT
3572020-04-08 Tom Tromey <tromey@adacore.com>
358
359 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
360 field.
361 * win32-i386-low.c (the_low_target): Update.
362 * win32-arm-low.c (the_low_target): Update.
363
d6225aff
TT
3642020-04-08 Tom Tromey <tromey@adacore.com>
365
366 * win32-low.h (win32_process_target::read_pc)
367 (win32_process_target::write_pc): Declare.
368 * win32-low.c (win32_process_target::read_pc)
369 (win32_process_target::write_pc): New methods.
370 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
371 functions.
372 (the_low_target): Update.
373 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
374 functions.
375 (the_low_target): Update.
376
2c1d95e8
TT
3772020-04-08 Tom Tromey <tromey@adacore.com>
378
379 * win32-low.c (win32_kill, get_child_debug_event): Use
380 wait_for_debug_event.
381
e758e19c
TT
3822020-04-08 Tom Tromey <tromey@adacore.com>
383
384 * win32-low.c (child_continue): Call continue_last_debug_event.
385
8d30e395
TT
3862020-04-08 Tom Tromey <tromey@adacore.com>
387
388 * win32-low.c (handle_exception): Remove.
389 (windows_nat::handle_ms_vc_exception): New function.
390 (get_child_debug_event): Add "continue_status" parameter.
391 Update.
392 (win32_wait): Update.
393
a816ba18
TT
3942020-04-08 Tom Tromey <tromey@adacore.com>
395
396 * win32-low.c (windows_nat::handle_load_dll): Rename from
397 handle_load_dll. No longer static.
398 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
399 No longer static.
400
d41b524f
TT
4012020-04-08 Tom Tromey <tromey@adacore.com>
402
403 * win32-low.c (handle_output_debug_string): Add parameter. Change
404 return type.
405 (win32_kill, get_child_debug_event): Update.
406
3c76026d
TT
4072020-04-08 Tom Tromey <tromey@adacore.com>
408
409 * win32-low.c (current_process_handle, current_process_id)
410 (main_thread_id, last_sig, current_event, siginfo_er): Move to
411 nat/windows-nat.c.
412
9d8679cc
TT
4132020-04-08 Tom Tromey <tromey@adacore.com>
414
415 * win32-low.c (get_image_name): Remove.
416 (handle_load_dll): Update.
417
28688adf
TT
4182020-04-08 Tom Tromey <tromey@adacore.com>
419
420 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
421 No longer static. Change parameters.
422 (child_add_thread, child_fetch_inferior_registers)
423 (child_store_inferior_registers, win32_resume)
424 (win32_get_tib_address): Update.
425
4834dad0
TT
4262020-04-08 Tom Tromey <tromey@adacore.com>
427
428 * win32-low.h (struct win32_target_ops): Use qualified names where
429 needed.
430 * win32-i386-low.c: Add "using namespace".
431 * win32-low.c: Add "using namespace".
432 * win32-arm-low.c: Add "using namespace".
433
65bafd5b
TT
4342020-04-08 Tom Tromey <tromey@adacore.com>
435
436 * win32-low.c (delete_thread_info): Don't call CloseHandle.
437
98a03287
TT
4382020-04-08 Tom Tromey <tromey@adacore.com>
439
440 * win32-low.c (win32_require_context, suspend_one_thread): Use
441 windows_thread_info::suspend.
442 (continue_one_thread): Use windows_thread_info::resume.
443 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
444
62fe396b
TT
4452020-04-08 Tom Tromey <tromey@adacore.com>
446
447 * win32-i386-low.c (update_debug_registers)
448 (i386_prepare_to_resume, i386_thread_added): Update.
449
e9534bd2
TT
4502020-04-08 Tom Tromey <tromey@adacore.com>
451
452 * win32-low.c (child_add_thread): Use new.
453 (delete_thread_info): Use delete.
454
ae1f8880
TT
4552020-04-08 Tom Tromey <tromey@adacore.com>
456
457 * win32-low.h (struct windows_thread_info): Remove.
458
e56f8ccb
TT
4592020-04-08 Tom Tromey <tromey@adacore.com>
460
461 * win32-low.h (struct windows_thread_info): Rename from
462 win32_thread_info. Remove typedef.
463 (struct win32_target_ops, win32_require_context): Update.
464 * win32-low.c (win32_get_thread_context)
465 (win32_set_thread_context, win32_prepare_to_resume)
466 (win32_require_context, thread_rec, child_add_thread)
467 (delete_thread_info, continue_one_thread)
468 (child_fetch_inferior_registers, child_store_inferior_registers)
469 (win32_resume, suspend_one_thread, win32_get_tib_address):
470 Update.
471 * win32-i386-low.c (update_debug_registers)
472 (win32_get_current_dr, i386_get_thread_context)
473 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
474 (i386_fetch_inferior_register, i386_store_inferior_register):
475 Update.
476 * win32-arm-low.c (arm_get_thread_context)
477 (arm_fetch_inferior_register, arm_store_inferior_register):
478 Update.
479
0dd7b52e
TBA
4802020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
481
482 * linux-low.h (struct linux_target_ops): Remove.
483 (the_low_target): Remove.
484 * linux-x86-low.cc (the_low_target): Remove.
485 * linux-aarch64-low.cc (the_low_target): Ditto.
486 * linux-arm-low.cc (the_low_target): Ditto.
487 * linux-bfin-low.cc (the_low_target): Ditto.
488 * linux-cris-low.cc (the_low_target): Ditto.
489 * linux-crisv32-low.cc (the_low_target): Ditto.
490 * linux-ia64-low.cc (the_low_target): Ditto.
491 * linux-m32r-low.cc (the_low_target): Ditto.
492 * linux-m68k-low.cc (the_low_target): Ditto.
493 * linux-mips-low.cc (the_low_target): Ditto.
494 * linux-nios2-low.cc (the_low_target): Ditto.
495 * linux-ppc-low.cc (the_low_target): Ditto.
496 * linux-riscv-low.cc (the_low_target): Ditto.
497 * linux-s390-low.cc (the_low_target): Ditto.
498 * linux-sh-low.cc (the_low_target): Ditto.
499 * linux-sparc-low.cc (the_low_target): Ditto.
500 * linux-tic6x-low.cc (the_low_target): Ditto.
501 * linux-tile-low.cc (the_low_target): Ditto.
502 * linux-xtensa-low.cc (the_low_target): Ditto.
503
fc5ecdb6
TBA
5042020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
505
506 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
507 linux target define the op by overriding the declaration in
508 process_stratum_target.
509
510 * linux-low.h (struct linux_target_ops): Remove the op.
511 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
512 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
513 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
514 (x86_get_ipa_tdesc_idx): Turn into...
515 (x86_target::get_ipa_tdesc_idx): ...this.
516 (the_low_target): Remove the op field.
517 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
518 (ppc_get_ipa_tdesc_idx): Turn into...
519 (ppc_target::get_ipa_tdesc_idx): ...this.
520 (the_low_target): Remove the op field.
521 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
522 (s390_get_ipa_tdesc_idx): Turn into...
523 (s390_target::get_ipa_tdesc_idx): ...this.
524 (the_low_target): Remove the op field.
525
9eedd27d
TBA
5262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
527
528 Turn the 'get_syscall_trapinfo' linux target op into a method
529 of process_stratum_target.
530
531 * linux-low.h (struct linux_target_ops): Remove the op.
532 (class linux_process_target) <get_syscall_trapinfo>
533 <gdb_catch_this_syscall>
534 <low_supports_catch_syscall>
535 <low_get_syscall_trapinfo>: Declare.
536 * linux-low.cc (get_syscall_trapinfo): Turn into...
537 (linux_process_target::get_syscall_trapinfo): ...this.
538 (linux_process_target::low_get_syscall_trapinfo): Define.
539 (gdb_catch_this_syscall_p): Turn into...
540 (linux_process_target::gdb_catch_this_syscall): ...this.
541 (linux_process_target::low_supports_catch_syscall): Define.
542
543 Update the callers below.
544
545 (linux_process_target::wait_1)
546 (linux_process_target::supports_catch_syscall)
547
548 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
549 <low_get_syscall_trapinfo>: Declare.
550 (x86_target::low_supports_catch_syscall): Define.
551 (x86_get_syscall_trapinfo): Turn into...
552 (x86_target::low_get_syscall_trapinfo): ...this.
553 (the_low_target): Remove the op field.
554 * linux-aarch64-low.cc (class aarch64_target)
555 <low_supports_catch_syscall>
556 <low_get_syscall_trapinfo>: Declare.
557 (aarch64_target::low_supports_catch_syscall): Define.
558 (aarch64_get_syscall_trapinfo): Turn into...
559 (aarch64_target::low_get_syscall_trapinfo): ...this.
560 (the_low_target): Remove the op field.
561 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
562 <low_get_syscall_trapinfo>: Declare.
563 (arm_target::low_supports_catch_syscall): Define.
564 (arm_get_syscall_trapinfo): Turn into...
565 (arm_target::low_get_syscall_trapinfo): ...this.
566 (the_low_target): Remove the op field.
567 * linux-ppc-low.cc (the_low_target): Remove the op field.
568 * linux-s390-low.cc (the_low_target): Remove the op field.
569
b31cdfa6
TBA
5702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
571
572 Remove the 'supports_hardware_single_step' linux target op and
573 override the process_stratum_target's op definition in
574 linux_process_target to return true.
575
576 * linux-low.h (struct linux_target_ops): Remove the op.
577 (class linux_process_target) <finish_step_over>
578 <maybe_hw_step>: Declare.
579 * linux-low.cc (can_hardware_single_step): Remove.
580 (maybe_hw_step): Turn into...
581 (linux_process_target::maybe_hw_step): ...this.
582 (finish_step_over): Turn into...
583 (linux_process_target::finish_step_over): ...this.
584 (linux_process_target::supports_hardware_single_step): Update
585 to return true.
586
587 Update the callers below.
588
589 (linux_process_target::single_step)
590 (linux_process_target::resume_one_lwp_throw)
591
592 * linux-arm-low.cc (class arm_target)
593 <supports_hardware_single_step>: Declare.
594 (arm_supports_hardware_single_step): Turn into...
595 (arm_target::supports_hardware_single_step): ...this.
596 (the_low_target): Remove the op field.
597 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
598 (the_low_target): Remove the op field.
599 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
600 Remove.
601 (the_low_target): Remove the op field.
602 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
603 (the_low_target): Remove the op field.
604 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
605 (the_low_target): Remove the op field.
606 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
607 (the_low_target): Remove the op field.
608 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
609 (the_low_target): Remove the op field.
610 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
611 (the_low_target): Remove the op field.
612 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
613 (the_low_target): Remove the op field.
614 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
615 (the_low_target): Remove the op field.
616 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
617 (the_low_target): Remove the op field.
618 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
619 (the_low_target): Remove the op field.
620 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
621 Remove.
622 (the_low_target): Remove the op field.
623
9cfd8715
TBA
6242020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
625
626 Turn the 'supports_range_stepping' linux target op into a method
627 of linux_process_target.
628
629 * linux-low.h (struct linux_target_ops): Remove the op.
630 (class linux_process_target) <low_supports_range_stepping>: Declare.
631 * linux-low.cc (linux_process_target::low_supports_range_stepping):
632 Define.
633 (linux_process_target::supports_range_stepping): Update the call
634 site.
635 * linux-x86-low.cc (class x86_target)
636 <low_supports_range_stepping>: Declare.
637 (x86_supports_range_stepping): Turn into...
638 (x86_target::low_supports_range_stepping): ...this.
639 (the_low_target): Remove the op field.
640 * linux-aarch64-low.cc (class aarch64_target)
641 <low_supports_range_stepping>: Declare.
642 (aarch64_supports_range_stepping): Turn into...
643 (aarch64_target::low_supports_range_stepping): ...this.
644 (the_low_target): Remove the op field.
645 * linux-arm-low.cc (the_low_target): Remove the op field.
646 * linux-bfin-low.cc (the_low_target): Ditto.
647 * linux-crisv32-low.cc (the_low_target): Ditto.
648 * linux-m32r-low.cc (the_low_target): Ditto.
649 * linux-m68k-low.cc (the_low_target): Ditto.
650 * linux-ppc-low.cc (the_low_target): Ditto.
651 * linux-s390-low.cc (the_low_target): Ditto.
652 * linux-sh-low.cc (the_low_target): Ditto.
653 * linux-tic6x-low.cc (the_low_target): Ditto.
654 * linux-tile-low.cc (the_low_target): Ditto.
655 * linux-xtensa-low.cc (the_low_target): Ditto.
656
ab64c999
TBA
6572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
658
659 Remove the 'emit_ops' linux target ops and let the concrete
660 linux target define the op by overriding the declaration of
661 process_stratum_target.
662
663 * linux-low.h (struct linux_target_ops): Remove the op.
664 (class linux_process_target) <emit_ops>: Remove.
665 * linux-low.cc (linux_process_target::emit_ops): Remove.
666 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
667 (x86_emit_ops): Turn into...
668 (x86_target::emit_ops): ...this.
669 (the_low_target): Remove the op field.
670 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
671 (aarch64_emit_ops): Turn into...
672 (aarch64_target::emit_ops): ...this.
673 (the_low_target): Remove the op field.
674 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
675 (ppc_emit_ops): Turn into...
676 (ppc_target::emit_ops): ...this.
677 (the_low_target): Remove the op field.
678 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
679 (s390_emit_ops): Turn into...
680 (s390_target::emit_ops): ...this.
681 (the_low_target): Remove the op field.
682 * linux-arm-low.cc (the_low_target): Remove the op field.
683 * linux-bfin-low.cc (the_low_target): Ditto.
684 * linux-crisv32-low.cc (the_low_target): Ditto.
685 * linux-m32r-low.cc (the_low_target): Ditto.
686 * linux-m68k-low.cc (the_low_target): Ditto.
687 * linux-sh-low.cc (the_low_target): Ditto.
688 * linux-tic6x-low.cc (the_low_target): Ditto.
689 * linux-tile-low.cc (the_low_target): Ditto.
690 * linux-xtensa-low.cc (the_low_target): Ditto.
691
809a0c35
TBA
6922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
693
694 Remove the 'install_fast_tracepoint_jump_pad' and
695 'get_min_fast_tracepoint_insn_len' linux target ops to let the
696 concrete linux target define the ops by overriding the declarations
697 of process_stratum_target.
698
699 * linux-low.h (struct linux_target_ops): Remove the ops.
700 (class linux_process_target) <supports_fast_tracepoints>
701 <install_fast_tracepoint_jump_pad>
702 <get_min_fast_tracepoint_insn_len>: Remove.
703 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
704 (linux_process_target::install_fast_tracepoint_jump_pad)
705 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
706 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
707 <install_fast_tracepoint_jump_pad>
708 <get_min_fast_tracepoint_insn_len>: Declare.
709 (x86_target::supports_fast_tracepoints): Define.
710 (x86_install_fast_tracepoint_jump_pad): Turn into...
711 (x86_target::install_fast_tracepoint_jump_pad): ...this.
712 (x86_get_min_fast_tracepoint_insn_len): Turn into...
713 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
714 (the_low_target): Remove the op fields.
715 * linux-aarch64-low.cc (class aarch64_target)
716 <supports_fast_tracepoints>
717 <install_fast_tracepoint_jump_pad>
718 <get_min_fast_tracepoint_insn_len>: Declare.
719 (aarch64_target::supports_fast_tracepoints): Define.
720 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
721 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
722 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
723 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
724 (the_low_target): Remove the op fields.
725 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
726 <install_fast_tracepoint_jump_pad>
727 <get_min_fast_tracepoint_insn_len>: Declare.
728 (ppc_target::supports_fast_tracepoints): Define.
729 (ppc_install_fast_tracepoint_jump_pad): Turn into...
730 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
731 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
732 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
733 (the_low_target): Remove the op fields.
734 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
735 <install_fast_tracepoint_jump_pad>
736 <get_min_fast_tracepoint_insn_len>: Declare.
737 (s390_target::supports_fast_tracepoints): Define.
738 (s390_install_fast_tracepoint_jump_pad): Turn into...
739 (s390_target::install_fast_tracepoint_jump_pad): ...this.
740 (s390_get_min_fast_tracepoint_insn_len): Turn into...
741 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
742 (the_low_target): Remove the op fields.
743 * linux-arm-low.cc (the_low_target): Remove the op fields.
744 * linux-bfin-low.cc (the_low_target): Ditto.
745 * linux-crisv32-low.cc (the_low_target): Ditto.
746 * linux-m32r-low.cc (the_low_target): Ditto.
747 * linux-m68k-low.cc (the_low_target): Ditto.
748 * linux-sh-low.cc (the_low_target): Ditto.
749 * linux-tic6x-low.cc (the_low_target): Ditto.
750 * linux-tile-low.cc (the_low_target): Ditto.
751 * linux-xtensa-low.cc (the_low_target): Ditto.
752
13e567af
TBA
7532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
754
755 Turn the 'get_thread_area' linux target op into a method of
756 process_stratum_target.
757
758 * linux-low.h (struct linux_target_ops): Remove the op.
759 (class linux_process_target) <stuck_in_jump_pad>
760 <linux_fast_tracepoint_collecting>
761 <low_get_thread_area>: Declare.
762 * linux-low.cc (supports_fast_tracepoints): Remove.
763 (linux_fast_tracepoint_collecting): Turn into...
764 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
765 (linux_process_target::low_get_thread_area): Define.
766 (stuck_in_jump_pad_callback): Turn into...
767 (linux_process_target::stuck_in_jump_pad): ...this.
768
769 Update the caller below.
770
771 (linux_process_target::stabilize_threads)
772
773 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
774 Declare.
775 (x86_get_thread_area): Turn into...
776 (x86_target::low_get_thread_area): ...this.
777 (the_low_target): Remove the op field.
778 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
779 Declare.
780 (aarch64_get_thread_area): Turn into...
781 (aarch64_target::low_get_thread_area): ...this.
782 (the_low_target): Remove the op field.
783 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
784 Declare.
785 (ppc_get_thread_area): Turn into...
786 (ppc_target::low_get_thread_area): ...this.
787 (the_low_target): Remove the op field.
788 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
789 Declare.
790 (s390_get_thread_area): Turn into...
791 (s390_target::low_get_thread_area): ...this.
792 (the_low_target): Remove the op field.
793 * linux-arm-low.cc (the_low_target): Remove the op field.
794 * linux-bfin-low.cc (the_low_target): Ditto.
795 * linux-crisv32-low.cc (the_low_target): Ditto.
796 * linux-m32r-low.cc (the_low_target): Ditto.
797 * linux-m68k-low.cc (the_low_target): Ditto.
798 * linux-sh-low.cc (the_low_target): Ditto.
799 * linux-tic6x-low.cc (the_low_target): Ditto.
800 * linux-tile-low.cc (the_low_target): Ditto.
801 * linux-xtensa-low.cc (the_low_target): Ditto.
802
47f70aa7
TBA
8032020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
804
805 Remote the 'supports_tracepoints' linux target op and let the
806 concrete linux target define it by overriding the op declared in
807 process_stratum_target.
808
809 * linux-low.h (struct linux_target_ops): Remove the op.
810 (class linux_process_target) <supports_tracepoints>: Remove.
811 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
812 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
813 Declare.
814 (x86_supports_tracepoints): Turn into...
815 (x86_target::supports_tracepoints): ...this.
816 (the_low_target): Remove the op field.
817 * linux-aarch64-low.cc (class aarch64_target)
818 <supports_tracepoints>: Declare.
819 (aarch64_supports_tracepoints): Turn into...
820 (aarch64_target::supports_tracepoints): ...this.
821 (the_low_target): Remove the op field.
822 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
823 Declare.
824 (ppc_supports_tracepoints): Turn into...
825 (ppc_target::supports_tracepoints): ...this.
826 (the_low_target): Remove the op field.
827 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
828 Declare.
829 (s390_supports_tracepoints): Turn into...
830 (s390_target::supports_tracepoints): ...this.
831 (the_low_target): Remove the op field.
832 * linux-arm-low.cc (the_low_target): Remove the op field.
833 * linux-bfin-low.cc (the_low_target): Ditto.
834 * linux-crisv32-low.cc (the_low_target): Ditto.
835 * linux-m32r-low.cc (the_low_target): Ditto.
836 * linux-m68k-low.cc (the_low_target): Ditto.
837 * linux-sh-low.cc (the_low_target): Ditto.
838 * linux-tic6x-low.cc (the_low_target): Ditto.
839 * linux-tile-low.cc (the_low_target): Ditto.
840 * linux-xtensa-low.cc (the_low_target): Ditto.
841
a5b5da92
TBA
8422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
843
844 Remove the 'process_qsupported' linux target op and let a concrete
845 linux target define the op by overriding the op declaration in
846 process_stratum_target.
847
848 * linux-low.h (struct linux_target_ops): Remove the op.
849 (class linux_process_target) <process_qsupported>: Remove.
850 * linux-low.cc (linux_process_target::process_qsupported): Remove.
851 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
852 (x86_linux_process_qsupported): Turn into...
853 (x86_target::process_qsupported): ...this.
854 (the_low_target): Remove the op field.
855 * linux-aarch64-low.cc (the_low_target): Remove the op
856 field.
857 * linux-arm-low.cc (the_low_target): Ditto.
858 * linux-bfin-low.cc (the_low_target): Ditto.
859 * linux-crisv32-low.cc (the_low_target): Ditto.
860 * linux-m32r-low.cc (the_low_target): Ditto.
861 * linux-m68k-low.cc (the_low_target): Ditto.
862 * linux-ppc-low.cc (the_low_target): Ditto.
863 * linux-s390-low.cc (the_low_target): Ditto.
864 * linux-sh-low.cc (the_low_target): Ditto.
865 * linux-tic6x-low.cc (the_low_target): Ditto.
866 * linux-tile-low.cc (the_low_target): Ditto.
867 * linux-xtensa-low.cc (the_low_target): Ditto.
868
d7599cc0
TBA
8692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
870
871 Turn the 'prepare_to_resume' linux target op into a method of
872 linux_process_target.
873
874 * linux-low.h (struct linux_target_ops): Remove the op.
875 (class linux_process_target) <low_prepare_to_resume>: Declare.
876 * linux-low.cc (linux_process_target::low_prepare_to_resume):
877 Define.
878
879 Update the callers below:
880
881 (linux_process_target::resume_one_lwp_throw)
882 (linux_process_target::low_prepare_to_resume)
883
884 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
885 Declare.
886 (x86_target::low_prepare_to_resume): Define.
887 (the_low_target): Remove the op field.
888 * linux-aarch64-low.cc (class aarch64_target)
889 <low_prepare_to_resume>: Declare.
890 (aarch64_target::low_prepare_to_resume): Define.
891 (the_low_target): Remove the op field.
892 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
893 Declare.
894 (arm_prepare_to_resume): Turn into...
895 (arm_target::low_prepare_to_resume): ...this.
896 (the_low_target): Remove the op field.
897 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
898 Declare.
899 (mips_linux_prepare_to_resume): Turn into...
900 (mips_target::low_prepare_to_resume): ...this.
901 (the_low_target): Remove the op field.
902 * linux-bfin-low.cc (the_low_target): Remove the op field.
903 * linux-crisv32-low.cc (the_low_target): Ditto.
904 * linux-m32r-low.cc (the_low_target): Ditto.
905 * linux-m68k-low.cc (the_low_target): Ditto.
906 * linux-ppc-low.cc (the_low_target): Ditto.
907 * linux-s390-low.cc (the_low_target): Ditto.
908 * linux-sh-low.cc (the_low_target): Ditto.
909 * linux-tic6x-low.cc (the_low_target): Ditto.
910 * linux-tile-low.cc (the_low_target): Ditto.
911 * linux-xtensa-low.cc (the_low_target): Ditto.
912
fd000fb3
TBA
9132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
914
915 Turn the 'new_process', 'delete_process', 'new_thread',
916 'delete_thread', and 'new_fork' linux target ops into methods
917 of linux_process_target.
918
919 * linux-low.h (struct linux_target_ops): Remove the ops.
920 (class linux_process_target) <add_linux_process>
921 <add_lwp>
922 <delete_lwp>
923 <attach_lwp>
924 <detach_one_lwp>
925 <check_zombie_leaders>
926 <filter_exit_event>
927 <low_new_process>
928 <low_delete_process>
929 <low_new_thread>
930 <low_delete_thread>
931 <low_new_fork>: Declare.
932 * linux-low.cc (delete_lwp): Turn into...
933 (linux_process_target::delete_lwp): ...this.
934 (linux_process_target::low_delete_thread): Define.
935 (linux_add_process): Turn into...
936 (linux_process_target::add_linux_process): ...this.
937 (linux_process_target::low_new_process): Define.
938 (linux_process_target::low_delete_process): Define.
939 (linux_process_target::low_new_fork): Define.
940 (add_lwp): Turn into...
941 (linux_process_target::add_lwp): ...this.
942 (linux_process_target::low_new_thread): Define.
943 (linux_attach_lwp): Turn into...
944 (linux_process_target::attach_lwp): ...this.
945 (linux_detach_one_lwp): Turn into...
946 (linux_process_target::detach_one_lwp): ...this.
947 (linux_detach_lwp_callback): Remove and inline...
948 (linux_process_target::detach): ...here.
949 (check_zombie_leaders): Turn into...
950 (linux_process_target::check_zombie_leaders): ...this.
951 (filter_exit_event): Turn into...
952 (linux_process_target::filter_exit_event): ...this.
953
954 Update the callers below.
955
956 (linux_process_target::handle_extended_wait)
957 (linux_process_target::create_inferior)
958 (attach_proc_task_lwp_callback)
959 (linux_process_target::attach)
960 (linux_process_target::detach)
961 (linux_process_target::mourn)
962 * thread-db.cc (attach_thread)
963
964 * linux-x86-low.cc (class x86_target) <low_new_process>
965 <low_delete_process>
966 <low_new_thread>
967 <low_delete_thread>
968 <low_new_fork>: Declare.
969 (x86_linux_new_process): Turn into...
970 (x86_target::low_new_process): ...this.
971 (x86_linux_delete_process): Turn into...
972 (x86_target::low_delete_process): ...this.
973 (x86_target::low_new_thread): Define.
974 (x86_target::low_delete_thread): Define.
975 (x86_linux_new_fork): Turn into...
976 (x86_target::low_new_fork): ...this.
977 (the_low_target): Remove the op fields.
978 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
979 <low_delete_process>
980 <low_new_thread>
981 <low_delete_thread>
982 <low_new_fork>: Declare.
983 (aarch64_linux_new_process): Turn into...
984 (aarch64_target::low_new_process): ...this.
985 (aarch64_linux_delete_process): Turn into...
986 (aarch64_target::low_delete_process): ...this.
987 (aarch64_target::low_new_thread): Define.
988 (aarch64_target::low_delete_thread): Define.
989 (aarch64_linux_new_fork): Turn into...
990 (aarch64_target::low_new_fork): ...this.
991 (the_low_target): Remove the op fields.
992 * linux-arm-low.cc (class arm_target) <low_new_process>
993 <low_delete_process>
994 <low_new_thread>
995 <low_delete_thread>
996 <low_new_fork>: Declare.
997 (arm_new_process): Turn into...
998 (arm_target::low_new_process): ...this.
999 (arm_delete_process): Turn into...
1000 (arm_target::low_delete_process): ...this.
1001 (arm_new_thread): Turn into...
1002 (arm_target::low_new_thread): ...this.
1003 (arm_delete_thread): Turn into...
1004 (arm_target::low_delete_thread): ...this.
1005 (arm_new_fork): Turn into...
1006 (arm_target::low_new_fork): ...this.
1007 (the_low_target): Remove the op fields.
1008 * linux-mips-low.cc (class mips_target) <low_new_process>
1009 <low_delete_process>
1010 <low_new_thread>
1011 <low_delete_thread>
1012 <low_new_fork>: Declare.
1013 (mips_linux_new_process): Turn into...
1014 (mips_target::low_new_process): ...this.
1015 (mips_linux_delete_process): Turn into...
1016 (mips_target::low_delete_process): ...this.
1017 (mips_linux_new_thread): Turn into...
1018 (mips_target::low_new_thread): ...this.
1019 (mips_linux_delete_thread): Turn into...
1020 (mips_target::low_delete_thread): ...this.
1021 (mips_linux_new_fork): Turn into...
1022 (mips_target::low_new_fork): ...this.
1023 (the_low_target): Remove the op fields.
1024 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1025 * linux-crisv32-low.cc (the_low_target): Ditto.
1026 * linux-m32r-low.cc (the_low_target): Ditto.
1027 * linux-m68k-low.cc (the_low_target): Ditto.
1028 * linux-ppc-low.cc (the_low_target): Ditto.
1029 * linux-s390-low.cc (the_low_target): Ditto.
1030 * linux-sh-low.cc (the_low_target): Ditto.
1031 * linux-tic6x-low.cc (the_low_target): Ditto.
1032 * linux-tile-low.cc (the_low_target): Ditto.
1033 * linux-xtensa-low.cc (the_low_target): Ditto.
1034
cb63de7c
TBA
10352020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1036
1037 Turn the 'siginfo_fixup' linux target op into a method of
1038 linux_process_target.
1039
1040 * linux-low.h (struct linux_target_ops): Remove the op.
1041 (class linux_process_target) <siginfo_fixup>
1042 <low_siginfo_fixup>: Declare.
1043 * linux-low.cc (siginfo_fixup): Turn into...
1044 (linux_process_target::siginfo_fixup): ...this.
1045 (linux_process_target::low_siginfo_fixup): Define.
1046 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1047 (x86_siginfo_fixup): Turn into...
1048 (x86_target::low_siginfo_fixup): ...this.
1049 (the_low_target): Remove the op field.
1050 * linux-aarch64-low.cc (class aarch64_target):
1051 <low_siginfo_fixup>: Declare.
1052 (aarch64_linux_siginfo_fixup): Turn into...
1053 (aarch64_target::low_siginfo_fixup): ...this.
1054 (the_low_target): Remove the op field.
1055 * linux-arm-low.cc (the_low_target): Remove the op field.
1056 * linux-bfin-low.cc (the_low_target): Ditto.
1057 * linux-crisv32-low.cc (the_low_target): Ditto.
1058 * linux-m32r-low.cc (the_low_target): Ditto.
1059 * linux-m68k-low.cc (the_low_target): Ditto.
1060 * linux-mips-low.cc (the_low_target): Ditto.
1061 * linux-ppc-low.cc (the_low_target): Ditto.
1062 * linux-s390-low.cc (the_low_target): Ditto.
1063 * linux-sh-low.cc (the_low_target): Ditto.
1064 * linux-tic6x-low.cc (the_low_target): Ditto.
1065 * linux-tile-low.cc (the_low_target): Ditto.
1066 * linux-xtensa-low.cc (the_low_target): Ditto.
1067
b35db733
TBA
10682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1069
1070 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1071 linux target ops into methods of linux_process_target.
1072
1073 * linux-low.h (struct linux_target_ops): Remove the ops.
1074 (class linux_process_target) <low_collect_ptrace_register>
1075 <low_store_ptrace_register>: Declare.
1076 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1077 (linux_process_target::low_supply_ptrace_register): Define.
1078
1079 Update the callers below.
1080
1081 (linux_process_target::fetch_register)
1082 (linux_process_target::store_register)
1083
1084 * linux-x86-low.cc (the_low_target): Remove the op fields.
1085 * linux-aarch64-low.cc (the_low_target): Ditto.
1086 * linux-arm-low.cc (the_low_target): Ditto.
1087 * linux-bfin-low.cc (the_low_target): Ditto.
1088 * linux-crisv32-low.cc (the_low_target): Ditto.
1089 * linux-m32r-low.cc (the_low_target): Ditto.
1090 * linux-m68k-low.cc (the_low_target): Ditto.
1091 * linux-sh-low.cc (the_low_target): Ditto.
1092 * linux-sparc-low.cc (the_low_target): Ditto.
1093 * linux-tic6x-low.cc (the_low_target): Ditto.
1094 * linux-tile-low.cc (the_low_target): Ditto.
1095 * linux-xtensa-low.cc (the_low_target): Ditto.
1096 * linux-mips-low.cc (class mips_target)
1097 <low_collect_ptrace_register>
1098 <low_supply_ptrace_register>: Declare.
1099 (mips_collect_ptrace_register): Turn into ...
1100 (mips_target::low_collect_ptrace_register): ...this.
1101 (mips_supply_ptrace_register): Turn into...
1102 (mips_target::low_supply_ptrace_register): ...this.
1103 (the_low_target): Remove the op fields.
1104 * linux-ppc-low.cc (class ppc_target)
1105 <low_collect_ptrace_register>
1106 <low_supply_ptrace_register>: Declare.
1107 (ppc_collect_ptrace_register): Turn into ...
1108 (ppc_target::low_collect_ptrace_register): ...this.
1109 (ppc_supply_ptrace_register): Turn into ...
1110 (ppc_target::low_supply_ptrace_register): ...this.
1111 (ppc_fill_gregset): Update for the calls to
1112 low_collect_ptrace_register.
1113 (the_low_target): Remove the op fields.
1114 * linux-s390-low.cc (class s390_target)
1115 <low_collect_ptrace_register>
1116 <low_supply_ptrace_register>: Declare.
1117 (s390_collect_ptrace_register): Turn into ...
1118 (s390_target::low_collect_ptrace_register): ...this.
1119 (s390_supply_ptrace_register): Turn into ...
1120 (s390_target::low_supply_ptrace_register): ...this.
1121 (s390_fill_gregset): Update for the calls to
1122 low_collect_ptrace_register.
1123 (the_low_target): Remove the op fields.
1124
ac1bbaca
TBA
11252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1126
1127 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1128 target ops into methods of linux_process_target.
1129
1130 * linux-low.h (struct linux_target_ops): Remove the ops.
1131 (class linux_process_target) <check_stopped_by_watchpoint>
1132 <low_stopped_by_watchpoint>
1133 <low_stopped_data_address>: Declare.
1134 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1135 (linux_process_target::check_stopped_by_watchpoint): ...this.
1136 (linux_process_target::low_stopped_by_watchpoint): Define.
1137 (linux_process_target::low_stopped_data_address): Define.
1138 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1139 <low_stopped_data_address>: Declare.
1140 (x86_stopped_by_watchpoint): Turn into...
1141 (x86_target::low_stopped_by_watchpoint): ...this.
1142 (x86_stopped_data_address): Turn into...
1143 (x86_target::low_stopped_data_address): ...this.
1144 (the_low_target): Remove the op fields.
1145 * linux-aarch64-low.cc (class aarch64_target)
1146 <low_stopped_by_watchpoint>
1147 <low_stopped_data_address>: Declare.
1148 (aarch64_stopped_by_watchpoint): Turn into...
1149 (aarch64_target::low_stopped_by_watchpoint): ...this.
1150 (aarch64_stopped_data_address): Turn into...
1151 (aarch64_target::low_stopped_data_address): ...this.
1152 (the_low_target): Remove the op fields.
1153 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1154 <low_stopped_data_address>: Declare.
1155 (arm_stopped_by_watchpoint): Turn into...
1156 (arm_target::low_stopped_by_watchpoint): ...this.
1157 (arm_stopped_data_address): Turn into...
1158 (arm_target::low_stopped_data_address): ...this.
1159 (the_low_target): Remove the op fields.
1160 * linux-crisv32-low.cc (class crisv32_target)
1161 <low_stopped_by_watchpoint>
1162 <low_stopped_data_address>: Declare.
1163 (cris_stopped_by_watchpoint): Turn into...
1164 (crisv32_target::low_stopped_by_watchpoint): ...this.
1165 (cris_stopped_data_address): Turn into...
1166 (crisv32_target::low_stopped_data_address): ...this.
1167 (the_low_target): Remove the op fields.
1168 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1169 <low_stopped_data_address>: Declare.
1170 (mips_stopped_by_watchpoint): Turn into...
1171 (mips_target::low_stopped_by_watchpoint): ...this.
1172 (mips_stopped_data_address): Turn into...
1173 (mips_target::low_stopped_data_address): ...this.
1174 (the_low_target): Remove the op fields.
1175 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1176 * linux-m32r-low.cc (the_low_target): Ditto.
1177 * linux-m68k-low.cc (the_low_target): Ditto.
1178 * linux-ppc-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
9db9aa23
TBA
11862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1187
1188 Turn the 'insert_point' and 'remove_point' linux target ops into
1189 methods of linux_process_target.
1190
1191 * linux-low.h (struct linux_target_ops): Remove the ops.
1192 (class linux_process_target) <low_insert_point>
1193 <low_remove_point>: Declare.
1194 * linux-low.cc (linux_process_target::low_insert_point)
1195 (linux_process_target::low_remove_point): Define.
1196 (linux_process_target::insert_point)
1197 (linux_process_target::remove_point): Update for calls to
1198 low_insert_point and low_remove_point.
1199 * linux-x86-low.cc (class x86_target) <low_insert_point>
1200 <low_remove_point>: Declare.
1201 (x86_insert_point): Turn into...
1202 (x86_target::low_insert_point): ...this.
1203 (x86_remove_point): Turn into...
1204 (x86_target::low_remove_point): ...this.
1205 (the_low_target): Remove the op fields.
1206 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1207 <low_remove_point>: Declare.
1208 (aarch64_insert_point): Turn into...
1209 (aarch64_target::low_insert_point): ...this.
1210 (aarch64_remove_point): Turn into...
1211 (aarch64_target::low_remove_point): ...this.
1212 (the_low_target): Remove the op fields.
1213 * linux-arm-low.cc (class arm_target) <low_insert_point>
1214 <low_remove_point>: Declare.
1215 (arm_insert_point): Turn into...
1216 (arm_target::low_insert_point): ...this.
1217 (arm_remove_point): Turn into...
1218 (arm_target::low_remove_point): ...this.
1219 (the_low_target): Remove the op fields.
1220 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1221 <low_remove_point>: Declare.
1222 (crisv32_insert_point): Turn into...
1223 (crisv32_target::low_insert_point): ...this.
1224 (crisv32_remove_point): Turn into...
1225 (crisv32_target::low_remove_point): ...this.
1226 (the_low_target): Remove the op fields.
1227 * linux-mips-low.cc (class mips_target) <low_insert_point>
1228 <low_remove_point>: Declare.
1229 (mips_insert_point): Turn into...
1230 (mips_target::low_insert_point): ...this.
1231 (mips_remove_point): Turn into...
1232 (mips_target::low_remove_point): ...this.
1233 (the_low_target): Remove the op fields.
1234 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1235 <low_remove_point>: Declare.
1236 (ppc_insert_point): Turn into...
1237 (ppc_target::low_insert_point): ...this.
1238 (ppc_remove_point): Turn into...
1239 (ppc_target::low_remove_point): ...this.
1240 (the_low_target): Remove the op fields.
1241 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1242 * linux-m32r-low.cc (the_low_target): Ditto.
1243 * linux-m68k-low.cc (the_low_target): Ditto.
1244 * linux-s390-low.cc (the_low_target): Ditto.
1245 * linux-sh-low.cc (the_low_target): Ditto.
1246 * linux-sparc-low.cc (the_low_target): Ditto.
1247 * linux-tic6x-low.cc (the_low_target): Ditto.
1248 * linux-tile-low.cc (the_low_target): Ditto.
1249 * linux-xtensa-low.cc (the_low_target): Ditto.
1250
007c9b97
TBA
12512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1252
1253 Remove the 'supports_z_point_type' linux target op and let the
1254 concrete linux target define it by overriding the op declared in
1255 process_stratum_target.
1256
1257 * linux-low.cc (linux_process_target::supports_z_point_type):
1258 Remove.
1259 * linux-low.h (struct linux_target_ops): Remove the op.
1260 (class linux_process_target) <supports_z_point_type>: Remove.
1261 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1262 Declare.
1263 (x86_supports_z_point_type): Turn into...
1264 (x86_target::supports_z_point_type): ...this.
1265 (the_low_target): Remove the op field.
1266 * linux-aarch64-low.cc (class aarch64_target)
1267 <supports_z_point_type>: Declare.
1268 (aarch64_supports_z_point_type): Turn into...
1269 (aarch64_target::supports_z_point_type): ...this.
1270 (the_low_target): Remove the op field.
1271 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1272 Declare.
1273 (arm_supports_z_point_type): Turn into...
1274 (arm_target::supports_z_point_type): ...this.
1275 (the_low_target): Remove the op field.
1276 * linux-crisv32-low.cc (class crisv32_target)
1277 <supports_z_point_type>: Declare.
1278 (cris_supports_z_point_type): Turn into...
1279 (crisv32_target::supports_z_point_type): ...this.
1280 (the_low_target): Remove the op field.
1281 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1282 Declare.
1283 (mips_supports_z_point_type): Turn into...
1284 (mips_target::supports_z_point_type): ...this.
1285 (the_low_target): Remove the op field.
1286 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1287 Declare.
1288 (ppc_supports_z_point_type): Turn into...
1289 (ppc_target::supports_z_point_type): ...this.
1290 (the_low_target): Remove the op field.
1291 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1292 Declare.
1293 (s390_supports_z_point_type): Turn into...
1294 (s390_target::supports_z_point_type): ...this.
1295 (the_low_target): Remove the op field.
1296 * linux-bfin-low.cc (the_low_target): Remove the op field.
1297 * linux-m32r-low.cc (the_low_target): Ditto.
1298 * linux-m68k-low.cc (the_low_target): Ditto.
1299 * linux-sh-low.cc (the_low_target): Ditto.
1300 * linux-sparc-low.cc (the_low_target): Ditto.
1301 * linux-tic6x-low.cc (the_low_target): Ditto.
1302 * linux-tile-low.cc (the_low_target): Ditto.
1303 * linux-xtensa-low.cc (the_low_target): Ditto.
1304
d7146cda
TBA
13052020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1306
1307 Turn the 'breakpoint_at' linux target op into a method of
1308 linux_process_target.
1309
1310 * linux-low.h (struct linux_target_ops): Remove the op.
1311 (class linux_process_target) <low_breakpoint_at>: Declare.
1312
1313 Update the callers below:
1314
1315 * linux-low.cc (linux_process_target::save_stop_reason)
1316 (linux_process_target::thread_still_has_status_pending)
1317 (linux_process_target::wait_1)
1318
1319 * linux-x86-low.cc (class x86_target)
1320 <low_breakpoint_at>: Declare.
1321 (x86_breakpoint_at): Turn into...
1322 (x86_target::low_breakpoint_at): ...this.
1323 (the_low_target): Remove the op field.
1324 * linux-aarch64-low.cc (class aarch64_target)
1325 <low_breakpoint_at>: Declare.
1326 (aarch64_breakpoint_at): Turn into...
1327 (aarch64_target::low_breakpoint_at): ...this.
1328 (the_low_target): Remove the op field.
1329 * linux-arm-low.cc (class arm_target)
1330 <low_breakpoint_at>: Declare.
1331 (arm_target::low_breakpoint_at): Define.
1332 (the_low_target): Remove the op field.
1333 * linux-bfin-low.cc (class bfin_target)
1334 <low_breakpoint_at>: Declare.
1335 (bfin_breakpoint_at): Turn into...
1336 (bfin_target::low_breakpoint_at): ...this.
1337 (the_low_target): Remove the op field.
1338 * linux-cris-low.cc (class cris_target)
1339 <low_breakpoint_at>: Declare.
1340 (cris_breakpoint_at): Turn into...
1341 (cris_target::low_breakpoint_at): ...this.
1342 (the_low_target): Remove the op field.
1343 * linux-crisv32-low.cc (class crisv32_target)
1344 <low_breakpoint_at>: Declare.
1345 (crisv32_breakpoint_at): Turn into...
1346 (crisv32_target::low_breakpoint_at): ...this.
1347 (the_low_target): Remove the op field.
1348 * linux-ia64-low.cc (class ia64_target)
1349 <low_breakpoint_at>: Declare.
1350 (ia64_target::low_breakpoint_at): Define.
1351 * linux-m32r-low.cc (class m32r_target)
1352 <low_breakpoint_at>: Declare.
1353 (m32r_breakpoint_at): Turn into...
1354 (m32r_target::low_breakpoint_at): ...this.
1355 (the_low_target): Remove the op field.
1356 * linux-m68k-low.cc (class m68k_target)
1357 <low_breakpoint_at>: Declare.
1358 (m68k_breakpoint_at): Turn into...
1359 (m68k_target::low_breakpoint_at): ...this.
1360 (the_low_target): Remove the op field.
1361 * linux-mips-low.cc (class mips_target)
1362 <low_breakpoint_at>: Declare.
1363 (mips_breakpoint_at): Turn into...
1364 (mips_target::low_breakpoint_at): ...this.
1365 (the_low_target): Remove the op field.
1366 * linux-nios2-low.cc (class nios2_target)
1367 <low_breakpoint_at>: Declare.
1368 (nios2_breakpoint_at): Turn into...
1369 (nios2_target::low_breakpoint_at): ...this.
1370 (the_low_target): Remove the op field.
1371 * linux-ppc-low.cc (class ppc_target)
1372 <low_breakpoint_at>: Declare.
1373 (ppc_breakpoint_at): Turn into...
1374 (ppc_target::low_breakpoint_at): ...this.
1375 (the_low_target): Remove the op field.
1376 * linux-riscv-low.cc (class riscv_target)
1377 <low_breakpoint_at>: Declare.
1378 (riscv_breakpoint_at): Turn into...
1379 (riscv_target::low_breakpoint_at): ...this.
1380 (the_low_target): Remove the op field.
1381 * linux-s390-low.cc (class s390_target)
1382 <low_breakpoint_at>: Declare.
1383 (s390_breakpoint_at): Turn into...
1384 (s390_target::low_breakpoint_at): ...this.
1385 (the_low_target): Remove the op field.
1386 * linux-sh-low.cc (class sh_target)
1387 <low_breakpoint_at>: Declare.
1388 (sh_breakpoint_at): Turn into...
1389 (sh_target::low_breakpoint_at): ...this.
1390 (the_low_target): Remove the op field.
1391 * linux-sparc-low.cc (class sparc_target)
1392 <low_breakpoint_at>: Declare.
1393 (sparc_breakpoint_at): Turn into...
1394 (sparc_target::low_breakpoint_at): ...this.
1395 (the_low_target): Remove the op field.
1396 * linux-tic6x-low.cc (class tic6x_target)
1397 <low_breakpoint_at>: Declare.
1398 (tic6x_breakpoint_at): Turn into...
1399 (tic6x_target::low_breakpoint_at): ...this.
1400 (the_low_target): Remove the op field.
1401 * linux-tile-low.cc (class tile_target)
1402 <low_breakpoint_at>: Declare.
1403 (tile_breakpoint_at): Turn into...
1404 (tile_target::low_breakpoint_at): ...this.
1405 (the_low_target): Remove the op field.
1406 * linux-xtensa-low.cc (class xtensa_target)
1407 <low_breakpoint_at>: Declare.
1408 (xtensa_breakpoint_at): Turn into...
1409 (xtensa_target::low_breakpoint_at): ...this.
1410 (the_low_target): Remove the op field.
1411
d4807ea2
TBA
14122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1413
1414 Turn the 'decr_pc_after_break' linux_target_ops field into
1415 a method of linux_process_target.
1416
1417 * linux-low.h (struct linux_target_ops)
1418 <decr_pc_after_break>: Remove.
1419 (class linux_process_target) <low_decr_pc_after_break>: New method
1420 declaration.
1421 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1422 New method implementation.
1423
1424 Update the users below.
1425
1426 (linux_process_target::save_stop_reason)
1427 (linux_process_target::wait_1)
1428 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1429 New declaration.
1430 (x86_target::low_decr_pc_after_break): New method implementation.
1431 (the_low_target): Remove the field.
1432 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1433 New declaration.
1434 (bfin_target::low_decr_pc_after_break): New method implementation.
1435 (the_low_target): Remove the field.
1436 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1437 New declaration.
1438 (m68k_target::low_decr_pc_after_break): New method implementation.
1439 (the_low_target): Remove the field.
1440 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1441 New declaration.
1442 (s390_target::low_decr_pc_after_break): New method implementation.
1443 (the_low_target): Remove the field.
1444 * linux-aarch64-low.cc (the_low_target): Remove the field.
1445 * linux-arm-low.cc (the_low_target): Remove the field.
1446 * linux-cris-low.cc (the_low_target): Remove the field.
1447 * linux-crisv32-low.cc (the_low_target): Remove the field.
1448 * linux-m32r-low.cc (the_low_target): Remove the field.
1449 * linux-mips-low.cc (the_low_target): Remove the field.
1450 * linux-nios2-low.cc (the_low_target): Remove the field.
1451 * linux-ppc-low.cc (the_low_target): Remove the field.
1452 * linux-riscv-low.cc (the_low_target): Remove the field.
1453 * linux-sh-low.cc (the_low_target): Remove the field.
1454 * linux-sparc-low.cc (the_low_target): Remove the field.
1455 * linux-tic6x-low.cc (the_low_target): Remove the field.
1456 * linux-tile-low.cc (the_low_target): Remove the field.
1457 * linux-xtensa-low.cc (the_low_target): Remove the field.
1458
7582c77c
TBA
14592020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1460
1461 Remove the 'supports_software_single_step' linux target op and let
1462 the concrete linux target define it by overriding the op in
1463 process_stratum_target.
1464 Turn the 'get_next_pcs' linux target op into a method of
1465 linux_process_target.
1466
1467 * linux-low.h (struct linux_target_ops): Remove the ops.
1468 (class linux_process_target) <supports_software_single_step>:
1469 Remove.
1470 <low_get_next_pcs>: Declare.
1471 * linux-low.cc (can_software_single_step): Remove.
1472 (linux_process_target::low_get_next_pcs): Define.
1473 (linux_process_target::supports_software_single_step): Remove.
1474
1475 Update the callers below.
1476
1477 (linux_process_target::handle_extended_wait)
1478 (linux_process_target::wait_1)
1479 (linux_process_target::install_software_single_step_breakpoints)
1480 (linux_process_target::single_step)
1481 (linux_process_target::thread_needs_step_over)
1482 (linux_process_target::proceed_one_lwp)
1483 (linux_process_target::supports_range_stepping)
1484
1485 * linux-x86-low.cc (the_low_target): Remove the op field.
1486 * linux-aarch64-low.cc (the_low_target): Ditto.
1487 * linux-bfin-low.cc (the_low_target): Ditto.
1488 * linux-cris-low.cc (the_low_target): Ditto.
1489 * linux-crisv32-low.cc (the_low_target): Ditto.
1490 * linux-m32r-low.cc (the_low_target): Ditto.
1491 * linux-m68k-low.cc (the_low_target): Ditto.
1492 * linux-mips-low.cc (the_low_target): Ditto.
1493 * linux-nios2-low.cc (the_low_target): Ditto.
1494 * linux-ppc-low.cc (the_low_target): Ditto.
1495 * linux-riscv-low.cc (the_low_target): Ditto.
1496 * linux-s390-low.cc (the_low_target): Ditto.
1497 * linux-sh-low.cc (the_low_target): Ditto.
1498 * linux-sparc-low.cc (the_low_target): Ditto.
1499 * linux-tic6x-low.cc (the_low_target): Ditto.
1500 * linux-tile-low.cc (the_low_target): Ditto.
1501 * linux-xtensa-low.cc (the_low_target): Ditto.
1502 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1503 <supports_software_single_step>: Declare.
1504 (arm_target::supports_software_single_step): Define.
1505 (arm_gdbserver_get_next_pcs): Turn into...
1506 (arm_target::low_get_next_pcs): ...this.
1507 (the_low_target): Remove the op field.
1508
3ca4edb6
TBA
15092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1510
1511 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1512 the concrete linux target define it by overriding the op
1513 in process_stratum_target.
1514
1515 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1516 Remove.
1517 * linux-low.h (struct linux_target_ops): Remove the op.
1518 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1519 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1520 Declare.
1521 (x86_sw_breakpoint_from_kind): Turn into...
1522 (x86_target::sw_breakpoint_from_kind): ...this.
1523 (the_low_target): Remove the op field.
1524 * linux-aarch64-low.cc (class aarch64_target)
1525 <sw_breakpoint_from_kind>: Declare.
1526 (aarch64_sw_breakpoint_from_kind): Turn into...
1527 (aarch64_target::sw_breakpoint_from_kind): ...this.
1528 (the_low_target): Remove the op field.
1529 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1530 Declare.
1531 (arm_target::sw_breakpoint_from_kind): Define.
1532 (the_low_target): Remove the op field.
1533 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1534 Declare.
1535 (bfin_sw_breakpoint_from_kind): Turn into...
1536 (bfin_target::sw_breakpoint_from_kind): ...this.
1537 (the_low_target): Remove the op field.
1538 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1539 Declare.
1540 (cris_sw_breakpoint_from_kind): Turn into...
1541 (cris_target::sw_breakpoint_from_kind): ...this.
1542 (the_low_target): Remove the op field.
1543 * linux-crisv32-low.cc (class crisv32_target)
1544 <sw_breakpoint_from_kind>: Declare.
1545 (cris_sw_breakpoint_from_kind): Turn into...
1546 (crisv32_target::sw_breakpoint_from_kind): ...this.
1547 (the_low_target): Remove the op field.
1548 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1549 Declare.
1550 (ia64_target::sw_breakpoint_from_kind): Define.
1551 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1552 Declare.
1553 (m32r_sw_breakpoint_from_kind): Turn into...
1554 (m32r_target::sw_breakpoint_from_kind): ...this.
1555 (the_low_target): Remove the op field.
1556 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1557 Declare.
1558 (m68k_sw_breakpoint_from_kind): Turn into...
1559 (m68k_target::sw_breakpoint_from_kind): ...this.
1560 (the_low_target): Remove the op field.
1561 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1562 Declare.
1563 (mips_sw_breakpoint_from_kind): Turn into...
1564 (mips_target::sw_breakpoint_from_kind): ...this.
1565 (the_low_target): Remove the op field.
1566 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1567 Declare.
1568 (nios2_sw_breakpoint_from_kind): Turn into...
1569 (nios2_target::sw_breakpoint_from_kind): ...this.
1570 (the_low_target): Remove the op field.
1571 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1572 Declare.
1573 (ppc_sw_breakpoint_from_kind): Turn into...
1574 (ppc_target::sw_breakpoint_from_kind): ...this.
1575 (the_low_target): Remove the op field.
1576 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1577 Declare.
1578 (riscv_sw_breakpoint_from_kind): Turn into...
1579 (riscv_target::sw_breakpoint_from_kind): ...this.
1580 (the_low_target): Remove the op field.
1581 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1582 Declare.
1583 (s390_sw_breakpoint_from_kind): Turn into...
1584 (s390_target::sw_breakpoint_from_kind): ...this.
1585 (the_low_target): Remove the op field.
1586 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1587 Declare.
1588 (sh_sw_breakpoint_from_kind): Turn into...
1589 (sh_target::sw_breakpoint_from_kind): ...this.
1590 (the_low_target): Remove the op field.
1591 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1592 Declare.
1593 (sparc_sw_breakpoint_from_kind): Turn into...
1594 (sparc_target::sw_breakpoint_from_kind): ...this.
1595 (the_low_target): Remove the op field.
1596 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1597 Declare.
1598 (tic6x_sw_breakpoint_from_kind): Turn into...
1599 (tic6x_target::sw_breakpoint_from_kind): ...this.
1600 (the_low_target): Remove the op field.
1601 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1602 Declare.
1603 (tile_sw_breakpoint_from_kind): Turn into...
1604 (tile_target::sw_breakpoint_from_kind): ...this.
1605 (the_low_target): Remove the op field.
1606 * linux-xtensa-low.cc (class xtensa_target)
1607 <sw_breakpoint_from_kind>: Declare.
1608 (xtensa_sw_breakpoint_from_kind): Turn into...
1609 (xtensa_target::sw_breakpoint_from_kind): ...this.
1610 (the_low_target): Remove the op field.
1611
06250e4e
TBA
16122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1613
1614 Remove the 'breakpoint_kind_from_pc' and
1615 'breakpoint_kind_from_current_state' linux target ops, and let the
1616 concrete linux target define them by overriding the ops of
1617 process_stratum_target.
1618
1619 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1620 Remove.
1621 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1622 * linux-low.h (struct linux_target_ops): Remove ops.
1623 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1624 <breakpoint_kind_from_current_state>: Remove.
1625 * linux-x86-low.cc (the_low_target): Remove the op fields.
1626 * linux-bfin-low.cc (the_low_target): Ditto.
1627 * linux-cris-low.cc (the_low_target): Ditto.
1628 * linux-crisv32-low.cc (the_low_target): Ditto.
1629 * linux-m32r-low.cc (the_low_target): Ditto.
1630 * linux-m68k-low.cc (the_low_target): Ditto.
1631 * linux-mips-low.cc (the_low_target): Ditto.
1632 * linux-nios2-low.cc (the_low_target): Ditto.
1633 * linux-ppc-low.cc (the_low_target): Ditto.
1634 * linux-s390-low.cc (the_low_target): Ditto.
1635 * linux-sh-low.cc (the_low_target): Ditto.
1636 * linux-sparc-low.cc (the_low_target): Ditto.
1637 * linux-tic6x-low.cc (the_low_target): Ditto.
1638 * linux-tile-low.cc (the_low_target): Ditto.
1639 * linux-xtensa-low.cc (the_low_target): Ditto.
1640 * linux-aarch64-low.cc (class aarch64_target)
1641 <breakpoint_kind_from_pc>
1642 <breakpoint_kind_from_current_state>: Declare.
1643 (aarch64_breakpoint_kind_from_pc): Turn into...
1644 (aarch64_target::breakpoint_kind_from_pc): ...this.
1645 (aarch64_breakpoint_kind_from_current_state): Turn into...
1646 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1647 (the_low_target): Remove the op fields.
1648 * linux-arm-low.cc (class arm_target):
1649 <breakpoint_kind_from_pc>
1650 <breakpoint_kind_from_current_state>: Declare.
1651 (arm_target::breakpoint_kind_from_pc): Define.
1652 (arm_target::breakpoint_kind_from_current_state): Define.
1653 (the_low_target): Remove the op fields.
1654 * linux-riscv-low.cc (class riscv_target):
1655 <breakpoint_kind_from_pc>: Declare.
1656 (riscv_breakpoint_kind_from_pc): Turn into...
1657 (riscv_target::breakpoint_kind_from_pc): ...this.
1658 (the_low_target): Remove the op fields.
1659
bf9ae9d8
TBA
16602020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1661
1662 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1663 of linux_process_target.
1664
1665 * linux-low.h (struct linux_target_ops): Remove the ops.
1666 (class linux_process_target) <low_supports_breakpoints>
1667 <low_get_pc>
1668 <low_set_pc>: Declare.
1669 * linux-low.cc (supports_breakpoints): Turn into...
1670 (linux_process_target::low_supports_breakpoints): ...this.
1671 (linux_process_target::low_get_pc): Define.
1672 (linux_process_target::low_set_pc): Define.
1673
1674 Update the callers below.
1675
1676 (linux_process_target::get_pc)
1677 (linux_process_target::save_stop_reason)
1678 (linux_process_target::maybe_move_out_of_jump_pad)
1679 (linux_process_target::wait_1)
1680 (linux_process_target::resume_one_lwp_throw)
1681 (linux_process_target::resume)
1682 (linux_process_target::proceed_all_lwps)
1683 (linux_process_target::read_pc)
1684 (linux_process_target::write_pc)
1685
1686 * linux-x86-low.cc (class linux_process_target)
1687 <low_supports_breakpoints>
1688 <low_get_pc>
1689 <low_set_pc>: Declare.
1690 (x86_target::low_supports_breakpoints): Define.
1691 (x86_get_pc): Turn into...
1692 (x86_target::low_get_pc): ...this.
1693 (x86_set_pc): Turn into...
1694 (x86_target::low_set_pc): ...this.
1695 (the_low_target): Remove the op fields.
1696 * linux-arm-low.cc (class arm_target)
1697 <low_supports_breakpoints>
1698 <low_get_pc>
1699 <low_set_pc>: Declare.
1700 (arm_target::low_supports_breakpoints)
1701 (arm_target::low_get_pc)
1702 (arm_target::low_set_pc): Define.
1703 (the_low_target): Remove the op fields.
1704 * linux-bfin-low.cc (class bfin_target)
1705 <low_supports_breakpoints>
1706 <low_get_pc>
1707 <low_set_pc>: Declare.
1708 (bfin_target::low_supports_breakpoints)
1709 (bfin_target::low_get_pc)
1710 (bfin_target::low_set_pc): Define.
1711 (the_low_target): Remove the op fields.
1712 * linux-cris-low.cc (class cris_target)
1713 <low_supports_breakpoints>
1714 <low_get_pc>
1715 <low_set_pc>: Declare.
1716 (cris_target::low_supports_breakpoints)
1717 (cris_target::low_get_pc)
1718 (cris_target::low_set_pc): Define.
1719 (the_low_target): Remove the op fields.
1720 * linux-crisv32-low.cc (class crisv32_target)
1721 <low_supports_breakpoints>
1722 <low_get_pc>
1723 <low_set_pc>: Declare.
1724 (crisv32_target::low_supports_breakpoints)
1725 (crisv32_target::low_get_pc)
1726 (crisv32_target::low_set_pc): Define.
1727 (the_low_target): Remove the op fields.
1728 * linux-m32r-low.cc (class m32r_target)
1729 <low_supports_breakpoints>
1730 <low_get_pc>
1731 <low_set_pc>: Declare.
1732 (m32r_target::low_supports_breakpoints)
1733 (m32r_target::low_get_pc)
1734 (m32r_target::low_set_pc): Define.
1735 (the_low_target): Remove the op fields.
1736 * linux-m68k-low.cc (class m68k_target)
1737 <low_supports_breakpoints>
1738 <low_get_pc>
1739 <low_set_pc>: Declare.
1740 (m68k_target::low_supports_breakpoints)
1741 (m68k_target::low_get_pc)
1742 (m68k_target::low_set_pc): Define.
1743 (the_low_target): Remove the op fields.
1744 * linux-nios2-low.cc (class nios2_target)
1745 <low_supports_breakpoints>
1746 <low_get_pc>
1747 <low_set_pc>: Declare.
1748 (nios2_target::low_supports_breakpoints)
1749 (nios2_target::low_get_pc)
1750 (nios2_target::low_set_pc): Define.
1751 (the_low_target): Remove the op fields.
1752 * linux-sh-low.cc (class sh_target)
1753 <low_supports_breakpoints>
1754 <low_get_pc>
1755 <low_set_pc>: Declare.
1756 (sh_target::low_supports_breakpoints)
1757 (sh_target::low_get_pc)
1758 (sh_target::low_set_pc): Define.
1759 (the_low_target): Remove the op fields.
1760 * linux-xtensa-low.cc (class xtensa_target)
1761 <low_supports_breakpoints>
1762 <low_get_pc>
1763 <low_set_pc>: Declare.
1764 (xtensa_target::low_supports_breakpoints)
1765 (xtensa_target::low_get_pc)
1766 (xtensa_target::low_set_pc): Define.
1767 (the_low_target): Remove the op fields.
1768 * linux-sparc-low.cc (class sparc_target)
1769 <low_supports_breakpoints>
1770 <low_get_pc>: Declare.
1771 (sparc_target::low_supports_breakpoints)
1772 (sparc_target::low_get_pc): Define.
1773 (the_low_target): Remove the op fields.
1774 * linux-tile-low.cc (class tile_target)
1775 <low_supports_breakpoints>
1776 <low_get_pc>
1777 <low_set_pc>: Declare.
1778 (tile_target::low_supports_breakpoints)
1779 (tile_target::low_get_pc)
1780 (tile_target::low_set_pc): Define.
1781 (the_low_target): Remove the op fields.
1782 * linux-aarch64-low.cc (class aarch64_target)
1783 <low_supports_breakpoints>
1784 <low_get_pc>
1785 <low_set_pc>: Declare.
1786 (aarch64_target::low_supports_breakpoints): Define.
1787 (aarch64_get_pc): Turn into...
1788 (aarch64_target::low_get_pc): ...this.
1789 (aarch64_set_pc): Turn into...
1790 (aarch64_target::low_set_pc): ...this.
1791 (the_low_target): Remove the op fields.
1792 * linux-mips-low.cc (class mips_target)
1793 <low_supports_breakpoints>
1794 <low_get_pc>
1795 <low_set_pc>: Declare.
1796 (mips_target::low_supports_breakpoints): Define.
1797 (mips_get_pc): Turn into...
1798 (mips_target::low_get_pc): ...this.
1799 (mips_set_pc): Turn into...
1800 (mips_target::low_set_pc): ...this.
1801 (the_low_target): Remove the op fields.
1802 * linux-ppc-low.cc (class ppc_target)
1803 <low_supports_breakpoints>
1804 <low_get_pc>
1805 <low_set_pc>: Declare.
1806 (ppc_target::low_supports_breakpoints): Define.
1807 (ppc_get_pc): Turn into...
1808 (ppc_target::low_get_pc): ...this.
1809 (ppc_set_pc): Turn into...
1810 (ppc_target::low_set_pc): ...this.
1811 (the_low_target): Remove the op fields.
1812 * linux-riscv-low.cc (class riscv_target)
1813 <low_supports_breakpoints>
1814 <low_get_pc>
1815 <low_set_pc>: Declare.
1816 (riscv_target::low_supports_breakpoints): Define.
1817 (riscv_get_pc): Turn into...
1818 (riscv_target::low_get_pc): ...this.
1819 (riscv_set_pc): Turn into...
1820 (riscv_target::low_set_pc): ...this.
1821 (the_low_target): Remove the op fields.
1822 * linux-s390-low.cc (class s390_target)
1823 <low_supports_breakpoints>
1824 <low_get_pc>
1825 <low_set_pc>: Declare.
1826 (s390_target::low_supports_breakpoints): Define.
1827 (s390_get_pc): Turn into...
1828 (s390_target::low_get_pc): ...this.
1829 (s390_set_pc): Turn into...
1830 (s390_target::low_set_pc): ...this.
1831 (the_low_target): Remove the op fields.
1832 * linux-tic6x-low.cc (class tic6x_target)
1833 <low_supports_breakpoints>
1834 <low_get_pc>
1835 <low_set_pc>: Declare.
1836 (tic6x_target::low_supports_breakpoints): Define.
1837 (tic6x_get_pc): Turn into...
1838 (tic6x_target::low_get_pc): ...this.
1839 (tic6x_set_pc): Turn into...
1840 (tic6x_target::low_set_pc): ...this.
1841 (the_low_target): Remove the op fields.
1842
df95181f
TBA
18432020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1844
1845 Turn some more static methods in linux-low into private methods
1846 of linux_process_target.
1847
1848 * linux-low.cc (get_pc): Turn into...
1849 (linux_process_target::get_pc): ...this.
1850 (save_stop_reason): Turn into...
1851 (linux_process_target::save_stop_reason): ...this.
1852 (thread_still_has_status_pending_p): Turn into...
1853 (linux_process_target::thread_still_has_status_pending): ...this.
1854 (status_pending_p_callback): Turn into...
1855 (linux_process_target::status_pending_p_callback): ...this.
1856 (resume_stopped_resumed_lwps): Turn into...
1857 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1858 (install_software_single_step_breakpoints): Turn into...
1859 (linux_process_target::install_software_single_step_breakpoints):
1860 ...this.
1861 (single_step): Turn into...
1862 (linux_process_target::single_step): ...this.
1863 (linux_resume_one_lwp_throw): Turn into...
1864 (linux_process_target::resume_one_lwp_throw): ...this.
1865 (linux_resume_one_lwp): Turn into...
1866 (linux_process_target::resume_one_lwp): ...this.
1867 (resume_status_pending_p): Turn into...
1868 (linux_process_target::resume_status_pending): ...this.
1869 (need_step_over_p): Turn into...
1870 (linux_process_target::thread_needs_step_over): ...this.
1871 (linux_resume_one_thread): Turn into...
1872 (linux_process_target::resume_one_thread): ...this.
1873 (proceed_one_lwp): Turn into...
1874 (linux_process_target::proceed_one_lwp): ...this.
1875 (unsuspend_and_proceed_one_lwp): Turn into...
1876 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1877
1878 Update the calls/references to the above functions below.
1879
1880 (linux_process_target::handle_extended_wait)
1881 (linux_process_target::filter_event)
1882 (linux_process_target::wait_for_event_filtered)
1883 (linux_process_target::wait_1)
1884 (linux_process_target::move_out_of_jump_pad)
1885 (linux_process_target::start_step_over)
1886 (linux_process_target::resume)
1887 (linux_process_target::proceed_all_lwps)
1888 (regsets_store_inferior_registers)
1889 (linux_process_target::store_register)
1890
1891 * linux-low.h (class linux_process_target)
1892 <get_pc>
1893 <save_stop_reason>
1894 <thread_still_has_status_pending>
1895 <status_pending_p_callback>
1896 <resume_stopped_resumed_lwps>
1897 <install_software_single_step_breakpoints>
1898 <single_step>
1899 <resume_one_lwp_throw>
1900 <resume_one_lwp>
1901 <resume_status_pending>
1902 <thread_needs_step_over>
1903 <resume_one_thread>
1904 <proceed_one_lwp>
1905 <unsuspend_and_proceed_one_lwp>: Declare.
1906
bd70b1f2
TBA
19072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1908
1909 Turn the 'fetch_register' linux target op into a method of
1910 linux_process_target.
1911
1912 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1913 (class linux_process_target) <low_fetch_register>: Declare.
1914 * linux-x86-low.cc (the_low_target)
1915 * linux-aarch64-low.cc (the_low_target)
1916 * linux-arm-low.cc (the_low_target)
1917 * linux-bfin-low.cc (the_low_target)
1918 * linux-cris-low.cc (the_low_target)
1919 * linux-crisv32-low.cc (the_low_target)
1920 * linux-m32r-low.cc (the_low_target)
1921 * linux-m68k-low.cc (the_low_target)
1922 * linux-nios2-low.cc (the_low_target)
1923 * linux-ppc-low.cc (the_low_target)
1924 * linux-s390-low.cc (the_low_target)
1925 * linux-sh-low.cc (the_low_target)
1926 * linux-sparc-low.cc (the_low_target)
1927 * linux-tic6x-low.cc (the_low_target)
1928 * linux-tile-low.cc (the_low_target)
1929 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1930 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1931 Declare.
1932 (ia64_fetch_register): Turn into...
1933 (ia64_target::low_fetch_register): ...this.
1934 (the_low_target): Remove the op field.
1935 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1936 Declare.
1937 (mips_fetch_register): Turn into...
1938 (mips_target::low_fetch_register): ...this.
1939 (the_low_target): Remove the op field.
1940 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1941 Declare.
1942 (riscv_fetch_register): Turn into...
1943 (riscv_target::low_fetch_register): ...this.
1944 (the_low_target): Remove the op field.
1945
1946 Update the callers below.
1947
1948 * linux-low.cc (linux_process_target::fetch_registers)
1949 (linux_process_target::low_fetch_register)
1950
daca57a7
TBA
19512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1952
1953 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1954 linux target ops into methods of linux_process_target.
1955
1956 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1957 (class linux_process_target) <fetch_register>
1958 <store_register>
1959 <usr_fetch_inferior_registers>
1960 <usr_store_inferior_registers>
1961 <low_cannot_fetch_register>
1962 <low_cannot_fetch_register> Declare.
1963 * linux-low.cc (fetch_register): Turn into...
1964 (linux_process_target::fetch_register): ...this.
1965 (store_register): Turn into ...
1966 (linux_process_target::store_register): ...this.
1967 (usr_fetch_inferior_registers): Turn into...
1968 (linux_process_target::usr_fetch_inferior_registers): ...this.
1969 (usr_store_inferior_registers): Turn into...
1970 (linux_process_target::usr_store_inferior_registers): ...this.
1971 * linux-x86-low.cc (class x86_target)
1972 <low_cannot_fetch_register>
1973 <low_cannot_store_register>: Declare.
1974 (x86_cannot_store_register): Turn into...
1975 (x86_target::low_cannot_store_register): ...this.
1976 (x86_cannot_fetch_register): Turn into...
1977 (x86_target::low_cannot_fetch_register): ...this.
1978 (the_low_target): Remove the target op fields.
1979 * linux-aarch64-low.cc (class aarch64_target)
1980 <low_cannot_fetch_register>
1981 <low_cannot_store_register>: Declare.
1982 (aarch64_target::low_cannot_fetch_register)
1983 (aarch64_target::low_cannot_store_register): Define.
1984 (the_low_target): Remove the op fields.
1985 * linux-arm-low.cc (class arm_target)
1986 <low_cannot_fetch_register>
1987 <low_cannot_store_register>: Declare.
1988 (arm_cannot_fetch_register): Turn into...
1989 (arm_target::low_cannot_fetch_register): ...this.
1990 (arm_cannot_store_register): Turn into...
1991 (arm_target::low_cannot_store_register): ...this.
1992 (the_low_target): Remove the op fields.
1993 * linux-bfin-low.cc (class bfin_target)
1994 <low_cannot_fetch_register>
1995 <low_cannot_store_register>: Declare.
1996 (bfin_cannot_fetch_register): Turn into...
1997 (bfin_target::low_cannot_fetch_register): ...this.
1998 (bfin_cannot_store_register): Turn into...
1999 (bfin_target::low_cannot_store_register): ...this.
2000 (the_low_target): Remove the op fields.
2001 * linux-cris-low.cc (class cris_target)
2002 <low_cannot_fetch_register>
2003 <low_cannot_store_register>: Declare.
2004 (cris_cannot_fetch_register): Turn into...
2005 (cris_target::low_cannot_fetch_register): ...this.
2006 (cris_cannot_store_register): Turn into...
2007 (cris_target::low_cannot_store_register): ...this.
2008 (the_low_target): Remove the op fields.
2009 * linux-crisv32-low.cc (class crisv32_target)
2010 <low_cannot_fetch_register>
2011 <low_cannot_store_register>: Declare.
2012 (crisv32_target::low_cannot_fetch_register)
2013 (crisv32_target::low_cannot_store_register): Define.
2014 (the_low_target): Remove the op fields.
2015 * linux-ia64-low.cc (class ia64_target)
2016 <low_cannot_fetch_register>
2017 <low_cannot_store_register>: Declare.
2018 (ia64_cannot_fetch_register): Turn into...
2019 (ia64_target::low_cannot_fetch_register): ...this.
2020 (ia64_cannot_store_register): Turn into...
2021 (ia64_target::low_cannot_store_register): ...this.
2022 (the_low_target): Remove the op fields.
2023 * linux-m32r-low.cc (class m32r_target)
2024 <low_cannot_fetch_register>
2025 <low_cannot_store_register>: Declare.
2026 (m32r_cannot_fetch_register): Turn into...
2027 (m32r_target::low_cannot_fetch_register): ...this.
2028 (m32r_cannot_store_register): Turn into...
2029 (m32r_target::low_cannot_store_register): ...this.
2030 (the_low_target): Remove the op fields.
2031 * linux-m68k-low.cc (class m68k_target)
2032 <low_cannot_fetch_register>
2033 <low_cannot_store_register>: Declare.
2034 (m68k_cannot_fetch_register): Turn into...
2035 (m68k_target::low_cannot_fetch_register): ...this.
2036 (m68k_cannot_store_register): Turn into...
2037 (m68k_target::low_cannot_store_register): ...this.
2038 (the_low_target): Remove the op fields.
2039 * linux-mips-low.cc (class mips_target)
2040 <low_cannot_fetch_register>
2041 <low_cannot_store_register>: Declare.
2042 (mips_cannot_fetch_register): Turn into...
2043 (mips_target::low_cannot_fetch_register): ...this.
2044 (mips_cannot_store_register): Turn into...
2045 (mips_target::low_cannot_store_register): ...this.
2046 (get_usrregs_info): Inline at the call sites in
2047 low_cannot_fetch_register and low_cannot_store_register,
2048 and remove.
2049 (the_low_target): Remove the op fields.
2050 * linux-nios2-low.cc (class nios2_target)
2051 <low_cannot_fetch_register>
2052 <low_cannot_store_register>: Declare.
2053 (nios2_cannot_fetch_register): Turn into...
2054 (nios2_target::low_cannot_fetch_register): ...this.
2055 (nios2_cannot_store_register): Turn into...
2056 (nios2_target::low_cannot_store_register): ...this.
2057 (the_low_target): Remove the op fields.
2058 * linux-ppc-low.cc (class ppc_target)
2059 <low_cannot_fetch_register>
2060 <low_cannot_store_register>: Declare.
2061 (ppc_cannot_fetch_register): Turn into...
2062 (ppc_target::low_cannot_fetch_register): ...this.
2063 (ppc_cannot_store_register): Turn into...
2064 (ppc_target::low_cannot_store_register): ...this.
2065 (the_low_target): Remove the op fields.
2066 * linux-riscv-low.cc (class riscv_target)
2067 <low_cannot_fetch_register>
2068 <low_cannot_store_register>: Declare.
2069 (riscv_target::low_cannot_fetch_register)
2070 (riscv_target::low_cannot_store_register): Define.
2071 (the_low_target): Remove the op fields.
2072 * linux-s390-low.cc (class s390_target)
2073 <low_cannot_fetch_register>
2074 <low_cannot_store_register>: Declare.
2075 (s390_cannot_fetch_register): Turn into...
2076 (s390_target::low_cannot_fetch_register): ...this.
2077 (s390_cannot_store_register): Turn into...
2078 (s390_target::low_cannot_store_register): ...this.
2079 (the_low_target): Remove the op fields.
2080 * linux-sh-low.cc (class sh_target)
2081 <low_cannot_fetch_register>
2082 <low_cannot_store_register>: Declare.
2083 (sh_cannot_fetch_register): Turn into...
2084 (sh_target::low_cannot_fetch_register): ...this.
2085 (sh_cannot_store_register): Turn into...
2086 (sh_target::low_cannot_store_register): ...this.
2087 (the_low_target): Remove the op fields.
2088 * linux-sparc-low.cc (class sparc_target)
2089 <low_cannot_fetch_register>
2090 <low_cannot_store_register>: Declare.
2091 (sparc_cannot_fetch_register): Turn into...
2092 (sparc_target::low_cannot_fetch_register): ...this.
2093 (sparc_cannot_store_register): Turn into...
2094 (sparc_target::low_cannot_store_register): ...this.
2095 (the_low_target): Remove the op fields.
2096 * linux-tic6x-low.cc (class tic6x_target)
2097 <low_cannot_fetch_register>
2098 <low_cannot_store_register>: Declare.
2099 (tic6x_cannot_fetch_register): Turn into...
2100 (tic6x_target::low_cannot_fetch_register): ...this.
2101 (tic6x_cannot_store_register): Turn into...
2102 (tic6x_target::low_cannot_store_register): ...this.
2103 (the_low_target): Remove the op fields.
2104 * linux-tile-low.cc (class tile_target)
2105 <low_cannot_fetch_register>
2106 <low_cannot_store_register>: Declare.
2107 (tile_cannot_fetch_register): Turn into...
2108 (tile_target::low_cannot_fetch_register): ...this.
2109 (tile_cannot_store_register): Turn into...
2110 (tile_target::low_cannot_store_register): ...this.
2111 (the_low_target): Remove the op fields.
2112 * linux-xtensa-low.cc (class xtensa_target)
2113 <low_cannot_fetch_register>
2114 <low_cannot_store_register>: Declare.
2115 (xtensa_target::low_cannot_fetch_register)
2116 (xtensa_target::low_cannot_store_register): Define.
2117 (the_low_target): Remove the op fields.
2118
aa8d21c9
TBA
21192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2120
2121 Turn the 'regs_info' linux target op into a method of
2122 linux_process_target.
2123
2124 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2125 (class linux_process_target) <get_regs_info>: Define.
2126
2127 Update the callers below.
2128
2129 * linux-low.cc (linux_process_target::fetch_registers)
2130 (linux_process_target::store_registers)
2131 * proc-service.cc (gregset_info)
2132
2133 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2134 (x86_linux_regs_info): Turn into ...
2135 (x86_target::get_regs_info): ...this.
2136 (the_low_target): Remove the op field.
2137 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2138 Declare.
2139 (aarch64_regs_info): Turn into ...
2140 (aarch64_target::get_regs_info): ...this.
2141 (the_low_target): Remove the op field.
2142 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2143 (arm_regs_info): Turn into ...
2144 (arm_target::get_regs_info): ...this.
2145 (the_low_target): Remove the op field.
2146 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2147 (bfin_regs_info): Turn into ...
2148 (bfin_target::get_regs_info): ...this.
2149 (the_low_target): Remove the op field.
2150 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2151 (cris_regs_info): Turn into ...
2152 (cris_target::get_regs_info): ...this.
2153 (the_low_target): Remove the op field.
2154 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2155 Declare.
2156 (crisv32_regs_info): Turn into ...
2157 (crisv32_target::get_regs_info): ...this.
2158 (the_low_target): Remove the op field.
2159 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2160 (ia64_regs_info): Turn into ...
2161 (ia64_target::get_regs_info): ...this.
2162 (the_low_target): Remove the op field.
2163 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2164 (m32r_regs_info): Turn into ...
2165 (m32r_target::get_regs_info): ...this.
2166 (the_low_target): Remove the op field.
2167 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2168 (m68k_regs_info): Turn into ...
2169 (m68k_target::get_regs_info): ...this.
2170 (the_low_target): Remove the op field.
2171 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2172 (mips_regs_info): Turn into ...
2173 (mips_target::get_regs_info): ...this.
2174 (the_low_target): Remove the op field.
2175 (get_usrregs_info): Update the call to the op.
2176 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2177 (nios2_regs_info): Turn into ...
2178 (nios2_target::get_regs_info): ...this.
2179 (the_low_target): Remove the op field.
2180 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2181 (ppc_regs_info): Turn into ...
2182 (ppc_target::get_regs_info): ...this.
2183 (the_low_target): Remove the op field.
2184 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2185 (riscv_regs_info): Turn into ...
2186 (riscv_target::get_regs_info): ...this.
2187 (the_low_target): Remove the op field.
2188 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2189 (s390_regs_info): Turn into ...
2190 (s390_target::get_regs_info): ...this.
2191 (the_low_target): Remove the op field.
2192 (s390_collect_ptrace_register)
2193 (s390_supply_ptrace_register)
2194 (s390_fill_gregset): Update the call to the op.
2195 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2196 (sh_regs_info): Turn into ...
2197 (sh_target::get_regs_info): ...this.
2198 (the_low_target): Remove the op field.
2199 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2200 (sparc_regs_info): Turn into ...
2201 (sparc_target::get_regs_info): ...this.
2202 (the_low_target): Remove the op field.
2203 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2204 (tic6x_regs_info): Turn into ...
2205 (tic6x_target::get_regs_info): ...this.
2206 (the_low_target): Remove the op field.
2207 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2208 (tile_regs_info): Turn into ...
2209 (tile_target::get_regs_info): ...this.
2210 (the_low_target): Remove the op field.
2211 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2212 Declare.
2213 (xtensa_regs_info): Turn into ...
2214 (xtensa_target::get_regs_info): ...this.
2215 (the_low_target): Remove the op field.
2216
797bcff5
TBA
22172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2218
2219 Turn the 'arch_setup' linux target op into a method of
2220 linux_process_target.
2221
2222 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2223 (class linux_process_target) <arch_setup_thread>
2224 <low_arch_setup>: New declarations.
2225 * linux-low.cc (linux_arch_setup): Delete.
2226 (linux_arch_setup_thread): Turn into...
2227 (linux_process_target::arch_setup_thread): ... this.
2228
2229 Update the callers below.
2230
2231 (linux_process_target::handle_extended_wait)
2232 (linux_process_target::post_create_inferior)
2233 (linux_process_target::filter_event)
2234
2235 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2236 declaration.
2237 (x86_linux_update_xmltarget): Turn into...
2238 (x86_target::update_xmltarget): ...this.
2239 (x86_linux_process_qsupported): Update the call to
2240 x86_linux_update_xmltarget.
2241 (x86_arch_setup): Turn into ...
2242 (x86_target::low_arch_setup): ...this.
2243 (the_low_target): Remove the op field.
2244 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2245 declaration.
2246 (aarch64_arch_setup): Turn into ...
2247 (aarch64_target::low_arch_setup): ...this.
2248 (the_low_target): Remove the op field.
2249 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2250 declaration.
2251 (arm_arch_setup): Turn into ...
2252 (arm_target::low_arch_setup): ...this.
2253 (the_low_target): Remove the op field.
2254 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2255 declaration.
2256 (bfin_arch_setup): Turn into ...
2257 (bfin_target::low_arch_setup): ...this.
2258 (the_low_target): Remove the op field.
2259 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2260 declaration.
2261 (cris_arch_setup): Turn into ...
2262 (cris_target::low_arch_setup): ...this.
2263 (the_low_target): Remove the op field.
2264 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2265 declaration.
2266 (crisv32_arch_setup): Turn into ...
2267 (crisv32_target::low_arch_setup): ...this.
2268 (the_low_target): Remove the op field.
2269 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2270 declaration.
2271 (ia64_arch_setup): Turn into ...
2272 (ia64_target::low_arch_setup): ...this.
2273 (the_low_target): Remove the op field.
2274 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2275 declaration.
2276 (m32r_arch_setup): Turn into ...
2277 (m32r_target::low_arch_setup): ...this.
2278 (the_low_target): Remove the op field.
2279 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2280 declaration.
2281 (m68k_arch_setup): Turn into ...
2282 (m68k_target::low_arch_setup): ...this.
2283 (the_low_target): Remove the op field.
2284 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2285 declaration.
2286 (mips_arch_setup): Turn into ...
2287 (mips_target::low_arch_setup): ...this.
2288 (the_low_target): Remove the op field.
2289 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2290 declaration.
2291 (nios2_arch_setup): Turn into ...
2292 (nios2_target::low_arch_setup): ...this.
2293 (the_low_target): Remove the op field.
2294 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2295 declaration.
2296 (ppc_arch_setup): Turn into ...
2297 (ppc_target::low_arch_setup): ...this.
2298 (the_low_target): Remove the op field.
2299 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2300 declaration.
2301 (riscv_arch_setup): Turn into ...
2302 (riscv_target::low_arch_setup): ...this.
2303 (the_low_target): Remove the op field.
2304 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2305 declaration.
2306 (s390_arch_setup): Turn into ...
2307 (s390_target::low_arch_setup): ...this.
2308 (the_low_target): Remove the op field.
2309 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2310 declaration.
2311 (sh_arch_setup): Turn into ...
2312 (sh_target::low_arch_setup): ...this.
2313 (the_low_target): Remove the op field.
2314 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2315 declaration.
2316 (sparc_arch_setup): Turn into ...
2317 (sparc_target::low_arch_setup): ...this.
2318 (the_low_target): Remove the op field.
2319 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2320 declaration.
2321 (tic6x_arch_setup): Turn into ...
2322 (tic6x_target::low_arch_setup): ...this.
2323 (the_low_target): Remove the op field.
2324 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2325 declaration.
2326 (tile_arch_setup): Turn into ...
2327 (tile_target::low_arch_setup): ...this.
2328 (the_low_target): Remove the op field.
2329 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2330 declaration.
2331 (xtensa_arch_setup): Turn into ...
2332 (xtensa_target::low_arch_setup): ...this.
2333 (the_low_target): Remove the op field.
2334
ef0478f6
TBA
23352020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2336
2337 * linux-low.h (the_linux_target): New extern declaration.
2338 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2339 'the_target'.
2340 (the_linux_target): Remove.
2341 * linux-x86-low.cc (class x86_target): New class.
2342 (the_x86_target): New static object.
2343 (the_linux_target): Define as pointer to the_x86_target.
2344 * linux-aarch64-low.cc (class aarch64_target): New class.
2345 (the_aarch64_target): New static object.
2346 (the_linux_target): Define as pointer to the_aarch64_target.
2347 * linux-arm-low.cc (class arm_target): New class.
2348 (the_arm_target): New static object.
2349 (the_linux_target): Define as pointer to the_arm_target.
2350 * linux-bfin-low.cc (class bfin_target): New class.
2351 (the_bfin_target): New static object.
2352 (the_linux_target): Define as pointer to the_bfin_target.
2353 * linux-cris-low.cc (class cris_target): New class.
2354 (the_cris_target): New static object.
2355 (the_linux_target): Define as pointer to the_cris_target.
2356 * linux-crisv32-low.cc (class crisv32_target): New class.
2357 (the_crisv32_target): New static object.
2358 (the_linux_target): Define as pointer to the_crisv32_target.
2359 * linux-ia64-low.cc (class ia64_target): New class.
2360 (the_ia64_target): New static object.
2361 (the_linux_target): Define as pointer to the_ia64_target.
2362 * linux-m32r-low.cc (class m32r_target): New class.
2363 (the_m32r_target): New static object.
2364 (the_linux_target): Define as pointer to the_m32r_target.
2365 * linux-m68k-low.cc (class m68k_target): New class.
2366 (the_m68k_target): New static object.
2367 (the_linux_target): Define as pointer to the_m68k_target.
2368 * linux-mips-low.cc (class mips_target): New class.
2369 (the_mips_target): New static object.
2370 (the_linux_target): Define as pointer to the_mips_target.
2371 * linux-nios2-low.cc (class nios2_target): New class.
2372 (the_nios2_target): New static object.
2373 (the_linux_target): Define as pointer to the_nios2_target.
2374 * linux-ppc-low.cc (class ppc_target): New class.
2375 (the_ppc_target): New static object.
2376 (the_linux_target): Define as pointer to the_ppc_target.
2377 * linux-riscv-low.cc (class riscv_target): New class.
2378 (the_riscv_target): New static object.
2379 (the_linux_target): Define as pointer to the_riscv_target.
2380 * linux-s390-low.cc (class s390_target): New class.
2381 (the_s390_target): New static object.
2382 (the_linux_target): Define as pointer to the_s390_target.
2383 * linux-sh-low.cc (class sh_target): New class.
2384 (the_sh_target): New static object.
2385 (the_linux_target): Define as pointer to the_sh_target.
2386 * linux-sparc-low.cc (class sparc_target): New class.
2387 (the_sparc_target): New static object.
2388 (the_linux_target): Define as pointer to the_sparc_target.
2389 * linux-tic6x-low.cc (class tic6x_target): New class.
2390 (the_tic6x_target): New static object.
2391 (the_linux_target): Define as pointer to the_tic6x_target.
2392 * linux-tile-low.cc (class tile_target): New class.
2393 (the_tile_target): New static object.
2394 (the_linux_target): Define as pointer to the_tile_target.
2395 * linux-xtensa-low.cc (class xtensa_target): New class.
2396 (the_xtensa_target): New static object.
2397 (the_linux_target): Define as pointer to the_xtensa_target.
2398
d16f3f6c
TBA
23992020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2400
2401 Turn some static functions in linux-low.cc into private methods of
2402 linux_process_target.
2403
2404 * linux-low.cc (handle_extended_wait): Turn into ...
2405 (linux_process_target::handle_extended_wait): ...this. Call
2406 'mourn' on 'this' object instead of 'the_target'.
2407 (maybe_move_out_of_jump_pad): Turn into...
2408 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2409 (linux_low_filter_event): Turn into...
2410 (linux_process_target::filter_event): ...this.
2411 (linux_wait_for_event_filtered): Turn into...
2412 (linux_process_target::wait_for_event_filtered): ...this.
2413 (linux_wait_for_event): Turn into...
2414 (linux_process_target::wait_for_event): ...this.
2415 (linux_wait_1): Turn into...
2416 (linux_process_target::wait_1): ...this.
2417 (wait_for_sigstop): Turn into...
2418 (linux_process_target::wait_for_sigstop): ...this.
2419 (move_out_of_jump_pad_callback): Turn into...
2420 (linux_process_target::move_out_of_jump_pad): ...this.
2421 (stop_all_lwps): Turn into...
2422 (linux_process_target::stop_all_lwps): ...this.
2423 (start_step_over): Turn into...
2424 (linux_process_target::start_step_over): ...this.
2425 (complete_ongoing_step_over): Turn into...
2426 (linux_process_target::complete_ongoing_step_over): ...this.
2427 (proceed_all_lwps): Turn into...
2428 (linux_process_target::proceed_all_lwps): ...this.
2429 (unstop_all_lwps): Turn into...
2430 (linux_process_target::unstop_all_lwps): ...this.
2431
2432 * linux-low.h (class linux_process_target)
2433 <handle_extended_wait>
2434 <maybe_move_out_of_jump_pad>
2435 filter_event>
2436 <wait_for_event_filtered>
2437 <wait_for_event>
2438 <wait_1>
2439 <wait_for_sigstop>
2440 <move_out_of_jump_pad>
2441 <stop_all_lwps>
2442 <start_step_over>
2443 <complete_ongoing_step_over>
2444 <proceed_all_lwps>
2445 <unstop_all_lwps>: Declare.
2446
2447 Update the callers below.
2448
2449 * linux-low.cc (linux_process_target::attach): Update.
2450 (linux_process_target::stabilize_threads): Ditto.
2451 (linux_process_target::wait): Ditto.
2452
a5863204
TBA
24532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2454
2455 * linux-low.h (struct linux_target_ops): Update the comment for
2456 'cannot_store_register' to return 0 or 1.
2457 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2458 of 2.
2459
c884cc46
SM
24602020-03-20 Simon Marchi <simon.marchi@efficios.com>
2461
2462 * config.in: Re-generate.
2463 * configure: Re-generate.
2464
5a82b8a1
KR
24652020-03-17 Kamil Rytarowski <n54@gmx.com>
2466
2467 * regcache.cc (find_register_by_number): Update.
2468 * tdesc.cc (init_target_desc): Likewise.
2469 * tdesc.h (target_desc::reg_defs): Likewise.
2470
4635ff97
TT
24712020-03-12 Tom Tromey <tom@tromey.com>
2472
2473 * configure: Rebuild.
2474 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2475 (WIN32APILIBS): New subst.
2476 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2477 gdbsupport files.
2478 (gdbsupport/%.o): Remove target.
2479 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2480 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2481 (WIN32APILIBS): New variable.
2482 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2483 (gdbreplay$(EXEEXT)): Likewise.
2484
9a665d62
TT
24852020-03-12 Tom Tromey <tom@tromey.com>
2486
2487 * config.in, configure: Rebuild.
2488 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2489 * acinclude.m4: Include gettext-sister.m4.
2490 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2491 variables.
2492 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2493 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2494
272cd5a3
SM
24952020-03-12 Simon Marchi <simon.marchi@efficios.com>
2496
2497 * acinclude.m4: Update path to selftest.m4.
2498
db6878ac
SM
24992020-03-12 Simon Marchi <simon.marchi@efficios.com>
2500
2501 * configure.ac: Don't source bfd/development.sh, move
2502 GDB_AC_COMMON higher.
2503 * configure: Re-generate.
2504
4d696a5c
SM
25052020-03-12 Simon Marchi <simon.marchi@efficios.com>
2506
2507 * configure: Re-generate.
2508
a0761e34
SM
25092020-03-11 Simon Marchi <simon.marchi@efficios.com>
2510
2511 * configure: Re-generate.
2512
20ea4a60
AB
25132020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2514
2515 * .dir-locals.el: New file.
2516
842806cb
TBA
25172020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2518
2519 * .gitattributes: New file.
2520
442131c1
AB
25212020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2522
2523 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2524 reply into an S reply.
2525 * server.cc (disable_packet_T): New global.
2526 (captured_main): Set new global when appropriate.
2527 * server.h (disable_packet_T): Declare.
2528
dda42c0b
TT
25292020-02-21 Tom Tromey <tom@tromey.com>
2530
2531 * Makefile.in (mostlyclean): New target.
2532
52405d85
TBA
25332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2534
2535 * target.h (struct process_stratum_target): Remove.
2536 (class process_target): Rename to ...
2537 (class process_stratum_target): ... this.
2538 * linux-low.h (class linux_process_target): Derive from
2539 'process_stratum_target'.
2540 * linux-low.cc (linux_target_ops): Remove.
2541 (initialize_low): Set the_target to the singleton instance of
2542 linux_process_target.
2543 * lynx-low.h (class lynx_process_target): Derive from
2544 'process_stratum_target'.
2545 * lynx-low.cc (lynx_target_ops): Remove.
2546 (initialize_low): Set the_target to the singleton instance of
2547 lynx_process_target.
2548 * nto-low.h (class nto_process_target): Derive from
2549 'process_stratum_target'.
2550 * nto-low.cc (nto_target_ops): Remove.
2551 (initialize_low): Set the_target to the singleton instance of
2552 nto_process_target.
2553 * win32-low.h (class win32_process_target): Derive from
2554 'process_stratum_target'.
2555 * win32-low.cc (win32_target_ops): Remove.
2556 (initialize_low): Set the_target to the singleton instance of
2557 win32_process_target.
2558
2559 Replace 'the_target->pt' with 'the_target' in the uses below.
2560
2561 * hostio.cc (hostio_error)
2562 (handle_setfs)
2563 (handle_open)
2564 (handle_unlink)
2565 (handle_readlink)
2566 * linux-aarch32-low.cc (arm_breakpoint_at)
2567 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2568 * linux-arm-low.cc (arm_sigreturn_next_pc)
2569 (arm_get_hwcap)
2570 (arm_get_syscall_trapinfo)
2571 * linux-cris-low.cc (cris_breakpoint_at)
2572 * linux-crisv32-low.cc (cris_breakpoint_at)
2573 * linux-low.cc (handle_extended_wait)
2574 (linux_wait_1)
2575 (linux_read_memory)
2576 (linux_process_target::breakpoint_kind_from_pc)
2577 (linux_get_auxv)
2578 * linux-m32r-low.cc (m32r_breakpoint_at)
2579 * linux-mips-low.cc (mips_breakpoint_at)
2580 * linux-nios2-low.cc (nios2_breakpoint_at)
2581 * linux-ppc-low.cc (ppc_breakpoint_at)
2582 * linux-s390-low.cc (s390_get_hwcap)
2583 * linux-sh-low.cc (sh_breakpoint_at)
2584 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2585 (sparc_store_gregset_from_stack)
2586 (sparc_breakpoint_at)
2587 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2588 * linux-tile-low.cc (tile_breakpoint_at)
2589 * linux-x86-low.cc (x86_breakpoint_at)
2590 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2591 * mem-break.cc (bp_size)
2592 (bp_opcode)
2593 (insert_memory_breakpoint)
2594 (set_raw_breakpoint_at)
2595 (delete_raw_breakpoint)
2596 (z_type_supported)
2597 (uninsert_raw_breakpoint)
2598 (reinsert_raw_breakpoint)
2599 (validate_inserted_breakpoint)
2600 * regcache.cc (regcache_read_pc)
2601 (regcache_write_pc)
2602 * remote-utils.cc (putpkt_binary_1)
2603 (input_interrupt)
2604 (getpkt)
2605 (prepare_resume_reply)
2606 * server.cc (handle_general_set)
2607 (handle_detach)
2608 (handle_qxfer_auxv)
2609 (handle_qxfer_exec_file)
2610 (handle_qxfer_libraries_svr4)
2611 (handle_qxfer_osdata)
2612 (handle_qxfer_siginfo)
2613 (handle_qxfer_fdpic)
2614 (handle_query)
2615 (resume)
2616 (handle_v_requests)
2617 (queue_stop_reply_callback)
2618 (captured_main)
2619 * target.cc (prepare_to_access_memory)
2620 (done_accessing_memory)
2621 (read_inferior_memory)
2622 (target_write_memory)
2623 (target_stop_and_wait)
2624 (target_wait)
2625 (target_mourn_inferior)
2626 (target_continue_no_signal)
2627 (target_continue)
2628 (target_supports_multi_process)
2629 (kill_inferior)
2630 * target.h
2631 (target_create_inferior)
2632 (target_post_create_inferior)
2633 (myattach)
2634 (target_supports_fork_events)
2635 (target_supports_vfork_events)
2636 (target_supports_exec_events)
2637 (target_handle_new_gdb_connection)
2638 (detach_inferior)
2639 (mythread_alive)
2640 (fetch_inferior_registers)
2641 (store_inferior_registers)
2642 (join_inferior)
2643 (target_supports_non_stop)
2644 (target_async)
2645 (target_process_qsupported)
2646 (target_supports_catch_syscall)
2647 (target_get_ipa_tdesc_idx)
2648 (target_supports_tracepoints)
2649 (target_supports_fast_tracepoints)
2650 (target_get_min_fast_tracepoint_insn_len)
2651 (target_thread_stopped)
2652 (target_pause_all)
2653 (target_unpause_all)
2654 (target_stabilize_threads)
2655 (target_install_fast_tracepoint_jump_pad)
2656 (target_emit_ops)
2657 (target_supports_disable_randomization)
2658 (target_supports_agent)
2659 (target_enable_btrace)
2660 (target_disable_btrace)
2661 (target_read_btrace)
2662 (target_read_btrace_conf)
2663 (target_supports_range_stepping)
2664 (target_supports_stopped_by_sw_breakpoint)
2665 (target_stopped_by_sw_breakpoint)
2666 (target_supports_stopped_by_hw_breakpoint)
2667 (target_supports_hardware_single_step)
2668 (target_stopped_by_hw_breakpoint)
2669 (target_breakpoint_kind_from_pc)
2670 (target_breakpoint_kind_from_current_state)
2671 (target_supports_software_single_step)
2672 (target_core_of_thread)
2673 (target_thread_name)
2674 (target_thread_handle)
2675 * win32-low.cc (do_initial_child_stuff)
2676
2677 Rename target op default definitions listed below.
2678
2679 * target.cc (process_target::post_create_inferior): Rename as ...
2680 (process_stratum_target::post_create_inferior): ... this.
2681 (process_target::prepare_to_access_memory): Rename as ...
2682 (process_stratum_target::prepare_to_access_memory): ... this.
2683 (process_target::done_accessing_memory): Rename as ...
2684 (process_stratum_target::done_accessing_memory): ... this.
2685 (process_target::look_up_symbols): Rename as ...
2686 (process_stratum_target::look_up_symbols): ... this.
2687 (process_target::supports_read_auxv): Rename as ...
2688 (process_stratum_target::supports_read_auxv): ... this.
2689 (process_target::read_auxv): Rename as ...
2690 (process_stratum_target::read_auxv): ... this.
2691 (process_target::supports_z_point_type): Rename as ...
2692 (process_stratum_target::supports_z_point_type): ... this.
2693 (process_target::insert_point): Rename as ...
2694 (process_stratum_target::insert_point): ... this.
2695 (process_target::remove_point): Rename as ...
2696 (process_stratum_target::remove_point): ... this.
2697 (process_target::stopped_by_sw_breakpoint): Rename as ...
2698 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2699 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2700 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2701 (process_target::stopped_by_hw_breakpoint): Rename as ...
2702 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2703 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2704 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2705 (process_target::supports_hardware_single_step): Rename as ...
2706 (process_stratum_target::supports_hardware_single_step): ... this.
2707 (process_target::stopped_by_watchpoint): Rename as ...
2708 (process_stratum_target::stopped_by_watchpoint): ... this.
2709 (process_target::stopped_data_address): Rename as ...
2710 (process_stratum_target::stopped_data_address): ... this.
2711 (process_target::supports_read_offsets): Rename as ...
2712 (process_stratum_target::supports_read_offsets): ... this.
2713 (process_target::read_offsets): Rename as ...
2714 (process_stratum_target::read_offsets): ... this.
2715 (process_target::supports_get_tls_address): Rename as ...
2716 (process_stratum_target::supports_get_tls_address): ... this.
2717 (process_target::get_tls_address): Rename as ...
2718 (process_stratum_target::get_tls_address): ... this.
2719 (process_target::hostio_last_error): Rename as ...
2720 (process_stratum_target::hostio_last_error): ... this.
2721 (process_target::supports_qxfer_osdata): Rename as ...
2722 (process_stratum_target::supports_qxfer_osdata): ... this.
2723 (process_target::qxfer_osdata): Rename as ...
2724 (process_stratum_target::qxfer_osdata): ... this.
2725 (process_target::supports_qxfer_siginfo): Rename as ...
2726 (process_stratum_target::supports_qxfer_siginfo): ... this.
2727 (process_target::qxfer_siginfo): Rename as ...
2728 (process_stratum_target::qxfer_siginfo): ... this.
2729 (process_target::supports_non_stop): Rename as ...
2730 (process_stratum_target::supports_non_stop): ... this.
2731 (process_target::async): Rename as ...
2732 (process_stratum_target::async): ... this.
2733 (process_target::start_non_stop): Rename as ...
2734 (process_stratum_target::start_non_stop): ... this.
2735 (process_target::supports_multi_process): Rename as ...
2736 (process_stratum_target::supports_multi_process): ... this.
2737 (process_target::supports_fork_events): Rename as ...
2738 (process_stratum_target::supports_fork_events): ... this.
2739 (process_target::supports_vfork_events): Rename as ...
2740 (process_stratum_target::supports_vfork_events): ... this.
2741 (process_target::supports_exec_events): Rename as ...
2742 (process_stratum_target::supports_exec_events): ... this.
2743 (process_target::handle_new_gdb_connection): Rename as ...
2744 (process_stratum_target::handle_new_gdb_connection): ... this.
2745 (process_target::handle_monitor_command): Rename as ...
2746 (process_stratum_target::handle_monitor_command): ... this.
2747 (process_target::core_of_thread): Rename as ...
2748 (process_stratum_target::core_of_thread): ... this.
2749 (process_target::supports_read_loadmap): Rename as ...
2750 (process_stratum_target::supports_read_loadmap): ... this.
2751 (process_target::read_loadmap): Rename as ...
2752 (process_stratum_target::read_loadmap): ... this.
2753 (process_target::process_qsupported): Rename as ...
2754 (process_stratum_target::process_qsupported): ... this.
2755 (process_target::supports_tracepoints): Rename as ...
2756 (process_stratum_target::supports_tracepoints): ... this.
2757 (process_target::read_pc): Rename as ...
2758 (process_stratum_target::read_pc): ... this.
2759 (process_target::write_pc): Rename as ...
2760 (process_stratum_target::write_pc): ... this.
2761 (process_target::supports_thread_stopped): Rename as ...
2762 (process_stratum_target::supports_thread_stopped): ... this.
2763 (process_target::thread_stopped): Rename as ...
2764 (process_stratum_target::thread_stopped): ... this.
2765 (process_target::supports_get_tib_address): Rename as ...
2766 (process_stratum_target::supports_get_tib_address): ... this.
2767 (process_target::get_tib_address): Rename as ...
2768 (process_stratum_target::get_tib_address): ... this.
2769 (process_target::pause_all): Rename as ...
2770 (process_stratum_target::pause_all): ... this.
2771 (process_target::unpause_all): Rename as ...
2772 (process_stratum_target::unpause_all): ... this.
2773 (process_target::stabilize_threads): Rename as ...
2774 (process_stratum_target::stabilize_threads): ... this.
2775 (process_target::supports_fast_tracepoints): Rename as ...
2776 (process_stratum_target::supports_fast_tracepoints): ... this.
2777 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2778 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2779 (process_target::emit_ops): Rename as ...
2780 (process_stratum_target::emit_ops): ... this.
2781 (process_target::supports_disable_randomization): Rename as ...
2782 (process_stratum_target::supports_disable_randomization): ... this.
2783 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2784 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2785 (process_target::qxfer_libraries_svr4): Rename as ...
2786 (process_stratum_target::qxfer_libraries_svr4): ... this.
2787 (process_target::supports_agent): Rename as ...
2788 (process_stratum_target::supports_agent): ... this.
2789 (process_target::enable_btrace): Rename as ...
2790 (process_stratum_target::enable_btrace): ... this.
2791 (process_target::disable_btrace): Rename as ...
2792 (process_stratum_target::disable_btrace): ... this.
2793 (process_target::read_btrace): Rename as ...
2794 (process_stratum_target::read_btrace): ... this.
2795 (process_target::read_btrace_conf): Rename as ...
2796 (process_stratum_target::read_btrace_conf): ... this.
2797 (process_target::supports_range_stepping): Rename as ...
2798 (process_stratum_target::supports_range_stepping): ... this.
2799 (process_target::supports_pid_to_exec_file): Rename as ...
2800 (process_stratum_target::supports_pid_to_exec_file): ... this.
2801 (process_target::pid_to_exec_file): Rename as ...
2802 (process_stratum_target::pid_to_exec_file): ... this.
2803 (process_target::supports_multifs): Rename as ...
2804 (process_stratum_target::supports_multifs): ... this.
2805 (process_target::multifs_open): Rename as ...
2806 (process_stratum_target::multifs_open): ... this.
2807 (process_target::multifs_unlink): Rename as ...
2808 (process_stratum_target::multifs_unlink): ... this.
2809 (process_target::multifs_readlink): Rename as ...
2810 (process_stratum_target::multifs_readlink): ... this.
2811 (process_target::breakpoint_kind_from_pc): Rename as ...
2812 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2813 (process_target::breakpoint_kind_from_current_state): Rename as ...
2814 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2815 (process_target::thread_name): Rename as ...
2816 (process_stratum_target::thread_name): ... this.
2817 (process_target::thread_handle): Rename as ...
2818 (process_stratum_target::thread_handle): ... this.
2819 (process_target::supports_software_single_step): Rename as ...
2820 (process_stratum_target::supports_software_single_step): ... this.
2821 (process_target::supports_catch_syscall): Rename as ...
2822 (process_stratum_target::supports_catch_syscall): ... this.
2823 (process_target::get_ipa_tdesc_idx): Rename as ...
2824 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2825
478f9adf
PA
28262020-02-20 Pedro Alves <palves@redhat.com>
2827
2828 * target.cc (set_target_ops): Simply copy the given target pointer
2829 instead of creating a copy of the pointed object.
2830
d633e831
TBA
28312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2832
2833 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2834 of process_target.
2835
2836 * target.h (struct process_stratum_target): Remove the target op.
2837 (class process_target): Add the target op.
2838 (target_get_ipa_tdesc_idx): Update the macro.
2839 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2840
2841 Update the derived classes and callers below.
2842
2843 * linux-low.cc (linux_target_ops): Update.
2844 (linux_get_ipa_tdesc_idx): Turn into ...
2845 (linux_process_target::get_ipa_tdesc_idx): ... this.
2846 * linux-low.h (class linux_process_target): Update.
2847 * lynx-low.cc (lynx_target_ops): Update.
2848 * nto-low.cc (nto_target_ops): Update.
2849 * win32-low.cc (win32_target_ops): Update.
2850
bc8d3ae4
TBA
28512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2852
2853 Turn process_stratum_target's supports_catch_syscall op into a
2854 method of process_target.
2855
2856 * target.h (struct process_stratum_target): Remove the target op.
2857 (class process_target): Add the target op.
2858 (target_supports_catch_syscall): Update the macro.
2859 * target.cc (process_target::supports_catch_syscall): Define.
2860
2861 Update the derived classes and callers below.
2862
2863 * linux-low.cc (linux_target_ops): Update.
2864 (linux_supports_catch_syscall): Turn into ...
2865 (linux_process_target::supports_catch_syscall): ... this.
2866 * linux-low.h (class linux_process_target): Update.
2867 * lynx-low.cc (lynx_target_ops): Update.
2868 * nto-low.cc (nto_target_ops): Update.
2869 * win32-low.cc (win32_target_ops): Update.
2870
5303a34f
TBA
28712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2872
2873 Turn process_stratum_target's supports_software_single_step op
2874 into a method of process_target.
2875
2876 * target.h (struct process_stratum_target): Remove the target op.
2877 (class process_target): Add the target op.
2878 (target_supports_software_single_step): Update the macro.
2879 * target.cc (process_target::supports_software_single_step): Define.
2880
2881 Update the derived classes and callers below.
2882
2883 * linux-low.cc (linux_target_ops): Update.
2884 (linux_supports_software_single_step): Turn into ...
2885 (linux_process_target::supports_software_single_step): ... this.
2886 * linux-low.h (class linux_process_target): Update.
2887 * lynx-low.cc (lynx_target_ops): Update.
2888 * nto-low.cc (nto_target_ops): Update.
2889 * win32-low.cc (win32_target_ops): Update.
2890
7f63b89b
TBA
28912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2892
2893 Turn process_stratum_target's thread_name and thread_handle ops
2894 into methods of process_target.
2895
2896 * target.h (struct process_stratum_target): Remove the target ops.
2897 (class process_target): Add the target ops.
2898 (target_thread_name): Update the macro.
2899 (target_thread_handle): Update the macro.
2900 * target.cc (process_target::thread_name): Define.
2901 (process_target::thread_handle): Define.
2902
2903 Update the derived classes and callers below.
2904
2905 * linux-low.cc (linux_target_ops): Update.
2906 (linux_process_target::thread_name): Define.
2907 (linux_process_target::thread_handle): Define.
2908 * linux-low.h (class linux_process_target): Update.
2909 * lynx-low.cc (lynx_target_ops): Update.
2910 * nto-low.cc (nto_target_ops): Update.
2911 * win32-low.cc (win32_target_ops): Update.
2912
d367006f
TBA
29132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2914
2915 Turn process_stratum_target's breakpoint_kind_from_pc,
2916 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2917 ops into methods of process_target.
2918
2919 * target.h (struct process_stratum_target): Remove the target op.
2920 (class process_target): Add the target op.
2921 (target_breakpoint_kind_from_pc): Update the macro.
2922 (target_breakpoint_kind_from_current_state): Update the macro.
2923 (default_breakpoint_kind_from_pc): Remove declaration.
2924 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2925 (process_target::breakpoint_kind_from_pc): ... this.
2926 (process_target::breakpoint_kind_from_current_state): Define.
2927
2928 Update the derived classes and callers below.
2929
2930 * mem-break.cc (bp_size): Update.
2931 (bp_opcode): Update.
2932 * linux-low.cc (linux_target_ops): Update.
2933 (linux_wait_1): Update.
2934 (linux_breakpoint_kind_from_pc): Turn into ...
2935 (linux_process_target::breakpoint_kind_from_pc): ... this.
2936 (linux_sw_breakpoint_from_kind): Turn into ...
2937 (linux_process_target::sw_breakpoint_from_kind): ... this.
2938 (linux_breakpoint_kind_from_current_state): Turn into ...
2939 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2940 * linux-low.h (class linux_process_target): Update.
2941 * lynx-low.cc (lynx_target_ops): Update.
2942 (lynx_process_target::sw_breakpoint_from_kind): Define.
2943 * lynx-low.h (class lynx_process_target): Update.
2944 * nto-low.cc (nto_target_ops): Update.
2945 (nto_sw_breakpoint_from_kind): Turn into ...
2946 (nto_process_target::sw_breakpoint_from_kind): ... this.
2947 * nto-low.h (class nto_process_target): Update.
2948 * win32-low.cc (win32_target_ops): Update.
2949 (win32_sw_breakpoint_from_kind): Turn into ...
2950 (win32_process_target::sw_breakpoint_from_kind): ... this.
2951 * win32-low.h (class win32_process_target): Update.
2952
c9b7b804
TBA
29532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2954
2955 Turn process_stratum_target's multifs_open, multifs_readlink,
2956 multifs_unlink ops into methods of process_target.
2957
2958 * target.h (struct process_stratum_target): Remove the target ops.
2959 (class process_target): Add the target ops. Also add
2960 'supports_multifs'.
2961 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2962 "sys/stat.h".
2963 (process_target::supports_multifs): Define.
2964 (process_target::multifs_open): Define.
2965 (process_target::multifs_readlink): Define.
2966 (process_target::multifs_unlink): Define.
2967
2968 Update the derived classes and callers below.
2969
2970 * hostio.cc (handle_setfs): Update.
2971 (handle_open): Update.
2972 (handle_unlink): Update.
2973 (handle_readlink): Update.
2974 * linux-low.cc (linux_target_ops): Update.
2975 (linux_process_target::supports_multifs): Define.
2976 (linux_process_target::multifs_open): Define.
2977 (linux_process_target::multifs_readlink): Define.
2978 (linux_process_target::multifs_unlink): Define.
2979 * linux-low.h (class linux_process_target): Update.
2980 * lynx-low.cc (lynx_target_ops): Update.
2981 * nto-low.cc (nto_target_ops): Update.
2982 * win32-low.cc (win32_target_ops): Update.
2983
8247b823
TBA
29842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2985
2986 Turn process_stratum_target's pid_to_exec_file op into a method
2987 of process_target.
2988
2989 * target.h (struct process_stratum_target): Remove the target op.
2990 (class process_target): Add the target op. Also add
2991 'supports_pid_to_exec_file'.
2992 * target.cc (process_target::pid_to_exec_file): Define.
2993 (process_target::supports_pid_to_exec_file): Define.
2994
2995 Update the derived classes and callers below.
2996
2997 * server.cc (handle_qxfer_exec_file): Update.
2998 (handle_query): Update.
2999 * linux-low.cc (linux_target_ops): Update.
3000 (linux_process_target::supports_pid_to_exec_file): Define.
3001 (linux_process_target::pid_to_exec_file): Define.
3002 * linux-low.h (class linux_process_target): Update.
3003 * lynx-low.cc (lynx_target_ops): Update.
3004 * nto-low.cc (nto_target_ops): Update.
3005 * win32-low.cc (win32_target_ops): Update.
3006
2526e0cd
TBA
30072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3008
3009 Turn process_stratum_target's supports_range_stepping op into a
3010 method of process_target.
3011
3012 * target.h (struct process_stratum_target): Remove the target op.
3013 (class process_target): Add the target op.
3014 (target_supports_range_stepping): Update the macro.
3015 * target.cc (process_target::supports_range_stepping): Define.
3016
3017 Update the derived classes and callers below.
3018
3019 * linux-low.cc (linux_target_ops): Update.
3020 (linux_supports_range_stepping): Turn into ...
3021 (linux_process_target::supports_range_stepping): ... this.
3022 * linux-low.h (class linux_process_target): Update.
3023 * lynx-low.cc (lynx_target_ops): Update.
3024 * nto-low.cc (nto_target_ops): Update.
3025 * win32-low.cc (win32_target_ops): Update.
3026
79597bdd
TBA
30272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3028
3029 Turn process_stratum_target's btrace-related ops (enable_btrace,
3030 disable_btrace, read_btrace, read_btrace_conf) into methods of
3031 process_target.
3032
3033 * target.h (struct process_stratum_target): Remove the target ops.
3034 (class process_target): Add the target ops.
3035 (target_enable_btrace): Update.
3036 (target_disable_btrace): Update.
3037 (target_read_btrace): Update.
3038 (target_read_btrace_conf): Update.
3039 * target.cc (process_target::enable_btrace): Define.
3040 (process_target::disable_btrace): Define.
3041 (process_target::read_btrace): Define.
3042 (process_target::read_btrace_conf): Define.
3043
3044 Update the derived classes and callers below.
3045
3046 * linux-low.cc (linux_target_ops): Update.
3047 (linux_process_target:enable_btrace): Define as a wrapper around
3048 linux_enable_btrace.
3049 (linux_low_disable_btrace): Turn into ...
3050 (linux_process_target::disable_btrace): ... this.
3051 (linux_low_read_btrace): Turn into ...
3052 (linux_process_target::read_btrace): ... this.
3053 (linux_low_btrace_conf): Turn into ...
3054 (linux_process_target::read_btrace_conf): ... this.
3055 * linux-low.h (class linux_process_target): Update.
3056 * lynx-low.cc (lynx_target_ops): Update.
3057 * nto-low.cc (nto_target_ops): Update.
3058 * win32-low.cc (win32_target_ops): Update.
3059
c0245cb9
TBA
30602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3061
3062 Turn process_stratum_target's supports_agent op into a method of
3063 process_target.
3064
3065 * target.h (struct process_stratum_target): Remove the target op.
3066 (class process_target): Add the target op.
3067 (target_supports_agent): Update the macro.
3068 * target.cc (process_target::supports_agent): Define.
3069
3070 Update the derived classes and callers below.
3071
3072 * linux-low.cc (linux_target_ops): Update.
3073 (linux_supports_agent): Turn into ...
3074 (linux_process_target::supports_agent): ... this.
3075 * linux-low.h (class linux_process_target): Update.
3076 * lynx-low.cc (lynx_target_ops): Update.
3077 * nto-low.cc (nto_target_ops): Update.
3078 * win32-low.cc (win32_target_ops): Update.
3079
974387bb
TBA
30802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3081
3082 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3083 method of process_target.
3084
3085 * target.h (struct process_stratum_target): Remove the target op.
3086 (class process_target): Add the target op. Also add
3087 'supports_qxfer_libraries_svr4'.
3088 * target.cc (process_target::qxfer_libraries_svr4): Define.
3089 (process_target::supports_qxfer_libraries_svr4): Define.
3090
3091 Update the derived classes and callers below.
3092
3093 * server.cc (handle_qxfer_libraries_svr4): Update.
3094 (handle_query): Update.
3095 * linux-low.cc (linux_target_ops): Update.
3096 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3097 (linux_qxfer_libraries_svr4): Turn into ...
3098 (linux_process_target::qxfer_libraries_svr4): ... this.
3099 * linux-low.h (class linux_process_target): Update.
3100 * lynx-low.cc (lynx_target_ops): Update.
3101 * nto-low.cc (nto_target_ops): Update.
3102 * win32-low.cc (win32_target_ops): Update.
3103
c756403b
TBA
31042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3105
3106 Turn process_stratum_target's supports_disable_randomization op
3107 into a method of process_target.
3108
3109 * target.h (struct process_stratum_target): Remove the target op.
3110 (class process_target): Add the target op.
3111 (target_supports_disable_randomization): Update the macro.
3112 * target.cc (process_target::supports_disable_randomization): Define.
3113
3114 Update the derived classes and callers below.
3115
3116 * linux-low.cc (linux_target_ops): Update.
3117 (linux_supports_disable_randomization): Turn into ...
3118 (linux_process_target::supports_disable_randomization): ... this.
3119 * linux-low.h (class linux_process_target): Update.
3120 * lynx-low.cc (lynx_target_ops): Update.
3121 * nto-low.cc (nto_target_ops): Update.
3122 * win32-low.cc (win32_target_ops): Update.
3123
345dafad
TBA
31242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3125
3126 Turn process_stratum_target's emit_ops op into a method of
3127 process_target.
3128
3129 * target.h (struct process_stratum_target): Remove the target op.
3130 (class process_target): Add the target op.
3131 (target_emit_ops): Update the macro.
3132 * target.cc (process_target::emit_ops): Define.
3133
3134 Update the derived classes and callers below.
3135
3136 * linux-low.cc (linux_target_ops): Update.
3137 (linux_emit_ops): Turn into ...
3138 (linux_process_target::emit_ops): ... this.
3139 * linux-low.h (class linux_process_target): Update.
3140 * lynx-low.cc (lynx_target_ops): Update.
3141 * nto-low.cc (nto_target_ops): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3143
c23c9391
TBA
31442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3145
3146 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3147 and get_min_fast_tracepoint_insn_len ops into methods of
3148 process_target.
3149
3150 * target.h (struct process_stratum_target): Remove the target ops.
3151 (class process_target): Add the target ops. Also add
3152 'supports_fast_tracepoints'.
3153 (target_supports_fast_tracepoints): Update the macro.
3154 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3155 (install_fast_tracepoint_jump_pad): Update and rename the macro
3156 to ...
3157 (target_install_fast_tracepoint_jump_pad): ... this.
3158 * target.cc (process_target::supports_fast_tracepoints): Define.
3159 (process_target::install_fast_tracepoint_jump_pad): Define.
3160 (process_target::get_min_fast_tracepoint_insn_len): Define.
3161
3162 Update the derived classes and callers below.
3163
3164 * tracepoint.cc (install_fast_tracepoint): Update.
3165 * linux-low.cc (linux_target_ops): Update.
3166 (linux_process_target::supports_fast_tracepoints): Define.
3167 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3168 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3169 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3170 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3171 * linux-low.h (class linux_process_target): Update.
3172 * lynx-low.cc (lynx_target_ops): Update.
3173 * nto-low.cc (nto_target_ops): Update.
3174 * win32-low.cc (win32_target_ops): Update.
3175
5c9eb2f2
TBA
31762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3177
3178 Turn process_stratum_target's stabilize_threads op into a
3179 method of process_target.
3180
3181 * target.h (struct process_stratum_target): Remove the target op.
3182 (class process_target): Add the target op.
3183 (target_stabilize_threads): Update the macro.
3184 * target.cc (process_target::stabilize_threads): Define.
3185
3186 Update the derived classes and callers below.
3187
3188 * server.cc (handle_status): Update.
3189 * tracepoint.cc (cmd_qtdp): Update.
3190 (cmd_qtstart): Update.
3191 * linux-low.cc (linux_target_ops): Update.
3192 (linux_stabilize_threads): Turn into ...
3193 (linux_process_target::stabilize_threads): ... this.
3194 (linux_wait_1): Update.
3195 * linux-low.h (class linux_process_target): Update.
3196 * lynx-low.cc (lynx_target_ops): Update.
3197 * nto-low.cc (nto_target_ops): Update.
3198 * win32-low.cc (win32_target_ops): Update.
3199
29e8dc09
TBA
32002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3201
3202 Turn process_stratum_target's pause_all and unpause_all ops
3203 into methods of process_target.
3204
3205 * target.h (struct process_stratum_target): Remove the target ops.
3206 (class process_target): Add the target ops.
3207 (pause_all): Update the macro and rename to...
3208 (target_pause_all): ... this.
3209 (unpause_all): Update the macro and rename to...
3210 (target_unpause_all): ... this.
3211 * target.cc (process_target::pause_all): Define.
3212 (process_target::unpause_all): Define.
3213
3214 Update the derived classes and callers below.
3215
3216 * server.cc (handle_status): Update.
3217 * tracepoint.cc (clear_installed_tracepoints): Update.
3218 (cmd_qtdp): Update.
3219 (cmd_qtstart): Update.
3220 (stop_tracing): Update.
3221 (cmd_qtstatus): Update.
3222 (upload_fast_traceframes): Update.
3223 (run_inferior_command): Update.
3224 * linux-low.cc (linux_target_ops): Update.
3225 (linux_pause_all): Turn into ...
3226 (linux_process_target::pause_all): ... this.
3227 (linux_unpause_all): Turn into ...
3228 (linux_process_target::unpause_all): ... this.
3229 (linux_process_target::prepare_to_access_memory): Update.
3230 (linux_process_target::done_accessing_memory): Update.
3231 * linux-low.h (class linux_process_target): Update.
3232 * lynx-low.cc (lynx_target_ops): Update.
3233 * nto-low.cc (nto_target_ops): Update.
3234 * win32-low.cc (win32_target_ops): Update.
3235
4e2e869c
TBA
32362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3237
3238 Turn process_stratum_target's get_tib_address op into a method of
3239 process_target.
3240
3241 * target.h (struct process_stratum_target): Remove the target op.
3242 (class process_target): Add the target op. Also add
3243 'supports_get_tib_address'.
3244 * target.cc (process_target::get_tib_address): Define.
3245 (process_target::supports_get_tib_address): Define.
3246
3247 Update the derived classes and callers below.
3248
3249 * server.cc (handle_query): Update.
3250 * linux-low.cc (win32_target_ops): Update.
3251 * lynx-low.cc (lynx_target_ops): Update.
3252 * nto-low.cc (nto_target_ops): Update.
3253 * win32-low.cc (win32_target_ops): Update.
3254 (win32_process_target::supports_get_tib_address): Define.
3255 (win32_get_tib_address): Turn into ...
3256 (win32_process_target::get_tib_address): ... this.
3257 * win32-low.h (class win32_process_target): Update.
3258
68119632
TBA
32592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3260
3261 Turn process_stratum_target's thread_stopped op into a method of
3262 process_target.
3263
3264 * target.h (struct process_stratum_target): Remove the target op.
3265 (class process_target): Add the target op. Also add
3266 'supports_thread_stopped'.
3267 (target_thread_stopped): Update the macro.
3268 * target.cc (process_target::thread_stopped): Define.
3269 (process_target::supports_thread_stopped): Define.
3270 (prepare_to_access_memory): Update.
3271
3272 Update the derived classes and callers below.
3273
3274 * server.cc (queue_stop_reply_callback): Update.
3275 * linux-low.cc (linux_target_ops): Update.
3276 (linux_process_target::supports_thread_stopped): Define.
3277 (linux_thread_stopped): Turn into ...
3278 (linux_process_target::thread_stopped): ... this.
3279 * linux-low.h (class linux_process_target): Update.
3280 * lynx-low.cc (lynx_target_ops): Update.
3281 * nto-low.cc (nto_target_ops): Update.
3282 * win32-low.cc (win32_target_ops): Update.
3283
770d8f6a
TBA
32842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3285
3286 Turn process_stratum_target's read_pc and write_pc ops into
3287 methods of process_target.
3288
3289 * target.h (struct process_stratum_target): Remove the target ops.
3290 (class process_target): Add the target ops.
3291 * target.cc (process_target::read_pc): Define.
3292 (process_target::write_pc): Define.
3293
3294 Update the derived classes and callers below.
3295
3296 * regcache.cc (regcache_read_pc): Update.
3297 (regcache_write_pc): Update.
3298 * linux-low.cc (linux_target_ops): Update.
3299 (linux_read_pc): Turn into ...
3300 (linux_process_target::read_pc): ... this.
3301 (linux_write_pc): Turn into ...
3302 (linux_process_target::write_pc): ... this.
3303 * linux-low.h (class linux_process_target): Update.
3304 * lynx-low.cc (lynx_target_ops): Update.
3305 * nto-low.cc (nto_target_ops): Update.
3306 * win32-low.cc (win32_target_ops): Update.
3307
290732bf
TBA
33082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3309
3310 Turn process_stratum_target's supports_tracepoints op into a
3311 method of process_target.
3312
3313 * target.h (struct process_stratum_target): Remove the target op.
3314 (class process_target): Add the target op.
3315 (target_supports_tracepoints): Update the macro.
3316 * target.cc (process_target::supports_tracepoints): Define.
3317
3318 Update the derived classes and callers below.
3319
3320 * linux-low.cc (linux_target_ops): Update.
3321 (linux_supports_tracepoints): Turn into ...
3322 (linux_process_target::supports_tracepoints): ... this.
3323 * linux-low.h (class linux_process_target): Update.
3324 * lynx-low.cc (lynx_target_ops): Update.
3325 * nto-low.cc (nto_target_ops): Update.
3326 * win32-low.cc (win32_target_ops): Update.
3327
0df28b1b
TBA
33282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3329
3330 Turn process_stratum_target's process_qsupported op into a method
3331 of process_target.
3332
3333 * target.h (struct process_stratum_target): Remove the target op.
3334 (class process_target): Add the target op.
3335 (target_process_qsupported): Update the macro.
3336 * target.cc (process_target::process_qsupported): Define.
3337
3338 Update the derived classes and callers below.
3339
3340 * linux-low.cc (linux_target_ops): Update.
3341 (linux_process_qsupported): Turn into ...
3342 (linux_process_target::process_qsupported): ... this.
3343 * linux-low.h (class linux_process_target): Update.
3344 * lynx-low.cc (lynx_target_ops): Update.
3345 * nto-low.cc (nto_target_ops): Update.
3346 * win32-low.cc (win32_target_ops): Update.
3347
9da41fda
TBA
33482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3349
3350 Turn process_stratum_target's read_loadmap op into a method of
3351 process_target.
3352
3353 * target.h (struct process_stratum_target): Remove the target op.
3354 (class process_target): Add the target op. Also add
3355 'supports_read_loadmap'.
3356 * target.cc (process_target::read_loadmap): Define.
3357 (process_target::supports_read_loadmap): Define.
3358
3359 Update the derived classes and callers below.
3360
3361 * server.cc (handle_qxfer_fdpic): Update.
3362 (handle_query): Update.
3363 * linux-low.cc (linux_target_ops): Update.
3364 (linux_process_target::supports_read_loadmap): Define.
3365 (linux_read_loadmap): Turn into ...
3366 (linux_process_target::read_loadmap): ... this.
3367 * linux-low.h (class linux_process_target): Update.
3368 * lynx-low.cc (lynx_target_ops): Update.
3369 * nto-low.cc (nto_target_ops): Update.
3370 * win32-low.cc (win32_target_ops): Update.
3371
95a45fc1
TBA
33722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3373
3374 Turn process_stratum_target's core_of_thread op into a method of
3375 process_target.
3376
3377 * target.h (struct process_stratum_target): Remove the target op.
3378 (class process_target): Add the target op.
3379 (target_core_of_thread): Update the macro.
3380 * target.cc (process_target::core_of_thread): Define.
3381
3382 Update the derived classes and callers below.
3383
3384 * linux-low.cc (linux_target_ops): Update.
3385 (linux_process_target::core_of_thread): Define.
3386 * linux-low.h (class linux_process_target): Update.
3387 * lynx-low.cc (lynx_target_ops): Update.
3388 * nto-low.cc (nto_target_ops): Update.
3389 * win32-low.cc (win32_target_ops): Update.
3390
55cf3021
TBA
33912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3392
3393 Turn process_stratum_target's handle_monitor_command op into a
3394 method of process_target.
3395
3396 * target.h (struct process_stratum_target): Remove the target op.
3397 (class process_target): Add the target op.
3398 (target_handle_monitor_command): Update the macro.
3399 * target.cc (process_target::handle_monitor_command): Define.
3400
3401 Update the derived classes and callers below.
3402
3403 * server.cc (handle_query): Update.
3404 * linux-low.cc (linux_target_ops): Update.
3405 (linux_process_target::handle_monitor_command): Define.
3406 * linux-low.h (class linux_process_target): Update.
3407 * lynx-low.cc (lynx_target_ops): Update.
3408 * nto-low.cc (nto_target_ops): Update.
3409 * win32-low.cc (win32_target_ops): Update.
3410
fb00dfce
TBA
34112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3412
3413 Turn process_stratum_target's handle_new_gdb_connection op into a
3414 method of process_target.
3415
3416 * target.h (struct process_stratum_target): Remove the target op.
3417 (class process_target): Add the target op.
3418 (target_handle_new_gdb_connection): Update the macro.
3419 * target.cc (process_target::handle_new_gdb_connection): Define.
3420
3421 Update the derived classes and callers below.
3422
3423 * linux-low.cc (linux_target_ops): Update.
3424 (linux_handle_new_gdb_connection): Turn into ...
3425 (linux_process_target::handle_new_gdb_connection): ... this.
3426 * linux-low.h (class linux_process_target): Update.
3427 * lynx-low.cc (lynx_target_ops): Update.
3428 * nto-low.cc (nto_target_ops): Update.
3429 * win32-low.cc (win32_target_ops): Update.
3430
9690a72a
TBA
34312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3432
3433 Turn process_stratum_target's supports_fork_events,
3434 supports_vfork_events, and supports_exec_events ops into methods
3435 of process_target.
3436
3437 * target.h (struct process_stratum_target): Remove the target ops.
3438 (class process_target): Add the target ops.
3439 (target_supports_fork_events): Update the macro.
3440 (target_supports_vfork_events): Update the macro.
3441 (target_supports_exec_events): Update the macro.
3442 * target.cc (process_target::supports_fork_events): Define.
3443 (process_target::supports_vfork_events): Define.
3444 (process_target::supports_exec_events): Define.
3445
3446 Update the derived classes and callers below.
3447
3448 * linux-low.cc (linux_target_ops): Update.
3449 (linux_supports_fork_events): Turn into ...
3450 (linux_process_target::supports_fork_events): ... this.
3451 (linux_supports_vfork_events): Turn into ...
3452 (linux_process_target::supports_vfork_events): ... this.
3453 (linux_supports_exec_events): Turn into ...
3454 (linux_process_target::supports_exec_events): ... this.
3455 * linux-low.h (class linux_process_target): Update.
3456 * lynx-low.cc (lynx_target_ops): Update.
3457 * nto-low.cc (nto_target_ops): Update.
3458 * win32-low.cc (win32_target_ops): Update.
3459
652aef77
TBA
34602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3461
3462 Turn process_stratum_target's supports_multi_process op into a
3463 method of process_target.
3464
3465 * target.h (struct process_stratum_target): Remove the target op.
3466 (class process_target): Add the target op.
3467 * target.cc (process_target::supports_multi_process): Define.
3468 (target_supports_multi_process): Update.
3469
3470 Update the derived classes and callers below.
3471
3472 * linux-low.cc (linux_target_ops): Update.
3473 (linux_supports_multi_process): Turn into ...
3474 (linux_process_target::supports_multi_process): ... this.
3475 * linux-low.h (class linux_process_target): Update.
3476 * lynx-low.cc (lynx_target_ops): Update.
3477 * nto-low.cc (nto_target_ops): Update.
3478 * win32-low.cc (win32_target_ops): Update.
3479
0dc587d4
TBA
34802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3481
3482 Turn process_stratum_target's supports_non_stop, async, and
3483 start_non_stop ops into methods of process_target.
3484
3485 * target.h (struct process_stratum_target): Remove the target ops.
3486 (class process_target): Add the target ops.
3487 (target_supports_non_stop): Update the macro.
3488 (target_async): Update the macro.
3489 (start_non_stop): Remove declaration.
3490 * target.cc (process_target::supports_non_stop): Define.
3491 (process_target::async): Define.
3492 (process_target::start_non_stop): Define.
3493 (start_non_stop): Remove.
3494
3495 Update the derived classes and callers below.
3496
3497 * server.cc (handle_qxfer_siginfo): Update.
3498 (handle_query): Update.
3499 * linux-low.cc (linux_target_ops): Update.
3500 (linux_supports_non_stop): Turn into ...
3501 (linux_process_target::supports_non_stop): ... this.
3502 (linux_async): Turn into ...
3503 (linux_process_target::async): ... this.
3504 (linux_start_non_stop): Turn into ...
3505 (linux_process_target::start_non_stop): ... this.
3506 * linux-low.h (class linux_process_target): Update.
3507 * lynx-low.cc (lynx_target_ops): Update.
3508 * nto-low.cc (nto_target_ops): Update.
3509 (nto_supports_non_stop): Remove; rely on the default behavior
3510 instead.
3511 * win32-low.cc (win32_target_ops): Update.
3512
d7abedf7
TBA
35132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3514
3515 Turn process_stratum_target's qxfer_siginfo op into a method of
3516 process_target.
3517
3518 * target.h (struct process_stratum_target): Remove the target op.
3519 (class process_target): Add the target op. Also add
3520 'supports_qxfer_siginfo'.
3521 * target.cc (process_target::qxfer_siginfo): Define.
3522 (process_target::supports_qxfer_siginfo): Define.
3523
3524 Update the derived classes and callers below.
3525
3526 * server.cc (handle_qxfer_siginfo): Update.
3527 (handle_query): Update.
3528 * linux-low.cc (linux_target_ops): Update.
3529 (linux_process_target::supports_qxfer_siginfo): Define.
3530 (linux_xfer_siginfo): Turn into ...
3531 (linux_process_target::qxfer_siginfo): ... this.
3532 * linux-low.h (class linux_process_target): Update.
3533 * lynx-low.cc (lynx_target_ops): Update.
3534 * nto-low.cc (nto_target_ops): Update.
3535 * win32-low.cc (win32_target_ops): Update.
3536
2d0795ee
TBA
35372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3538
3539 Turn process_stratum_target's qxfer_osdata op into a method of
3540 process_target.
3541
3542 * target.h (struct process_stratum_target): Remove the target op.
3543 (class process_target): Add the target op. Also add
3544 'supports_qxfer_osdata'.
3545 * target.cc (process_target::qxfer_osdata): Define.
3546 (process_target::supports_qxfer_osdata): Define.
3547
3548 Update the derived classes and callers below.
3549
3550 * server.cc (handle_qxfer_osdata): Update.
3551 (handle_query): Update.
3552 * linux-low.cc (linux_target_ops): Update.
3553 (linux_process_target::supports_qxfer_osdata): Define.
3554 (linux_qxfer_osdata): Turn into ...
3555 (linux_process_target::qxfer_osdata): ... this.
3556 * linux-low.h (class linux_process_target): Update.
3557 * lynx-low.cc (lynx_target_ops): Update.
3558 * nto-low.cc (nto_target_ops): Update.
3559 * win32-low.cc (win32_target_ops): Update.
3560
ea06bbaa
TBA
35612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3562
3563 Turn process_stratum_target's hostio_last_error op into a
3564 method of process_target.
3565
3566 * target.h (struct process_stratum_target): Remove the target op.
3567 (class process_target): Add the target op.
3568 * target.cc: Add "hostio.h" to includes.
3569 (process_target::hostio_last_error): Define.
3570
3571 Update the derived classes and callers below.
3572
3573 * hostio.cc (hostio_error): Update.
3574 * linux-low.cc: Remove "hostio.h" from includes.
3575 (linux_target_ops): Update.
3576 * lynx-low.cc (lynx_target_ops): Update.
3577 * nto-low.cc (nto_target_ops): Update.
3578 * win32-low.h (class win32_process_target): Update.
3579 * win32-low.cc (win32_target_ops): Update.
3580 (wince_hostio_last_error): Turn into ...
3581 (win32_process_target::hostio_last_error): ... this.
3582
6e3fd7e9
TBA
35832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3584
3585 Turn process_stratum_target's get_tls_address op into a method of
3586 process_target.
3587
3588 * target.h (struct process_stratum_target): Remove the target op.
3589 (class process_target): Add the target op. Also add
3590 'supports_get_tls_address'.
3591 * target.cc (process_target::get_tls_address): Define.
3592 (process_target::supports_get_tls_address): Define.
3593
3594 Update the derived classes and callers below.
3595
3596 * server.cc (handle_query): Update.
3597 * linux-low.cc (linux_target_ops): Update.
3598 (linux_process_target::supports_get_tls_address): Define.
3599 (linux_process_target::get_tls_address): Define.
3600 * linux-low.h (class linux_process_target): Update.
3601 * lynx-low.cc (lynx_target_ops): Update.
3602 * nto-low.cc (nto_target_ops): Update.
3603 * win32-low.cc (win32_target_ops): Update.
3604
5203ae1e
TBA
36052020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3606
3607 Turn process_stratum_target's read_offsets op into a method of
3608 process_target.
3609
3610 * target.h (struct process_stratum_target): Remove the target op.
3611 (class process_target): Add the target op. Also add
3612 'supports_read_offsets'.
3613 * target.cc (process_target::read_offsets): Define.
3614 (process_target::supports_read_offsets): Define.
3615
3616 Update the derived classes and callers below.
3617
3618 * server.cc (handle_query): Update.
3619 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3620 (linux_target_ops): Update.
3621 (linux_process_target::supports_read_offsets): Define.
3622 (linux_read_offsets): Turn into ...
3623 (linux_process_target::read_offsets): ... this.
3624 * linux-low.h (class linux_process_target): Update.
3625 * lynx-low.cc (lynx_target_ops): Update.
3626 * nto-low.cc (nto_target_ops): Update.
3627 * win32-low.cc (win32_target_ops): Update.
3628
6eeb5c55
TBA
36292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3630
3631 Turn process_stratum_target's stopped_by_watchpoint and
3632 stopped_data_address ops into methods of process_target.
3633
3634 * target.h (struct process_stratum_target): Remove the target ops.
3635 (class process_target): Add the target ops.
3636 * target.cc (process_target::stopped_by_watchpoint): Define.
3637 (process_target::stopped_data_address): Define.
3638
3639 Update the derived classes and callers below.
3640
3641 * remote-utils.cc (prepare_resume_reply): Update.
3642 * linux-low.cc (linux_target_ops): Update.
3643 (linux_stopped_by_watchpoint): Turn into ...
3644 (linux_process_target::stopped_by_watchpoint): ... this.
3645 (linux_stopped_data_address): Turn into ...
3646 (linux_process_target::stopped_data_address): ... this.
3647 * linux-low.h (class linux_process_target): Update.
3648 * lynx-low.cc (lynx_target_ops): Update.
3649 * nto-low.cc (nto_target_ops): Update.
3650 (nto_stopped_by_watchpoint): Turn into ...
3651 (nto_process_target::stopped_by_watchpoint): ... this.
3652 (nto_stopped_data_address): Turn into ...
3653 (nto_process_target::stopped_data_address): ... this.
3654 * nto-low.h (class nto_process_target): Update.
3655 * win32-low.cc (win32_target_ops): Update.
3656 (win32_stopped_by_watchpoint): Turn into ...
3657 (win32_process_target::stopped_by_watchpoint): ... this.
3658 (win32_stopped_data_address): Turn into ...
3659 (win32_process_target::stopped_data_address): ... this.
3660 * win32-low.h (class win32_process_target): Update.
3661
22aa6223
TBA
36622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3663
3664 Turn process_stratum_target's supports_hardware_single_step op into
3665 a method of process_target.
3666
3667 * target.h (struct process_stratum_target): Remove the target op.
3668 (class process_target): Add the target op.
3669 (target_supports_hardware_single_step): Update the macro.
3670 (target_can_do_hardware_single_step): Remove declaration.
3671 * target.cc (process_target::supports_hardware_single_step): Define.
3672 (target_can_do_hardware_single_step): Remove.
3673
3674 Update the derived classes and callers below.
3675
3676 * linux-low.h (class linux_process_target): Update.
3677 * linux-low.cc (linux_target_ops): Update.
3678 (linux_supports_hardware_single_step): Turn into ...
3679 (linux_process_target::supports_hardware_single_step): ... this.
3680 * lynx-low.h (class lynx_process_target): Update.
3681 * lynx-low.cc (lynx_target_ops): Update.
3682 (lynx_process_target::supports_hardware_single_step): Define.
3683 * nto-low.h (class nto_process_target): Update.
3684 * nto-low.cc (nto_target_ops): Update.
3685 (nto_process_target::supports_hardware_single_step): Define.
3686 * win32-low.h (class win32_process_target): Update.
3687 * win32-low.cc (win32_target_ops): Update.
3688 (win32_process_target::supports_hardware_single_step): Define.
3689
93fe88b2
TBA
36902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3691
3692 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3693 ops into methods of process_target.
3694
3695 * target.h (struct process_stratum_target): Remove the target ops.
3696 (class process_target): Add the target ops.
3697 (target_stopped_by_hw_breakpoint): Update the macro.
3698 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3699 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3700 (process_target::supports_stopped_by_hw_breakpoint): Define.
3701
3702 Update the derived classes and callers below.
3703
3704 * linux-low.cc (linux_target_ops): Update.
3705 (linux_stopped_by_hw_breakpoint): Turn into ...
3706 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3707 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3708 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3709 * linux-low.h (class linux_process_target): Update.
3710 * lynx-low.cc (lynx_target_ops): Update.
3711 * nto-low.cc (nto_target_ops): Update.
3712 * win32-low.cc (win32_target_ops): Update.
3713
84320c4e
TBA
37142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3715
3716 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3717 ops into methods of process_target.
3718
3719 * target.h (struct process_stratum_target): Remove the target ops.
3720 (class process_target): Add the target ops.
3721 (target_stopped_by_sw_breakpoint): Update the macro.
3722 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3723 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3724 (process_target::supports_stopped_by_sw_breakpoint): Define.
3725
3726 Update the derived classes and callers below.
3727
3728 * linux-low.cc (linux_target_ops): Update.
3729 (linux_stopped_by_sw_breakpoint): Turn into ...
3730 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3731 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3732 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3733 * linux-low.h (class linux_process_target): Update.
3734 * lynx-low.cc (lynx_target_ops): Update.
3735 * nto-low.cc (nto_target_ops): Update.
3736 * win32-low.cc (win32_target_ops): Update.
3737
7e0bde70
TBA
37382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3739
3740 Turn process_stratum_target's insert_point and remove_point ops
3741 into methods of process_target.
3742
3743 * target.h (struct process_stratum_target): Remove the target ops.
3744 (class process_target): Add the target ops.
3745 * target.cc (process_target::insert_point): Define.
3746 (process_target::remove_point): Define.
3747
3748 Update the derived classes and callers below.
3749
3750 * mem-break.cc (set_raw_breakpoint_at): Update.
3751 (delete_raw_breakpoint): Update.
3752 (uninsert_raw_breakpoint): Update.
3753 (reinsert_raw_breakpoint): Update.
3754 * linux-low.cc (linux_target_ops): Update.
3755 (linux_insert_point): Turn into ...
3756 (linux_process_target::insert_point): ... this.
3757 (linux_remove_point): Turn into ...
3758 (linux_process_target::remove_point): ... this.
3759 * linux-low.h (class linux_process_target): Update.
3760 * lynx-low.cc (lynx_target_ops): Update.
3761 * nto-low.cc (nto_target_ops): Update.
3762 (nto_insert_point): Turn into ...
3763 (nto_process_target::insert_point): ... this.
3764 (nto_remove_point): Turn into ...
3765 (nto_process_target::remove_point): ... this.
3766 * nto-low.h (class nto_process_target): Update.
3767 * win32-low.cc (win32_target_ops): Update.
3768 (win32_insert_point): Turn into ...
3769 (win32_process_target::insert_point): ... this.
3770 (win32_remove_point): Turn into ...
3771 (win32_process_target::remove_point): ... this.
3772 * win32-low.h (class win32_process_target): Update.
3773
a2b2297a
TBA
37742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3775
3776 Turn process_stratum_target's supports_z_point_type op into a
3777 method of process_target.
3778
3779 * target.h (struct process_stratum_target): Remove the target op.
3780 (class process_target): Add the target op.
3781 * target.cc (process_target::supports_z_point_type): Define.
3782
3783 Update the derived classes and callers below.
3784
3785 * mem-break.cc (z_type_supported): Update.
3786 * linux-low.cc (linux_target_ops): Update.
3787 (linux_supports_z_point_type): Turn into ...
3788 (linux_process_target::supports_z_point_type): ... this.
3789 * linux-low.h (class linux_process_target): Update.
3790 * lynx-low.cc (lynx_target_ops): Update.
3791 * nto-low.cc (nto_target_ops): Update.
3792 (nto_supports_z_point_type): Turn into ...
3793 (nto_process_target::supports_z_point_type): ... this.
3794 * nto-low.h (class nto_process_target): Update.
3795 * win32-low.cc (win32_target_ops): Update.
3796 (win32_supports_z_point_type): Turn into ...
3797 (win32_process_target::supports_z_point_type): ... this.
3798 * win32-low.h (class win32_process_target): Update.
3799
eac215cc
TBA
38002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3801
3802 Turn process_stratum_target's read_auxv op into a method of
3803 process_target.
3804
3805 * target.h (class process_stratum_target): Remove the target op.
3806 (struct process_target): Add the target op. Also add
3807 'supports_read_auxv'.
3808 * target.cc (process_target::read_auxv): Define.
3809 (process_target::supports_read_auxv): Define.
3810
3811 Update the derived classes and callers below.
3812
3813 * server.cc (handle_qxfer_auxv): Update.
3814 (handle_query): Update.
3815 * linux-low.cc (linux_target_ops): Update.
3816 (linux_process_target::supports_read_auxv): Define.
3817 (linux_read_auxv): Turn into ...
3818 (linux_process_target::read_auxv): ... this.
3819 * linux-low.h (class linux_process_target): Update.
3820 * lynx-low.cc (lynx_target_ops): Update.
3821 * nto-low.cc (nto_target_ops): Update.
3822 (nto_process_target::supports_read_auxv): Define.
3823 (nto_read_auxv): Turn into ...
3824 (nto_process_target::read_auxv): ... this.
3825 * nto-low.h (class nto_process_target): Update.
3826 * win32-low.cc (win32_target_ops): Update.
3827
eb497a2a
TBA
38282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3829
3830 Turn process_stratum_target's request_interrupt op into a method of
3831 process_target.
3832
3833 * target.h (struct process_stratum_target): Remove the target op.
3834 (class process_target): Add the target op.
3835
3836 Update the derived classes and callers below.
3837
3838 * remote-utils.cc (putpkt_binary_1): Update.
3839 (input_interrupt): Update.
3840 (getpkt): Update.
3841 * server.cc (handle_v_requests): Update.
3842 * linux-low.cc (linux_target_ops): Update.
3843 (linux_request_interrupt): Turn into ...
3844 (linux_process_target::request_interrupt): ... this.
3845 * linux-low.h (class linux_process_target): Update.
3846 * lynx-low.cc (lynx_target_ops): Update.
3847 (lynx_request_interrupt): Turn into ...
3848 (lynx_process_target::request_interrupt): ... this.
3849 * lynx-low.h (class lynx_process_target): Update.
3850 * nto-low.cc (nto_target_ops): Update.
3851 (nto_request_interrupt): Turn into ...
3852 (nto_process_target::request_interrupt): ... this.
3853 * nto-low.h (class nto_process_target): Update.
3854 * win32-low.cc (win32_target_ops): Update.
3855 (win32_request_interrupt): Turn into ...
3856 (win32_process_target::request_interrupt): ... this.
3857 * win32-low.h (class win32_process_target): Update.
3858
2a31c7aa
TBA
38592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3860
3861 Turn process_stratum_target's look_up_symbols op into a method of
3862 process_target.
3863
3864 * target.h (struct process_stratum_target): Remove the target op.
3865 (class process_target): Add the target op.
3866 * target.cc (process_target::look_up_symbols): Define.
3867
3868 Update the derived classes and callers below.
3869
3870 * server.cc (handle_query): Update.
3871 * linux-low.cc (linux_target_ops): Update.
3872 (linux_look_up_symbols): Turn into ...
3873 (linux_process_target::look_up_symbols): ... this.
3874 * linux-low.h (class linux_process_target): Update.
3875 * lynx-low.cc (lynx_target_ops): Update.
3876 * nto-low.cc (nto_target_ops): Update.
3877 * win32-low.cc (win32_target_ops): Update.
3878
e2558df3
TBA
38792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3880
3881 Turn process_stratum_target's read_memory and write_memory
3882 ops into methods of process_target.
3883
3884 * target.h (struct process_stratum_target): Remove the target ops.
3885 (class process_target): Add the target ops.
3886
3887 Update the derived classes and callers below.
3888
3889 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3890 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3891 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3892 (arm_get_syscall_trapinfo): Update.
3893 * linux-cris-low.cc (cris_breakpoint_at): Update.
3894 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3895 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3896 * linux-mips-low.cc (mips_breakpoint_at): Update.
3897 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3898 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3899 * linux-sh-low.cc (sh_breakpoint_at): Update.
3900 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3901 (sparc_store_gregset_from_stack): Update.
3902 (sparc_breakpoint_at): Update.
3903 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3904 * linux-tile-low.cc (tile_breakpoint_at): Update.
3905 * linux-x86-low.cc (x86_breakpoint_at): Update.
3906 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3907 * mem-brea.cc (insert_memory_breakpoint): Update.
3908 (validate_inserted_breakpoint): Update.
3909 * target.cc (read_inferior_memory): Update.
3910 (target_write_memory): Update.
3911 * linux-low.cc (linux_target_ops): Update.
3912 (linux_read_memory): Make a wrapper around the read_memory target
3913 op call.
3914 (linux_process_target::read_memory): Rename from linux_read_memory.
3915 (linux_write_memory): Turn into ...
3916 (linux_process_target::write_memory): ... this.
3917 * linux-low.h (class linux_process_target): Update.
3918 * lynx-low.cc (lynx_target_ops): Update.
3919 (lynx_read_memory): Turn into ...
3920 (lynx_process_target::read_memory): ... this.
3921 (lynx_write_memory): Turn into ...
3922 (lynx_process_target::write_memory): ... this.
3923 * lynx-low.h (class lynx_process_target): Update.
3924 * nto-low.cc (nto_target_ops): Update.
3925 (nto_read_memory): Turn into ...
3926 (nto_process_target::read_memory): ... this.
3927 (nto_write_memory): Turn into ...
3928 (nto_process_target::write_memory): ... this.
3929 * nto-low.h (class nto_process_target): Update.
3930 * win32-low.cc (win32_target_ops): Update.
3931 (win32_read_inferior_memory): Turn into ...
3932 (win32_process_target::read_memory): ... this.
3933 (win32_write_inferior_memory): Turn into ...
3934 (win32_process_target::write_memory): ... this.
3935 * win32-low.h (class win32_process_target): Update.
3936
79b44087
TBA
39372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3938
3939 Turn process_stratum_target's prepare_to_access_memory and
3940 done_accessing_memory ops into methods of process_target.
3941
3942 * target.h (struct process_stratum_target): Remove the target ops.
3943 (class process_target): Add the target ops.
3944 * target.cc (process_target::prepare_to_access_memory): Define.
3945 (process_target::done_accessing_memory): Define.
3946 (prepare_to_access_memory): Update.
3947 (done_accessing_memory): Update.
3948
3949 Update the derived classes and callers below.
3950
3951 * linux-low.cc (linux_target_ops): Update.
3952 (linux_prepare_to_access_memory): Turn into ...
3953 (linux_process_target::prepare_to_access_memory): ... this.
3954 (linux_done_accessing_memory): Turn into ...
3955 (linux_process_target::done_accessing_memory): ... this.
3956 * linux-low.h (class linux_process_target): Update.
3957 * lynx-low.cc (lynx_target_ops): Update.
3958 * nto-low.cc (nto_target_ops): Update.
3959 * win32-low.cc (win32_target_ops): Update.
3960
a5a4d4cd
TBA
39612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3962
3963 Turn process_stratum_target's fetch_registers and store_registers
3964 ops into methods of process_target.
3965
3966 * target.h (struct process_stratum_target): Remove the target ops.
3967 (class process_target): Add the target ops.
3968 (fetch_inferior_registers): Update the macro.
3969 (store_inferior_registers): Update the macro.
3970
3971 Update the derived classes and callers below.
3972
3973 * linux-low.cc (linux_target_ops): Update.
3974 (linux_fetch_registers): Turn into ...
3975 (linux_process_target::fetch_registers): ... this.
3976 (linux_store_registers): Turn into ...
3977 (linux_process_target::store_registers): ... this.
3978 * linux-low.h (class linux_process_target): Update.
3979 * lynx-low.cc (lynx_target_ops): Update.
3980 (lynx_fetch_registers): Turn into ...
3981 (lynx_process_target::fetch_registers): ... this.
3982 (lynx_store_registers): Turn into ...
3983 (lynx_process_target::store_registers): ... this.
3984 * lynx-low.h (class lynx_process_target): Update.
3985 * nto-low.cc (nto_target_ops): Update.
3986 (nto_fetch_registers): Turn into ...
3987 (nto_process_target::fetch_registers): ... this.
3988 (nto_store_registers): Turn into ...
3989 (nto_process_target::store_registers): ... this.
3990 * nto-low.h (class nto_process_target): Update.
3991 * win32-low.cc (win32_target_ops): Update.
3992 (win32_fetch_inferior_registers): Turn into ...
3993 (win32_process_target::fetch_registers): ... this.
3994 (win32_store_inferior_registers): Turn into ...
3995 (win32_process_target::store_registers): ... this.
3996 * win32-low.h (class win32_process_target): Update.
3997
6532e7e3
TBA
39982020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3999
4000 Turn process_stratum_target's wait op into a method of
4001 process_target.
4002
4003 * target.h (struct process_stratum_target): Remove the target op.
4004 (class process_target): Add the target op.
4005
4006 Update the derived classes and callers below.
4007
4008 * target.cc (target_wait): Update.
4009 * linux-low.cc (linux_target_ops): Update.
4010 (linux_wait): Turn into ...
4011 (linux_process_target::wait): ... this.
4012 * linux-low.h (class linux_process_target): Update.
4013 * lynx-low.cc (lynx_target_ops): Update.
4014 (lynx_wait): Turn into ...
4015 (lynx_process_target::wait): ... this.
4016 * lynx-low.h (class lynx_process_target): Update.
4017 * nto-low.cc (nto_target_ops): Update.
4018 (nto_wait): Turn into ...
4019 (nto_process_target::wait): ... this.
4020 * nto-low.h (class nto_process_target): Update.
4021 * win32-low.cc (win32_target_ops): Update.
4022 (win32_wait): Turn into ...
4023 (win32_process_target::wait): ... this.
4024 (do_initial_child_stuff): Update.
4025 * win32-low.h (class win32_process_target): Update.
4026
0e4d7e35
TBA
40272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4028
4029 Turn process_stratum_target's resume op into a method of
4030 process_target.
4031
4032 * target.h (struct process_stratum_target): Remove the target op.
4033 (class process_target): Add the target op.
4034
4035 Update the derived classes and callers below.
4036
4037 * server.cc (resume): Update.
4038 * target.cc (target_stop_and_wait): Update.
4039 (target_continue_no_signal): Update.
4040 (target_continue): Update.
4041 * linux-low.cc (linux_target_ops): Update.
4042 (linux_resume): Turn into ...
4043 (linux_process_target::resume): ... this.
4044 * linux-low.h (class linux_process_target): Update.
4045 * lynx-low.cc (lynx_target_ops): Update.
4046 (lynx_resume): Turn into ...
4047 (lynx_process_target::resume): ... this.
4048 * lynx-low.h (class lynx_process_target): Update.
4049 * nto-low.cc (nto_target_ops): Update.
4050 (nto_resume): Turn into ...
4051 (nto_process_target::resume): ... this.
4052 * nto-low.h (class nto_process_target): Update.
4053 * win32-low.cc (win32_target_ops): Update.
4054 (win32_resume): Turn into ...
4055 (win32_process_target::resume): ... this.
4056 (win32_process_target::detach): Update.
4057 (do_initial_child_stuff): Update.
4058 * win32-low.h (class win32_process_target): Update.
4059
13d3d99b
TBA
40602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4061
4062 Turn process_stratum_target's thread_alive op into a method of
4063 process_target.
4064
4065 * target.h (struct process_stratum_target): Remove the target op.
4066 (class process_target): Add the target op.
4067 (mythread_alive): Update the macro.
4068
4069 Update the derived classes and callers below.
4070
4071 * linux-low.cc (linux_target_ops): Update.
4072 (linux_thread_alive): Turn into ...
4073 (linux_process_target::thread_alive): ... this.
4074 (wait_for_sigstop): Update.
4075 * linux-low.h (class linux_process_target): Update.
4076 * lynx-low.cc (lynx_target_ops): Update.
4077 (lynx_thread_alive): Turn into ...
4078 (lynx_process_target::thread_alive): ... this.
4079 * lynx-low.h (class lynx_process_target): Update.
4080 * nto-low.cc (nto_target_ops): Update.
4081 (nto_thread_alive): Turn into ...
4082 (nto_process_target::thread_alive): ... this.
4083 * nto-low.h (class nto_process_target): Update.
4084 * win32-low.cc (win32_target_ops): Update.
4085 (win32_thread_alive): Turn into ...
4086 (win32_process_target::thread_alive): ... this.
4087 * win32-low.h (class win32_process_target): Update.
4088
95a49a39
TBA
40892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4090
4091 Turn process_stratum_target's join op into a method of
4092 process_target.
4093
4094 * target.h (struct process_stratum_target): Remove the target op.
4095 (class process_target): Add the target op.
4096 (join_inferior): Update the macro.
4097
4098 Update the derived classes and callers below.
4099
4100 * linux-low.cc (linux_target_ops): Update.
4101 (linux_join): Turn into ...
4102 (linux_process_target::join): ... this.
4103 * linux-low.h (class linux_process_target): Update.
4104 * lynx-low.cc (lynx_target_ops): Update.
4105 (lynx_join): Turn into ...
4106 (lynx_process_target::join): ... this.
4107 * lynx-low.h (class lynx_process_target): Update.
4108 * nto-low.cc (nto_target_ops): Update.
4109 (nto_process_target::join): Define.
4110 * nto-low.h (class nto_process_target): Update.
4111 * win32-low.cc (win32_target_ops): Update.
4112 (win32_join): Turn into ...
4113 (win32_process_target::join): ... this.
4114 * win32-low.h (class win32_process_target): Update.
4115
8adb37b9
TBA
41162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4117
4118 Turn process_stratum_target's mourn op into a method of
4119 process_target.
4120
4121 * target.h (struct process_stratum_target): Remove the target op.
4122 (class process_target): Add the target op.
4123
4124 Update the derived classes and callers below.
4125
4126 * target.cc (target_mourn_inferior): Update.
4127 * linux-low.cc (linux_target_ops): Update.
4128 (linux_mourn): Turn into ...
4129 (linux_process_target::mourn): ... this.
4130 (handle_extended_wait): Update.
4131 (linux_process_target::kill): Update.
4132 (linux_process_target::detach): Update.
4133 * linux-low.h (class linux_process_target): Update.
4134 * lynx-low.cc (lynx_target_ops): Update.
4135 (lynx_mourn): Turn into ...
4136 (lynx_process_target::mourn): ... this.
4137 * lynx-low.h (class lynx_process_target): Update.
4138 * nto-low.cc (nto_target_ops): Update.
4139 (nto_mourn): Turn into ...
4140 (nto_process_target::mourn): ... this.
4141 * nto-low.h (class nto_process_target): Update.
4142 * win32-low.cc (win32_target_ops): Update.
4143 (win32_mourn): Turn into ...
4144 (win32_process_target::mourn): ... this.
4145 * win32-low.h (class win32_process_target): Update.
4146
9061c9cf
TBA
41472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4148
4149 Turn process_stratum_target's detach op into a method of
4150 process_target.
4151
4152 * target.h (struct process_stratum_target): Remove the target op.
4153 (class process_target): Add the target op.
4154 (detach_inferior): Update the macro.
4155
4156 Update the derived classes and callers below.
4157
4158 * linux-low.cc (linux_target_ops): Update.
4159 (linux_detach): Turn into ...
4160 (linux_process_target::detach): ... this.
4161 * linux-low.h (class linux_process_target): Update.
4162 * lynx-low.cc (lynx_target_ops): Update.
4163 (lynx_detach): Turn into ...
4164 (lynx_process_target::detach): ... this.
4165 * lynx-low.h (class lynx_process_target): Update.
4166 * nto-low.cc (nto_target_ops): Update.
4167 (nto_detach): Turn into ...
4168 (nto_process_target::detach): ... this.
4169 * nto-low.h (class nto_process_target): Update.
4170 * win32-low.cc (win32_target_ops): Update.
4171 (win32_detach): Turn into ...
4172 (win32_process_target::detach): ... this.
4173 * win32-low.h (class win32_process_target): Update.
4174
c6885a57
TBA
41752020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4176
4177 Turn process_stratum_target's kill op into a method of
4178 process_target.
4179
4180 * target.h (struct process_stratum_target): Remove the target op.
4181 (class process_target): Add the target op.
4182
4183 Update the derived classes and callers below.
4184
4185 * target.cc (kill_inferior): Update.
4186 * linux-low.cc (linux_target_ops): Update.
4187 (linux_kill): Turn into ...
4188 (linux_process_target::kill): ... this.
4189 * linux-low.h (class linux_process_target): Update.
4190 * lynx-low.cc (lynx_target_ops): Update.
4191 (lynx_kill): Turn into ...
4192 (lynx_process_target::kill): ... this.
4193 * lynx-low.h (class lynx_process_target): Update.
4194 * nto-low.cc (nto_target_ops): Update.
4195 (nto_kill): Turn into ...
4196 (nto_process_target::kill): ... this.
4197 * nto-low.h (class nto_process_target): Update.
4198 * win32-low.cc (win32_target_ops): Update.
4199 (win32_kill): Turn into ...
4200 (win32_process_target::kill): ... this.
4201 * win32-low.h (class win32_process_target): Update.
4202
ef03dad8
TBA
42032020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4204
4205 Turn process_stratum_target's attach op into a method of
4206 process_target.
4207
4208 * target.h (struct process_stratum_target): Remove the target op.
4209 (class process_target): Add the target op.
4210 (myattach): Update the macro.
4211
4212 Update the derived classes and callers below.
4213
4214 * linux-low.cc (linux_target_ops): Update.
4215 (linux_attach): Turn into ...
4216 (linux_process_target::attach): ... this.
4217 * linux-low.h (class linux_process_target): Update.
4218 * lynx-low.cc (lynx_target_ops): Update.
4219 (lynx_attach): Turn into ...
4220 (lynx_process_target::attach): ... this.
4221 * lynx-low.h (class lynx_process_target): Update.
4222 * nto-low.cc (nto_target_ops): Update.
4223 (nto_attach): Turn into ...
4224 (nto_process_target::attach): ... this.
4225 * nto-low.h (class nto_process_target): Update.
4226 * win32-low.cc (win32_target_ops): Update.
4227 (win32_attach): Turn into ...
4228 (win32_process_target::attach): ... this.
4229 * win32-low.h (class win32_process_target): Update.
4230
6dee9afb
TBA
42312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4232
4233 Turn process_stratum_target's post_create_inferior op into a method
4234 of process_target.
4235
4236 * target.h (struct process_stratum_target): Remove the target op.
4237 (class process_target): Add the target op.
4238 (target_post_create_inferior): Update the macro.
4239 * target.cc (process_target::post_create_inferior): Define.
4240
4241 Update the derived classes and callers below.
4242
4243 * linux-low.cc (linux_target_ops): Update.
4244 (linux_post_create_inferior): Turn into ...
4245 (linux_process_target::post_create_inferior): ... this.
4246 * linux-low.h (class linux_process_target): Update.
4247 * lynx-low.cc (lynx_target_ops): Update.
4248 * nto-low.cc (nto_target_ops): Update.
4249 * win32-low.cc (win32_target_ops): Update.
4250
15295543
TBA
42512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4252
4253 Turn process_stratum_target's create_inferior op into a method of
4254 process_target.
4255
4256 * target.h (struct process_stratum_target): Remove the target op.
4257 (class process_target): Add the target op.
4258 (create_inferior): Rename the macro to ...
4259 (target_create_inferior): ... this.
4260
4261 Update the derived classes and callers below.
4262
4263 * server.cc (handle_v_run): Update.
4264 (captured_main): Update.
4265 (process_serial_event): Update.
4266 * linux-low.cc (linux_target_ops): Update.
4267 (linux_create_inferior): Turn into ...
4268 (linux_process_target::create_inferior): ... this.
4269 * linux-low.h (class linux_process_target): Update.
4270 * lynx-low.cc (lynx_target_ops): Update.
4271 (lynx_create_inferior): Turn into ...
4272 (lynx_process_target::create_inferior): ... this.
4273 * lynx-low.h (class lynx_process_target): Update.
4274 * nto-low.cc (nto_target_ops): Update.
4275 (nto_create_inferior): Turn into ...
4276 (nto_process_target::create_inferior): ... this.
4277 * nto-low.h (class nto_process_target): Update.
4278 * win32-low.cc (win32_target_ops): Update.
4279 (win32_create_inferior): Turn into ...
4280 (win32_process_target::create_inferior): ... this.
4281 * win32-low.h (class win32_process_target): Update.
4282
5ef9273d
TBA
42832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4284
4285 * target.h (class process_target): New class definition.
4286 (struct process_stratum_target) <pt>: New field with type
4287 'process_target*'.
4288 * linux-low.h (class linux_process_target): Define as a derived
4289 class of 'process_target'.
4290 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4291 as the 'pt' field.
4292 * lynx-low.h (class lynx_process_target): Define as a derived
4293 class of 'process_target'.
4294 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4295 as the 'pt' field.
4296 * nto-low.h (class nto_process_target): Define as a derived
4297 class of 'process_target'.
4298 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4299 as the 'pt' field.
4300 * win32-low.h (class win32_process_target): Define as a derived
4301 class of 'process_target'.
4302 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4303 as the 'pt' field.
4304
9f1528a1
AB
43052020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4306
4307 * configure: Regenerate.
4308
bf84f706
MR
43092020-02-19 Maciej W. Rozycki <macro@wdc.com>
4310 Andrew Burgess <andrew.burgess@embecosm.com>
4311
4312 * linux-riscv-low.cc: New file.
4313 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4314 and nat/riscv-linux-tdesc.c.
4315 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4316 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4317 Define.
4318
1a627e7e
TT
43192020-02-14 Tom Tromey <tom@tromey.com>
4320
4321 * acinclude.m4: Don't include acx_configure_dir.m4.
4322 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4323 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4324 (all, install-only, uninstall, clean-info, clean)
4325 (maintainer-clean): Don't recurse.
4326 (subdir_do, all-lib): Remove.
4327 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4328 (GNULIB_H): Remove.
4329 (generated_files): Update.
4330 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4331 * configure: Rebuild.
4332 * configure.ac: Don't configure gnulib or libiberty.
4333 (GNULIB): Update.
4334
a9b34532
EZ
43352020-02-14 Eli Zaretskii <eliz@gnu.org>
4336
4337 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4338 preparing the command line for CreateProcess.
4339 (win32_create_inferior): Reflect the program name in debugging
4340 output that shows the process and its command line.
4341
feacfcac
SM
43422020-02-13 Simon Marchi <simon.marchi@efficios.com>
4343
4344 * Makefile.in: Rename source files from .c to .cc.
4345 * %.c: Rename to %.cc.
4346 * configure.ac: Rename server.c to server.cc.
4347 * configure: Re-generate.
4348
06b3c5bd
SM
43492020-02-13 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4352
052793ad
HD
43532020-02-12 Hannes Domani <ssbssa@yahoo.de>
4354
4355 * win32-low.c (win32_create_inferior): Set signal_pid.
4356
f20e3e82
MR
43572020-02-12 Maciej W. Rozycki <macro@wdc.com>
4358 Pedro Alves <palves@redhat.com>
4359
4360 Skip building gdbserver in a cross-configuration.
4361 * configure.srv: Set $gdbserver_host depending on whether $target
4362 is $host. Use $gdbserver_host instead of $host.
4363
8ddd8e0e
SM
43642020-02-11 Simon Marchi <simon.marchi@efficios.com>
4365
4366 * configure: Re-generate.
4367
898e7f60
SM
43682020-02-11 Simon Marchi <simon.marchi@efficios.com>
4369
4370 * configure: Re-generate.
4371
58df732b
SM
43722020-02-11 Simon Marchi <simon.marchi@efficios.com>
4373
4374 * acinclude.m4: Update warning.m4 path.
4375
7928d571
HD
43762020-02-09 Hannes Domani <ssbssa@yahoo.de>
4377
4378 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4379 (handle_exception): Set siginfo_er.
4380 (win32_xfer_siginfo): New function.
4381
919adfe8
TT
43822020-02-07 Tom Tromey <tom@tromey.com>
4383 Pedro Alves <palves@redhat.com>
4384
4385 * README: Update build documentation.
4386 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4387 host, not target.
4388 * configure.ac: Update paths.
4389 * configure: Rebuild.
4390 * acinclude.m4: Update paths.
4391 * Makefile.in: Update include paths.
4392 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4393 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4394 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4395 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4396 (%-generated.c): Update paths.
4397 * Move entire directory from ../gdb/gdbserver.
4398
287c844a
MR
43992020-01-29 Maciej W. Rozycki <macro@wdc.com>
4400
4401 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4402
548a204f
PFC
44032020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4404
4405 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4406 assignment instead of srv_linux_obj.
4407
a2236a08
HD
44082020-01-28 Hannes Domani <ssbssa@yahoo.de>
4409
4410 * server.c (handle_qxfer_libraries): Write segment-address with
4411 paddress.
4412
bdaed379
HD
44132020-01-24 Hannes Domani <ssbssa@yahoo.de>
4414
4415 * Makefile.in (install-strip): New target.
4416 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4417 * aclocal.m4: Regenerate.
4418 * configure: Regenerate.
4419 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4420
42cd72aa
MR
44212020-01-24 Maciej W. Rozycki <macro@wdc.com>
4422
4423 * Makefile.in (SFILES): Adjust paths to point to real files.
4424 (OBS): Move waitstatus.o to target/waitstatus.o.
4425 (TAGS): Transform paths appropriately.
4426 (%.o): Rename to...
4427 (nat/%.o): ... this pattern rule.
4428 (%.o): Rename to...
4429 (target/%.o): ... this pattern rule.
4430 * configure.srv: Adjust paths throughout to include nat/ prefix
4431 with the revant files.
4432 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4433 * configure: Regenerate.
4434
42ba50ec
MR
44352020-01-24 Maciej W. Rozycki <macro@wdc.com>
4436
4437 * Makefile.in (TAGS): Remove config files from the recipe.
4438
05ea2a05
TT
44392020-01-14 Tom Tromey <tom@tromey.com>
4440
4441 * configure: Rebuild.
4442 * configure.ac: Remove any checks that were added to common.m4.
4443 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4444 lib-link.m4.
4445
01027315
TT
44462020-01-14 Tom Tromey <tom@tromey.com>
4447
4448 * server.h: Include config.h.
4449 * gdbreplay.c: Include config.h.
4450 * configure: Rebuild.
4451 * configure.ac: Don't source common.host.
4452 * acinclude.m4: Update path.
4453 * Makefile.in (INCSUPPORT): New variable.
4454 (INCLUDE_CFLAGS): Add INCSUPPORT.
4455 (SFILES): Update paths.
4456 (version-generated.c): Update path to create-version.sh.
4457 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4458
b2ceabe8
TT
44592020-01-14 Tom Tromey <tom@tromey.com>
4460
4461 * configure.ac (LIBS): Use WIN32APILIBS.
4462 (USE_WIN32API): Don't define.
4463 * configure: Rebuild.
4464
25c51f71
TT
44652020-01-14 Tom Tromey <tom@tromey.com>
4466
4467 * configure: Rebuild.
4468
c0bd321d
SM
44692020-01-13 Simon Marchi <simon.marchi@efficios.com>
4470
4471 * Makefile.in (%-generated.c): Remove rule for files from
4472 regformats/i386.
4473
bb564c58
SM
44742020-01-13 Simon Marchi <simon.marchi@efficios.com>
4475
4476 * configure: Re-generate.
4477
6e37c371
SM
44782020-01-13 Simon Marchi <simon.marchi@efficios.com>
4479
4480 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4481 Define to static.
4482 * tracepoint.c (stop_tracing, flush_trace_buffer,
4483 about_to_request_buffer_space, get_trace_state_variable_value,
4484 set_trace_state_variable_value, gdb_collect): Add declaration.
4485
df4a0200
SM
44862020-01-13 Simon Marchi <simon.marchi@efficios.com>
4487
4488 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4489 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4490 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4491 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4492 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4493 static.
4494
89e94ec9
SM
44952020-01-13 Simon Marchi <simon.marchi@efficios.com>
4496
4497 * inferiors.c: Include gdbsupport/common-inferior.h.
4498
2552728a
SM
44992020-01-13 Simon Marchi <simon.marchi@efficios.com>
4500
4501 * hostio-errno.c: Include hostio.h.
4502
4025fa09
SM
45032020-01-13 Simon Marchi <simon.marchi@efficios.com>
4504
4505 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4506 prerequisite.
4507
c0b0a142
SM
45082020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4509
4510 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4511 * linux-arm-tdesc.h: Include arch/arm.h.
4512
bb1183e2
SM
45132020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4514
4515 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4516
f5df0b5f
SM
45172020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4518
4519 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4520 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4521
5b6d1e4f
PA
45222020-01-10 Pedro Alves <palves@redhat.com>
4523
4524 * fork-child.c (post_fork_inferior): Pass target down to
4525 startup_inferior.
4526 * inferiors.c (switch_to_thread): Add process_stratum_target
4527 parameter.
4528 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4529 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4530 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4531 * remote-utils.c (prepare_resume_reply): Pass the target to
4532 switch_to_thread.
4533 * target.c (the_target): Now a process_stratum_target.
4534 (done_accessing_memory): Pass the target to switch_to_thread.
4535 (set_target_ops): Ajust to use process_stratum_target.
4536 * target.h (struct target_ops): Rename to ...
4537 (struct process_stratum_target): ... this.
4538 (the_target, set_target_ops): Adjust.
4539 (prepare_to_access_memory): Adjust comment.
4540 * win32-low.c (child_xfer_memory): Adjust to use
4541 process_stratum_target.
4542 (win32_target_ops): Now a process_stratum_target.
4543
559e7e50
EZ
45442020-01-06 Eli Zaretskii <eliz@gnu.org>
4545 Pedro Alves <palves@redhat.com>
4546
4547 * win32-low.c (get_child_debug_event): Extract the fatal exception
4548 from the exit status and convert to the equivalent Posix signal
4549 number.
4550 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4551 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4552
48189bec
HD
45532020-01-01 Hannes Domani <ssbssa@yahoo.de>
4554
4555 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4556
5dd8bf88
JB
45572020-01-01 Joel Brobecker <brobecker@adacore.com>
4558
4559 * server.c (gdbserver_version): Change copyright year to 2020.
4560 * gdbreplay.c (gdbreplay_version): Likewise.
4561
0ad6b8ee
CB
45622019-12-19 Christian Biesinger <cbiesinger@google.com>
4563
4564 * configure: Regenerate.
4565 * configure.ac: Quote variable arguments of test.
4566
1ee7b812
BE
45672019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4568
4569 * Makefile.in: Fix build with GNU Make 3.81
4570
d9fa87f4
TT
45712019-12-16 Tom Tromey <tromey@adacore.com>
4572
4573 * server.c (get_exec_file): Constify result.
4574
ab7d13f0
CB
45752019-12-10 Christian Biesinger <cbiesinger@google.com>
4576
4577 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4578 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4579 * config.in: Regenerate.
4580 * configure: Regenerate.
4581 * configure.ac: Don't check for strerror.
4582 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4583 Call safe_strerror instead of strerror.
4584 * server.h (strerror): Remove this now-unnecessary declaration.
4585 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4586 strerror.
4587 (gdb_agent_helper_thread): Likewise.
4588 * utils.c (perror_with_name): Likewise.
4589
4da8c3a8
TT
45902019-11-26 Tom Tromey <tom@tromey.com>
4591
4592 * configure, config.in: Rebuild.
4593
21987b9c
TT
45942019-11-26 Tom Tromey <tom@tromey.com>
4595
4596 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4597 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4598 gdb_sigmask.
4599 * configure, config.in: Rebuild.
4600
5e030278
TT
46012019-11-26 Tom Tromey <tom@tromey.com>
4602
4603 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4604 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4605 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4606 * acinclude.m4: Include ax_pthread.m4.
4607 * config.in, configure: Rebuild.
4608
6d91ce9a
CB
46092019-11-26 Christian Biesinger <cbiesinger@google.com>
4610
4611 * debug.c (debug_set_output): Call safe_strerror instead of
4612 strerror.
4613 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4614 (linux_kill_one_lwp): Likewise.
4615 (linux_detach_one_lwp): Likewise.
4616 (linux_wait_for_event_filtered): Likewise.
4617 (store_register): Likewise.
4618 * lynx-low.c (lynx_attach): Likewise.
4619 * mem-break.c (insert_memory_breakpoint): Likewise.
4620 (remove_memory_breakpoint): Likewise.
4621 (delete_fast_tracepoint_jump): Likewise.
4622 (set_fast_tracepoint_jump): Likewise.
4623 (uninsert_fast_tracepoint_jumps_at): Likewise.
4624 (reinsert_fast_tracepoint_jumps_at): Likewise.
4625 * nto-low.c (nto_xfer_memory): Likewise.
4626 (nto_resume): Likewise.
4627
6cdd651f
LM
46282019-11-20 Luis Machado <luis.machado@linaro.org>
4629
4630 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4631 instead of register count.
4632 * tdesc.c (tdesc_contains_feature): New function.
4633 * tdesc.h (tdesc_contains_feature): New prototype.
4634
cd850b40
CB
46352019-11-15 Christian Biesinger <cbiesinger@google.com>
4636
4637 * Makefile.in: Add safe-strerror.c.
4638 * configure: Regenerate.
4639 * configure.ac: Don't source common.host.
4640
5abebf3c
CB
46412019-11-15 Christian Biesinger <cbiesinger@google.com>
4642
4643 * config.in: Regenerate.
4644 * configure: Regenerate.
4645
e06f3d6e
AB
46462019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4647
4648 * ax.c (ax_printf): Handle size_t_arg.
4649
ca3a04f6
CB
46502019-11-06 Christian Biesinger <cbiesinger@google.com>
4651
4652 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4653 * mi/mi-main.c (output_cores): Likewise.
4654 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4655 (linux_xfer_osdata_modules): Likewise.
4656 * remote.c (register_remote_support_xml): Likewise.
4657 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4658 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4659
e48f6033
CB
46602019-11-01 Christian Biesinger <cbiesinger@google.com>
4661
4662 * configure: Regenerate.
4663 * configure.ac: Remove check for strerror_r.
4664
e7e97a2e
CB
46652019-10-31 Christian Biesinger <cbiesinger@google.com>
4666
4667 * config.in: Regenerate.
4668 * configure: Regenerate.
4669 * configure.ac: Also check for strerror_r.
4670
75cafaa6
CB
46712019-10-31 Christian Biesinger <cbiesinger@google.com>
4672
4673 * ax.h (debug_agent): Remove duplicate declaration.
4674
30baf67b
TV
46752019-10-26 Tom de Vries <tdevries@suse.de>
4676
4677 * linux-aarch64-low.c: Fix typos in comments.
4678 * linux-arm-low.c: Same.
4679 * linux-low.c: Same.
4680 * linux-ppc-low.c: Same.
4681 * proc-service.c: Same.
4682 * regcache.h: Same.
4683 * server.c: Same.
4684 * tracepoint.c: Same.
4685 * win32-low.c: Same.
4686
52c64cf7
TT
46872019-10-25 Tom Tromey <tromey@adacore.com>
4688
4689 * utils.c (xstrdup): Remove.
4690
c12d372d
TT
46912019-10-23 Tom Tromey <tom@tromey.com>
4692
4693 * configure, config.in: Rebuild.
4694
4d0b984b
TT
46952019-10-23 Tom Tromey <tom@tromey.com>
4696
4697 * configure: Rebuild.
4698 * acinclude.m4: Use m4_include, not sinclude.
4699
c5adaa19
TT
47002019-10-17 Tom Tromey <tromey@adacore.com>
4701
4702 * configure: Rebuild.
4703 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4704 in AC_CONFIG_FILES invocation.
4705 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4706 invocation.
4707
fec4e896
CB
47082019-10-16 Christian Biesinger <cbiesinger@google.com>
4709
4710 * server.c: Include xml-builtin.h.
4711 (get_xml_features): Don't declare xml_builtins here.
4712
00975ff6
AB
47132019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4714
4715 * Makefile.in: Remove references to vec-ipa.o.
4716
0dc32745
AB
47172019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4718
4719 * Makefile.in: Remove references to vec.c.
4720
3e6ec53a
CB
47212019-10-02 Christian Biesinger <cbiesinger@google.com>
4722
4723 * server.c (server_waiting): Change to bool.
4724 (extended_protocol): Likewise.
4725 (response_needed): Likewise.
4726 (exit_requested): Likewise.
4727 (run_once): Likewise.
4728 (report_no_resumed): Likewise.
4729 (non_stop): Likewise.
4730 (disable_packet_vCont): Likewise.
4731 (disable_packet_Tthread): Likewise.
4732 (disable_packet_qC): Likewise.
4733 (disable_packet_qfThreadInfo): Likewise.
4734 (handle_general_set): Update.
4735 (handle_detach): Update.
4736 (handle_monitor_command): Update.
4737 (handle_query): Update.
4738 (captured_main): Update.
4739 (process_serial_event): Update.
4740 * server.h (server_waiting): Change to bool.
4741 (disable_packet_vCont): Likewise.
4742 (disable_packet_Tthread): Likewise.
4743 (disable_packet_qC): Likewise.
4744 (disable_packet_qfThreadInfo): Likewise.
4745 (run_once): Likewise.
4746 (non_stop): Likewise.
4747 * target.c (target_stop_and_wait): Update.
4748
80fd2826
TT
47492019-10-02 Tom Tromey <tromey@adacore.com>
4750
4751 * Makefile.in (SFILES): Add common-inferior.c.
4752 (OBS): Add common-inferior.o.
4753 * server.c (startup_with_shell): Don't define.
4754
46f29a9a
AB
47552019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4756
4757 * linux-low.c (linux_low_read_btrace): Update for change to
4758 std::vector.
4759
f9d949fb
CB
47602019-09-20 Christian Biesinger <cbiesinger@google.com>
4761
4762 * debug.c (debug_threads): Remove comment in favor of the header.
4763 * debug.h (using_threads): Add declaration.
4764 (debug_threads): Add comment.
4765 * linux-aarch64-low.c: Include debug.h and remove declaration of
4766 debug_threads.
4767 * nto-low.c: Likewise.
4768 * remote-utils.c: Likewise.
4769 * thread-db.c: Likewise.
4770
abf516c6
UW
47712019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4772
4773 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4774 and powerpc-cell64l-ipa.o.
4775 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4776 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4777 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4778 (spu*-*-*): Remove.
4779
4780 * spu-low.c: Remove file.
4781
4782 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4783 (parse_spufs_run): Remove.
4784 (ppc_get_pc): Remove Cell/B.E. support.
4785 (ppc_set_pc): Likewise.
4786 (ppc_breakpoint_at): Likewise.
4787 (ppc_arch_setup): Likewise.
4788 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4789 tdesc_powerpc_cell32l.
4790 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4791 or init_registers_powerpc_cell32l.
4792 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4793 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4794 or init_registers_powerpc_cell32l.
4795 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4796 (init_registers_powerpc_cell32l): Remove prototype.
4797 (init_registers_powerpc_cell64l): Likewise.
4798
4799 * target.h (struct target_ops): Remove qxfer_spu member.
4800 * server.c (handle_qxfer_spu): Remove.
4801 (qxfer_packets): Remove entry for "spu".
4802 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4803 * linux-low.c (SPUFS_MAGIC): Remove.
4804 (spu_enumerate_spu_ids): Remove.
4805 (linux_qxfer_spu): Remove.
4806 (linux_target_ops): Remove qxfer_spu member.
4807 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4808 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4809 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4810
2d41fa11
SDJ
48112019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4812
4813 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4814 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4815 * config.in: Regenerate.
4816 * configure: Regenerate.
4817
d59b55f0
TT
48182019-08-15 Tom Tromey <tromey@adacore.com>
4819
4820 * target.c (target_write_memory): Use gdb::byte_vector.
4821
4196ab2a
TT
48222019-08-15 Tom Tromey <tromey@adacore.com>
4823
4824 * tracepoint.c (write_inferior_data_pointer)
4825 (write_inferior_integer, write_inferior_int8)
4826 (write_inferior_uinteger, m_tracepoint_action_download)
4827 (r_tracepoint_action_download, x_tracepoint_action_download)
4828 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4829 (download_agent_expr, download_tracepoint_1)
4830 (download_trace_state_variables, upload_fast_traceframes): Update.
4831 * server.c (gdb_write_memory): Update.
4832 * remote-utils.c (relocate_instruction): Update.
4833 * proc-service.c (ps_pdwrite): Update.
4834 * mem-break.c (remove_memory_breakpoint)
4835 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4836 (uninsert_fast_tracepoint_jumps_at)
4837 (reinsert_fast_tracepoint_jumps_at): Update.
4838 * linux-x86-low.c (append_insns)
4839 (i386_install_fast_tracepoint_jump_pad)
4840 (amd64_write_goto_address, i386_write_goto_address): Update.
4841 * linux-s390-low.c (append_insns, s390_write_goto_address):
4842 Update.
4843 * linux-ppc-low.c (ppc_relocate_instruction)
4844 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4845 (ppc_write_goto_address): Update.
4846 * linux-aarch64-low.c (append_insns): Update.
4847 * target.h (struct target_ops): Update.
4848 (write_inferior_memory): Don't declare.
4849 * target.c (target_write_memory): Rename from
4850 write_inferior_memory. Remove old target_write_memory.
4851
c6778d00
TT
48522019-08-15 Tom Tromey <tromey@adacore.com>
4853
4854 * target.c (write_inferior_memory): Use std::vector.
4855
404f2902
FCE
48562019-08-06 Frank Ch. Eigler <fche@redhat.com>
4857
4858 PR build/24886
4859 * configure.ac: Drop enable-libmcheck support.
4860 * configure, config.in: Rebuild.
4861 * acinclude.m4: Don't include it.
4862
4c5aa8e0
AH
48632019-07-19 Alan Hayward <alan.hayward@arm.com>
4864
4865 * configure.srv: Remove Arm xml files.
4866
7cc17433
AH
48672019-07-19 Alan Hayward <alan.hayward@arm.com>
4868
4869 * configure.srv: Add new files. Remove xml generated files.
4870 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4871 registers.
4872 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4873 * linux-aarch32-tdesc.c: New file.
4874 * linux-aarch32-tdesc.h: New file.
4875 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4876 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4877 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4878 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4879 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4880 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4881 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4882 (arm_read_description): Call arm_linux_read_description.
4883 (initialize_low_arch): Don't init registers.
4884 * linux-arm-tdesc.c: New file.
4885 * linux-arm-tdesc.h: New file.
4886
166a82be
AH
48872019-07-10 Alan Hayward <alan.hayward@arm.com>
4888
4889 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4890 Move counter inside for.
4891 (arm_read_description): Check ptrace earlier.
4892 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4893
268a13a5
TT
48942019-07-09 Tom Tromey <tom@tromey.com>
4895
4896 * configure: Rebuild.
4897 * configure.ac: Change common to gdbsupport.
4898 * acinclude.m4: Change common to gdbsupport.
4899 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4900 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4901 common to gdbsupport.
4902 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4903 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4904 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4905 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4906 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4907 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4908 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4909 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4910 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4911 common to gdbsupport.
4912
350fab54
AH
49132019-07-04 Alan Hayward <alan.hayward@arm.com>
4914
4915 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4916 defines.
4917 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4918
2b40fda7
AH
49192019-07-04 Alan Hayward <alan.hayward@arm.com>
4920
4921 * configure.srv: Remove legacy xml.
4922 * linux-aarch64-low.c (initialize_low_arch): Remove
4923 initialize_low_tdesc call.
4924 * linux-aarch64-tdesc-selftest.c: Remove file.
4925 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4926 * linux-x86-low.c (initialize_low_arch): Remove
4927 initialize_low_tdesc call.
4928 * linux-x86-tdesc-selftest.c: Remove file.
4929 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4930
7d10623d
TV
49312019-06-20 Tom de Vries <tdevries@suse.de>
4932
4933 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4934 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4935
8d6a48df
TV
49362019-06-19 Tom de Vries <tdevries@suse.de>
4937
4938 * debug.h (debug_write): Change return type to ssize_t.
4939 * debug.c (debug_write): Same.
4940
73cc7272
TT
49412019-06-14 Tom Tromey <tom@tromey.com>
4942
4943 * configure.ac: Use new path to gnulib.
4944 * configure: Rebuild.
4945 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4946 to gnulib.
4947
08f10e02
TT
49482019-06-11 Tom Tromey <tom@tromey.com>
4949
4950 * Makefile.in (SFILES): Add alloc.c.
4951 (OBS): Add alloc.o.
4952 (IPA_OBJS): Add alloc-ipa.o.
4953 (alloc-ipa.o): New target.
4954 (%.o: ../%.c): New pattern rule.
4955
422186a9
TT
49562019-06-10 Tom Tromey <tromey@adacore.com>
4957
4958 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4959 end warning with a newline.
4960 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4961 newline.
4962 * thread-db.c (attach_thread): Don't end warning with a newline.
4963 (thread_db_notice_clone): Likewise.
4964 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4965 newline.
4966 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4967 end warning with a newline.
4968
b02f78f9
PA
49692019-06-04 Pedro Alves <palves@redhat.com>
4970
4971 * server.c (captured_main): Use make_unique_xstrdup.
4972
88ed7edb
TT
49732019-06-02 Tom Tromey <tom@tromey.com>
4974
4975 * gdbreplay.c (fromhex): Remove.
4976 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4977
33a6bc35
TT
49782019-05-29 Tom Tromey <tromey@adacore.com>
4979
4980 * configure: Rebuild.
4981
e90a813d
KB
49822019-05-06 Kevin Buettner <kevinb@redhat.com>
4983
4984 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4985 sign extension code on 32-bit builds.
4986
353ea2d1
EZ
49872019-05-03 Eli Zaretskii <eliz@gnu.org>
4988
4989 * remote-utils.c:
4990 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4991
b494cdff
TT
49922019-04-19 Tom Tromey <tom@tromey.com>
4993
4994 * server.c (struct vstop_notif): Derive from notif_event.
4995 <base>: Remove.
4996 (queue_stop_reply): Update.
4997 (remove_all_on_match_ptid): Change type. Rewrite.
4998 (discard_queued_stop_replies): Rewrite.
4999 (in_queued_stop_replies_ptid): Change type.
5000 (in_queued_stop_replies): Rewrite.
5001 (notif_stop): Update.
5002 (queue_stop_reply_callback): Update.
5003 (captured_main): Don't call initialize_notif.
5004 (push_stop_notification): Update.
5005 * notif.c (notif_write_event, handle_notif_ack)
5006 (notif_event_enque, notif_push): Update.
5007 (notif_event_xfree, initialize_notif): Remove.
5008 * notif.h (struct notif_event): Include <list>, not
5009 "common/queue.h".
5010 (struct notif_server) <queue>: Now a std::list.
5011 (notif_event_p): Remove typedef.
5012 (initialize_notif): Don't declare.
5013 (struct notif_event): Add virtual destructor.
5014
a7e559cc
AH
50152019-04-17 Alan Hayward <alan.hayward@arm.com>
5016
5017 * ax.c (ax_vdebug): Call debug_printf.
5018 * debug.c (debug_write): New function.
5019 * debug.h (debug_write): New declaration.
5020 * linux-low.c (sigchld_handler): Call debug_write.
5021
aeb2e706
AH
50222019-04-17 Alan Hayward <alan.hayward@arm.com>
5023
5024 * debug.c (debug_set_output): New function.
5025 (debug_vprintf): Send output to debug_file.
5026 (debug_flush): Likewise.
5027 * debug.h (debug_set_output): New declaration.
5028 * server.c (handle_monitor_command): Add debug-file option.
5029 (captured_main): Likewise.
5030
c1bc0935
AH
50312019-04-17 Alan Hayward <alan.hayward@arm.com>
5032
5033 * debug.c (remote_debug): Add definition.
5034 * debug.h (remote_debug): Add declaration.
5035 * hostio.c (remote_debug): Remove declaration.
5036 * remote-utils.c (struct ui_file): Likewise.
5037 (remote_debug): Likewise.
5038 * remote-utils.h (remote_debug): Likewise,
5039 * server.c (remote_debug): Remove definition.
5040
3f52fdbc
KB
50412019-04-10 Kevin Buettner <kevinb@redhat.com>
5042
5043 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5044 when using a 64-bit gdbserver.
5045
b0319eaa
TT
50462019-04-09 Tom Tromey <tromey@adacore.com>
5047
5048 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5049
eedc3f4f
TT
50502019-04-08 Tom Tromey <tom@tromey.com>
5051
5052 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5053 throw.
5054 (linux_resume_one_lwp): Likewise.
5055
230d2906
TT
50562019-04-08 Tom Tromey <tom@tromey.com>
5057
5058 * gdbreplay.c: Update.
5059 * linux-low.c: Update.
5060 * server.c: Update.
5061
a70b8144
TT
50622019-04-08 Tom Tromey <tom@tromey.com>
5063
5064 * server.c: Use C++ exception handling.
5065 * linux-low.c: Use C++ exception handling.
5066 * gdbreplay.c: Use C++ exception handling.
5067
3d6e9d23
TT
50682019-04-08 Tom Tromey <tom@tromey.com>
5069
5070 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5071 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5072 (captured_main, main): Update.
5073 * gdbreplay.c (main): Update.
5074
0570503d
PFC
50752019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5076
5077 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5078 value in argument pointer, return 1 if the entry is found and 0
5079 otherwise. Move comment.
5080 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5081 * linux-low.h (linux_get_auxv): Declare.
5082 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5083
227a9e65
TT
50842019-04-05 Tom Tromey <tromey@adacore.com>
5085
5086 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5087 variables.
5088
69f4c9cc
AH
50892019-03-28 Alan Hayward <alan.hayward@arm.com>
5090
5091 * linux-low.c (AT_HWCAP2): Add define if not already included.
5092
974c89e0
AH
50932019-03-26 Alan Hayward <alan.hayward@arm.com>
5094
5095 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5096 (aarch64_arch_setup): Call linux_get_hwcap.
5097 * linux-arm-low.c (arm_get_hwcap): Remove function.
5098 (arm_read_description): Call linux_get_hwcap.
5099 * linux-low.c (linux_get_auxv): New function.
5100 (linux_get_hwcap): Likewise.
5101 (linux_get_hwcap2): Likewise.
5102 * linux-low.h (linux_get_hwcap): New declaration.
5103 (linux_get_hwcap2): Likewise.
5104 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5105 (ppc_arch_setup): Call linux_get_hwcap.
5106 * linux-s390-low.c (s390_get_hwcap): Remove function.
5107 (s390_arch_setup): Call linux_get_hwcap.
5108
1ef53e6b
AH
51092019-03-22 Alan Hayward <alan.hayward@arm.com>
5110 Jiong Wang <jiong.wang@arm.com>
5111
5112 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5113 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5114 to fail.
5115 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5116
ee4fbcfa
AH
51172019-03-22 Alan Hayward <alan.hayward@arm.com>
5118 Jiong Wang <jiong.wang@arm.com>
5119
5120 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5121 (aarch64_get_hwcap): New function.
5122 (aarch64_arch_setup): Read APIA hwcap.
5123
6dc0ebde
AH
51242019-03-22 Alan Hayward <alan.hayward@arm.com>
5125 Jiong Wang <jiong.wang@arm.com>
5126
5127 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5128 (initialize_low_tracepoint): Likewise.
5129 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5130 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5131 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5132 (aarch64_linux_read_description): Likewise.
5133 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5134
1163a4b7
JB
51352019-03-12 John Baldwin <jhb@FreeBSD.org>
5136
5137 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5138 i386_create_target_description for 'segments' parameter.
5139 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5140 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5141 * win32-i386-low.c (i386_arch_setup): Likewise.
5142
d3a70e03
TT
51432019-03-12 Tom Tromey <tromey@adacore.com>
5144
5145 * linux-low.c (iterate_over_lwps): Update.
5146
37991b4f
TT
51472019-03-06 Tom Tromey <tom@tromey.com>
5148
5149 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5150 (captured_main): Use SCOPE_EXIT.
5151
45950eb6
SDJ
51522019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5153
5154 * configure.srv: Use '$enable_unittest' instead of '$development'
5155 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5156 case.
5157
43ac54fc
TT
51582019-02-27 Tom Tromey <tromey@adacore.com>
5159
5160 * gdbreplay.c (logchar): Handle \r\n.
5161
df0da8a2
AH
51622019-02-07 Alan Hayward <alan.hayward@arm.com>
5163
5164 * linux-low.c (linux_attach): Add process before lwp.
5165 * server.c (attach_inferior): Check if already attached.
5166
1a5c2598
TT
51672019-02-07 Tom Tromey <tom@tromey.com>
5168
5169 * x86-tdesc.h: Rename include guard.
5170 * x86-low.h: Add include guard.
5171 * wincecompat.h: Rename include guard.
5172 * win32-low.h: Add include guard.
5173 * utils.h: Rename include guard.
5174 * tracepoint.h: Rename include guard.
5175 * tdesc.h: Rename include guard.
5176 * target.h: Rename include guard.
5177 * server.h: Rename include guard.
5178 * remote-utils.h: Rename include guard.
5179 * regcache.h: Rename include guard.
5180 * nto-low.h: Rename include guard.
5181 * notif.h: Add include guard.
5182 * mem-break.h: Rename include guard.
5183 * lynx-low.h: Add include guard.
5184 * linux-x86-tdesc.h: Add include guard.
5185 * linux-s390-tdesc.h: Add include guard.
5186 * linux-ppc-tdesc-init.h: Add include guard.
5187 * linux-low.h: Add include guard.
5188 * linux-aarch64-tdesc.h: Add include guard.
5189 * linux-aarch32-low.h: Add include guard.
5190 * inferiors.h: Rename include guard.
5191 * i387-fp.h: Rename include guard.
5192 * hostio.h: Rename include guard.
5193 * gdbthread.h: Rename include guard.
5194 * gdb_proc_service.h: Rename include guard.
5195 * event-loop.h: Rename include guard.
5196 * dll.h: Rename include guard.
5197 * debug.h: Rename include guard.
5198 * ax.h: Rename include guard.
5199
956cc47c
SN
52002018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5201
5202 PR gdb/23985
5203 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5204 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5205
a0707f3c
TT
52062019-01-25 Tom Tromey <tom@tromey.com>
5207
5208 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5209
0747795c
TT
52102019-01-25 Tom Tromey <tom@tromey.com>
5211
5212 * win32-low.c: Fix common/ includes.
5213 * win32-i386-low.c: Fix common/ includes.
5214 * tracepoint.c: Fix common/ includes.
5215 * thread-db.c: Fix common/ includes.
5216 * target.h: Fix common/ includes.
5217 * symbol.c: Fix common/ includes.
5218 * spu-low.c: Fix common/ includes.
5219 * server.h: Fix common/ includes.
5220 * server.c: Fix common/ includes.
5221 * remote-utils.c: Fix common/ includes.
5222 * regcache.h: Fix common/ includes.
5223 * regcache.c: Fix common/ includes.
5224 * nto-x86-low.c: Fix common/ includes.
5225 * notif.h: Fix common/ includes.
5226 * mem-break.h: Fix common/ includes.
5227 * lynx-low.c: Fix common/ includes.
5228 * lynx-i386-low.c: Fix common/ includes.
5229 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5230 * linux-x86-low.c: Fix common/ includes.
5231 * linux-low.c: Fix common/ includes.
5232 * inferiors.h: Fix common/ includes.
5233 * i387-fp.c: Fix common/ includes.
5234 * hostio.c: Fix common/ includes.
5235 * hostio-errno.c: Fix common/ includes.
5236 * gdbthread.h: Fix common/ includes.
5237 * gdbreplay.c: Fix common/ includes.
5238 * fork-child.c: Fix common/ includes.
5239 * event-loop.c: Fix common/ includes.
5240 * ax.c:
5241 (enum gdb_agent_op): Fix common/ includes.
5242
be6d4f74
TT
52432019-01-21 Tom Tromey <tom@tromey.com>
5244
5245 * tracepoint.c: Fix includes.
5246 * remote-utils.c: Fix includes.
5247 * linux-x86-low.c: Fix includes.
5248
66d91b39
JB
52492019-01-01 Joel Brobecker <brobecker@adacore.com>
5250
5251 * gdbreplay.c (gdbreplay_version): Update copyright year in
5252 version message.
5253 * server.c (gdbserver_version): Likewise.
5254
754e3168
AH
52552018-12-05 Alan Hayward <alan.hayward@arm.com>
5256
5257 * linux-low.c (add_lwp): Switch ordering.
5258
d105de22
TT
52592018-11-29 Tom Tromey <tom@tromey.com>
5260
5261 * win32-low.c (win32_join): Take pid, not process.
5262 * target.h (struct target_ops) <join>: Change argument type.
5263 (join_inferior): Change argument name.
5264 * spu-low.c (spu_join): Take pid, not process.
5265 * server.c (handle_detach): Preserve pid before destroying
5266 process.
5267 * lynx-low.c (lynx_join): Take pid, not process.
5268 * linux-low.c (linux_join): Take pid, not process.
5269
50138245
AH
52702018-11-23 Alan Hayward <alan.hayward@arm.com>
5271
5272 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5273 (aarch64_cannot_fetch_register): Likewise.
5274 (struct linux_target_ops): Update references.
5275
64f57f3d
PFC
52762018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5277
5278 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5279
8d619c01
EBM
52802018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5281
5282 * configure.srv (ipa_ppc_linux_regobj): Add
5283 powerpc-isa207-htm-vsx32l-ipa.o and
5284 powerpc-isa207-htm-vsx64l-ipa.o.
5285 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5286 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5287 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5288 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5289 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5290 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5291 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5292 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5293 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5294 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5295 (init_registers_powerpc_isa207_htm_vsx32l)
5296 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5297 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5298 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5299 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5300 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5301 (ppc_store_tm_ctarregset): New functions.
5302 (ppc_regsets): Add entries for HTM regsets.
5303 (ppc_arch_setup): Set htm in features struct when needed. Set
5304 sizes for the HTM regsets.
5305 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5306 (initialize_low_arch): Call
5307 init_registers_powerpc_isa207_htm_vsx32l and
5308 init_registers_powerpc_isa207_htm_vsx64l.
5309 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5310 PPC_TDESC_ISA207_HTM_VSX.
5311 (initialize_low_tracepoint): Call
5312 init_registers_powerpc_isa207_htm_vsx32l and
5313 init_registers_powerpc_isa207_htm_vsx64l.
5314
232bfb86
EBM
53152018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5316
5317 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5318 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5319 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5320 (ppc_store_pmuregset): New functions.
5321 (ppc_regsets): Add entries for ebb and pmu regsets.
5322 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5323 pmu regsets are available. Set sizes for these regsets.
5324
f2cf6173
EBM
53252018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5326
5327 * configure.srv (ipa_ppc_linux_regobj): Add
5328 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5329 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5330 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5331 rs6000/powerpc-isa207-vsx32l.xml, and
5332 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5333 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5334 <PPC_TDESC_ISA207_VSX>: New enum value.
5335 (init_registers_powerpc_isa207_vsx32l): Declare.
5336 (init_registers_powerpc_isa207_vsx64l): Declare.
5337 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5338 (ppc_store_tarregset): New function.
5339 (ppc_regsets): Add entry for the TAR regset.
5340 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5341 size for the TAR regsets.
5342 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5343 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5344 and init_registers_powerpc_isa207_vsx64l.
5345 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5346 (initialize_low_tracepoint): Call
5347 init_registers_powerpc_isa207_vsx32l and
5348 init_registers_powerpc_isa207_vsx64l.
5349
7ca18ed6
EBM
53502018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5351 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5352
5353 * configure.srv (ipa_ppc_linux_regobj): Add
5354 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5355 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5356 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5357 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5358 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5359 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5360 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5361 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5362 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5363 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5364 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5365 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5366 (ppc_hwcap): Add comment.
5367 (ppc_hwcap2): New global.
5368 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5369 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5370 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5371 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5372 when needed. Set sizes for the the DSCR and PPR regsets.
5373 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5374 (initialize_low_arch): Call
5375 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5376 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5377 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5378 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5379 (initialize_low_tracepoint): Call
5380 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5381 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5382
5c849b22
PFC
53832018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5384
5385 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5386
8ecfd7bd
SDJ
53872018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5388 Simon Marchi <simark@simark.ca>
5389
5390 * acinclude.m4: Include "../selftest.m4".
5391 * configure: Regenerate.
5392 * configure.ac: Use "GDB_AC_SELFTEST".
5393 * configure.srv: Use "$enable_unittests" instead of
5394 "$development" when checking whether unit tests have been
5395 enabled.
5396 * server.c (captured_main): Update message informing that
5397 selftests have been disabled.
5398
96643e35
TT
53992018-10-04 Tom Tromey <tom@tromey.com>
5400
5401 * configure: Rebuild.
5402
da4ae14a
TT
54032018-10-04 Tom Tromey <tom@tromey.com>
5404
5405 * server.c (handle_status): Rename inner "thread".
5406 (process_serial_event): Declare "res" in 'm' case.
5407 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5408 (iterate_over_lwps): Rename inner "thread".
5409 (linux_qxfer_libraries_svr4): Rename inner "len".
5410 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5411
7c619dbd
GB
54122018-10-01 Gary Benson <gbenson@redhat.com>
5413
5414 * gdb_proc_service.h: Moved common code to
5415 common/gdb_proc_service.h.
5416
3795e814
GB
54172018-10-01 Gary Benson <gbenson@redhat.com>
5418
5419 * gdb_proc_service.h: Synchronize comments and whitespace with
5420 GDB's version of this file.
5421
49b036f1
TT
54222018-09-25 Tom Tromey <tom@tromey.com>
5423
5424 * configure: Rebuild.
5425 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5426
8ff03f0b
SM
54272018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5428
5429 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5430 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5431 ($(IPA_LIB)): Sort IPA_OBJS.
5432
a1cd91dc
SM
54332018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5434
5435 * Makefile.in: Remove references to $(ADD_DEPS).
5436
752312ba
TT
54372018-09-16 Tom Tromey <tom@tromey.com>
5438
5439 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5440 variables.
5441 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5442 variables.
5443
f1628857
TT
54442018-09-05 Tom Tromey <tom@tromey.com>
5445
5446 * configure: Rebuild.
5447
ad202fcc
SM
54482018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5449
5450 PR build/23399
5451 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5452
d3d8724a
TT
54532018-08-27 Tom Tromey <tom@tromey.com>
5454
5455 PR build/23087:
5456 * configure: Rebuild.
5457
b4f183d2
TT
54582018-08-27 Tom Tromey <tom@tromey.com>
5459
5460 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5461 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5462 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5463 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5464 (s390x_emit_stack_adjust): Add casts to unsigned char.
5465
4e2aa472
SM
54662018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5467
5468 PR gdb/23374
5469 PR gdb/23375
5470 * server.h (struct client_state) <disable_randomization>:
5471 Initialize to 1.
5472
cf4088a9
SM
54732018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5474
5475 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5476 variable.
5477 (mips_supply_ptrace_register): Likewise.
5478
a0de763e
TT
54792018-07-22 Tom Tromey <tom@tromey.com>
5480
5481 * configure: Rebuild.
5482
b0a7723d
TT
54832018-07-22 Tom Tromey <tom@tromey.com>
5484
5485 * win32-low.c (win32_create_inferior): Remove unused variables.
5486 * gdbreplay.c (remote_open): Remove unused variable.
5487 * remote-utils.c (remote_prepare): Remove unused variable.
5488 * x86-tdesc.h (X86_TDESC_H): Define.
5489 (amd64_expedite_regs): Define conditionally.
5490 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5491 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5492 * remote-utils.c (readchar): Remove unused variable.
5493
a780ef4f
PA
54942018-07-13 Pedro Alves <palves@redhat.com>
5495
5496 * linux-low.c (linux_kill): Change parameter to process_info
5497 pointer instead of pid. Adjust.
5498 * lynx-low.c (lynx_kill): Likewise.
5499 * nto-low.c (nto_kill): Likewise.
5500 * spu-low.c (spu_kill): Likewise.
5501 * win32-low.c (win32_kill): Likewise.
5502 * server.c (handle_v_kill, kill_inferior_callback)
5503 (detach_or_kill_for_exit): Adjust.
5504 * target.c (kill_inferior): Change parameter to process_info
5505 pointer instead of pid. Adjust.
5506 * target.h (struct target_ops) <kill>: Change parameter to
5507 process_info pointer instead of pid. Adjust all implementations
5508 and callers.
5509 (kill_inferior): Likewise.
5510
ef2ddb33
PA
55112018-07-13 Pedro Alves <palves@redhat.com>
5512
5513 * linux-low.c (linux_detach, linux_join): Change parameter to
5514 process_info pointer instead of pid. Adjust.
5515 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5516 * nto-low.c (nto_detach): Likewise.
5517 * spu-low.c (spu_detach, spu_join): Likewise.
5518 * win32-low.c (win32_detach, win32_join): Likewise.
5519 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5520 * target.h (struct target_ops) <detach, join>: Change parameter to
5521 process_info pointer instead of pid. Adjust all implementations
5522 and callers.
5523 (detach_inferior, join_inferior): Rename 'pid' parameter to
5524 'proc'.
5525
c7ab0aef
SDJ
55262018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5527 Jan Kratochvil <jan.kratochvil@redhat.com>
5528 Paul Fertser <fercerpav@gmail.com>
5529 Tsutomu Seki <sekiriki@gmail.com>
5530
5531 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5532 (OBS): Add 'common/netstuff.o'.
5533 (GDBREPLAY_OBS): Likewise.
5534 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5535 (remote_open): Implement support for IPv6
5536 connections.
5537 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5538 and 'wspiapi.h'.
5539 (handle_accept_event): Accept connections from IPv6 sources.
5540 (remote_prepare): Handle IPv6-style hostnames; implement
5541 support for IPv6 connections.
5542 (remote_open): Implement support for printing connections from
5543 IPv6 sources.
5544
31445d10
PA
55452018-07-11 Pedro Alves <palves@redhat.com>
5546
5547 PR gdb/23377
5548 * mem-break.c (any_persistent_commands): Add process_info
5549 parameter and use it instead of relying on the current process.
5550 Change return type to bool.
5551 * mem-break.h (any_persistent_commands): Add process_info
5552 parameter and change return type to bool.
5553 * server.c (handle_detach): Remove require_running_or_return call.
5554 Look up the process_info for the process we're about to detach.
5555 If not found, return back error to GDB. Adjust
5556 any_persistent_commands call to pass down a process pointer.
5557
cb197132
PA
55582018-07-11 Pedro Alves <palves@redhat.com>
5559
5560 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5561 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5562 instead of collect_register_by_name.
5563 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5564 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5565
1b919490
VB
55662018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5567 Pedro Alves <palves@redhat.com>
5568
5569 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5570
d7e15655
TT
55712018-07-03 Tom Tromey <tom@tromey.com>
5572
5573 * linux-low.c: Update.
5574 * lynx-low.c: Update.
5575 * mem-break.c: Update.
5576 * nto-low.c: Update.
5577 * remote-utils.c: Update.
5578 * server.c: Update.
5579 * spu-low.c: Update.
5580 * target.c: Update.
5581 * win32-low.c: Update.
5582
26a57c92
TT
55832018-07-03 Tom Tromey <tom@tromey.com>
5584
5585 * server.c: Update.
5586
0e998d96
TT
55872018-07-03 Tom Tromey <tom@tromey.com>
5588
5589 * linux-low.c: Update.
5590
cc6bcb54
TT
55912018-07-03 Tom Tromey <tom@tromey.com>
5592
5593 * target.c: Update.
5594
e38504b3
TT
55952018-07-03 Tom Tromey <tom@tromey.com>
5596
5597 * linux-low.c: Update.
5598 * linux-mips-low.c: Update.
5599 * lynx-low.c: Update.
5600 * nto-low.c: Update.
5601 * remote-utils.c: Update.
5602 * server.c: Update.
5603 * spu-low.c: Update.
5604 * target.c: Update.
5605 * thread-db.c: Update.
5606
e99b03dc
TT
56072018-07-03 Tom Tromey <tom@tromey.com>
5608
5609 * linux-low.c: Update.
5610 * linux-mips-low.c: Update.
5611 * lynx-low.c: Update.
5612 * mem-break.c: Update.
5613 * nto-low.c: Update.
5614 * remote-utils.c: Update.
5615 * server.c: Update.
5616 * spu-low.c: Update.
5617 * target.c: Update.
5618 * tracepoint.c: Update.
5619
f2907e49
TT
56202018-07-03 Tom Tromey <tom@tromey.com>
5621
5622 * linux-low.c: Update.
5623 * linux-ppc-low.c: Update.
5624 * linux-x86-low.c: Update.
5625 * proc-service.c: Update.
5626 * server.c: Update.
5627 * spu-low.c: Update.
5628 * thread-db.c: Update.
5629 * win32-low.c: Update.
5630
fd79271b
TT
56312018-07-03 Tom Tromey <tom@tromey.com>
5632
5633 * linux-low.c: Update.
5634 * lynx-low.c: Update.
5635 * nto-low.c: Update.
5636 * remote-utils.c: Update.
5637 * spu-low.c: Update.
5638 * thread-db.c: Update.
5639 * win32-low.c: Update.
5640
c0867626
SDJ
56412018-06-29 Joel Brobecker <brobecker@adacore.com>
5642
5643 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5644 parameter in call to 'amd64_create_target_description'.
5645
2512d7ef
JK
56462018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5647
5648 * x86-tdesc.h: Remove executable permission flag.
5649
d0ac1c44
SM
56502018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5651
5652 * configure.ac: Remove AC_PREREQ, add missing quoting.
5653 * configure: Re-generate.
5654 * config.in: Re-generate.
5655 * aclocal.m4: Re-generate.
5656
c4eb05ff
SM
56572018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5658
5659 * tracepoint.h (current_traceframe): Remove declaration.
5660
02895270
AH
56612018-06-18 Alan Hayward <alan.hayward@arm.com>
5662
5663 * linux-aarch64-low.c (is_sve_tdesc): New function.
5664 (aarch64_sve_regs_copy_to_regcache): Likewise.
5665 (aarch64_sve_regs_copy_from_regcache): Likewise.
5666 (aarch64_regs_info): Add SVE checks.
5667 (initialize_low_arch): Initialize SVE.
5668
e9902bfc
AH
56692018-06-18 Alan Hayward <alan.hayward@arm.com>
5670
5671 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5672
fefa175e
AH
56732018-06-11 Alan Hayward <alan.hayward@arm.com>
5674
5675 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5676 (initialize_low_tracepoint): Likewise
5677 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5678 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5679 param.
5680 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5681 checks.
5682 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5683
b91ad3ff
AH
56842018-06-11 Alan Hayward <alan.hayward@arm.com>
5685
5686 * server.h (PBUFSIZ): Increase size
5687
f868386e
AH
56882018-06-11 Alan Hayward <alan.hayward@arm.com>
5689
5690 * regcache.c (regcache::raw_compare): New function.
5691 * regcache.h (regcache::raw_compare): New declaration.
5692
9c861883
AH
56932018-06-11 Alan Hayward <alan.hayward@arm.com>
5694
5695 * regcache.c (new_register_cache): Use new.
5696 (free_register_cache): Use delete.
5697 (register_data): Use const.
5698 (supply_register): Move body inside regcache.
5699 (regcache::raw_supply): New override function.
5700 (collect_register): Move body inside regcache.
5701 (regcache::raw_collect): New override function.
5702 (regcache::get_register_status): New override function.
5703 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5704
40591844
TT
57052018-06-09 Tom Tromey <tom@tromey.com>
5706
5707 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5708 declare queue.
5709 (event_queue): Use std::queue.
5710 (gdb_event_xfree): Remove.
5711 (initialize_event_loop, process_event, wait_for_event): Update.
5712
6341380d
SC
57132018-06-08 Stan Cox <scox@redhat.com>
5714
5715 * win32-low.c (win32_create_inferior): last_ptid and last_status
5716 moved to client_state.
5717
03349c93
PA
57182018-06-08 Pedro Alves <palves@redhat.com>
5719
5720 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5721 common/common-exceptions.o, common/common-utils.o,
5722 common/errors.o, common/print-utils.o and utils.o.
5723 * gdbreplay.c: Include "common-defs.h" instead of the two
5724 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5725 string.h or alloca.h.
5726 (perror_with_name): Delete.
5727 (remote_open): Use xstrdup instead of strdup.
5728 (main): Rename to ...
5729 (captured_main): ... this.
5730 (main): New.
5731
8dcc53b3
TT
57322018-06-08 Tom Tromey <tom@tromey.com>
5733
5734 * linux-low.c (linux_low_read_btrace): Update.
5735
c12a5089
SC
57362018-06-04 Stan Cox <scox@redhat.com>
5737
5738 * server.h (struct client_state): New.
5739 * server.c (cont_thread, general_thread, multi_process)
5740 (report_fork_events, report_vfork_events, report_exec_events)
5741 (report_thread_events, swbreak_feature, hwbreak_feature)
5742 (vCont_supported, disable_randomization, pass_signals)
5743 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5744 Moved to client_state.
5745 * remote-utils.c (remote_debug, noack_mode)
5746 (transport_is_reliable): Moved to client_state.
5747 * tracepoint.c (current_traceframe): Moved to client_state.
5748
5749 Update all callers.
5750 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5751 linux-low.c, remote-utils.h, target.c: Use client_state.
5752
122394f1
AH
57532018-05-31 Alan Hayward <alan.hayward@arm.com>
5754
5755 * configure.srv: Add new c/h file.
5756
95228a0d
AH
57572018-05-31 Alan Hayward <alan.hayward@arm.com>
5758
5759 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5760 null VQ.
5761
d8dab6c3
MR
57622018-05-25 Maciej W. Rozycki <macro@mips.com>
5763
5764 * gdb.arch/mips-fpregset-core.exp: New test.
5765 * gdb.arch/mips-fpregset-core.c: New test source.
5766
81e25b7c
EK
57672018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5768
5769 PR server/23198
5770 * hostio.c (require_int): Do not report overflow for integers
5771 between 0xfffffff and 0x7fffffff.
5772
7e947ad3
MR
57732018-05-22 Maciej W. Rozycki <macro@mips.com>
5774
5775 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5776 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5777 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5778 functions.
5779 (the_low_target): Wire them.
5780
1d75a658
PFC
57812018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5782
5783 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5784 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5785 mode. Call collect_register_by_name with vscr using
5786 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5787 (ppc_store_vrregset): Add and set vscr_offset variable as in
5788 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5789 vscr_offset.
5790
d078308a
PFC
57912018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5792
5793 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5794 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5795 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5796
7273b5fc
PFC
57972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5798
5799 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5800 (ppc_store_vsxregset): Likewise.
5801 (ppc_fill_vrregset): Likewise.
5802 (ppc_store_vrregset): Likewise.
5803 (ppc_fill_evrregset): Likewise.
5804 (ppc_store_evrregset): Likewise.
5805 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5806 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5807 needed.
5808
2e077f5e
PFC
58092018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5810
5811 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5812 wordsize of the inferior. Call ppc_linux_target_wordsize.
5813
bd64614e
PFC
58142018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5815
5816 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5817 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5818 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5819 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5820 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5821 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5822 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5823 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5824 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5825 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5826 (tdesc_powerpc_e500l): Remove.
5827 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5828 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5829 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5830 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5831 linux-ppc-tdesc.h.
5832 (ppc_arch_setup): Remove target description matching code. Fill a
5833 ppc_linux_features struct and call ppc_linux_match_description
5834 with it.
5835
75d74cca
MR
58362018-05-22 Maciej W. Rozycki <macro@mips.com>
5837
5838 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5839 width of the requested register exceeds the width of the
5840 `ptrace' data type.
5841 (mips_cannot_store_register): Likewise.
5842
e4439e43
MR
58432018-05-21 Maciej W. Rozycki <macro@mips.com>
5844
5845 * linux-mips-low.c (mips_fetch_register): New function. Update
5846 preceding comment.
5847 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5848 (the_low_target): Wire `mips_fetch_register'.
5849
55271bf9
JB
58502018-05-10 Joel Brobecker <brobecker@adacore.com>
5851
5852 * lynx-i386-low.c (LYNXOS_178): New macro.
5853 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5854 the layout on LynxOS-178.
5855 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5856 handle floating point registers that are not supported by
5857 LynxOS-178.
5858
1a34f210
TT
58592018-05-10 Tom Tromey <tom@tromey.com>
5860
5861 * configure: Rebuild.
5862
190852c8
JB
58632018-05-10 Joel Brobecker <brobecker@adacore.com>
5864
5865 PR server/23158:
5866 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5867 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5868 Use it to set the expedite_regs field in the given tdesc.
5869 * x86-tdesc.h: New file.
5870 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5871 Adjust following the addition of the new expedite_regs parameter
5872 to init_target_desc.
5873 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5874 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5875 (i386_linux_read_description, amd64_linux_read_description):
5876 Adjust following the addition of the new expedite_regs parameter
5877 to init_target_desc.
5878 * lynx-i386-low.c: #include "x86-tdesc.h".
5879 (lynx_i386_arch_setup): Adjust following the addition of the new
5880 expedite_regs parameter to init_target_desc.
5881 * nto-x86-low.c: #include "x86-tdesc.h".
5882 (nto_x86_arch_setup): Adjust following the addition of the new
5883 expedite_regs parameter to init_target_desc.
5884 * win32-i386-low.c: #include "x86-tdesc.h".
5885 (i386_arch_setup): Adjust following the addition of the new
5886 expedite_regs parameter to init_target_desc.
5887
7dbac825
JB
58882018-05-10 Joel Brobecker <brobecker@adacore.com>
5889
5890 PR server/23158:
5891 * win32-low.c (win32_create_inferior): Add call to my_wait
5892 setting last_status global.
5893
906994d9
JB
58942018-05-10 Joel Brobecker <brobecker@adacore.com>
5895
5896 PR server/23158:
5897 * win32-low.c (create_process): Only call gdb_tilde_expand if
5898 inferior_cwd is not NULL.
5899
8ee22052
AB
59002018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5901
5902 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5903 registers to the cache if their values have changed.
5904 (i387_xsave_to_cache): Provide default values for x87 control
5905 registers when these features are available, but disabled.
5906 * regcache.c (supply_register_by_name_zeroed): New function.
5907 * regcache.h (supply_register_by_name_zeroed): Declare new
5908 function.
5909
aff689d3
TT
59102018-05-07 Tom Tromey <tom@tromey.com>
5911
5912 * configure: Rebuild.
5913
85e26832
TT
59142018-05-04 Tom Tromey <tom@tromey.com>
5915
5916 * configure: Rebuild.
5917
a3b60e45
JK
59182018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5919 Pedro Alves <palves@redhat.com>
5920
5921 * linux-aarch64-low.c (aarch64_stopped_data_address):
5922 Likewise.
5923
632e107b
TT
59242018-04-27 Tom Tromey <tom@tromey.com>
5925
5926 * configure: Rebuild.
5927
458412c3
TT
59282018-04-23 Tom Tromey <tom@tromey.com>
5929
5930 * configure: Rebuild.
5931
f31c089e
SM
59322018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5933
5934 * Makefile.in (depcomp): Add "..".
5935 (all_deps_files): New and use it.
5936
b319b098
AH
59372018-04-18 Alan Hayward <alan.hayward@arm.com>
5938
5939 * configure.srv (aarch64*-*-linux*): Don't include xml.
5940 (i[34567]86-*-cygwin*): Likewise.
5941 (i[34567]86-*-linux*): Likewise.
5942 (i[34567]86-*-lynxos*): Likewise.
5943 (i[34567]86-*-mingw32ce*): Likewise.
5944 (i[34567]86-*-mingw*): Likewise.
5945 (i[34567]86-*-nto*): Likewise.
5946 (tic6x-*-uclinux): Likewise.
5947 (x86_64-*-linux*): Likewise.
5948 (x86_64-*-mingw*): Likewise.
5949 (x86_64-*-cygwin*): Likewise.
5950
3b74854b
AH
59512018-04-18 Alan Hayward <alan.hayward@arm.com>
5952
5953 * tdesc.c: Remove xml parameter.
5954
e98577a9
AH
59552018-04-18 Alan Hayward <alan.hayward@arm.com>
5956
5957 * server.c (get_features_xml): Remove cast.
5958 * tdesc.c (void target_desc::accept): Fill in function.
5959 (tdesc_get_features_xml): Remove old xml creation.
5960 (print_xml_feature::visit_pre): Add xml vistor.
5961 * tdesc.h (struct target_desc): Make xmltarget mutable.
5962 (tdesc_get_features_xml): Remove declaration.
5963
d278f585
AH
59642018-04-18 Alan Hayward <alan.hayward@arm.com>
5965
5966 * tdesc.c (tdesc_architecture_name): Add new function.
5967 (tdesc_osabi_name): Likewise.
5968 (tdesc_get_features_xml): Use new functions.
5969
eee8a18d
AH
59702018-04-18 Alan Hayward <alan.hayward@arm.com>
5971
5972 * tdesc.c (tdesc_create_flags): Remove.
5973 (tdesc_add_flag): Likewise.
5974 (tdesc_named_type): Likewise.
5975 (tdesc_create_union): Likewise.
5976 (tdesc_create_struct): Likewise.
5977 (tdesc_create_vector): Likewise.
5978 (tdesc_add_bitfield): Likewise.
5979 (tdesc_add_field): Likewise.
5980 (tdesc_set_struct_size): Likewise.
5981
82ec9bc7
AH
59822018-04-18 Alan Hayward <alan.hayward@arm.com>
5983
5984 * tdesc.c (~target_desc): Remove implictly deleted items.
5985 (init_target_desc): Iterate all features.
5986 (tdesc_get_features_xml): Use vector.
5987 (tdesc_create_feature): Create feature.
5988 * tdesc.h (tdesc_feature) Remove
5989 (target_desc): Add features.
5990
ea3e7d71
AH
59912018-04-18 Alan Hayward <alan.hayward@arm.com>
5992
5993 * Makefile.in: Add common/tdesc.c
5994 * tdesc.c (init_target_desc): init all reg_defs from register
5995 vector.
5996 (tdesc_create_reg): Create tdesc_reg.
5997 * tdesc.h (tdesc_feature): Add register vector.
5998
17d08cd4
SM
59992018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6000
6001 * tdesc.h (struct target_desc) <features>: Change type to
6002 std::vector<std::string>.
6003 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6004 changes.
6005 (tdesc_get_features_xml): Likewise.
6006 (tdesc_create_feature): Likewise.
6007
5cd3e386
AH
60082018-03-26 Alan Hayward <alan.hayward@arm.com>
6009
6010 * regcache.c (find_register_by_number): Return a ref.
6011 (find_regno): Use references.
6012 (register_size): Likewise.
6013 (register_data): Likewise.
6014 * tdesc.c (target_desc::~target_desc): Remove free calls.
6015 (target_desc::operator==): Use std::vector compare.
6016 (init_target_desc): Use reference.
6017 (tdesc_create_reg): Use reg constructors.
6018 * tdesc.h (struct target_desc): Replace pointer with object.
6019
dff7492c
AH
60202018-03-23 Alan Hayward <alan.hayward@arm.com>
6021
6022 * regcache.c (find_register_by_number): Make static.
6023 (find_regno): Use find_register_by_number
6024 * regcache.h (struct reg): Remove declaration.
6025
d80e5242
AH
60262018-03-23 Alan Hayward <alan.hayward@arm.com>
6027
6028 * tdesc.c (target_desc::~target_desc): Move to here.
6029 (target_desc::operator==): Likewise.
6030 * tdesc.h (target_desc::~target_desc): Move from here.
6031 (target_desc::operator==): Likewise.
6032
f69c5afb
AA
60332018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6034
6035 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6036
ce29f843
AA
60372018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6038
6039 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6040 S390_TDESC_GS.
6041 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6042 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6043 and init_registers_s390_gs_linux64.
6044
c49bd90b
AA
60452018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6046
6047 * linux-s390-low.c (s390_fill_gs): Remove function.
6048 (s390_fill_gsbc): Remove function.
6049 (s390_regsets): Set fill functions for the guarded storage regsets
6050 to NULL.
6051
7edb9bd3
AA
60522018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6053
6054 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6055 the word size. Add comment.
6056 (s390_get_wordsize): New function.
6057 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6058 pswm with it. Instead, use s390_get_wordsize to determine the
6059 word size first and derive the correct tdesc from that directly.
6060
39be3c7e
SM
60612018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6062
6063 * Makefile.in: Include silent-rules.mk.
6064 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6065 (COMPILE): Add ECHO_CXX.
6066 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6067 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6068 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6069 (version-generated.c): Add ECHO_GEN.
6070 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6071 (IPAGENT_COMPILE): Add ECHO_CXX.
6072 (%-generated.c): Add ECHO_REGDAT.
6073
3ae9ce5d
TT
60742018-03-14 Tom Tromey <tom@tromey.com>
6075
6076 PR cli/14977:
6077 * ax.c (ax_printf): Special case for NULL.
6078
e6a58aa8
SM
60792018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6080
6081 * linux-low.c (linux_qxfer_libraries_svr4): Use
6082 xml_escape_text_append.
6083
f6e8a41e
SM
60842018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6085
6086 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6087
b9671caf
SM
60882018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6089
6090 * server.c (handle_general_set): Remove unnecessary xstrdup.
6091
e80aaf61
SM
60922018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6093
6094 * server.c (parse_debug_format_options): Adjust to
6095 delim_string_to_char_ptr_vec changes.
6096 * thread-db.c (thread_db_load_search): Adjust to
6097 dirnames_to_char_ptr_vec changes.
6098
b1223e78
MM
60992018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6100
6101 * target.h (target_enable_btrace, target_disable_btrace)
6102 (target_read_btrace, target_read_btrace_conf): Turn macro into
6103 inline function. Throw error if target method is not defined.
6104 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6105 check for btrace target method. Be prepared to handle exceptions
6106 from btrace target methods.
6107
81561546
SDJ
61082018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6109
6110 * server.c (captured_main): Change order of error message printed
6111 when the current working directory cannot be found.
6112
25e3c82c
SDJ
61132018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6114
6115 * server.c: Include "filenames.h" and "pathstuff.h".
6116 (program_name): Delete variable.
6117 (program_path): New anonymous class.
6118 (get_exec_wrapper): Use "program_path" instead of
6119 "program_name".
6120 (handle_v_run): Likewise.
6121 (captured_main): Likewise.
6122 (process_serial_event): Likewise.
6123
b4987c95
SDJ
61242018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6125
6126 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6127 (OBJS): Add "pathstuff.o".
6128 * server.c (current_directory): New global variable.
6129 (captured_main): Initialize "current_directory".
6130
f46cd62a
AH
61312018-02-26 Alan Hayward <alan.hayward@arm.com>
6132
6133 * tdesc.c: Use common/tdesc.h.
6134 * tdesc.h: Likewise.
6135
a543c5ca
AH
61362018-02-20 Alan Hayward <alan.hayward@arm.com>
6137 Simon Marchi <simon.marchi@ericsson.com>
6138
6139 * Makefile.in: Switch order of make rules.
6140
b5884fa7
AH
61412018-02-19 Alan Hayward <alan.hayward@arm.com>
6142
6143 * Makefile.in: Add common directory in build.
6144 * configure.ac: Add common reference.
6145 * configure: Regenerate.
6146
de6242d3
MM
61472018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6148
6149 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6150 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6151 * spu-low.c (spu_target_ops): Likewise.
6152 * win32-low.c (win32_target_ops): Likewise.
6153 * server.c (supported_btrace_packets): Report packets unconditionally.
6154 * target.h (target_ops) <supports_btrace>: Remove.
6155 (target_supports_btrace): Remove.
6156
9ee23a85
MM
61572018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6158
6159 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6160 (handle_btrace_disable): Change return type to void. Use exceptions
6161 to report errors.
6162 (handle_btrace_general_set): Catch exception and copy message to
6163 return message.
6164
8ce47547
TT
61652018-02-08 Tom Tromey <tom@tromey.com>
6166
6167 * linux-low.c (install_software_single_step_breakpoints): Use
6168 make_scoped_restore.
6169 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6170 (do_restore_current_thread_cleanup): Remove.
6171 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6172 declare.
6173
45dd3607
TT
61742018-02-08 Tom Tromey <tom@tromey.com>
6175
6176 * mem-break.c (set_raw_breakpoint_at): Use
6177 gdb::unique_xmalloc_ptr.
6178
e671cd59
PA
61792018-01-30 Pedro Alves <palves@redhat.com>
6180
6181 PR gdb/13211
6182 * target.c (target_terminal::terminal_state): Rename to ...
6183 (target_terminal::m_terminal_state): ... this.
6184
a0aad537
JC
61852018-01-19 James Clarke <jrtc27@jrtc27.com>
6186
6187 * linux-low.c (handle_extended_wait): Surround call to
6188 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6189
4d9b86e1
SM
61902018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6191
6192 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6193 linux_ptrace_attach_fail_reason_string now returning an
6194 std::string.
6195 (linux_attach): Likewise.
6196 * thread-db.c (attach_thread): Likewise.
6197
f517c180
EA
61982018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6199
6200 PR gdb/21559
6201 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6202 checking for fs_base/gs_base fields in struct user_regs_struct.
6203 * configure: Regenerate.
6204
9a70f35c
YQ
62052018-01-16 Yao Qi <yao.qi@linaro.org>
6206
6207 PR gdb/18749
6208 * linux-low.c (fetch_register): Call supply_register instead of
6209 error.
6210
605fd3c6
YQ
62112018-01-08 Yao Qi <yao.qi@linaro.org>
6212 Simon Marchi <simon.marchi@ericsson.com>
6213
6214 * Makefile.in (OBS): Remove selftest.o.
6215 * configure.ac: Set srv_selftest_objs if $development is true.
6216 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6217 * configure: Re-generated.
6218 * server.c (captured_main): Wrap variable selftest_filter with
6219 GDB_SELF_TEST.
6220
2cc05030
SM
62212018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6222
6223 * server.c (parse_debug_format_options): Return std::string.
6224 (handle_monitor_command, captured_main): Adjust.
6225
e379cee6
PA
62262018-01-05 Pedro Alves <palves@redhat.com>
6227
6228 PR gdb/18653
6229 * server.c (captured_main): Pass quiet=false to
6230 save_original_signals_state.
6231
82e1e79a
JB
62322018-01-01 Joel Brobecker <brobecker@adacore.com>
6233
6234 * gdbreplay.c (gdbreplay_version): Update copyright year in
6235 version message.
6236 * server.c (gdbserver_version): Likewise.
6237
8e481c3b
TT
62382017-12-08 Tom Tromey <tom@tromey.com>
6239
6240 * ax.c (ax_printf): Update.
6241
a8806230
YQ
62422017-12-07 Yao Qi <yao.qi@linaro.org>
6243
6244 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6245 aarch64_linux_read_description.
6246 * linux-amd64-ipa.c (idx2mask): New array.
6247 (get_ipa_tdesc): Move idx2mask out.
6248 (initialize_low_tracepoint): Initialize target descriptions.
6249 * linux-i386-ipa.c (idx2mask): New array.
6250 (get_ipa_tdesc): Move idx2mask out.
6251 (initialize_low_tracepoint): Initialize target descriptions.
6252
d4a0e8b5
SM
62532017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6254
6255 * tdesc.c (struct tdesc_type): Change return type.
6256 (tdesc_add_flag): Change parameter type.
6257 (tdesc_add_bitfield): Likewise.
6258 (tdesc_add_field): Likewise.
6259 (tdesc_set_struct_size): Likewise.
6260
798a7429
SM
62612017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6262
6263 * regcache.c (registers_to_string): Remove unused variable.
6264
c0e15c9b
SM
62652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6266
6267 * inferiors.c (for_each_inferior_with_data): Remove.
6268 * inferiors.h (for_each_inferior_with_data): Remove.
6269 * server.c (handle_qxfer_threads_worker): Change parameter type.
6270 (handle_qxfer_threads_proper): Use for_each_thread.
6271
f0045347
SM
62722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 * inferiors.c (for_each_inferior): Remove.
6275 (clear_inferiors): Use for_each_thread.
6276 * inferiors.h (for_each_inferior): Remove.
6277 * linux-low.c (linux_wait_for_event_filtered): Use
6278 for_each_thread.
6279 (linux_stabilize_threads): Likewise.
6280 * regcache.c (regcache_release): Likewise.
6281 * server.c (gdb_wants_all_threads_stopped): Likewise.
6282 (clear_pending_status_callback): Remove.
6283 (handle_status): Use for_each_thread.
6284 (captured_main): Likewise.
6285 * win32-low.c (child_init_thread_list): Likewise.
6286 (win32_clear_inferiors): Likewise.
6287 (fake_breakpoint_event): Likewise.
6288
9521758b
SM
62892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6290
6291 * inferiors.h (find_inferior): Remove.
6292 * inferiors.c (find_inferior): Remove.
6293
8f86d7aa
SM
62942017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6295
6296 * linux-low.c (resume_status_pending_p): Update comment.
6297 (need_step_over_p): Update comment.
6298
e2b44075
SM
62992017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6300
6301 * linux-low.c (proceed_one_lwp): Return void, change parameter
6302 type.
6303 (unsuspend_and_proceed_one_lwp): Likewise.
6304 (proceed_all_lwps): Use for_each_thread.
6305 (unstop_all_lwps): Likewise.
6306
c80825ff
SM
63072017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6308
6309 * linux-low.c (linux_resume_one_thread): Return void, take
6310 parameter directly.
6311 (linux_resume): Use for_each_thread.
6312
df3e4dbe
SM
63132017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6314
6315 * linux-low.c (send_sigstop_callback): Return void, change
6316 parameter type. Rename to...
6317 (send_sigstop): ... this.
6318 (suspend_and_send_sigstop_callback): Return void, change parameter
6319 type. Rename to...
6320 (suspend_and_send_sigstop): ... this.
6321 (stop_all_lwps): Use for_each_thread.
6322
5a6b0a41
SM
63232017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6324
6325 * linux-low.c (lwp_running): Return bool, remove unused
6326 argument.
6327 (linux_stabilize_threads): Use find_thread.
6328
39a64da5
SM
63292017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6330
6331 * linux-low.c (select_singlestep_lwp_callback): Remove.
6332 (count_events_callback): Remove.
6333 (select_event_lwp_callback): Remove.
6334 (select_event_lwp): Use find_thread/for_each_thread.
6335
a1385b7b
SM
63362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6337
6338 * linux-low.c (not_stopped_callback): Return bool, take filter
6339 argument directly.
6340 (linux_wait_for_event_filtered): Use find_thread.
6341 (linux_wait_1): Likewise.
6342
454296a2
SM
63432017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6344
6345 * linux-low.c (same_lwp): Remove.
6346 (find_lwp_pid): Use find_thread.
6347
6b2a85da
SM
63482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6349
6350 * linux-low.c (delete_lwp_callback): Remove.
6351 (linux_mourn): Use for_each_thread.
6352
798a38e8
SM
63532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6354
6355 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6356 args parameter, don't check for pid.
6357 (linux_detach): Use for_each_thread.
6358
e4eb0dec
SM
63592017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6360
6361 * linux-low.c (struct counter): Remove.
6362 (second_thread_of_pid_p): Remove.
6363 (last_thread_of_process_p): Use find_thread.
6364
83e1b6c1
SM
63652017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6366
6367 * inferiors.c (find_inferior_in_random): Remove.
6368 * inferiors.h (find_inferior_in_random): Remove.
6369 * linux-low.c (status_pending_p_callback): Return bool, accept
6370 parameter ptid directly.
6371 (linux_wait_for_event_filtered): Use find_thread_in_random.
6372 (linux_wait_1): Likewise.
6373
8dc7b443
SM
63742017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6375
6376 * inferiors.c (find_inferior_id): Remove.
6377 (find_thread_ptid): Move implemention from find_inferior_id to
6378 here.
6379 * inferiors.h (find_inferior_id): Remove.
6380 * server.c (handle_status): Use find_thread_ptid.
6381 (process_serial_event): Likewise.
6382 * thread-db.c (find_one_thread): Likewise.
6383 (thread_db_thread_handle): Likewise.
6384 * win32-low.c (thread_rec): Likewise.
6385 (child_delete_thread): Likewise.
6386 (win32_thread_alive): Likewise.
6387 (get_child_debug_event): Likewise.
6388
da25033c
SM
63892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6390
6391 * linux-mips-low.c (update_watch_registers_callback): Return
6392 void, remove pid_p parameter, don't check for pid.
6393 (mips_insert_point, mips_remove_point): Use for_each_thread.
6394
c91bb56b
SM
63952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6396
6397 * lynx.low (lynx_delete_thread_callback): Remove.
6398 (lynx_mourn): Use for_each_thread.
6399
634a3254
SM
64002017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6401
6402 * regcache.c (regcache_invalidate_one): Remove.
6403 (regcache_invalidate_pid): use for_each_thread.
6404
41272101
TT
64052017-11-26 Tom Tromey <tom@tromey.com>
6406
6407 * linux-low.c (linux_create_inferior): Update.
6408
f5291a6f
UW
64092017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6410
6411 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6412
6654d750
AH
64132017-11-24 Alan Hayward <alan.hayward@arm.com>
6414
6415 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6416 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6417 * linux-aarch64-tdesc-selftest.c: New file.
6418 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6419
64202017-11-24 Alan Hayward <alan.hayward@arm.com>
6421
6422 * configure.srv: Add new file.
6423 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6424 * linux-aarch64-tdesc-selftest.c: New file.
6425 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6426
49bdb7ee
AH
64272017-11-24 Alan Hayward <alan.hayward@arm.com>
6428
6429 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6430 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6431 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6432
d6d7ce56
AH
64332017-11-24 Alan Hayward <alan.hayward@arm.com>
6434
6435 * configure.srv: Add new files.
6436 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6437 aarch64_linux_read_description.
6438 * linux-aarch64-low.c (aarch64_linux_read_description):
6439 Merge with aarch64_arch_setup.
6440 (aarch64_arch_setup): Call aarch64_linux_read_description.
6441 * linux-aarch64-tdesc.c: New file.
6442 * linux-aarch64-tdesc.h: New file.
6443
506fe5f4
YQ
64442017-11-24 Yao Qi <yao.qi@linaro.org>
6445
6446 * configure.srv: Set $srv_regobj for tic6x-linux.
6447 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6448 (tic6x_read_description): Move some code to tic6x_arch_setup.
6449 (tic6x_tdesc_test): New function.
6450 (initialize_low_arch): Call selftests::register_test.
6451
29f9a567
YQ
64522017-11-22 Yao Qi <yao.qi@linaro.org>
6453
6454 * remote-utils.c (prepare_resume_reply): Use memcpy.
6455
578290ec
SM
64562017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6457
6458 * linux-low.c (kill_one_lwp_callback): Return void, take
6459 argument directly, don't filter on pid.
6460 (linux_kill): Use for_each_thread.
6461
eca55aec
SM
64622017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6463
6464 * linux-low.c (need_step_over_p): Return bool, remove dummy
6465 argument.
6466 (linux_resume, proceed_all_lwps): Use find_thread.
6467
25c28b4d
SM
64682017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6469
6470 * linux-low.c (resume_status_pending_p): Return bool, remove
6471 flag_p argument.
6472 (linux_resume): Use find_thread.
6473
5fdda392
SM
64742017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6475
6476 * linux-low.c (struct thread_resume_array): Remove.
6477 (linux_set_resume_request): Return void, take arguments
6478 directly.
6479 (linux_resume): Use for_each_thread.
6480
fcb056a5
SM
64812017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6482
6483 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6484 return bool, remove data argument.
6485 (linux_stabilize_threads): Use find_thread.
6486
139720c5
SM
64872017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6488
6489 * linux-low.c (unsuspend_one_lwp): Remove.
6490 (unsuspend_all_lwps): Use for_each_thread, inline code from
6491 unsuspend_one_lwp.
6492
6d1e5673
SM
64932017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6494
6495 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6496 * linux-low.c (struct iterate_over_lwps_args): Remove.
6497 (iterate_over_lwps_filter): Remove.
6498 (iterate_over_lwps): Use find_thread.
6499
bbf550d5
SM
65002017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6501
6502 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6503 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6504 code from reset_lwp_ptrace_options_callback.
6505
00192f77
SM
65062017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6507
6508 * linux-arm-low.c (struct update_registers_data): Remove.
6509 (update_registers_callback): Return void, take arguments
6510 directly, don't check thread's pid.
6511 (arm_insert_point, arm_remove_point): Use for_each_thread.
6512
2bee2b6c
SM
65132017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6514
6515 * win32-low.c (continue_one_thread): Return void, take argument
6516 directly.
6517 (child_continue): Use for_each_thread.
6518
0b360f19
SM
65192017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6520
6521 * win32-i386-low.c (update_debug_registers_callback): Rename
6522 to ...
6523 (update_debug_registers): ... this, return void, remove pid_p arg.
6524 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6525
f27866ba
SM
65262017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6527
6528 * inferiors.h (struct process_info): Add constructor, initialize
6529 fields..
6530 <syscalls_to_catch>: Change type to std::vector<int>.
6531 * inferiors.c (add_process): Allocate process_info with new.
6532 (remove_process): Free process_info with delete.
6533 * linux-low.c (handle_extended_wait): Adjust.
6534 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6535 * server.c (handle_general_set): Adjust.
6536
e849ea89
PA
65372017-11-16 Pedro Alves <palves@redhat.com>
6538
6539 * remote-utils.c (remote_close): Block SIGIO signals instead of
6540 uninstalling the SIGIO handler.
6541
1d0aa65c
AH
65422017-11-16 Alan Hayward <alan.hayward@arm.com>
6543
6544 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6545
3491a34c
YQ
65462017-11-16 Yao Qi <yao.qi@linaro.org>
6547
6548 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6549 (tic6x_store_gregset): Likewise.
6550 (tic6x_usrregs_info): Move it up.
6551
a602f924
AH
65522017-11-15 Alan Hayward <alan.hayward@arm.com>
6553
6554 * Makefile.in: Update arch rules.
6555 * configure.srv: Explicitly mark arch/ files.
6556
5616b6c3
AS
65572017-11-13 Andreas Schwab <schwab@suse.de>
6558
6559 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6560 function.
6561 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6562
d1928160
PA
65632017-11-06 Pedro Alves <palves@redhat.com>
6564
6565 * config.in, configure: Regenerate.
6566
bac608e7
SM
65672017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6568
6569 * target.c (struct thread_search): Remove.
6570 (thread_search_callback): Remove.
6571 (prepare_to_access_memory): Use for_each_thread instead of
6572 find_inferior. Inline code from thread_search_callback.
6573
eaddb425
SM
65742017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6575
6576 * server.c (struct visit_actioned_threads_data): Remove.
6577 (visit_actioned_threads): Change prototype to take arguments
6578 directly.
6579 (resume): Use find_thread instead of find_inferior.
6580
99078d34
SM
65812017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6582
6583 * server.c (queue_stop_reply_callback): Change prototype, return
6584 void.
6585 (find_status_pending_thread_callback): Remove.
6586 (handle_status): Replace find_inferior with find_thread and
6587 for_each_thread.
6588
cc628f3d
AH
65892017-10-25 Alan Hayward <alan.hayward@arm.com>
6590
6591 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6592 with REGNO.
6593 (aarch64_store_gregset): Likewise.
6594 (aarch64_fill_fpregset): Likewise.
6595 (aarch64_store_fpregset): Likewise.
6596
4d3bb80e
SM
65972017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6598
6599 * gdbthread.h (find_thread, for_each_thread): New functions.
6600 * inferiors.c (thread_of_pid): Remove.
6601 (find_any_thread_of_pid): Use find_thread.
6602 * linux-low.c (num_lwps): Use for_each_thread.
6603
7a7cdfa0
YQ
66042017-10-17 Yao Qi <yao.qi@linaro.org>
6605
6606 * Makefile.in: Remove one rule.
6607 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6608
e675d170
YQ
66092017-10-17 Yao Qi <yao.qi@linaro.org>
6610
6611 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6612 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6613
7eb4e0f9
YQ
66142017-10-17 Yao Qi <yao.qi@linaro.org>
6615
6616 * configure.srv: Rename arm.o with arch/arm.o.
6617
60d6cfc9
YQ
66182017-10-17 Yao Qi <yao.qi@linaro.org>
6619
6620 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6621 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6622 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6623 (arch-i386.o, arch-amd64.o): Remove rules.
6624 (arch/%.o): New rule.
6625 Update POSTCOMPILE and COMPILE.pre.
6626 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6627 * configure: Re-generated.
6628 * configure.srv: Replace arch-i386.o with arch/i386.o.
6629 Replace arch-amd64.o with arch/amd64.o.
6630
5bfda255
YQ
66312017-10-16 Yao Qi <yao.qi@linaro.org>
6632
6633 * configure: Regenerated.
6634
9c80ecd6
SM
66352017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6636
6637 * inferiors.h: (struct inferior_list): Remove.
6638 (struct inferior_list_entry); Remove.
6639 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6640 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6641 get_first_inferior): Remove.
6642 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6643 find_inferior_id, find_inferior_in_random): Change signature.
6644 * inferiors.c (all_threads): Change type to
6645 std::list<thread_info *>.
6646 (get_thread): Remove macro.
6647 (find_inferior, find_inferior_id): Change signature, implement
6648 using find_thread.
6649 (find_inferior_in_random): Change signature, implement using
6650 find_thread_in_random.
6651 (for_each_inferior, for_each_inferior_with_data): Change
6652 signature, implement using for_each_thread.
6653 (add_inferior_to_list, remove_inferior): Remove.
6654 (add_thread, get_first_thread, thread_of_pid,
6655 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6656 (get_first_inferior, one_inferior_p, clear_inferior_list):
6657 Remove.
6658 (clear_inferiors, get_thread_process): Update.
6659 * gdbthread.h: Include <list>.
6660 (struct thread_info) <entry>: Remove field.
6661 <id>: New field.
6662 (all_threads): Change type to std::list<thread_info *>.
6663 (get_first_inferior): Add doc.
6664 (find_thread, for_each_thread, find_thread_in_random): New
6665 functions.
6666 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6667 * linux-arm-low.c (update_registers_callback): Update.
6668 * linux-low.c (second_thread_of_pid_p): Update.
6669 (kill_one_lwp_callback, linux_detach_lwp_callback,
6670 delete_lwp_callback, status_pending_p_callback, same_lwp,
6671 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6672 iterate_over_lwps, not_stopped_callback,
6673 resume_stopped_resumed_lwps, count_events_callback,
6674 select_singlestep_lwp_callback, select_event_lwp_callback,
6675 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6676 suspend_and_send_sigstop_callback, wait_for_sigstop,
6677 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6678 lwp_running, linux_set_resume_request, resume_status_pending_p,
6679 need_step_over_p, start_step_over, linux_resume_one_thread,
6680 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6681 reset_lwp_ptrace_options_callback): Update.
6682 * linux-mips-low.c (update_watch_registers_callback): Update.
6683 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6684 Update.
6685 (free_register_cache_thread_one): Remove.
6686 (regcache_release): Update.
6687 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6688 handle_qxfer_threads_worker): Update.
6689 (handle_query): Update, use list iterator.
6690 (visit_actioned_threads, handle_pending_status,
6691 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6692 clear_pending_status_callback, set_pending_status_callback,
6693 find_status_pending_thread_callback, handle_status,
6694 process_serial_event): Update.
6695 * target.c (thread_search_callback): Update.
6696 * thread-db.c (thread_db_get_tls_address): Update.
6697 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6698 Update.
6699 * win32-i386-low.c (update_debug_registers_callback): Update.
6700 * win32-low.c (delete_thread_info, child_delete_thread,
6701 continue_one_thread, suspend_one_thread,
6702 get_child_debug_event): Adjust.
6703
9179355e
SM
67042017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6705
6706 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6707 * inferiors.h: Include <list>.
6708 (struct process_info) <entry>: Remove field.
6709 <pid>: New field.
6710 (pid_of): Change macro to function.
6711 (ptid_of, lwpid_of): Remove macro.
6712 (all_processes): Change type to std::list<process_info *>.
6713 (ALL_PROCESSES): Remove macro.
6714 (for_each_process, find_process): New function.
6715 * inferiors.c (all_processes): Change type to
6716 std::list<process_info *>.
6717 (find_thread_process): Adjust.
6718 (add_process): Likewise.
6719 (remove_process): Likewise.
6720 (find_process_pid): Likewise.
6721 (get_first_process): Likewise.
6722 (started_inferior_callback): Remove.
6723 (have_started_inferiors_p): Adjust.
6724 (attached_inferior_callback): Remove.
6725 (have_attached_inferiors_p): Adjust.
6726 * linux-low.c (check_zombie_leaders): Likewise.
6727 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6728 (x86_linux_update_xmltarget): Adjust.
6729 * server.c (handle_query): Likewise.
6730 (gdb_reattached_process): Remove.
6731 (handle_status): Adjust.
6732 (kill_inferior_callback): Likewise.
6733 (detach_or_kill_inferior): Remove.
6734 (print_started_pid): Likewise.
6735 (print_attached_pid): Likewise.
6736 (detach_or_kill_for_exit): Update.
6737 (process_serial_event): Likewise.
6738 * linux-arm-low.c (arm_new_fork): Likewise.
6739
c9cb8905
SM
67402017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6741
6742 * dll.h: Include <list>.
6743 (struct dll_info): Add constructor.
6744 <entry>: Remove field.
6745 (all_dlls): Change type to std::list<dll_info>.
6746 * dll.c: Include <algorithm>.
6747 (get_dll): Remove macro.
6748 (all_dlls): Change type to std::list<dll_info *>.
6749 (free_one_dll): Remove.
6750 (match_dll): Likewise.
6751 (loaded_dll): Adjust.
6752 (unloaded_dll): Adjust to all_dlls type change, use
6753 std::find_if. Inline code from match_dll.
6754 (clear_dlls): Adjust to all_dlls type change.
6755 * server.c (emit_dll_description): Remove.
6756 (handle_qxfer_libraries): Adjust to all_dlls type change,
6757 integrate emit_dll_description's functionality.
6758
04ec7890
SM
67592017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6760
6761 * linux-low.h (struct linux_target_ops) <delete_process>: New
6762 field.
6763 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6764 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6765 (struct linux_target_ops): Add delete_process callback.
6766 * linux-arm-low.c (arm_delete_process): New.
6767 (struct linux_target_ops): Add delete_process callback.
6768 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6769 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6770 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6771 * linux-mips-low.c (mips_linux_delete_process): New.
6772 (struct linux_target_ops): Add delete_process callback.
6773 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6774 * linux-s390-low.c (struct linux_target_ops): Likewise.
6775 * linux-sh-low.c (struct linux_target_ops): Likewise.
6776 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6777 * linux-tile-low.c (struct linux_target_ops): Likewise.
6778 * linux-x86-low.c (x86_linux_delete_process): New.
6779 (struct linux_target_ops): Add delete_process callback.
6780 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6781
466eecee
SM
67822017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6783
6784 * linux-aarch64-low.c (the_low_target): Add thread delete
6785 callback.
6786 * linux-arm-low.c (arm_delete_thread): New function.
6787 (the_low_target): Add thread delete callback.
6788 * linux-bfin-low.c (the_low_target): Likewise.
6789 * linux-crisv32-low.c (the_low_target): Likewise.
6790 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6791 set.
6792 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6793 field.
6794 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6795 * linux-mips-low.c (mips_linux_delete_thread): New function.
6796 (the_low_target): Add thread delete callback.
6797 * linux-ppc-low.c (the_low_target): Likewise.
6798 * linux-s390-low.c (the_low_target): Likewise.
6799 * linux-sh-low.c (the_low_target): Likewise.
6800 * linux-tic6x-low.c (the_low_target): Likewise.
6801 * linux-tile-low.c (the_low_target): Likewise.
6802 * linux-x86-low.c (the_low_target): Likewise.
6803 * linux-xtensa-low.c (the_low_target): Likewise.
6804
b79f7801
YZ
68052017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6806
6807 * win32-low.c: Include "common-inferior.h".
6808
bc3b087d
SDJ
68092017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6810
6811 * inferiors.c (set_inferior_cwd): New function.
6812 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6813 (handle_query): Inform that QSetWorkingDir is supported.
6814 * win32-low.c (create_process): Pass the inferior's cwd to
6815 CreateProcess.
6816
d092c5a2
SDJ
68172017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6818
6819 * inferiors.c (current_inferior_cwd): New global variable.
6820 (get_inferior_cwd): New function.
6821 * inferiors.h (struct process_info) <cwd>: New field.
6822
7da0a886
SDJ
68232017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6824
6825 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6826 (OBS): Add gdb_tilde_expand.o.
6827
289a6840
SM
68282017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6829
6830 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6831 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6832
256642e8
PA
68332017-09-29 Pedro Alves <palves@redhat.com>
6834
6835 * ax.c (gdb_parse_agent_expr): Constify.
6836 * ax.h (gdb_parse_agent_expr): Constify.
6837 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6838 Constify.
6839 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6840 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6841 * remote-utils.h (read_ptid): Constify.
6842 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6843 (process_point_options, process_serial_event): Constify.
6844 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6845 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6846 (cmd_qtbuffer): Constify.
6847
5b9ca4d4
PA
68482017-09-29 Pedro Alves <palves@redhat.com>
6849
6850 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6851 fails.
6852
94c207e0
PA
68532017-09-29 Pedro Alves <palves@redhat.com>
6854
6855 * linux-low.c (handle_extended_wait): Pass parent thread instead
6856 of process to thread_db_notice_clone.
6857 * linux-low.h (thread_db_notice_clone): Replace parent process
6858 parameter with parent thread parameter.
6859 * thread-db.c (find_one_thread): Add comment.
6860 (thread_db_notice_clone): Replace parent process parameter with
6861 parent thread parameter. Temporarily switch to the parent thread.
6862
75352e28
SDJ
68632017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6864
6865 * gdbthread.h: Include "common-gdbthread.h".
6866 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6867 "if" when validating the ptid.
6868 * remote-utils.c: Include "gdbthread.h".
6869 (prepare_resume_reply): Use "switch_to_thread".
6870 * target.c (done_accessing_memory): Likewise.
6871
ad339634
AA
68722017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6873
6874 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6875 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6876 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6877 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6878 s390x-gs-linux64-ipa.o to ipa_obj.
6879 * linux-s390-low.c (HWCAP_S390_GS): New define.
6880 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6881 New functions.
6882 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6883 (s390_arch_setup): Check for guarded-storage support and choose
6884 appropriate tdesc.
6885 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6886 init_registers_s390x_gs_linux64.
6887 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6888 enum value.
6889 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6890 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6891
cc4d742f
SM
68922017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6893
6894 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6895
f6327dcb
KB
68962017-09-21 Kevin Buettner <kevinb@redhat.com>
6897
6898 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6899 (thread_db_thread_handle): Declare.
6900 * linux-low.c (linux_target_ops): Initialize thread_handle.
6901 * server.c (handle_qxfer_threads_worker): Add support for
6902 "handle" attribute.
6903 * target.h (struct target_ops): Add new function pointer,
6904 thread_handle.
6905 (target_thread_handle): Define.
6906 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6907 field in lwp.
6908 (thread_db_thread_handle): New function.
6909
86299109
KB
69102017-09-21 Kevin Buettner <kevinb@redhat.com>
6911
6912 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6913 * linux-low.h (thread_db_notice_clone): Declare.
6914 * thread-db.c (thread_db_notice_clone): New function.
6915
f557a88a
PA
69162017-09-21 Pedro Alves <palves@redhat.com>
6917
6918 * server.c (gdb_read_memory, handle_status, process_serial_event)
6919 (handle_serial_event, handle_target_event): Adjust to
6920 set_desired_thread prototype change.
6921 * target.c (set_desired_thread): Remove 'use_general' parameter
6922 and adjust.
6923 * target.h (set_desired_thread): Remove 'use_general' parameter.
6924
223ffa71
TT
69252017-09-20 Tom Tromey <tom@tromey.com>
6926
6927 * target.c (target_terminal::terminal_state): Define.
6928 (target_terminal::init): Rename from target_terminal_init.
6929 (target_terminal::inferior): Rename from
6930 target_terminal_inferior.
6931 (target_terminal::ours): Rename from target_terminal_ours.
6932 (target_terminal::ours_for_output, target_terminal::info): New.
6933
04fd3ba9
SM
69342017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6935
6936 * server.c (accumulate_file_name_length): Remove.
6937 (emit_dll_description): Adjust to std::string change.
6938 (handle_qxfer_libraries): Use std::string to hold document.
6939
5e187554
SM
69402017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6941
6942 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6943 return type of xml_escape_text.
6944 * server.c (emit_dll_description): Likewise.
6945
1526853e
SM
69462017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6947
6948 * server.c (captured_main): Accept argument for --selftest.
6949 Update run_tests call.
6950 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6951 when registering selftests.
6952
c4dfafab
SDJ
69532017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6954
6955 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6956 instead of "VEC" for "target_desc.reg_defs".
6957 (regcache_cpy): Likewise.
6958 (registers_to_string): Likewise.
6959 (registers_from_string): Likewise.
6960 (find_regno): Likewise.
6961 (supply_regblock): Likewise.
6962 (regcache_raw_read_unsigned): Likewise.
6963 * tdesc.c (init_target_desc): Likewise.
6964 (tdesc_create_reg): Likewise.
6965 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6966 (struct target_desc) <reg_defs>: Convert to "std::vector".
6967 (target_desc): Do not initialize "reg_defs".
6968 (~target_desc): Update code to use "std::vector" instead of "VEC"
6969 for "target_desc.reg_defs".
6970 (operator==): Likewise.
6971
124aceb4
SM
69722017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6973
6974 * inferiors.h (thread_to_gdb_id): Remove.
6975 * inferiors.c (thread_to_gdb_id): Remove.
6976 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6977 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6978 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6979 Likewise.
6980 * nto-low.c (nto_fetch_registers, nto_store_registers,
6981 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6982
96cde54f
SM
69832017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6984
6985 * inferiors.h (gdb_id_to_thread_id): Remove.
6986 * inferiors.c (gdb_id_to_thread_id): Remove.
6987 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6988 removal. Move pid declaration closer to where it's used.
6989
e8ca139e
SM
69902017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6991
6992 * server.c (handle_detach): New function.
6993 (process_serial_event): Move code out, call handle_detach.
6994
f8a4e119
SM
69952017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6996
6997 * server.c (require_running): Rename to ...
6998 (require_running_or_return): ... this ...
6999 (require_running_or_break): ... and this.
7000 (handle_query, process_serial_event): Adjust.
7001
0eb0a407
SM
70022017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7003
7004 * linux-low.c (linux_set_resume_request): Remove unused
7005 variables.
7006
785922a5
SM
70072017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7008
7009 * server.c (first_thread_of): Remove.
7010 (process_serial_event): Replace usage of first_thread_of with
7011 find_any_thread_of_pid.
7012 * tracepoint.c (same_process_p): Remove.
7013 (gdb_agent_about_to_close): Replace usage of same_process_p with
7014 find_any_thread_of_pid.
7015 * linux-x86-low.c (same_process_callback): Remove.
7016 (x86_arch_setup_process_callback): Replace usage of
7017 same_process_callback with find_any_thread_of_pid.
7018 * thread-db.c (any_thread_of): Remove.
7019 (switch_to_process): Replace usage of any_thread_of with
7020 find_any_thread_of_pid.
7021 * inferiors.c (thread_pid_matches_callback): Remove.
7022 (find_thread_process): Adjust to use find_any_thread_of_pid.
7023
a059f00c
SDJ
70242017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7025
7026 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7027 with "!VEC_empty".
a059f00c 7028
cc397f3a
SDJ
70292017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7030
7031 * linux-low.c (handle_extended_wait): Use
7032 "allocate_target_description" instead of "XNEW".
7033 * linux-x86-low.c (initialize_low_arch): Likewise.
7034
22916b07
YQ
70352017-09-05 Yao Qi <yao.qi@linaro.org>
7036
7037 * configure.srv (srv_i386_regobj): Remove.
7038 (srv_amd64_regobj): Remove.
7039 (srv_regobj): Set it to "" for x86 non-linux targets.
7040 * linux-x86-tdesc.c (i386_linux_read_description):
7041 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7042 (init_registers_i386): Remove the declaration.
7043 (tdesc_i386): Remove the declaration.
7044 (lynx_i386_arch_setup): Call i386_create_target_description.
7045 * nto-x86-low.c: Likewise.
7046 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7047 [!__x86_64__]: include arch/i386.h.
7048 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7049
38602d55
YQ
70502017-09-05 Yao Qi <yao.qi@linaro.org>
7051
7052 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7053 i386/amd64-XXX-linux from it.
7054
44b886ff
YQ
70552017-09-05 Yao Qi <yao.qi@linaro.org>
7056
7057 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7058 false.
7059 (ipa_amd64_linux_regobj): Remove.
7060 (ipa_x32_linux_regobj): Remove.
7061
b4570e4b
YQ
70622017-09-05 Yao Qi <yao.qi@linaro.org>
7063
7064 * Makefile.in (arch-amd64.o): New rule.
7065 * configure.srv: Append arch-amd64.o.
7066 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7067 (get_ipa_tdesc): Call amd64_linux_read_description.
7068 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7069 and init_registers_amd64_XXX.
7070 * linux-x86-low.c (x86_linux_read_description): Call
7071 amd64_linux_read_description.
7072 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7073 (initialize_low_arch): Don't call init_registers_x32_XXX and
7074 init_registers_amd64_XXX.
7075 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7076 and tdesc_amd64_XXX.
7077 [__x86_64__] (amd64_tdesc_test): New function.
7078 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7079 and init_registers_amd64_XXX.
7080 * linux-x86-tdesc.c: Include arch/amd64.h.
7081 (xcr0_to_tdesc_idx): New function.
7082 (i386_linux_read_description): New function.
7083 (amd64_get_ipa_tdesc_idx): New function.
7084 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7085 (amd64_get_ipa_tdesc): Declare.
7086
d1f28ea2
YQ
70872017-09-05 Yao Qi <yao.qi@linaro.org>
7088
7089 * configure.srv (srv_i386_linux_xmlfiles): Remove
7090 i386/i386-XXX-linux.xml from it.
7091
25a93583
YQ
70922017-09-05 Yao Qi <yao.qi@linaro.org>
7093
7094 * configure.srv: Set srv_i386_linux_regobj empty if $development
7095 is false.
7096 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7097 initialize_low_tdesc.
7098 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7099 with #if initialize_low_tdesc.
7100 * linux-x86-tdesc-selftest.c: New file.
7101 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7102
5f035c07
YQ
71032017-09-05 Yao Qi <yao.qi@linaro.org>
7104
7105 * Makefile.in (arch-i386.o): New rule.
7106 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7107 (x86_64-*-linux*): Likewise.
7108 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7109 include arch/i386.h.
7110 (i386_linux_read_description): Remove code and call
7111 i386_create_target_description.
7112 * tdesc.c (allocate_target_description): New function.
7113 * tdesc.h (set_tdesc_architecture): Remove declaration.
7114 (set_tdesc_osabi): Likewise.
7115
0abe8a89
YQ
71162017-09-05 Yao Qi <yao.qi@linaro.org>
7117
7118 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7119 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7120 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7121 .xmltarget.
7122 * server.c (get_features_xml): Call tdesc_get_features_xml.
7123 * tdesc.c (set_tdesc_architecture): New function.
7124 (set_tdesc_osabi): New function.
7125 (tdesc_get_features_xml): New function.
7126 (tdesc_create_feature): Add an argument.
7127 * tdesc.h (struct target_desc) <features>: New field.
7128 <arch, osabi>: New field.
7129 (~target_desc): xfree features, arch, and osabi.
7130 (target_desc::oerator==): Don't compare .xmltarget.
7131 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7132 (set_tdesc_osabi): Likewise.
7133 (tdesc_get_features_xml): Likewise.
7134
0a188386
YQ
71352017-09-05 Yao Qi <yao.qi@linaro.org>
7136
7137 * linux-x86-tdesc.c: Include selftest.h.
7138 (i386_tdesc_test): New function.
7139 (initialize_low_tdesc): Call selftests::register_test.
7140 * tdesc.h: Include regdef.h.
7141 (target_desc): Override operator == and !=.
7142
f49ff000
YQ
71432017-09-05 Yao Qi <yao.qi@linaro.org>
7144
7145 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7146 (ipa_obj): Likewise.
7147 * linux-i386-ipa.c: Include common/x86-xstate.h
7148 (get_ipa_tdesc): Call i386_linux_read_description.
7149 (initialize_low_tracepoint): Don't call init_registers_XXX
7150 functions, call initialize_low_tdesc instead.
7151 * linux-x86-low.c (x86_linux_read_description): Call
7152 i386_linux_read_description.
7153 (initialize_low_arch): Don't call init_registers_i386_XXX
7154 functions, call initialize_low_tdesc.
7155 * linux-x86-tdesc.c: New file.
7156 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7157 (i386_get_ipa_tdesc_idx): Declare.
7158 (i386_get_ipa_tdesc): Declare.
7159 (initialize_low_tdesc): Declare.
7160
2b68ef2f
YQ
71612017-09-05 Yao Qi <yao.qi@linaro.org>
7162
7163 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7164 instead of 0.
7165
f7000548
YQ
71662017-09-05 Yao Qi <yao.qi@linaro.org>
7167
7168 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7169 * regcache.c (get_thread_regcache): Use VEC_length.
7170 (init_register_cache): Likewise.
7171 (regcache_cpy): Likewise.
7172 (registers_to_string): Iterate reg_defs via VEC_iterate.
7173 (find_regno): Likewise.
7174 (find_register_by_number): Use VEC_index.
7175 (register_size): Call find_register_by_number.
7176 (register_data): Call find_register_by_number.
7177 (supply_regblock): Use VEC_length.
7178 (regcache_raw_read_unsigned): Likewise.
7179 * tdesc.c (init_target_desc): Iterate reg_defs via
7180 VEC_iterate.
7181 (default_description): Update initializer.
7182 (copy_target_description): Don't update field num_registers.
7183 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7184 <num_registers>: Remove.
7185
50a421ac
SM
71862017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7187
7188 * Makefile.in (.SECONDARY): Define target.
7189
23fdd69e
SM
71902017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7191
7192 * linux-low.c (linux_wait_1): Adjust.
7193 * server.c (queue_stop_reply_callback): Adjust.
7194
0a2dde4a
SDJ
71952017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7196
7197 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7198 QEnvironmentUnset and QEnvironmentReset packets.
7199 (handle_query): Inform remote that QEnvironmentHexEncoded,
7200 QEnvironmentUnset and QEnvironmentReset are supported.
7201
6afd337d
SM
72022017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7203
7204 * inferiors.h (inferior_target_data): Rename to ...
7205 (thread_target_data): ... this.
7206 (inferior_regcache_data): Rename to ...
7207 (thread_regcache_data): ... this.
7208 (set_inferior_regcache_data): Rename to ...
7209 (set_thread_regcache_data): ... this.
7210 * inferiors.c (inferior_target_data): Rename to ...
7211 (thread_target_data): ... this.
7212 (inferior_regcache_data): Rename to ...
7213 (thread_regcache_data): ... this.
7214 (set_inferior_regcache_data): Rename to ...
7215 (set_thread_regcache_data): ... this.
7216 (free_one_thread): Update.
7217 * linux-low.h (get_thread_lwp): Update.
7218 * regcache.c (get_thread_regcache): Update.
7219 (regcache_invalidate_thread): Update.
7220 (free_register_cache_thread): Update.
7221 * win32-i386-low.c (update_debug_registers_callback): Update.
7222 (win32_get_current_dr): Update.
7223 * win32-low.c (thread_rec): Update.
7224 (delete_thread_info): Update.
7225 (continue_one_thread): Update.
7226 (suspend_one_thread): Update.
7227
a160cc46
SM
72282017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7229
7230 * inferiors.c (set_inferior_target_data): Remove.
7231 * inferiors.h (set_inferior_target_data): Remove.
7232
6d580b63
YQ
72332017-08-18 Yao Qi <yao.qi@linaro.org>
7234
7235 * Makefile.in (OBS): Add selftest.o.
7236 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7237 * configure, config.in: Re-generated.
7238 * server.c: Include common/sefltest.h.
7239 (captured_main): Handle option --selftest.
7240
f5a29eb0
YQ
72412017-08-09 Yao Qi <yao.qi@linaro.org>
7242
7243 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7244 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7245 i386-avx-mpx.o and i386-mmx.o.
7246 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7247 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7248 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7249 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7250 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7251 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7252 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7253 i386/amd64-avx-mpx.xml.
7254
57757c2f
YQ
72552017-08-09 Yao Qi <yao.qi@linaro.org>
7256
7257 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7258 and x32-avx-avx512.o.
7259 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7260 i386/x32-avx-avx512.xml.
7261
229d26fc
SM
72622017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7263
7264 * tracepoint.h (enum class fast_tpoint_collect_result): New
7265 enumeration.
7266 (fast_tracepoint_collecting): Change return type to
7267 fast_tpoint_collect_result.
7268 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7269 * linux-low.h: Include tracepoint.h.
7270 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7271 fast_tpoint_collect_result.
7272 * linux-low.c (handle_tracepoints): Adjust.
7273 (linux_fast_tracepoint_collecting): Change return type to
7274 fast_tpoint_collect_result.
7275 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7276 linux_wait_1, stuck_in_jump_pad_callback,
7277 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7278 proceed_one_lwp): Adjust to type change.
7279
2e1e43e1
YQ
72802017-07-10 Yao Qi <yao.qi@linaro.org>
7281
7282 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7283
adc764e7
YQ
72842017-06-29 Yao Qi <yao.qi@linaro.org>
7285
7286 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7287 Remove.
7288 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7289
a206891a
SM
72902017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7291
7292 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7293
9a6c7d9c
SDJ
72942017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7295
7296 * linux-low.c (linux_create_inferior): Adjust code to access the
7297 environment information via 'gdb_environ' class.
7298 * lynx-low.c (lynx_create_inferior): Likewise.
7299 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7300 (get_environ): Return a pointer to 'our_environ'.
7301 (captured_main): Initialize 'our_environ'.
7302 * server.h (get_environ): Adjust prototype.
7303 * spu-low.c (spu_create_inferior): Adjust code to access the
7304 environment information via 'gdb_environ' class.
7305
ae3e2ccf
SM
73062017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7307
7308 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7309 usage of "register" keyword.
7310
3e019bdc
SM
73112017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7312
7313 * configure: Re-generate.
7314
8465943a
SM
73152017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7316
7317 * configure: Re-generate.
7318
cf0dd6f0
SM
73192017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7320
7321 * Makefile.in (COMPILE.pre): Add "-x c++".
7322
9845682b
SDJ
73232017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7324
7325 * fork-child.c: Conditionally include <signal.h>.
7326
aefd8b33
SDJ
73272017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7328
7329 * server.c (handle_general_set): Handle new packet
7330 "QStartupWithShell".
7331 (handle_query): Add "QStartupWithShell" to the list of supported
7332 packets.
7333 (gdbserver_usage): Add help text explaining the
7334 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7335 options.
7336 (captured_main): Recognize and act upon the presence of the new
7337 CLI options.
7338
2090129c
SDJ
73392017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7340 Pedro Alves <palves@redhat.com>
7341
7342 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7343 * configure: Regenerate.
7344 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7345 "fork-inferior.o".
7346 (i[34567]86-*-lynxos*): Likewise.
7347 (spu*-*-*): Likewise.
7348 * fork-child.c: New file.
7349 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7350 and "environ.h".
7351 (linux_ptrace_fun): New function.
7352 (linux_create_inferior): Adjust function prototype to reflect
7353 change on "target.h". Adjust function code to use
7354 "fork_inferior".
7355 (linux_request_interrupt): Delete "signal_pid".
7356 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7357 (lynx_ptrace_fun): New function.
7358 (lynx_create_inferior): Adjust function prototype to reflect
7359 change on "target.h". Adjust function code to use
7360 "fork_inferior".
7361 * nto-low.c (nto_create_inferior): Adjust function prototype and
7362 code to reflect change on "target.h". Update comments.
7363 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7364 "common-terminal.h" and "environ.h".
7365 (terminal_fd): Moved to fork-child.c.
7366 (old_foreground_pgrp): Likewise.
7367 (restore_old_foreground_pgrp): Likewise.
7368 (last_status): Make it global.
7369 (last_ptid): Likewise.
7370 (our_environ): New variable.
7371 (startup_with_shell): Likewise.
7372 (program_name): Likewise.
7373 (program_argv): Rename to...
7374 (program_args): ...this.
7375 (wrapper_argv): New variable.
7376 (start_inferior): Delete function.
7377 (get_exec_wrapper): New function.
7378 (get_exec_file): Likewise.
7379 (get_environ): Likewise.
7380 (prefork_hook): Likewise.
7381 (post_fork_inferior): Likewise.
7382 (postfork_hook): Likewise.
7383 (postfork_child_hook): Likewise.
7384 (handle_v_run): Update code to deal with arguments coming from the
7385 remote host. Update calls from "start_inferior" to
7386 "create_inferior".
7387 (captured_main): Likewise. Initialize environment variable. Call
7388 "have_job_control".
7389 * server.h (post_fork_inferior): New prototype.
7390 (get_environ): Likewise.
7391 (last_status): Declare.
7392 (last_ptid): Likewise.
7393 (signal_pid): Likewise.
7394 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7395 (spu_ptrace_fun): New function.
7396 (spu_create_inferior): Adjust function prototype to reflect change
7397 on "target.h". Adjust function code to use "fork_inferior".
7398 * target.c (target_terminal_init): New function.
7399 (target_terminal_inferior): Likewise.
7400 (target_terminal_ours): Likewise.
7401 * target.h: Include <vector>.
7402 (struct target_ops) <create_inferior>: Update prototype.
7403 (create_inferior): Update macro.
7404 * utils.c (gdb_flush_out_err): New function.
7405 * win32-low.c (win32_create_inferior): Adjust function prototype
7406 and code to reflect change on "target.h".
7407
043a4934
SDJ
74082017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7409
7410 * inferiors.c (switch_to_thread): New function.
7411
15652511
SDJ
74122017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7413
7414 * Makefile.in (SFILE): Add "common/job-control.c".
7415 (OBS): Add "job-control.o".
7416
21ea5acd
SDJ
74172017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7418
7419 * Makefile: Remove "@host_makefile_frag@".
7420
e13cb306
PA
74212017-05-05 Pedro Alves <palves@redhat.com>
7422
7423 * configure: Regenerate.
7424
c94fee56
SDJ
74252017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7426
7427 * configure: Regenerate.
7428
a0ff9e1a
SM
74292017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7430
7431 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7432 software_single_step change of return type to
7433 std::vector<CORE_ADDR>.
7434 * linux-low.c (install_software_single_step_breakpoints):
7435 Likewise.
7436 * linux-low.h (install_software_single_step_breakpoints):
7437 Likewise.
7438
be628ab8
SDJ
74392017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7440
7441 * remote-utils.c: Include "gdb_termios.h" instead of
7442 "terminal.h".
7443 * terminal.h: Delete file.
7444
7c5ded6a
SDJ
74452017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7446
7447 * server.c: Include <vector>.
7448 <program_argv, wrapper_argv>: Convert to std::vector.
7449 (start_inferior): Rewrite function to use C++.
7450 (handle_v_run): Likewise. Update code that calculates the argv
7451 based on the vRun packet; use C++.
7452 (captured_main): Likewise.
7453
436252de
SM
74542017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7455
7456 * server.c (handle_v_cont): Initialize thread_resume::thread
7457 with null_ptid.
7458
9bf2a700
PA
74592017-04-05 Pedro Alves <palves@redhat.com>
7460
7461 * configure: Regenerate.
7462
a121b7c1
PA
74632017-04-05 Pedro Alves <palves@redhat.com>
7464
7465 * gdbreplay.c (sync_error): Constify.
7466 * linux-x86-low.c (push_opcode): Constify.
7467
21c8a587
PA
74682017-04-05 Pedro Alves <palves@redhat.com>
7469
7470 * win32-low.c (get_child_debug_event)
7471 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7472 Report TARGET_WAITKIND_SPURIOUS instead.
7473
fb32b4f7
PA
74742017-04-05 Pedro Alves <palves@redhat.com>
7475
e79be6e5
SM
7476 * remote-utils.c (remote_prepare, remote_open): Constify.
7477 * remote-utils.h (remote_prepare, remote_open): Constify.
7478 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7479
65dd1e59
SM
74802017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7481
7482 * Makefile.in (clean): Clear .deps.
7483
8fa5b777
SM
74842017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7485
7486 * .gitignore: Remove generated files, replace with wildcard.
7487 * (clean): Replace removal of generated files with wildcard.
7488 (version.c): Replace with...
7489 (version-generated.c): ...this.
7490 (xml-builtin.c): Replace with...
7491 (xml-builtin-generated.c): ...this.
7492 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7493 (%.c: *regformats*): Replace with...
7494 (%-generated.c: *regformats*): ...this.
7495
a12e714b
MF
74962017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7497
7498 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7499 (xtensa_fill_gregset): Call collect_register_by_name for
7500 threadptr register.
7501 (xtensa_store_gregset): Call supply_register_by_name for
7502 threadptr register.
7503
1a09b50a
MF
75042017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7505
7506 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7507 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7508 (xtensa_store_gregset): Call supply_register for all registers in
7509 a0_regnum..a0_regnum + C0_NREGS range.
7510
1a01e7c6
SM
75112017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7512
7513 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7514 (ax-ipa.o: ax.c): Remove.
7515 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7516 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7517 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7518 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7519 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7520
36bc18a8
SM
75212017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7522
7523 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7524 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7525 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7526 (errors-ipa.o: ../common/errors.c): Remove.
7527 (format-ipa.o: ../common/format.c): Remove.
7528 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7529
a8ebe3d5
SM
75302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7531
7532 * Makefile.in (%-ipa.o: %.c): New rule.
7533 (tracepoint-ipa.o: tracepoint.c): Remove.
7534 (utils-ipa.o: utils.c): Remove.
7535 (remote-utils-ipa.o: remote-utils.c): Remove.
7536 (regcache-ipa.o: regcache.c): Remove.
7537 (i386-linux-ipa.o: i386-linux.c): Remove.
7538 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7539 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7540 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7541 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7542 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7543 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7544 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7545 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7546 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7547 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7548 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7549 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7550 (aarch64-ipa.o: aarch64.c): Remove.
7551 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7552 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7553 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7554 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7555 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7556 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7557 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7558 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7559 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7560 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7561 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7562 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7563 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7564 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7565 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7566 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7567 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7568 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7569 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7570 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7571 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7572 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7573 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7574 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7575 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7576 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7577 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7578 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7579 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7580 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7581 (tdesc-ipa.o: tdesc.c): Remove.
7582 (x32-linux-ipa.o: x32-linux.c): Remove.
7583 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7584 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7585
50cfacb7
SM
75862017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7587
7588 * Makefile.in (%.o: ../arch/%.c): New rule.
7589 (arm.o: ../arch/arm.c): Remove.
7590 (arm-linux.o: ../arch/arm-linux.c): Remove.
7591 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7592 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7593
c5a22423
SM
75942017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7595
7596 * Makefile.in (%.o: ../nat/%.c): New rule.
7597 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7598 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7599 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7600 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7601 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7602 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7603 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7604 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7605 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7606 (linux-personality.o: ../nat/linux-personality.c): Remove.
7607 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7608 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7609 (x86-linux.o: ../nat/x86-linux.c): Remove.
7610 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7611 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7612
6bda016b
SM
76132017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7614
7615 * Makefile.in (%.o: ../common/%.c): New rule.
7616 (signals.o: ../common/signals.c): Remove.
7617 (print-utils.o: ../common/print-utils.c): Remove.
7618 (rsp-low.o: ../common/rsp-low.c): Remove.
7619 (common-utils.o: ../common/common-utils.c): Remove.
7620 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7621 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7622 (vec.o: ../common/vec.c): Remove.
7623 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7624 (xml-utils.o: ../common/xml-utils.c): Remove.
7625 (ptid.o: ../common/ptid.c): Remove.
7626 (buffer.o: ../common/buffer.c): Remove.
7627 (format.o: ../common/format.c): Remove.
7628 (filestuff.o: ../common/filestuff.c): Remove.
7629 (agent.o: ../common/agent.c): Remove.
7630 (errors.o: ../common/errors.c): Remove.
7631 (environ.o: ../common/environ.c): Remove.
7632 (common-debug.o: ../common/common-debug.c): Remove.
7633 (cleanups.o: ../common/cleanups.c): Remove.
7634 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7635 (fileio.o: ../common/fileio.c): Remove.
7636 (common-regcache.o: ../common/common-regcache.c): Remove.
7637 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7638 (new-op.o: ../common/new-op.c): Remove.
7639 (btrace-common.o: ../common/btrace-common.c): Remove.
7640
21122961
SM
76412017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7642
7643 * Makefile.in (%.o: ../target/%.c): New rule.
7644 (waitstatus.o: ../target/waitstatus.c): Remove.
7645
c362e621
SM
76462017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7647
7648 * Makefile.in
7649 (%.c: ../regformats/%.dat,
7650 (%.c: ../regformats/arm/%.dat,
7651 (%.c: ../regformats/i386/%.dat,
7652 (%.c: ../regformats/rs6000/%.dat): New rules.
7653 (aarch64.c): Remove.
7654 (reg-arm.c): Remove.
7655 (arm-with-iwmmxt.c): Remove.
7656 (arm-with-vfpv2.c): Remove.
7657 (arm-with-vfpv3.c): Remove.
7658 (arm-with-neon.c): Remove.
7659 (reg-bfin.c): Remove.
7660 (reg-cris.c): Remove.
7661 (reg-crisv32.c): Remove.
7662 (i386.c): Remove.
7663 (i386-linux.c): Remove.
7664 (i386-avx.c): Remove.
7665 (i386-avx-linux.c): Remove.
7666 (i386-avx-avx512.c): Remove.
7667 (i386-avx-avx512-linux.c): Remove.
7668 (i386-mpx.c): Remove.
7669 (i386-mpx-linux.c): Remove.
7670 (i386-avx-mpx-avx512-pku.c): Remove.
7671 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7672 (i386-avx-mpx.c): Remove.
7673 (i386-avx-mpx-linux.c): Remove.
7674 (i386-mmx.c): Remove.
7675 (i386-mmx-linux.c): Remove.
7676 (reg-ia64.c): Remove.
7677 (reg-m32r.c): Remove.
7678 (reg-m68k.c): Remove.
7679 (reg-cf.c): Remove.
7680 (mips-linux.c): Remove.
7681 (mips-dsp-linux.c): Remove.
7682 (mips64-linux.c): Remove.
7683 (mips64-dsp-linux.c): Remove.
7684 (nios2-linux.c): Remove.
7685 (powerpc-32.c): Remove.
7686 (powerpc-32l.c): Remove.
7687 (powerpc-altivec32l.c): Remove.
7688 (powerpc-cell32l.c): Remove.
7689 (powerpc-vsx32l.c): Remove.
7690 (powerpc-isa205-32l.c): Remove.
7691 (powerpc-isa205-altivec32l.c): Remove.
7692 (powerpc-isa205-vsx32l.c): Remove.
7693 (powerpc-e500l.c): Remove.
7694 (powerpc-64l.c): Remove.
7695 (powerpc-altivec64l.c): Remove.
7696 (powerpc-cell64l.c): Remove.
7697 (powerpc-vsx64l.c): Remove.
7698 (powerpc-isa205-64l.c): Remove.
7699 (powerpc-isa205-altivec64l.c): Remove.
7700 (powerpc-isa205-vsx64l.c): Remove.
7701 (s390-linux32.c): Remove.
7702 (s390-linux32v1.c): Remove.
7703 (s390-linux32v2.c): Remove.
7704 (s390-linux64.c): Remove.
7705 (s390-linux64v1.c): Remove.
7706 (s390-linux64v2.c): Remove.
7707 (s390-te-linux64.c): Remove.
7708 (s390-vx-linux64.c): Remove.
7709 (s390-tevx-linux64.c): Remove.
7710 (s390x-linux64.c): Remove.
7711 (s390x-linux64v1.c): Remove.
7712 (s390x-linux64v2.c): Remove.
7713 (s390x-te-linux64.c): Remove.
7714 (s390x-vx-linux64.c): Remove.
7715 (s390x-tevx-linux64.c): Remove.
7716 (tic6x-c64xp-linux.c): Remove.
7717 (tic6x-c64x-linux.c): Remove.
7718 (tic6x-c62x-linux.c): Remove.
7719 (reg-sh.c): Remove.
7720 (reg-sparc64.c): Remove.
7721 (reg-spu.c): Remove.
7722 (amd64.c): Remove.
7723 (amd64-linux.c): Remove.
7724 (amd64-avx.c): Remove.
7725 (amd64-avx-linux.c): Remove.
7726 (amd64-avx-avx512.c): Remove.
7727 (amd64-avx-avx512-linux.c): Remove.
7728 (amd64-mpx.c): Remove.
7729 (amd64-mpx-linux.c): Remove.
7730 (amd64-avx-mpx-avx512-pku.c): Remove.
7731 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7732 (amd64-avx-mpx.c): Remove.
7733 (amd64-avx-mpx-linux.c): Remove.
7734 (x32.c): Remove.
7735 (x32-linux.c): Remove.
7736 (x32-avx.c): Remove.
7737 (x32-avx-linux.c): Remove.
7738 (x32-avx-avx512.c): Remove.
7739 (x32-avx-avx512-linux.c): Remove.
7740 (reg-xtensa.c): Remove.
7741 (reg-tilegx.c): Remove.
7742 (reg-tilegx32.c): Remove.
7743
1672e0d9
SDJ
77442017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7745
7746 * Makefile.in (SFILES): Add "common/environ.c".
7747 (OBJS): Add "common/environ.h".
7748
239b6d10
WT
77492017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7750
7751 * configure.ac: Check if the fs_base and gs_base members of
7752 `struct user_regs_struct' exist.
7753 * config.in: Regenerated.
7754 * configure: Likewise.
7755
694b382c
AT
77562017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7757
7758 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7759 target_read_memory.
7760 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7761 (get_next_pcs_syscall_next_pc): Likewise.
7762
7dc53023
LM
77632016-12-23 Luis Machado <lgustavo@codesourcery.com>
7764
7765 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7766 * nto-x86-low.c: Likewise.
7767
ad02e4fe
SM
77682016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7769
7770 * Makefile.in: Include disable-implicit-rules.mk.
7771
dcb07cfa
PA
77722016-11-23 Pedro Alves <palves@redhat.com>
7773
7774 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7775 (debug_vprintf): Use std::chrono::steady_clock instead of
7776 gettimeofday. Use '.' instead of ':'.
7777 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7778 (get_timestamp): Use std::chrono::steady_clock instead of
7779 gettimeofday.
7780
8629c02c
SM
77812016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7782
7783 * Makefile.in: Fix whitespace formatting.
7784
b593ecca
SM
77852016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7786
7787 * Makefile.in (SFILES, OBS): Flatten list and order
7788 alphabetically.
7789
9986ba08
PA
77902016-11-23 Pedro Alves <palves@redhat.com>
7791
7792 * event-loop.c (handle_file_event): Use warning.
7793 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7794 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7795 Use warning.
7796
4eefa7bc
PA
77972016-11-23 Pedro Alves <palves@redhat.com>
7798
7799 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7800 output.
7801 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7802 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7803 debug_printf and debug_flush for debug output.
7804 * server.c (handle_general_set): Likewise.
7805 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7806 output.
7807
5443506e
SM
78082016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7809
7810 * Makefile.in (.c.o): Replace rule with ...
7811 (%.o: %.c): ... this one.
7812
3b165252
SM
78132016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7814
7815 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7816 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7817 make.
7818 * configure.ac: Remove checks for the make program.
7819 * configure: Re-generate.
7820
0bcda685
PA
78212016-10-28 Pedro Alves <palves@redhat.com>
7822
7823 * Makefile.in (CXX_DIALECT): Get from configure.
7824 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7825 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7826 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7827 * config.in: Regenerate.
7828 * configure: Regenerate.
7829
c3805894
YQ
78302016-10-27 Yao Qi <yao.qi@linaro.org>
7831
7832 * linux-low.c (linux_supports_range_stepping): Return true if
7833 can_software_single_step return true.
7834
89342618
YQ
78352016-10-27 Yao Qi <yao.qi@linaro.org>
7836
7837 * inferiors.c (find_inferior_in_random): New function.
7838 * inferiors.h (find_inferior_in_random): Declare.
7839 * linux-low.c (linux_wait_for_event_filtered): Call
7840 find_inferior_in_random instead of find_inferior.
7841
e3652c84
YQ
78422016-10-27 Yao Qi <yao.qi@linaro.org>
7843
7844 * linux-low.c (linux_wait_1): If single-step breakpoints are
7845 inserted, remove them.
7846
5a04c4cf
PA
78472016-10-26 Pedro Alves <palves@redhat.com>
7848
7849 * linux-low.c (handle_extended_wait): Link parent/child fork
7850 threads.
7851 (linux_wait_1): Unlink them.
7852 (linux_set_resume_request): Ignore resume requests for
7853 already-resumed and unhandled fork child threads.
7854 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7855 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7856 New functions.
7857 (handle_v_requests) <vCont>: Don't call require_running.
7858 * server.h (in_queued_stop_replies): New declaration.
7859
cb93dc7f
YQ
78602016-10-24 Yao Qi <yao.qi@linaro.org>
7861
7862 PR server/20733
7863 * linux-aarch64-low.c (append_insns): Cast the return value to
7864 'uint32_t *'.
7865
a1078bea
YQ
78662016-10-10 Yao Qi <yao.qi@linaro.org>
7867
7868 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7869
1fb77080
SDJ
78702016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7871
7872 * target.c (target_supports_multi_process): New function, moved
7873 from...
7874 * target.h (target_supports_multi_process): ... here. Remove
7875 macro.
7876
39b5a3b9
TT
78772016-10-05 Tom Tromey <tom@tromey.com>
7878
7879 PR remote/20655:
7880 * tracepoint.c (handle_tracepoint_bkpts): Check
7881 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7882
c1d0b70a
YQ
78832016-10-05 Yao Qi <yao.qi@linaro.org>
7884
7885 * configure.srv: Update the path of arm-*.xml files.
7886
0a69eedb
YQ
78872016-10-05 Terry Guo <terry.guo@arm.com>
7888 Yao Qi <yao.qi@linaro.org>
7889
7890 * Makefile.in: Adjust the path of rules.
7891 * configure.srv: Update the path of xml files.
7892 * regformats/arm-with-iwmmxt.dat: Regenerated.
7893 * regformats/arm-with-neon.dat: Likewise.
7894 * regformats/arm-with-vfpv2.dat: Likewise.
7895 * regformats/arm-with-vfpv3.dat Likewise.
7896
17e16485
YQ
78972016-09-30 Yao Qi <yao.qi@linaro.org>
7898
7899 PR gdbserver/20627
7900 * target.c (target_stop_and_wait): Don't call
7901 target_continue_no_signal, use resume_stop instead.
7902
edeeb602
YQ
79032016-09-26 Yao Qi <yao.qi@linaro.org>
7904
7905 * linux-low.c (linux_wait_1): Call debug_exit.
7906
503b1c39
PA
79072016-09-23 Pedro Alves <palves@redhat.com>
7908
7909 * Makefile.in (SFILES): Add common/new-op.c.
7910 (OBS): Add common/new-op.o.
7911 (new-op.o): New rule.
7912
74172ecf
SM
79132016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7914
7915 * .gitinore: Ignore more files.
7916
fc6cda2e
YQ
79172016-09-21 Yao Qi <yao.qi@linaro.org>
7918
7919 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7920 23.
7921
bc1e6c81
SDJ
79222016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7923
7924 * server.c (start_inferior): Call target_mourn_inferior instead of
7925 mourn_inferior; pass ptid_t argument to it.
7926 (resume): Likewise.
7927 (handle_target_event): Likewise.
7928 * target.c (target_mourn_inferior): New function.
7929 * target.h (mourn_inferior): Delete macro.
7930
0e00e962
AA
79312016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7932
7933 * linux-low.c (lwp_is_stepping): New function.
7934
1d8cb77d
CL
79352016-09-06 Carl Love <cel@us.ibm.com>
7936
7937 * server.c (start_inferior): Fixed comment, requested comment change
7938 didn't get updated correctly. Removed reference to ptrace () call as
7939 it is only true on Linux systems.
7940
7313bced
CL
79412016-09-06 Carl Love <cel@us.ibm.com>
7942
7943 * server.c (start_inferior): Do not call
7944 function target_post_create_inferior () if the
7945 inferior process has already exited.
7946
cf6de44d
PA
79472016-09-05 Pedro Alves <palves@redhat.com>
7948
7949 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7950 (COMPILE.pre, CC_LD): Use CXX directly.
7951 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7952 * acinclude.m4: Don't include build-with-cxx.m4.
7953 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7954 * configure: Regenerate.
7955
c1da6748
AT
79562016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7957
7958 PR gdb/19495
7959 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7960 call writing data to own_buf.
7961
f2b9e3df
SDJ
79622016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7963
7964 * target.c (mywait): Call target_wait instead of
7965 the_target->wait.
7966 (target_wait): New function.
7967
049a8570
SDJ
79682016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7969
7970 * server.c (start_inferior): New variable 'ptid'. Replace calls
7971 to the_target->resume by target_continue{,_no_signal}, depending
7972 on the case.
7973 * target.c (target_stop_and_wait): Call target_continue_no_signal
7974 instead of the_target->resume.
7975 (target_continue): New function.
7976
3aa5cfa0
AT
79772016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7978
7979 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7980
754653a7
AZ
79812016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7982
7983 PR server/20491
7984 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7985 ps_prochandle.
7986 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7987 * linux-arm-low.c (ps_get_thread_area): Likewise.
7988 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7989 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7990 * linux-mips-low.c (ps_get_thread_area): Likewise.
7991 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7992 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7993 * linux-x86-low.c (ps_get_thread_area): Likewise.
7994 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7995
ed036b40
PA
79962016-08-19 Pedro Alves <palves@redhat.com>
7997
7998 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7999
c8ef42ee
PA
80002016-08-19 Pedro Alves <palves@redhat.com>
8001
8002 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8003 comment. Use memcpy instead of casting through unsigned long.
8004
9c235a72
PA
80052016-08-19 Pedro Alves <palves@redhat.com>
8006
8007 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8008 allocating around 0x80000000.
8009
201506da
PA
80102016-08-19 Pedro Alves <palves@redhat.com>
8011
8012 PR gdb/20415
8013 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8014 (x32-avx512-linux-ipa.o): New rules.
8015 * configure.ac (x86_64-*-linux*): New x32 check.
8016 * configure.srv (ipa_x32_linux_regobj): New.
8017 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8018 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8019 descriptions.
8020 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8021 descriptions.
8022 * configure: Regenerate.
8023
f348d89a
PA
80242016-08-09 Pedro Alves <palves@redhat.com>
8025
8026 PR gdb/18653
8027 * Makefile.in (OBS): Add signals-state-save-restore.o.
8028 (signals-state-save-restore.o): New rule.
8029 * config.in: Regenerate.
8030 * configure: Regenerate.
8031 * linux-low.c: Include "signals-state-save-restore.h".
8032 (linux_create_inferior): Call
8033 restore_original_signals_state.
8034 * server.c: Include "dispositions-save-restore.h".
8035 (captured_main): Call save_original_signals_state.
8036
1baf5149
PA
80372016-08-05 Pedro Alves <palves@redhat.com>
8038
8039 * configure: Regenerate.
8040
fcd4a73d
YQ
80412016-08-04 Yao Qi <yao.qi@linaro.org>
8042
8043 * linux-low.c (regsets_fetch_inferior_registers): Check
8044 errno is ESRCH or not.
8045
979659d0
YQ
80462016-08-02 Yao Qi <yao.qi@linaro.org>
8047
8048 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8049 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8050 (thread_db_load_search): Update.
8051 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8052 td_ta_set_event and td_ta_event_getmsg.
8053
6598661d
PA
80542016-07-26 Pedro Alves <palves@redhat.com>
8055
8056 PR server/20414
8057 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8058 of unsigned long for 64-bit registers and use uint32_t instead of
8059 unsigned int for 32-bit registers.
8060
9cf12d57
PA
80612016-07-26 Pedro Alves <palves@redhat.com>
8062
8063 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8064 to 'ptrace'.
8065
305450ed
TT
80662016-07-21 Tom Tromey <tom@tromey.com>
8067
8068 * configure: Rebuild.
8069
2583da7c
YQ
80702016-07-21 Yao Qi <yao.qi@linaro.org>
8071
8072 * mem-break.c (find_gdb_breakpoint): Cast bp to
8073 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8074
21536b36
YQ
80752016-07-21 Yao Qi <yao.qi@linaro.org>
8076
8077 * server.c (handle_v_requests): Support s and S actions
8078 if target_supports_software_single_step return true.
8079
8901d193
YQ
80802016-07-21 Yao Qi <yao.qi@linaro.org>
8081
8082 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8083 is resume_step, call maybe_hw_step.
8084 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8085 and unstop them.
8086 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8087 breakpoints or not.
8088 (proceed_one_lwp): If resume request is resume_step, install
8089 reinsert breakpoints and call maybe_hw_step.
8090
0e9a339e
YQ
80912016-07-21 Yao Qi <yao.qi@linaro.org>
8092
8093 * linux-low.c (proceed_one_lwp): Declare.
8094 (linux_resume_one_thread): Remove local variable 'step'.
8095 Lift code enqueue signal. Call proceed_one_lwp instead of
8096 linux_resume_one_lwp.
8097
4281b351
YQ
80982016-07-21 Yao Qi <yao.qi@linaro.org>
8099
8100 * linux-low.c (linux_resume_one_thread): Call
8101 enqueue_pending_signal.
8102
984a2c04
YQ
81032016-07-21 Yao Qi <yao.qi@linaro.org>
8104
8105 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8106 * inferiors.c (do_restore_current_thread_cleanup): New function.
8107 (make_cleanup_restore_current_thread): Likewise.
8108 * linux-low.c (install_software_single_step_breakpoints): Call
8109 make_cleanup_restore_current_thread. Switch current_thread to
8110 thread.
8111
bec903c9
YQ
81122016-07-21 Yao Qi <yao.qi@linaro.org>
8113
8114 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8115 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8116 (clone_one_breakpoint): Likewise.
8117 (delete_reinsert_breakpoints): Change parameter to thread.
8118 Callers updated.
8119 (has_reinsert_breakpoints): Likewise.
8120 (uninsert_reinsert_breakpoints): Likewise.
8121 (reinsert_reinsert_breakpoints): Likewise.
8122 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8123 (delete_reinsert_breakpoints): Likewise.
8124 (reinsert_reinsert_breakpoints): Likewise.
8125 (uninsert_reinsert_breakpoints): Likewise.
8126 (has_reinsert_breakpoints): Likewise.
8127
63c40ec7
YQ
81282016-07-21 Yao Qi <yao.qi@linaro.org>
8129
8130 * inferiors.c (get_thread_process): Make parameter const.
8131 * inferiors.h (get_thread_process): Update declaration.
8132 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8133 Add new parameters child_thread and parent_thread. Callers
8134 updated.
8135 * mem-break.h (clone_all_breakpoints): Update declaration.
8136
9aa76cd0
YQ
81372016-07-21 Yao Qi <yao.qi@linaro.org>
8138
8139 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8140 <command_list, handler>: Remove.
8141 (struct gdb_breakpoint): New.
8142 (struct other_breakpoint): New.
8143 (struct reinsert_breakpoint): New.
8144 (is_gdb_breakpoint): New function.
8145 (any_persistent_commands): Update command_list if
8146 is_gdb_breakpoint returns true.
8147 (set_breakpoint): Create breakpoints according to their types.
8148 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8149 (set_gdb_breakpoint_1): Likewise.
8150 (set_gdb_breakpoint): Likewise.
8151 (clear_breakpoint_conditions): Change parameter type to
8152 'struct gdb_breakpoint *'.
8153 (clear_breakpoint_commands): Likewise.
8154 (clear_breakpoint_conditions_and_commands): Likewise.
8155 (add_condition_to_breakpoint): Likewise.
8156 (add_breakpoint_condition): Likewise.
8157 (add_commands_to_breakpoint): Likewise.
8158 (check_breakpoints): Check other_breakpoint.
8159 (clone_one_breakpoint): Clone breakpopint according to its type.
8160 * mem-break.h (struct gdb_breakpoint): Declare.
8161 (set_gdb_breakpoint): Update declaration.
8162 (clear_breakpoint_conditions_and_commands): Likewise.
8163 (add_breakpoint_condition): Likewise.
8164 (add_breakpoint_commands): Likewise.
8165 * server.c (process_point_options): Change parameter type to
8166 'struct gdb_breakpoint *'.
8167
811f8301
YQ
81682016-07-21 Yao Qi <yao.qi@linaro.org>
8169
8170 * mem-break.c (set_breakpoint_at): Rename it to ...
8171 (set_breakpoint_type_at): ... it.
8172 (set_breakpoint_at): Call set_breakpoint_type_at.
8173 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8174 * mem-break.h (set_breakpoint_at): Update comments.
8175
b1c51e36
CLT
81762016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8177
8178 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8179 to buf parameter.
8180 (nios2_store_gregset): Likewise.
8181
ced2dffb
PA
81822016-07-01 Pedro Alves <palves@redhat.com>
8183 Antoine Tremblay <antoine.tremblay@ericsson.com>
8184
8185 * linux-low.c: Change interface to take the target lwp_info
8186 pointer directly and return void. Handle detaching from a zombie
8187 thread.
8188 (linux_detach_lwp_callback): New function.
8189 (linux_detach): Detach from the leader thread after detaching from
8190 the clone threads.
8191
2ac09a5b
YQ
81922016-06-28 Yao Qi <yao.qi@linaro.org>
8193
8194 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8195 for variable new_offset.
8196 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8197 (aarch64_ftrace_insn_reloc_cb): Likewise.
8198 (aarch64_ftrace_insn_reloc_tb): Likewise.
8199 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8200 PRIx64 instead of PRIx32.
8201
79e7fd4f
YQ
82022016-06-28 Yao Qi <yao.qi@linaro.org>
8203
8204 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8205 (the_low_target): Install arm_get_syscall_trapinfo.
8206
061fc021
YQ
82072016-06-28 Yao Qi <yao.qi@linaro.org>
8208
8209 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8210 function.
8211 (the_low_target): Install aarch64_get_syscall_trapinfo.
8212
4cc32bec
YQ
82132016-06-28 Yao Qi <yao.qi@linaro.org>
8214
8215 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8216 Callers updated.
8217 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8218 Remove parameter sysno.
8219 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8220 sysret.
8221
782c1122
AA
82222016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8223
8224 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8225 (s390_emit_ne_goto): Likewise.
8226 (s390_emit_lt_goto): Likewise.
8227 (s390_emit_le_goto): Likewise.
8228 (s390_emit_gt_goto): Likewise.
8229 (s390_emit_ge_goto): Likewise.
8230 (s390x_emit_eq_goto): Likewise.
8231 (s390x_emit_ne_goto): Likewise.
8232 (s390x_emit_lt_goto): Likewise.
8233 (s390x_emit_le_goto): Likewise.
8234 (s390x_emit_gt_goto): Likewise.
8235 (s390x_emit_ge_goto): Likewise.
8236 (s390_emit_ops_impl): Mark variable static.
8237 (s390x_emit_ops): Likewise.
8238
2e7b624b
YQ
82392016-06-17 Yao Qi <yao.qi@linaro.org>
8240
8241 * linux-low.c (handle_extended_wait): Call
8242 uninsert_reinsert_breakpoints for the parent process. Remove
8243 reinsert breakpoints from the child process. Reinsert them to
8244 the parent process when vfork is done.
8245 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8246 (reinsert_reinsert_breakpoints): New function.
8247 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8248 (reinsert_reinsert_breakpoints): Declare.
8249
8a81c5d7
YQ
82502016-06-17 Yao Qi <yao.qi@linaro.org>
8251
8252 * linux-low.c (handle_extended_wait): If the parent is doing
8253 step-over, remove the reinsert breakpoints from the forked child.
8254
f50bf8e5
YQ
82552016-06-17 Yao Qi <yao.qi@linaro.org>
8256
8257 * linux-low.c (unsuspend_all_lwps): Declare.
8258 (linux_low_filter_event): If thread exited, call finish_step_over.
8259 If step-over is finished, unsuspend other threads.
8260
8376a3cb
YQ
82612016-06-17 Yao Qi <yao.qi@linaro.org>
8262
8263 * linux-low.c (linux_resume_one_lwp_throw): Assert
8264 has_reinsert_breakpoints returns false.
8265 * mem-break.c (delete_disabled_breakpoints): Assert
8266 bp type isn't reinsert_breakpoint.
8267
f79b145d
YQ
82682016-06-17 Yao Qi <yao.qi@linaro.org>
8269
8270 * linux-low.c (maybe_hw_step): New function.
8271 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8272 (finish_step_over): Switch current_thread to lwp temporarily,
8273 and assert has_reinsert_breakpoints returns true.
8274 (proceed_one_lwp): Call maybe_hw_step.
8275 * mem-break.c (has_reinsert_breakpoints): New function.
8276 * mem-break.h (has_reinsert_breakpoints): Declare.
8277
0ae534d2
JT
82782016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8279
8280 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8281
fcdad592
YQ
82822016-05-17 Yao Qi <yao.qi@linaro.org>
8283
8284 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8285 instead of find_inferior.
8286
9e784964
YQ
82872016-05-05 Yao Qi <yao.qi@linaro.org>
8288
8289 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8290 Initialize res to zero.
8291
cf2ebb6e
YQ
82922016-05-05 Yao Qi <yao.qi@linaro.org>
8293
8294 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8295 to uint32_t.
8296
c1aebf87
UW
82972016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8298
8299 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8300 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8301 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8302
35fd2deb 83032016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8304 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8305
8306 * tracepoint.c (write_inferior_int8): New function.
8307 (cmd_qtenable_disable): Write enable flag using
8308 write_inferior_int8.
8309
484b3c32
YQ
83102016-04-25 Yao Qi <yao.qi@linaro.org>
8311
8312 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8313 (need_step_over_p): Return zero if the LWP has pending signals
8314 can be delivered on software single step target.
8315
85ba7d86
YQ
83162016-04-25 Yao Qi <yao.qi@linaro.org>
8317
8318 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8319 return instead of error.
8320
3539aa13
YQ
83212016-04-22 Yao Qi <yao.qi@linaro.org>
8322
8323 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8324 to 23.
8325
5b061e98
YQ
83262016-04-22 Yao Qi <yao.qi@linaro.org>
8327
8328 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8329 signal when stepping over breakpoint with software single
8330 step.
8331
3451269c
PA
83322016-04-21 Pedro Alves <palves@redhat.com>
8333
8334 * linux-s390-low.c (s390_collect_ptrace_register)
8335 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8336 add casts.
8337 (s390_check_regset): Use void * instead of gdb_byte *.
8338
a2358508
PA
83392016-04-20 Pedro Alves <palves@redhat.com>
8340
8341 * configure: Renegerate.
8342
6885166d
YQ
83432016-04-20 Yao Qi <yao.qi@linaro.org>
8344
8345 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8346 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8347 number 16.
8348 (arm_store_gregset): Likewise.
8349
2b863f51
WT
83502016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8351
8352 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8353 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8354 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8355 (amd64-avx-mpx-linux.c): New rules.
8356 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8357 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8358 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8359 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8360 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8361 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8362 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8363 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8364 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8365 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8366 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8367 * linux-x86-low.c (x86_linux_read_description): Add case for
8368 X86_XSTATE_AVX_MPX_MASK.
8369 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8370 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8371 init_registers_i386_avx_mpx_linux.
8372 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8373 (initialize_low_tracepoint): Call
8374 init_registers_i386_avx_mpx_linux.
8375 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8376 (initialize_low_tracepoint): Call
8377 init_registers_amd64_avx_mpx_linux.
8378 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8379 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8380 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8381 declarations.
8382
9b30624b
PA
83832016-04-18 Pedro Alves <palves@redhat.com>
8384
8385 * configure: Regenerate.
8386
45e3745e
AT
83872016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8388
8389 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8390 (aarch64_emit_sub): Likewise.
8391
2afc13ff
PA
83922016-04-12 Pedro Alves <palves@redhat.com>
8393
8394 * utils.c (prepare_to_throw_exception): Delete.
8395
6e774b13
SM
83962016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8397
8398 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8399
4dca19f8
MK
84002016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8401
8402 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8403
d0a9981f
MK
84042016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8405
8406 * linux-aarch64-ipa.c: Add <elf.h> include.
8407 * linux-ppc-ipa.c: Add <elf.h> include.
8408 * linux-s390-ipa.c: Add <elf.h> include.
8409
252db07e
MK
84102016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8411
8412 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8413 (get_raw_reg_ptr): Likewise.
8414 (get_trace_state_variable_value_ptr): Likewise.
8415 (set_trace_state_variable_value_ptr): Likewise.
8416 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8417 char *.
8418
14e2b6d9
MK
84192016-03-31 Wei-cheng Wang <cole945@gmail.com>
8420 Marcin Kościelnicki <koriakin@0x04.net>
8421
8422 PR/17221
8423 * linux-ppc-low.c (emit_insns): New function.
8424 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8425 (ppc_emit_prologue): New function.
8426 (ppc_emit_epilogue): New function.
8427 (ppc_emit_add): New function.
8428 (ppc_emit_sub): New function.
8429 (ppc_emit_mul): New function.
8430 (ppc_emit_lsh): New function.
8431 (ppc_emit_rsh_signed): New function.
8432 (ppc_emit_rsh_unsigned): New function.
8433 (ppc_emit_ext): New function.
8434 (ppc_emit_zero_ext): New function.
8435 (ppc_emit_log_not): New function.
8436 (ppc_emit_bit_and): New function.
8437 (ppc_emit_bit_or): New function.
8438 (ppc_emit_bit_xor): New function.
8439 (ppc_emit_bit_not): New function.
8440 (ppc_emit_equal): New function.
8441 (ppc_emit_less_signed): New function.
8442 (ppc_emit_less_unsigned): New function.
8443 (ppc_emit_ref): New function.
8444 (ppc_emit_const): New function.
8445 (ppc_emit_reg): New function.
8446 (ppc_emit_pop): New function.
8447 (ppc_emit_stack_flush): New function.
8448 (ppc_emit_swap): New function.
8449 (ppc_emit_stack_adjust): New function.
8450 (ppc_emit_call): New function.
8451 (ppc_emit_int_call_1): New function.
8452 (ppc_emit_void_call_2): New function.
8453 (ppc_emit_if_goto): New function.
8454 (ppc_emit_goto): New function.
8455 (ppc_emit_eq_goto): New function.
8456 (ppc_emit_ne_goto): New function.
8457 (ppc_emit_lt_goto): New function.
8458 (ppc_emit_le_goto): New function.
8459 (ppc_emit_gt_goto): New function.
8460 (ppc_emit_ge_goto): New function.
8461 (ppc_write_goto_address): New function.
8462 (ppc_emit_ops_impl): New static variable.
8463 (ppc64v1_emit_prologue): New function.
8464 (ppc64v2_emit_prologue): New function.
8465 (ppc64_emit_epilogue): New function.
8466 (ppc64_emit_add): New function.
8467 (ppc64_emit_sub): New function.
8468 (ppc64_emit_mul): New function.
8469 (ppc64_emit_lsh): New function.
8470 (ppc64_emit_rsh_signed): New function.
8471 (ppc64_emit_rsh_unsigned): New function.
8472 (ppc64_emit_ext): New function.
8473 (ppc64_emit_zero_ext): New function.
8474 (ppc64_emit_log_not): New function.
8475 (ppc64_emit_bit_and): New function.
8476 (ppc64_emit_bit_or): New function.
8477 (ppc64_emit_bit_xor): New function.
8478 (ppc64_emit_bit_not): New function.
8479 (ppc64_emit_equal): New function.
8480 (ppc64_emit_less_signed): New function.
8481 (ppc64_emit_less_unsigned): New function.
8482 (ppc64_emit_ref): New function.
8483 (ppc64_emit_const): New function.
8484 (ppc64v1_emit_reg): New function.
8485 (ppc64v2_emit_reg): New function.
8486 (ppc64_emit_pop): New function.
8487 (ppc64_emit_stack_flush): New function.
8488 (ppc64_emit_swap): New function.
8489 (ppc64v1_emit_call): New function.
8490 (ppc64v2_emit_call): New function.
8491 (ppc64v1_emit_int_call_1): New function.
8492 (ppc64v2_emit_int_call_1): New function.
8493 (ppc64v1_emit_void_call_2): New function.
8494 (ppc64v2_emit_void_call_2): New function.
8495 (ppc64_emit_if_goto): New function.
8496 (ppc64_emit_eq_goto): New function.
8497 (ppc64_emit_ne_goto): New function.
8498 (ppc64_emit_lt_goto): New function.
8499 (ppc64_emit_le_goto): New function.
8500 (ppc64_emit_gt_goto): New function.
8501 (ppc64_emit_ge_goto): New function.
8502 (ppc64v1_emit_ops_impl): New static variable.
8503 (ppc64v2_emit_ops_impl): New static variable.
8504 (ppc_emit_ops): New function.
8505 (linux_low_target): Wire in ppc_emit_ops.
8506
a2174ba4
MK
85072016-03-31 Wei-cheng Wang <cole945@gmail.com>
8508 Marcin Kościelnicki <koriakin@0x04.net>
8509
8510 PR/17221
8511 * Makefile.in: Add powerpc-*-ipa.o
8512 * configure.srv: Add ipa_obj for powerpc*-linux.
8513 * linux-ppc-ipa.c: New file.
8514 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8515 includes.
8516 (PPC_FIELD): New macro.
8517 (PPC_SEXT): New macro.
8518 (PPC_OP6): New macro.
8519 (PPC_BO): New macro.
8520 (PPC_LI): New macro.
8521 (PPC_BD): New macro.
8522 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8523 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8524 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8525 (ppc_get_thread_area): New function.
8526 (is_elfv2_inferior): New function.
8527 (gen_ds_form): New function.
8528 (GEN_STD): New macro.
8529 (GEN_STDU): New macro.
8530 (GEN_LD): New macro.
8531 (GEN_LDU): New macro.
8532 (gen_d_form): New function.
8533 (GEN_ADDI): New macro.
8534 (GEN_ADDIS): New macro.
8535 (GEN_LI): New macro.
8536 (GEN_LIS): New macro.
8537 (GEN_ORI): New macro.
8538 (GEN_ORIS): New macro.
8539 (GEN_LWZ): New macro.
8540 (GEN_STW): New macro.
8541 (GEN_STWU): New macro.
8542 (gen_xfx_form): New function.
8543 (GEN_MFSPR): New macro.
8544 (GEN_MTSPR): New macro.
8545 (GEN_MFCR): New macro.
8546 (GEN_MTCR): New macro.
8547 (GEN_SYNC): New macro.
8548 (GEN_LWSYNC): New macro.
8549 (gen_x_form): New function.
8550 (GEN_OR): New macro.
8551 (GEN_MR): New macro.
8552 (GEN_LWARX): New macro.
8553 (GEN_STWCX): New macro.
8554 (GEN_CMPW): New macro.
8555 (gen_md_form): New function.
8556 (GEN_RLDICL): New macro.
8557 (GEN_RLDICR): New macro.
8558 (gen_i_form): New function.
8559 (GEN_B): New macro.
8560 (GEN_BL): New macro.
8561 (gen_b_form): New function.
8562 (GEN_BNE): New macro.
8563 (GEN_LOAD): New macro.
8564 (GEN_STORE): New macro.
8565 (gen_limm): New function.
8566 (gen_atomic_xchg): New function.
8567 (gen_call): New function.
8568 (ppc_relocate_instruction): New function.
8569 (ppc_install_fast_tracepoint_jump_pad): New function.
8570 (ppc_get_min_fast_tracepoint_insn_len): New function.
8571 (ppc_get_ipa_tdesc_idx): New function.
8572 (the_low_target): Wire in the new functions.
8573 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8574 tdescs.
8575 * linux-ppc-tdesc.h: New file.
8576
a13c4696
MK
85772016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8578
8579 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8580 (alloc_jump_pad_buffer): New function.
8581 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8582 (alloc_jump_pad_buffer): New function.
8583 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8584 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8585 (alloc_jump_pad_buffer): New function.
8586 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8587 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8588 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8589 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8590
1cda1512
MK
85912016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8592
8593 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8594 * linux-amd64-ipa.c: Likewise.
8595 * linux-i386-ipa.c: Likewise.
8596 * linux-s390-ipa.c: Likewise.
8597 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8598 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8599 set_trace_state_variable_value_ptr.
8600 (struct ipa_sym_addresses): Likewise.
8601 (symbol_list): Likewise.
8602 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8603 accessing gdb_collect directly.
8604 (gdb_collect_ptr_type): New typedef.
8605 (get_raw_reg_ptr_type): New typedef.
8606 (get_trace_state_variable_value_ptr_type): New typedef.
8607 (set_trace_state_variable_value_ptr_type): New typedef.
8608 (gdb_collect_ptr): New global.
8609 (get_raw_reg_ptr): New global.
8610 (get_trace_state_variable_value_ptr): New global.
8611 (set_trace_state_variable_value_ptr): New global.
8612 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8613 accessing get_raw_reg directly.
8614 (get_get_tsv_func_addr): Likewise for
8615 get_trace_state_variable_value_ptr.
8616 (get_set_tsv_func_addr): Likewise for
8617 set_trace_state_variable_value_ptr.
8618 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8619
72fb5488
SM
86202016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8621
8622 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8623
28170b88
MK
86242016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8625
8626 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8627 packets.
8628 (relocate_instruction): Remove own_buf.
8629 * server.c (own_buf): Make global.
8630 (handle_v_requests): Make global.
8631 * server.h (own_buf): New declaration.
8632 (handle_v_requests): New prototype.
8633
f39e8743
MK
86342016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8635
8636 PR 18377
8637 * linux-s390-low.c (add_insns): New function.
8638 (s390_emit_prologue): New function.
8639 (s390_emit_epilogue): New function.
8640 (s390_emit_add): New function.
8641 (s390_emit_sub): New function.
8642 (s390_emit_mul): New function.
8643 (s390_emit_lsh): New function.
8644 (s390_emit_rsh_signed): New function.
8645 (s390_emit_rsh_unsigned): New function.
8646 (s390_emit_ext): New function.
8647 (s390_emit_log_not): New function.
8648 (s390_emit_bit_and): New function.
8649 (s390_emit_bit_or): New function.
8650 (s390_emit_bit_xor): New function.
8651 (s390_emit_bit_not): New function.
8652 (s390_emit_equal): New function.
8653 (s390_emit_less_signed): New function.
8654 (s390_emit_less_unsigned): New function.
8655 (s390_emit_ref): New function.
8656 (s390_emit_if_goto): New function.
8657 (s390_emit_goto): New function.
8658 (s390_write_goto_address): New function.
8659 (s390_emit_litpool): New function.
8660 (s390_emit_const): New function.
8661 (s390_emit_call): New function.
8662 (s390_emit_reg): New function.
8663 (s390_emit_pop): New function.
8664 (s390_emit_stack_flush): New function.
8665 (s390_emit_zero_ext): New function.
8666 (s390_emit_swap): New function.
8667 (s390_emit_stack_adjust): New function.
8668 (s390_emit_set_r2): New function.
8669 (s390_emit_int_call_1): New function.
8670 (s390_emit_void_call_2): New function.
8671 (s390_emit_eq_goto): New function.
8672 (s390_emit_ne_goto): New function.
8673 (s390_emit_lt_goto): New function.
8674 (s390_emit_le_goto): New function.
8675 (s390_emit_gt_goto): New function.
8676 (s390_emit_ge_goto): New function.
8677 (s390x_emit_prologue): New function.
8678 (s390x_emit_epilogue): New function.
8679 (s390x_emit_add): New function.
8680 (s390x_emit_sub): New function.
8681 (s390x_emit_mul): New function.
8682 (s390x_emit_lsh): New function.
8683 (s390x_emit_rsh_signed): New function.
8684 (s390x_emit_rsh_unsigned): New function.
8685 (s390x_emit_ext): New function.
8686 (s390x_emit_log_not): New function.
8687 (s390x_emit_bit_and): New function.
8688 (s390x_emit_bit_or): New function.
8689 (s390x_emit_bit_xor): New function.
8690 (s390x_emit_bit_not): New function.
8691 (s390x_emit_equal): New function.
8692 (s390x_emit_less_signed): New function.
8693 (s390x_emit_less_unsigned): New function.
8694 (s390x_emit_ref): New function.
8695 (s390x_emit_if_goto): New function.
8696 (s390x_emit_const): New function.
8697 (s390x_emit_call): New function.
8698 (s390x_emit_reg): New function.
8699 (s390x_emit_pop): New function.
8700 (s390x_emit_stack_flush): New function.
8701 (s390x_emit_zero_ext): New function.
8702 (s390x_emit_swap): New function.
8703 (s390x_emit_stack_adjust): New function.
8704 (s390x_emit_int_call_1): New function.
8705 (s390x_emit_void_call_2): New function.
8706 (s390x_emit_eq_goto): New function.
8707 (s390x_emit_ne_goto): New function.
8708 (s390x_emit_lt_goto): New function.
8709 (s390x_emit_le_goto): New function.
8710 (s390x_emit_gt_goto): New function.
8711 (s390x_emit_ge_goto): New function.
8712 (s390_emit_ops): New function.
8713 (struct linux_target_ops): Fill in emit_ops hook.
8714
abd9baf9
MK
87152016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8716
8717 PR 18377
8718 * Makefile.in: Add s390 IPA files.
8719 * configure.srv: Build IPA for s390.
8720 * linux-s390-ipa.c: New file.
8721 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8722 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8723 (tdesc_s390_linux32): Likewise.
8724 (init_registers_s390_linux32v1): Likewise.
8725 (tdesc_s390_linux32v1): Likewise.
8726 (init_registers_s390_linux32v2): Likewise.
8727 (tdesc_s390_linux32v2): Likewise.
8728 (init_registers_s390_linux64): Likewise.
8729 (tdesc_s390_linux64): Likewise.
8730 (init_registers_s390_linux64v1): Likewise.
8731 (tdesc_s390_linux64v1): Likewise.
8732 (init_registers_s390_linux64v2): Likewise.
8733 (tdesc_s390_linux64v2): Likewise.
8734 (init_registers_s390_te_linux64): Likewise.
8735 (tdesc_s390_te_linux64): Likewise.
8736 (init_registers_s390_vx_linux64): Likewise.
8737 (tdesc_s390_vx_linux64): Likewise.
8738 (init_registers_s390_tevx_linux64): Likewise.
8739 (tdesc_s390_tevx_linux64): Likewise.
8740 (init_registers_s390x_linux64): Likewise.
8741 (tdesc_s390x_linux64): Likewise.
8742 (init_registers_s390x_linux64v1): Likewise.
8743 (tdesc_s390x_linux64v1): Likewise.
8744 (init_registers_s390x_linux64v2): Likewise.
8745 (tdesc_s390x_linux64v2): Likewise.
8746 (init_registers_s390x_te_linux64): Likewise.
8747 (tdesc_s390x_te_linux64): Likewise.
8748 (init_registers_s390x_vx_linux64): Likewise.
8749 (tdesc_s390x_vx_linux64): Likewise.
8750 (init_registers_s390x_tevx_linux64): Likewise.
8751 (tdesc_s390x_tevx_linux64): Likewise.
8752 (have_hwcap_s390_vx): New static variable.
8753 (s390_arch_setup): Fill have_hwcap_s390_vx.
8754 (s390_get_thread_area): New function.
8755 (s390_ft_entry_gpr_esa): New const.
8756 (s390_ft_entry_gpr_zarch): New const.
8757 (s390_ft_entry_misc): New const.
8758 (s390_ft_entry_fr): New const.
8759 (s390_ft_entry_vr): New const.
8760 (s390_ft_main_31): New const.
8761 (s390_ft_main_64): New const.
8762 (s390_ft_exit_fr): New const.
8763 (s390_ft_exit_vr): New const.
8764 (s390_ft_exit_misc): New const.
8765 (s390_ft_exit_gpr_esa): New const.
8766 (s390_ft_exit_gpr_zarch): New const.
8767 (append_insns): New function.
8768 (s390_relocate_instruction): New function.
8769 (s390_install_fast_tracepoint_jump_pad): New function.
8770 (s390_get_min_fast_tracepoint_insn_len): New function.
8771 (s390_get_ipa_tdesc_idx): New function.
8772 (struct linux_target_ops): Wire in the above functions.
8773 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8774 * linux-s390-tdesc.h: New file.
8775
a4105d04
MK
87762016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8777
8778 * linux-s390-low.c (s390_supports_tracepoints): New function.
8779 (struct linux_target_ops): Fill supports_tracepoints hook.
8780
35ac8b3e
YQ
87812016-03-18 Yao Qi <yao.qi@linaro.org>
8782
8783 * linux-low.c (lwp_signal_can_be_delivered): New function.
8784 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8785
94610ec4
YQ
87862016-03-18 Yao Qi <yao.qi@linaro.org>
8787
8788 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8789 0 if signal is enqueued. Remove 'signal' from one debugging
8790 message. Move one debugging message to some lines below.
8791 Remove code setting 'signal' to 0.
8792
80aea927
YQ
87932016-03-18 Yao Qi <yao.qi@linaro.org>
8794
8795 * linux-low.c (linux_low_filter_event): Remove redundant
8796 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8797
b04fd3be
MK
87982016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8799
8800 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8801 (struct linux_target_ops): Wire in the above.
8802
c40c8d4b
YQ
88032016-03-03 Yao Qi <yao.qi@linaro.org>
8804
8805 * linux-low.c: Update comments to start_step_over.
8806
0f8288ae
YQ
88072016-03-03 Yao Qi <yao.qi@linaro.org>
8808
8809 PR server/19736
8810 * linux-low.c (handle_extended_wait): Set child suspended
8811 if event_lwp->bp_reinsert isn't zero.
8812
fdbd04a8
YQ
88132016-03-02 Yao Qi <yao.qi@linaro.org>
8814
8815 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8816 enqueue_pending_signal.
8817
6896a8fa
MK
88182016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8819
8820 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8821 is actually loaded.
8822
ab503087
MK
88232016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8824
8825 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8826 (s390_regmap_3264) [!__s390x__]: New global.
8827 (s390_collect_ptrace_register): Skip map entries containing -1.
8828 (s390_supply_ptrace_register): Ditto.
8829 (s390_fill_gprs_high): New function.
8830 (s390_store_gprs_high): New function.
8831 (s390_regsets): Add NT_S390_HIGH_GPRS.
8832 (s390_get_hwcap): Enable on 31-bit.
8833 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8834 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8835 Detect NT_S390_HIGH_GPRS.
8836 (s390_usrregs_info_3264): Enable on 31-bit.
8837 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8838 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8839
ae91f625
MK
88402016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8841
8842 PR gdb/13808
8843 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8844 * configure.srv: Ditto.
8845 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8846 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8847 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8848 (init_registers_amd64_linux): Remove prototype.
8849 (tdesc_amd64_linux): Remove declaration.
8850 (get_ipa_tdesc): New function.
8851 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8852 initialize remaining tdescs.
8853 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8854 (init_registers_i386_linux): Remove prototype.
8855 (tdesc_i386_linux): Remove declaration.
8856 (get_ipa_tdesc): New function.
8857 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8858 initialize remaining tdescs.
8859 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8860 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8861 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8862 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8863 (x86_get_ipa_tdesc_idx): New function.
8864 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8865 * linux-x86-tdesc.h: New file.
8866 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8867 (target_get_ipa_tdesc_idx): New macro.
8868 * tracepoint.c (ipa_tdesc_idx): New macro.
8869 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8870 (symbol_list): Add ipa_tdesc_idx.
8871 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8872 (ipa_tdesc): Remove.
8873 (ipa_tdesc_idx): New variable.
8874 (get_context_regcache): Use get_ipa_tdesc.
8875 (gdb_collect): Ditto.
8876 (gdb_probe): Ditto.
8877 * tracepoint.h (get_ipa_tdesc): New prototype.
8878 (ipa_tdesc): Remove.
8879
e7ad2f14
PA
88802016-02-24 Pedro Alves <palves@redhat.com>
8881
8882 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8883 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8884 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8885 Factor out common code between the USE_SIGTRAP_SIGINFO and
8886 !USE_SIGTRAP_SIGINFO blocks.
8887 (linux_low_filter_event): Call save_stop_reason instead of
8888 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8889 Update comments.
8890 (linux_wait_1): Update comments.
8891
657f9cde
WW
88922016-02-24 Wei-cheng Wang <cole945@gmail.com>
8893
8894 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8895 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8896 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8897 ppc_insert_point, ppc_remove_point.
8898
b00b61e1
MK
88992016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8900
8901 * linux-s390-low.c (s390_supports_z_point_type): New function.
8902 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8903
553cb527
YQ
89042016-02-16 Yao Qi <yao.qi@linaro.org>
8905
8906 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8907 PC. Get pc from regcache_read_pc.
8908
a5652c21
YQ
89092016-02-12 Yao Qi <yao.qi@linaro.org>
8910
8911 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8912 or linux_get_pc_32bit.
8913 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8914
ed443b61
YQ
89152016-02-12 Yao Qi <yao.qi@linaro.org>
8916
8917 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8918 arm_linux_get_next_pcs_fixup.
8919
020ecd38
MK
89202016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8921
8922 * tracepoint.c (x_tracepoint_action_download): Change
8923 write_inferior_data_ptr to write_inferior_data_pointer.
8924 (cmd_qtstart): Likewise.
8925 (write_inferior_data_ptr): Remove.
8926 (download_agent_expr): Change write_inferior_data_ptr to
8927 write_inferior_data_pointer.
8928 (download_tracepoint_1): Likewise.
8929 (download_tracepoint): Likewise.
8930 (download_trace_state_variables): Likewise.
8931
7cae9051
WW
89322016-02-11 Wei-cheng Wang <cole945@gmail.com>
8933 Marcin Kościelnicki <koriakin@0x04.net>
8934
8935 * tracepoint.c (struct tracepoint_action_ops): Remove.
8936 (struct tracepoint_action): Remove ops.
8937 (m_tracepoint_action_download, r_tracepoint_action_download)
8938 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8939 size and offset accordingly.
8940 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8941 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8942 (tracepoint_action_send, tracepoint_action_download): New functions.
8943 Helpers for trace action handlers.
8944 (add_tracepoint_action): Remove setup actions ops.
8945 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8946
9f6a71b4
YQ
89472016-02-10 Yao Qi <yao.qi@linaro.org>
8948
8949 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8950
1e94266c
SM
89512016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8952
8953 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8954 to AC_OUTPUT.
8955 * configure: Regenerate.
8956
8adce034
SM
89572016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8958
8959 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8960 void * to gdb_byte *.
8961 * linux-low.c (siginfo_fixup): Likewise.
8962 (linux_xfer_siginfo): Likewise.
8963 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8964 Likewise.
8965 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8966
93813b37
WT
89672016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8968
8969 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8970 to srv_tgtobj.
8971 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8972 to srv_tgtobj.
8973 * linux-x86-low.c [__x86_64__]: Include
8974 "nat/amd64-linux-siginfo.h".
8975 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8976 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8977 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8978 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8979 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8980 (cpt_si_fd, si_timerid, si_overrun): Move from
8981 nat/amd64-linux-siginfo.c.
8982 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8983
8424cc97
SM
89842016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8985
8986 * server.c (skip_to_semicolon): Remove.
8987 (process_point_options): Use strchrnul instead of
8988 skip_to_semicolon.
8989
4d18591b
YQ
89902016-01-26 Yao Qi <yao.qi@linaro.org>
8991
8992 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8993 * linux-low.c (install_software_single_step_breakpoints): Don't
8994 call regcache_read_pc.
8995 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8996 argument pc.
8997
d8020970
YQ
89982016-01-26 Yao Qi <yao.qi@linaro.org>
8999
9000 * linux-low.c (install_software_single_step_breakpoints): Call
9001 regcache_read_pc instead of get_pc.
9002
8b207339
YQ
90032016-01-26 Yao Qi <yao.qi@linaro.org>
9004
9005 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9006 (unblock_async_io): Rename to ...
9007 (block_unblock_async_io): ... it. New function.
9008 (enable_async_io): Don't install SIGIO handler. Unblock it
9009 instead.
9010 (disable_async_io): Don't ignore SIGIO. Block it instead.
9011 (initialize_async_io): Install SIGIO handler. Don't call
9012 unblock_async_io.
9013
18879fef
YQ
90142016-01-26 Yao Qi <yao.qi@linaro.org>
9015
9016 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9017 first character is '\003', call *the_target->request_interrupt.
9018
a0f8e08a
YQ
90192016-01-25 Yao Qi <yao.qi@linaro.org>
9020
9021 * remote-utils.c (new_thread_notify): Remove.
9022 (dead_thread_notify): Likewise.
9023 * remote-utils.h (new_thread_notify): Remove declaration.
9024 (dead_thread_notify): Likewise.
9025
cc5fd9ab
MK
90262016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9027
9028 * gdb.trace/pending.exp: Fix expected message on continue.
9029
99e8eb11
MK
90302016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9031
9032 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9033 it works properly on big-endian machines where sizeof (CORE_ADDR)
9034 != sizeof (void *).
9035
a994041d
PA
90362016-01-21 Pedro Alves <palves@redhat.com>
9037
9038 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9039 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9040 * configure: Regenerate.
9041
f7a6a40d
YQ
90422016-01-21 Yao Qi <yao.qi@linaro.org>
9043
9044 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9045 is_thumb and set it according to CPSR saved on the stack.
9046 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9047 arm_sigreturn_next_pc.
9048
6f69e520
YQ
90492016-01-18 Yao Qi <yao.qi@linaro.org>
9050
9051 * linux-low.c (linux_set_pc_64bit): New function.
9052 (linux_get_pc_64bit): New function.
9053 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9054 Declare.
9055 * linux-sparc-low.c (debug_threads): Remove declaration.
9056 (sparc_get_pc): Remove.
9057 (the_low_target): Use linux_get_pc_64bit instead of
9058 sparc_get_pc.
9059 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9060 (the_low_target): Use linux_get_pc_64bit and
9061 linux_set_pc_64bit.
9062
276d4552
YQ
90632016-01-18 Yao Qi <yao.qi@linaro.org>
9064
9065 * linux-arm-low.c (debug_threads): Remove declaration.
9066 (arm_get_pc, arm_set_pc): Remove.
9067 (the_low_target): Use linux_get_pc_32bit and
9068 linux_set_pc_32bit.
9069 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9070 (the_low_target): Use linux_get_pc_32bit and
9071 linux_set_pc_32bit.
9072 * linux-cris-low.c (debug_threads): Remove declaration.
9073 (cris_get_pc, cris_set_pc,): Remove.
9074 (the_low_target): Use linux_get_pc_32bit and
9075 linux_set_pc_32bit.
9076 * linux-crisv32-low.c (debug_threads): Remove declaration.
9077 (cris_get_pc, cris_set_pc): Remove.
9078 (the_low_target): Use linux_get_pc_32bit and
9079 linux_set_pc_32bit.
9080 * linux-low.c: Include inttypes.h.
9081 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9082 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9083 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9084 (the_low_target): Use linux_get_pc_32bit and
9085 linux_set_pc_32bit.
9086 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9087 (the_low_target): Use linux_get_pc_32bit and
9088 linux_set_pc_32bit.
9089 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9090 (the_low_target): Use linux_get_pc_32bit and
9091 linux_set_pc_32bit.
9092 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9093 (the_low_target): Use linux_get_pc_32bit and
9094 linux_set_pc_32bit.
9095 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9096 (the_low_target): Use linux_get_pc_32bit and
9097 linux_set_pc_32bit.
9098
eb0edac8
GB
90992016-01-18 Gary Benson <gbenson@redhat.com>
9100
9101 * configure.ac (AC_FUNC_FORK): New check.
9102 * config.in: Regenerate.
9103 * configure: Likewise.
9104
1b451dda
YQ
91052016-01-14 Yao Qi <yao.qi@linaro.org>
9106
9107 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9108 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9109 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9110 arm_get_next_pcs_ctor.
9111
82075af2
JS
91122016-01-12 Josh Stone <jistone@redhat.com>
9113 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9114
9115 * inferiors.h: Include "gdb_vecs.h".
9116 (struct process_info): Add syscalls_to_catch.
9117 * inferiors.c (remove_process): Free syscalls_to_catch.
9118 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9119 syscall_return stops.
9120 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9121 * server.c (handle_general_set): Handle QCatchSyscalls.
9122 (handle_query): Report support for QCatchSyscalls.
9123 * target.h (struct target_ops): Add supports_catch_syscall.
9124 (target_supports_catch_syscall): New macro.
9125 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9126 (struct lwp_info): Add syscall_state.
9127 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9128 Maintain syscall_state and syscalls_to_catch across exec.
9129 (get_syscall_trapinfo): New function, proxy to the_low_target.
9130 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9131 (linux_low_filter_event): Toggle syscall_state entry/return for
9132 syscall traps, and set it ignored for all others.
9133 (gdb_catching_syscalls_p): New function.
9134 (gdb_catch_this_syscall_p): New function.
9135 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9136 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9137 (linux_supports_catch_syscall): New function.
9138 (linux_target_ops): Install it.
9139 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9140 (the_low_target): Install it.
9141
8f13a3ce
MF
91422016-01-12 Mike Frysinger <vapier@gentoo.org>
9143
9144 * acinclude.m4: Include new ../warning.m4 file.
9145 * configure: Regenerated.
9146 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9147
5b3da067
MF
91482016-01-12 Mike Frysinger <vapier@gentoo.org>
9149
9150 * ax.c (is_goto_target): Mark static.
9151 * linux-low.c (register_addr): Likewise.
9152 (linux_fetch_registers, linux_store_registers): Likewise.
9153 * mem-break.c (any_persistent_commands): Fix old prototype.
9154 (add_commands_to_breakpoint): Mark static.
9155 * regcache.c (find_register_by_name): Delete unused func.
9156 * remote-utils.c (hex_or_minus_one): Mark static.
9157 * server.c (monitor_show_help): Mark static.
9158 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9159 handle_v_requests): Likewise.
9160
bc504a31
PA
91612016-01-12 Pedro Alves <palves@redhat.com>
9162
9163 Remove use of the registered trademark symbol throughout.
9164
5a0dd67a
YQ
91652016-01-08 Yao Qi <yao.qi@linaro.org>
9166
9167 * remote-utils.c (getpkt): If c is '\003', call target hook
9168 request_interrupt.
9169
b2ca446f
YQ
91702016-01-06 Yao Qi <yao.qi@linaro.org>
9171
9172 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9173 linux-aarch32-low.c.
9174 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9175 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9176 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9177 (thumb2_breakpoint): Declare.
9178 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9179 linux-aarch32-low.h.
9180 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9181 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9182 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9183
edd88788
JB
91842016-01-01 Joel Brobecker <brobecker@adacore.com>
9185
9186 * gdbreplay.c (gdbreplay_version): Change copyright year in
9187 version message.
9188 * server.c (gdbserver_version): Likewise.
9189
65da7f14
PP
91902015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9191
9192 * server.c (crc32_table): Delete.
9193 (crc32): Use libiberty's xcrc32 function.
9194
4abd5ed2
JB
91952015-12-22 Joel Brobecker <brobecker@adacore.com>
9196
9197 * lynx-low.c (lynx_delete_thread_callback): New function.
9198 (lynx_mourn): Properly delete our process and all of its
9199 threads. Remove call to clear_inferiors.
9200
0e50fe5c
JB
92012015-12-22 Joel Brobecker <brobecker@adacore.com>
9202
9203 * target.c (thread_search_callback): Add check that
9204 the thread_stopped target callback is not NULL before
9205 calling it.
9206
35adc03f
YQ
92072015-12-21 Yao Qi <yao.qi@linaro.org>
9208
9209 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9210 arm breakpoint.
9211
bd2b2909
AT
92122015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9213
9214 * server.c (handle_query): Call target_supports_software_single_step.
9215
7fe5e27e
AT
92162015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9217
9218 * linux-low.c (single_step): New function.
9219 (linux_resume_one_lwp_throw): Call single_step.
9220 (start_step_over): Likewise.
9221
d9311bfa
AT
92222015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9223
9224 * Makefile.in (SFILES): Append arch/arm-linux.c,
9225 arch/arm-get-next-pcs.c.
9226 (arm-linux.o): New rule.
9227 (arm-get-next-pcs.o): New rule.
9228 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9229 arm-linux.o.
9230 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9231 to linux-aarch32-low.c.
9232 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9233 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9234 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9235 (thumb2_breakpoint_len): Likewise.
9236 (arm_is_thumb_mode): Make non-static.
9237 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9238 from linux-aarch32-low.c.
9239 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9240 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9241 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9242 (thumb2_breakpoint_len): Likewise.
9243 (arm_is_thumb_mode): New declaration.
9244 * linux-arm-low.c: Include arch/arm-linux.h
9245 aarch/arm-get-next-pcs.h, sys/syscall.h.
9246 (get_next_pcs_ops): New struct.
9247 (get_next_pcs_addr_bits_remove): New function.
9248 (get_next_pcs_is_thumb): New function.
9249 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9250 (arm_sigreturn_next_pc): Likewise.
9251 (get_next_pcs_syscall_next_pc): Likewise.
9252 (arm_gdbserver_get_next_pcs): Likewise.
9253 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9254 Initialize.
9255 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9256 * server.h: Include gdb_vecs.h.
9257
68ce2059
AT
92582015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9259
9260 * Makefile.in (SFILES): Append common/common-regcache.c.
9261 (OBS): Append common-regcache.o.
9262 (common-regcache.o): New rule.
9263 * regcache.c (init_register_cache): Initialize cache to
9264 REG_UNAVAILABLE.
9265 (regcache_raw_read_unsigned): New function.
9266 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9267 register_status enum.
9268
fa5308bd
AT
92692015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9270
9271 * linux-aarch64-low.c (the_low_targets): Rename
9272 breakpoint_reinsert_addr to get_next_pcs.
9273 * linux-arm-low.c (the_low_targets): Likewise.
9274 * linux-bfin-low.c (the_low_targets): Likewise.
9275 * linux-cris-low.c (the_low_targets): Likewise.
9276 * linux-crisv32-low.c (the_low_targets): Likewise.
9277 * linux-low.c (can_software_single_step): Likewise.
9278 (install_software_single_step_breakpoints): New function.
9279 (start_step_over): Use install_software_single_step_breakpoints.
9280 * linux-low.h: New CORE_ADDR vector.
9281 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9282 get_next_pcs.
9283 * linux-mips-low.c (the_low_targets): Likewise.
9284 * linux-nios2-low.c (the_low_targets): Likewise.
9285 * linux-sparc-low.c (the_low_targets): Likewise.
9286
4a6ed09b
PA
92872015-12-17 Pedro Alves <palves@redhat.com>
9288
9289 * linux-low.c (linux_kill_one_lwp): Remove references to
9290 LinuxThreads.
9291 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9292 to 'kill'.
9293 (linux_init_signals): Delete.
9294 (initialize_low): Adjust.
9295 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9296
7544db95
PA
92972015-12-16 Pedro Alves <palves@redhat.com>
9298
9299 * configure.ac (compiler warning flags): When testing a
9300 -Wno-foo option, check whether -Wfoo works instead.
9301 * configure: Regenerate.
9302
8020350c
DB
93032015-12-11 Don Breazeal <donb@codesourcery.com>
9304
9305 * server.c (process_serial_event): Don't exit from gdbserver
9306 in remote mode if there are still active inferiors.
9307
db91f502
YQ
93082015-12-11 Yao Qi <yao.qi@linaro.org>
9309
9310 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9311 arm_breakpoint_at if the process is 32-bit.
9312
b37a6290
YQ
93132015-12-11 Yao Qi <yao.qi@linaro.org>
9314
9315 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9316 arm breakpoint.
9317
17b1509a
YQ
93182015-12-07 Yao Qi <yao.qi@linaro.org>
9319
9320 * configure.srv: Append arm.o to srv_tgtobj for
9321 aarch64*-*-linux* target.
9322 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9323 from linux-arm-low.c.
9324 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9325 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9326 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9327 (thumb2_breakpoint_len): Likewise.
9328 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9329 (arm_breakpoint_kinds): Likewise.
9330 (arm_breakpoint_kind_from_pc): Likewise.
9331 (arm_sw_breakpoint_from_kind): Likewise.
9332 (arm_breakpoint_kind_from_current_state): Likewise.
9333 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9334 (arm_sw_breakpoint_from_kind): Declare.
9335 (arm_breakpoint_kind_from_current_state): Declare.
9336 (arm_breakpoint_at): Declare.
9337 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9338 arm_sw_breakpoint_from_kind if process is 32-bit.
9339 (aarch64_breakpoint_kind_from_pc): New function.
9340 (aarch64_breakpoint_kind_from_current_state): New function.
9341 (the_low_target): Initialize fields breakpoint_kind_from_pc
9342 and breakpoint_kind_from_current_state.
9343 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9344 linux-aarch32-low.c.
9345 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9346 (arm_breakpoint, arm_breakpoint_len): Likewise.
9347 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9348 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9349 (arm_is_thumb_mode): Likewise.
9350 (arm_breakpoint_at): Likewise.
9351 (arm_breakpoint_kind_from_pc): Likewise.
9352 (arm_sw_breakpoint_from_kind): Likewise.
9353 (arm_breakpoint_kind_from_current_state): Likewise.
9354
9355 Revert:
9356 2015-08-04 Yao Qi <yao.qi@linaro.org>
9357
9358 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9359 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9360 * server.c (extended_protocol): Remove "static".
9361 * server.h (extended_protocol): Declare it.
9362
ece66d65
JS
93632015-12-04 Josh Stone <jistone@redhat.com>
9364
9365 * target.h (struct target_ops) <arch_setup>: Rename to ...
9366 (struct target_ops) <post_create_inferior>: ... this.
9367 (target_arch_setup): Rename to ...
9368 (target_post_create_inferior): ... this, calling post_create_inferior.
9369 * server.c (start_inferior): Update target_arch_setup calls to
9370 target_post_create_inferior.
9371 * linux-low.c (linux_low_ptrace_options): Forward declare.
9372 (linux_arch_setup): Update its comment for general use.
9373 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9374 (struct linux_target_ops): Use linux_post_create_inferior.
9375 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9376 to post_create_inferior.
9377 * nto-low.c (struct nto_target_ops): Likewise.
9378 * spu-low.c (struct spu_target_ops): Likewise.
9379 * win32-low.c (struct win32_target_ops): Likewise.
9380
e58c48b4
AT
93812015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9382
9383 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9384
fbec8956
AT
93852015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9386
9387 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9388 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9389 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9390 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9391 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9392 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9393 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9394 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9395 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9396 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9397 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9398 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9399
9b4c5f87
AT
94002015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9401
9402 * linux-low.c (linux_look_up_symbols): Don't call
9403 linux_supports_traceclone.
9404 * linux-low.h (thread_db_init): Remove use_events argument.
9405 * thread-db.c (thread_db_use_event): Remove global variable.
9406 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9407 (struct thread_db) <td_create_bp>: Remove field.
9408 (thread_db_create_event): Remove function.
9409 (thread_db_enable_reporting): Likewise.
9410 (find_one_thread): Don't check for thread_db_use_events.
9411 (attach_thread): Likewise.
9412 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9413 (try_thread_db_load_1): Don't check for thread_db_use_events.
9414 (thread_db_init): Remove use_events argument and thread events
9415 handling.
9416 (remove_thread_event_breakpoints): Remove function.
9417 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9418
7d00775e
AT
94192015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9420
9421 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9422 New function.
9423 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9424 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9425 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9426 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9427 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9428 Initialize.
9429 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9430 New function.
9431 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9432 * linux-low.c (can_hardware_single_step): Use
9433 supports_hardware_single_step.
9434 (can_software_single_step): New function.
9435 (start_step_over): Call can_software_single_step.
9436 (linux_supports_hardware_single_step): New function.
9437 (struct target_ops) <supports_software_single_step>: Initialize.
9438 * linux-low.h (struct linux_target_ops)
9439 <supports_hardware_single_step>: Initialize.
9440 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9441 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9442 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9443 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9444 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9445 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9446 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9447 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9448 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9449 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9450 Initialize.
9451 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9452 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9453 Initialize.
9454 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9455 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9456 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9457 New function.
9458 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9459 * target.h (struct target_ops): <supports_software_single_step>:
9460 New field.
9461 (target_supports_software_single_step): New macro.
9462
2d97cd35
AT
94632015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9464
9465 * linux-low.c (linux_wait_1): Fix pc advance condition.
9466 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9467 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9468
769ef81f
AT
94692015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9470
9471 * linux-arm-low.c (arm_is_thumb_mode): New function.
9472 (arm_breakpoint_at): Use arm_is_thumb_mode.
9473 (arm_breakpoint_kind_from_current_state): New function.
9474 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9475 Initialize.
9476 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9477 (linux_breakpoint_kind_from_current_state): New function.
9478 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9479 * linux-low.h (struct linux_target_ops)
9480 <breakpoint_kind_from_current_state>: New field.
9481 * target.h (struct target_ops): Likewise.
9482 (target_breakpoint_kind_from_current_state): New macro.
9483
1bebeeca
PA
94842015-11-30 Pedro Alves <palves@redhat.com>
9485
9486 * linux-low.c (linux_resume): Wake up the event loop before
9487 returning.
9488
a67a9fae
PA
94892015-11-30 Pedro Alves <palves@redhat.com>
9490
9491 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9492 check.
9493 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9494 to -1.
9495 * target.c (struct thread_search): New structure.
9496 (thread_search_callback): New function.
9497 (prev_general_thread): New global.
9498 (prepare_to_access_memory, done_accessing_memory): New functions.
9499 * target.h (prepare_to_access_memory, done_accessing_memory):
9500 Replace macros with function declarations.
9501
f2faf941
PA
95022015-11-30 Pedro Alves <palves@redhat.com>
9503
9504 PR 14618
9505 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9506 report TARGET_WAITKIND_NO_RESUMED.
9507 * remote-utils.c (prepare_resume_reply): Handle
9508 TARGET_WAITKIND_NO_RESUMED.
9509 * server.c (report_no_resumed): New global.
9510 (handle_query) <qSupported>: Handle "no-resumed+". Report
9511 "no-resumed+" support.
9512 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9513 return error if the client doesn't support no-resumed events.
9514 (push_stop_notification): New function.
9515 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9516 events if the client supports them.
9517
a681f9c9
PA
95182015-11-30 Pedro Alves <palves@redhat.com>
9519
9520 * linux-low.c (thread_still_has_status_pending_p): Don't check
9521 vCont;t here.
9522 (lwp_resumed): New function.
9523 (status_pending_p_callback): Return early if the LWP is not
9524 supposed to be resumed.
9525
65706a29
PA
95262015-11-30 Pedro Alves <palves@redhat.com>
9527
9528 * linux-low.c (handle_extended_wait): Assert that the LWP's
9529 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9530 thread create events, leave the new child's status pending.
9531 (linux_low_filter_event): If GDB wants to hear about thread exit
9532 events, leave the LWP marked dead and don't delete it.
9533 (linux_wait_for_event_filtered): Don't check for thread exit.
9534 (filter_exit_event): New function.
9535 (linux_wait_1): Use it, when returning an exit event.
9536 (linux_resume_one_lwp_throw): Assert that the LWP's
9537 waitstatus is TARGET_WAITKIND_IGNORE.
9538 * remote-utils.c (prepare_resume_reply): Handle
9539 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9540 * server.c (report_thread_events): New global.
9541 (handle_general_set): Handle QThreadEvents.
9542 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9543 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9544 TARGET_WAITKIND_THREAD_EXITED.
9545 * server.h (report_thread_events): Declare.
9546
56cf4bed
PA
95472015-11-30 Pedro Alves <palves@redhat.com>
9548
9549 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9550 the thread's last_resume_kind was resume_stop.
9551
500c1d85
PA
95522015-11-30 Pedro Alves <palves@redhat.com>
9553
9554 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9555 before returning.
9556
de979965
PA
95572015-11-30 Pedro Alves <palves@redhat.com>
9558
9559 * server.c (handle_v_requests): Handle vCtrlC.
9560
34c65914
PA
95612015-11-30 Pedro Alves <palves@redhat.com>
9562
9563 * gdbthread.h (find_any_thread_of_pid): Declare.
9564 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9565 functions.
9566 * server.c (handle_query): If current_thread is NULL, look for
9567 another thread of the selected process.
9568
79efa585 95692015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9570 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9571
9572 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9573 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9574 name in reply.
9575 * target.h (struct target_ops) <thread_name>: New field.
9576 (target_thread_name): New macro.
9577
80d82c19
JB
95782015-11-23 Joel Brobecker <brobecker@adacore.com>
9579
9580 * regcache.h (regcache_invalidate_pid): Add declaration.
9581 * regcache.c (regcache_invalidate_pid): New function, extracted
9582 from regcache_invalidate.
9583 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9584 Add trivial documentation comment.
9585 * lynx-low.c: Use regcache_invalidate_pid instead of
9586 regcache_invalidate.
9587
64da5dd5
JB
95882015-11-23 Joel Brobecker <brobecker@adacore.com>
9589
9590 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9591 and Elf64_auxv_t if the target is Android.
9592
37ce4055
DE
95932015-11-22 Doug Evans <xdje42@gmail.com>
9594
9595 * target.h: #include <sys/types.h>.
9596
06e03fff
PA
95972015-11-19 Pedro Alves <palves@redhat.com>
9598
9599 * linux-low.c (linux_process_qsupported): Change prototype.
9600 Adjust.
9601 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9602 Change prototype.
9603 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9604 and adjust to loop over all features.
9605 * server.c (handle_query) <qSupported>: Adjust to call
9606 target_process_qsupported once, passing it a vector of unprocessed
9607 features.
9608 * target.h (struct target_ops) <process_qsupported>: Change
9609 prototype.
9610 (target_process_qsupported): Adjust.
9611
9a084706
PA
96122015-11-19 Pedro Alves <palves@redhat.com>
9613
9614 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9615 mode.
9616 * configure: Regenerate.
9617
dad44a1f
PA
96182015-11-19 Pedro Alves <palves@redhat.com>
9619
9620 * configure: Regenerate.
9621
231c0592
YQ
96222015-11-19 Yao Qi <yao.qi@linaro.org>
9623
9624 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9625 type to uint32_t.
9626
6c1c9a8b
YQ
96272015-11-19 Yao Qi <yao.qi@linaro.org>
9628
9629 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9630 (struct aarch64_operand): Move enum out.
9631
9caa3311
YQ
96322015-11-19 Yao Qi <yao.qi@linaro.org>
9633
9634 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9635 struct user_fpsimd_state *.
9636 (aarch64_store_fpregset): Likewise.
9637
6a69a054
YQ
96382015-11-19 Yao Qi <yao.qi@linaro.org>
9639
9640 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9641 struct user_pt_regs *.
9642 (aarch64_store_gregset): Likewise.
9643
1798301e
PA
96442015-11-18 Pedro Alves <palves@redhat.com>
9645
9646 * Makefile.in (all_object_files): Add $IPA_OBJS.
9647
ce7715e2
PA
96482015-11-17 Pedro Alves <palves@redhat.com>
9649
9650 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9651 GDB_SIGNAL_0 and gdb_signal_to_string.
9652
c0879059
PA
96532015-11-17 Pedro Alves <palves@redhat.com>
9654
9655 * win32-low.c (handle_output_debug_string): Remove parameter.
9656 (win32_kill): Remove our_status local and adjust call to
9657 handle_output_debug_string.
9658 (get_child_debug_event): Adjust call to
9659 handle_output_debug_string.
9660
1996e237
SM
96612015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9662
9663 * linux-mips-low.c (mips_fill_gregset): Add cast.
9664 (mips_store_gregset): Likewise.
9665 (mips_fill_fpregset): Likewise.
9666 (mips_store_fpregset): Likewise.
9667
cbec665b
SM
96682015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9669
9670 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9671 priv.
9672
eb3e3c67
SM
96732015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9674
9675 * linux-mips-low.c (mips_linux_new_thread): Change type of
9676 watch_type to enum target_hw_bp_type.
9677
171de4b8
SM
96782015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9679
9680 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9681 Change return type to arm_hwbp_type.
9682
04248ead
SM
96832015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9684
9685 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9686 (arm_store_gregset): Likewise.
9687 * linux-arm-low.c (arm_get_hwcap): Likewise.
9688 (arm_read_description): Likewise.
9689
04b3479c
SM
96902015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9691
9692 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9693
2bc84e8a
SM
96942015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9695
9696 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9697 (ppc_fill_vsxregset): Likewise.
9698 (ppc_store_vsxregset): Likewise.
9699 (ppc_fill_vrregset): Likewise.
9700 (ppc_store_vrregset): Likewise.
9701 (ppc_fill_evrregset): Likewise.
9702 (ppc_store_evrregset): Likewise.
9703
e6c5bb05
SM
97042015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9705
9706 * linux-ppc-low.c (ppc_usrregs_info): Remove
9707 forward-declaration.
9708 (ppc_arch_setup): Move lower in file.
9709
7ea45d72
SM
97102015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9711
9712 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9713 (ps_pdwrite): Likewise.
9714
69291610
HW
97152015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9716
9717 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9718 to after assert checks.
9719
b42945fd
SM
97202015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9721
9722 * proc-service.c (ps_pdread): Add/adjust casts.
9723 (ps_pdwrite): Add/adjust casts.
9724
d6f85c84
SM
97252015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9726
9727 * server.c (handle_search_memory_1): Cast return value of
9728 memmem.
9729
f98cd059
SM
97302015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9731
9732 * server.c (write_qxfer_response): Change type of data to
9733 gdb_byte *.
9734
d2412fa5
PA
97352015-10-29 Pedro Alves <palves@redhat.com>
9736
9737 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9738
c17414a2
PA
97392015-10-29 Pedro Alves <palves@redhat.com>
9740
9741 * tracepoint.c (clear_installed_tracepoints): Add casts.
9742
e053fbc4
PA
97432015-10-29 Pedro Alves <palves@redhat.com>
9744
9745 * server.c (handle_v_cont, process_serial_event): Add enum
9746 gdb_signal casts to signal parsing code.
9747
add67df8
PA
97482015-10-29 Pedro Alves <palves@redhat.com>
9749
9750 * linux-low.h (NULL_REGSET): Define.
9751 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9752 * linux-arm-low.c (arm_regsets): Likewise.
9753 * linux-crisv32-low.c (cris_regsets): Likewise.
9754 * linux-m68k-low.c (m68k_regsets): Likewise.
9755 * linux-mips-low.c (mips_regsets): Likewise.
9756 * linux-nios2-low.c (nios2_regsets): Likewise.
9757 * linux-ppc-low.c (ppc_regsets): Likewise.
9758 * linux-s390-low.c (s390_regsets): Likewise.
9759 * linux-sh-low.c (sh_regsets): Likewise.
9760 * linux-sparc-low.c (sparc_regsets): Likewise.
9761 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9762 * linux-tile-low.c (tile_regsets): Likewise.
9763 * linux-x86-low.c (x86_regsets): Likewise.
9764 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9765
50bc912a
PA
97662015-10-29 Pedro Alves <palves@redhat.com>
9767
9768 * linux-low.h (NULL_REGSET): Define.
9769 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9770 * linux-arm-low.c (arm_regsets): Likewise.
9771 * linux-crisv32-low.c (cris_regsets): Likewise.
9772 * linux-m68k-low.c (m68k_regsets): Likewise.
9773 * linux-mips-low.c (mips_regsets): Likewise.
9774 * linux-nios2-low.c (nios2_regsets): Likewise.
9775 * linux-ppc-low.c (ppc_regsets): Likewise.
9776 * linux-s390-low.c (s390_regsets): Likewise.
9777 * linux-sh-low.c (sh_regsets): Likewise.
9778 * linux-sparc-low.c (sparc_regsets): Likewise.
9779 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9780 * linux-tile-low.c (tile_regsets): Likewise.
9781 * linux-x86-low.c (x86_regsets): Likewise.
9782 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9783
682b2546
DE
97842015-10-26 Doug Evans <dje@google.com>
9785
9786 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9787
963843d4
DE
97882015-10-26 Doug Evans <dje@google.com>
9789
9790 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9791
d41401ac
DE
97922015-10-26 Doug Evans <dje@google.com>
9793
9794 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9795 for debug_printf.
9796 (attach_thread, find_new_threads_callback): Ditto.
9797
3db28855
AT
97982015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9799
9800 * mem-break.h (set_breakpoint_data): Remove.
9801
fb78e89c
AT
98022015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9803
9804 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9805 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9806 (initialize_low): Remove set_breakpoint_data call.
9807 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9808 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9809 (initialize_low): Remove set_breakpoint_data call.
9810 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9811 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9812 (initialize_low): Remove set_breakpoint_data call.
9813
2e6ee069
AT
98142015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9815
9816 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9817 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9818 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9819 * target.h (target_breakpoint_kind_from_pc): New macro.
9820
1652a986
AT
98212015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9822
9823 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9824 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9825 the default breakpoint kind.
9826
abeead09
AT
98272015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9828
9829 * linux-arm-low.c (arm_supports_z_point_type): Add software
9830 breakpoint support.
9831
b0b4b501
AT
98322015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9833
9834 * linux-arm-low.c: Refactor breakpoint definitions.
9835 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9836 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9837
8689682c
AT
98382015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9839
9840 * Makefile.in: Add arm.c/o.
9841 * configure.srv: Likewise.
9842 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9843 (arm_breakpoint_kind_from_pc): New function.
9844 (arm_sw_breakpoint_from_kind): Return proper kind.
9845 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9846
27165294
AT
98472015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9848
9849 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9850 removal.
9851 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9852 (struct raw_breakpoint) <size>: Remove.
9853 (struct raw_breakpoint) <kind>: Add.
9854 (bp_size): New function.
9855 (bp_opcode): Likewise.
9856 (find_raw_breakpoint_at): Adjust for kind.
9857 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9858 (remove_memory_breakpoint): Adjust for kind call bp_size.
9859 (set_raw_breakpoint_at): Adjust for kind.
9860 (set_breakpoint): Likewise.
9861 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9862 (delete_raw_breakpoint): Adjust for kind.
9863 (delete_breakpoint): Likewise.
9864 (find_gdb_breakpoint): Likewise.
9865 (set_gdb_breakpoint_1): Likewise.
9866 (set_gdb_breakpoint): Likewise.
9867 (delete_gdb_breakpoint_1): Likewise.
9868 (delete_gdb_breakpoint): Likewise.
9869 (uninsert_raw_breakpoint): Likewise.
9870 (reinsert_raw_breakpoint): Likewise.
9871 (set_breakpoint_data): Remove.
9872 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9873 (check_mem_read): Adjust for kind call bp_size.
9874 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9875 (clone_one_breakpoint): Adjust for kind.
9876 * mem-break.h (set_gdb_breakpoint): Likewise.
9877 (delete_gdb_breakpoint): Likewise.
9878 * server.c (process_serial_event): Likewise.
9879
dd373349
AT
98802015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9881
9882 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9883 (struct linux_target_ops) <breakpoint>: Remove.
9884 (struct linux_target_ops) <breakpoint_len>: Remove.
9885 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9886 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9887 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9888 (arm_sw_breakpoint_from_kind): New function.
9889 * linux-bfin-low.c (bfin_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-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9895 (struct linux_target_ops) <breakpoint>: Remove.
9896 (struct linux_target_ops) <breakpoint_len>: Remove.
9897 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9898 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9899 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9900 (struct linux_target_ops) <breakpoint>: Remove.
9901 (struct linux_target_ops) <breakpoint_len>: Remove.
9902 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9903 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9904 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9905 and sw_breakpoint_from_kind to increment the pc.
9906 (linux_breakpoint_kind_from_pc): New function.
9907 (linux_sw_breakpoint_from_kind): New function.
9908 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9909 (initialize_low): Call breakpoint_kind_from_pc and
9910 sw_breakpoint_from_kind to replace breakpoint_data/len.
9911 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9912 New field.
9913 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9914 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9915 (struct linux_target_ops) <breakpoint>: Remove.
9916 (struct linux_target_ops) <breakpoint_len>: Remove.
9917 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9918 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9919 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9920 (struct linux_target_ops) <breakpoint>: Remove.
9921 (struct linux_target_ops) <breakpoint_len>: Remove.
9922 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9923 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9924 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9925 (struct linux_target_ops) <breakpoint>: Remove.
9926 (struct linux_target_ops) <breakpoint_len>: Remove.
9927 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9928 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9929 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9930 (struct linux_target_ops) <breakpoint>: Remove.
9931 (struct linux_target_ops) <breakpoint_len>: Remove.
9932 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9933 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9934 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9935 (struct linux_target_ops) <breakpoint>: Remove.
9936 (struct linux_target_ops) <breakpoint_len>: Remove.
9937 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9938 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9939 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9940 (struct linux_target_ops) <breakpoint>: Remove.
9941 (struct linux_target_ops) <breakpoint_len>: Remove.
9942 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9943 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9944 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9945 (struct linux_target_ops) <breakpoint>: Remove.
9946 (struct linux_target_ops) <breakpoint_len>: Remove.
9947 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9948 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9949 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9950 (struct linux_target_ops) <breakpoint>: Remove.
9951 (struct linux_target_ops) <breakpoint_len>: Remove.
9952 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9953 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9954 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9955 (struct linux_target_ops) <breakpoint>: Remove.
9956 (struct linux_target_ops) <breakpoint_len>: Remove.
9957 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9958 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9959 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9960 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9961 (struct linux_target_ops) <breakpoint>: Remove.
9962 (struct linux_target_ops) <breakpoint_len>: Remove.
9963 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9964 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9965 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9966 (struct linux_target_ops) <breakpoint>: Remove.
9967 (struct linux_target_ops) <breakpoint_len>: Remove.
9968 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9969 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9970
4cd98a19
AT
99712015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9972
9973 * linux-cris-low.c (cris_get_pc): Remove void arg.
9974
774ee6d2
AR
99752015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9976
9977 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9978 variable name.
9979
833dcd29
AR
99802015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9981
9982 * inferiors.c (thread_pid_matches_callback): New function.
9983 (find_thread_process): New function.
9984 (remove_thread): Reset current_thread.
9985 (remove_process): Assert threads have been removed first.
9986
8d689ee5
YQ
99872015-10-15 Yao Qi <yao.qi@linaro.org>
9988
9989 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9990 if it is 3.
9991 (aarch64_remove_point): Likewise.
9992 * regcache.c (regcache_register_size): New function.
9993
1c2e1515
YQ
99942015-10-12 Yao Qi <yao.qi@linaro.org>
9995
9996 * linux-aarch64-low.c: Update all callers as emit_load_store
9997 is renamed to aarch64_emit_load_store.
9998
e1c587c3
YQ
99992015-10-12 Yao Qi <yao.qi@linaro.org>
10000
10001 * linux-aarch64-low.c: Update all callers of function renaming
10002 from emit_insn to aarch64_emit_insn.
10003
b6542f81
YQ
100042015-10-12 Yao Qi <yao.qi@linaro.org>
10005
10006 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10007 arch/aarch64-insn.h.
10008 (struct aarch64_memory_operand): Likewise.
10009 (ENCODE): Likewise.
10010 (emit_insn): Move to arch/aarch64-insn.c.
10011 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10012 (emit_load_store): Move to arch/aarch64-insn.c.
10013 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10014 (can_encode_int32): Remove.
10015
246994ce
YQ
100162015-10-12 Yao Qi <yao.qi@linaro.org>
10017
10018 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10019 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10020 (aarch64_relocate_instruction): Likewise.
10021 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10022 (struct aarch64_insn_visitor): Likewise.
10023
0badd99f
YQ
100242015-10-12 Yao Qi <yao.qi@linaro.org>
10025
10026 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10027 (struct aarch64_insn_visitor): New.
10028 (struct aarch64_insn_relocation_data): New.
10029 (aarch64_ftrace_insn_reloc_b): New function.
10030 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10031 (aarch64_ftrace_insn_reloc_cb): Likewise.
10032 (aarch64_ftrace_insn_reloc_tb): Likewise.
10033 (aarch64_ftrace_insn_reloc_adr): Likewise.
10034 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10035 (aarch64_ftrace_insn_reloc_others): Likewise.
10036 (visitor): New.
10037 (aarch64_relocate_instruction): Use visitor.
10038
dfaffe9d
YQ
100392015-10-12 Yao Qi <yao.qi@linaro.org>
10040
10041 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10042 int. Add argument buf.
10043 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10044 aarch64_relocate_instruction.
10045
70b439f0
YQ
100462015-10-12 Yao Qi <yao.qi@linaro.org>
10047
10048 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10049 argument insn. Remove local variable insn. Don't call
10050 target_read_uint32.
10051 (aarch64_install_fast_tracepoint_jump_pad): Call
10052 target_read_uint32.
10053
7781c06f
YQ
100542015-09-30 Yao Qi <yao.qi@linaro.org>
10055
10056 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10057 (emit_load_store_pair): Likewise.
10058
9a3c8263
SM
100592015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10060
10061 * dll.c (match_dll): Add cast(s).
10062 (unloaded_dll): Likewise.
10063 * linux-low.c (second_thread_of_pid_p): Likewise.
10064 (delete_lwp_callback): Likewise.
10065 (count_events_callback): Likewise.
10066 (select_event_lwp_callback): Likewise.
10067 (linux_set_resume_request): Likewise.
10068 * server.c (accumulate_file_name_length): Likewise.
10069 (emit_dll_description): Likewise.
10070 (handle_qxfer_threads_worker): Likewise.
10071 (visit_actioned_threads): Likewise.
10072 * thread-db.c (any_thread_of): Likewise.
10073 * tracepoint.c (same_process_p): Likewise.
10074 (match_blocktype): Likewise.
10075 (build_traceframe_info_xml): Likewise.
10076
224c3ddb
SM
100772015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10078
10079 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10080 assignment.
10081 (gdb_unparse_agent_expr): Likewise.
10082 * hostio.c (require_data): Likewise.
10083 (handle_pread): Likewise.
10084 * linux-low.c (disable_regset): Likewise.
10085 (fetch_register): Likewise.
10086 (store_register): Likewise.
10087 (get_dynamic): Likewise.
10088 (linux_qxfer_libraries_svr4): Likewise.
10089 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10090 (set_fast_tracepoint_jump): Likewise.
10091 (uninsert_fast_tracepoint_jumps_at): Likewise.
10092 (reinsert_fast_tracepoint_jumps_at): Likewise.
10093 (validate_inserted_breakpoint): Likewise.
10094 (clone_agent_expr): Likewise.
10095 * regcache.c (init_register_cache): Likewise.
10096 * remote-utils.c (putpkt_binary_1): Likewise.
10097 (decode_M_packet): Likewise.
10098 (decode_X_packet): Likewise.
10099 (look_up_one_symbol): Likewise.
10100 (relocate_instruction): Likewise.
10101 (monitor_output): Likewise.
10102 * server.c (handle_search_memory): Likewise.
10103 (handle_qxfer_exec_file): Likewise.
10104 (handle_qxfer_libraries): Likewise.
10105 (handle_qxfer): Likewise.
10106 (handle_query): Likewise.
10107 (handle_v_cont): Likewise.
10108 (handle_v_run): Likewise.
10109 (captured_main): Likewise.
10110 * target.c (write_inferior_memory): Likewise.
10111 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10112 * tracepoint.c (init_trace_buffer): Likewise.
10113 (add_tracepoint_action): Likewise.
10114 (add_traceframe): Likewise.
10115 (add_traceframe_block): Likewise.
10116 (cmd_qtdpsrc): Likewise.
10117 (cmd_qtdv): Likewise.
10118 (cmd_qtstatus): Likewise.
10119 (response_source): Likewise.
10120 (response_tsv): Likewise.
10121 (cmd_qtnotes): Likewise.
10122 (gdb_collect): Likewise.
10123 (initialize_tracepoint): Likewise.
10124
afbe19f8
PL
101252015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10126
10127 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10128 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10129 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10130 <NOP>: New.
10131 (enum aarch64_condition_codes): New enum.
10132 (w0): New static global.
10133 (fp): Likewise.
10134 (lr): Likewise.
10135 (struct aarch64_memory_operand) <type>: New
10136 MEMORY_OPERAND_POSTINDEX type.
10137 (postindex_memory_operand): New helper function.
10138 (emit_ret): New function.
10139 (emit_load_store_pair): New function, factored out of emit_stp
10140 with support for MEMORY_OPERAND_POSTINDEX.
10141 (emit_stp): Rewrite using emit_load_store_pair.
10142 (emit_ldp): New function.
10143 (emit_load_store): Likewise.
10144 (emit_ldr): Mention post-index instruction in comment.
10145 (emit_ldrh): New function.
10146 (emit_ldrb): New function.
10147 (emit_ldrsw): Mention post-index instruction in comment.
10148 (emit_str): Likewise.
10149 (emit_subs): New function.
10150 (emit_cmp): Likewise.
10151 (emit_and): Likewise.
10152 (emit_orr): Likewise.
10153 (emit_orn): Likewise.
10154 (emit_eor): Likewise.
10155 (emit_mvn): Likewise.
10156 (emit_lslv): Likewise.
10157 (emit_lsrv): Likewise.
10158 (emit_asrv): Likewise.
10159 (emit_mul): Likewise.
10160 (emit_sbfm): Likewise.
10161 (emit_sbfx): Likewise.
10162 (emit_ubfm): Likewise.
10163 (emit_ubfx): Likewise.
10164 (emit_csinc): Likewise.
10165 (emit_cset): Likewise.
10166 (emit_nop): Likewise.
10167 (emit_ops_insns): New helper function.
10168 (emit_pop): Likewise.
10169 (emit_push): Likewise.
10170 (aarch64_emit_prologue): New function.
10171 (aarch64_emit_epilogue): Likewise.
10172 (aarch64_emit_add): Likewise.
10173 (aarch64_emit_sub): Likewise.
10174 (aarch64_emit_mul): Likewise.
10175 (aarch64_emit_lsh): Likewise.
10176 (aarch64_emit_rsh_signed): Likewise.
10177 (aarch64_emit_rsh_unsigned): Likewise.
10178 (aarch64_emit_ext): Likewise.
10179 (aarch64_emit_log_not): Likewise.
10180 (aarch64_emit_bit_and): Likewise.
10181 (aarch64_emit_bit_or): Likewise.
10182 (aarch64_emit_bit_xor): Likewise.
10183 (aarch64_emit_bit_not): Likewise.
10184 (aarch64_emit_equal): Likewise.
10185 (aarch64_emit_less_signed): Likewise.
10186 (aarch64_emit_less_unsigned): Likewise.
10187 (aarch64_emit_ref): Likewise.
10188 (aarch64_emit_if_goto): Likewise.
10189 (aarch64_emit_goto): Likewise.
10190 (aarch64_write_goto_address): Likewise.
10191 (aarch64_emit_const): Likewise.
10192 (aarch64_emit_call): Likewise.
10193 (aarch64_emit_reg): Likewise.
10194 (aarch64_emit_pop): Likewise.
10195 (aarch64_emit_stack_flush): Likewise.
10196 (aarch64_emit_zero_ext): Likewise.
10197 (aarch64_emit_swap): Likewise.
10198 (aarch64_emit_stack_adjust): Likewise.
10199 (aarch64_emit_int_call_1): Likewise.
10200 (aarch64_emit_void_call_2): Likewise.
10201 (aarch64_emit_eq_goto): Likewise.
10202 (aarch64_emit_ne_goto): Likewise.
10203 (aarch64_emit_lt_goto): Likewise.
10204 (aarch64_emit_le_goto): Likewise.
10205 (aarch64_emit_gt_goto): Likewise.
10206 (aarch64_emit_ge_got): Likewise.
10207 (aarch64_emit_ops_impl): New static global variable.
10208 (aarch64_emit_ops): New target function, return
10209 &aarch64_emit_ops_impl.
10210 (struct linux_target_ops): Install it.
10211
bb903df0
PL
102122015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10213
10214 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10215 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10216 aarch64-ipa.o.
10217 * linux-aarch64-ipa.c: New file.
10218 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10219 and endian.h.
10220 (aarch64_get_thread_area): New target method.
10221 (extract_signed_bitfield): New helper function.
10222 (aarch64_decode_ldr_literal): New function.
10223 (enum aarch64_opcodes): New enum.
10224 (struct aarch64_register): New struct.
10225 (struct aarch64_operand): New struct.
10226 (x0): New static global.
10227 (x1): Likewise.
10228 (x2): Likewise.
10229 (x3): Likewise.
10230 (x4): Likewise.
10231 (w2): Likewise.
10232 (ip0): Likewise.
10233 (sp): Likewise.
10234 (xzr): Likewise.
10235 (aarch64_register): New helper function.
10236 (register_operand): Likewise.
10237 (immediate_operand): Likewise.
10238 (struct aarch64_memory_operand): New struct.
10239 (offset_memory_operand): New helper function.
10240 (preindex_memory_operand): Likewise.
10241 (enum aarch64_system_control_registers): New enum.
10242 (ENCODE): New macro.
10243 (emit_insn): New helper function.
10244 (emit_b): New function.
10245 (emit_bcond): Likewise.
10246 (emit_cb): Likewise.
10247 (emit_tb): Likewise.
10248 (emit_blr): Likewise.
10249 (emit_stp): Likewise.
10250 (emit_ldp_q_offset): Likewise.
10251 (emit_stp_q_offset): Likewise.
10252 (emit_load_store): Likewise.
10253 (emit_ldr): Likewise.
10254 (emit_ldrsw): Likewise.
10255 (emit_str): Likewise.
10256 (emit_ldaxr): Likewise.
10257 (emit_stxr): Likewise.
10258 (emit_stlr): Likewise.
10259 (emit_data_processing_reg): Likewise.
10260 (emit_data_processing): Likewise.
10261 (emit_add): Likewise.
10262 (emit_sub): Likewise.
10263 (emit_mov): Likewise.
10264 (emit_movk): Likewise.
10265 (emit_mov_addr): Likewise.
10266 (emit_mrs): Likewise.
10267 (emit_msr): Likewise.
10268 (emit_sevl): Likewise.
10269 (emit_wfe): Likewise.
10270 (append_insns): Likewise.
10271 (can_encode_int32_in): New helper function.
10272 (aarch64_relocate_instruction): New function.
10273 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10274 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10275 (struct linux_target_ops): Install aarch64_get_thread_area,
10276 aarch64_install_fast_tracepoint_jump_pad and
10277 aarch64_get_min_fast_tracepoint_insn_len.
10278
787749ea
PL
102792015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10280
10281 * Makefile.in (aarch64-insn.o): New rule.
10282 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10283
9812b2e6
YQ
102842015-09-21 Yao Qi <yao.qi@linaro.org>
10285
10286 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10287
18fe412b
YQ
102882015-09-21 Yao Qi <yao.qi@linaro.org>
10289
10290 * tracepoint.c (max_jump_pad_size): Remove.
10291
a0cc84cd
YQ
102922015-09-18 Yao Qi <yao.qi@linaro.org>
10293
10294 * linux-aarch64-low.c: Don't include sys/uio.h.
10295 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10296
d78908cf
WW
102972015-09-16 Wei-cheng Wang <cole945@gmail.com>
10298
10299 * tracepoint.c (eval_result_type): Change prototype.
10300 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10301
d57e0d50
PA
103022015-09-15 Pedro Alves <palves@redhat.com>
10303
10304 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10305 Check whether to report exec events instead of checking whether
10306 multiprocess is enabled.
10307
5a676acc
PA
103082015-09-15 Pedro Alves <palves@redhat.com>
10309
10310 PR remote/18965
10311 * remote-utils.c (prepare_resume_reply): Merge
10312 TARGET_WAITKIND_VFORK_DONE switch case with the
10313 TARGET_WAITKIND_FORKED case.
10314
7c5d0fad
YQ
103152015-09-15 Yao Qi <yao.qi@linaro.org>
10316
10317 * server.c (handle_query): Check string comparison using
10318 "else if" instead of "if".
10319
750ce8d1
YQ
103202015-09-15 Yao Qi <yao.qi@linaro.org>
10321
10322 * server.c (vCont_supported): New global variable.
10323 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10324 matches. Append ";vContSupported+" to own_buf.
10325 (handle_v_requests): Append ";s;S" to own_buf if target supports
10326 hardware single step or vCont_supported is false.
10327 (capture_main): Set vCont_supported to zero.
10328
70b90b91
YQ
103292015-09-15 Yao Qi <yao.qi@linaro.org>
10330
10331 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10332 it to ...
10333 (linux_supports_hardware_single_step): ... New function.
10334 (linux_target_ops): Update.
10335 * lynx-low.c (lynx_target_ops): Set field
10336 supports_hardware_single_step to target_can_do_hardware_single_step.
10337 * nto-low.c (nto_target_ops): Likewise.
10338 * spu-low.c (spu_target_ops): Likewise.
10339 * win32-low.c (win32_target_ops): Likewise.
10340 * target.c (target_can_do_hardware_single_step): New function.
10341 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10342 Remove. <supports_hardware_single_step>: New field.
10343 (target_supports_conditional_breakpoints): Remove.
10344 (target_supports_hardware_single_step): New macro.
10345 (target_can_do_hardware_single_step): Declare.
10346 * server.c (handle_query): Use target_supports_hardware_single_step
10347 instead of target_supports_conditional_breakpoints.
10348
ade90bde
YQ
103492015-09-15 Yao Qi <yao.qi@linaro.org>
10350
10351 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10352 function.
10353 (struct linux_target_ops the_low_target): Install
10354 aarch64_linux_siginfo_fixup.
10355
94585166
DB
103562015-09-11 Don Breazeal <donb@codesourcery.com>
10357 Luis Machado <lgustavo@codesourcery.com>
10358
10359 * linux-low.c (linux_mourn): Static declaration.
10360 (linux_arch_setup): Move in front of
10361 handle_extended_wait.
10362 (linux_arch_setup_thread): New function.
10363 (handle_extended_wait): Handle exec events. Call
10364 linux_arch_setup_thread. Make event_lwp argument a
10365 pointer-to-a-pointer.
10366 (check_zombie_leaders): Do not check stopped threads.
10367 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10368 (linux_low_filter_event): Add lwp and thread for exec'ing
10369 non-leader thread if leader thread has been deleted.
10370 Refactor code into linux_arch_setup_thread and call it.
10371 Pass child lwp pointer by reference to handle_extended_wait.
10372 (linux_wait_for_event_filtered): Update comment.
10373 (linux_wait_1): Prevent clobbering exec event status.
10374 (linux_supports_exec_events): New function.
10375 (linux_target_ops) <supports_exec_events>: Initialize new member.
10376 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10377 new member.
10378 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10379 * server.c (report_exec_events): New global variable.
10380 (handle_query): Handle qSupported query for exec-events feature.
10381 (captured_main): Initialize report_exec_events.
10382 * server.h (report_exec_events): Declare new global variable.
10383 * target.h (struct target_ops) <supports_exec_events>: New
10384 member.
10385 (target_supports_exec_events): New macro.
10386 * win32-low.c (win32_target_ops) <supports_exec_events>:
10387 Initialize new member.
10388
0568462b
MM
103892015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10390
10391 * linux-low.c (linux_low_enable_btrace): Remove.
10392 (linux_target_ops): Replace linux_low_enable_btrace with
10393 linux_enable_btrace.
10394
39edd165
YQ
103952015-09-03 Yao Qi <yao.qi@linaro.org>
10396
10397 * linux-aarch64-low.c (aarch64_insert_point): Call
10398 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10399 returns true.
10400
1db33b5a
UW
104012015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10402
10403 * linux-low.c (check_stopped_by_breakpoint): Use
10404 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10405
ab290430
PA
104062015-08-27 Pedro Alves <palves@redhat.com>
10407
10408 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10409
8d749320
SM
104102015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10411
6711b7f8
SM
10412 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10413 the XNEW-family equivalent.
8d749320
SM
10414 (compile_bytecodes): Likewise.
10415 * dll.c (loaded_dll): Likewise.
10416 * event-loop.c (append_callback_event): Likewise.
10417 (create_file_handler): Likewise.
10418 (create_file_event): Likewise.
10419 * hostio.c (handle_open): Likewise.
10420 * inferiors.c (add_thread): Likewise.
10421 (add_process): Likewise.
10422 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10423 * linux-arm-low.c (arm_new_process): Likewise.
10424 (arm_new_thread): Likewise.
10425 * linux-low.c (add_to_pid_list): Likewise.
10426 (linux_add_process): Likewise.
10427 (handle_extended_wait): Likewise.
10428 (add_lwp): Likewise.
10429 (enqueue_one_deferred_signal): Likewise.
10430 (enqueue_pending_signal): Likewise.
10431 (linux_resume_one_lwp_throw): Likewise.
10432 (linux_resume_one_thread): Likewise.
10433 (linux_read_memory): Likewise.
10434 (linux_write_memory): Likewise.
10435 * linux-mips-low.c (mips_linux_new_process): Likewise.
10436 (mips_linux_new_thread): Likewise.
10437 (mips_add_watchpoint): Likewise.
10438 * linux-x86-low.c (initialize_low_arch): Likewise.
10439 * lynx-low.c (lynx_add_process): Likewise.
10440 * mem-break.c (set_raw_breakpoint_at): Likewise.
10441 (set_breakpoint): Likewise.
10442 (add_condition_to_breakpoint): Likewise.
10443 (add_commands_to_breakpoint): Likewise.
10444 (clone_agent_expr): Likewise.
10445 (clone_one_breakpoint): Likewise.
10446 * regcache.c (new_register_cache): Likewise.
10447 * remote-utils.c (look_up_one_symbol): Likewise.
10448 * server.c (queue_stop_reply): Likewise.
10449 (start_inferior): Likewise.
10450 (queue_stop_reply_callback): Likewise.
10451 (handle_target_event): Likewise.
10452 * spu-low.c (fetch_ppc_memory): Likewise.
10453 (store_ppc_memory): Likewise.
10454 * target.c (set_target_ops): Likewise.
10455 * thread-db.c (thread_db_load_search): Likewise.
10456 (try_thread_db_load_1): Likewise.
10457 * tracepoint.c (add_tracepoint): Likewise.
10458 (add_tracepoint_action): Likewise.
10459 (create_trace_state_variable): Likewise.
10460 (cmd_qtdpsrc): Likewise.
10461 (cmd_qtro): Likewise.
10462 (add_while_stepping_state): Likewise.
10463 * win32-low.c (child_add_thread): Likewise.
10464 (get_image_name): Likewise.
10465
ed8b7b42
YQ
104662015-08-25 Yao Qi <yao.qi@linaro.org>
10467
10468 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10469
db3cb7cb
YQ
104702015-08-25 Yao Qi <yao.qi@linaro.org>
10471
10472 * Makefile.in (aarch64-linux.o): New rule.
10473 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10474 srv_tgtobj.
10475 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10476 (aarch64_init_debug_reg_state): Make it extern.
10477 (aarch64_linux_prepare_to_resume): Remove.
10478
f6011a1c
YQ
104792015-08-25 Yao Qi <yao.qi@linaro.org>
10480
10481 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10482 lwp_arch_private_info and ptid_of_lwp.
10483
88e2cf7e
YQ
104842015-08-25 Yao Qi <yao.qi@linaro.org>
10485
10486 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10487 Find proc_info by find_process_pid. All callers updated.
10488
5e35436e
YQ
104892015-08-25 Yao Qi <yao.qi@linaro.org>
10490
10491 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10492 Remove.
10493 (debug_reg_change_callback): Remove.
10494 (aarch64_notify_debug_reg_change): Remove.
10495
4a8a7965
YQ
104962015-08-25 Yao Qi <yao.qi@linaro.org>
10497
10498 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10499 Call current_lwp_ptid.
10500
32a271ee
YQ
105012015-08-25 Yao Qi <yao.qi@linaro.org>
10502
10503 * linux-aarch64-low.c (debug_reg_change_callback): Use
10504 debug_printf.
10505
0d51c8d7
YQ
105062015-08-25 Yao Qi <yao.qi@linaro.org>
10507
10508 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10509
31a43dd5
YQ
105102015-08-25 Yao Qi <yao.qi@linaro.org>
10511
10512 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10513
8ee52567
YQ
105142015-08-25 Yao Qi <yao.qi@linaro.org>
10515
10516 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10517 the code.
10518
ff3f0f45
YQ
105192015-08-25 Yao Qi <yao.qi@linaro.org>
10520
10521 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10522 Remove.
10523 (debug_reg_change_callback): Remove argument entry and add argument
10524 lwp. Remove local variable thread. Don't print thread id in the
10525 debugging output. Don't check whether pid of thread equals to pid.
10526 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10527 iterate_over_lwps instead find_inferior.
10528
3d40fbb5
PA
105292015-08-24 Pedro Alves <palves@redhat.com>
10530
10531 * inferiors.c (get_first_process): New function.
10532 * inferiors.h (get_first_process): New declaration.
10533 * remote-utils.c (read_ptid): Default to the first process in the
10534 list, instead of to the current thread's process.
10535
438e1e42
PA
105362015-08-24 Pedro Alves <palves@redhat.com>
10537
10538 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10539 * event-loop.c: Likewise.
10540 * remote-utils.c: Likewise.
10541 * tracepoint.c: Likewise.
10542
a8c6d4fc
PA
105432015-08-24 Pedro Alves <palves@redhat.com>
10544
10545 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10546 ptid_get_lwp.
10547
99b0bb12
PA
105482015-08-21 Pedro Alves <palves@redhat.com>
10549
10550 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10551 instead of literal 1.
10552
f8904751
PA
105532015-08-21 Pedro Alves <palves@redhat.com>
10554
10555 * tdesc.c (default_description): Explicitly zero-initialize.
10556
465a859e
PA
105572015-08-21 Pedro Alves <palves@redhat.com>
10558
10559 PR gdb/18749
10560 * inferiors.c (remove_thread): Discard any pending stop reply for
10561 this thread.
10562 * server.c (remove_all_on_match_pid): Rename to ...
10563 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10564 instead of a pid.
10565 (discard_queued_stop_replies): Change parameter to a ptid. Now
10566 extern.
10567 (handle_v_kill, kill_inferior_callback, captured_main)
10568 (process_serial_event): Adjust.
10569 * server.h (discard_queued_stop_replies): Declare.
10570
f0db101d
PA
105712015-08-21 Pedro Alves <palves@redhat.com>
10572
10573 * linux-low.c (wait_for_sigstop): Always switch to no thread
10574 selected if the previously current thread dies.
10575 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10576 process instead of the current thread's.
10577 * remote-utils.c (input_interrupt): Don't check if there's no
10578 current thread.
10579 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10580 current thread to the general thread fails, error out.
10581 (handle_qxfer_auxv, handle_qxfer_libraries)
10582 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10583 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10584 (handle_query): Check if there's a thread selected instead of
10585 checking whether there's any thread in the thread list.
10586 (handle_qxfer_threads, handle_qxfer_btrace)
10587 (handle_qxfer_btrace_conf): Don't error out early if there's no
10588 thread in the thread list.
10589 (handle_v_cont, myresume): Don't set the current thread to the
10590 continue thread.
10591 (process_serial_event) <Hg handling>: Also set thread_id if the
10592 previous general thread is still alive.
10593 (process_serial_event) <g/G handling>: If setting the current
10594 thread to the general thread fails, error out.
10595 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10596 thread's lwp instead of the current thread's.
10597 * target.c (set_desired_thread): If the desired thread was not
10598 found, leave the current thread pointing to NULL. Return an int
10599 (boolean) indicating success.
10600 * target.h (set_desired_thread): Change return type to int.
10601
40045d91
MF
106022015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10603
10604 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10605 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10606 #includes.
10607 (ps_get_thread_area): New function.
10608
45face3b
GB
106092015-08-19 Gary Benson <gbenson@redhat.com>
10610
10611 * hostio.c (handle_pread): Do not attempt to read more data
10612 than hostio_reply_with_data can fit in a packet.
10613
16d5f642
JB
106142015-08-18 Joel Brobecker <brobecker@adacore.com>
10615
10616 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10617
a738da3a
MF
106182015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10619
10620 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10621
33ebda9d
PA
106222015-08-06 Pedro Alves <palves@redhat.com>
10623
10624 * tracepoint.c (expr_eval_result): Now an int.
10625
a44892be
PA
106262015-08-06 Pedro Alves <palves@redhat.com>
10627
10628 * gdbthread.h (struct regcache): Forward declare.
10629 (struct thread_info) <regcache_data>: Now a struct regcache
10630 pointer.
10631 * inferiors.c (inferior_regcache_data)
10632 (set_inferior_regcache_data): Now work with struct regcache
10633 pointers.
10634 * inferiors.h (struct regcache): Forward declare.
10635 (inferior_regcache_data, set_inferior_regcache_data): Now work
10636 with struct regcache pointers.
10637 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10638 (free_register_cache_thread): Remove struct regcache pointer
10639 casts.
10640
608a1e46
PA
106412015-08-06 Pedro Alves <palves@redhat.com>
10642
10643 * server.c (captured_main): On error, print the exception message
10644 to stderr, and if run_once is set, throw a quit.
10645
f0ce0d3a
PA
106462015-08-06 Pedro Alves <palves@redhat.com>
10647
10648 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10649 the current thread.
10650
bf47e248
PA
106512015-08-06 Pedro Alves <palves@redhat.com>
10652
10653 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10654 reading beyond the passed in buffer length.
10655
b6b9ffcc
PL
106562015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10657
10658 * tracepoint.c (symbol_list) <required>: Remove.
10659
863d01bd
PA
106602015-08-06 Pedro Alves <palves@redhat.com>
10661
10662 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10663 count if stopping and suspending threads.
10664 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10665 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10666 (linux_detach): Complete an ongoing step-over.
10667 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10668 throughout.
10669 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10670 (linux_wait_1): If passing a signal to the inferior after
10671 finishing a step-over, unsuspend and re-resume all lwps. If we
10672 see a single-step event but the thread should be continuing, don't
10673 pass the trap to gdb.
10674 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10675 internal_error instead of gdb_assert.
10676 (enqueue_pending_signal): New function.
10677 (check_ptrace_stopped_lwp_gone): Add debug output.
10678 (start_step_over): Use internal_error instead of gdb_assert.
10679 (complete_ongoing_step_over): New function.
10680 (linux_resume_one_thread): Don't resume a suspended thread.
10681 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10682 it stepping.
10683
00db26fa
PA
106842015-08-06 Pedro Alves <palves@redhat.com>
10685
10686 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10687 (linux_thread_alive): Use lwp_is_marked_dead.
10688 (extended_event_reported): Delete.
10689 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10690 instead of extended_event_reported.
10691 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10692 as well.
10693 (lwp_is_marked_dead): New function.
10694 (lwp_running): Use lwp_is_marked_dead.
10695 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10696 comment.
10697
ad071a30
PA
106982015-08-06 Pedro Alves <palves@redhat.com>
10699
10700 * linux-low.c (linux_wait_1): Move fork event output out of the
10701 !report_to_gdb check. Pass event_child->waitstatus to
10702 target_waitstatus_to_string instead of ourstatus.
10703
524b57e6
YQ
107042015-08-04 Yao Qi <yao.qi@linaro.org>
10705
10706 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10707 if current_thread is 32 bit.
10708
6085d6f6
YQ
107092015-08-04 Yao Qi <yao.qi@linaro.org>
10710
10711 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10712 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10713 * server.c (extended_protocol): Remove "static".
10714 * server.h (extended_protocol): Declare it.
10715
8a7e4587
YQ
107162015-08-04 Yao Qi <yao.qi@linaro.org>
10717
10718 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10719 both aarch64 and aarch32.
10720 (aarch64_set_pc): Likewise.
10721
3b53ae99
YQ
107222015-08-04 Yao Qi <yao.qi@linaro.org>
10723
10724 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10725 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10726 arm-with-neon.xml to srv_xmlfiles.
10727 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10728 (is_64bit_tdesc): New function.
10729 (aarch64_linux_read_description): New function.
10730 (aarch64_arch_setup): Call aarch64_linux_read_description.
10731 (regs_info): Rename to regs_info_aarch64.
10732 (aarch64_regs_info): Return right regs_info.
10733 (initialize_low_arch): Call initialize_low_arch_aarch32.
10734
bd9e6534
YQ
107352015-08-04 Yao Qi <yao.qi@linaro.org>
10736
10737 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10738 * linux-aarch32-low.c: New file.
10739 * linux-aarch32-low.h: New file.
10740 * linux-arm-low.c (arm_fill_gregset): Move it to
10741 linux-aarch32-low.c.
10742 (arm_store_gregset): Likewise.
10743 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10744 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10745 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10746 (regs_info): Rename to regs_info_arm.
10747 (arm_regs_info): Return regs_info_aarch32 if
10748 have_ptrace_getregset is 1 and target description is
10749 arm_with_neon or arm_with_vfpv3.
10750 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10751 Call initialize_low_arch_aarch32 instead.
10752
ded48a5e
YQ
107532015-08-04 Yao Qi <yao.qi@linaro.org>
10754
10755 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10756 * linux-low.c: ... here.
10757 * linux-low.h (have_ptrace_getregset): Declare it.
10758
96e9210f
PA
107592015-08-04 Pedro Alves <palves@redhat.com>
10760
10761 * thread-db.c (struct thread_db): Use new typedefs.
10762 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10763 CHK calls.
10764 (disable_thread_event_reporting): Cast result of dlsym to
10765 destination function pointer type.
10766 (thread_db_mourn): Use td_ta_delete_ftype.
10767
af60a1ef
SL
107682015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10769
10770 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10771 arch variant.
10772 (CDX_BREAKPOINT): Define for R2.
10773 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10774 (the_low_target): Add comments.
10775
e8b41681
YQ
107762015-07-30 Yao Qi <yao.qi@linaro.org>
10777
10778 * linux-arm-low.c (arm_hwcap): Remove it.
10779 (arm_read_description): New local variable arm_hwcap. Don't
10780 set arm_hwcap to zero.
10781
89abb039
YQ
107822015-07-30 Yao Qi <yao.qi@linaro.org>
10783
10784 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10785 Use regcache->tdesc instead.
10786 (arm_store_wmmxregset): Likewise.
10787 (arm_fill_vfpregset): Likewise.
10788 (arm_store_vfpregset): Likewise.
10789
deca266c
YQ
107902015-07-30 Yao Qi <yao.qi@linaro.org>
10791
10792 * linux-arm-low.c: Include arch/arm.h.
10793 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10794 (arm_store_gregset): Likewise.
10795
aa58a496
SM
107962015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10797
10798 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10799 ptrace's 4th parameter.
10800
50904b25
YQ
108012015-07-27 Yao Qi <yao.qi@linaro.org>
10802
10803 * configure.srv (case aarch64*-*-linux*): Don't set
10804 srv_linux_usrregs.
10805
5826e159
PA
108062015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10807
10808 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10809 sys/ptrace.h.
10810 * linux-arm-low.c: Likewise.
10811 * linux-cris-low.c: Likewise.
10812 * linux-crisv32-low.c: Likewise.
10813 * linux-low.c: Likewise.
10814 * linux-m68k-low.c: Likewise.
10815 * linux-mips-low.c: Likewise.
10816 * linux-nios2-low.c: Likewise.
10817 * linux-s390-low.c: Likewise.
10818 * linux-sparc-low.c: Likewise.
10819 * linux-tic6x-low.c: Likewise.
10820 * linux-tile-low.c: Likewise.
10821 * linux-x86-low.c: Likewise.
10822
54019719
PA
108232015-07-24 Pedro Alves <palves@redhat.com>
10824
10825 * config.in: Regenerate.
10826 * configure: Regenerate.
10827
eb7aa561
PA
108282015-07-24 Pedro Alves <palves@redhat.com>
10829
10830 * acinclude.m4: Include ../ptrace.m4.
10831 * configure.ac: Call GDB_AC_PTRACE.
10832 * config.in, configure: Regenerate.
10833
55d7b841
YQ
108342015-07-24 Yao Qi <yao.qi@linaro.org>
10835
10836 * linux-low.c (linux_create_inferior): Remove setting to
10837 proc->priv->new_inferior.
10838 (linux_attach): Likewise.
10839 (linux_low_filter_event): Likewise.
10840 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10841
c06cbd92
YQ
108422015-07-24 Yao Qi <yao.qi@linaro.org>
10843
10844 * linux-low.c (linux_arch_setup): New function.
10845 (linux_low_filter_event): If proc->tdesc is NULL and
10846 proc->attached is true, call the_low_target.arch_setup.
10847 Otherwise, keep status pending, and return.
10848 (linux_resume_one_lwp_throw): Don't call get_pc if
10849 thread->while_stepping isn't NULL. Don't call
10850 get_thread_regcache if proc->tdesc is NULL.
10851 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10852 (linux_target_ops): Install arch_setup.
10853 * server.c (start_inferior): Call the_target->arch_setup.
10854 * target.h (struct target_ops) <arch_setup>: New field.
10855 (target_arch_setup): New marco.
10856 * lynx-low.c (lynx_target_ops): Update.
10857 * nto-low.c (nto_target_ops): Update.
10858 * spu-low.c (spu_target_ops): Update.
10859 * win32-low.c (win32_target_ops): Update.
10860
5ae3ebba
YQ
108612015-07-24 Yao Qi <yao.qi@linaro.org>
10862
10863 * linux-low.c (linux_add_process): Don't set
10864 proc->priv->new_inferior.
10865 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10866 (linux_attach): Likewise.
10867
eb97750b
YQ
108682015-07-24 Yao Qi <yao.qi@linaro.org>
10869
10870 * server.c (start_inferior): Code refactor.
10871
51aee833
YQ
108722015-07-24 Yao Qi <yao.qi@linaro.org>
10873
10874 * server.c (process_serial_event): Set general_thread.
10875
af1b22f3
YQ
108762015-07-21 Yao Qi <yao.qi@linaro.org>
10877
10878 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10879 aarch64_linux_get_debug_reg_capacity.
10880
554717a3
YQ
108812015-07-17 Yao Qi <yao.qi@linaro.org>
10882
10883 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10884 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10885 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10886 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10887 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10888 (AARCH64_HWP_ALIGNMENT): Likewise.
10889 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10890 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10891 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10892 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10893 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10894 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10895 (struct aarch64_debug_reg_state): Likewise.
10896 (struct arch_lwp_info): Likewise.
10897 (aarch64_align_watchpoint): Likewise.
10898 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10899 (aarch64_watchpoint_length): Likewise.
10900 (aarch64_point_encode_ctrl_reg): Likewise
10901 (aarch64_point_is_aligned): Likewise.
10902 (aarch64_align_watchpoint): Likewise.
10903 (aarch64_linux_set_debug_regs):
10904 (aarch64_dr_state_insert_one_point): Likewise.
10905 (aarch64_dr_state_remove_one_point): Likewise.
10906 (aarch64_handle_breakpoint): Likewise.
10907 (aarch64_handle_aligned_watchpoint): Likewise.
10908 (aarch64_handle_unaligned_watchpoint): Likewise.
10909 (aarch64_handle_watchpoint): Likewise.
10910
c67ca4de
YQ
109112015-07-17 Yao Qi <yao.qi@linaro.org>
10912
10913 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10914 and don't aarch64_get_debug_reg_state. All callers update.
10915 (aarch64_handle_aligned_watchpoint): Likewise.
10916 (aarch64_handle_unaligned_watchpoint): Likewise.
10917 (aarch64_handle_watchpoint): Likewise.
10918 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10919 (aarch64_remove_point): Likewise.
10920
25abf979
YQ
109212015-07-17 Yao Qi <yao.qi@linaro.org>
10922
10923 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10924 debug_printf.
10925 (aarch64_handle_unaligned_watchpoint): Likewise.
10926
db1ff28b
JK
109272015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10928
10929 Revert the previous 3 commits:
10930 Move gdb_regex* to common/
10931 Move linux_find_memory_regions_full & co.
10932 gdbserver build-id attribute generator
10933
700ca40f
JK
109342015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10935 Jan Kratochvil <jan.kratochvil@redhat.com>
10936
10937 gdbserver build-id attribute generator.
10938 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10939 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10940 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10941 (find_phdr): New.
10942 (get_dynamic): Use find_pdhr to traverse program headers.
10943 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10944 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10945 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10946 (get_hex_build_id): New.
10947 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10948 to reply XML document.
10949
9904185c
JK
109502015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10951 Jan Kratochvil <jan.kratochvil@redhat.com>
10952
10953 * target.c: Include target/target-utils.h and fcntl.h.
10954 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10955 (target_fileio_read_stralloc): New functions.
10956
6e5b4429
JK
109572015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10958
10959 * Makefile.in (OBS): Add gdb_regex.o.
10960 (gdb_regex.o): New.
10961 * config.in: Rebuilt.
10962 * configure: Rebuilt.
10963
ddc98fbf
JK
109642015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10965 Jan Kratochvil <jan.kratochvil@redhat.com>
10966
10967 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10968 * Makefile.in (OBS): Add target-utils.o.
10969 (linux-maps.o, target-utils.o): New.
10970 * configure.srv (srv_linux_obj): Add linux-maps.o.
10971
e57bb7a0
PL
109722015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10973
10974 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10975 function, return 1.
10976 (the_low_target): Install it.
10977
586b02a9
PA
109782015-07-14 Pedro Alves <palves@redhat.com>
10979
10980 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10981 Instead, ignore ECHILD, and throw an error for other errnos.
10982
58c1b36c
PA
109832015-07-10 Pedro Alves <palves@redhat.com>
10984
10985 * event-loop.c (struct callback_event) <data>: Change type to
10986 gdb_client_data instance instead of gdb_client_data pointer.
10987 (append_callback_event): Adjust.
10988
421530db
PL
109892015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10990
10991 * linux-aarch64-low.c: Add comments for each linux_target_ops
10992 method. Remove comments already covered in target_ops and
10993 linux_target_ops definitions.
10994 (the_low_target): Add comments for each unimplemented method.
10995
c2d65f38
YQ
109962015-07-09 Yao Qi <yao.qi@linaro.org>
10997
10998 * linux-aarch64-low.c (aarch64_regmap): Remove.
10999 (aarch64_usrregs_info): Remove.
11000 (regs_info): Set field usrregs to NULL.
11001
b20a6524
MM
110022015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11003
11004 * linux-low.c: Include "rsp-low.h"
11005 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11006 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11007 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11008 (handle_btrace_enable_pt): New.
11009 (handle_btrace_general_set): Support "pt".
11010 (handle_btrace_conf_general_set): Support "pt:size".
11011
96c97461
PL
110122015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11013
11014 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11015 Z_PACKET_SW_BP.
11016
37d66942
PL
110172015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11018
11019 * linux-aarch64-low.c: Remove comment about endianness.
11020 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11021 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11022 memcmp.
11023
dc06243f
GB
110242015-06-24 Gary Benson <gbenson@redhat.com>
11025
11026 * linux-i386-ipa.c (stdint.h): Do not include.
11027 * lynx-i386-low.c (stdint.h): Likewise.
11028 * lynx-ppc-low.c (stdint.h): Likewise.
11029 * mem-break.c (stdint.h): Likewise.
11030 * thread-db.c (stdint.h): Likewise.
11031 * tracepoint.c (stdint.h): Likewise.
11032 * win32-low.c (stdint.h): Likewise.
11033
124e13d9
SM
110342015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11035
11036 * server.c (write_qxfer_response): Update call to
11037 remote_escape_output.
11038
909c2cda
JK
110392015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11040 Jan Kratochvil <jan.kratochvil@redhat.com>
11041
11042 Merge multiple hex conversions.
11043 * gdbreplay.c (tohex): Rename to 'fromhex'.
11044 (logchar): Use fromhex.
11045
24c05f46
JK
110462015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11047
11048 * server.c (handle_qxfer_libraries): Set `version' attribute for
11049 <library-list>.
11050
14d2069a
GB
110512015-06-10 Gary Benson <gbenson@redhat.com>
11052
11053 * target.h (struct target_ops) <multifs_open>: New field.
11054 <multifs_unlink>: Likewise.
11055 <multifs_readlink>: Likewise.
11056 * linux-low.c (nat/linux-namespaces.h): New include.
11057 (linux_target_ops): Initialize the_target->multifs_open,
11058 the_target->multifs_unlink and the_target->multifs_readlink.
11059 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11060 * hostio.c (hostio_fs_pid): New static variable.
11061 (hostio_handle_new_gdb_connection): New function.
11062 (handle_setfs): Likewise.
11063 (handle_open): Use the_target->multifs_open as appropriate.
11064 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11065 (handle_readlink): Use the_target->multifs_readlink as
11066 appropriate.
11067 (handle_vFile): Handle vFile:setfs packets.
11068 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11069 after target_handle_new_gdb_connection.
11070
4b8b5e72
GB
110712015-06-10 Gary Benson <gbenson@redhat.com>
11072
11073 * configure.ac (AC_CHECK_FUNCS): Add setns.
11074 * config.in: Regenerate.
11075 * configure: Likewise.
11076 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11077 (linux-namespaces.o): New rule.
11078 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11079
3ac2e371
GB
110802015-06-09 Gary Benson <gbenson@redhat.com>
11081
11082 * hostio.c (handle_open): Process mode argument with
11083 fileio_to_host_mode.
11084
ca9b78ce
YQ
110852015-06-01 Yao Qi <yao.qi@linaro.org>
11086
11087 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11088 * linux-x86-low.c: Likewise.
11089
bfacd19d
DB
110902015-05-28 Don Breazeal <donb@codesourcery.com>
11091
11092 * linux-low.c (handle_extended_wait): Initialize
11093 thread_info.last_resume_kind for new fork children.
11094
452003ef
PA
110952015-05-15 Pedro Alves <palves@redhat.com>
11096
11097 * target.h (target_handle_new_gdb_connection): Rewrite using if
11098 wrapped in do/while.
11099
1041a03c
JB
111002015-05-14 Joel Brobecker <brobecker@adacore.com>
11101
11102 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11103 * configure, config.in: Regenerate.
11104 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11105 Declare typedef.
11106
c269dbdb
DB
111072015-05-12 Don Breazeal <donb@codesourcery.com>
11108
11109 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11110 PTRACE_EVENT_VFORK_DONE.
11111 (linux_low_ptrace_options, extended_event_reported): Add vfork
11112 events.
11113 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11114 and "vforkdone" for RSP 'T' Stop Reply Packet.
11115 * server.h (report_vfork_events): Declare
11116 global variable.
11117
3a8a0396
DB
111182015-05-12 Don Breazeal <donb@codesourcery.com>
11119
11120 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11121 (the_low_target) <new_fork>: Initialize new member.
11122 * linux-arm-low.c (arm_new_fork): New function.
11123 (the_low_target) <new_fork>: Initialize new member.
11124 * linux-low.c (handle_extended_wait): Call new target function
11125 new_fork.
11126 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11127 * linux-mips-low.c (mips_add_watchpoint): New function
11128 extracted from mips_insert_point.
11129 (the_low_target) <new_fork>: Initialize new member.
11130 (mips_linux_new_fork): New function.
11131 (mips_insert_point): Call mips_add_watchpoint.
11132 * linux-x86-low.c (x86_linux_new_fork): New function.
11133 (the_low_target) <new_fork>: Initialize new member.
11134
de0d863e
DB
111352015-05-12 Don Breazeal <donb@codesourcery.com>
11136
11137 * linux-low.c (handle_extended_wait): Implement return value,
11138 rename argument 'event_child' to 'event_lwp', handle
11139 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11140 (linux_low_ptrace_options): New function.
11141 (linux_low_filter_event): Call linux_low_ptrace_options,
11142 use different argument fo linux_enable_event_reporting,
11143 use return value from handle_extended_wait.
11144 (extended_event_reported): New function.
11145 (linux_wait_1): Call extended_event_reported and set
11146 status to report fork events.
11147 (linux_write_memory): Add pid to debug message.
11148 (reset_lwp_ptrace_options_callback): New function.
11149 (linux_handle_new_gdb_connection): New function.
11150 (linux_target_ops): Initialize new structure member.
11151 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11152 * lynx-low.c: Initialize new structure member.
11153 * remote-utils.c (prepare_resume_reply): Implement stop reason
11154 "fork" for "T" stop message.
11155 * server.c (handle_query): Call handle_new_gdb_connection.
11156 * server.h (report_fork_events): Declare global flag.
11157 * target.h (struct target_ops) <handle_new_gdb_connection>:
11158 New member.
11159 (target_handle_new_gdb_connection): New macro.
11160 * win32-low.c: Initialize new structure member.
11161
ddcbc397
DB
111622015-05-12 Don Breazeal <donb@codesourcery.com>
11163
11164 * mem-break.c (APPEND_TO_LIST): Define macro.
11165 (clone_agent_expr): New function.
11166 (clone_one_breakpoint): New function.
11167 (clone_all_breakpoints): New function.
11168 * mem-break.h: Declare new functions.
11169
89245bc0
DB
111702015-05-12 Don Breazeal <donb@codesourcery.com>
11171
11172 * linux-low.c (linux_supports_fork_events): New function.
11173 (linux_supports_vfork_events): New function.
11174 (linux_target_ops): Initialize new structure members.
11175 (initialize_low): Call linux_check_ptrace_features.
11176 * lynx-low.c (lynx_target_ops): Initialize new structure
11177 members.
11178 * server.c (report_fork_events, report_vfork_events):
11179 New global flags.
11180 (handle_query): Add new features to qSupported packet and
11181 response.
11182 (captured_main): Initialize new global variables.
11183 * target.h (struct target_ops) <supports_fork_events>:
11184 New member.
11185 <supports_vfork_events>: New member.
11186 (target_supports_fork_events): New macro.
11187 (target_supports_vfork_events): New macro.
11188 * win32-low.c (win32_target_ops): Initialize new structure
11189 members.
11190
835205d0
GB
111912015-05-12 Gary Benson <gbenson@redhat.com>
11192
11193 * server.c (handle_qxfer_exec_file): Use current process
11194 if annex is empty.
11195
21e94bd9
SL
111962015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11197
11198 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11199 Remove HAVE_PTRACE_GETREGS conditionals.
11200 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11201 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11202
45614f15
YQ
112032015-05-08 Yao Qi <yao.qi@linaro.org>
11204
11205 * linux-low.c (linux_supports_conditional_breakpoints): New
11206 function.
11207 (linux_target_ops): Install new target method.
11208 * lynx-low.c (lynx_target_ops): Install NULL hook for
11209 supports_conditional_breakpoints.
11210 * nto-low.c (nto_target_ops): Likewise.
11211 * spu-low.c (spu_target_ops): Likewise.
11212 * win32-low.c (win32_target_ops): Likewise.
11213 * server.c (handle_query): Check
11214 target_supports_conditional_breakpoints.
11215 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11216 New field.
11217 (target_supports_conditional_breakpoints): New macro.
11218
80ad801e
PA
112192015-05-06 Pedro Alves <palves@redhat.com>
11220
11221 PR server/18081
11222 * server.c (start_inferior): If the process exits, mourn it.
11223
819843c7
GB
112242015-04-21 Gary Benson <gbenson@redhat.com>
11225
11226 * hostio.c (fileio_open_flags_to_host): Factored out to
11227 fileio_to_host_openflags in common/fileio.c. Single use
11228 updated.
11229
a2d5a9d7
MF
112302015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11231
11232 * linux-xtensa-low.c (xtensa_fill_gregset)
11233 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11234 XCHAL_HAVE_LOOP.
11235
deb44829
MF
112362015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11237
11238 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11239 (regs_info): Replace usrregs pointer with NULL.
11240
e57f1de3
GB
112412015-04-17 Gary Benson <gbenson@redhat.com>
11242
11243 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11244 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11245 * server.c (handle_qxfer_exec_file): New function.
11246 (qxfer_packets): Add exec-file entry.
11247 (handle_query): Report qXfer:exec-file:read as supported packet.
11248
62828379
RN
112492015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11250
11251 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11252
b88bb450
GB
112532015-04-09 Gary Benson <gbenson@redhat.com>
11254
11255 * hostio-errno.c (errno_to_fileio_error): Remove function.
11256 Update caller to use remote_fileio_to_fio_error.
11257
c8f4bfdd
YQ
112582015-04-09 Yao Qi <yao.qi@linaro.org>
11259
11260 * linux-low.c (linux_insert_point): Call
11261 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11262 (linux_remove_point): Call remove_memory_breakpoint if type is
11263 raw_bkpt_type_sw.
11264 * linux-x86-low.c (x86_insert_point): Don't call
11265 insert_memory_breakpoint.
11266 (x86_remove_point): Don't call remove_memory_breakpoint.
11267
41f98f02
PA
112682015-04-01 Pedro Alves <palves@redhat.com>
11269 Cleber Rosa <crosa@redhat.com>
11270
11271 * server.c (gdbserver_usage): Reorganize and extend the usage
11272 message.
11273
2bf6fb9d
PA
112742015-03-24 Pedro Alves <palves@redhat.com>
11275
11276 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11277 output. Also dump TRAP_TRACE.
11278 (linux_low_filter_event): In debug output, distinguish a
11279 resume_stop SIGSTOP from a delayed SIGSTOP.
11280
369f6daa
GB
112812015-03-24 Gary Benson <gbenson@redhat.com>
11282
11283 * linux-x86-low.c (x86_linux_new_thread): Moved to
11284 nat/x86-linux.c.
11285 (x86_linux_prepare_to_resume): Likewise.
11286
8e5d4070
GB
112872015-03-24 Gary Benson <gbenson@redhat.com>
11288
11289 * Makefile.in (x86-linux-dregs.o): New rule.
11290 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11291 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11292 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11293 (x86_linux_dr_get): Likewise.
11294 (x86_linux_dr_set): Likewise.
11295 (update_debug_registers_callback): Likewise.
11296 (x86_linux_dr_set_addr): Likewise.
11297 (x86_linux_dr_get_addr): Likewise.
11298 (x86_linux_dr_set_control): Likewise.
11299 (x86_linux_dr_get_control): Likewise.
11300 (x86_linux_dr_get_status): Likewise.
11301 (x86_linux_update_debug_registers): Likewise.
11302
2b95d440
GB
113032015-03-24 Gary Benson <gbenson@redhat.com>
11304
11305 * linux-x86-low.c (x86_linux_update_debug_registers):
11306 New function, factored out from...
11307 (x86_linux_prepare_to_resume): ...this.
11308
14b0bc68
GB
113092015-03-24 Gary Benson <gbenson@redhat.com>
11310
11311 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11312 (x86_linux_dr_set): Likewise.
11313 (update_debug_registers_callback): Likewise.
11314 (x86_linux_dr_set_addr): Likewise.
11315 (x86_linux_dr_get_addr): Likewise.
11316 (x86_linux_dr_set_control): Likewise.
11317 (x86_linux_dr_get_control): Likewise.
11318 (x86_linux_dr_get_status): Likewise.
11319 (x86_linux_prepare_to_resume): Likewise.
11320
5dfe6ca8
GB
113212015-03-24 Gary Benson <gbenson@redhat.com>
11322
11323 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11324 Use perror_with_name. Pass string through gettext.
11325 (x86_linux_dr_set): Likewise.
11326
d33472ad
GB
113272015-03-24 Gary Benson <gbenson@redhat.com>
11328
11329 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11330 (x86_linux_dr_set_addr): ...this.
11331 (x86_dr_low_get_addr): Rename to...
11332 (x86_linux_dr_get_addr): ...this.
11333 (x86_dr_low_set_control): Rename to...
11334 (x86_linux_dr_set_control): ...this.
11335 (x86_dr_low_get_control): Rename to...
11336 (x86_linux_dr_get_control): ...this.
11337 (x86_dr_low_get_status): Rename to...
11338 (x86_linux_dr_get_status): ...this.
11339 (x86_dr_low): Update with new function names.
11340
4b134ca1
GB
113412015-03-24 Gary Benson <gbenson@redhat.com>
11342
11343 * Makefile.in (x86-linux.o): New rule.
11344 * configure.srv: Add x86-linux.o to relevant targets.
11345 * linux-low.c (lwp_set_arch_private_info): New function.
11346 (lwp_arch_private_info): Likewise.
11347 * linux-x86-low.c: Include nat/x86-linux.h.
11348 (arch_lwp_info): Removed structure.
11349 (update_debug_registers_callback):
11350 Use lwp_set_debug_registers_changed.
11351 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11352 and lwp_set_debug_registers_changed.
11353 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11354
34c703da
GB
113552015-03-24 Gary Benson <gbenson@redhat.com>
11356
11357 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11358 * linux-arm-low.c (arm_new_thread): Likewise.
11359 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11360 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11361 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11362 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11363
cff068da
GB
113642015-03-24 Gary Benson <gbenson@redhat.com>
11365
11366 * linux-low.c (ptid_of_lwp): New function.
11367 (lwp_is_stopped): Likewise.
11368 (lwp_stop_reason): Likewise.
11369 * linux-x86-low.c (update_debug_registers_callback):
11370 Use lwp_is_stopped.
11371 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11372 lwp_stop_reason.
11373
b2f7c7e8
GB
113742015-03-24 Gary Benson <gbenson@redhat.com>
11375
11376 * linux-low.h (linux_stop_lwp): Remove declaration.
11377
6d4ee8c6
GB
113782015-03-24 Gary Benson <gbenson@redhat.com>
11379
11380 * linux-low.h: Include nat/linux-nat.h.
11381 * linux-low.c (iterate_over_lwps_args): New structure.
11382 (iterate_over_lwps_filter): New function.
11383 (iterate_over_lwps): Likewise.
11384 * linux-x86-low.c (update_debug_registers_callback):
11385 Update signature to what iterate_over_lwps expects.
11386 Remove PID check that iterate_over_lwps now performs.
11387 (x86_dr_low_set_addr): Use iterate_over_lwps.
11388 (x86_dr_low_set_control): Likewise.
11389
70a0bb6b
GB
113902015-03-24 Gary Benson <gbenson@redhat.com>
11391
11392 * linux-x86-low.c (x86_debug_reg_state): New function.
11393 (x86_linux_prepare_to_resume): Use the above.
11394
7b669087
GB
113952015-03-24 Gary Benson <gbenson@redhat.com>
11396
11397 * linux-low.c (current_lwp_ptid): New function.
11398 * linux-x86-low.c: Include nat/linux-nat.h.
11399 (x86_dr_low_get_addr): Use current_lwp_ptid.
11400 (x86_dr_low_get_control): Likewise.
11401 (x86_dr_low_get_status): Likewise.
11402
eef49a3d
PA
114032015-03-20 Pedro Alves <palves@redhat.com>
11404
11405 * tracepoint.c (cmd_qtstatus): Make "str" const.
11406
b2333d22
PA
114072015-03-20 Pedro Alves <palves@redhat.com>
11408
11409 * server.c (handle_general_set): Make "req_str" const.
11410
23f238d3
PA
114112015-03-19 Pedro Alves <palves@redhat.com>
11412
11413 * linux-low.c (linux_resume_one_lwp): Rename to ...
11414 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11415 instead call perror_with_name.
11416 (check_ptrace_stopped_lwp_gone): New function.
11417 (linux_resume_one_lwp): Reimplement as wrapper around
11418 linux_resume_one_lwp_throw that swallows errors if the LWP is
11419 gone.
11420
91baf43f
PA
114212015-03-19 Pedro Alves <palves@redhat.com>
11422
11423 * linux-low.c (count_events_callback, select_event_lwp_callback):
11424 No longer check whether the thread has resume_stop as last resume
11425 kind.
11426
8bf3b159
PA
114272015-03-19 Pedro Alves <palves@redhat.com>
11428
11429 * linux-low.c (count_events_callback, select_event_lwp_callback):
11430 Use the lwp's status_pending_p field, not the thread's.
11431
b90fc188
PA
114322015-03-19 Pedro Alves <palves@redhat.com>
11433
11434 * linux-low.c (select_event_lwp_callback): Update comments to
11435 no longer mention SIGTRAP.
11436
464b0089
GB
114372015-03-18 Gary Benson <gbenson@redhat.com>
11438
11439 * server.c (handle_query): Do not report vFile:fstat as supported.
11440
aa9e327f
GB
114412015-03-11 Gary Benson <gbenson@redhat.com>
11442
11443 * hostio.c (sys/types.h): New include.
11444 (sys/stat.h): Likewise.
11445 (common-remote-fileio.h): Likewise.
11446 (handle_fstat): New function.
11447 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11448
791c0056
GB
114492015-03-11 Gary Benson <gbenson@redhat.com>
11450
11451 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11452 struct stat.st_blocks and struct stat.st_blksize.
11453 * configure: Regenerate.
11454 * config.in: Likewise.
11455 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11456 (OBS): Add common-remote-fileio.o.
11457 (common-remote-fileio.o): New rule.
11458
9a9df970
PA
114592015-03-09 Pedro Alves <palves@redhat.com>
11460
11461 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11462 'struct sockaddr' pointer in 'accept' call.
11463
9eb1356e
PA
114642015-03-09 Pedro Alves <palves@redhat.com>
11465
11466 Revert:
11467 2015-03-07 Pedro Alves <palves@redhat.com>
11468 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11469 or <winsock2.h> here. Instead include "gdb_socket.h".
11470 (remote_open): Use union gdb_sockaddr_u.
11471 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11472 or <winsock2.h> here. Instead include "gdb_socket.h".
11473 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11474 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11475 or <sys/un.h>.
11476 (init_named_socket, gdb_agent_helper_thread): Use union
11477 gdb_sockaddr_u.
11478
aac331e4
PA
114792015-03-07 Pedro Alves <palves@redhat.com>
11480
11481 * configure.ac (build_warnings): Move
11482 -Wdeclaration-after-statement to the C-specific set.
11483 * configure: Regenerate.
11484
366c75fc
PA
114852015-03-07 Pedro Alves <palves@redhat.com>
11486
11487 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11488 or <winsock2.h> here. Instead include "gdb_socket.h".
11489 (remote_open): Use union gdb_sockaddr_u.
11490 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11491 or <winsock2.h> here. Instead include "gdb_socket.h".
11492 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11493 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11494 or <sys/un.h>.
11495 (init_named_socket, gdb_agent_helper_thread): Use union
11496 gdb_sockaddr_u.
11497
492d29ea
PA
114982015-03-07 Pedro Alves <palves@redhat.com>
11499
11500 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11501 instead.
11502
60a191ed
YQ
115032015-03-06 Yao Qi <yao.qi@linaro.org>
11504
11505 * linux-aarch64-low.c (aarch64_insert_point): Use
11506 show_debug_regs as a boolean.
11507 (aarch64_remove_point): Likewise.
11508
f5771b1d
PA
115092015-03-05 Pedro Alves <palves@redhat.com>
11510
11511 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11512 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11513 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11514 * nto-low.c (nto_target_ops): Likewise.
11515 * spu-low.c (spu_target_ops): Likewise.
11516 * win32-low.c (win32_target_ops): Likewise.
11517
3e572f71
PA
115182015-03-04 Pedro Alves <palves@redhat.com>
11519
72f4393d 11520 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11521 Decide whether a breakpoint triggered based on the SIGTRAP's
11522 siginfo.si_code.
72f4393d
L
11523 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11524 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11525 (linux_low_filter_event): Check for breakpoints before checking
11526 watchpoints.
11527 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11528 siginfo.si_code.
72f4393d
L
11529 (linux_stopped_by_sw_breakpoint)
11530 (linux_supports_stopped_by_sw_breakpoint)
11531 (linux_stopped_by_hw_breakpoint)
11532 (linux_supports_stopped_by_hw_breakpoint): New functions.
11533 (linux_target_ops): Install new target methods.
3e572f71 11534
1ec68e26
PA
115352015-03-04 Pedro Alves <palves@redhat.com>
11536
11537 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11538 * server.c (swbreak_feature, hwbreak_feature): New globals.
11539 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11540 (captured_main): Clear swbreak_feature and hwbreak_feature.
11541 * server.h (swbreak_feature, hwbreak_feature): Declare.
11542 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11543 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11544 supports_stopped_by_hw_breakpoint>: New fields.
11545 (target_supports_stopped_by_sw_breakpoint)
11546 (target_stopped_by_sw_breakpoint)
11547 (target_supports_stopped_by_hw_breakpoint)
11548 (target_stopped_by_hw_breakpoint): Declare.
11549
15c66dd6
PA
115502015-03-04 Pedro Alves <palves@redhat.com>
11551
11552 enum lwp_stop_reason -> enum target_stop_reason
11553 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11554 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11555 (linux_wait_1, stuck_in_jump_pad_callback)
11556 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11557 (linux_stopped_by_watchpoint):
11558 * linux-low.h (enum lwp_stop_reason): Delete.
11559 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11560 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11561
98fc70d6
YQ
115622015-03-04 Yao Qi <yao.qi@linaro.org>
11563
11564 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11565
dd2ac174
GB
115662015-03-03 Gary Benson <gbenson@redhat.com>
11567
11568 * hostio.c (handle_vFile): Fix prefix lengths.
11569
d68e53f4
MM
115702015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11571
11572 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11573 ptr_bits.
11574
bf2d68ab
AA
115752015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11576
11577 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11578 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11579 (clean): Add "rm -f" for above C files.
11580 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11581 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11582 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11583 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11584 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11585 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11586 (init_registers_s390x_vx_linux64)
11587 (init_registers_s390x_tevx_linux64)
11588 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11589 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11590 declarations.
11591 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11592 (s390_store_vxrs_high): New functions.
11593 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11594 NT_S390_VXRS_HIGH.
11595 (s390_arch_setup): Add logic for selecting one of the new target
11596 descriptions. Activate the new vector regsets if applicable.
11597 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11598 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11599 and init_registers_s390x_tevx_linux64.
11600
c966a859
PA
116012015-03-01 Pedro Alves <palves@redhat.com>
11602
11603 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11604 parameter.
11605
4180215b
PA
116062015-02-27 Pedro Alves <palves@redhat.com>
11607
11608 * linux-x86-low.c (u_debugreg_offset): New function.
11609 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11610
749bab01
PA
116112015-02-27 Pedro Alves <palves@redhat.com>
11612
11613 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11614 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11615 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11616 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11617 (ps_lsetfpregs, ps_getpid)
11618 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11619 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11620 (ps_lsetxregs, ps_plog): Declare.
11621
3c14e5a3
PA
116222015-02-27 Pedro Alves <palves@redhat.com>
11623
11624 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11625 IP_AGENT_EXPORT_FUNC.
11626 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11627 IP_AGENT_EXPORT_FUNC.
11628 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11629 (IP_AGENT_EXPORT): Delete.
11630 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11631 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11632 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11633 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11634 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11635 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11636 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11637 (traceframe_read_count, traceframe_write_count)
11638 (traceframes_created, trace_state_variables, get_raw_reg)
11639 (get_trace_state_variable_value, set_trace_state_variable_value)
11640 (ust_loaded, helper_thread_id, cmd_buf): Use
11641 IPA_SYM_EXPORTED_NAME.
11642 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11643 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11644 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11645 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11646 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11647 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11648 EXTERN_C_PUSH/EXTERN_C_POP.
11649 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11650 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11651 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11652 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11653 (traceframe_write_count, traceframe_read_count)
11654 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11655 (about_to_request_buffer_space, get_trace_state_variable_value)
11656 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11657 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11658 EXTERN_C_PUSH/EXTERN_C_POP.
11659 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11660 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11661 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11662 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11663 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11664 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11665 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11666 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11667 Define.
11668 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11669 (IP_AGENT_EXPORT_VAR_DECL): Define.
11670 (tracing): Declare.
11671 (gdb_agent_get_raw_reg): Declare.
11672
fe978cb0
PA
116732015-02-27 Tom Tromey <tromey@redhat.com>
11674 Pedro Alves <palves@redhat.com>
11675
11676 Rename symbols whose names are reserved C++ keywords throughout.
11677
3bc3d82a
PA
116782015-02-27 Pedro Alves <palves@redhat.com>
11679
11680 * Makefile.in (COMPILER): New, get it from autoconf.
11681 (CXX): Get from autoconf instead.
11682 (COMPILE.pre): Use COMPILER.
11683 (CC-LD): Rename to ...
11684 (CC_LD): ... this. Use COMPILER.
11685 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11686 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11687 * acinclude.m4: Include build-with-cxx.m4.
11688 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11689 Disable -Werror by default if building in C++ mode.
11690 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11691 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11692 the C++ compiler. Save/restore CXXFLAGS too.
11693 * configure: Regenerate.
11694
07697489
PA
116952015-02-27 Pedro Alves <palves@redhat.com>
11696
11697 * acinclude.m4: Include libiberty.m4.
11698 * configure.ac: Call libiberty_INIT.
11699 * config.in, configure: Regenerate.
11700
9beb7c4e
PA
117012015-02-26 Pedro Alves <palves@redhat.com>
11702
11703 * linux-low.c (linux_wait_1): When incrementing the PC past a
11704 program breakpoint always use the_low_target.breakpoint_len as
11705 increment, rather than the maximum between that and
11706 the_low_target.decr_pc_after_break.
11707
8090aef2
PA
117082015-02-23 Pedro Alves <palves@redhat.com>
11709
11710 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11711 thread was doing a step-over; always adjust the PC if
11712 we stepped over a permanent breakpoint.
11713 (linux_wait_1): If we stepped over breakpoint that was on top of a
11714 permanent breakpoint, manually advance the PC past it.
11715
bc9540e8
PA
117162015-02-23 Pedro Alves <palves@redhat.com>
11717
11718 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11719 modes.
11720 (x86_fill_gregset, x86_store_gregset): Use it when handling
11721 $orig_eax.
11722
2db9a427
PA
117232015-02-20 Pedro Alves <palves@redhat.com>
11724
11725 * thread-db.c: Include "nat/linux-procfs.h".
11726 (thread_db_init): Skip listing new threads if the kernel supports
11727 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11728
afa8d396
PA
117292015-02-20 Pedro Alves <palves@redhat.com>
11730
11731 * linux-low.c (status_pending_p_callback): Use ptid_match.
11732
c9587f88
AT
117332015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11734
11735 PR breakpoints/16812
11736 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11737 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11738 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11739
b05ec7a5
AT
117402015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11741
11742 PR breakpoints/15956
11743 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11744
d33501a5
MM
117452015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11746
11747 * linux-low.c (linux_low_btrace_conf): Print size.
11748 * server.c (handle_btrace_conf_general_set): New.
11749 (hanle_general_set): Call handle_btrace_conf_general_set.
11750 (handle_query): Report Qbtrace-conf:bts:size as supported.
11751
f4abbc16
MM
117522015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11753
11754 * linux-low.c (linux_low_enable_btrace): Update parameters.
11755 (linux_low_btrace_conf): New.
11756 (linux_target_ops)<to_btrace_conf>: Initialize.
11757 * server.c (current_btrace_conf): New.
11758 (handle_btrace_enable): Rename to ...
11759 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11760 to target_enable_btrace. Update comment. Update users.
11761 (handle_qxfer_btrace_conf): New.
11762 (qxfer_packets): Add btrace-conf entry.
11763 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11764 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11765 (target_ops)<read_btrace_conf>: New.
11766 (target_enable_btrace): Update parameters.
11767 (target_read_btrace_conf): New.
11768
043c3577
MM
117692015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11770
11771 * server.c (handle_btrace_general_set): Remove call to
11772 target_supports_btrace.
11773 (supported_btrace_packets): New.
11774 (handle_query): Call supported_btrace_packets.
11775 * target.h: include btrace-common.h.
11776 (btrace_target_info): Removed.
11777 (supports_btrace, target_supports_btrace): Update parameters.
11778
734b0e4b
MM
117792015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11780
11781 * Makefile.in (SFILES): Add common/btrace-common.c.
11782 (OBS): Add common/btrace-common.o.
11783 (btrace-common.o): Add build rules.
11784 * linux-low: Include btrace-common.h.
11785 (linux_low_read_btrace): Use struct btrace_data. Call
11786 btrace_data_init and btrace_data_fini.
11787
d6c146e9
PA
117882015-02-06 Pedro Alves <palves@redhat.com>
11789
11790 * thread-db.c (find_new_threads_callback): Add debug output.
11791
20ba1ce6
PA
117922015-02-04 Pedro Alves <palves@redhat.com>
11793
11794 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11795 (resume_stopped_resumed_lwps): New function.
11796 (linux_wait_for_event_filtered): Use it.
11797
8cc73a39
SDJ
117982015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11799
11800 * Makefile.in (SFILES): Add linux-personality.c.
11801 (linux-personality.o): New rule.
11802 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11803 list of objects to be built.
11804 * linux-low.c: Include nat/linux-personality.h.
11805 (linux_create_inferior): Remove code to disable address space
11806 randomization (moved to ../nat/linux-personality.c). Create
11807 cleanup to disable address space randomization.
11808
fb23d554
SDJ
118092015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11810
11811 * Makefile.in (posix-strerror.o): New rule.
11812 (mingw-strerror.o): Likewise.
11813 * configure: Regenerated.
11814 * configure.ac: Source file ../common/common.host. Initialize new
11815 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11816
cdf43629
YQ
118172015-01-14 Yao Qi <yao@codesourcery.com>
11818
11819 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11820 (ppc-linux.o): New rule.
11821 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11822 * configure.ac: AC_CHECK_FUNCS(getauxval).
11823 * config.in: Re-generated.
11824 * configure: Re-generated.
11825 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11826 ppc64_64bit_inferior_p
11827
514c5338
YQ
118282015-01-14 Yao Qi <yao@codesourcery.com>
11829
11830 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11831 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11832 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11833 (PT_ORIG_R3, PT_TRAP): Likewise.
11834 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11835 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11836 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11837
3368c1e5
JB
118382015-01-10 Joel Brobecker <brobecker@adacore.com>
11839
11840 * i387-fp.c (i387_cache_to_xsave): In look over
11841 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11842 zmmh_low_space field by use of zmmh_high_space.
11843
582511be
PA
118442015-01-09 Pedro Alves <palves@redhat.com>
11845
11846 * linux-low.c (step_over_bkpt): Move higher up in the file.
11847 (handle_extended_wait): Don't store the stop_pc here.
11848 (get_stop_pc): Adjust comments and rename to ...
11849 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11850 stopped for a software breakpoint or hardware breakpoint.
11851 (thread_still_has_status_pending_p): New function.
11852 (status_pending_p_callback): Use
11853 thread_still_has_status_pending_p. If the event is no longer
11854 interesting, resume the LWP.
11855 (handle_tracepoints): Add assert.
11856 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11857 (wstatus_maybe_breakpoint): New function.
11858 (cancel_breakpoint): Delete function.
11859 (check_stopped_by_watchpoint): New function, factored out from
11860 linux_low_filter_event.
11861 (lp_status_maybe_breakpoint): Delete function.
11862 (linux_low_filter_event): Remove filter_ptid argument.
11863 Leave thread group exits pending here. Store the LWP's stop PC.
11864 Always leave events pending.
11865 (linux_wait_for_event_filtered): Pull all events out of the
11866 kernel, and leave them all pending.
11867 (count_events_callback, select_event_lwp_callback): Consider all
11868 events.
11869 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11870 (select_event_lwp): Only give preference to the stepping LWP in
11871 all-stop mode. Adjust comments.
11872 (ignore_event): New function.
11873 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11874 references to cancel_breakpoints. Adjust to renames. Also give
11875 equal priority to all LWPs that have had events in non-stop mode.
11876 If reporting a software breakpoint event, unadjust the LWP's PC.
11877 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11878 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11879 Adjust.
11880 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11881 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11882 (linux_stopped_by_watchpoint): Adjust.
11883 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11884 * linux-low.h (enum lwp_stop_reason): New.
11885 (struct lwp_info) <stop_pc>: Adjust comment.
11886 <stopped_by_watchpoint>: Delete field.
11887 <stop_reason>: New field.
11888 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11889 * mem-break.c (software_breakpoint_inserted_here)
11890 (hardware_breakpoint_inserted_here): New function.
11891 * mem-break.h (software_breakpoint_inserted_here)
11892 (hardware_breakpoint_inserted_here): Declare.
11893 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11894 (cancel_breakpoints): Delete.
11895 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11896 (upload_fast_traceframes): Remove references to
11897 cancel_breakpoints.
11898
a33e3959
PA
118992015-01-09 Pedro Alves <palves@redhat.com>
11900
11901 * thread-db.c (find_new_threads_callback): Ignore thread if the
11902 kernel thread ID is -1.
11903
8784d563
PA
119042015-01-09 Pedro Alves <palves@redhat.com>
11905
11906 * linux-low.c (linux_attach_fail_reason_string): Move to
11907 nat/linux-ptrace.c, and rename.
11908 (linux_attach_lwp): Update comment.
11909 (attach_proc_task_lwp_callback): New function.
11910 (linux_attach): Adjust to rename and use
11911 linux_proc_attach_tgid_threads.
11912 (linux_attach_fail_reason_string): Delete declaration.
11913
76f2b779
JB
119142015-01-01 Joel Brobecker <brobecker@adacore.com>
11915
11916 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11917 * server.c (gdbserver_version): Likewise.
11918
fafcc06a
SDJ
119192014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11920
11921 * remote-utils.c: Include ctype.h.
11922 (input_interrupt): Explicitly handle the case when the char
11923 received is the NUL byte. Improve the printing of non-ASCII
11924 characters.
11925
beed38b8
JB
119262014-12-16 Joel Brobecker <brobecker@adacore.com>
11927
11928 * linux-low.c (linux_low_filter_event): Update call to
11929 linux_enable_event_reporting following the addition of
11930 a new parameter to that function.
11931
bf330350
CU
119322014-12-16 Catalin Udma <catalin.udma@freescale.com>
11933
11934 PR server/17457
11935 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11936 (AARCH64_FPCR_REGNO): Likewise.
11937 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11938 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11939 (aarch64_store_fpregset): Likewise.
11940
5227d625
JB
119412014-12-15 Joel Brobecker <brobecker@adacore.com>
11942
11943 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11944 Remove FIXME comment about assumption about N.
11945
f93b65a0
JB
119462014-12-13 Joel Brobecker <brobecker@adacore.com>
11947
11948 * configure.ac: If large-file support is disabled in GDBserver,
11949 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11950 * configure: Regenerate.
11951
e5a9158d
AA
119522014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11953
11954 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11955 warning upon ENODATA from ptrace.
11956 * linux-s390-low.c (s390_store_tdb): New.
11957 (s390_regsets): Add regset for NT_S390_TDB.
11958
feea5f36
AA
119592014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11960
11961 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11962 without a fill_function.
11963 * linux-s390-low.c (s390_fill_last_break): Remove.
11964 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11965 (s390_arch_setup): Use regset's size instead of fill_function for
11966 loop end condition.
11967
098dbe61
AA
119682014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11969
11970 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11971 the regset's store function when ptrace returned an error.
11972 * regcache.c (get_thread_regcache): Invalidate register cache
11973 before fetching inferior's registers.
11974
28eef672
AA
119752014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11976
11977 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11978 while-loop as for-loop.
11979 (regsets_store_inferior_registers): Likewise.
11980
bdca27a2
YQ
119812014-11-28 Yao Qi <yao@codesourcery.com>
11982
11983 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11984 * config.in, configure: Re-generate.
11985 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11986 is defined.
11987
9c232dda
YQ
119882014-11-21 Yao Qi <yao@codesourcery.com>
11989
11990 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11991 (AC_CHECK_HEADERS): Remove malloc.h.
11992 * configure: Re-generated.
11993 * config.in: Re-generated.
11994 * server.h: Don't include alloca.h and malloc.h.
11995 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11996 Don't include malloc.h.
11997
43968415
JB
119982014-11-17 Joel Brobecker <brobecker@adacore.com>
11999
12000 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12001 corresponding ERRNO check in same block.
12002
40e91bc7
PA
120032014-11-12 Pedro Alves <palves@redhat.com>
12004
12005 * server.c (cont_thread): Update comment.
12006 (start_inferior, attach_inferior): No longer clear cont_thread.
12007 (handle_v_cont): No longer set cont_thread.
12008 (captured_main): Clear cont_thread each time a GDB connects.
12009
c2c118cf
PA
120102014-11-12 Pedro Alves <palves@redhat.com>
12011
12012 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12013 thread, and don't resume all threads if the Hc thread has exited.
12014
78708b7c
PA
120152014-11-12 Pedro Alves <palves@redhat.com>
12016
12017 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12018 the process group instead of to a specific LWP.
12019
a2abc7de
PA
120202014-10-15 Pedro Alves <palves@redhat.com>
12021
12022 PR server/17487
12023 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12024 parameter.
12025 (arm_set_thread_context): Delete.
12026 (the_low_target): Adjust.
12027 * win32-i386-low.c (debug_registers_changed)
12028 (debug_registers_used): Delete.
12029 (update_debug_registers_callback): New function.
12030 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12031 needing to update their debug registers.
12032 (win32_get_current_dr): New function.
12033 (x86_dr_low_get_addr, x86_dr_low_get_control)
12034 (x86_dr_low_get_status): Fetch the debug register from the thread
12035 record's context.
12036 (i386_initial_stuff): Adjust.
12037 (i386_get_thread_context): Remove current_event parameter. Don't
12038 clear debug_registers_changed nor copy DR values to
12039 debug_reg_state.
12040 (i386_set_thread_context): Delete.
12041 (i386_prepare_to_resume): New function.
12042 (i386_thread_added): Mark the thread as needing to update irs
12043 debug registers.
12044 (the_low_target): Remove i386_set_thread_context and install
12045 i386_prepare_to_resume.
12046 * win32-low.c (win32_get_thread_context): Adjust.
12047 (win32_set_thread_context): Use SetThreadContext
12048 directly.
12049 (win32_prepare_to_resume): New function.
12050 (win32_require_context): New function, factored out from ...
12051 (thread_rec): ... this.
12052 (continue_one_thread): Call win32_prepare_to_resume on each thread
12053 we're about to continue.
12054 (win32_resume): Call win32_prepare_to_resume on the event thread.
12055 * win32-low.h (struct win32_thread_info)
12056 <debug_registers_changed>: New field.
12057 (struct win32_target_ops): Change prototype of set_thread_context,
12058 delete set_thread_context and add prepare_to_resume.
12059 (win32_require_context): New declaration.
12060
a442d071
GB
120612014-10-08 Gary Benson <gbenson@redhat.com>
12062
12063 * server.h: Do not include common-exceptions.h.
12064
6f1947e8
GB
120652014-10-08 Gary Benson <gbenson@redhat.com>
12066
12067 * server.h: Do not include cleanups.h.
12068
63b434a4
JH
120692014-09-30 James Hogan <james.hogan@imgtec.com>
12070
12071 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12072 mips64-dsp-linux.c.
12073
c4d9ceb6
YQ
120742014-09-23 Yao Qi <yao@codesourcery.com>
12075
12076 * linux-low.c (lp_status_maybe_breakpoint): New function.
12077 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12078 (count_events_callback): Likewise.
12079 (select_event_lwp_callback): Likewise.
12080 (cancel_breakpoints_callback): Likewise.
12081
89a5711c
DB
120822014-09-19 Don Breazeal <donb@codesourcery.com>
12083
12084 * linux-low.c (handle_extended_wait): Call
12085 linux_ptrace_get_extended_event.
12086 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12087 linux_is_extended_waitstatus.
12088
bffc0964
JB
120892014-09-16 Joel Brobecker <brobecker@adacore.com>
12090
12091 * Makefile.in (CPPFLAGS): Define.
12092 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12093 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12094
0bfdf32f
GB
120952014-09-16 Gary Benson <gbenson@redhat.com>
12096
12097 * inferiors.h (current_inferior): Renamed as...
12098 (current_thread): New variable. All uses updated.
12099 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12100 (maybe_move_out_of_jump_pad): Likewise.
12101 (cancel_breakpoint): Likewise.
12102 (linux_low_filter_event): Likewise.
12103 (wait_for_sigstop): Likewise.
12104 (linux_resume_one_lwp): Likewise.
12105 (need_step_over_p): Likewise.
12106 (start_step_over): Likewise.
12107 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12108 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12109 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12110 and save_inferior as saved_thread.
12111 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12112 saved_thread.
12113 (regcache_invalidate_thread): Likewise.
12114 * remote-utils.c (prepare_resume_reply): Likewise.
12115 * thread-db.c (thread_db_get_tls_address): Likewise.
12116 (disable_thread_event_reporting): Likewise.
12117 (remove_thread_event_breakpoints): Likewise.
12118 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12119 as saved_thread.
12120 * target.h (set_desired_inferior): Renamed as...
12121 (set_desired_thread): New declaration. All uses updated.
12122 * server.c (myresume): Updated comment to reference thread instead
12123 of inferior.
12124 (handle_serial_event): Likewise.
12125 (handle_target_event): Likewise.
12126
361c8ade
GB
121272014-09-12 Tom Tromey <tromey@redhat.com>
12128 Gary Benson <gbenson@redhat.com>
12129
12130 * regcache.h: Include common-regcache.h.
12131 (regcache_read_pc): Don't declare.
12132 * regcache.c (get_thread_regcache_for_ptid): New function.
12133
bd9269f7
GB
121342014-09-11 Tom Tromey <tromey@redhat.com>
12135 Gary Benson <gbenson@redhat.com>
12136
12137 * symbol.c: New file.
12138 * Makefile.in (SFILES): Add symbol.c.
12139 (OBS): Add symbol.o.
12140
f8c1d06b
GB
121412014-09-11 Gary Benson <gbenson@redhat.com>
12142
12143 * target.c (target_stop_ptid, target_continue_ptid): New
12144 functions.
12145
721ec300
GB
121462014-09-11 Tom Tromey <tromey@redhat.com>
12147 Gary Benson <gbenson@redhat.com>
12148
12149 * target.h: Include target/target.h.
12150 * target.c (target_read_memory, target_read_uint32)
12151 (target_write_memory): New functions.
12152
c5e92cca
GB
121532014-09-11 Gary Benson <gbenson@redhat.com>
12154
12155 * server.h (debug_hw_points): Don't declare.
12156 * server.c (debug_hw_points): Don't define. Replace all uses
12157 with show_debug_regs.
12158 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12159 all uses with show_debug_regs.
12160
2e4bb98a
EBM
121612014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12162
12163 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12164 endianness into account.
12165 (ppc_supply_ptrace_register): Likewise.
12166
ac740bc7
JH
121672014-09-03 James Hogan <james.hogan@imgtec.com>
12168
12169 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12170 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12171
97ea6506
GB
121722014-09-03 Gary Benson <gbenson@redhat.com>
12173
12174 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12175 ALL_DEBUG_ADDRESS_REGISTERS.
12176
df7e5265
GB
121772014-09-02 Gary Benson <gbenson@redhat.com>
12178
12179 * i386-low.h: Renamed as...
12180 * x86-low.h: New file. All type, function and variable name
12181 prefixes changed from "i386_" to "x86_". All references updated.
12182 * i386-low.c: Renamed as...
12183 * x86-low.c: New file. All type, function and variable name
12184 prefixes changed from "i386_" to "x86_". All references updated.
12185
ed859da7
GB
121862014-09-02 Gary Benson <gbenson@redhat.com>
12187
12188 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12189 (x86_linux_new_thread): Likewise.
12190
860789c7
GB
121912014-08-29 Gary Benson <gbenson@redhat.com>
12192
12193 * server.h (setjmp.h): Do not include.
12194 (toplevel): Do not declare.
12195 (common-exceptions.h): Include.
12196 (cleanups.h): Likewise.
12197 * server.c (toplevel): Do not define.
12198 (exit_code): New static global.
12199 (detach_or_kill_for_exit_cleanup): New function.
12200 (main): New function. Original main renamed to...
12201 (captured_main): New function.
12202 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12203
ff55e1b5
GB
122042014-08-29 Gary Benson <gbenson@redhat.com>
12205
12206 * Makefile.in (SFILES): Add common/common-exceptions.c.
12207 (OBS): Add common-exceptions.o.
12208 (common-exceptions.o): New rule.
12209 * utils.c (prepare_to_throw_exception): New function.
12210
e9bcb658
GB
122112014-08-29 Gary Benson <gbenson@redhat.com>
12212
12213 * config.in: Regenerate.
12214 * configure: Likewise.
12215
e3180625
GB
122162014-08-29 Gary Benson <gbenson@redhat.com>
12217
12218 * Makefile.in (SFILES): Add common/cleanups.c.
12219 (OBS): cleanups.o.
12220 (cleanups.o): New rule.
12221
e3d6ba5d
GB
122222014-08-29 Gary Benson <gbenson@redhat.com>
12223
12224 * utils.c (internal_vwarning): New function.
12225
7096e886
GB
122262014-08-28 Gary Benson <gbenson@redhat.com>
12227
12228 * utils.h (fatal): Remove declaration.
12229 * utils.c (fatal): Remove function.
12230
14ce3192
GB
122312014-08-28 Gary Benson <gbenson@redhat.com>
12232
12233 * tracepoint.c (gdb_agent_init): Replace fatal with
12234 perror_with_name.
12235 (initialize_tracepoint): Likewise.
12236
50278d59
GB
122372014-08-28 Gary Benson <gbenson@redhat.com>
12238
12239 * remote-utils.c (remote_prepare): Replace fatal with error.
12240
aa96c426
GB
122412014-08-28 Gary Benson <gbenson@redhat.com>
12242
12243 * linux-low.c (linux_async): Replace fatal with warning.
12244 Tidy up and return.
12245 (linux_start_non_stop): Return -1 if linux_async failed.
12246
f7160e97
GB
122472014-08-28 Gary Benson <gbenson@redhat.com>
12248
12249 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12250 gdb_assert.
12251 (i386_dr_low_get_addr): Remove vague comment.
12252 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12253 gdb_assert.
12254
38e08fca
GB
122552014-08-28 Gary Benson <gbenson@redhat.com>
12256
12257 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12258 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12259 internal_error.
12260 (linux_resume_one_lwp): Likewise.
12261 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12262 gdb_assert.
12263 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12264 with internal_error.
12265 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12266 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12267 (find_register_by_name): Replace fatal with internal_error.
12268 (find_regno): Likewise.
12269 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12270 * thread-db.c (thread_db_create_event): Likewise.
12271 (thread_db_load_search): Likewise.
12272 (try_thread_db_load_1): Likewise.
12273 * tracepoint.c (get_jump_space_head): Replace fatal with
12274 internal_error.
12275 (claim_trampoline_space): Likewise.
12276 (have_fast_tracepoint_trampoline_buffer): Likewise.
12277 (cmd_qtstart): Likewise.
12278 (stop_tracing): Likewise.
12279 (fast_tracepoint_collecting): Likewise.
12280 (target_malloc): Likewise.
12281 (download_tracepoint): Likewise.
12282 (download_trace_state_variables): Replace check with gdb_assert.
12283 (upload_fast_traceframes): Replace fatal with internal_error.
12284
34abf635
GB
122852014-08-19 Tom Tromey <tromey@redhat.com>
12286 Gary Benson <gbenson@redhat.com>
12287
12288 * Makefile.in (SFILES): Add common/common-debug.c.
12289 (OBS): Add common-debug.o.
12290 (common-debug.o): New rule.
12291 * debug.h (debug_printf): Don't declare.
12292 * debug.c (debug_printf): Renamed and rewritten as...
12293 (debug_vprintf): New function.
12294
f6e94d78
GB
122952014-08-19 Gary Benson <gbenson@redhat.com>
12296
12297 * utils.h: Do not include print-utils.h.
12298
9239eeab
GB
122992014-08-19 Tom Tromey <tromey@redhat.com>
12300 Gary Benson <gbenson@redhat.com>
12301
12302 * server.h: Add static assertion.
12303 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12304
ef87c8bb
GB
123052014-08-19 Tom Tromey <tromey@redhat.com>
12306 Gary Benson <gbenson@redhat.com>
12307
12308 * Makefile.in (SFILES): Add common/errors.c.
12309 (OBS): Add errors.o.
12310 (IPA_OBS): Add errors-ipa.o.
12311 (errors.o): New rule.
12312 (errors-ipa.o): Likewise.
12313 * utils.h (perror_with_name, error, warning): Don't declare.
12314 * utils.c (warning): Renamed and rewritten as...
12315 (vwarning): New function.
12316 (error): Renamed and rewritten as...
12317 (verror): New function.
12318 (internal_error): Renamed and rewritten as...
12319 (internal_verror): New function.
12320
bb974a24
GB
123212014-08-07 Gary Benson <gbenson@redhat.com>
12322
12323 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12324 * configure: Regenerate.
12325 * config.in: Likewise.
12326 * server.h: Do not include errno.h.
12327 * event-loop.c: Likewise.
12328 * hostio-errno.c: Likewise.
12329 * linux-low.c: Likewise.
12330 * remote-utils.c: Likewise.
12331 * spu-low.c: Likewise.
12332 * utils.c: Likewise.
12333 * gdbreplay.c: Unconditionally include errno.h.
12334
6d3d12eb
GB
123352014-08-07 Gary Benson <gbenson@redhat.com>
12336
12337 * server.h: Do not include string.h.
12338 * event-loop.c: Likewise.
12339 * linux-low.c: Likewise.
12340 * regcache.c: Likewise.
12341 * remote-utils.c: Likewise.
12342 * spu-low.c: Likewise.
12343 * utils.c: Likewise.
12344
dccbb609
GB
123452014-08-07 Gary Benson <gbenson@redhat.com>
12346
12347 * server.h: Do not include gdb_assert.h.
12348
e76df0d0
GB
123492014-08-07 Gary Benson <gbenson@redhat.com>
12350
12351 * server.h: Do not include common-utils.h.
12352
4cb9c816
GB
123532014-08-07 Gary Benson <gbenson@redhat.com>
12354
12355 * server.h: Do not include ptid.h.
12356 * notif.h: Likewise.
12357
3995eeee
GB
123582014-08-07 Gary Benson <gbenson@redhat.com>
12359
12360 * server.h: Do not include gdb_locale.h.
12361
cb9f1a9b
GB
123622014-08-07 Gary Benson <gbenson@redhat.com>
12363
12364 * server.h: Do not include gdb/signals.h.
12365 * win32-low.c: Likewise.
12366
a5fceff8
GB
123672014-08-07 Gary Benson <gbenson@redhat.com>
12368
12369 * server.h: Do not include pathmax.h.
12370
b9391142
GB
123712014-08-07 Gary Benson <gbenson@redhat.com>
12372
12373 * server.h: Do not include libiberty.h.
12374 * linux-bfin-low.c: Likewise.
12375
0e443c87
GB
123762014-08-07 Gary Benson <gbenson@redhat.com>
12377
12378 * server.h: Do not include ansidecl.h.
12379
8ebb3f56
GB
123802014-08-07 Gary Benson <gbenson@redhat.com>
12381
12382 * linux-x86-low.c: Do not include stddef.h.
12383 * lynx-ppc-low.c: Likewise.
12384 * tracepoint.c: Likewise.
12385
8980bdf6
GB
123862014-08-07 Gary Benson <gbenson@redhat.com>
12387
12388 * server.h: Do not include stdarg.h.
12389 * nto-low.c: Likewise.
12390
d7096f71
GB
123912014-08-07 Gary Benson <gbenson@redhat.com>
12392
12393 * server.h: Do not include stdlib.h.
12394 * inferiors.c: Likewise.
12395 * linux-low.c: Likewise.
12396 * regcache.c: Likewise.
12397 * spu-low.c: Likewise.
12398 * tracepoint.c: Likewise.
12399 * utils.c: Likewise.
12400
d02f550d
GB
124012014-08-07 Gary Benson <gbenson@redhat.com>
12402
12403 * server.h: Do not include stdio.h.
12404 * linux-low.c: Likewise.
12405 * remote-utils.c: Likewise.
12406 * spu-low.c: Likewise.
12407 * utils.c: Likewise.
12408 * wincecompat.c: Likewise.
12409
87f6c4e3
GB
124102014-08-06 Gary Benson <gbenson@redhat.com>
12411
12412 * regcache.c (init_register_cache): Move conditionals inside if.
12413
7089dca4
GB
124142014-08-06 Gary Benson <gbenson@redhat.com>
12415
12416 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12417
462f517e
GB
124182014-07-31 Gary Benson <gbenson@redhat.com>
12419
12420 * ax.h: Do not include server.h.
12421 * gdbthread.h: Likewise.
12422 * lynx-low.h: Likewise.
12423 * notif.h: Likewise.
12424
976411d6
GB
124252014-07-30 Gary Benson <gbenson@redhat.com>
12426
12427 * server.h: Include common-defs.h.
12428 Do not include config.h or build-gnulib-gdbserver/config.h.
12429
d41f6d8e
GB
124302014-07-30 Gary Benson <gbenson@redhat.com>
12431
12432 * hostio-errno.c: Move server.h to top of includes list.
12433 * inferiors.c: Likewise.
12434 * linux-x86-low.c: Likewise.
12435 * notif.c: Include server.h.
12436
314c6a35
TT
124372014-07-24 Tom Tromey <tromey@redhat.com>
12438 Gary Benson <gbenson@redhat.com>
12439
12440 * server.h (CORE_ADDR): Now unsigned.
12441
69ff6be5
PA
124422014-07-16 Pedro Alves <palves@redhat.com>
12443
12444 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12445
ce9e3fe7
PA
124462014-07-15 Pedro Alves <palves@redhat.com>
12447
12448 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12449 copy.
12450
e76126e8
PA
124512014-07-11 Pedro Alves <palves@redhat.com>
12452
12453 * linux-low.c (kill_wait_lwp): New function, based on
12454 kill_one_lwp_callback, but use my_waitpid directly.
12455 (kill_one_lwp_callback, linux_kill): Use it.
12456
8e9db26e
PA
124572014-06-23 Pedro Alves <palves@redhat.com>
12458
12459 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12460 before setting DR0..DR3.
12461
698b3e08
GB
124622014-06-20 Gary Benson <gbenson@redhat.com>
12463
12464 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12465 * configure: Regenerated.
12466 * config.in: Likewise.
12467
125f8a3d
GB
124682014-06-20 Gary Benson <gbenson@redhat.com>
12469
12470 * Makefile.in (SFILES): Update locations for files moved
12471 from common to nat.
12472 (object file files): Reordered.
12473
42995dbd
GB
124742014-06-20 Gary Benson <gbenson@redhat.com>
12475
12476 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12477 (i386_dr_low_set_addr): Likewise.
12478 (i386_dr_low_get_addr): Likewise.
12479 (i386_dr_low_can_set_control): Likewise.
12480 (i386_dr_low_set_control): Likewise.
12481 (i386_dr_low_get_control): Likewise.
12482 (i386_dr_low_get_status): Likewise.
12483 (i386_get_debug_register_length): Likewise.
12484 * linux-x86-low.c (i386_dr_low_set_addr):
12485 Changed signature. Made static.
12486 (i386_dr_low_get_addr): Likewise.
12487 (i386_dr_low_set_control): Likewise.
12488 (i386_dr_low_get_control): Likewise.
12489 (i386_dr_low_get_status): Likewise.
12490 (i386_dr_low): New global variable.
12491 * win32-i386-low.c (i386_dr_low_set_addr):
12492 Changed signature. Made static.
12493 (i386_dr_low_get_addr): Likewise.
12494 (i386_dr_low_set_control): Likewise.
12495 (i386_dr_low_get_control): Likewise.
12496 (i386_dr_low_get_status): Likewise.
12497 (i386_dr_low): New global variable.
12498
e1d2394b
MS
124992014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12500
12501 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12502 * Makefile.in (AR, AR_FLAGS): Define.
12503 * configure: Regenerate.
12504
3a8ee006
GB
125052014-06-19 Gary Benson <gbenson@redhat.com>
12506
12507 * Makefile.in (i386-dregs.o): New rule.
12508 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12509 * i386-low.c (target.h): Remove include.
12510 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12511 (DR_CONTROL_SHIFT): Likewise.
12512 (DR_CONTROL_SIZE): Likewise.
12513 (DR_RW_EXECUTE): Likewise.
12514 (DR_RW_WRITE): Likewise.
12515 (DR_RW_READ): Likewise.
12516 (DR_RW_IORW): Likewise.
12517 (DR_LEN_1): Likewise.
12518 (DR_LEN_2): Likewise.
12519 (DR_LEN_4): Likewise.
12520 (DR_LEN_8): Likewise.
12521 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12522 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12523 (DR_ENABLE_SIZE): Likewise.
12524 (DR_LOCAL_SLOWDOWN): Likewise.
12525 (DR_GLOBAL_SLOWDOWN): Likewise.
12526 (DR_CONTROL_RESERVED): Likewise.
12527 (I386_DR_CONTROL_MASK): Likewise.
12528 (I386_DR_VACANT): Likewise.
12529 (I386_DR_LOCAL_ENABLE): Likewise.
12530 (I386_DR_GLOBAL_ENABLE): Likewise.
12531 (I386_DR_DISABLE): Likewise.
12532 (I386_DR_SET_RW_LEN): Likewise.
12533 (I386_DR_GET_RW_LEN): Likewise.
12534 (I386_DR_WATCH_HIT): Likewise.
12535 (i386_wp_op_t): Likewise.
12536 (i386_show_dr): Likewise.
12537 (i386_length_and_rw_bits): Likewise.
12538 (i386_insert_aligned_watchpoint): Likewise.
12539 (i386_remove_aligned_watchpoint): Likewise.
12540 (i386_handle_nonaligned_watchpoint): Likewise.
12541 i386_update_inferior_debug_regs(): Likewise.
12542 (i386_dr_insert_watchpoint): Likewise.
12543 (i386_dr_remove_watchpoint): Likewise.
12544 (i386_dr_region_ok_for_watchpoint): Likewise.
12545 (i386_dr_stopped_data_address): Likewise.
12546 (i386_dr_stopped_by_watchpoint): Likewise.
12547
8f26655c
GB
125482014-06-19 Gary Benson <gbenson@redhat.com>
12549
12550 * i386-low.c (i386_dr_show): Renamed to
12551 i386_show_dr and made static. All uses updated.
12552 (i386_dr_length_and_rw_bits): Renamed to
12553 i386_length_and_rw_bits and made static.
12554 All uses updated.
12555 (i386_dr_insert_aligned_watchpoint): Renamed to
12556 i386_insert_aligned_watchpoint and made static.
12557 All uses updated.
12558 (i386_dr_remove_aligned_watchpoint): Renamed to
12559 i386_remove_aligned_watchpoint and made static.
12560 All uses updated.
12561 (i386_dr_update_inferior_debug_regs): Renamed to
12562 i386_update_inferior_debug_regs and made static.
12563 All uses updated.
12564
b9228891
GB
125652014-06-18 Gary Benson <gbenson@redhat.com>
12566
5171def3
GB
12567 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12568 (i386_dr_low_can_set_control): Likewise.
12569 (i386_get_debug_register_length): Likewise.
12570 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12571 (i386_dr_low_can_set_control): Likewise.
12572 (i386_get_debug_register_length): Likewise.
12573
125742014-06-17 Gary Benson <gbenson@redhat.com>
12575
b9228891
GB
12576 * i386-low.h (i386-dregs.h): New include.
12577 (DR_FIRSTADDR): Now in i386-dregs.h.
12578 (DR_LASTADDR): Likewise.
12579 (DR_NADDR): Likewise.
12580 (DR_STATUS): Likewise.
12581 (DR_CONTROL): Likewise.
12582 (i386_debug_reg_state): Likewise.
12583 (i386_dr_insert_watchpoint): Likewise.
12584 (i386_dr_remove_watchpoint): Likewise.
12585 (i386_dr_region_ok_for_watchpoint): Likewise.
12586 (i386_dr_stopped_data_address): Likewise.
12587 (i386_dr_stopped_by_watchpoint): Likewise.
12588 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12589
4be83cc2
GB
125902014-06-18 Gary Benson <gbenson@redhat.com>
12591
12592 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12593 i386_dr_insert_watchpoint.
12594 (i386_low_remove_watchpoint): Renamed to
12595 i386_dr_remove_watchpoint.
12596 (i386_low_region_ok_for_watchpoint): Renamed to
12597 i386_dr_region_ok_for_watchpoint.
12598 (i386_low_stopped_data_address): Renamed to
12599 i386_dr_stopped_data_address.
12600 (i386_low_stopped_by_watchpoint): Renamed to
12601 i386_dr_stopped_by_watchpoint.
12602 * i386-low.c (i386_show_dr): Renamed to
12603 i386_dr_show and made nonstatic. All uses updated.
12604 (i386_length_and_rw_bits): Renamed to
12605 i386_dr_length_and_rw_bits and made nonstatic.
12606 All uses updated.
12607 (i386_insert_aligned_watchpoint): Renamed to
12608 i386_dr_insert_aligned_watchpoint and made nonstatic.
12609 All uses updated.
12610 (i386_remove_aligned_watchpoint): Renamed to
12611 i386_dr_remove_aligned_watchpoint and made nonstatic.
12612 All uses updated.
12613 (i386_update_inferior_debug_regs): Renamed to
12614 i386_dr_update_inferior_debug_regs and made nonstatic.
12615 All uses updated.
12616 (i386_low_insert_watchpoint): Renamed to
12617 i386_dr_insert_watchpoint. All uses updated.
12618 (i386_low_remove_watchpoint): Renamed to
12619 i386_dr_remove_watchpoint. All uses updated.
12620 (i386_low_region_ok_for_watchpoint): Renamed to
12621 i386_dr_region_ok_for_watchpoint. All uses updated.
12622 (i386_low_stopped_data_address): Renamed to
12623 i386_dr_stopped_data_address. All uses updated.
12624 (i386_low_stopped_by_watchpoint): Renamed to
12625 i386_dr_stopped_by_watchpoint. All uses updated.
12626
131aa0d4
GB
126272014-06-18 Gary Benson <gbenson@redhat.com>
12628
12629 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12630 (i386_dr_low_can_set_control): Likewise.
12631 (i386_insert_aligned_watchpoint): New check.
12632
d9305f7f
GB
126332014-06-18 Gary Benson <gbenson@redhat.com>
12634
12635 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12636 Renamed to state.
12637
e927c9fc
GB
126382014-06-18 Gary Benson <gbenson@redhat.com>
12639
12640 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12641 instead of fatal and error.
12642 (i386_handle_nonaligned_watchpoint): Likewise.
12643
1b6d4134
GB
126442014-06-18 Gary Benson <gbenson@redhat.com>
12645
12646 * i386-low.c (i386_get_debug_register_length): New macro.
12647 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12648 (i386_show_dr): Use debug_printf instead of fprintf. Use
12649 phex to format values.
12650
6e62758f
GB
126512014-06-18 Gary Benson <gbenson@redhat.com>
12652
12653 * i386-low.h: Comment changes.
12654 * i386-low.c: Likewise.
12655
fc6e2f03
GB
126562014-06-18 Gary Benson <gbenson@redhat.com>
12657
12658 * i386-low.c: Whitespace changes.
12659
f9d1eeed
TT
126602014-06-12 Tom Tromey <tromey@redhat.com>
12661
12662 * utils.c (freeargv): Remove.
12663
0b04e523
TT
126642014-06-12 Tom Tromey <tromey@redhat.com>
12665
12666 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12667 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12668 (parse_debug_format_options): Likewise.
12669 (gdbserver_usage): Likewise.
12670 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12671 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12672 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12673 against libiberty.
12674 ($(LIBGNU)): Depend on libiberty.
12675 (all-lib): Recurse into all subdirs.
12676 (install-only): Invoke "install" target in subdirs.
12677 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12678 targets.
12679 * configure: Rebuild.
12680 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12681 for vasprintf, vsnprintf, or gettimeofday.
12682 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12683 srv_tgtobj.
12684
270c9937
JB
126852014-06-05 Joel Brobecker <brobecker@adacore.com>
12686
12687 * development.sh: Delete.
12688 * Makefile.in (config.status): Adjust dependency on development.sh.
12689 * configure.ac: Adjust development.sh source call.
12690 * configure: Regenerate.
12691
0a261ed8
PA
126922014-06-02 Pedro Alves <palves@redhat.com>
12693
12694 * ax.c (gdb_free_agent_expr): New function.
12695 * ax.h (gdb_free_agent_expr): New declaration.
12696 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12697 list.
12698 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12699 static.
12700 (clear_breakpoint_conditions_and_commands): New function.
12701 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12702 (clear_breakpoint_conditions_and_commands): New declaration.
12703
e9dae05e
RR
127042014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12705
12706 * linux-aarch64-low.c (asm/ptrace.h): Include.
12707
5876f503
JK
127082014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12709
12710 Fix TLS access for -static -pthread.
12711 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12712 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12713 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12714
802e8e6d
PA
127152014-05-20 Pedro Alves <palves@redhat.com>
12716
12717 * linux-aarch64-low.c (aarch64_insert_point)
12718 (aarch64_remove_point): No longer check whether the type is
12719 supported here. Adjust to new interface.
12720 (the_low_target): Install aarch64_supports_z_point_type as
12721 supports_z_point_type method.
12722 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12723 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12724 instead of a Z packet char. Adjust.
12725 (arm_supports_z_point_type): New function.
12726 (arm_insert_point, arm_remove_point): Adjust to new interface.
12727 (the_low_target): Install arm_supports_z_point_type.
12728 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12729 (cris_insert_point, cris_remove_point): Adjust to new interface.
12730 Don't check whether the type is supported here.
12731 (the_low_target): Install cris_supports_z_point_type.
12732 * linux-low.c (linux_supports_z_point_type): New function.
12733 (linux_insert_point, linux_remove_point): Adjust to new interface.
12734 * linux-low.h (struct linux_target_ops) <insert_point,
12735 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12736 raw_breakpoint pointer parameter.
12737 <supports_z_point_type>: New method.
12738 * linux-mips-low.c (mips_supports_z_point_type): New function.
12739 (mips_insert_point, mips_remove_point): Adjust to new interface.
12740 Use mips_supports_z_point_type.
12741 (the_low_target): Install mips_supports_z_point_type.
12742 * linux-ppc-low.c (the_low_target): Install NULL as
12743 supports_z_point_type method.
12744 * linux-s390-low.c (the_low_target): Install NULL as
12745 supports_z_point_type method.
12746 * linux-sparc-low.c (the_low_target): Install NULL as
12747 supports_z_point_type method.
12748 * linux-x86-low.c (x86_supports_z_point_type): New function.
12749 (x86_insert_point): Adjust to new insert_point interface. Use
12750 insert_memory_breakpoint. Adjust to new
12751 i386_low_insert_watchpoint interface.
12752 (x86_remove_point): Adjust to remove_point interface. Use
12753 remove_memory_breakpoint. Adjust to new
12754 i386_low_remove_watchpoint interface.
12755 (the_low_target): Install x86_supports_z_point_type.
12756 * lynx-low.c (lynx_target_ops): Install NULL as
12757 supports_z_point_type callback.
12758 * nto-low.c (nto_supports_z_point_type): New.
12759 (nto_insert_point, nto_remove_point): Adjust to new interface.
12760 (nto_target_ops): Install nto_supports_z_point_type.
12761 * mem-break.c: Adjust intro comment.
12762 (struct raw_breakpoint) <raw_type, size>: New fields.
12763 <inserted>: Update comment.
12764 <shlib_disabled>: Delete field.
12765 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12766 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12767 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12768 (raw_bkpt_type_to_target_hw_bp_type): New function.
12769 (find_enabled_raw_code_breakpoint_at): New function.
12770 (find_raw_breakpoint_at): New type and size parameters. Use them.
12771 (insert_memory_breakpoint): New function, based off
12772 set_raw_breakpoint_at.
12773 (remove_memory_breakpoint): New function.
12774 (set_raw_breakpoint_at): Reimplement.
12775 (set_breakpoint): New, based on set_breakpoint_at.
12776 (set_breakpoint_at): Reimplement.
12777 (delete_raw_breakpoint): Go through the_target->remove_point
12778 instead of assuming memory breakpoints.
12779 (find_gdb_breakpoint_at): Delete.
12780 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12781 (find_gdb_breakpoint): New function.
12782 (set_gdb_breakpoint_at): Delete.
12783 (z_type_supported): New function.
12784 (set_gdb_breakpoint_1): New function, loosely based off
12785 set_gdb_breakpoint_at.
12786 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12787 (delete_gdb_breakpoint_at): Delete.
12788 (delete_gdb_breakpoint_1): New function, loosely based off
12789 delete_gdb_breakpoint_at.
12790 (delete_gdb_breakpoint): New function.
12791 (clear_gdb_breakpoint_conditions): Rename to ...
12792 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12793 breakpoint.
12794 (add_condition_to_breakpoint): Make static.
12795 (add_breakpoint_condition): Take a struct breakpoint pointer
12796 instead of an address. Adjust.
12797 (gdb_condition_true_at_breakpoint): Rename to ...
12798 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12799 z_type parameter.
12800 (gdb_condition_true_at_breakpoint): Reimplement.
12801 (add_breakpoint_commands): Take a struct breakpoint pointer
12802 instead of an address. Adjust.
12803 (gdb_no_commands_at_breakpoint): Rename to ...
12804 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12805 parameter. Return true if no breakpoint was found. Change debug
12806 output.
12807 (gdb_no_commands_at_breakpoint): Reimplement.
12808 (run_breakpoint_commands): Rename to ...
12809 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12810 and change return type to boolean.
12811 (run_breakpoint_commands): New function.
12812 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12813 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12814 breakpoint. Go through the_target->remove_point instead of
12815 assuming memory breakpoint.
12816 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12817 software and hardware breakpoints.
12818 (reinsert_raw_breakpoint): Go through the_target->insert_point
12819 instead of assuming memory breakpoint.
12820 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12821 software and hardware breakpoints.
12822 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12823 Check both software and hardware breakpoints.
12824 (validate_inserted_breakpoint): Assert the breakpoint is a
12825 software breakpoint. Set the inserted flag to -1 instead of
12826 setting shlib_disabled.
12827 (delete_disabled_breakpoints): Adjust.
12828 (validate_breakpoints): Only validate software breakpoints.
12829 Adjust to inserted flag change.
12830 (check_mem_read, check_mem_write): Skip breakpoint types other
12831 than software breakpoints. Adjust to inserted flag change.
12832 * mem-break.h (enum raw_bkpt_type): New enum.
12833 (raw_breakpoint, struct process_info): Forward declare.
12834 (Z_packet_to_target_hw_bp_type): Delete declaration.
12835 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12836 (set_gdb_breakpoint, delete_gdb_breakpoint)
12837 (clear_breakpoint_conditions): New declarations.
12838 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12839 (breakpoint_inserted_here): Update comment.
12840 (add_breakpoint_condition, add_breakpoint_commands): Replace
12841 address parameter with a breakpoint pointer parameter.
12842 (gdb_breakpoint_here): Update comment.
12843 (delete_gdb_breakpoint_at): Delete.
12844 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12845 * server.c (process_point_options): Take a struct breakpoint
12846 pointer instead of an address. Adjust.
12847 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12848 delete_gdb_breakpoint.
12849 * spu-low.c (spu_target_ops): Install NULL as
12850 supports_z_point_type method.
12851 * target.h: Include mem-break.h.
12852 (struct target_ops) <prepare_to_access_memory>: Update comment.
12853 <supports_z_point_type>: New field.
12854 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12855 instead of a char. Also take a raw breakpoint pointer.
12856 * win32-arm-low.c (the_low_target): Install NULL as
12857 supports_z_point_type.
12858 * win32-i386-low.c (i386_supports_z_point_type): New function.
12859 (i386_insert_point, i386_remove_point): Adjust to new interface.
12860 (the_low_target): Install i386_supports_z_point_type.
12861 * win32-low.c (win32_supports_z_point_type): New function.
12862 (win32_insert_point, win32_remove_point): Adjust to new interface.
12863 (win32_target_ops): Install win32_supports_z_point_type.
12864 * win32-low.h (struct win32_target_ops):
12865 <supports_z_point_type>: New method.
12866 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12867 instead of a char. Also take a raw breakpoint pointer.
12868
932539e3
PA
128692014-05-20 Pedro Alves <palves@redhat.com>
12870
12871 * mem-break.h: Include break-common.h.
12872 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12873 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12874 (Z_packet_to_target_hw_bp_type): New declaration.
12875 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12876 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12877 (Z_PACKET_ACCESS_WP): Delete macros.
12878 (Z_packet_to_hw_type): Delete function.
12879 * i386-low.h: Don't include break-common.h here.
12880 (Z_packet_to_hw_type): Delete declaration.
12881 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12882 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12883 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12884 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12885 * linux-aarch64-low.c: Don't include break-common.h here.
12886 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12887 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12888 (Z_packet_to_target_hw_bp_type): Delete function.
12889 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12890 function.
12891 (mips_insert_point, mips_remove_point): Use
12892 Z_packet_to_target_hw_bp_type.
12893
4ff0d3d8
PA
128942014-05-20 Pedro Alves <palves@redhat.com>
12895
12896 * linux-aarch64-low.c: Include break-common.h.
12897 (enum target_point_type): Delete.
12898 (Z_packet_to_point_type): Rename to ...
12899 (Z_packet_to_target_hw_bp_type): ... this, and return a
12900 target_hw_bp_type instead.
12901 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12902 instead of an enum target_point_type.
12903 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12904 breakpoint type.
12905 (aarch64_dr_state_insert_one_point)
12906 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12907 (aarch64_handle_aligned_watchpoint)
12908 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12909 Take an enum target_hw_bp_type instead of an enum
12910 target_point_type.
12911 (aarch64_supports_z_point_type): New function.
12912 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12913 use Z_packet_to_target_hw_bp_type.
12914
786dc519
JB
129152014-05-20 Joel Brobecker <brobecker@adacore.com>
12916
12917 * configure.ac: Only use -Werror by default when DEVELOPMENT
12918 is true.
12919 * configure: Regenerate.
12920
9e0aa64f
JK
129212014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12922
12923 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12924 * linux-x86-low.c (X86_64_USER_REGS): New.
12925 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12926
2b577b92
YQ
129272014-04-28 Yao Qi <yao@codesourcery.com>
12928
12929 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12930 name.
12931
94611da2
PA
129322014-04-25 Pedro Alves <palves@redhat.com>
12933
12934 PR server/16255
12935 * linux-low.c (linux_attach_fail_reason_string): New function.
12936 (linux_attach_lwp): Delete.
12937 (linux_attach_lwp_1): Rename to ...
12938 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12939 argument. Remove "initial" parameter. Return int instead of
12940 void. Don't error or warn here.
12941 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12942 failure to attach to the tgid. Call warning when failing to
12943 attach to an lwp.
12944 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12945 argument. Remove "initial" parameter. Return int instead of
12946 void. Don't error or warn here.
12947 (linux_attach_fail_reason_string): New declaration.
12948 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12949 interface change. Use linux_attach_fail_reason_string.
12950
01f9f808
MS
129512014-04-24 Michael Sturm <michael.sturm@mintel.com>
12952 Walfred Tedeschi <walfred.tedeschi@intel.com>
12953
12954 * Makefile.in: Added rules to handle new files
12955 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12956 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12957 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12958 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12959 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12960 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12961 x32-avx512-linux.o.
12962 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12963 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12964 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12965 i386/x32-avx512.xml.
12966 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12967 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12968 i386/x32-avx512-linux.xml.
12969 * i387-fp.c (num_avx512_k_registers): New constant for number
12970 of K registers.
12971 (num_avx512_zmmh_low_registers): New constant for number of
12972 lower ZMM registers (0-15).
12973 (num_avx512_zmmh_high_registers): New constant for number of
12974 higher ZMM registers (16-31).
12975 (num_avx512_ymmh_registers): New contant for number of higher
12976 YMM registers (ymm16-31 added by avx521 on x86_64).
12977 (num_avx512_xmm_registers): New constant for number of higher
12978 XMM registers (xmm16-31 added by AVX512 on x86_64).
12979 (struct i387_xsave): Add space for AVX512 registers.
12980 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12981 Add code to handle AVX512 registers.
12982 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12983 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12984 prototypei from generated file.
12985 (tdesc_amd64_avx512_linux): Likewise.
12986 (init_registers_x32_avx512_linux): Likewise.
12987 (tdesc_x32_avx512_linux): Likewise.
12988 (init_registers_i386_avx512_linux): Likewise.
12989 (tdesc_i386_avx512_linux): Likewise.
12990 (x86_64_regmap): Add AVX512 registers.
12991 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12992 mask.
12993 (initialize_low_arch): Add code to initialize AVX512 registers.
12994
51aa91f9
PA
129952014-04-23 Pedro Alves <palves@redhat.com>
12996
12997 * mem-break.c (find_gdb_breakpoint_at): Make static.
12998 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12999
a4165e94
PA
130002014-04-23 Pedro Alves <palves@redhat.com>
13001
13002 * i386-low.c: Don't include break-common.h here.
13003 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13004 prototype to take target_hw_bp_type as argument instead of a Z
13005 packet char.
13006 * i386-low.h: Include break-common.h here.
13007 (Z_packet_to_hw_type): Declare.
13008 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13009 prototypes.
13010 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13011 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13012 (x86_remove_point): Convert the packet number to a
13013 target_hw_bp_type before calling i386_low_remove_watchpoint.
13014 * win32-i386-low.c (i386_insert_point): Convert the packet number
13015 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13016 (i386_remove_point): Convert the packet number to a
13017 target_hw_bp_type before calling i386_low_remove_watchpoint.
13018
b8acf843
PA
130192014-04-23 Pedro Alves <palves@redhat.com>
13020
13021 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13022
d708bcd1
PA
130232014-04-10 Pedro Alves <palves@redhat.com>
13024
13025 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13026 Check if the condition or command is NULL before checking if the
13027 breakpoint is known. On success, return true.
13028 * mem-break.h (add_breakpoint_condition): Document return.
13029 (add_breakpoint_commands): Add describing comment.
13030 * server.c (skip_to_semicolon): New function.
13031 (process_point_options): Use it.
13032
2eec7d5b
PA
130332014-04-09 Pedro Alves <palves@redhat.com>
13034
13035 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13036 to lwpid_of.
13037
fa96cb38
PA
130382014-02-27 Pedro Alves <palves@redhat.com>
13039
13040 PR 12702
13041 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13042 macros.
13043 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13044 output.
13045 (last_thread_of_process_p): Take a PID argument instead of a
13046 thread pointer.
13047 (linux_wait_for_lwp): Delete.
13048 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13049 functions.
13050 (linux_low_filter_event): New function, party factored out from
13051 linux_wait_for_event.
13052 (linux_wait_for_event): Rename to ...
13053 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13054 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13055 sigsuspend. Check for zombie leaders.
13056 (linux_wait_for_event): Reimplement as wrapper around
13057 linux_wait_for_event_filtered.
13058 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13059 a normal or signal exit is seen, it's the whole process exiting.
13060 (wait_for_sigstop): No longer a for_each_inferior callback.
13061 Rewrite on top of linux_wait_for_event_filtered.
13062 (stop_all_lwps): Call wait_for_sigstop directly.
13063 * server.c (resume, handle_target_event): Handle
13064 TARGET_WAITKIND_NO_RESUMED.
13065
d763de10
JB
130662014-02-26 Joel Brobecker <brobecker@adacore.com>
13067
13068 * win32-low.c (psapi_get_dll_name,
13069 * win32_CreateToolhelp32Snapshot): Delete.
13070 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13071 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13072 Delete.
13073 (handle_load_dll): Add function description.
13074 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13075
850a0f76
JB
130762014-02-26 Joel Brobecker <brobecker@adacore.com>
13077
13078 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13079 Add comment.
13080 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13081 base address when calling win32_add_one_solib.
13082 (handle_load_dll): Delete local variable load_addr.
13083 Remove 0x1000 offset applied to DLL base address when calling
13084 win32_add_one_solib.
13085 (handle_unload_dll): Add comment.
13086
f25b3fc3
JB
130872014-02-26 Joel Brobecker <brobecker@adacore.com>
13088
13089 * win32-low.c (win32_add_all_dlls): Renames
13090 win32_ensure_ntdll_loaded. Rewrite function documentation.
13091 Adjust implementation to always load all DLLs.
13092 Add 0x1000 offset to DLL base address when calling
13093 win32_add_one_solib.
13094 (child_initialization_done): New static global.
13095 (do_initial_child_stuff): Set child_initialization_done to
13096 zero during child initialization, and 1 after. Replace call
13097 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13098 Add comment.
13099 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13100 (handle_unload_dll): Add function documentation.
13101 (get_child_debug_event): Ignore load and unload DLL events
13102 during child initialization.
13103
d86d4aaf
DE
131042014-02-20 Doug Evans <dje@google.com>
13105
3bc32da3 13106 Remove global all_lwps.
d86d4aaf
DE
13107 * inferiors.h (ptid_of): Move here from linux-low.h.
13108 (pid_of, lwpid_of): Ditto.
13109 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13110 parameter is a struct thread_info * now.
13111 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13112 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13113 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13114 directly.
13115 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13116 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13117 * linux-arm-low.c (update_registers_callback): Update, "entry"
13118 parameter is a struct thread_info * now.
13119 Fetch lwpid from current_inferior directly.
13120 (arm_insert_point): Pass &all_threads to find_inferior instead of
13121 &all_lwps.
13122 (arm_remove_point): Ditto.
13123 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13124 (arm_prepare_to_resume): Fetch pid from thread.
13125 (arm_read_description): Fetch lwpid from current_inferior directly.
13126 * linux-low.c (all_lwps): Delete.
13127 (delete_lwp): Delete call to remove_inferior.
13128 (handle_extended_wait): Fetch lwpid from thread.
13129 (add_lwp): Don't set lwp->entry.id. Remove call to
13130 add_inferior_to_list.
13131 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13132 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13133 (kill_one_lwp_callback): Ditto.
13134 (linux_kill): Don't dereference NULL pointer.
13135 Fetch ptid,lwpid from thread.
13136 (get_detach_signal): Fetch ptid from thread.
13137 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13138 Simplify call to regcache_invalidate_thread.
13139 (delete_lwp_callback): Update, "entry" parameter is a
13140 struct thread_info * now. Fetch pid from thread.
13141 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13142 (status_pending_p_callback): Update, "entry" parameter is a
13143 struct thread_info * now. Fetch ptid from thread.
13144 (find_lwp_pid): Update, "entry" parameter is a
13145 struct thread_info * now.
13146 (linux_wait_for_lwp): Fetch pid from thread.
13147 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13148 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13149 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13150 (dequeue_one_deferred_signal): Ditto.
13151 (cancel_breakpoint): Fetch ptid from current_inferior.
13152 (linux_wait_for_event): Pass &all_threads to find_inferior,
13153 not &all_lwps. Fetch ptid, lwpid from thread.
13154 (count_events_callback): Update, "entry" parameter is a
13155 struct thread_info * now.
13156 (select_singlestep_lwp_callback): Ditto.
13157 (select_event_lwp_callback): Ditto.
13158 (cancel_breakpoints_callback): Ditto.
13159 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13160 not &all_lwps.
13161 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13162 (unsuspend_one_lwp): Update, "entry" parameter is a
13163 struct thread_info * now.
13164 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13165 not &all_lwps.
13166 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13167 Fetch lwpid from thread, not lwp.
13168 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13169 Pass &all_threads to find_inferior, not &all_lwps.
13170 (send_sigstop): Fetch lwpid from thread, not lwp.
13171 (send_sigstop_callback): Update, "entry" parameter is a
13172 struct thread_info * now.
13173 (suspend_and_send_sigstop_callback): Ditto.
13174 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13175 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13176 struct thread_info * now.
13177 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13178 from thread, lwp.
13179 (lwp_running): Update, "entry" parameter is a
13180 struct thread_info * now.
13181 (stop_all_lwps): Fetch ptid from thread.
13182 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13183 (linux_resume_one_lwp): Fetch lwpid from thread.
13184 (linux_set_resume_request): Update, "entry" parameter is a
13185 struct thread_info * now. Fetch pid, lwpid from thread.
13186 (resume_status_pending_p): Update, "entry" parameter is a
13187 struct thread_info * now.
13188 (need_step_over_p): Ditto. Fetch lwpid from thread.
13189 (start_step_over): Fetch lwpid from thread.
13190 (linux_resume_one_thread): Update, "entry" parameter is a
13191 struct thread_info * now. Fetch lwpid from thread.
13192 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13193 (proceed_one_lwp): Update, "entry" parameter is a
13194 struct thread_info * now. Fetch lwpid from thread.
13195 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13196 struct thread_info * now.
13197 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13198 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13199 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13200 directly.
13201 (regsets_store_inferior_registers): Ditto.
13202 (fetch_register, store_register): Ditto.
13203 (linux_read_memory, linux_write_memory): Ditto.
13204 (linux_request_interrupt): Ditto.
13205 (linux_read_auxv): Ditto.
13206 (linux_xfer_siginfo): Ditto.
13207 (linux_qxfer_spu): Ditto.
13208 (linux_qxfer_libraries_svr4): Ditto.
13209 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13210 moved to inferiors.h.
13211 (get_lwp): Delete.
13212 (get_thread_lwp): Update.
13213 (struct lwp_info): Delete member "entry". Simplify comment for
13214 member "thread".
13215 (all_lwps): Delete.
13216 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13217 current_inferior directly.
13218 (update_watch_registers_callback): Update, "entry" parameter is a
13219 struct thread_info * now. Fetch pid from thread.
13220 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13221 (mips_insert_point): Fetch lwpid from current_inferior.
13222 Pass &all_threads to find_inferior, not &all_lwps.
13223 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13224 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13225 directly.
13226 (mips_stopped_data_address): Ditto.
13227 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13228 directly.
13229 * linux-tile-low.c (tile_arch_setup): Ditto.
13230 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13231 (update_debug_registers_callback): Update, "entry" parameter is a
13232 struct thread_info * now. Fetch pid from thread.
13233 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13234 Pass &all_threads to find_inferior, not &all_lwps.
13235 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13236 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13237 Pass &all_threads to find_inferior, not &all_lwps.
13238 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13239 (i386_dr_low_get_status): Ditto.
13240 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13241 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13242 (x86_linux_read_description): Ditto.
13243 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13244
3b8361aa
DE
132452014-02-20 Doug Evans <dje@google.com>
13246
13247 * inferiors.c (get_first_inferior): Fix buglet.
13248
f7667f0d
DE
132492014-02-19 Doug Evans <dje@google.com>
13250
13251 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13252 * inferiors.c (add_thread): Change result type to struct thread_info *.
13253 All callers updated.
13254 (add_lwp): Call add_thread here instead of in callers.
13255 All callers updated.
13256 * linux-low.h (get_lwp_thread): Rewrite.
13257 (struct lwp_info): New member "thread".
13258
b3312d80
DE
132592014-02-19 Doug Evans <dje@google.com>
13260
13261 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13262 All callers updated.
13263
ecc6f45c
DE
132642014-02-19 Doug Evans <dje@google.com>
13265
13266 * inferiors.c (add_thread): Fix whitespace.
13267
649ebbca
DE
132682014-02-19 Doug Evans <dje@google.com>
13269
13270 * dll.c (clear_dlls): Replace accessing list implemention details
13271 with API function.
13272 * gdbthread.h (get_first_thread): Declare.
13273 * inferiors.c (for_each_inferior_with_data): New function.
13274 (get_first_thread): New function.
13275 (find_thread_ptid): Simplify.
13276 (get_first_inferior): New function.
13277 (clear_list): Delete.
13278 (one_inferior_p): New function.
13279 (clear_inferior_list): New function.
13280 (clear_inferiors): Update.
13281 * inferiors.h (for_each_inferior_with_data): Declare.
13282 (clear_inferior_list): Declare.
13283 (one_inferior_p): Declare.
13284 (get_first_inferior): Declare.
13285 * linux-low.c (linux_wait_for_event): Replace accessing list
13286 implemention details with API function.
13287 * server.c (target_running): Ditto.
13288 (accumulate_file_name_length): New function.
13289 (emit_dll_description): New function.
13290 (handle_qxfer_libraries): Replace accessing list implemention
13291 details with API function.
13292 (handle_qxfer_threads_worker): New function.
13293 (handle_qxfer_threads_proper): Replace accessing list implemention
13294 details with API function.
13295 (handle_query): Ditto.
13296 (visit_actioned_threads_callback_ftype): New typedef.
13297 (visit_actioned_threads_data): New struct.
13298 (visit_actioned_threads): Rewrite to be find_inferior callback.
13299 (resume): Call find_inferior.
13300 (handle_status): Replace accessing list implemention
13301 details with API function.
13302 (process_serial_event): Replace accessing list implemention details
13303 with API function.
13304 * target.c (set_desired_inferior): Replace accessing list implemention
13305 details with API function.
13306 * tracepoint.c (same_process_p): New function.
13307 (gdb_agent_about_to_close): Replace accessing list implemention
13308 details with API function.
13309 * win32-low.c (child_delete_thread): Replace accessing list
13310 implemention details with API function.
13311 (match_dll_by_basename): New function.
13312 (dll_is_loaded_by_basename): New function.
13313 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13314 details call to dll_is_loaded_by_basename.
13315
80894984
DE
133162014-02-19 Doug Evans <dje@google.com>
13317
13318 * dll.h (struct dll_info): Add comment.
13319 * gdbthread.h (struct thread_info): Add comment.
13320 (current_ptid): Simplify.
13321 * inferiors.c (add_process): Update.
13322 (remove_process): Update.
13323 * inferiors.h (struct process_info): Rename member "head" to "entry".
13324 * linux-low.c (delete_lwp): Update.
13325 (add_lwp): Update.
13326 (last_thread_of_process_p): Update.
13327 (kill_one_lwp_callback, linux_kill): Update.
13328 (status_pending_p_callback): Update.
13329 (wait_for_sigstop): Update. Simplify read of ptid.
13330 (start_step_over): Update.
13331 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13332 (get_lwp_thread): Update.
13333 (struct lwp_info): Rename member "head" to "entry".
13334 * regcache.h (inferior_list_entry): Delete.
13335 * server.c (kill_inferior_callback): Update.
13336 (detach_or_kill_inferior_callback): Update.
13337 (print_started_pid): Update.
13338 (print_attached_pid): Update.
13339 (process_serial_event): Simplify read of ptid.
13340 * thread-db.c (thread_db_create_event): Update.
13341 (thread_db_get_tls_address): Update.
13342 * win32-low.c (current_inferior_ptid): Simplify.
13343
46917d26
TT
133442014-02-19 Tom Tromey <tromey@redhat.com>
13345
13346 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13347 argument.
13348 (target_supports_btrace): Update.
13349
0759a81e
YQ
133502014-02-14 Yao Qi <yao@codesourcery.com>
13351
13352 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13353 (rsp-low-ipa.o): New target.
13354
a7191e8b
TT
133552014-02-12 Tom Tromey <tromey@redhat.com>
13356
13357 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13358 convert_ascii_to_int.
13359 * regcache.c (registers_to_string): Likewise.
13360 * remote-utils.c (decode_M_packet): Likewise.
13361 * server.c (process_serial_event): Likewise.
13362
ff0e980e
TT
133632014-02-12 Tom Tromey <tromey@redhat.com>
13364
13365 * server.c (handle_query, handle_v_run): Use hex2bin, not
13366 unhexify.
13367 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13368
e9371aff
TT
133692014-02-12 Tom Tromey <tromey@redhat.com>
13370
13371 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13372 convert_int_to_ascii.
13373 * regcache.c (registers_to_string, collect_register_as_string):
13374 Likewise.
13375 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13376 Likewise.
13377 * server.c (process_serial_event): Likewise.
13378 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13379 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13380
971dc0b8
TT
133812014-02-12 Tom Tromey <tromey@redhat.com>
13382
13383 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13384 bin2hex, not hexify.
13385 * tracepoint.c (cmd_qtstatus): Likewise.
13386
0a822afb
TT
133872014-02-12 Tom Tromey <tromey@redhat.com>
13388
13389 * remote-utils.c (monitor_output): Pass explicit length to
13390 hexify.
13391
9c3d6531
TT
133922014-02-12 Tom Tromey <tromey@redhat.com>
13393
13394 * tracepoint.c: Include rsp-low.h.
13395 * server.c: Include rsp-low.h.
13396 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13397 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13398 declare.
13399 * remote-utils.c: Include rsp-low.h.
13400 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13401 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13402 (convert_int_to_ascii, convert_ascii_to_int): Move to
13403 common/rsp-low.c.
13404 * regcache.c: Include rsp-low.h.
13405 * ax.c: Include rsp-low.h.
13406 * Makefile.in (SFILES): Add common/rsp-low.c.
13407 (OBS): Add rsp-low.o.
13408 (rsp-low.o): New target.
13409
01fd3ea5
TT
134102014-02-12 Tom Tromey <tromey@redhat.com>
13411
13412 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13413 Include print-utils.h.
13414 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13415 (plongest, thirty_two, phex_nz): Remove.
13416 * Makefile.in (SFILES): Add common/print-utils.c.
13417 (OBS): Add print-utils.o.
13418 (print-utils-ipa.o): New target.
13419 (print-utils.o): New target.
13420 (IPA_OBJS): Add print-utils-ipa.o.
13421
e99dc820
TT
134222014-02-06 Tom Tromey <tromey@redhat.com>
13423
13424 * Makefile.in (SFILES): Fix indentation.
13425
ee1e2d4f
DE
134262014-02-05 Doug Evans <dje@google.com>
13427
13428 * linux-low.c (linux_wait_for_event): Improve comment.
13429 (linux_wait_1): Keep current_inferior in sync with event_child.
13430
f5a02773
DE
134312014-01-22 Doug Evans <dje@google.com>
13432
13433 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13434
87ce2a04
DE
134352014-01-22 Doug Evans <dje@google.com>
13436
13437 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13438 * configure: Regenerate.
13439 * config.in: Regenerate.
13440 * Makefile.in (SFILES): Add debug.c.
13441 (OBS): Add debug.o.
13442 * debug.c: New file.
13443 * debug.h: New file.
13444 * linux-aarch64-low.c (*): Update all debugging printfs to use
13445 debug_printf instead of fprintf.
13446 * linux-arm-low.c (*): Ditto.
13447 * linux-cris-low.c (*): Ditto.
13448 * linux-crisv32-low.c (*): Ditto.
13449 * linux-m32r-low.c (*): Ditto.
13450 * linux-sparc-low.c (*): Ditto.
13451 * linux-x86.c (*): Ditto.
13452 * linux-low.c (*): Ditto.
13453 (linux_wait_1): Add calls to debug_enter, debug_exit.
13454 (linux_wait): Remove redundant debugging printf.
13455 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13456 (linux_resume, unstop_all_lwps): Ditto.
13457 * mem-break.c (*): Update all debugging printfs to use
13458 debug_printf instead of fprintf.
13459 * remote-utils.c (*): Ditto.
13460 * thread-db.c (*): Ditto.
13461 * server.c #include <ctype.h>, "gdb_vecs.h".
13462 (debug_threads): Moved to debug.c.
13463 (*): Update all debugging printfs to use debug_printf instead of
13464 fprintf.
13465 (start_inferior): Replace call to fflush with call to debug_flush.
13466 (monitor_show_help): Mention set debug-format.
13467 (parse_debug_format_options): New function.
13468 (handle_monitor_command): Handle "monitor set debug-format".
13469 (gdbserver_usage): Mention --debug-format.
13470 (main): Parse --debug-format.
13471 * server.h (debug_threads): Declaration moved to debug.h.
13472 #include "debug.h".
13473 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13474 trace_debug_1 that uses debug_printf.
13475 (tracepoint_look_up_symbols): Update all debugging printfs to use
13476 debug_printf instead of fprintf.
13477
e671835b
BS
134782014-01-20 Baruch Siach <baruch@tkos.co.il>
13479
13480 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13481 sys/ptrace.h.
13482
b5737fa9
PA
134832014-01-17 Pedro Alves <palves@redhat.com>
13484
ea38d2a9 13485 PR build/16445
c7faa97a
PA
13486 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13487 defined after including gdb_proc_service.h.
b5737fa9 13488
40ed484e
DE
134892014-01-16 Doug Evans <dje@google.com>
13490
13491 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13492 (match_dll): Use it.
13493
969c39fb
MM
134942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13495
13496 * target.h (target_ops) <read_btrace>: Change parameters and
13497 return type to allow error reporting.
13498 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13499 trace reading errors on.
13500 * linux-low.c (linux_low_read_btrace): Pass trace reading
13501 errors on.
13502 (linux_low_disable_btrace): New.
13503
ab7f45ba
DE
135042014-01-15 Doug Evans <dje@google.com>
13505
13506 * inferiors.c (thread_id_to_gdb_id): Delete.
13507 * inferiors.h (thread_id_to_gdb_id): Delete.
13508
66af0f44
EZ
135092014-01-13 Eli Zaretskii <eliz@gnu.org>
13510
13511 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13512 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13513 versions.
13514
9939e131
PA
135152014-01-08 Pedro Alves <palves@redhat.com>
13516
13517 * server.c (handle_status): Don't discard previous queued stop
13518 replies or thread's pending status here.
13519 (main) <disconnection>: Do it here instead.
13520
b7ea362b
PA
135212014-01-08 Pedro Alves <palves@redhat.com>
13522
13523 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13524 * server.c (visit_actioned_threads, handle_pending_status): New
13525 function.
13526 (handle_v_cont): Factor out parts to ...
13527 (resume): ... this new function. If in all-stop, and a thread
13528 being resumed has a pending status, report it without actually
13529 resuming.
13530 (myresume): Adjust to use the new 'resume' function.
13531 (clear_pending_status_callback, set_pending_status_callback)
13532 (find_status_pending_thread_callback): New functions.
13533 (handle_status): Handle the case of multiple threads having
13534 interesting statuses to report. Report threads' real last signal
13535 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13536 with an interesting thread to report the status for, instead of
13537 always reporting the status of the first thread.
13538
28498c42
JB
135392014-01-01 Joel Brobecker <brobecker@adacore.com>
13540
13541 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13542 * gdbreplay.c (gdbreplay_version): Likewise.
13543
f45c82da
YZ
135442013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13545
13546 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13547 iov.iov_len with the real length in use.
13548
379a5e2d
JB
135492013-12-13 Joel Brobecker <brobecker@adacore.com>
13550
13551 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13552 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13553 for all targets that use win32-low.c.
13554 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13555 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13556
4210d83e
PA
135572013-12-13 Pedro Alves <palves@redhat.com>
13558
13559 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13560 if equal to TARGET_WAITKIND_LOADED.
13561 * win32-low.c (cached_status): New static global.
13562 (win32_wait): Add declaration.
13563 (do_initial_child_stuff): Flush all initial pending debug events
13564 up to the initial breakpoint.
13565 (win32_wait): If CACHED_STATUS was set, return that instead
13566 of doing a real wait. Remove the code resuming the execution
13567 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13568 during the initial phase. Also remove the code changing
13569 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13570 TARGET_WAITKIND_STOPPED.
13571
e7f0d979
YQ
135722013-12-11 Yao Qi <yao@codesourcery.com>
13573
13574 * notif.c (handle_notif_ack): Return 0 if no notification
13575 matches.
13576
ebcf782c
DE
135772013-11-20 Doug Evans <dje@google.com>
13578
13579 * linux-low.c (linux_set_resume_request): Fix comment.
13580
20ad9378
DE
135812013-11-20 Doug Evans <dje@google.com>
13582
13583 * linux-low.c (resume_status_pending_p): Tweak comment.
13584
a196ebeb
WT
135852013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13586
13587 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13588 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13589 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13590 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13591 (srv_amd64_regobj): Add amd64-mpx.o.
13592 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13593 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13594 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13595 * i387-fp.c (num_pl_bnd_register) Added constant.
13596 (num_pl_bnd_cfg_registers) Added constant.
13597 (struct i387_xsave) Added reserved area and MPX fields.
13598 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13599 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13600 function.
13601 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13602 (init_registers_amd64_mpx_linux): Declare new function.
13603 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13604 (x86_64_regmap): Add MPX registers.
13605 (x86_linux_read_description): Add MPX case.
13606 (initialize_low_arch): Initialize MPX targets.
13607
0080a2f6
TT
136082013-11-18 Tom Tromey <tromey@redhat.com>
13609
13610 * configure: Rebuild.
13611 * configure.ac: Don't check for stdlib.h.
13612 * gdbreplay.c: Unconditionally include stdlib.h.
13613
2978b111
TT
136142013-11-18 Tom Tromey <tromey@redhat.com>
13615
13616 * config.in: Rebuild.
13617 * configure: Rebuild.
13618 * configure.ac: Don't use AC_HEADER_DIRENT.
13619
a3d08894
TT
136202013-11-18 Tom Tromey <tromey@redhat.com>
13621
13622 * server.h: Don't check HAVE_STRING_H.
13623 * gdbreplay.c: Don't check HAVE_STRING_H.
13624 * configure: Rebuild.
13625
0a5dd17d
TT
136262013-11-18 Tom Tromey <tromey@redhat.com>
13627
13628 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13629 LIBGNU.
13630
1bd2f0ba
TT
136312013-11-08 Tom Tromey <tromey@redhat.com>
13632
13633 * configure, config.in: Rebuild.
13634 * configure.ac: Remove unused configury.
13635
3266f10b
TT
136362013-11-08 Tom Tromey <tromey@redhat.com>
13637
13638 * acinclude.m4: Include common.m4, codeset.m4.
13639 * configure, config.in: Rebuild.
13640 * configure.ac: Use GDB_AC_COMMON.
13641
6682d959
AA
136422013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13643
13644 * linux-s390-low.c (HWCAP_S390_TE): New define.
13645 (s390_arch_setup): Consider the TE field in the HWCAP for
13646 determining 'have_regset_tdb'.
13647
fd0a4d76
SDJ
136482013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13649
13650 PR gdb/16014
13651 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13652 call to sizeof.
13653
1a3d890b
PA
136542013-10-02 Pedro Alves <palves@redhat.com>
13655
13656 * server.c (process_serial_event): Don't output "GDBserver
13657 exiting" if GDB is connected through stdio.
13658 * target.c (mywait): Likewise, be silent if GDB is connected
13659 through stdio.
13660
97ad4581
JB
136612013-10-01 Joel Brobecker <brobecker@adacore.com>
13662
13663 * lynx-low.c (lynx_add_threads_after_attach): New function.
13664 (lynx_attach): Remove call to add_thread. Add call to
13665 lynx_add_threads_after_attach instead.
13666
5b4e221c
MF
136672013-09-28 Mike Frysinger <vapier@gentoo.org>
13668
13669 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13670 * config.in, configure: Regenerated.
13671
ee47b2f8
YQ
136722013-09-18 Yao Qi <yao@codesourcery.com>
13673
13674 PR server/15959
13675 * server.c (start_inferior): Clear 'resume_info'.
13676
d6707650 136772013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13678
d6707650
JW
13679 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13680 for each register.
13681
9243dd0e 136822013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13683
9243dd0e
JW
13684 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13685 linux-tile-low.o to srv_tgtobj.
13686
c623a6ef
WN
136872013-09-16 Will Newton <will.newton@linaro.org>
13688
13689 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13690 out regs.
13691
fb71d39e
PA
136922013-09-06 Pedro Alves <palves@redhat.com>
13693
13694 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13695 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13696 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13697 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13698 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13699 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13700
8e7e9910
PA
137012013-09-06 Pedro Alves <palves@redhat.com>
13702
13703 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13704 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13705
7c3a12ca
PA
137062013-09-06 Pedro Alves <palves@redhat.com>
13707
13708 * linux-amd64-ipa.c: Include tracepoint.h.
13709 * linux-i386-ipa.c: Include tracepoint.h.
13710
8eb3d7b6
RW
137112013-09-06 Ricard Wanderlof <ricardw@axis.com>
13712
13713 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13714 (ps_get_thread_area): New function.
13715
eddddb9d
RW
137162013-09-06 Ricard Wanderlof <ricardw@axis.com>
13717
13718 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13719 (initialize_low_arch): Call init_registers_crisv32 rather than
13720 init_register_crisv32.
13721
533b0600
PA
137222013-09-05 Pedro Alves <palves@redhat.com>
13723
13724 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13725 to ...
13726 * hostio.h: ... this new file.
13727 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13728 win32-low.c: Include hostio.h.
13729
0ce3d3b5
PA
137302013-09-05 Pedro Alves <palves@redhat.com>
13731
13732 * server.h (gdb_client_data, handler_func, callback_handler_func)
13733 (delete_file_handler, add_file_handler, append_callback_event)
13734 (delete_callback_event, start_event_loop, initialize_event_loop):
13735 Move to event-loop.h and include it.
13736 * event-loop.h: New file.
13737
799cdc37
PA
137382013-09-05 Pedro Alves <palves@redhat.com>
13739
13740 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13741 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13742 (loaded_dll, unloaded_dll): Move to ...
13743 * dll.h: ... this new file.
13744 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13745
6a6bbd9d
PA
137462013-09-05 Pedro Alves <palves@redhat.com>
13747
13748 * server.h (current_process, get_thread_process, all_processes)
13749 (add_inferior_to_list, for_each_inferior, current_inferior)
13750 (remove_inferior, add_process, remove_process, find_process_pid)
13751 (have_started_inferiors_p, have_attached_inferiors_p)
13752 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13753 (clear_inferiors, find_inferior, find_inferior_id)
13754 (inferior_target_data, set_inferior_target_data)
13755 (inferior_regcache_data, set_inferior_regcache_data): Move to
13756 inferiors.h, and include it.
13757 * inferiors.h: New file.
13758
f699aaba
PA
137592013-09-05 Pedro Alves <palves@redhat.com>
13760
13761 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13762 Move ...
72f4393d 13763 * ax.h: ... here.
f699aaba 13764
c144c7a0
PA
137652013-09-05 Pedro Alves <palves@redhat.com>
13766
13767 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13768 tracepoint.h.
13769 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13770 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13771 (handle_tracepoint_general_set, handle_tracepoint_query)
13772 (tracepoint_finished_step, tracepoint_was_hit)
13773 (release_while_stepping_state_list, current_traceframe)
13774 (in_readonly_region, traceframe_read_mem)
13775 (fetch_traceframe_registers, traceframe_read_sdata)
13776 (traceframe_read_info, struct fast_tpoint_collect_status)
13777 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13778 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13779 (supply_fast_tracepoint_registers)
13780 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13781 (ipa_tdesc, claim_trampoline_space)
13782 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13783 (agent_mem_read, agent_get_trace_state_variable_value)
13784 (agent_set_trace_state_variable_value, agent_tsv_read)
13785 (agent_mem_read_string, get_raw_reg_func_addr)
13786 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13787 * tracepoint.h: ... this new file.
13788
ff42e6ab
PA
137892013-09-05 Pedro Alves <palves@redhat.com>
13790
13791 * server.h (perror_with_name, error, fatal, warning, paddress)
13792 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13793 include it.
13794 * utils.h: New file.
13795
541af0f4
PA
137962013-09-05 Pedro Alves <palves@redhat.com>
13797
13798 * server.h (remote_debug, noack_mode, transport_is_reliable)
13799 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13800 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13801 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13802 (write_enn, initialize_async_io, enable_async_io)
13803 (disable_async_io, check_remote_input_interrupt_request)
13804 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13805 (dead_thread_notify, prepare_resume_reply)
13806 (decode_address_to_semicolon, decode_address, decode_m_packet)
13807 (decode_M_packet, decode_X_packet, decode_xfer_write)
13808 (decode_search_memory_packet, unhexify, hexify)
13809 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13810 (look_up_one_symbol, relocate_instruction)
13811 (monitor_output): Move to remote-utils.h, and include it.
13812 * remote-utils.h: New file.
13813
eebdf26b
PA
138142013-09-05 Pedro Alves <palves@redhat.com>
13815
13816 * server.h (_): Delete.
13817
3aafd2ff
PA
138182013-09-02 Pedro Alves <palves@redhat.com>
13819
13820 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13821 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13822 allocated.
13823 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13824
cee83bcb
PM
138252013-09-02 Pierre Muller <muller@sourceware.org>
13826
13827 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13828 or WriteProcessMemory complete successfully and handle
13829 ERROR_PARTIAL_COPY error.
13830
9a13b2fa
PA
138312013-09-02 Pedro Alves <palves@redhat.com>
13832
13833 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13834 error instead of EIO.
13835
602e3198
JK
138362013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13837
13838 PR server/15604
13839 * linux-low.c: Include filestuff.h.
13840 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13841 * lynx-low.c: Include filestuff.h.
13842 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13843 * server.c: Include filestuff.h.
13844 (main): Call notice_open_fds.
13845 * spu-low.c: Include filestuff.h.
13846 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13847
96d7229d
LM
138482013-08-22 Luis Machado <lgustavo@codesourcery.com>
13849
13850 * Makefile.in: Explain why ../target and ../nat are not
13851 listed as include file search paths.
13852 (linux-waitpid.o): New object file rule.
13853 * configure.srv (srv_native_linux_obj): New variable.
13854 Replace all occurrences of linux native object files with
13855 $srv_native_linux_obj.
13856 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13857 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13858 (linux_enable_event_reporting): Remove declaration.
13859 (my_waitpid): Moved to common/linux-waitpid.c.
13860 (linux_wait_for_event): Pass ptid when calling
13861 linux_enable_event_reporting.
13862 (linux_supports_tracefork_flag): Remove.
13863 (linux_enable_event_reporting): Likewise.
13864 (linux_tracefork_grandchild): Remove.
13865 (STACK_SIZE): Moved to common/linux-ptrace.c.
13866 (linux_tracefork_child): Remove.
13867 (linux_test_for_tracefork): Remove.
13868 (linux_look_up_symbols): Call linux_supports_traceclone.
13869 (initialize_low): Remove call to linux_test_for_tracefork.
13870 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13871 common/linux-ptrace.h.
13872 (PTRACE_TYPE_ARG4): Likewise.
13873 Include linux-ptrace.h.
13874
32940073
PA
138752013-08-21 Pedro Alves <palves@redhat.com>
13876
13877 * config.in: Renegerate.
13878
33b60d58 138792013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 13880
33b60d58
LM
13881 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13882 (SFILES): Remove $(srcdir)/common/target-common.c and
13883 add $(srcdir)/target/waitstatus.c.
13884 (OBS): Remove target-common.o and add waitstatus.o.
13885 (server_h): Remove $(srcdir)/../common/target-common.h and
13886 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13887 and $(srcdir)/../target/waitstatus.h.
13888 (target-common.o): Remove.
13889 (waitstatus.o): New target object file.
13890 * target.h: Do not include target-common.h and
13891 include target/resume.h, target/wait.h and
13892 target/waitstatus.h.
13893
b8e1b30e
LM
138942013-08-13 Luis Machado <lgustavo@codesourcery.com>
13895
13896 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13897 to PTRACE_TYPE_ARG3.
13898 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13899 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13900 PTRACE_TYPE_ARG4.
13901 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13902 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13903
7a60ad40
YQ
139042013-07-27 Jie Zhang <jie@codesourcery.com>
13905 Daniel Jacobowitz <dan@codesourcery.com>
13906 Yao Qi <yao@codesourcery.com>
13907
13908 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13909 (mips-linux-watch.o): New rule.
13910 (mips_linux_watch_h): New variable.
13911 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13912 srv_tgtobj.
13913 * linux-mips-low.c: Include mips-linux-watch.h.
13914 (struct arch_process_info, struct arch_lwp_info): New.
13915 (update_watch_registers_callback): New function.
13916 (mips_linux_new_process, mips_linux_new_thread) New functions.
13917 (mips_linux_prepare_to_resume, mips_insert_point): New
13918 functions.
13919 (mips_remove_point, mips_stopped_by_watchpoint): New
13920 functions.
13921 (rsp_bp_type_to_target_hw_bp_type): New function.
13922 (mips_stopped_data_address): New function.
13923 (the_low_target): Add watchpoint support functions.
13924
de6f69ad
YQ
139252013-07-27 Yao Qi <yao@codesourcery.com>
13926
13927 * i386-low.c: Include break-common.h.
13928 (enum target_hw_bp_type): Remove.
13929
3360c0bf
LM
139302013-07-24 Luis Machado <lgustavo@codesourcery.com>
13931
13932 * Makefile.in (SFILES): /common/target-common.c.
13933 (OBS): Add target-common.o.
13934 (server_h): Add $(srcdir)/../common/target-common.h.
13935 (target-common.o): New target.
13936 * server.c (queue_stop_reply_callback): Free
13937 status string after use.
13938 * target.c (target_waitstatus_to_string): Remove.
13939 * target.h: Include target-common.h.
13940 (resume_kind): Likewise.
13941 (target_waitkind): Likewise.
13942 (target_waitstatus): Likewise.
13943 (TARGET_WNOHANG): Likewise.
13944
bd885420
YQ
139452013-07-04 Yao Qi <yao@codesourcery.com>
13946
13947 * Makefile.in (host_alias): Use @host_noncanonical@.
13948 (target_alias): Use @target_noncanonical@.
13949 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13950 ACX_NONCANONICAL_HOST.
13951 * configure: Regenerated.
13952
13953 Revert:
13954 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13955
13956 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13957 * configure: Rebuild.
13958 * Makefile.in (version_host, version_target): Get from configure.
13959 (version.c): Use $(version_host) and $(version_target).
13960
17ef446e
PA
139612013-07-03 Pedro Alves <palves@redhat.com>
13962
13963 * Makefile.in (config.status): Depend on development.sh.
13964 * acinclude.m4: Include libmcheck.m4.
13965 * configure: Regenerate.
13966
7a9a7487
MG
139672013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13968
13969 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13970 attribute inside the parentheses.
13971 (winapi_DebugSetProcessKillOnExit): Ditto.
13972 (winapi_DebugBreakProcess): Ditto.
13973 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 13974
49b64de6
MG
139752013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13976
13977 * notif.h (notif_event): Add a dummy member to avoid compiler
13978 errors.
13979
d5749ee7
PA
139802013-07-01 Pedro Alves <palves@redhat.com>
13981
13982 * hostio.c (HOSTIO_PATH_MAX): Define.
13983 (require_filename, handle_open, handle_unlink, handle_readlink):
13984 Use it.
13985
d8d2a3ee
PA
139862013-07-01 Pedro Alves <palves@redhat.com>
13987
13988 * server.h: Include "pathmax.h".
13989 * linux-low.c: Don't include sys/param.h.
13990 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13991 MAXPATHLEN.
13992 * win32-low.c: Don't include sys/param.h.
13993 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13994
bc7dea8d
PA
139952013-07-01 Pedro Alves <palves@redhat.com>
13996
13997 * event-loop.c: Don't check HAVE_UNISTD_H before including
13998 <unistd.h>.
13999 * gdbreplay.c: Likewise.
14000 * remote-utils.c: Likewise.
14001 * server.c: Likewise.
14002 * configure.ac: Don't check for unistd.h.
14003 * configure: Regenerate.
14004
d6c2da54
TT
140052013-06-28 Tom Tromey <tromey@redhat.com>
14006
14007 * Makefile.in (version.c): Use version.in, not
14008 common/version.in.
14009
257b6bec
MG
140102013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14011
14012 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14013 * configure: Rebuild.
14014 * Makefile.in (version_host, version_target): Get from configure.
14015 (version.c): Use $(version_host) and $(version_target).
14016
86ebe149
DK
140172013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14018
14019 Fix trace-status to output user name without trailing colon.
14020 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14021
f30aa5af
DK
140222013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14023
14024 Fix trace-status to output proper start-time and stop-time.
14025 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14026 output start time and stop time in hex as gdb expects.
14027
28a93511
YQ
140282013-06-26 Pedro Alves <pedro@codesourcery.com>
14029
14030 * tracepoint.c (build_traceframe_info_xml): Output trace state
14031 variables present in the trace buffer.
14032
01208463
TT
140332013-06-24 Tom Tromey <tromey@redhat.com>
14034
14035 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14036 create-version.sh.
14037 (version.o): Remove.
14038 * gdbreplay.c: Include version.h.
14039 (version, host_name): Don't declare.
14040 * server.h: Include version.h.
14041 (version, host_name): Don't declare.
14042
760256f9
PA
140432013-06-12 Pedro Alves <palves@redhat.com>
14044
14045 * linux-x86-low.c (linux_is_elf64): Delete global.
14046 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14047 with local linux_pid_exe_is_elf_64_file use.
14048
030031ee
PA
140492013-06-11 Pedro Alves <palves@redhat.com>
14050
14051 * linux-low.c (regset_disabled, disable_regset): New functions.
14052 (regsets_fetch_inferior_registers)
14053 (regsets_store_inferior_registers): Use them.
14054 (initialize_regsets_info); Don't allocate the disabled_regsets
14055 array here.
14056 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14057 comment.
14058
5da6eb0a
PA
140592013-06-11 Pedro Alves <palves@redhat.com>
14060
14061 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14062 xmalloc.
14063
7e5aaa09
PA
140642013-06-11 Pedro Alves <palves@redhat.com>
14065
14066 * linux-x86-low.c (initialize_low_arch): Call
14067 init_registers_x32_avx_linux.
14068
d878444c
JK
140692013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14070
14071 Fix compatibility with Android Bionic.
14072 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14073 it is not empty.
14074
3aee8918
PA
140752013-06-07 Pedro Alves <palves@redhat.com>
14076
5f2b57b5 14077 PR server/14823
3aee8918
PA
14078 * Makefile.in (OBS): Add tdesc.o.
14079 (IPA_OBJS): Add tdesc-ipa.o.
14080 (tdesc-ipa.o): New rule.
14081 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14082 interface.
14083 * linux-low.c (new_inferior): Delete.
14084 (disabled_regsets, num_regsets): Delete.
14085 (linux_add_process): Adjust to set the new per-process
14086 new_inferior flag.
14087 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14088 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14089 was a stop. When calling arch_setup, switch the current inferior
14090 to the thread that got an event.
14091 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14092 (regsets_fetch_inferior_registers)
14093 (regsets_store_inferior_registers): New regsets_info parameter.
14094 Adjust to use it.
14095 (linux_register_in_regsets): New regs_info parameter. Adjust to
14096 use it.
14097 (register_addr, fetch_register, store_register): New usrregs_info
14098 parameter. Adjust to use it.
14099 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14100 parameter regs_info. Adjust to use it.
14101 (linux_fetch_registers): Get the current inferior's regs_info, and
14102 adjust to use it.
14103 (linux_store_registers): Ditto.
14104 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14105 (initialize_low): Don't initialize the target_regsets here. Call
14106 initialize_low_arch.
14107 * linux-low.h (target_regsets): Delete declaration.
14108 (struct regsets_info): New.
14109 (struct usrregs_info): New.
14110 (struct regs_info): New.
14111 (struct process_info_private) <new_inferior>: New field.
14112 (struct linux_target_ops): Delete the num_regs, regmap, and
14113 regset_bitmap fields. New field regs_info.
14114 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14115 * i387-fp.c (num_xmm_registers): Delete.
14116 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14117 calls to new interface.
14118 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14119 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14120 Infer the number of xmm registers from the regcache's target
14121 description.
14122 * i387-fp.h (num_xmm_registers): Delete.
14123 * inferiors.c (add_thread): Don't install the thread's regcache
14124 here.
14125 * proc-service.c (gregset_info): Fetch the current inferior's
14126 regs_info. Adjust to use it.
14127 * regcache.c: Include tdesc.h.
14128 (register_bytes, reg_defs, num_registers)
14129 (gdbserver_expedite_regs): Delete.
14130 (get_thread_regcache): If the thread doesn't have a regcache yet,
14131 create one, instead of aborting gdbserver.
14132 (regcache_invalidate_one): Rename to ...
14133 (regcache_invalidate_thread): ... this.
14134 (regcache_invalidate_one): New.
14135 (regcache_invalidate): Only invalidate registers of the current
14136 process.
14137 (init_register_cache): Add target_desc parameter, and use it.
14138 (new_register_cache): Ditto. Assert the target description has a
14139 non zero registers_size.
14140 (regcache_cpy): Add assertions. Adjust.
14141 (realloc_register_cache, set_register_cache): Delete.
14142 (registers_to_string, registers_from_string): Adjust.
14143 (find_register_by_name, find_regno, find_register_by_number)
14144 (register_cache_size): Add target_desc parameter, and use it.
14145 (free_register_cache_thread, free_register_cache_thread_one)
14146 (regcache_release, register_cache_size): New.
14147 (register_size): Add target_desc parameter, and use it.
14148 (register_data, supply_register, supply_register_zeroed)
14149 (supply_regblock, supply_register_by_name, collect_register)
14150 (collect_register_as_string, collect_register_by_name): Adjust.
14151 * regcache.h (struct target_desc): Forward declare.
14152 (struct regcache) <tdesc>: New field.
14153 (init_register_cache, new_register_cache): Add target_desc
14154 parameter.
14155 (regcache_invalidate_thread): Declare.
14156 (regcache_invalidate_one): Delete declaration.
14157 (regcache_release): Declare.
14158 (find_register_by_number, register_cache_size, register_size)
14159 (find_regno): Add target_desc parameter.
14160 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14161 declarations.
14162 * remote-utils.c: Include tdesc.h.
14163 (outreg, prepare_resume_reply): Adjust.
14164 * server.c: Include tdesc.h.
14165 (gdbserver_xmltarget): Delete declaration.
14166 (get_features_xml, process_serial_event): Adjust.
14167 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14168 declare.
14169 (struct process_info) <tdesc>: New field.
14170 (ipa_tdesc): Declare.
14171 * tdesc.c: New file.
14172 * tdesc.h: New file.
14173 * tracepoint.c: Include tdesc.h.
14174 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14175 (get_context_regcache): Adjust to pass ipa_tdesc down.
14176 (do_action_at_tracepoint): Adjust to get the register cache size
14177 from the context regcache's description.
14178 (traceframe_walk_blocks): Adjust to get the register cache size
14179 from the current trace frame's description.
14180 (traceframe_get_pc): Adjust to get current trace frame's
14181 description and pass it down.
14182 (gdb_collect): Adjust to get the register cache size from the
14183 IPA's description.
14184 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14185 (gdbserver_xmltarget): Delete.
14186 (initialize_low_tracepoint): Set the ipa's target description.
14187 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14188 (initialize_low_tracepoint): Set the ipa's target description.
14189 * linux-x86-low.c: Include tdesc.h.
14190 [__x86_64__] (is_64bit_tdesc): New.
14191 (ps_get_thread_area, x86_get_thread_area): Use it.
14192 (i386_cannot_store_register): Rename to ...
14193 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14194 (i386_cannot_fetch_register): Rename to ...
14195 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14196 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14197 to new interface.
14198 (target_regsets): Rename to ...
14199 (x86_regsets): ... this.
14200 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14201 interface.
14202 (x86_siginfo_fixup): Use is_64bit_tdesc.
14203 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14204 (tdesc_x32_avx_linux, tdesc_x32_linux)
14205 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14206 Declare.
14207 (x86_linux_update_xmltarget): Delete.
14208 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14209 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14210 (AMD64_LINUX_USER64_CS): New.
14211 (x86_linux_read_description): New, based on
14212 x86_linux_update_xmltarget.
14213 (same_process_callback): New.
14214 (x86_arch_setup_process_callback): New.
14215 (x86_linux_update_xmltarget): New.
14216 (x86_regsets_info): New.
14217 (amd64_linux_regs_info): New.
14218 (i386_linux_usrregs_info): New.
14219 (i386_linux_regs_info): New.
14220 (x86_linux_regs_info): New.
14221 (x86_arch_setup): Reimplement.
14222 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14223 (x86_emit_ops): Ditto.
14224 (the_low_target): Adjust. Install x86_linux_regs_info,
14225 x86_cannot_fetch_register, and x86_cannot_store_register.
14226 (initialize_low_arch): New.
14227 * linux-ia64-low.c (tdesc_ia64): Declare.
14228 (ia64_fetch_register): Adjust.
14229 (ia64_usrregs_info, regs_info): New globals.
14230 (ia64_regs_info): New function.
14231 (the_low_target): Adjust.
14232 (initialize_low_arch): New function.
14233 * linux-sparc-low.c (tdesc_sparc64): Declare.
14234 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14235 Adjust.
14236 (sparc_arch_setup): New function.
14237 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14238 (the_low_target): Adjust.
14239 (initialize_low_arch): New function.
14240 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14241 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14242 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14243 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14244 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14245 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14246 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14247 (tdesc_powerpc_isa205_vsx64l): Declare.
14248 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14249 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14250 (ppc_set_pc, ppc_get_hwcap): Adjust.
14251 (ppc_usrregs_info): Forward declare.
14252 (!__powerpc64__) ppc_regmap_adjusted: New global.
14253 (ppc_arch_setup): Adjust to the current process'es target
14254 description.
14255 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14256 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14257 (ppc_store_evrregset): Adjust.
14258 (target_regsets): Rename to ...
14259 (ppc_regsets): ... this, and make static.
14260 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14261 (ppc_regs_info): New function.
14262 (the_low_target): Adjust.
14263 (initialize_low_arch): New function.
14264 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14265 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14266 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14267 (tdesc_s390x_linux64v2): Declare.
14268 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14269 (s390_fill_gregset, s390_store_last_break): Adjust.
14270 (target_regsets): Rename to ...
14271 (s390_regsets): ... this, and make static.
14272 (s390_get_pc, s390_set_pc): Adjust.
14273 (s390_get_hwcap): New target_desc parameter, and use it.
14274 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14275 (s390_arch_setup): Adjust to set the current process'es target
14276 description. Don't adjust the regmap.
14277 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14278 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14279 (regs_info_3264): New globals.
14280 (s390_regs_info): New function.
14281 (the_low_target): Adjust.
14282 (initialize_low_arch): New function.
14283 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14284 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14285 [__mips64] (init_registers_mips_linux)
14286 (init_registers_mips_dsp_linux): Delete defines.
14287 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14288 (have_dsp): New global.
14289 (mips_read_description): New, based on mips_arch_setup.
14290 (mips_arch_setup): Reimplement.
14291 (get_usrregs_info): New function.
14292 (mips_cannot_fetch_register, mips_cannot_store_register)
14293 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14294 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14295 (target_regsets): Rename to ...
14296 (mips_regsets): ... this, and make static.
14297 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14298 (dsp_regs_info, regs_info): New globals.
14299 (mips_regs_info): New function.
14300 (the_low_target): Adjust.
14301 (initialize_low_arch): New function.
14302 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14303 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14304 Declare.
14305 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14306 (arm_read_description): New, with bits factored from
14307 arm_arch_setup.
14308 (arm_arch_setup): Reimplement.
14309 (target_regsets): Rename to ...
14310 (arm_regsets): ... this, and make static.
14311 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14312 (arm_regs_info): New function.
14313 (the_low_target): Adjust.
14314 (initialize_low_arch): New function.
14315 * linux-m68k-low.c (tdesc_m68k): Declare.
14316 (target_regsets): Rename to ...
14317 (m68k_regsets): ... this, and make static.
14318 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14319 (m68k_regs_info): New function.
14320 (m68k_arch_setup): New function.
14321 (the_low_target): Adjust.
14322 (initialize_low_arch): New function.
14323 * linux-sh-low.c (tdesc_sharch): Declare.
14324 (target_regsets): Rename to ...
14325 (sh_regsets): ... this, and make static.
14326 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14327 (sh_regs_info, sh_arch_setup): New functions.
14328 (the_low_target): Adjust.
14329 (initialize_low_arch): New function.
14330 * linux-bfin-low.c (tdesc_bfin): Declare.
14331 (bfin_arch_setup): New function.
14332 (bfin_usrregs_info, regs_info): New globals.
14333 (bfin_regs_info): New function.
14334 (the_low_target): Adjust.
14335 (initialize_low_arch): New function.
14336 * linux-cris-low.c (tdesc_cris): Declare.
14337 (cris_arch_setup): New function.
14338 (cris_usrregs_info, regs_info): New globals.
14339 (cris_regs_info): New function.
14340 (the_low_target): Adjust.
14341 (initialize_low_arch): New function.
14342 * linux-cris-low.c (tdesc_crisv32): Declare.
14343 (cris_arch_setup): New function.
14344 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14345 (cris_regs_info): New function.
14346 (the_low_target): Adjust.
14347 (initialize_low_arch): New function.
14348 * linux-m32r-low.c (tdesc_m32r): Declare.
14349 (m32r_arch_setup): New function.
14350 (m32r_usrregs_info, regs_info): New globals.
14351 (m32r_regs_info): Adjust.
14352 (initialize_low_arch): New function.
14353 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14354 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14355 (tic6x_usrregs_info): Forward declare.
14356 (tic6x_read_description): New function, based on ...
14357 (tic6x_arch_setup): ... this. Reimplement.
14358 (target_regsets): Rename to ...
14359 (tic6x_regsets): ... this, and make static.
14360 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14361 (tic6x_regs_info): New function.
14362 (the_low_target): Adjust.
14363 (initialize_low_arch): New function.
14364 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14365 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14366 (target_regsets): Rename to ...
14367 (xtensa_regsets): ... this, and make static.
14368 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14369 globals.
14370 (xtensa_arch_setup, xtensa_regs_info): New functions.
14371 (the_low_target): Adjust.
14372 (initialize_low_arch): New function.
14373 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14374 (nios2_arch_setup): Set the current process'es tdesc.
14375 (target_regsets): Rename to ...
14376 (nios2_regsets): ... this.
14377 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14378 (nios2_regs_info): New function.
14379 (the_low_target): Adjust.
14380 (initialize_low_arch): New function.
a261b8f5
PA
14381 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14382 (aarch64_arch_setup): Set the current process'es tdesc.
14383 (target_regsets): Rename to ...
14384 (aarch64_regsets): ... this.
14385 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14386 (aarch64_regs_info): New function.
14387 (the_low_target): Adjust.
14388 (initialize_low_arch): New function.
3aee8918
PA
14389 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14390 globals.
14391 (target_regsets): Rename to ...
14392 (tile_regsets): ... this.
14393 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14394 (tile_regs_info): New function.
14395 (tile_arch_setup): Set the current process'es tdesc.
14396 (the_low_target): Adjust.
14397 (initialize_low_arch): New function.
14398 * spu-low.c (tdesc_spu): Declare.
14399 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14400 * win32-arm-low.c (tdesc_arm): Declare.
14401 (arm_arch_setup): New function.
14402 (the_low_target): Install arm_arch_setup instead of
14403 init_registers_arm.
14404 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14405 (init_windows_x86): Rename to ...
14406 (i386_arch_setup): ... this. Set `win32_tdesc'.
14407 (the_low_target): Adjust.
14408 * win32-low.c (win32_tdesc): New global.
14409 (child_add_thread): Don't create the thread cache here.
14410 (do_initial_child_stuff): Set the new process'es tdesc.
14411 * win32-low.h (struct target_desc): Forward declare.
14412 (win32_tdesc): Declare.
14413 * lynx-i386-low.c (tdesc_i386): Declare global.
14414 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14415 * lynx-low.c (lynx_tdesc): New global.
14416 (lynx_add_process): Set the new process'es tdesc.
14417 * lynx-low.h (struct target_desc): Forward declare.
14418 (lynx_tdesc): Declare global.
14419 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14420 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14421 * nto-low.c (nto_tdesc): New global.
14422 (do_attach): Set the new process'es tdesc.
14423 * nto-low.h (struct target_desc): Forward declare.
14424 (nto_tdesc): Declare.
14425 * nto-x86-low.c (tdesc_i386): Declare.
14426 (nto_x86_arch_setup): Set `nto_tdesc'.
14427
b1fbec62
GB
144282013-06-04 Gary Benson <gbenson@redhat.com>
14429
14430 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14431 to qSupported response when appropriate.
14432 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14433 with nonzero-length annex.
14434 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14435 arguments supplied in annex.
14436
d1ec4ce7
DE
144372013-05-31 Doug Evans <dje@google.com>
14438
ac44adcb 14439 PR server/15594
d1ec4ce7
DE
14440 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14441 64 bits in 64-cross-32 environment.
14442
9b25f2d3
PA
144432013-05-28 Pedro Alves <palves@redhat.com>
14444
14445 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14446 (aarch64-without-fpu.c): Delete rule.
14447 * configure.srv (aarch64*-*-linux*): Remove references to
14448 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14449 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14450 declaration.
14451
6740dc9c
PA
144522013-05-24 Pedro Alves <palves@redhat.com>
14453
14454 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14455 instead of strchr/decode_address. Error if the range isn't split
14456 with a ','. Don't assume there's be a ':' in the action.
14457
c2d6af84
PA
144582013-05-23 Yao Qi <yao@codesourcery.com>
14459 Pedro Alves <palves@redhat.com>
14460
14461 * linux-low.c (lwp_in_step_range): New function.
14462 (linux_wait_1): If the thread was range stepping and stopped
14463 outside the stepping range, report the stop to GDB. Otherwise,
14464 continue stepping. Add range stepping debug output.
14465 (linux_set_resume_request): Copy the step range from the resume
14466 request to the lwp.
14467 (linux_supports_range_stepping): New.
14468 (linux_target_ops) <supports_range_stepping>: Set to
14469 linux_supports_range_stepping.
14470 * linux-low.h (struct linux_target_ops)
14471 <supports_range_stepping>: New field.
14472 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14473 * linux-x86-low.c (x86_supports_range_stepping): New.
14474 (the_low_target) <supports_range_stepping>: Set to
14475 x86_supports_range_stepping.
14476 * server.c (handle_v_cont): Handle 'r' action.
14477 (handle_v_requests): Append ";r" if the target supports range
14478 stepping.
14479 * target.h (struct thread_resume) <step_range_start,
14480 step_range_end>: New fields.
14481 (struct target_ops) <supports_range_stepping>:
14482 New field.
14483 (target_supports_range_stepping): New macro.
14484
58794e1a
JB
144852013-05-17 Joel Brobecker <brobecker@adacore.com>
14486
14487 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14488 confusion in comment.
14489
d631c5a7
JB
144902013-05-17 Joel Brobecker <brobecker@adacore.com>
14491
14492 * lynx-low.c (struct process_info_private): New type.
14493 (lynx_add_process): New function.
14494 (lynx_create_inferior, lynx_attach): Replace calls to
14495 add_process by calls to lynx_add_process.
14496 (lynx_resume): If PTID is null, then try using
14497 current_process()->private->last_wait_event_ptid.
14498 Add comments.
14499 (lynx_clear_inferiors): Delete. The contents of that function
14500 has been inlined in lynx_mourn;
14501 (lynx_wait_1): Save the ptid in the process's private data.
14502 (lynx_mourn): Free the process' private data. Replace call
14503 to lynx_clear_inferiors by call to clear_inferiors.
14504
96f7a20f
YQ
145052013-05-17 Yao Qi <yao@codesourcery.com>
14506
14507 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14508 the right place.
14509
db0dfaa0
LM
145102013-05-16 Luis Machado <lgustavo@codesourcery.com>
14511
14512 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14513 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14514 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14515 PT_TEXT_END_ADDR guards. Update comments.
14516 (linux_target_op) <read_offsets>: Conditionally define to
14517 linux_read_offsets if the target is UCLIBC and if it defines
14518 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14519
68f5f838
SL
145202013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14521 Andrew Jenner <andrew@codesourcery.com>
14522
14523 * Makefile.in (SFILES): Add linux-nios2-low.c.
14524 (clean): Add action to delete nios2-linux.c.
14525 (nios2-linux.c): New rule.
14526 * configure.srv: Add nios2*-*-linux*.
14527 * linux-nios2-low.c: New.
14528
1ebff1fd
HAQ
145292013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14530
14531 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14532
f6150862
HZ
145332013-04-25 Hui Zhu <hui@codesourcery.com>
14534
14535 PR gdb/15186
f6150862
HZ
14536 * ax.c (ax_printf): Add fflush.
14537
614c279d
TT
145382013-04-22 Tom Tromey <tromey@redhat.com>
14539
14540 * Makefile.in (SFILES): Add filestuff.c.
14541 (OBS): Add filestuff.o.
14542 (filestuff.o): New target.
14543 * config.in, configure: Rebuild.
14544 * configure.ac: Check for fdwalk, pipe2.
14545
7d4e5717
PA
145462013-04-17 Pedro Alves <palves@redhat.com>
14547
14548 * configure.ac (USE_THREAD_DB): Delete variable.
14549 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14550 Don't AC_SUBST USE_THREAD_DB.
14551 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14552 * config.in, configure: Regenerate.
14553
d5c93e41
PA
145542013-04-16 Pedro Alves <palves@redhat.com>
14555
14556 * linux-low.h (struct lwp_info) <thread_known>: Move under
14557 the USE_THREAD_DB #ifdef.
14558
04f5fe89
PA
145592013-04-16 Pedro Alves <palves@redhat.com>
14560
14561 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14562 (linux-low.o): Delete rule.
14563 * linux-low.h: Always include "gdb_thread_db.h" instead of
14564 conditionally including thread_db.h.
14565 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14566 HAVE_THREAD_DB_H.
14567
480b27bf
JK
145682013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14569
14570 * Makefile.in (install-only): Fix make install regression.
14571
43662968
JK
145722013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14573
14574 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14575 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14576 installation.
14577 * gdbserver.1: Remove.
14578
3e74e146
PA
145792013-03-22 Pedro Alves <palves@redhat.com>
14580
14581 * linux-low.c (handle_extended_wait): Don't call
14582 linux_enable_event_reporting.
14583
a8347a2a
TT
145842013-03-15 Tony Theodore <tonyt@logyst.com>
14585
14586 PR build/9098:
14587 * Makefile.in (SHELL): Use @SHELL@.
14588
eeb56fa7
SDJ
145892013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14590
14591 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14592 compiler warning.
14593
4fa7e2ff
JB
145942013-03-13 Joel Brobecker <brobecker@adacore.com>
14595
14596 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14597 Remove extraneous NULL element.
14598
8ddb1965
YQ
145992013-03-13 Yao Qi <yao@codesourcery.com>
14600
14601 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14602 'V' block in trace frame.
14603
9accd112
MM
146042013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14605
14606 * target.h (struct target_ops): Add btrace ops.
14607 (target_supports_btrace): New macro.
14608 (target_enable_btrace): New macro.
14609 (target_disable_btrace): New macro.
14610 (target_read_btrace): New macro.
14611 * gdbthread.h (struct thread_info): Add btrace field.
14612 * server.c: Include btrace-common.h.
14613 (handle_btrace_general_set): New function.
14614 (handle_btrace_enable): New function.
14615 (handle_btrace_disable): New function.
14616 (handle_general_set): Call handle_btrace_general_set.
14617 (handle_qxfer_btrace): New function.
14618 (struct qxfer qxfer_packets[]): Add btrace entry.
14619 * inferiors.c (remove_thread): Disable btrace.
14620 * linux-low: Include linux-btrace.h.
14621 (linux_low_enable_btrace): New function.
14622 (linux_low_read_btrace): New function.
14623 (linux_target_ops): Add btrace ops.
14624 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14625 Add srv_linux_btrace=yes.
14626 (x86_64-*-linux*): Add linux-btrace.o.
14627 Add srv_linux_btrace=yes.
14628 * configure.ac: Define HAVE_LINUX_BTRACE.
14629 * config.in: Regenerated.
14630 * configure: Regenerated.
14631
5cc22e4c
MM
146322013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14633
14634 * server.c (handle_qxfer): Preserve error message if -3 is
14635 returned.
14636 (qxfer): Document the -3 return value.
14637
7c97f91e
MM
146382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14639
14640 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14641 (linux_btrace_h): New variable.
14642 (linux-btrace.o): New rule.
14643
be9a119c 146442013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14645 Hafiz Abid Qadeer <abidh@codesourcery.com>
14646
14647 * tracepoint.c (trace_buffer_size): New global.
14648 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14649 (init_trace_buffer): Change to one-argument function. Allocate
14650 trace buffer memory.
14651 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14652 handle QTBuffer:size packet.
14653 (cmd_bigqtbuffer_size): New function.
14654 (initialize_tracepoint): Call init_trace_buffer with
14655 DEFAULT_TRACE_BUFFER_SIZE.
14656 * server.c (handle_query): Add QTBuffer:size in the
14657 supported packets.
14658
e64f7499
YQ
146592013-03-07 Yao Qi <yao@codesourcery.com>
14660
14661 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14662 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14663 of -1.
14664 (cmd_qtsp): Adjust condition. Do post increment.
14665 Set cur_action and cur_step_action back to 0.
14666
f0ae6fc3
PA
146672013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14668
14669 PR server/15236
14670 * linux-low.c (linux_write_memory): Return early success if LEN is
14671 zero.
14672
b5b0b0af
CV
146732013-03-05 Corinna Vinschen <vinschen@redhat.de>
14674
334ad4a8 14675 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14676
589bc927
TT
146772013-02-28 Tom Tromey <tromey@redhat.com>
14678
14679 * configure.ac: Invoke AC_SYS_LARGEFILE.
14680 * configure, config.in: Rebuild.
14681
dfe07582
CV
146822013-02-28 Corinna Vinschen <vinschen@redhat.com>
14683
14684 * win32-low.c: Throughout, fix format strings and casts of
14685 printf-like functions to avoid type related warnings on all
14686 platforms.
14687 (get_child_debug_event): Print dwDebugEventCode as hex since
14688 that's how it's usually documented.
14689
736cd585
YQ
146902013-02-28 Yao Qi <yao@codesourcery.com>
14691
14692 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14693 pulongest.
14694
e1f58301
JW
146952013-02-27 Jiong Wang <jiwang@tilera.com>
14696
14697 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14698 (reg-tilegx32.c): New rule.
14699 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14700 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14701 different register info initializer according to elf class.
14702 (init_registers_tilgx32): New function. The tilegx32 register info
14703 initializer.
14704 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14705 (tile_store_gregset): Likewise.
14706
d171ca78
YQ
147072013-02-27 Yao Qi <yao@codesourcery.com>
14708
14709 * server.c (process_point_options): Print debug message when
14710 debug_threads is true.
14711
282bbdf3
YQ
147122013-02-26 Yao Qi <yao@codesourcery.com>
14713
14714 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14715
aca22551
PA
147162013-02-19 Pedro Alves <palves@redhat.com>
14717 Kai Tietz <ktietz@redhat.com>
14718
14719 PR gdb/15161
14720
14721 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14722 instead of strtoul to extract address from packet.
14723 (process_serial_event) <'z'>: Likewise.
14724
4f3cee1c
YQ
147252013-02-18 Yao Qi <yao@codesourcery.com>
14726
14727 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14728
8e1d55a3
PA
147292013-02-14 Pedro Alves <palves@redhat.com>
14730
14731 Plug memory leak.
14732
14733 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14734 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14735
458820da
PA
147362013-02-14 Pedro Alves <palves@redhat.com>
14737
14738 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14739
baea0dae
PA
147402013-02-14 Pedro Alves <palves@redhat.com>
14741
14742 * tracepoint.c (save_string): Delete.
14743 (add_tracepoint_action): Use savestring instead of save_string.
14744
0b1afbb3
PA
147452013-02-12 Pedro Alves <palves@redhat.com>
14746
14747 * linux-xtensa-low.c: Ditto.
14748 * xtensa-xtregs.c: Ditto.
14749
8a4ac37e
PA
147502013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14751
14752 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14753 thread_db.
14754
148de6bb
MS
147552013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14756
14757 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14758 aarch64_num_wp_regs and aarch64_num_bp_regs to
14759 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14760
55fac6e0
MS
147612013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14762
14763 * linux-aarch64-low.c (ps_get_thread_area): Replace
14764 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14765
176eb98c
MS
147662013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14767 Marcus Shawcroft <marcus.shawcroft@arm.com>
14768 Nigel Stephens <nigel.stephens@arm.com>
14769 Yufeng Zhang <yufeng.zhang@arm.com>
14770
14771 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14772 (aarch64.c, aarch64-without-fpu.c): New targets.
14773 * configure.srv (aarch64*-*-linux*): New.
14774 * linux-aarch64-low.c: New file.
14775
56f7af9c
MS
147762013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14777
43aaf8b6 14778 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14779 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14780 (dequeue_one_deferred_signal, linux_resume_one_thread)
14781 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14782 (linux_tracefork_grandchild, linux_test_for_tracefork)
14783 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14784 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14785 where the argument is 0.
14786
60f662b0
YQ
147872013-01-25 Yao Qi <yao@codesourcery.com>
14788
14789 * event-loop.c: Include "queue.h".
14790 (gdb_event_p): New typedef.
14791 (struct gdb_event) <next_event>: Remove.
14792 (event_queue): Change to QUEUE(gdb_event_p).
14793 (async_queue_event): Remove.
14794 (gdb_event_xfree): New.
14795 (initialize_event_loop): New.
14796 (process_event): Use API from QUEUE.
14797 (wait_for_event): Likewise.
14798 * server.c (main): Call initialize_event_loop.
14799 * server.h (initialize_event_loop): Declare.
14800
5ae4861a
YQ
148012013-01-18 Yao Qi <yao@codesourcery.com>
14802
14803 * ax.h (struct eval_agent_expr_context): New.
14804 (gdb_eval_agent_expr): Update declaration.
14805 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14806 TFRAME. Add new argument CTX.
14807 * server.h (struct eval_agent_expr_context): Declare.
14808 (agent_mem_read, agent_tsv_read): Update declaration.
14809 (agent_mem_read_string): Likewise.
14810 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14811 (add_traceframe_block): Add new argument TPOINT.
14812 Increase TPOINT->traceframe_usage.
14813 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14814 eval_tracepoint_agent_expr.
14815 (condition_true_at_tracepoint): Likewise.
14816 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14817 (agent_mem_read_string, agent_tsv_read): Likewise.
14818
85e00e85
YQ
148192013-01-16 Yao Qi <yao@codesourcery.com>
14820
14821 * linux-low.c (linux_resume_one_lwp): Don't check
14822 'lwp->bp_reinsert != 0'.
14823
4039cf45
JB
148242013-01-07 Joel Brobecker <brobecker@adacore.com>
14825 Pedro Alves <palves@redhat.com>
14826
14827 * lynx-low.c (ptrace_request_to_str): Define a temporary
14828 macro and use it to simplify this function's implementation.
14829
9044dee2
JB
148302013-01-07 Joel Brobecker <brobecker@adacore.com>
14831
14832 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14833 sets errno.
14834
e6352c8f
JB
148352013-01-07 Joel Brobecker <brobecker@adacore.com>
14836
14837 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14838
50681a27
JB
148392013-01-07 Joel Brobecker <brobecker@adacore.com>
14840
14841 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14842
3f6e77ef
JB
148432013-01-07 Joel Brobecker <brobecker@adacore.com>
14844
14845 * lynx-low.c (lynx_resume): Use the resume_info parameter
14846 to determine the ptid for the lynx_ptrace call, unless
14847 it is equal to minus_one_ptid, in which case we use the
14848 ptid of the current_inferior.
14849 (lynx_wait_1): After having received a thread create/exit
14850 event, resume the inferior's execution using the signaling
14851 thread's ptid, rather than the old ptid.
14852
7fda33ae
JB
148532013-01-07 Joel Brobecker <brobecker@adacore.com>
14854
14855 * lynx-low.c (lynx_resume): Delete variable ret.
14856
b9786c74
JB
148572013-01-01 Joel Brobecker <brobecker@adacore.com>
14858
14859 * gdbreplay.c (gdbreplay_version): Update copyright year.
14860 * server.c (gdbserver_version): Likewise.
14861
8b93d60f
JB
148622012-12-17 Joel Brobecker <brobecker@adacore.com>
14863
14864 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14865 new thread.
14866
037335a7
JB
148672012-12-17 Joel Brobecker <brobecker@adacore.com>
14868
14869 * lynx-low.c (ptrace_request_to_str): Add handling for
14870 PTRACE_GETTRACESIG.
14871
52d4cbd8
JB
148722012-12-17 Joel Brobecker <brobecker@adacore.com>
14873
14874 * lynx-low.c (lynx_attach): Delete variable new_process.
14875
ab8f6ca9
JB
148762012-12-17 Joel Brobecker <brobecker@adacore.com>
14877
14878 * lynx-low.c (lynx_create_inferior): Delete variable
14879 new_process.
14880
78cbc024
JB
148812012-12-17 Joel Brobecker <brobecker@adacore.com>
14882
14883 * lynx-low.c (ptrace_request_to_str): Do not handle
14884 PTRACE_GETTHREADLIST if this macro does not exist.
14885
14a00470
YQ
148862012-12-15 Yao Qi <yao@codesourcery.com>
14887
14888 * Makefile.in (OBS): Add notif.o.
14889 * notif.c, notif.h: New.
14890 * server.c: Include "notif.h".
14891 (struct vstop_notif) <next>: Remove.
14892 <base>: New field.
14893 (queue_stop_reply): Update.
14894 (push_event, send_next_stop_reply): Remove.
14895 (discard_queued_stop_replies): Update.
14896 (notif_stop): New variable.
14897 (handle_v_stopped): Remove.
14898 (handle_v_requests): Don't call handle_v_stopped. Call
14899 handle_ack_notif instead.
14900 (queue_stop_reply_callback): Call notif_event_enque instead
14901 of queue_stop_reply.
14902 (handle_status): Don't call send_next_stop_reply, call
14903 notif_write_event instead.
14904 (kill_inferior_callback): Likewise.
14905 (detach_or_kill_inferior_callback): Likewise.
14906 (main): Call initialize_notif.
14907 (process_serial_event): Call QUEUE_is_empty.
14908 (handle_target_event): Call notif_push instead of push event.
14909 * server.h (push_event): Remove declaration.
14910
61c125b9
TT
149112012-12-10 Tom Tromey <tromey@redhat.com>
14912
14913 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14914 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14915 macros.
14916 (.c.o): Rewrite.
14917 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14918 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14919 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14920 (amd64-linux-ipa.o, ax.o): Rewrite.
14921 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14922 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14923 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14924 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14925 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14926 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14927 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14928 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14929 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14930 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14931 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14932 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14933 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14934 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14935 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14936 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14937 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14938 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14939 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14940 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14941 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14942 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14943 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14944 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14945 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14946 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14947 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14948 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14949 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14950 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14951 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14952 (reg-tilegx.o): Remove.
14953 (all_object_files): New macro.
14954 Include .deps files.
14955 * aclocal.m4, configure: Rebuild.
14956 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14957 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14958 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14959
e90e9ad9
TT
149602012-12-05 Tom Tromey <tromey@redhat.com>
14961
14962 PR gdb/14917:
14963 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14964
02d403bf 149652012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
14966
14967 * configure.ac: Check for linux/perf_event.h.
14968 * config.in: Regenerated.
14969 * configure: Regenerated.
14970
0270a750
PA
149712012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14972
14973 * hostio.c (handle_readlink): Decrease buffer size
14974 parameter passed to readlink by one byte.
14975
8c29b58e
YQ
149762012-11-26 Yao Qi <yao@codesourcery.com>
14977
14978 * configure.ac (build_warnings): Append '-Wempty-body'.
14979 * configure: Regenerated.
14980 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14981 body.
14982
8bdce1ff
PM
149832012-11-15 Pierre Muller <muller@sourceware.org>
14984
14985 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14986 * config.in: Regenerate.
14987 * configure: Regenerate.
14988 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14989 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14990 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14991 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14992 header.
14993 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14994 instead of <sys/wait.h> header.
14995 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14996
02d403bf 149972012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
14998
14999 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15000 (various make rules): Remove -DGDBSERVER
15001
fbd5db48
YQ
150022012-11-09 Yao Qi <yao@codesourcery.com>
15003
15004 * spu-low.c (current_ptid): Move it to ..
15005 * gdbthread.h: ... here. New.
15006 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15007 * server.c (myresume, process_serial_event): Likewise.
15008 * thread-db.c (thread_db_find_new_threads): Likewise.
15009 * tracepoint.c (run_inferior_command): Likewise.
15010
b3dc46ff
AB
150112012-10-01 Andrew Burgess <aburgess@broadcom.com>
15012
15013 * server.c (handle_search_memory_1): Include access length in
15014 warning message.
15015
07c04788
HPN
150162012-09-05 Michael Brandt <michael.brandt@axis.com>
15017
15018 * linux-crisv32-low.c: Fix compile errors.
15019
918d227b
YQ
150202012-09-04 Yao Qi <yao@codesourcery.com>
15021
15022 * tracepoint.c (cmd_qtsv): Adjust debug message.
15023 Don't check CUR_TPOINT.
15024
18c1b81a
YQ
150252012-08-28 Yao Qi <yao@codesourcery.com>
15026
15027 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15028 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15029 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15030 Remove declarations of xmalloc, xreallloc, xstrdup and
15031 freeargv.
15032 * Makefile.in (libiberty_h): New.
15033 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15034 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15035
dc82f37b
YQ
150362012-08-23 Yao Qi <yao@codesourcery.com>
15037
15038 * server.h: Remove declaration of 'xsnprintf'.
15039
406b1477
KS
150402012-08-22 Keith Seitz <keiths@redhat.com>
15041
15042 * server.h: Include build-gnulib-gbserver/config.h.
15043 * gdbreplay.c: Likewise.
15044
e6712ff1
DE
150452012-08-08 Doug Evans <dje@google.com>
15046
15047 * Makefile.in (SFILES): Add gdb_vecs.c.
15048 (OBS): Add gdb_vecs.o.
15049 (gdb_vecs_h, host_defs_h): New variables.
15050 (thread-db.o): Add $(gdb_vecs_h) dependency.
15051 (gdb_vecs.o): New rule.
15052 * thread-db.c: #include "gdb_vecs.h".
15053 (thread_db_load_search): Use a vector to iterate over path elements.
15054 Handle text appearing after "$pdir".
15055
15056 * configure.ac: Add check for strstr.
15057 * config.in: Regenerate.
15058 * configure: Regenerate.
15059
7c3270ae
UW
150602012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15061
15062 * hostio.c (handle_pread): If pread fails, fall back to attempting
15063 lseek/read.
15064 (handle_pwrite): Likewise for pwrite.
15065
b62e2b27
UW
150662012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15067
15068 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15069 between unsupported TYPE and unimplementable ADDR/LEN combination.
15070 (arm_insert_point): Act on new return value.
15071
78a99e91
PA
150722012-07-31 Pedro Alves <palves@redhat.com>
15073
15074 * server.c (process_point_options): Only skip tokens if we find
15075 one that is unrecognized. Don't treat 'X' specially while
15076 skipping unrecognized tokens.
15077
fcf303ab
UW
150782012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15079
15080 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15081 to 4-byte-align HW breakpoint addresses for Thumb.
15082
7255706c
YQ
150832012-07-27 Yao Qi <yao@codesourcery.com>
15084
15085 PR remote/14161.
15086
15087 * server.h: Declare gdb_agent_about_to_close.
15088 * target.c (kill_inferior): Include "agent.h".
15089 New. Send command 'kill'.
15090 * target.h (kill_inferior): Removed macro.
15091 * tracepoint.c (gdb_agent_about_to_close): New.
15092 (gdb_agent_helper_thread): Handle command 'close'.
15093 Wait endlessly until the inferior stops.
15094 Install gdb_agent_remove_socket to atexit hook.
15095 (agent_socket_name): New static variable.
15096 (gdb_agent_socket_init): Replace local variable 'name' with
15097 'agent_socket_name'.
15098 (gdb_agent_remove_socket): New.
15099
5a3f286f
YQ
151002012-07-27 Yao Qi <yao@codesourcery.com>
15101
15102 * server.c (process_point_options): Stop at 'X' when parsing.
15103
961bd387
ME
151042012-07-19 Michael Eager <eager@eagercon.com>
15105
a261b8f5 15106 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15107 to hw_execute.
15108 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15109 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15110 hardware breakpoint.
15111
aa7c7447
JK
151122012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15113
15114 * gdbserver/linux-low.c (initialize_low): Call
15115 linux_ptrace_init_warnings.
15116
7f216e7c
DE
151172012-07-02 Doug Evans <dje@google.com>
15118
15119 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15120 pointer to int.
15121
d3ce09f5
SS
151222012-07-02 Stan Shebs <stan@codesourcery.com>
15123
15124 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15125 (ax.o): Add it to build rule.
15126 (ax-ipa.o): Ditto.
15127 (OBS): Add format.o.
15128 (IPA_OBS): Add format.o.
15129 * server.c (handle_query): Claim support for breakpoint commands.
15130 (process_point_options): Add command case.
15131 (process_serial_event): Leave running if there are printfs in
15132 effect.
15133 * mem-break.h (any_persistent_commands): Declare.
15134 (add_breakpoint_commands): Declare.
15135 (gdb_no_commands_at_breakpoint): Declare.
15136 (run_breakpoint_commands): Declare.
15137 * mem-break.c (struct point_command_list): New struct.
15138 (struct breakpoint): New field command_list.
15139 (any_persistent_commands): New function.
15140 (add_commands_to_breakpoint): New function.
15141 (add_breakpoint_commands): New function.
15142 (gdb_no_commands_at_breakpoint): New function.
15143 (run_breakpoint_commands): New function.
15144 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15145 locally.
15146 * ax.c: Include format.h.
15147 (ax_printf): New function.
15148 (gdb_eval_agent_expr): Add printf opcode.
15149
2f8f6aed
YQ
151502012-06-13 Yao Qi <yao@codesourcery.com>
15151
15152 * server.c (start_inferior): Remove duplicated writes to fields
15153 'last_resume_kind' and 'last_status' of 'current_inferior'.
15154
0c9070b3
YQ
151552012-06-12 Yao Qi <yao@codesourcery.com>
15156 Pedro Alves <palves@redhat.com>
15157
15158 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15159 comment.
15160 * server.c (handle_v_cont): Extend comment.
15161
c52daf70
YQ
151622012-06-11 Yao Qi <yao@codesourcery.com>
15163
15164 * linux-low.c (linux_attach): Add 'static'.
15165
d38bbb0a
YQ
151662012-06-06 Yao Qi <yao@codesourcery.com>
15167
15168 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15169
89dc0afd
JK
151702012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15171
15172 Fix gcc -flto compilation warning.
15173 * server.c (main): Make variable multi_mode and attach volatile.
15174
75f62ce7
TJB
151752012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15176
15177 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15178 if the platform doesn't know about it.
15179
65f479b6
PA
151802012-05-30 Jeff Kenton <jkenton@tilera.com>
15181
15182 * Makefile.in (SFILES): Add linux-tile-low.c.
15183 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15184 * configure.srv: Handle tilegx-*-linux*.
15185 * linux-tile-low.c: New file.
15186
0c5bf5a9
JK
151872012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15188
15189 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15190
a493e3e2
PA
151912012-05-24 Pedro Alves <palves@redhat.com>
15192
15193 PR gdb/7205
15194
43aaf8b6 15195 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15196
2ea28649
PA
151972012-05-24 Pedro Alves <palves@redhat.com>
15198
15199 PR gdb/7205
15200
15201 Replace target_signal with gdb_signal throughout.
15202
8d409d16
MR
152032012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15204
15205 * linux-low.c (linux_store_registers): Avoid the copying sequence
15206 when no data has been retrieved by ptrace.
15207
23512c01
MGD
152082012-05-22 Will Deacon <will.deacon@arm.com>
15209
15210 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15211 Include asm/ptrace.h.
15212 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15213 already defined.
15214
4934b29e
MR
152152012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15216
15217 * linux-low.c (linux_store_registers): Don't re-retrieve data
15218 with ptrace that has already been obtained from /proc. Always
15219 copy any data retrieved with ptrace to the buffer supplied.
15220
bde24c0a
PA
152212012-05-11 Yao Qi <yao@codesourcery.com>
15222 Pedro Alves <palves@redhat.com>
15223
15224 * linux-low.c (enum stopping_threads_kind): New.
15225 (stopping_threads): Change type to `enum stopping_threads_kind'.
15226 (handle_extended_wait): If stopping and suspending threads, leave
15227 the new_lwp suspended too.
15228 (linux_wait_for_event): Adjust.
15229 (stop_all_lwps): Set `stopping_threads' to
15230 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15231 whether we're suspending threads or just stopping them. Assert no
15232 recursion happens.
15233
623b6bdf
YQ
152342012-04-29 Yao Qi <yao@codesourcery.com>
15235
15236 * server.h: Move some code to ...
15237 * gdbthread.h: ... here. New.
15238 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15239 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15240 (nto-low.o, win32-low.o): Likewise.
15241 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15242 * regcache.c, remote-utils.c, server.c: Likewise.
15243 * target.c, tracepoint.c, win32-low.c: Likewise.
15244
f15f9948
TJB
152452012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15246
15247 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15248 (PTRACE_ARG4_TYPE): Likewise.
15249 (PTRACE_XFER_TYPE): Likewise.
15250 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15251 ptrace to PTRACE_ARG3_TYPE.
15252 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15253 (PTRACE_ARG4_TYPE): Likewise.
15254 (PTRACE_XFER_TYPE): Likewise.
15255 (linux_detach_one_lwp): Cast fourth argument of
15256 ptrace to long then PTRACE_ARG4_TYPE.
15257 (regsets_fetch_inferior_registers): Cast third argument of
15258 ptrace to long then PTRACE_ARG3_TYPE.
15259 (regsets_store_inferior_registers): Likewise.
15260
38ea300a
PA
152612012-04-20 Pedro Alves <palves@redhat.com>
15262
15263 * configure: Regenerate.
15264
c971b7fa
PA
152652012-04-19 Pedro Alves <palves@redhat.com>
15266
43aaf8b6 15267 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15268 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15269 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15270 (all, install-only, uninstall, clean-info, all-lib, clean): No
15271 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15272 (maintainer-clean realclean distclean): Use subdir_do.
15273 (subdir_do): New.
15274 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15275 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15276 * acinclude.m4: Include acx_configure_dir.m4.
15277 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15278 calls. Call AC_PROG_RANLIB. Configure gnulib using
15279 ACX_CONFIGURE_DIR.
15280 (GNULIB): New.
15281 (GNULIB_STDINT_H): Adjust.
15282 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15283 * gdbreplay.c: Include build-gnulib/config.h.
15284 * server.h: Likewise.
15285 * aclocal.m4: Regenerate.
15286 * config.in: Regenerate.
15287 * configure: Regenerate.
c971b7fa 15288
809277f8
PA
152892012-04-19 Pedro Alves <palves@redhat.com>
15290
15291 * Makefile.in (LIBGNU, INCGNU): Adjust.
15292 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15293 (all, install-only, uninstall, clean-info, all-lib, clean)
15294 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15295 * configure.ac: Adjust AC_OUTPUT output.
15296 * aclocal.m4: Regenerate.
15297 * configure: Regenerate.
15298
fd9bb8b8
PA
152992012-04-19 Pedro Alves <palves@redhat.com>
15300
15301 * Makefile.in (generated_files): New.
15302 (server_h): Remove the explicit dependency on config.h, and depend
15303 on $generated_files.
15304
1c298c66
PA
153052012-04-19 Pedro Alves <palves@redhat.com>
15306
15307 * Makefile.in (INCGNU): Add -Ignulib.
15308
57c4b50b
PA
153092012-04-19 Pedro Alves <palves@redhat.com>
15310
15311 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15312 (INCGNU): ... this, and spell out -I here.
15313 (GNULIB_LIB): Rename to ...
15314 (LIBGNU): ... this.
15315 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15316
1030e047
PA
153172012-04-19 Pedro Alves <palves@redhat.com>
15318
15319 * config.in: Regenerate.
15320
447d4319
PA
153212012-04-19 Pedro Alves <palves@redhat.com>
15322
15323 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15324 * server.h (memmem): Remove declaration.
15325 * config.in: Regenerate.
15326 * configure: Regenerate.
15327
aad9eab9
YQ
153282012-04-19 Yao Qi <yao@codesourcery.com>
15329
15330 * Makefile.in (SFILES): Add common/vec.c.
15331 (OBS): Add vec.o.
15332 (vec.o): New rule.
15333
3e10640f
YQ
153342012-04-19 Yao Qi <yao@codesourcery.com>
15335
15336 * remote-utils.c (prepare_resume_reply): Replace with macro
15337 target_core_of_thread.
15338 * server.c (handle_qxfer_threads_proper): Likewise.
15339 * target.h (traget_core_of_thread): New macro.
15340
71622373
PA
153412012-04-18 Pedro Alves <palves@redhat.com>
15342
15343 * aclocal.m4: Regenerate.
15344 * configure: Regenerate.
15345
80d26939
YQ
153462012-04-16 Yao Qi <yao@codesourcery.com>
15347
15348 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15349 duplicated on address.
15350
42476b70
YQ
153512012-04-16 Yao Qi <yao@codesourcery.com>
15352
15353 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15354 (struct tracepoint_action_ops) <send>: New field.
15355 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15356 (agent_expr_send, x_tracepoint_action_send): New.
15357 (l_tracepoint_action_send): New.
15358 (cmd_qtdp): Download and install tracepoint
15359 according to `use_agent'.
15360 (run_inferior_command): Add one more parameter `len'.
15361 Update callers.
15362 (tracepoint_send_agent): New.
15363 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15364
7bc83639
YQ
153652012-04-16 Yao Qi <yao@codesourcery.com>
15366
15367 * tracepoint.c (download_tracepoints): Moved to ...
15368 (cmd_qtstart): ... here.
15369
5f18041e
YQ
153702012-04-14 Yao Qi <yao@codesourcery.com>
15371
15372 * tracepoint.c: Include inttypes.h.
15373 (struct collect_memory_action): Use sized types.
15374 (struct tracepoint): Likewise.
15375 (cmd_qtdp, stop_tracing): Update print specifiers.
15376 (cmd_qtp, response_tracepoint): Likewise.
15377 (collect_data_at_tracepoint): Likewise.
15378 (collect_data_at_step): Likewise.
15379
55a8c076
YQ
153802012-04-14 Yao Qi <yao@codesourcery.com>
15381
15382 Import gnulib module inttypes.
15383 * aclocal.m4, config.in, configure: Regenerated.
15384
dc750257
YQ
153852012-04-14 Yao Qi <yao@codesourcery.com>
15386
15387 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15388 Makefile and config.status at last.
15389
0ab5faf9
YQ
153902012-04-13 Yao Qi <yao@codesourcery.com>
15391
15392 * tracepoint.c: Include stdint.h unconditionally.
15393
18f5fd81
TJB
153942012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15395
15396 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15397 on BFD_HAVE_SYS_PROCFS_TYPE.
15398 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15399 * configure: Regenerate.
15400 * config.in: Likewise.
15401
4d47af5c
L
154022012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15403
15404 * Makefile.in (clean): Also remove x32.c x32-linux.c
15405 x32-avx.c x32-avx-linux.c.
15406 (x32.o): New target.
15407 (x32.c): Likewise.
15408 (x32-linux.o): Likewise.
15409 (x32-linux.c): Likewise.
15410 (x32-avx.o): Likewise.
15411 (x32-avx.c): Likewise.
15412 (x32-avx-linux.o): Likewise.
15413 (x32-avx-linux.c): Likewise.
15414
15415 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15416 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15417 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15418 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15419 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15420 i386/x32-avx-linux.xml.
15421
15422 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15423 (init_registers_x32_avx_linux): Likwise.
15424 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15425 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15426
ecedbe58
PA
154272012-04-13 Pedro Alves <palves@redhat.com>
15428
15429 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15430 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15431 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15432 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15433 the sub-make.
15434
c92b5177
L
154352012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15436
15437 * linux-x86-low.c (compat_x32_clock_t): New.
15438 (compat_x32_siginfo_t): Likewise.
15439 (compat_x32_siginfo_from_siginfo): Likewise.
15440 (siginfo_from_compat_x32_siginfo): Likewise.
15441 (linux_is_elf64): Likewise.
15442 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15443 and siginfo_from_compat_x32_siginfo for x32.
15444 (x86_arch_setup): Set linux_is_elf64.
15445
214d508e
L
154462012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15447
15448 PR gdb/13969
15449 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15450 e_machine field.
15451 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15452 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15453 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15454 compatible with process.
15455
c9a1864a
YQ
154562012-04-12 Yao Qi <yao@codesourcery.com>
15457
15458 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15459 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15460 (install-only, install-info, clean): Handle sub dir gnulib.
15461 (all-lib, am--refresh): New targets.
15462 (memmem.o): Remove target.
15463 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15464 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15465 (AC_REPLACE_FUNCS): Remove memmem.
15466 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15467 (AC_OUTPUT): Generate Makefile in gnulib/.
15468 * aclocal.m4, config.in, configure: Regenerated.
15469
367ba2c2
MR
154702012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15471
15472 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15473
9d236627
PA
154742012-04-05 Pedro Alves <palves@redhat.com>
15475
15476 -Werror=strict-aliasing
15477
15478 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15479 pointer.
15480
111217b3
PA
154812012-04-04 Pedro Alves <palves@redhat.com>
15482
15483 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15484 (sparc_store_gregset_from_stack, sparc_store_gregset)
15485 (sparc_breakpoint_at): Fix formatting.
15486
8365dcf5
TJB
154872012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15488
15489 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15490 are available.
15491 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15492 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15493 * config.in: Regenerate.
15494 * configure: Likewise.
15495
689cc2ae
PA
154962012-03-29 Pedro Alves <palves@redhat.com>
15497
15498 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15499 Correct ptrace arguments.
15500
c14dfd32
PA
155012012-03-28 Pedro Alves <palves@redhat.com>
15502
15503 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15504 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15505 (IA64_FR1_REGNUM): New defines.
15506 (ia64_fetch_register): New.
15507 (the_low_target): Install it.
15508 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15509 field.
15510 * linux-low.c (linux_fetch_registers): Try the
15511 the_low_target.fetch_register hook first.
15512
15513 * linux-arm-low.c (the_low_target): Adjust.
15514 * linux-bfin-low.c (the_low_target): Adjust.
15515 * linux-cris-low.c (the_low_target): Adjust.
15516 * linux-crisv32-low.c (the_low_target): Adjust.
15517 * linux-m32r-low.c (the_low_target): Adjust.
15518 * linux-m68k-low.c (the_low_target): Adjust.
15519 * linux-mips-low.c (the_low_target): Adjust.
15520 * linux-ppc-low.c (the_low_target): Adjust.
15521 * linux-s390-low.c (the_low_target): Adjust.
15522 * linux-sh-low.c (the_low_target): Adjust.
15523 * linux-sparc-low.c (the_low_target): Adjust.
15524 * linux-tic6x-low.c (the_low_target): Adjust.
15525 * linux-x86-low.c (the_low_target): Adjust.
15526 * linux-xtensa-low.c (the_low_target): Adjust.
15527
63c88e13
PA
155282012-03-26 Pedro Alves <palves@redhat.com>
15529
15530 * server.c (handle_qxfer_libraries): Don't bail early if
15531 the_target->qxfer_libraries_svr4 is not NULL.
15532
fb723180
PA
155332012-03-26 Pedro Alves <palves@redhat.com>
15534
15535 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15536
0afae3cf
PA
155372012-03-23 Pedro Alves <palves@redhat.com>
15538
15539 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15540 "library-list-svr4" element's start tag when the the DSO list is
15541 empty.
15542
485f1ee4
PA
155432012-03-23 Pedro Alves <palves@redhat.com>
15544
15545 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15546 a variable whose type size is the same as the inferior's pointer
15547 size.
15548
a5362b9a
TS
155492012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15550
15551 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15552 struct siginfo.
15553 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15554 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15555 * linux-low.h: Include <signal.h>.
15556 (struct siginfo): Remove forward declaration.
15557 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15558 struct siginfo.
15559
d226c142
MF
155602012-03-21 Mike Frysinger <vapier@gentoo.org>
15561
15562 * .gitignore: Ignore more files.
15563
122f36ef
PA
155642012-03-19 Pedro Alves <palves@redhat.com>
15565 Jan Kratochvil <jan.kratochvil@redhat.com>
15566
15567 * server.c (cont_thread, general_thread): Add describing comments.
15568 (start_inferior): Clear `cont_thread'.
15569 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15570 of a process.
15571
fc3e5175
YQ
155722012-03-15 Yao Qi <yao@codesourcery.com>
15573
15574 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15575 handling to ...
15576 (cmd_qtdp): ... here.
15577
8d0d92cd
YQ
155782012-03-15 Yao Qi <yao@codesourcery.com>
15579
15580 * tracepoint.c (struct tracepoint_action_ops): New.
15581 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15582 (m_tracepoint_action_download): New.
15583 (r_tracepoint_action_download): New.
15584 (x_tracepoint_action_download): New.
15585 (l_tracepoint_action_download): New.
15586 (add_tracepoint_action): Install `action->ops' according type.
15587 (download_tracepoint_1): Move code `download' function pointer
15588 of various tracepoint_action_ops.
15589
87b0bb13
JK
155902012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15591
15592 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15593 linux_ptrace_attach_warnings.
15594
5f572dec
JK
155952012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15596
15597 * Makefile.in (linux-ptrace.o): New.
15598 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15599 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15600 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15601 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15602 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15603 of these targets.
15604 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15605
f4647387
YQ
156062012-03-08 Yao Qi <yao@codesourcery.com>
15607 Pedro Alves <palves@redhat.com>
15608
15609 Fix PR server/13392.
15610 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15611 offset of JMP insn.
15612 * tracepoint.c (remove_tracepoint): New.
15613 (cmd_qtdp): Call remove_tracepoint when failed to install.
15614
9b224c5e
PA
156152012-03-07 Pedro Alves <palves@redhat.com>
15616
15617 * linux-low.c (get_detach_signal): New.
15618 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15619 Pass on pending signals to PTRACE_DETACH. Check the result of the
15620 ptrace call.
15621 * server.c (program_signals, program_signals_p): New.
15622 (handle_general_set): Handle QProgramSignals.
15623 * server.h (program_signals, program_signals_p): Declare.
15624
e237a7e2
JK
156252012-03-05 Pedro Alves <palves@redhat.com>
15626 Jan Kratochvil <jan.kratochvil@redhat.com>
15627
15628 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15629 New comment why.
15630
5808517f
YQ
156312012-03-03 Yao Qi <yao@codesourcery.com>
15632
15633 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15634 agent_look_up_symbols.
15635
58b4daa5
YQ
156362012-03-03 Yao Qi <yao@codesourcery.com>
15637
15638 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15639 (linux-x86-low.o): Likewise.
15640 * server.h: Remove in_process_agent_loaded.
15641 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15642 common/agent.c.
15643 Update callers.
15644
8ffcbaaf
YQ
156452012-03-03 Yao Qi <yao@codesourcery.com>
15646
15647 * tracepoint.c (gdb_agent_capability): New global.
15648 (in_process_agent_loaded_ust): Renamed to
15649 `in_process_agent_supports_ust'.
15650 Update callers.
15651 (in_process_agent_supports_ust): Call agent_capability_check.
15652 (clear_installed_tracepoints): Assert that agent supports
15653 agent.
15654
d1feda86
YQ
156552012-03-03 Yao Qi <yao@codesourcery.com>
15656
15657 * linux-low.c (linux_supports_agent): New.
15658 (linux_target_ops): Initialize field `supports_agent' with
15659 linux_supports_agent.
15660 * target.h (struct target_ops) <supports_agent>: New.
15661 (target_supports_agent): New macro.
15662 * server.c (handle_general_set): Handle packet 'QAgent'.
15663 (handle_query): Send `QAgent+'.
15664 * Makefile.in (server.o): Depends on agent.h.
15665
2fa291ac
YQ
156662012-03-03 Yao Qi <yao@codesourcery.com>
15667
15668 * Makefile.in (OBS): Add agent.o.
15669 Add new rule for agent.o.
15670 Track dependence of tracepoint.c on agent.h.
15671 * tracepoint.c (run_inferior_command_1):
15672 (run_inferior_command): Call agent_run_command.
15673 (gdb_ust_connect_sync_socket): Deleted. Move it to
15674 common/agent.c.
15675 (resume_thread, stop_thread): Likewise.
15676 (gdb_ust_socket_init): Renamed to ...
15677 (gdb_agent_socket_init): ... New.
15678 (gdb_ust_thread): Renamed to ...
15679 (gdb_agent_helper_thread): ... New.
15680 (gdb_ust_init): Move some code to ...
15681 (gdb_agent_init): ... here. New.
15682 [HAVE_UST]: Call gdb_ust_init.
15683 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15684 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15685 * config.in, configure: Regenerated.
15686
05044653
PA
156872012-03-02 Pedro Alves <palves@redhat.com>
15688
15689 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15690 * linux-low.c (struct simple_pid_list): New.
15691 (stopped_pids): New a struct simple_pid_list pointer.
15692 (add_to_pid_list, pull_pid_from_list): New.
15693 (handle_extended_wait): Don't assume the first signal new children
15694 report is SIGSTOP. Adjust call to pull_pid_from_list.
15695 (linux_wait_for_lwp): Adjust.
15696
8d00225b
YQ
156972012-03-02 Yao Qi <yao@codesourcery.com>
15698
15699 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15700 debug log.
15701
19560ba5
YQ
157022012-03-02 Yao Qi <yao@codesourcery.com>
15703
15704 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15705 `stop_pc' and `tpoint'. Update caller.
15706
1faeff08
MR
157072012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15708
15709 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15710 * linux-low.c (use_linux_regsets): New macro.
15711 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15712 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15713 (linux_register_in_regsets): New function.
15714 (usr_fetch_inferior_registers): Skip registers covered by
15715 regsets.
15716 (usr_store_inferior_registers): Likewise.
15717 (usr_fetch_inferior_registers): New macro.
15718 (usr_store_inferior_registers): Likewise.
15719 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15720 (linux_store_registers): Likewise.
15721 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15722 prototype.
15723 (init_registers_mips64_dsp_linux): Likewise.
15724 (init_registers_mips_linux): New macro.
15725 (init_registers_mips_dsp_linux): Likewise.
15726 (mips_dsp_num_regs): Likewise.
15727 (DSP_BASE, DSP_CONTROL): New fallback macros.
15728 (mips_base_regs): New macro.
15729 (mips_regmap): Use it. Fix the size.
15730 (mips_dsp_regmap): New variable.
15731 (mips_dsp_regset_bitmap): Likewise.
15732 (mips_arch_setup): New function.
15733 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15734 than mips_regmap.
15735 (mips_cannot_store_register): Likewise.
15736 (the_low_target): Update .arch_setup, .num_regs and .regmap
15737 initializers. Add .regset_bitmap initializer.
15738 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15739 initializer.
15740 * linux-bfin-low.c (the_low_target): Likewise.
15741 * linux-cris-low.c (the_low_target): Likewise.
15742 * linux-crisv32-low.c (the_low_target): Likewise.
15743 * linux-ia64-low.c (the_low_target): Likewise.
15744 * linux-m32r-low.c (the_low_target): Likewise.
15745 * linux-m68k-low.c (the_low_target): Likewise.
15746 * linux-ppc-low.c (the_low_target): Likewise.
15747 * linux-s390-low.c (the_low_target): Likewise.
15748 * linux-sh-low.c (the_low_target): Likewise.
15749 * linux-sparc-low.c (the_low_target): Likewise.
15750 * linux-tic6x-low.c (the_low_target): Likewise.
15751 * linux-x86-low.c (the_low_target): Likewise.
15752 * linux-xtensa-low.c (the_low_target): Likewise.
15753 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15754 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15755 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15756 srv_xmlfiles.
15757 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15758 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15759
c03e6ccc
YQ
157602012-02-29 Yao Qi <yao@codesourcery.com>
15761 Pedro Alves <palves@redhat.com>
15762
15763 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15764 `step_over_finished' is true.
15765
644cebc9
PA
157662012-02-27 Pedro Alves <palves@redhat.com>
15767
15768 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15769 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15770
c14d7ab2
PA
157712012-02-27 Pedro Alves <palves@redhat.com>
15772
15773 PR server/9684
15774 * linux-low.c (pid_is_stopped): New.
15775 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15776
412c89dd
LM
157772012-02-25 Luis Machado <lgustavo@codesourcery.com>
15778
15779 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15780 of conditions.
15781
b745defe
MR
157822012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15783
15784 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15785
9f3a5c85
LM
157862012-02-24 Luis Machado <lgustavo@codesourcery>
15787
15788 * server.c (handle_query): Advertise support for target-side
15789 breakpoint condition evaluation.
15790 (process_point_options): New function.
15791 (process_serial_event): When inserting a breakpoint, check for
15792 a target-side condition that should be evaluated.
15793
15794 * mem-break.c: Include regcache.h and ax.h.
15795 (point_cond_list_t): New data structure.
15796 (breakpoint) <cond_list>: New field.
15797 (find_gdb_breakpoint_at): Make non-static.
15798 (delete_gdb_breakpoint_at): Clear any target-side
15799 conditions.
15800 (clear_gdb_breakpoint_conditions): New function.
15801 (add_condition_to_breakpoint): Likewise.
15802 (add_breakpoint_condition): Likewise.
15803 (gdb_condition_true_at_breakpoint): Likewise.
15804 (gdb_breakpoint_here): Return result directly instead
15805 of going through a local variable.
15806
15807 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15808 (clear_gdb_breakpoint_conditions): Likewise.
15809 (add_breakpoint_condition): Likewise.
15810 (gdb_condition_true_at_breakpoint): Likewise.
15811
15812 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15813 (need_step_over_p): Take target-side breakpoint condition into
15814 consideration.
15815
5e1dc496
LM
158162012-02-24 Luis Machado <lgustavo@codesourcery>
15817
15818 * server.h: Include tracepoint.h.
15819 (agent_mem_read, agent_get_trace_state_variable_value,
15820 agent_set_trace_state_variable_value,
15821 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15822 get_set_tsv_func_addr): New prototypes.
15823
15824 * ax.h: New include file.
15825 * ax.c: New source file.
15826
15827 * tracepoint.c: Include ax.h.
15828 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15829 agent_expr, eval_result_type): Move to ax.h.
15830 (parse_agent_expr): Rename to ...
15831 (gdb_parse_agent_expr): ... this, make it non-static and move
15832 to ax.h.
15833 (unparse_agent_expr) Rename to ...
15834 (gdb_unparse_agent_expr): ... this, make it non-static and move
15835 to ax.h.
15836 (eval_agent_expr): Rename to ...
15837 (eval_tracepoint_agent_expr): ... this.
15838 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15839 forward declarations.
15840 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15841 (agent_get_trace_state_variable_value): New function.
15842 (agent_set_trace_state_variable_value): New function.
15843 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15844 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15845 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15846 (condition_true_at_tracepoint): Likewise.
15847 (parse_agent_expr): Rename to ...
15848 (gdb_parse_agent_expr): ... this and move to ax.c.
15849 (unparse_agent_expr): Rename to ...
15850 (gdb_unparse_agent_expr): ... this and move to ax.c.
15851 (gdb_agent_op_name): Move to ax.c.
15852 (eval_agent_expr): Rename to ...
15853 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15854 and move to ax.c.
15855 (eval_tracepoint_agent_expr): New function.
15856 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 15857 non-static.
5e1dc496
LM
15858 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15859 ax.c.
15860 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15861 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15862 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15863 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15864 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15865 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15866 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15867 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15868 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15869 (compile_bytecodes): Remove forward declaration.
15870 (is_goto_target): Move to ax.c.
15871 (compile_bytecodes): Move to ax.c and call
15872 agent_get_trace_state_variable_value (...) and
15873 agent_set_trace_state_variable_value (...).
15874
15875 * Makefile.in: Update ax.c and IPA dependencies.
15876
277e4e52
PA
158772012-02-24 Pedro Alves <palves@redhat.com>
15878
15879 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15880 (cmd_bigqtbuffer_circular): ... this. Only handle
15881 'QTBuffer:circular:'.
15882 (handle_tracepoint_general_set): Adjust.
15883
bf4c19f7
YQ
158842012-02-16 Yao Qi <yao@codesourcery.com>
15885
15886 * inferiors.c: Move code to ...
15887 * dll.c: .... here. New.
15888 * server.h: Declare clear_dlls.
15889 * Makefile.in (SFILES): Add dll.c.
15890 (OBS): Add dll.o
15891 (dll.o): New rule.
15892
d73f2619
YQ
158932012-02-11 Yao Qi <yao@codesourcery.com>
15894
15895 * server.c: (handle_monitor_command): Add a new parameter
15896 `own_buf'.
15897 (handle_query): Update caller.
15898
f8255c2a
JB
158992012-02-09 Joel Brobecker <brobecker@adacore.com>
15900
15901 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15902 * configure, config.in: Regenerate.
15903 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15904 is not defined.
15905
da84f473
PA
159062012-02-02 Pedro Alves <palves@redhat.com>
15907
15908 Try SIGKILL first, then PTRACE_KILL.
15909 * linux-low.c (linux_kill_one_lwp): New.
15910 (linux_kill_one_lwp): Rename to ...
15911 (kill_one_lwp_callback): ... this. Use the new
15912 linux_kill_one_lwp.
15913
e886a173
PA
159142012-02-02 Pedro Alves <palves@redhat.com>
15915
15916 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15917 inferior.
15918
be07f1a2
PA
159192012-01-27 Pedro Alves <palves@redhat.com>
15920
15921 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15922 (elf_64_file_p): Make static.
15923 (linux_pid_exe_is_elf_64_file): New.
15924 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15925 Delete declarations.
15926 (linux_pid_exe_is_elf_64_file): Declare.
15927 * linux-x86-low.c (x86_arch_setup): Use
15928 linux_pid_exe_is_elf_64_file.
15929
d8301ad1
JK
159302012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15931
15932 * linux-low.c (linux_wait_for_event_1): Rename to ...
15933 (linux_wait_for_event): ... here and merge it with former
15934 linux_wait_for_event - new variable wait_ptid, use it.
15935 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15936
01b17894
PA
159372012-01-23 Pedro Alves <palves@redhat.com>
15938
15939 * server.c (main): Avoid yet another case of infinite loop while
15940 detaching/killing after a longjmp.
15941
e825046f
JK
159422012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15943
15944 Code cleanup.
15945 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15946
b9e7b9c3
UW
159472012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15948
15949 * hostio.c (handle_readlink): New function.
15950 (handle_vFile): Call it to handle "vFile:readlink" packets.
15951
901f9912
UW
159522012-01-20 Pedro Alves <palves@redhat.com>
15953 Ulrich Weigand <ulrich.weigand@linaro.org>
15954
15955 * server.c (handle_v_requests): Only support vAttach and vRun to
15956 start multiple processes when in extended protocol mode.
15957
fc1ab1a0
PA
159582012-01-17 Pedro Alves <palves@redhat.com>
15959
15960 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15961 memalign plus mprotect to allocate the scratch buffer.
15962
7d5d4e98
PA
159632012-01-13 Pedro Alves <palves@redhat.com>
15964
15965 * server.c (attach_inferior): Clear `cont_thread'.
15966
f128d5e9
PA
159672012-01-13 Pedro Alves <palves@redhat.com>
15968
15969 * server.c (main): Avoid infinite loop while detaching/killing
15970 after a longjmp.
15971
06db92f0
DE
159722012-01-09 Doug Evans <dje@google.com>
15973
15974 * server.c (start_inferior): Set last_ptid in --wrapper case.
15975
32d92999
YQ
159762012-01-06 Yao Qi <yao@codesourcery.com>
15977
15978 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15979 defined.
15980 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15981
5e0a92a9
YQ
159822012-01-04 Yao Qi <yao@codesourcery.com>
15983
15984 * tracepoint.c (cmd_qtdp): Print debug message
15985 for static tracepoint.
15986
ae639e8c
YQ
159872012-01-04 Yao Qi <yao@codesourcery.com>
15988
15989 * tracepoint.c (trace_vdebug): Differentiate debug message
15990 between gdbserver and IPA.
15991
f72429c5
YQ
159922012-01-03 Yao Qi <yao@codesourcery.com>
15993
15994 * tracepoint.c (tracepoint_was_hit): Don't collect for
15995 static tracepoint.
15996
12c3e59c
JB
159972012-01-02 Joel Brobecker <brobecker@adacore.com>
15998
15999 * terminal.h: Reformat copyright header.
16000
67827812
JB
160012012-01-02 Joel Brobecker <brobecker@adacore.com>
16002
16003 * server.c (gdbserver_version): Update copyright year.
16004 * gdbreplay.c (gdbreplay_version): Likewise.
16005
3e52c33d
JK
160062011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16007
16008 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16009
16010 Revert:
16011 2011-12-18 Hui Zhu <teawater@gmail.com>
16012 * linux-low.c (linux_create_inferior): Save return value to ret.
16013
66f1260e
HZ
160142011-12-18 Hui Zhu <teawater@gmail.com>
16015
16016 * linux-low.c (linux_create_inferior): Save return value to ret.
16017
e77616d7
DE
160182011-12-16 Doug Evans <dje@google.com>
16019
e7b06c57
DE
16020 * linux-low.c (linux_create_inferior): If stdio connection,
16021 redirect stdin from /dev/null, stdout to stderr.
16022 * remote-utils.c (remote_is_stdio): New static global.
16023 (remote_connection_is_stdio): New function.
16024 (remote_prepare): Handle stdio connection.
16025 (remote_open): Ditto.
16026 (remote_close): Don't close stdin for stdio connections.
16027 (read_prim,write_prim): New functions. Replace all calls to
16028 read/write to these.
16029 * server.c (main): Watch for "-" argument. Move call to
16030 remote_prepare before start_inferior.
16031 * server.h (STDIO_CONNECTION_NAME): New macro.
16032 (remote_connection_is_stdio): Declare.
16033
e77616d7
DE
16034 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16035 in debugging output.
16036
82067193
YQ
160372011-12-15 Yao Qi <yao@codesourcery.com>
16038
16039 * tracepoint.c: Include sys/syscall.h.
16040 (gdb_ust_thread): Remove preprocessor conditional.
16041
82bfbe7e
PA
160422011-12-14 Pedro Alves <pedro@codesourcery.com>
16043
16044 * linux-low.c (linux_detach_one_lwp): Call
16045 the_low_target.prepare_to_resume before detaching.
16046
712c6575
YQ
160472011-12-14 Yao Qi <yao@codesourcery.com>
16048
16049 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16050 of write.
16051
d54d1edf
YQ
160522011-12-14 Yao Qi <yao@codesourcery.com>
16053
16054 * i386-low.c (i386_low_stopped_data_address): Initialize local
16055 variable `control'.
16056
6210a125
PA
160572011-12-13 Pedro Alves <pedro@codesourcery.com>
16058
16059 PR remote/13492
16060
16061 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16062 DR_CONTROL unless necessary. Extend comments.
16063 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16064 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16065
2ece8244
YQ
160662011-12-13 Yao Qi <yao@codesourcery.com>
16067
16068 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16069 macros.
16070 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16071
784867a5
JK
160722011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16073
16074 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16075 Print new debug message for such case.
16076
6bf36717
JK
160772011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16078
16079 Fix overlapping memcpy.
16080 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16081 the read_inferior_memory transfer.
16082 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16083 write_inferior_memory transfer.
16084 (set_fast_tracepoint_jump): New variable buf. Use it for the
16085 read_inferior_memory and write_inferior_memory transfers.
16086 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16087 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16088 Use it for the write_inferior_memory transfer.
16089 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16090 buffers.
16091
50275556
MR
160922011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16093
16094 * linux-low.c (fetch_register, store_register): Make code
16095 consistent, fix formatting.
16096
7325beb4
MR
160972011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16098
16099 * linux-low.c (usr_store_inferior_registers): Factor out code
16100 to handle individual registers into...
16101 (store_register): ... this new function.
16102
c642a434
UW
161032011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16104
16105 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16106 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16107 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16108 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16109 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16110 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16111 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16112 (srv_xmlfiles): Add new XML files.
16113
16114 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16115 and <sys/uio.h>.
16116 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16117 (init_registers_s390_linux32v1): Add prototype.
16118 (init_registers_s390_linux32v2): Likewise.
16119 (init_registers_s390_linux64v1): Likewise.
16120 (init_registers_s390_linux64v2): Likewise.
16121 (init_registers_s390x_linux64v1): Likewise.
16122 (init_registers_s390x_linux64v2): Likewise.
16123 (s390_num_regs): Increment to 52.
16124 (s390_regmap): Add orig_r2 register.
16125 (s390_num_regs_3264): Increment to 68.
16126 (s390_regmap_3264): Add orig_r2 register.
16127 (s390_collect_ptrace_register): Handle orig_r2 register.
16128 (s390_supply_ptrace_register): Likewise.
16129 (s390_fill_last_break): New function.
16130 (s390_store_last_break): Likewise.
16131 (s390_fill_system_call): New function.
16132 (s390_store_system_call): Likewise.
16133 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16134 register sets.
16135 (s390_check_regset): New function.
16136 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16137 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16138 Update target_regsets for available register sets.
16139
2268b414
JK
161402011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16141 Jan Kratochvil <jan.kratochvil@redhat.com>
16142
16143 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16144 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16145 New.
16146 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16147 * linux-low.h (struct process_info_private): New member r_debug.
16148 * server.c (handle_qxfer_libraries): Call
16149 the_target->qxfer_libraries_svr4.
16150 (handle_qxfer_libraries_svr4): New function.
16151 (qxfer_packets): New entry "libraries-svr4".
16152 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16153 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16154 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16155 PACKET_qXfer_libraries_svr4.
16156
d6db1fab
UW
161572011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16158
16159 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16160 PSW address/mask between 8-byte and 16-byte formats.
16161 (s390_supply_ptrace_register): Likewise.
16162 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16163 basic addressing mode bit.
16164
242f5f1c
SS
161652011-11-24 Stan Shebs <stan@codesourcery.com>
16166
16167 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16168
f196051f
SS
161692011-11-17 Stan Shebs <stan@codesourcery.com>
16170
16171 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16172 (tracing_start_time): New global.
16173 (tracing_stop_time): New global.
16174 (tracing_user_name): New global.
16175 (tracing_notes): New global.
16176 (tracing_stop_note): New global.
16177 (cmd_qtstart): Set traceframe_usage, start_time.
16178 (stop_tracing): Set stop_time.
16179 (cmd_qtstatus): Report additional status.
16180 (cmd_qtp): New function.
16181 (handle_tracepoint_query): Call it.
16182 (cmd_qtnotes): New function.
16183 (handle_tracepoint_general_set): Call it.
16184 (get_timestamp): Rename from tsv_get_timestamp.
16185
405f8e94
SS
161862011-11-14 Stan Shebs <stan@codesourcery.com>
16187 Kwok Cheung Yeung <kcy@codesourcery.com>
16188
16189 * linux-x86-low.c (small_jump_insn): New.
16190 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16191 trampoline and error message, build a trampoline and issue a small
16192 jump instruction to it.
16193 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16194 trampoline and error message.
16195 (x86_get_min_fast_tracepoint_insn_len): New.
16196 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16197 * linux-low.h (struct linux_target_ops): Add arguments to
16198 install_fast_tracepoint_jump_pad operation, add new operation.
16199 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16200 arguments.
16201 (linux_get_min_fast_tracepoint_insn_len): New function.
16202 (linux_target_op): Add new operation.
16203 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16204 (gdb_trampoline_buffer_end): Ditto.
16205 (gdb_trampoline_buffer_error): Ditto.
16206 (struct ipa_sym_addresses): Add fields for new IPA variables.
16207 (symbol_list): Add entries for new IPA variables.
16208 (struct tracepoint): Add fields to hold the address range of the
16209 trampoline used by the tracepoint.
16210 (trampoline_buffer_head): New static variable.
16211 (trampoline_buffer_tail): Ditto.
16212 (claim_trampoline_space): New function.
16213 (have_fast_tracepoint_trampoline_buffer): New function.
16214 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16215 structure.
16216 (install_fast_tracepoint): Ditto, also add error buffer argument.
16217 (cmd_qtminftpilen): New function.
16218 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16219 (fast_tracepoint_from_trampoline_address): New function.
16220 (fast_tracepoint_collecting): Handle trampoline as part of jump
16221 pad space.
16222 (set_trampoline_buffer_space): New function.
16223 (initialize_tracepoint): Initialize new IPA variables.
16224 * target.h (struct target_ops): Add arguments to
16225 install_fast_tracepoint_jump_pad operation, add new
16226 get_min_fast_tracepoint_insn_len operation.
16227 (target_get_min_fast_tracepoint_insn_len): New.
16228 (install_fast_tracepoint_jump_pad): Add arguments.
16229 * server.h (IPA_BUFSIZ): Define.
16230 * linux-i386-ipa.c: Include extra header files.
16231 (initialize_fast_tracepoint_trampoline_buffer): New function.
16232 (initialize_low_tracepoint): Call it.
16233 * server.h (set_trampoline_buffer_space): Declare.
16234 (claim_trampoline_space): Ditto.
16235 (have_fast_tracepoint_trampoline_buffer): Ditto.
16236
1e4d1764
YQ
162372011-11-14 Yao Qi <yao@codesourcery.com>
16238
16239 * server.c (handle_query): Handle InstallInTrace for qSupported.
16240 * tracepoint.c (add_tracepoint): Sort list.
16241 (install_tracepoint, download_tracepoint): New.
16242 (cmd_qtdp): Call them to install and download tracepoints.
16243 (sort_tracepoints): Removed.
16244 (cmd_qtstart): Update.
16245
5c73ff4e
YQ
162462011-11-14 Yao Qi <yao@codesourcery.com>
16247
16248 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16249 * mem-break.h: Declare.
16250 * tracepoint.c (cmd_qtstart): Move some code to ...
16251 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16252 New.
16253 (download_tracepoints): Move some code to ...
16254 (download_tracepoint_1): ... here. New.
16255
86a30030
YQ
162562011-11-08 Yao Qi <yao@codesourcery.com>
16257
16258 * remote-utils.c (relocate_instruction): A comment fix.
16259
8d26e50c
JB
162602011-11-07 Joel Brobecker <brobecker@adacore.com>
16261
16262 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16263 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16264 dr_status_mirror and dr_control_mirror from debug_reg_state.
16265 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16266 (i386_initial_stuff): Remove use of deleted globals.
16267 (i386_get_thread_context, i386_set_thread_context,
16268 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16269 from debug_reg_state.
16270
a59306a3
YQ
162712011-11-05 Yao Qi <yao@codesourcery.com>
16272
16273 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16274 address as TPOINT's.
16275
3065dfb6
SS
162762011-11-02 Stan Shebs <stan@codesourcery.com>
16277
16278 * tracepoint.c (agent_mem_read_string): New function.
16279 (eval_agent_expr): Call it for tracenz.
16280 * server.c (handle_query): Report support for tracenz.
16281
fd0d8c7c
YQ
162822011-11-02 Yao Qi <yao@codesourcery.com>
16283
16284 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16285
609086b1
YQ
162862011-11-02 Yao Qi <yao@codesourcery.com>
16287
16288 * target.h: Fix a typo in comment.
16289
b9fd1791
PA
162902011-10-31 Pedro Alves <pedro@codesourcery.com>
16291
16292 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16293 clobber the breakpoints' shadows with fast tracepoint jumps.
16294 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16295 * target.c (write_inferior_memory): Also pass MYADDR down to
16296 check_mem_write.
16297
03583c20
UW
162982011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16299
16300 * configure.ac: Check support for personality routine.
16301 * configure: Regenerate.
16302 * config.in: Likewise.
16303 * linux-low.c: Include <sys/personality.h>.
16304 Define ADDR_NO_RANDOMIZE if necessary.
16305 (linux_create_inferior): Disable address space randomization when
16306 forking inferior, if requested.
16307 (linux_supports_disable_randomization): New function.
16308 (linux_target_ops): Install it.
16309 * server.h (disable_randomization): Declare.
16310 * server.c (disable_randomization): New global variable.
16311 (handle_general_set): Handle QDisableRandomization.
16312 (handle_query): Likewise for qSupported.
16313 (main): Support --disable-randomization and --no-disable-randomization
16314 command line arguments.
16315 * target.h (struct target_ops): Add supports_disable_randomization.
16316 (target_supports_disable_randomization): New macro.
16317
723b724b
MF
163182011-09-29 Mike Frysinger <vapier@gentoo.org>
16319
16320 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16321 ifdef check.
16322 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16323 [!PT_GETDSBT] (target_loadmap): New definition.
16324 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16325 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16326 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16327 and PT_GETDSBT to LINUX_LOADMAP.
16328 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16329 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16330
55329a5c 163312011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16332
16333 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16334 (arm_linux_hwbp_cap): New static variable.
16335 (arm_linux_get_hwbp_cap): Replace by ...
16336 (arm_linux_init_hwbp_cap): ... this new function.
16337 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16338 (arm_linux_get_hw_watchpoint_count): Likewise.
16339 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16340 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16341 (arm_prepare_to_resume): Use perror_with_name instead of error.
16342
55329a5c 163432011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16344
16345 * linux-arm-low.c: Include <signal.h>.
16346 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16347 (struct arm_linux_hwbp_cap): New data type.
16348 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16349 (struct arm_linux_hw_breakpoint): New data type.
16350 (MAX_BPTS, MAX_WPTS): Define.
16351 (struct arch_process_info, struct arch_lwp_info): New data types.
16352 (arm_linux_get_hwbp_cap): New function.
16353 (arm_linux_get_hw_breakpoint_count): Likewise.
16354 (arm_linux_get_hw_watchpoint_count): Likewise.
16355 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16356 (arm_hwbp_control_initialize): Likewise.
16357 (arm_hwbp_control_is_enabled): Likewise.
16358 (arm_hwbp_control_is_initialized): Likewise.
16359 (arm_hwbp_control_disable): Likewise.
16360 (arm_linux_hw_breakpoint_equal): Likewise.
16361 (arm_linux_hw_point_initialize): Likewise.
16362 (struct update_registers_data): New data structure.
16363 (update_registers_callback: New function.
16364 (arm_insert_point): Likewise.
16365 (arm_remove_point): Likewise.
16366 (arm_stopped_by_watchpoint): Likewise.
16367 (arm_stopped_data_address): Likewise.
16368 (arm_new_process): Likewise.
16369 (arm_new_thread): Likewise.
16370 (arm_prepare_to_resume): Likewise.
16371 (the_low_target): Register arm_insert_point, arm_remove_point,
16372 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16373 arm_new_thread, and arm_prepare_to_resume.
16374
6b9801d4
SS
163752011-09-15 Stan Shebs <stan@codesourcery.com>
16376
16377 * server.h (struct emit_ops): Add compare-goto fields.
16378 * tracepoint.c (gdb_agent_op_sizes): New table.
16379 (emit_eq_goto): New function.
16380 (emit_ne_goto): New function.
16381 (emit_lt_goto): New function.
16382 (emit_le_goto): New function.
16383 (emit_gt_goto): New function.
16384 (emit_ge_goto): New function.
16385 (is_goto_target): New function.
16386 (compile_bytecodes): Recognize special cases of compare-goto
16387 combinations and call specialized emitters for them.
16388 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16389 (amd64_emit_ne_goto): New function.
16390 (amd64_emit_lt_goto): New function.
16391 (amd64_emit_le_goto): New function.
16392 (amd64_emit_gt_goto): New function.
16393 (amd64_emit_ge_goto): New function.
16394 (amd64_emit_ops): Add the new functions.
16395 (i386_emit_eq_goto): New function.
16396 (i386_emit_ne_goto): New function.
16397 (i386_emit_lt_goto): New function.
16398 (i386_emit_le_goto): New function.
16399 (i386_emit_gt_goto): New function.
16400 (i386_emit_ge_goto): New function.
16401 (i386_emit_ops): Add the new functions.
16402
bf15cbda
SS
164032011-09-08 Stan Shebs <stan@codesourcery.com>
16404
16405 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16406 (i386_emit_epilogue): Restore %ebx.
16407
943ca1dd
JZ
164082011-08-31 Jie Zhang <jzhang918@gmail.com>
16409
16410 * server.c (step_thread): Remove definition.
16411 (process_serial_event): Don't handle Hs.
16412 * server.h (step_thread): Remove declaration.
16413 * target.c (set_desired_inferior): Remove use of step_thread.
16414
e3deef73
LM
164152011-08-24 Luis Machado <lgustavo@codesourcery.com>
16416
16417 * linux-low.c: Include linux-procfs.h.
16418 (linux_attach_lwp_1): Update comments.
16419 (linux_attach): Scan for existing threads when attaching to a
16420 process that is the tgid.
16421 * Makefile.in: Update dependencies.
16422
13da1c97
LM
164232011-08-24 Luis Machado <lgustavo@codesourcery.com>
16424
16425 * configure.srv: Add linux-procfs.o dependencies.
16426
881127c9
YQ
164272011-08-14 Yao Qi <yao@codesourcery.com>
16428
16429 * target.h (struct target_ops): Fix indent.
16430 * win32-low.c (win32_target_ops): Fix comment.
16431
58dbd541
YQ
164322011-08-14 Andrew Jenner <andrew@codesourcery.com>
16433 Yao Qi <yao@codesourcery.com>
16434
16435 * Makefile.in (clean): Remove tic6x-*.c files.
16436 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16437 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16438 (tic6x-c64xp-linux.c): Likewise.
16439 * configure.srv: Add support for tic6x-*-uclinux.
16440 * linux-tic6x-low.c: New.
16441 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16442
78d85199
YQ
164432011-08-14 Andrew Stubbs <ams@codesourcery.com>
16444 Yao Qi <yao@codesourcery.com>
16445
16446 * target.h (struct target_ops): Add read_loadmap.
16447 * linux-low.c (struct target_loadseg): New type.
16448 (struct target_loadmap): New type.
16449 (linux_read_loadmap): New function.
16450 (linux_target_ops): Add linux_read_loadmap.
16451 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16452 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16453 to NULL.
78d85199 16454
a959a88d
EZ
164552011-08-05 Eli Zaretskii <eliz@gnu.org>
16456
16457 * win32-low.c: Include <stdint.h>.
16458
1ced966e
PA
164592011-07-22 Pedro Alves <pedro@codesourcery.com>
16460
16461 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16462 to the inferior here.
16463 (i386_remove_aligned_watchpoint): Ditto.
16464 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16465 fit part of the watchpoint in the debug registers.
16466 (i386_update_inferior_debug_regs): New.
16467 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16468 registers, and only update the inferior on success.
16469 (i386_low_remove_watchpoint): Ditto.
16470
d26e3629
KY
164712011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16472
16473 * linux-low.c (compare_ints, unique, list_threads, show_process,
16474 linux_core_of_thread): Delete.
16475 (linux_target_ops): Change linux_core_of_thread to
16476 linux_common_core_of_thread.
16477 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16478 * utils.c (malloc_failure): Change type of argument.
16479 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16480 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16481 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16482 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16483 (IPA_OBJS): Add common-utils-ipa.o.
16484 (ptid_h, linux_osdata_h): New macros.
16485 (server_h): Add common/common-utils.h, common/xml-utils.h,
16486 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16487 common/ptid.h.
16488 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16489 ptid.o, buffer.o): New rules.
16490 (linux-low.o): Add common/linux-osdata.h as a dependency.
16491 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16492 * configure.ac: Add AC_HEADER_DIRENT check.
16493 * config.in: Regenerate.
16494 * configure: Regenerate.
16495 * remote-utils.c (xml_escape_text): Delete.
16496 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16497 buffer_xml_printf): Move to common/buffer.c.
16498 * server.c (main): Remove call to initialize_inferiors.
16499 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16500 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16501 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16502 internal_error, gdb_assert, gdb_assert_fail): Delete.
16503 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16504 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16505 common/buffer.h.
16506 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16507 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16508 initialize_inferiors): Delete.
16509
2275a1a7
PA
165102011-07-20 Pedro Alves <pedro@codesourcery.com>
16511
16512 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16513 symbol error.
16514
0a5b1e09
PA
165152011-05-31 Pedro Alves <pedro@codesourcery.com>
16516
16517 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16518 assertion.
16519 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16520
6938fd34
YQ
165212011-05-26 Yao Qi <yao@codesourcery.com>
16522
16523 * Makefile.in (thread-db.o): Track dependence to
16524 common/gdb_thread_db.h.
16525 * thread-db.c: include gdb_thread_db.h from right place.
16526
b481f9e0
TT
165272011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16528
16529 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16530 __FILE__ and __LINE__ to internal_error.
16531
98a5dd13
DE
165322011-05-13 Doug Evans <dje@google.com>
16533
16534 * thread-db.c (try_thread_db_load_from_sdir): New function.
16535 (try_thread_db_load_from_dir): New function.
16536 (thread_db_load_search): Handle $sdir, ignore $pdir.
16537 Remove trying of system directories if search of
16538 libthread-db-search-path fails, that is now done via $sdir.
16539
d248b706
KY
165402011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16541
16542 * server.c (handle_query): Add EnableDisableTracepoints to the list
16543 of supported features.
43aaf8b6 16544 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16545 tracepoints.
43aaf8b6
PA
16546 (cmd_qtenable_disable): New.
16547 (cmd_qtstart): Install tracepoints even if disabled.
16548 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16549 receiving a QTEnable or QTDisable packet.
16550 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16551 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16552 tracepoints.
16553 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16554
84e578fb
DE
165552011-05-10 Doug Evans <dje@google.com>
16556
16557 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16558
71f55dd8
DE
165592011-05-04 Doug Evans <dje@google.com>
16560
16561 * linux-low.c (linux_join): Skip process lookup.
16562 * spu-low.c (spu_join): Ditto.
16563 * server.c (join_inferiors_callback): Delete.
16564 (process_serial_event): For 'D' packet (detach) call join_inferior
16565 directly.
16566
4d393d60
JM
165672011-05-04 Joseph Myers <joseph@codesourcery.com>
16568
16569 * README: Don't mention xscale*-*-linux*.
16570 * configure.srv (xscale*-*-linux*): Don't handle target.
16571
b00ad6ff
NF
165722011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16573
16574 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16575 casting pointers.
16576 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16577 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16578 (i386_emit_void_call_2): Likewise.
16579
af96c192
YQ
165802011-04-26 Yao Qi <yao@codesourcery.com>
16581
43aaf8b6
PA
16582 * linux-low.c: Move common macros to linux-ptrace.h.
16583 Include linux-ptrace.h.
af96c192
YQ
16584 * Makefile.in (linux_ptrace_h): New.
16585 (linux-low.o): Depends on linux-ptrace.h.
16586
03f2bd59
JK
165872011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16588
16589 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16590 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16591 (remote_prepare): New function with most of the TCP code from ...
16592 (remote_open): ... here. Detect PORT here unconditionally. Move also
16593 setting transport_is_reliable.
16594 * server.c (run_once): New variable.
16595 (gdbserver_usage): Document it.
16596 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16597 the first run if RUN_ONCE.
16598 * server.h (run_once, remote_prepare): New declarations.
16599
7a9dd1b2
TT
166002011-04-19 Tom Tromey <tromey@redhat.com>
16601
16602 * win32-low.c (handle_load_dll): Remove duplicate "the".
16603
81239425
PM
166042011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16605
16606 Remove support for old Cygwin 1.5 versions.
16607 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16608 function to avoid warning.
16609 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16610 warning.
16611
9e0627f1
PM
166122011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16613
16614 * gdbserver/server.h (Macro _): Define it if not available.
16615
588eebee
MS
166162011-03-14 Michael Snyder <msnyder@vmware.com>
16617
348af9f7 16618 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16619
43f70d4c
JB
166202011-03-10 Joel Brobecker <brobecker@adacore.com>
16621
16622 * Makefile.in (maintainer-clean realclean distclean): Remove
16623 "make ... subdir_do" command.
16624
348af9f7
MS
166252011-03-10 Michael Snyder <msnyder@vmware.com>
16626
16627 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16628
16629 * server.c (handle_v_run): Free alloced buffer on early return.
16630
e637a4f5
YQ
166312011-03-09 Yao Qi <yao@codesourcery.com>
16632
16633 Revert:
16634 2011-03-04 Yao Qi <yao@codesourcery.com>
16635
16636 * Makefile.in: Remove GNU make feature --directory.
16637
16638 2011-03-05 Yao Qi <yao@codesourcery.com>
16639
16640 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16641 (subdir_do): New make target. Copied from gdb/Makefile.
16642 (maintainer-clean, realclean, distclean, clean): Call corresponding
16643 make targets in common/Makefile.
16644
16645 2011-02-11 Yao Qi <yao@codesourcery.com>
16646
16647 * configure.ac: Call AC_PROG_RANLIB.
16648 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16649 * configure: Regenerate.
16650
e6edda56
JK
166512011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16652
16653 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16654
e5141119
JB
166552011-03-06 Yao Qi <yao@codesourcery.com>
16656
16657 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16658
64794aa4
JB
166592011-03-05 Yao Qi <yao@codesourcery.com>
16660
16661 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16662 (subdir_do): New make target. Copied from gdb/Makefile.
16663 (maintainer-clean, realclean, distclean, clean): Call corresponding
16664 make targets in common/Makefile.
16665
7a762829
YQ
166662011-03-04 Yao Qi <yao@codesourcery.com>
16667
16668 * Makefile.in: Remove GNU make feature --directory.
16669
348af9f7
MS
166702011-03-04 Michael Snyder <msnyder@vmware.com>
16671
16672 * server.c (queue_stop_reply): Call xmalloc not malloc.
16673
166742011-03-02 Michael Snyder <msnyder@vmware.com>
16675
16676 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16677
9f72fee2
MS
166782011-02-28 Michael Snyder <msnyder@vmware.com>
16679
588eebee
MS
16680 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16681 (cmd_qtframe): Ditto.
16682 (cmd_qtbuffer): Ditto.
16683 (cmd_bigqtbuffer): Ditto.
16684
9f72fee2
MS
16685 * utils.c (decimal2str): Initialize 'width' to nine, then
16686 don't mess with it.
16687
8040bd49
UW
166882011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16689
16690 * hostio.c (require_data): Free *data, not data.
16691
7e52cbd0
JK
166922011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16693
16694 * hostio.c (require_data): Use free, not xfree.
16695
9130f83e
MS
166962011-02-27 Michael Snyder <msnyder@vmware.com>
16697
4b812f4e
MS
16698 * server.c (handle_query): Discard unused value.
16699
9130f83e
MS
16700 * hostio.c (require_data): Free malloc memory before returning
16701 error.
16702
69d37113
MS
167032011-02-26 Michael Snyder <msnyder@vmware.com>
16704
16705 * linux-low.c (list_threads): Call closedir for dirent.
16706
35f5825a
MS
167072011-02-27 Michael Snyder <msnyder@vmware.com>
16708
2a589cef
MS
16709 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16710 a case statement falls through.
16711
0adea5f7
MS
16712 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16713
35f5825a
MS
16714 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16715 in comparison.
16716
238f1c74
MS
167172011-02-26 Michael Snyder <msnyder@vmware.com>
16718
16719 * utils.c (decimal2str): Eliminate dead code and dead param.
16720 (pulongest): Drop dead param from call to decimal2str.
16721 (plongest): Ditto.
16722
633ff500
JB
167232011-02-24 Joel Brobecker <brobecker@adacore.com>
16724
16725 Revert the following patch (not approved yet):
16726 2011-02-21 Hui Zhu <teawater@gmail.com>
16727 * tracepoint.c (tp_printf): New function.
16728 (eval_agent_expr): Handle gdb_agent_op_printf.
16729
f9c6ff72
HZ
167302011-02-21 Hui Zhu <teawater@gmail.com>
16731
16732 * tracepoint.c (tp_printf): New function.
16733 (eval_agent_expr): Handle gdb_agent_op_printf.
16734
94d5e490
TT
167352011-02-18 Tom Tromey <tromey@redhat.com>
16736
16737 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16738 (tracepoint.o): Likewise.
16739 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16740 (gdb_agent_op_names): Likewise.
16741
c7f96d2b
TT
167422011-02-18 Tom Tromey <tromey@redhat.com>
16743
16744 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16745 gdb_agent_op_rot>: New constants.
16746 (gdb_agent_op_names): Add pick and roll.
16747 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16748 cases.
16749
0feedb2c
JK
167502011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16751
16752 * aclocal.m4: Regenerated with aclocal-1.11.1.
16753
b3b9301e
PA
167542011-02-14 Pedro Alves <pedro@codesourcery.com>
16755
16756 * server.c (handle_qxfer_traceframe_info): New.
16757 (qxfer_packets): Register "traceframe-info".
16758 (handle_query): Report support for qXfer:traceframe-info:read+.
16759 * tracepoint.c (match_blocktype): New.
16760 (traceframe_find_block_type): Rename to ...
16761 (traceframe_walk_blocks): ... this. Add callback filter argument,
16762 and use it.
16763 (traceframe_find_block_type): New, reimplemented on top of
16764 traceframe_walk_blocks.
16765 (build_traceframe_info_xml): New.
16766 (traceframe_read_info): New.
16767 * server.h (traceframe_read_info): Declare.
16768
4f3e6fb7
YQ
167692011-02-11 Yao Qi <yao@codesourcery.com>
16770
16771 * configure.ac: Call AC_PROG_RANLIB.
16772 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16773 * configure: Regenerate.
16774
764880b7
PA
167752011-02-07 Pedro Alves <pedro@codesourcery.com>
16776
16777 * server.c (gdb_read_memory): Change return semantics to allow
16778 partial transfers.
16779 (handle_search_memory_1): Adjust.
16780 (process_serial_event) <'m' packet>: Handle partial transfers.
16781 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16782
1c79eb8a
PA
167832011-01-28 Pedro Alves <pedro@codesourcery.com>
16784
16785 * regcache.c (init_register_cache): Initialize
16786 regcache->register_status.
16787 (free_register_cache): Release regcache->register_status.
16788 (regcache_cpy): Copy register_status.
16789 (registers_to_string): Print 'x's for unavailable registers.
16790 (supply_register): Mark the register's status valid or
16791 unavailable, depending on whether a buffer was passed in or not.
16792 (supply_register_zeroed): New.
16793 (supply_regblock): Mark the registers' status valid or
16794 unavailable, depending on whether a buffer was passed in or not.
16795 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16796 (struct regcache): New `register_status' field.
16797 (supply_register_zeroed): Declare.
16798 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16799 supply_register_zeroed, rather than passing a NULL buffer to
16800 supply_register.
16801 * tracepoint.c (fetch_traceframe_registers): Update comment.
16802
85724a0e
PA
168032011-01-28 Pedro Alves <pedro@codesourcery.com>
16804
16805 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16806 buffer explicit.
16807
d08aafef
PA
168082011-01-25 Pedro Alves <pedro@codesourcery.com>
16809
16810 * server.h (decode_xfer_write): Change prototype.
16811 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16812 and don't extract the annex here.
16813 * server.c (decode_xfer_read): Remove `annex' parameter,
16814 and don't extract the annex here.
16815 (decode_xfer): New.
16816 (struct qxfer): New.
16817 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16818 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16819 (handle_qxfer_statictrace): New functions, abstracted out from
16820 handle_query, and made to use the struct qxfer interface.
16821 (handle_threads_qxfer_proper): Rename to ...
16822 (handle_qxfer_threads_proper): ... this.
16823 (handle_threads_qxfer): Rename to ...
16824 (handle_qxfer_threads): ... this. Adjust.
16825 (qxfer_packets): New array.
16826 (handle_qxfer): New function.
16827 (handle_query): Use handle_qxfer.
16828
493e2a69
MS
168292011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16830
16831 * gdbreplay.c: Shorten lines of >= 80 columns.
16832 * linux-low.c: Ditto.
16833 * linux-ppc-low.c: Ditto.
16834 * linux-s390-low.c: Ditto.
16835 * linux-sparc-low.c: Ditto.
16836 * linux-x86-low.c: Ditto.
16837 * linux-xtensa-low.c: Ditto.
16838 * mem-break.c: Ditto.
16839 * nto-low.c: Ditto.
16840 * regcache.h: Ditto.
16841 * remote-utils.c: Ditto.
16842 * server.c: Ditto.
16843 * server.h: Ditto.
16844 * thread-db.c: Ditto.
16845 * tracepoint.c: Ditto.
16846 * utils.c: Ditto.
16847 * win32-low.h: Ditto.
16848
44944448
JB
168492011-01-05 Joel Brobecker <brobecker@adacore.com>
16850
16851 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16852 update.
16853
71ce852c
JB
168542011-01-01 Joel Brobecker <brobecker@adacore.com>
16855
16856 * server.c (gdbserver_version): Update copyright year in version
16857 output.
16858 * gdbreplay.c (gdbreplay_version): Ditto.
16859
eb826dc6
MF
168602010-12-29 Jie Zhang <jie.zhang@analog.com>
16861
16862 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16863 * linux-bfin-low.c: New file.
16864 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16865 PT_DATA_ADDR for BFIN targets.
16866 * Makefile.in (SFILES): Add linux-bfin-low.c.
16867 (clean): Remove reg-bfin.c.
16868 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16869 * README: Mention supported Blackfin targets.
16870
39ab222a
MF
168712010-12-23 Mike Frysinger <vapier@gentoo.org>
16872
16873 * .gitignore: New file.
16874
a1f2ce7d
MF
168752010-11-16 Mike Frysinger <vapier@gentoo.org>
16876
16877 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16878
f474844c
JZ
168792010-10-22 Jie Zhang <jie@codesourcery.com>
16880
16881 * Makefile.in: Add FLAGS_TO_PASS variable.
16882 (install): Remove dependency of install-only and recursively
16883 invoke make for install-only.
16884
f1048712
DE
168852010-10-04 Doug Evans <dje@google.com>
16886
16887 * Makefile.in (uninstall): Use $(DESTDIR).
16888
b53a1623
PA
168892010-09-24 Pedro Alves <pedro@codesourcery.com>
16890
e6ee044d
PA
16891 PR gdb/11842
16892
b53a1623
PA
16893 * linux-x86-low.c (compat_siginfo_from_siginfo)
16894 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16895 si_code is < 0. Check for si_code == SI_TIMER before checking for
16896 si_code < 0.
16897
fa1bd1e4
JB
168982010-09-13 Joel Brobecker <brobecker@adacore.com>
16899
16900 * lynx-i386-low.c: New file.
16901 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16902
47fac8f8
JB
169032010-09-13 Joel Brobecker <brobecker@adacore.com>
16904
16905 * lynx-low.c (ptrace_request_to_str): Remove handling for
16906 request values that have been removed in LynxOS 5.x.
16907
1adfc54d
JB
169082010-09-13 Joel Brobecker <brobecker@adacore.com>
16909
16910 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16911 <ptrace.h>
16912
c2a66c29
NS
169132010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16914
16915 * configure.ac: Add --enable-inprocess-agent option.
16916 * configure: Rebuilt.
16917
32fcada3
YQ
169182010-09-06 Yao Qi <yao@codesourcery.com>
16919
16920 * linux-low.c (linux_kill): Remove unused variable.
16921 (linux_stabilize_threads): Likewise.
16922 * server.c (start_inferior): Likewise.
16923 (queue_stop_reply_callback): Likewise.
16924 * tracepoint.c (do_action_at_tracepoint): Likewise.
16925
0cccb683
YQ
169262010-09-06 Yao Qi <yao@codesourcery.com>
16927
16928 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16929 on return.
16930
423ec54c
JK
169312010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16932
16933 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16934
12ac6819
PA
169352010-09-06 Pedro Alves <pedro@codesourcery.com>
16936
16937 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16938 "$(IPA_DEPFILES)".
16939
8ed54b31
JB
169402010-09-01 Joel Brobecker <brobecker@adacore.com>
16941
16942 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16943 gdbserver/lynx-ppc-low.c: New files.
16944 * Makefile.in (lynx_low_h): New variable.
16945 (lynx-low.o, lynx-ppc-low.o): New rules.
16946 * configure.ac: On LynxOS, link with -lnetinet.
16947 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16948 * configure: regenerate.
16949
bb0116a4
JB
169502010-09-01 Joel Brobecker <brobecker@adacore.com>
16951
16952 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16953 * configure.ac: Add check for vasprintf and vsnprintf.
16954 * configure, config.in: Regenerate.
16955 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16956
a778ab81 169572010-09-01 Joel Brobecker <brobecker@adacore.com>
16958
16959 * gdbreplay.c: Move include of alloca.h up, next to include of
16960 malloc.h.
16961 * server.h: Add include of malloc.h.
16962 * mem-break.c: Remove include of malloc.h.
16963 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16964
8b034a19 169652010-09-01 Joel Brobecker <brobecker@adacore.com>
16966
16967 * Makefile.in (memmem.o): Build with -Wno-error.
16968
169692010-09-01 Joel Brobecker <brobecker@adacore.com>
16970
16971 * utils.c (xsnprintf): Make non-static.
16972 * server.h: Add xsnprintf declaration.
16973 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16974 replace calls to snprintf by calls to xsnprintf throughout.
16975
169762010-09-01 Joel Brobecker <brobecker@adacore.com>
16977
16978 * configure.ac: Add configure check for alloca.
16979 * configure, config.in: Regenerate.
16980 * server.h: Include alloca.h if it exists.
16981 * gdbreplay.c: Include alloca.h if it exists.
16982
1a981360
PA
169832010-08-28 Pedro Alves <pedro@codesourcery.com>
16984
16985 * linux-low.c (__SIGRTMIN): Define if not already defined.
16986 (linux_create_inferior): Check for __ANDROID__ rather than
16987 __SIGRTMIN.
16988 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16989 are already deferred.
16990 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16991 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16992 stopped and already has a pending signal to report.
16993 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16994 a pending signal to report or is moving out of a jump pad.
16995 (linux_init_signals): Check for __ANDROID__ rather than
16996 __SIGRTMIN.
16997
b4d51a55
PA
169982010-08-28 Pedro Alves <pedro@codesourcery.com>
16999
17000 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17001 debug_threads check. Avoid a linear search when not doing debug
17002 output.
17003
ec48365d
PA
170042010-08-27 Pedro Alves <pedro@codesourcery.com>
17005
17006 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17007 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17008 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17009 (process_event): Change local fd's type to gdb_fildes_t.
17010 (create_file_handler): Adjust prototype.
17011 (delete_file_handler): Adjust prototype.
17012 (handle_file_event): Adjust prototype. Use pfildes.
17013 (create_file_event): Adjsut prototype.
17014 * remote-utils.c (remote_desc, listen_desc): Change type to
17015 gdb_fildes_t.
17016 * server.h: New gdb_fildes_t typedef.
17017 [USE_WIN32API]: Include winsock2.h.
17018 (delete_file_handler, add_file_handler): Adjust prototypes.
17019 (pfildes): Declare.
17020 * utils.c (pfildes): New.
17021
854d88f0
PA
170222010-08-27 Pedro Alves <pedro@codesourcery.com>
17023
17024 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17025 * configure: Regenerate.
17026
0146f85b
PA
170272010-08-27 Pedro Alves <pedro@codesourcery.com>
17028
17029 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17030 (linux_done_accessing_memory): ... this.
17031 (linux_target_ops): Adjust.
17032 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17033 * nto-low.c (nto_target_ops): Adjust comment.
17034 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17035 * spu-low.c (spu_target_ops): Adjust comment.
17036 * target.h (target_ops): Rename unprepare_to_access_memory field
17037 to done_accessing_memory.
17038 (unprepare_to_access_memory): Rename to ...
17039 (done_accessing_memory): ... this.
17040
90d74c30
PA
170412010-08-26 Pedro Alves <pedro@codesourcery.com>
17042
17043 * linux-low.c (linux_prepare_to_access_memory): New.
17044 (linux_unprepare_to_access_memory): New.
17045 (linux_target_ops): Install them.
17046 * server.c (read_memory): Rename to ...
17047 (gdb_read_memory): ... this. Use
17048 prepare_to_access_memory/prepare_to_access_memory.
17049 (write_memory): Rename to ...
17050 (gdb_write_memory): ... this. Use
17051 prepare_to_access_memory/prepare_to_access_memory.
17052 (handle_search_memory_1): Adjust.
17053 (process_serial_event): Adjust.
17054 * target.h (struct target_ops): New fields
17055 prepare_to_access_memory and unprepare_to_access_memory.
17056 (prepare_to_access_memory, unprepare_to_access_memory): New.
17057 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17058 prepare_to_access_memory/prepare_to_access_memory.
17059 * nto-low.c (nto_target_ops): Adjust.
17060 * spu-low.c (spu_target_ops): Adjust.
17061 * win32-low.c (win32_target_ops): Adjust.
17062
fd467969
PA
170632010-08-26 Pedro Alves <pedro@codesourcery.com>
17064
17065 * Makefile.in (WARN_CFLAGS): Get it from configure.
17066 (WERROR_CFLAGS): New.
17067 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17068 * configure.ac: Introduce --enable-werror, which adds -Werror to
17069 the compiler command line. Enabled by default. Disable with
17070 --disable-werror. Add -Wdeclaration-after-statement
17071 Wpointer-arith and -Wformat-nonliteral to warning flags.
17072 * configure: Regenerate.
17073
331e2f5f
PA
170742010-08-26 Pedro Alves <pedro@codesourcery.com>
17075
17076 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17077
e581f2b4
PA
170782010-08-26 Pedro Alves <pedro@codesourcery.com>
17079
17080 * gdbreplay.c (remote_error): New.
17081 (gdbchar): New.
17082 (expect): Use gdbchar. Check for error reading from GDB.
17083 Clarify sync error output.
17084 (play): Check for errors writing to GDB.
17085 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17086 * remote-utils.c (getpkt): Check for errors writing to the remote
17087 descriptor.
17088
3c11dd79
PA
170892010-08-25 Pedro Alves <pedro@codesourcery.com>
17090
17091 * linux-low.c (linux_wait_1): Move non-debugging code out of
17092 `debug_threads' control.
17093
d20a8ad9
PA
170942010-08-25 Pedro Alves <pedro@codesourcery.com>
17095
17096 * linux-low.c (linux_wait_1): Don't set last_status here.
17097 * server.c (push_event, queue_stop_reply_callback): Assert we're
17098 not pushing a TARGET_WAITKIND_IGNORE event.
17099 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17100 (myresume, handle_target_event): Set the thread's last_resume_kind
17101 and last_status from the target returned status.
17102
964e4306
PA
171032010-08-25 Pedro Alves <pedro@codesourcery.com>
17104
17105 PR threads/10729
17106
17107 * linux-x86-low.c (update_debug_registers_callback): New.
17108 (i386_dr_low_set_addr): Use it.
17109 (i386_dr_low_get_addr): New.
17110 (i386_dr_low_set_control): Use update_debug_registers_callback.
17111 (i386_dr_low_get_control): New.
17112 (i386_dr_low_get_status): Adjust.
17113 * linux-low.c (linux_stop_lwp): New.
17114 * linux-low.h (linux_stop_lwp): Declare.
17115
17116 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17117 argument instead of a i386_debug_reg_state.
17118 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17119 a i386_debug_reg_state.
17120 (i386_insert_aligned_watchpoint): Adjust.
17121 (i386_remove_aligned_watchpoint): Adjust.
17122 (i386_low_stopped_data_address): Read the debug registers from the
17123 inferior instead of from the mirrors.
17124 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17125 (i386_dr_low_get_addr): Declare.
17126 (i386_dr_low_get_control): Declare.
17127 (i386_dr_low_get_status): Change prototype.
17128
17129 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17130 (i386_dr_low_get_addr): New.
17131 (i386_dr_low_get_control): New.
17132 (i386_dr_low_get_status): Adjust prototype. Return
17133 dr_status_mirror.
17134 (i386_initial_stuff): Clear dr_status_mirror and
17135 dr_control_mirror.
17136 (i386_get_thread_context): Adjust.
17137 (i386_set_thread_context): Adjust.
17138 (i386_thread_added): Adjust.
17139
5f21a75b
PA
171402010-08-24 Pedro Alves <pedro@codesourcery.com>
17141
17142 * linux-low.h (linux_thread_area): Delete declaration.
17143
3e4c1235
TS
171442010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17145
17146 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17147 after its termination.
17148
1971b033
PA
171492010-08-09 Pedro Alves <pedro@codesourcery.com>
17150
17151 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17152 (gdb_wants_all_stopped): Delete.
17153 (linux_wait_1): Don't call them.
17154 * server.c (handle_v_cont): Tag all threads as want-stopped.
17155 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17156 stopped as "client-wants-stopped".
17157
310444ac
PA
171582010-07-31 Pedro Alves <pedro@codesourcery.com>
17159
17160 * Makefile.in (signals_h): New.
17161 (server_h): Depend on it.
17162 (server.o): Don't depend on $(signals_def).
17163 (signals.o): Depend on $(signals_def).
17164
a19cae16
JK
171652010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17166
17167 * Makefile.in (signals_def): New.
17168 (server_h): Append include/gdb/signals.h and signals_def.
17169 (server.o): Append signals_def.
17170
30d50328
JK
171712010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17172
17173 * server.c (handle_target_event): Use target_signal_to_host for
17174 resume_info.sig initialization.
17175 * target.h (struct thread_resume) <sig>: New comment.
17176
5c3216e2
OS
171772010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17178
c6f46ca0
OS
17179 * server.c (handle_query): strcpy() the returned string from paddress()
17180 instead of sprintf().
5c3216e2
OS
17181 * utils.c (paddress): Return phex_nz().
17182
6bd31874
JB
171832010-07-07 Joel Brobecker <brobecker@adacore.com>
17184
17185 * server.c (handle_v_cont): Call mourn_inferior if process
17186 just exited.
17187 (myresume): Likewise.
17188
0fb4aa4b
PA
171892010-07-01 Pedro Alves <pedro@codesourcery.com>
17190
17191 Static tracepoints, and integration with UST.
17192
17193 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17194 * mem-break.c (uninsert_all_breakpoints)
17195 (reinsert_all_breakpoints): New.
17196 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17197 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17198 (gdb_agent_ust_loaded, helper_thread_id)
17199 (gdb_agent_helper_thread_id): New macros.
17200 (struct ipa_sym_addresses): Add addr_ust_loaded,
17201 addr_helper_thread_id, addr_cmd_buf.
17202 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17203 (in_process_agent_loaded_ust): New.
17204 (write_e_ust_not_loaded): New.
17205 (maybe_write_ipa_ust_not_loaded): New.
17206 (struct collect_static_trace_data_action): New.
17207 (enum tracepoint_type) <static_tracepoint>: New.
17208 (struct tracepoint) <handle>: Mention static tracepoints.
17209 (struct static_tracepoint_ctx): New.
17210 (CMD_BUF_SIZE): New.
17211 (add_tracepoint_action): Handle static tracepoint actions.
17212 (unprobe_marker_at): New.
17213 (clear_installed_tracepoints): Handle static tracepoints.
17214 (cmd_qtdp): Handle static tracepoints.
17215 (probe_marker_at): New.
17216 (cmd_qtstart): Handle static tracepoints.
17217 (response_tracepoint): Handle static tracepoints.
17218 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17219 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17220 (get_context_regcache): Handle static tracepoints.
17221 (do_action_at_tracepoint): Handle static tracepoint actions.
17222 (traceframe_find_block_type): Handle static trace data blocks.
17223 (traceframe_read_sdata): New.
17224 (download_tracepoints): Download static tracepoint actions.
17225 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17226 (GDB_PROBE_NAME): New.
17227 (ust_ops): New.
17228 (GET_UST_SYM): New.
17229 (USTF): New.
17230 (dlsym_ust): New.
17231 (ust_marker_to_static_tracepoint): New.
17232 (gdb_probe): New.
17233 (collect_ust_data_at_tracepoint): New.
17234 (gdb_ust_probe): New.
17235 (UNIX_PATH_MAX, SOCK_DIR): New.
17236 (gdb_ust_connect_sync_socket): New.
17237 (resume_thread, stop_thread): New.
17238 (run_inferior_command): New.
17239 (init_named_socket): New.
17240 (gdb_ust_socket_init): New.
17241 (cstr_to_hexstr): New.
17242 (next_st): New.
17243 (first_marker, next_marker): New.
17244 (response_ust_marker): New.
17245 (cmd_qtfstm, cmd_qtsstm): New.
17246 (unprobe_marker_at, probe_marker_at): New.
17247 (cmd_qtstmat, gdb_ust_thread): New.
17248 (gdb_ust_init): New.
17249 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17250 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17251 (ST_REGENTRY): New.
17252 (x86_64_st_collect_regmap): New.
17253 (X86_64_NUM_ST_COLLECT_GREGS): New.
17254 (AMD64_RIP_REGNUM): New.
17255 (supply_static_tracepoint_registers): New.
17256 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17257 (ST_REGENTRY): New.
17258 (i386_st_collect_regmap): New.
17259 (i386_NUM_ST_COLLECT_GREGS): New.
17260 (supply_static_tracepoint_registers): New.
17261 * server.c (handle_query): Handle qXfer:statictrace:read.
17262 <qSupported>: Report support for StaticTracepoints, and
17263 qXfer:statictrace:read features.
17264 * server.h (traceframe_read_sdata)
17265 (supply_static_tracepoint_registers): Declare.
17266 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17267 (unpack_varlen_hex): Include in IPA build.
17268 * Makefile.in (ustlibs, ustinc): New.
17269 (IPA_OBJS): Add remote-utils-ipa.o.
17270 ($(IPA_LIB)): Link -ldl and -lpthread.
17271 (UST_CFLAGS): New.
17272 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17273 * config.in, configure: Regenerate.
17274
9e4344e5
PA
172752010-06-20 Ian Lance Taylor <iant@google.com>
17276 Pedro Alves <pedro@codesourcery.com>
17277
17278 * linux-x86-low.c (always_true): Delete.
17279 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17280 trying to fool the compiler with always_true.
17281
c6beb2cb
PA
172822010-06-20 Pedro Alves <pedro@codesourcery.com>
17283
17284 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17285 conditions in gdbserver.
17286
d2ed6730
UW
172872010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17288
17289 * spu-low.c (spu_read_memory): Wrap around local store limit.
17290 (spu_write_memory): Likewise.
17291
4e29fb54
PA
172922010-06-15 Pedro Alves <pedro@codesourcery.com>
17293
17294 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17295 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17296 LONGEST uses.
17297 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17298 uses.
17299 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17300 uses with LONGEST uses.
17301
6a271cae
PA
173022010-06-14 Stan Shebs <stan@codesourcery.com>
17303 Pedro Alves <pedro@codesourcery.com>
17304
17305 Bytecode compiler.
17306
17307 * linux-x86-low.c: Include limits.h.
17308 (add_insns): New.
17309 (always_true): New.
17310 (EMIT_ASM): New.
17311 (EMIT_ASM32): New.
17312 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17313 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17314 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17315 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17316 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17317 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17318 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17319 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17320 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17321 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17322 (amd64_emit_void_call_2): New.
17323 (amd64_emit_ops): New.
17324 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17325 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17326 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17327 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17328 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17329 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17330 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17331 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17332 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17333 (i386_emit_stack_adjust, i386_emit_int_call_1)
17334 (i386_emit_void_call_2): New.
17335 (i386_emit_ops): New.
17336 (x86_emit_ops): New.
17337 (the_low_target): Install x86_emit_ops.
17338 * server.h (struct emit_ops): New.
17339 (get_raw_reg_func_addr): Declare.
17340 (current_insn_ptr, emit_error): Declare.
17341 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17342 (set_trace_state_variable_value): New defines.
17343 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17344 addr_get_trace_state_variable_value and
17345 addr_set_trace_state_variable_value.
17346 (symbol_list): New fields for get_raw_reg,
17347 get_trace_state_variable_value and set_trace_state_variable_value.
17348 (condfn): New typedef.
17349 (struct tracepoint): New field `compiled_cond'.
17350 (do_action_at_tracepoint): Clear compiled_cond.
17351 (get_trace_state_variable_value, set_trace_state_variable_value):
17352 Export in the IPA.
17353 (condition_true_at_tracepoint): If there's a compiled condition,
17354 run that.
17355 (current_insn_ptr, emit_error): New globals.
17356 (struct bytecode_address): New.
17357 (get_raw_reg_func_addr): New.
17358 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17359 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17360 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17361 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17362 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17363 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17364 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17365 (compile_tracepoint_condition, compile_bytecodes): New.
17366 * target.h (emit_ops): Forward declare.
17367 (struct target_ops): New field emit_ops.
17368 (target_emit_ops): New.
17369 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17370 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17371 * linux-low.c (linux_emit_ops): New.
17372 (linux_target_ops): Install it.
17373 * linux-low.h (struct linux_target_ops): New field emit_ops.
17374
92b72907
UW
173752010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17376
17377 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17378 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17379
fa593d66
PA
173802010-06-01 Pedro Alves <pedro@codesourcery.com>
17381 Stan Shebs <stan@codesourcery.com>
17382
17383 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17384 (all): Depend on $(extra_libraries).
17385 (install-only): Install the IPA.
17386 (IPA_OBJS, IPA_LIB): New.
17387 (clean): Remove the IPA lib.
17388 (IPAGENT_CFLAGS): New.
17389 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17390 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17391 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17392 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17393 * configure.ac: Check for atomic builtins support in the compiler.
17394 (IPA_DEPFILES, extra_libraries): Define.
17395 * configure.srv (ipa_obj): Add description.
17396 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17397 (i[34567]86-*-linux*): Set ipa_obj.
17398 (x86_64-*-linux*): Set ipa_obj.
17399 * linux-low.c (stabilizing_threads): New.
17400 (supports_fast_tracepoints): New.
17401 (linux_detach): Stabilize threads before detaching.
17402 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17403 the lwp is either not stabilizing, or is moving out of a jump pad.
17404 (linux_fast_tracepoint_collecting): New.
17405 (maybe_move_out_of_jump_pad): New.
17406 (enqueue_one_deferred_signal): New.
17407 (dequeue_one_deferred_signal): New.
17408 (linux_wait_for_event_1): If moving out of a jump pad, defer
17409 pending signals to later.
17410 (linux_stabilize_threads): New.
17411 (linux_wait_1): Check if threads need moving out of jump pads, and
17412 do it if so.
17413 (stuck_in_jump_pad_callback): New.
17414 (move_out_of_jump_pad_callback): New.
17415 (lwp_running): New.
17416 (linux_resume_one_lwp): Handle moving out of jump pads.
17417 (linux_set_resume_request): Dequeue deferred signals.
17418 (need_step_over_p): Also step over fast tracepoint jumps.
17419 (start_step_over): Also uninsert fast tracepoint jumps.
17420 (finish_step_over): Also reinsert fast tracepoint jumps.
17421 (linux_install_fast_tracepoint_jump): New.
17422 (linux_target_ops): Install linux_stabilize_threads and
17423 linux_install_fast_tracepoint_jump_pad.
17424 * linux-low.h (linux_target_ops) <get_thread_area,
17425 install_fast_tracepoint_jump_pad>: New fields.
17426 (struct lwp_info) <collecting_fast_tracepoint,
17427 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17428 (linux_get_thread_area): Declare.
17429 * linux-x86-low.c (jump_insn): New.
17430 (x86_get_thread_area): New.
17431 (append_insns): New.
17432 (push_opcode): New.
17433 (amd64_install_fast_tracepoint_jump_pad): New.
17434 (i386_install_fast_tracepoint_jump_pad): New.
17435 (x86_install_fast_tracepoint_jump_pad): New.
17436 (the_low_target): Install x86_get_thread_area and
17437 x86_install_fast_tracepoint_jump_pad.
17438 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17439 (struct fast_tracepoint_jump): New.
17440 (fast_tracepoint_jump_insn): New.
17441 (fast_tracepoint_jump_shadow): New.
17442 (find_fast_tracepoint_jump_at): New.
17443 (fast_tracepoint_jump_here): New.
17444 (delete_fast_tracepoint_jump): New.
17445 (set_fast_tracepoint_jump): New.
17446 (uninsert_fast_tracepoint_jumps_at): New.
17447 (reinsert_fast_tracepoint_jumps_at): New.
17448 (set_breakpoint_at): Use write_inferior_memory.
17449 (uninsert_raw_breakpoint): Use write_inferior_memory.
17450 (check_mem_read): Mask out fast tracepoint jumps.
17451 (check_mem_write): Mask out fast tracepoint jumps.
17452 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17453 (set_fast_tracepoint_jump): Declare.
17454 (delete_fast_tracepoint_jump)
17455 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17456 (reinsert_fast_tracepoint_jumps_at): Declare.
17457 * regcache.c: Don't compile many functions when building the
17458 in-process agent library.
17459 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17460 the register buffer in the heap.
17461 (free_register_cache): If the register buffer isn't owned by the
17462 regcache, don't free it.
17463 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17464 pre-existing register caches.
17465 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17466 type.
17467 (convert_ascii_to_int): : Constify `from' parameter type.
17468 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17469 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17470 the needed buffer in-place.
17471 (relocate_instruction): New.
17472 * server.c (handle_query) <qSymbols>: If the target supports
17473 tracepoints, give it a chance of looking up symbols. Report
17474 support for fast tracepoints.
17475 (handle_status): Stabilize threads.
17476 (process_serial_event): Adjust.
17477 * server.h (struct fast_tracepoint_jump): Forward declare.
17478 (struct process_info) <fast_tracepoint_jumps>: New field.
17479 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17480 (decode_X_packet, decode_M_packet): Adjust.
17481 (relocate_instruction): Declare.
17482 (in_process_agent_loaded): Declare.
17483 (tracepoint_look_up_symbols): Declare.
17484 (struct fast_tpoint_collect_status): Declare.
17485 (fast_tracepoint_collecting): Declare.
17486 (force_unlock_trace_buffer): Declare.
17487 (handle_tracepoint_bkpts): Declare.
17488 (initialize_low_tracepoint)
17489 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17490 * target.h (struct target_ops) <stabilize_threads,
17491 install_fast_tracepoint_jump_pad>: New fields.
17492 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17493 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17494 [HAVE_STDINT_H]: Include stdint.h.
17495 (trace_debug_1): Rename to ...
17496 (trace_vdebug): ... this.
17497 (trace_debug): Rename to ...
17498 (trace_debug_1): ... this. Add `level' parameter.
17499 (trace_debug): New.
17500 (ATTR_USED, ATTR_NOINLINE): New.
17501 (IP_AGENT_EXPORT): New.
17502 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17503 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17504 (about_to_request_buffer_space, trace_buffer_is_full)
17505 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17506 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17507 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17508 (traceframe_write_count, traceframes_created)
17509 (trace_state_variables)
17510 New renaming defines.
17511 (struct ipa_sym_addresses): New.
17512 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17513 (symbol_list): New.
17514 (ipa_sym_addrs): New.
17515 (all_tracepoint_symbols_looked_up): New.
17516 (in_process_agent_loaded): New.
17517 (write_e_ipa_not_loaded): New.
17518 (maybe_write_ipa_not_loaded): New.
17519 (tracepoint_look_up_symbols): New.
17520 (debug_threads) [IN_PROCESS_AGENT]: New.
17521 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17522 (UNKNOWN_SIDE_EFFECTS): New.
17523 (stop_tracing): New.
17524 (flush_trace_buffer): New.
17525 (stop_tracing_bkpt): New.
17526 (flush_trace_buffer_bkpt): New.
17527 (read_inferior_integer): New.
17528 (read_inferior_uinteger): New.
17529 (read_inferior_data_pointer): New.
17530 (write_inferior_data_pointer): New.
17531 (write_inferior_integer): New.
17532 (write_inferior_uinteger): New.
17533 (struct collect_static_trace_data_action): Delete.
17534 (enum tracepoint_type): New.
17535 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17536 <actions_str, step_actions, step_actions_str>: Only include in
17537 GDBserver.
fa593d66
PA
17538 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17539 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17540 (tracepoints): Use IP_AGENT_EXPORT.
17541 (last_tracepoint): Don't include in the IPA.
17542 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17543 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17544 (alloced_trace_state_variables): New.
17545 (trace_state_variables): Use IP_AGENT_EXPORT.
17546 (traceframe_t): Delete unused variable.
17547 (circular_trace_buffer): Don't include in the IPA.
17548 (trace_buffer_start): Delete.
17549 (struct trace_buffer_control): New.
17550 (trace_buffer_free): Delete.
17551 (struct ipa_trace_buffer_control): New.
17552 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17553 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17554 New.
17555 (trace_buffer_ctrl): New.
17556 (TRACE_BUFFER_CTRL_CURR): New.
17557 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17558 Reimplement as macros.
17559 (trace_buffer_wrap): Delete.
17560 (traceframe_write_count, traceframe_read_count)
17561 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17562 (struct tracepoint_hit_ctx) <type>: New field.
17563 (struct fast_tracepoint_ctx): New.
17564 (memory_barrier): New.
17565 (cmpxchg): New.
17566 (record_tracepoint_error): Update atomically in the IPA.
17567 (clear_inferior_trace_buffer): New.
17568 (about_to_request_buffer_space): New.
17569 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17570 updating the same buffer.
17571 (add_tracepoint): Default the tracepoint's type to trap
17572 tracepoint, and orig_size to -1.
17573 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17574 internal variables.
17575 (create_trace_state_variable): New parameter `gdb'. Handle it.
17576 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17577 (cmd_qtdp): Handle fast tracepoints.
17578 (cmd_qtdv): Adjust.
17579 (max_jump_pad_size): New.
17580 (gdb_jump_pad_head): New.
17581 (get_jump_space_head): New.
17582 (claim_jump_space): New.
17583 (sort_tracepoints): New.
17584 (MAX_JUMP_SIZE): New.
17585 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17586 IPA.
17587 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17588 support. Upload fast traceframes, and delete internal IPA
17589 breakpoints.
17590 (stop_tracing_handler): New.
17591 (flush_trace_buffer_handler): New.
17592 (cmd_qtstop): Upload fast tracepoints.
17593 (response_tracepoint): Handle fast tracepoints.
17594 (tracepoint_finished_step): Upload fast traceframes. Set the
17595 tracepoint hit context's tracepoint type.
17596 (handle_tracepoint_bkpts): New.
17597 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17598 type. Add comment about fast tracepoints.
17599 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17600 non-existing action_str field.
17601 (get_context_regcache): Handle fast tracepoints.
17602 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17603 to the regcache.
17604 (fast_tracepoint_from_jump_pad_address): New.
17605 (fast_tracepoint_from_ipa_tpoint_address): New.
17606 (collecting_t): New.
17607 (force_unlock_trace_buffer): New.
17608 (fast_tracepoint_collecting): New.
17609 (collecting): New.
17610 (gdb_collect): New.
17611 (write_inferior_data_ptr): New.
17612 (target_tp_heap): New.
17613 (target_malloc): New.
17614 (download_agent_expr): New.
17615 (UALIGN): New.
17616 (download_tracepoints): New.
17617 (download_trace_state_variables): New.
17618 (upload_fast_traceframes): New.
17619 (IPA_FIRST_TRACEFRAME): New.
17620 (IPA_NEXT_TRACEFRAME_1): New.
17621 (IPA_NEXT_TRACEFRAME): New.
17622 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17623 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17624 (gdb_jump_pad_buffer_end): New.
17625 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17626 (initialize_tracepoint): Adjust.
17627 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17628 buffer. Initialize the low module.
17629 * utils.c (PREFIX, TOOLNAME): New.
17630 (malloc_failure): Use PREFIX.
17631 (error): In the IPA, an error causes an exit.
17632 (fatal, warning): Use PREFIX.
17633 (internal_error): Use TOOLNAME.
17634 (NUMCELLS): Increase to 10.
17635 * configure, config.in: Regenerate.
17636
d149dd1d
PA
176372010-06-01 Pedro Alves <pedro@codesourcery.com>
17638
17639 * server.c (handle_query) <qSupported>: Do two passes over the
17640 qSupported string to avoid nesting strtok.
17641
f6528abd
JK
176422010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17643
17644 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17645 (CDEPS): New.
17646 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17647 -Wl,--dynamic-list.
17648 * configure: Regenerate.
17649 * proc-service.list: New.
17650
ca2a87a0
JK
176512010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17652
17653 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17654 New comment.
17655
363a6e9f
OS
176562010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17657
17658 * gdbreplay.c (remote_open): Check error return from socket() call by
17659 its equality to -1 not by it being negative.
17660 * remote-utils.c (remote_open): Likewise.
17661
d23b6cb1
PA
176622010-05-23 Pedro Alves <pedro@codesourcery.com>
17663
17664 * config.h: Regenerate.
17665
28d3cf85
MK
176662010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17667
17668 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17669 doesn't provide PTRACE_GET_THREAD_AREA.
17670
fea36a59
MK
176712010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17672
17673 * linux-m68k-low.c: Include <asm/ptrace.h>
17674 (ps_get_thread_area): Implement.
17675
24b066ba
DE
176762010-05-03 Doug Evans <dje@google.com>
17677
17678 * event-loop.c (struct callback_event): New struct.
17679 (callback_list): New global.
17680 (append_callback_event, delete_callback_event): New functions.
17681 (process_callback): New function.
17682 (start_event_loop): Call it.
17683 * remote-utils.c (NOT_SCHEDULED): Define.
17684 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17685 moved out of readchar.
17686 (readchar): Rewrite. Call reschedule before returning.
17687 (reset_readchar): New function.
17688 (remote_close): Call it.
17689 (process_remaining, reschedule): New functions.
17690 * server.h (callback_handler_func): New typedef.
17691 (append_callback_event, delete_callback_event): Declare.
17692
9836d6ea
PA
176932010-05-03 Pedro Alves <pedro@codesourcery.com>
17694
17695 * proc-service.c (ps_pglobal_lookup): Use
17696 thread_db_look_up_one_symbol.
17697 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17698 parameter. Use it instead of all_symbols_looked_up.
17699 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17700 field.
17701 (all_symbols_looked_up): Don't declare.
17702 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17703 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17704 field.
17705 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17706 Set all_symbols_looked_up here.
17707 (thread_db_look_up_one_symbol): New.
17708 (thread_db_get_tls_address): Adjust.
17709 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17710 thread_db object on the heap, and tentatively set it in the
17711 process structure.
17712 (thread_db_init): Don't set all_symbols_looked_up here.
17713 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17714
7984d532
PA
177152010-05-03 Pedro Alves <pedro@codesourcery.com>
17716
17717 * linux-low.c (linux_kill, linux_detach): Adjust.
17718 (status_pending_p_callback): Remove redundant statement. Check
17719 for !TARGET_WAITIKIND_IGNORE, instead of
17720 TARGET_WAITKIND_STOPPED.
17721 (handle_tracepoints): Make sure LWP is locked. Adjust.
17722 (linux_wait_for_event_1): Adjust.
17723 (linux_cancel_breakpoints): New.
17724 (unsuspend_one_lwp): New.
17725 (unsuspend_all_lwps): New.
17726 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17727 (send_sigstop_callback): Change return type to int, add new
17728 `except' parameter and handle it.
17729 (suspend_and_send_sigstop_callback): New.
17730 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17731 pass them down. If SUSPEND, also increment the lwp's suspend
17732 count.
17733 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17734 (need_step_over_p): Don't consider suspended LWPs.
17735 (start_step_over): Adjust.
17736 (proceed_one_lwp): Change return type to int, add new `except'
17737 parameter and handle it.
17738 (unsuspend_and_proceed_one_lwp): New.
17739 (proceed_all_lwps): Use find_inferior instead of
17740 for_each_inferior.
17741 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17742 also decrement the suspend count of LWPs. Pass `except' down,
17743 instead of hacking its suspend count.
17744 (linux_pause_all): Add `freeze' parameter. Adjust.
17745 (linux_unpause_all): New.
17746 (linux_target_ops): Install linux_unpause_all.
17747 * server.c (handle_status): Adjust.
17748 * target.h (struct target_ops): New fields `unpause_all' and
17749 `cancel_breakpoints'. Add new parameter to `pause_all'.
17750 (pause_all): Add new `freeze' parameter.
17751 (unpause_all): New.
17752 (cancel_breakpoints): New.
17753 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17754 cancel breakpoints.
17755 (cmd_qtstart): Pause threads.
17756 (stop_tracing): Pause threads, and cancel breakpoints.
17757 * win32-low.c (win32_target_ops): Adjust.
17758
e471f25b
PA
177592010-05-03 Pedro Alves <pedro@codesourcery.com>
17760
17761 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17762 the inferior right away from here...
17763 (linux_wait_1): ... to here, and adjust to check the thread's
17764 last_resume_kind instead of the lwp's step or stop_expected flags.
17765
1915ef4f
PA
177662010-05-02 Pedro Alves <pedro@codesourcery.com>
17767
17768 * README: Use consistent `GDB' and `GDBserver' spellings.
17769
f9e39928
PA
177702010-05-02 Pedro Alves <pedro@codesourcery.com>
17771
17772 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17773 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17774 (linux_detach_one_lwp): Assume the lwp is stopped.
17775 (any_thread_of): Delete.
17776 (linux_detach): Stop all lwps here. Don't blindly delete all
17777 breakpoints.
17778 (delete_lwp_callback): New.
17779 (linux_mourn): Delete all lwps of the process that is gone.
17780 (linux_wait_1): Don't delete the last lwp of the process here.
17781 * mem-break.h (mark_breakpoints_out): Declare.
17782 * mem-break.c (mark_breakpoints_out): New.
17783 (free_all_breakpoints): Use it.
17784 * server.c (handle_target_event): If the process is gone, mark
17785 breakpoints out.
17786 * thread-db.c (struct thread_db) <create_bp>: New field.
17787 (thread_db_enable_reporting): Fix prototype. Store a thread event
17788 breakpoint reference in the thread_db struct.
17789 (thread_db_load_search): Clear the thread_db object.
17790 (try_thread_db_load_1): Ditto.
17791 (switch_to_process): New.
17792 (disable_thread_event_reporting): Use it.
17793 (remove_thread_event_breakpoints): New.
17794 (thread_db_detach, thread_db_mourn): Use it.
17795
1e7fc18c
PA
177962010-05-01 Pedro Alves <pedro@codesourcery.com>
17797
17798 * linux-low.c (linux_enable_event_reporting): New.
17799 (linux_wait_for_event_1, handle_extended_wait): Use it.
17800
02fc4de7
PA
178012010-04-30 Pedro Alves <pedro@codesourcery.com>
17802
17803 * linux-low.c (linux_kill_one_lwp, linux_kill)
17804 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17805 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17806 SIGSTOP even if the LWP is stopped.
17807 (send_sigstop_callback): New.
17808 (stop_all_lwps): Use send_sigstop_callback instead.
17809 (linux_resume_one_thread): Adjust.
17810 (proceed_one_lwp): Still proceed an LWP that the client has
17811 requested to stop, if we haven't reported it as stopped yet. Make
17812 sure that LWPs the client want stopped, have a pending SIGSTOP.
17813
bc3b5632
DE
178142010-04-26 Doug Evans <dje@google.com>
17815
ae1ada35
DE
17816 * server.c (handle_general_set): Make static.
17817
bc3b5632
DE
17818 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17819 Print received char after testing for error/eof instead of before.
17820 (input_interrupt): Tweak comment.
17821
65730243
DE
178222010-04-23 Doug Evans <dje@google.com>
17823
17824 * server.c (start_inferior): Print inferior argv if --debug.
17825
a8ae7dc0
AR
178262010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17827
17828 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17829 * nto-x86-low.c: Include server.h
17830
1c07cc19
PM
178312010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17832
17833 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17834 be consistent with other sources of this directory.
17835 (init_registers_amd64): Correct name of source file of this function
17836 in the comment.
17837
e0a61e09
PM
178382010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17839
17840 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17841 64-bit executables.
17842
54709339
PM
178432010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17844
17845 * win32-i386-low.c: Add 64-bit support.
17846 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17847 (init_registers_amd64): Declare.
17848 (mappings): Add 64-bit version of array.
17849 (init_windows_x86): New function.
17850 (the_low_target): Change init_arch field to init_windows_x86.
17851
e8f0053d
PM
178522010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17853
17854 * win32-low.c: Adapt to support also 64-bit architecture.
17855 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17856 (get_image_name): Use SIZE_T type for local variable `done'.
17857 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17858 (toolhelp_get_dll_name): Idem.
17859 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17860 Use uintptr_t typecast to avoid warning.
17861 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17862 (handle_exception): Use phex_nz to avoid warning.
17863 (win32_wait): Remove unused local variable `process'.
17864
c481e77e
PM
178652010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17866
17867 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17868 `amd64-avx.o'.
17869
12ea4b69
PM
178702010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17871
17872 * configure.ac: Use `ws2_32' library for srv_mingw.
17873 * configure: Regenerate.
17874 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17875 * remote-utils.c: Likewise.
17876
f6d1620c
L
178772010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17878
17879 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17880 if __x86_64__ is defined.
17881
8e642873
PM
178822010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17883
17884 * configure: Regenerate.
17885
711e434b
PM
178862010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17887
17888 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17889 * target.h (target_ops): New get_tib_address field.
17890 * win32-low.h (win32_thread_info): Add thread_local_base field.
17891 * win32-low.c (child_add_thread): Add tlb argument.
17892 Set thread_local_base field to TLB.
17893 (get_child_debug_event): Adapt to child_add_thread change.
17894 (win32_get_tib_address): New function.
17895 (win32_target_ops): Set get_tib_address field to
17896 win32_get_tib_address.
17897 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17898
505106cd
PA
178992010-04-12 Pedro Alves <pedro@codesourcery.com>
17900
505106cd
PA
17901 * linux-low.c (linux_mourn): Also remove the process.
17902 * server.c (handle_target_event): Don't remove the process here.
17903 * nto-low.c (nto_mourn): New.
17904 (nto_target_ops): Install it.
17905 * spu-low.c (spu_mourn): New.
17906 (spu_target_ops): Install it.
17907 * win32-low.c (win32_mourn): New.
17908 (win32_target_ops): Install it.
17909
e8470a06
PA
179102010-04-12 Pedro Alves <pedro@codesourcery.com>
17911
17912 * server.h (buffer_xml_printf): Remove redundant `;'.
17913
45ba0d02
PA
179142010-04-12 Pedro Alves <pedro@codesourcery.com>
17915
17916 * regcache.c (set_register_cache): Invalidate regcaches before
17917 changing the register cache layout.
17918 (regcache_invalidate_one): Allow a NULL regcache.
17919 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17920 regcaches before changing the register cache layout or the target
17921 regsets.
17922
59e04013
L
179232010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17924
17925 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17926 variable warning on Linux/x86-64.
17927
8336d594
PA
179282010-04-11 Pedro Alves <pedro@codesourcery.com>
17929
17930 GDBserver disconnected tracing support.
17931
17932 * linux-low.c (linux_remove_process): Delete.
17933 (add_lwp): Don't set last_resume_kind here.
17934 (linux_kill): Use `mourn'.
17935 (linux_detach): Use `thread_db_detach', and `mourn'.
17936 (linux_mourn): New.
17937 (linux_attach_lwp_1): Adjust comment.
17938 (linux_attach): last_resume_kind moved the thread_info; adjust.
17939 (status_pending_p_callback): Adjust.
17940 (linux_wait_for_event_1): Adjust.
17941 (count_events_callback, select_singlestep_lwp_callback)
17942 (select_event_lwp_callback, cancel_breakpoints_callback)
17943 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17944 (proceed_one_lwp): Adjust.
17945 (linux_async): Add debug output.
17946 (linux_thread_stopped): New.
17947 (linux_pause_all): New.
17948 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17949 linux_pause_all.
17950 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17951 (thread_db_free): Delete declaration.
17952 (thread_db_detach, thread_db_mourn): Declare.
17953 * thread-db.c (thread_db_init): Use thread_db_mourn.
17954 (thread_db_free): Delete, split in two.
17955 (disable_thread_event_reporting): New.
17956 (thread_db_detach): New.
17957 (thread_db_mourn): New.
17958
17959 * server.h (struct thread_info) <last_resume_kind>: New field.
17960 <attached>: Add comment.
17961 <gdb_detached>: New field.
17962 (handler_func): Change return type to int.
17963 (handle_serial_event, handle_target_event): Ditto.
17964 (gdb_connected): Declare.
17965 (tracing): Delete.
17966 (disconnected_tracing): Declare.
17967 (stop_tracing): Declare.
17968
17969 * server.c (handle_query) <qSupported>: Report support for
17970 disconnected tracing.
17971 (queue_stop_reply_callback): Account for running threads.
17972 (gdb_wants_thread_stopped): New.
17973 (gdb_wants_all_threads_stopped): New.
17974 (gdb_reattached_process): New.
17975 (handle_status): Clear the `gdb_detached' flag of all processes.
17976 In all-stop, stop all threads.
17977 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17978 (process_serial_event): If the remote connection breaks, or if an
17979 exit was forced with "monitor exit", force an event loop exit.
17980 Handle disconnected tracing on detach.
17981 (handle_serial_event): Adjust.
17982 (handle_target_event): If GDB isn't connected, forward events back
17983 to the inferior, unless the last process exited, in which case,
17984 exit gdbserver. Adjust interface.
17985
17986 * remote-utils.c (remote_open): Don't block in accept. Instead
17987 register an event loop source on the listen socket file
17988 descriptor. Refactor bits into ...
17989 (listen_desc): ... this new global.
17990 (gdb_connected): ... this new function.
17991 (enable_async_notification): ... this new function.
17992 (handle_accept_event): ... this new function.
17993 (remote_close): Clear remote_desc.
17994
17995 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17996
17997 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17998 New fields.
17999 (mourn_inferior): Define.
18000 (target_process_qsupported): Avoid the dangling else problem.
18001 (thread_stopped): Define.
18002 (pause_all): Define.
18003 (target_waitstatus_to_string): Declare.
18004 * target.c (target_waitstatus_to_string): New.
18005
18006 * tracepoint.c (tracing): Make extern.
18007 (disconnected_tracing): New.
18008 (stop_tracing): Make extern. Handle tracing stops due to GDB
18009 disconnecting.
18010 (cmd_qtdisconnected): New.
18011 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18012 (handle_tracepoint_general_set): Handle QTDisconnected.
18013
18014 * event-loop.c (event_handler_func): Change return type to int.
18015 (process_event): Bail out if the event handler wants the event
18016 loop to stop.
18017 (handle_file_event): Ditto.
18018 (start_event_loop): Bail out if the event handler wants the event
18019 loop to stop.
18020
18021 * nto-low.c (nto_target_ops): Adjust.
18022 * spu-low.c (spu_wait): Don't remove the process here.
18023 (spu_target_ops): Adjust.
18024 * win32-low.c (win32_wait): Don't remove the process here.
18025 (win32_target_ops): Adjust.
18026
5d267c4c
PA
180272010-04-11 Pedro Alves <pedro@codesourcery.com>
18028
18029 * regcache.c (realloc_register_cache): Invalidate inferior's
18030 regcache before recreating it.
18031
623ccd72
PA
180322010-04-09 Pedro Alves <pedro@codesourcery.com>
18033
18034 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18035
219f2f23
PA
180362010-04-09 Stan Shebs <stan@codesourcery.com>
18037 Pedro Alves <pedro@codesourcery.com>
18038
18039 * server.h (LONGEST): New.
18040 (struct thread_info) <while_stepping>: New field.
18041 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18042 Declare.
18043 (initialize_tracepoint, handle_tracepoint_general_set)
18044 (handle_tracepoint_query, tracepoint_finished_step)
18045 (tracepoint_was_hit, release_while_stepping_state_list):
18046 (current_traceframe): Declare.
18047 * server.c (handle_general_set): Handle tracepoint packets.
18048 (read_memory): New.
18049 (write_memory): New.
18050 (handle_search_memory_1): Use read_memory.
18051 (handle_query): Report support for conditional tracepoints, trace
18052 state variables, and tracepoint sources. Handle tracepoint
18053 queries.
18054 (main): Initialize the tracepoints module.
18055 (process_serial_event): Handle traceframe reads/writes.
18056
18057 * linux-low.c (handle_tracepoints): New.
18058 (linux_wait_1): Call it.
18059 (linux_resume_one_lwp): Handle while-stepping.
18060 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18061 (linux_target_ops): Install them.
18062 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18063 New field.
18064 * linux-x86-low.c (x86_supports_tracepoints): New.
18065 (the_low_target). Install it.
18066
18067 * mem-break.h (delete_breakpoint): Declare.
18068 * mem-break.c (delete_breakpoint): Make external.
18069
18070 * target.h (struct target_ops): Add `supports_tracepoints',
18071 `read_pc', and `write_pc' fields.
18072 (target_supports_tracepoints): Define.
18073 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18074 (phex_nz): New.
18075
18076 * regcache.h (struct regcache) <registers_owned>: New field.
18077 (init_register_cache, regcache_cpy): Declare.
18078 (regcache_read_pc, regcache_write_pc): Declare.
18079 (register_cache_size): Declare.
18080 (supply_regblock): Declare.
18081 * regcache.c (init_register_cache): New.
18082 (new_register_cache): Use it.
18083 (regcache_cpy): New.
18084 (register_cache_size): New.
18085 (supply_regblock): New.
18086 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18087
219f2f23
PA
18088 * tracepoint.c: New.
18089
18090 * Makefile.in (OBS): Add tracepoint.o.
18091 (tracepoint.o): New rule.
18092
3a13a53b
L
180932010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18094
18095 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18096 (i386-mmx.o): New.
18097 (i386-mmx.c): Likewise.
18098 (i386-mmx-linux.o): Likewise.
18099 (i386-mmx-linux.c): Likewise.
18100
18101 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18102 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18103 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18104 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18105
18106 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18107 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18108 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18109
1570b33e
L
181102010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18111
18112 * Makefile.in (clean): Updated.
18113 (i386-avx.o): New.
18114 (i386-avx.c): Likewise.
18115 (i386-avx-linux.o): Likewise.
18116 (i386-avx-linux.c): Likewise.
18117 (amd64-avx.o): Likewise.
18118 (amd64-avx.c): Likewise.
18119 (amd64-avx-linux.o): Likewise.
18120 (amd64-avx-linux.c): Likewise.
18121
18122 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18123 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18124 (srv_amd64_regobj): Add amd64-avx.o.
18125 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18126 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18127 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18128 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18129 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18130 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18131 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18132
18133 * i387-fp.c: Include "i386-xstate.h".
18134 (i387_xsave): New.
18135 (i387_cache_to_xsave): Likewise.
18136 (i387_xsave_to_cache): Likewise.
18137 (x86_xcr0): Likewise.
18138
18139 * i387-fp.h (i387_cache_to_xsave): Likewise.
18140 (i387_xsave_to_cache): Likewise.
18141 (x86_xcr0): Likewise.
18142
18143 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18144 * linux-crisv32-low.c (target_regsets): Likewise.
18145 * linux-m68k-low.c (target_regsets): Likewise.
18146 * linux-mips-low.c (target_regsets): Likewise.
18147 * linux-ppc-low.c (target_regsets): Likewise.
18148 * linux-s390-low.c (target_regsets): Likewise.
18149 * linux-sh-low.c (target_regsets): Likewise.
18150 * linux-sparc-low.c (target_regsets): Likewise.
18151 * linux-xtensa-low.c (target_regsets): Likewise.
18152
18153 * linux-low.c: Include <sys/uio.h>.
18154 (regsets_fetch_inferior_registers): Support nt_type.
18155 (regsets_store_inferior_registers): Likewise.
18156 (linux_process_qsupported): New.
18157 (linux_target_ops): Add linux_process_qsupported.
18158
18159 * linux-low.h (regset_info): Add nt_type.
18160 (linux_target_ops): Add process_qsupported.
18161
18162 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18163 and <sys/uio.h>.
18164 (init_registers_i386_avx_linux): New.
18165 (init_registers_amd64_avx_linux): Likewise.
18166 (xmltarget_i386_linux_no_xml): Likewise.
18167 (xmltarget_amd64_linux_no_xml): Likewise.
18168 (PTRACE_GETREGSET): Likewise.
18169 (PTRACE_SETREGSET): Likewise.
18170 (x86_fill_xstateregset): Likewise.
18171 (x86_store_xstateregset): Likewise.
18172 (use_xml): Likewise.
18173 (x86_linux_update_xmltarget): Likewise.
18174 (x86_linux_process_qsupported): Likewise.
18175 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18176 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18177 init_registers_i386_linux here. Call
18178 x86_linux_update_xmltarget.
18179 (the_low_target): Add x86_linux_process_qsupported.
18180
18181 * server.c (handle_query): Call target_process_qsupported.
18182
18183 * target.h (target_ops): Add process_qsupported.
18184 (target_process_qsupported): New.
18185
fc7238bb
PA
181862010-04-03 Pedro Alves <pedro@codesourcery.com>
18187
18188 * inferiors.c (add_thread): Set last_status kind to
18189 TARGET_WAITKIND_IGNORE.
18190 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18191 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18192 (linux_wait_1): Move `thread' local definition to block that uses
18193 it. Don't NULL initialize `event_child'.
18194 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18195 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18196 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18197
bdabb078
PA
181982010-04-01 Pedro Alves <pedro@codesourcery.com>
18199
18200 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18201 an extended waitstatus, or by a watchpoint.
18202 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18203 thread was stepping or has been stopped by a watchpoint.
18204
d3bbe7a0
PA
182052010-04-01 Pedro Alves <pedro@codesourcery.com>
18206
18207 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18208 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18209 of another, then delete the previous, and validate all
18210 breakpoints.
18211 (validate_inserted_breakpoint): New.
18212 (delete_disabled_breakpoints): New.
18213 (validate_breakpoints): New.
18214 (check_mem_read): Validate breakpoints before trusting their
18215 shadow. Delete disabled breakpoints.
18216 (check_mem_write): Validate breakpoints before trusting they
18217 should be inserted. Delete disabled breakpoints.
18218 * mem-break.h (validate_breakpoints):
18219 * server.c (handle_query): Validate breakpoints when we see a
18220 qSymbol query.
18221
8b07ae33
PA
182222010-04-01 Pedro Alves <pedro@codesourcery.com>
18223
18224 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18225 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18226 if we could tell there's a GDB breakpoint at stop_pc.
18227 (need_step_over_p): Don't do a step over if we find a GDB
18228 breakpoint at the resume PC.
18229
18230 * mem-break.c (struct raw_breakpoint): New.
18231 (enum bkpt_type): New type `gdb_breakpoint'.
18232 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18233 fields. New field `raw'.
18234 (find_raw_breakpoint_at): New.
18235 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18236 breakpoint instead.
18237 (set_breakpoint_at): Adjust.
18238 (delete_raw_breakpoint): New.
18239 (release_breakpoint): New.
18240 (delete_breakpoint): Rename to...
18241 (delete_breakpoint_1): ... this. Add proc parameter. Use
18242 release_breakpoint. Return ENOENT.
18243 (delete_breakpoint): Reimplement.
18244 (find_breakpoint_at): Delete.
18245 (find_gdb_breakpoint_at): New.
18246 (delete_breakpoint_at): Delete.
18247 (set_gdb_breakpoint_at): New.
18248 (delete_gdb_breakpoint_at): New.
18249 (gdb_breakpoint_here): New.
18250 (set_reinsert_breakpoint): Use release_breakpoint.
18251 (uninsert_breakpoint): Rename to ...
18252 (uninsert_raw_breakpoint): ... this.
18253 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18254 (reinsert_raw_breakpoint): Change parameter type to
18255 raw_breakpoint.
18256 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18257 instead.
18258 (check_breakpoints): Adjust. Use release_breakpoint.
18259 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18260 (breakpoint_inserted_here): Ditto.
18261 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18262 Don't trust the breakpoint's shadow if it is not inserted.
18263 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18264 (delete_all_breakpoints): Adjust.
18265 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18266 use delete_breakpoint_1.
18267
18268 * mem-break.h (breakpoints_supported): Delete declaration.
18269 (set_gdb_breakpoint_at): Declare.
18270 (gdb_breakpoint_here): Declare.
18271 (delete_breakpoint_at): Delete.
18272 (delete_gdb_breakpoint_at): Declare.
18273
18274 * server.h (struct raw_breakpoint): Forward declare.
18275 (struct process_info): New field `raw_breakpoints'.
18276
18277 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18278 breakpoints.
18279
6bf5e0ba
PA
182802010-03-24 Pedro Alves <pedro@codesourcery.com>
18281
18282 * linux-low.c (status_pending_p_callback): Fix comment.
18283 (linux_wait_for_event_1): Move most of the internal breakpoint
18284 handling from here...
18285 (linux_wait_1): ... to here.
18286 (count_events_callback): New.
18287 (select_singlestep_lwp_callback): New.
18288 (select_event_lwp_callback): New.
18289 (cancel_breakpoints_callback): New.
18290 (select_event_lwp): New.
18291 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18292 priority to all LWPs that have had events that should be reported
18293 to the client. Cancel breakpoints when about to reporting the
18294 event to the client, not while stopping lwps. No longer cancel
18295 finished single-steps here.
18296 (cancel_finished_single_step): Delete.
18297 (cancel_finished_single_steps): Delete.
18298
414a389f
PA
182992010-03-24 Pedro Alves <pedro@codesourcery.com>
18300
18301 * mem-break.c (enum bkpt_type): New.
18302 (struct breakpoint): New field `type'.
18303 (set_breakpoint_at): Change return type to struct breakpoint
18304 pointer. Set type to `other_breakpoint' by default.
18305 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18306 in the breakpoint list.
18307 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18308 (reinsert_breakpoint): Rename to ...
18309 (reinsert_raw_breakpoint): ... this.
18310 (reinsert_breakpoints_at): Adjust.
18311 * mem-break.h (struct breakpoint): Declare.
18312 (set_breakpoint_at): Change return type to struct breakpoint
18313 pointer.
18314
2280c721
PA
183152010-03-24 Pedro Alves <pedro@codesourcery.com>
18316
18317 * server.c (handle_query): Assign, not compare.
18318
d50171e4
PA
183192010-03-24 Pedro Alves <pedro@codesourcery.com>
18320
18321 Teach linux gdbserver to step-over-breakpoints.
18322
18323 * linux-low.c (can_hardware_single_step): New.
18324 (supports_breakpoints): New.
18325 (handle_extended_wait): If stopping threads, read the stop pc of
18326 the new cloned LWP.
18327 (get_pc): New.
18328 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18329 low target doesn't support retrieving the PC.
18330 (add_lwp): Set last_resume_kind to resume_continue.
18331 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18332 (linux_attach): Don't clear stop_expected. Set the lwp's
18333 last_resume_kind to resume_stop.
18334 (linux_detach_one_lwp): Don't check for removed breakpoints.
18335 (check_removed_breakpoint): Delete.
18336 (status_pending_p): Rename to ...
18337 (status_pending_p_callback): ... this. Don't check for removed
18338 breakpoints. Don't consider threads that are stopped from GDB's
18339 perspective.
18340 (linux_wait_for_lwp): Always read the stop_pc here.
18341 (cancel_breakpoint): New.
18342 (step_over_bkpt): New global.
18343 (linux_wait_for_event_1): Implement stepping over breakpoints.
18344 (gdb_wants_lwp_stopped): New.
18345 (gdb_wants_all_stopped): New.
18346 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18347 single-step traps here. Store the thread's last reported target
18348 wait status.
18349 (send_sigstop): Don't clear stop_expected. Always set it,
18350 instead.
18351 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18352 (cancel_finished_single_step): New.
18353 (cancel_finished_single_steps): New.
18354 (wait_for_sigstop): Don't cancel finished single-step traps here.
18355 (linux_resume_one_lwp): Don't check for removed breakpoints.
18356 Don't set `step' on non-hardware step archs.
18357 (linux_set_resume_request): Ignore resume_stop requests if already
18358 stopping or stopped. Set the lwp's last_resume_kind.
18359 (resume_status_pending_p): Don't check for removed breakpoints.
18360 (need_step_over_p): New.
18361 (start_step_over): New.
18362 (finish_step_over): New.
18363 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18364 requests. Clear the thread's last reported target waitstatus.
18365 Don't use the `suspended' flag. Don't consider pending breakpoints.
18366 (linux_resume): Start a step-over if necessary.
18367 (proceed_one_lwp): New.
18368 (proceed_all_lwps): New.
18369 (unstop_all_lwps): New.
18370 * linux-low.h (struct lwp_info): Rewrite comment for the
18371 `suspended' flag. Add the `stop_pc' field. Delete the
18372 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18373 Add `'last_resume_kind' and `need_step_over' fields.
18374 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18375 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18376 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18377 (set_raw_breakpoint_at): New.
18378 (set_breakpoint_at): Rewrite to use it.
18379 (reinsert_breakpoint_handler): Delete.
18380 (set_reinsert_breakpoint): New.
18381 (reinsert_breakpoint_by_bp): Delete.
18382 (delete_reinsert_breakpoints): New.
18383 (uninsert_breakpoint): Rewrite.
18384 (uninsert_breakpoints_at): New.
18385 (reinsert_breakpoint): Rewrite.
18386 (reinsert_breakpoints_at): New.
18387 (check_breakpoints): Rewrite.
18388 (breakpoint_here): New.
18389 (breakpoint_inserted_here): New.
18390 (check_mem_read): Adjust.
18391 * mem-break.h (breakpoints_supported, breakpoint_here)
18392 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18393 (reinsert_breakpoint_by_bp): Delete declaration.
18394 (delete_reinsert_breakpoints): Declare.
18395 (reinsert_breakpoint): Delete declaration.
18396 (reinsert_breakpoints_at): Declare.
18397 (uninsert_breakpoint): Delete declaration.
18398 (uninsert_breakpoints_at): Declare.
18399 (check_breakpoints): Adjust prototype.
18400 * server.h: Adjust include order.
18401 (struct thread_info): Declare here. Add a `last_status' field.
18402
30ba68cb
MS
184032010-03-23 Michael Snyder <msnyder@vmware.com>
18404
18405 * server.c (crc32): New function.
18406 (handle_query): Add handling for 'qCRC:' request.
18407
b9a881c2
PA
184082010-03-23 Pedro Alves <pedro@codesourcery.com>
18409
18410 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18411 lwp had been stopped by a watchpoint.
18412
e92d13d5
PA
184132010-03-16 Pedro Alves <pedro@codesourcery.com>
18414
18415 * server.h (internal_error): Declare.
18416 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18417 * utils.c (internal_error): New function.
18418
64daa791
AS
184192010-03-15 Andreas Schwab <schwab@redhat.com>
18420
18421 * configure.srv: Fix typo setting srv_regobj.
18422
f52cd8cd
PA
184232010-03-15 Pedro Alves <pedro@codesourcery.com>
18424
18425 * linux-low.c (fetch_register): Avoid passing a non string literal
18426 format to `error'.
18427 (usr_store_inferior_registers): Ditto.
18428
93ae6fdc
PA
184292010-03-14 Pedro Alves <pedro@codesourcery.com>
18430
18431 * linux-low.c (linux_write_memory): Bail out early if peeking
18432 memory failed.
18433
c3adc08c
PA
184342010-03-14 Pedro Alves <pedro@codesourcery.com>
18435
18436 * linux-low.h (struct lwp_info): New fields
18437 `stopped_by_watchpoint' and `stopped_data_address'.
18438 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18439 here, and cache them in the lwp object.
18440 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18441 directly.
18442 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18443 field.
18444 (linux_stopped_by_watchpoint): Rewrite.
18445 (linux_stopped_data_address): Rewrite.
18446
bce522a2
PA
184472010-03-06 Simo Melenius <simo.melenius@iki.fi>
18448
18449 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18450 switching the current inferior, not before.
18451
90884b2b
L
184522010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18453
18454 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18455 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18456 i386-linux.c and amd64-linux.c.
18457 (reg-i386.o): Removed.
18458 (reg-i386.c): Likewise.
18459 (reg-i386-linux.o): Likewise.
18460 (reg-i386-linux.c): Likewise.
18461 (reg-x86-64.o): Likewise.
18462 (reg-x86-64.c): Likewise.
18463 (reg-x86-64-linux.o): Likewise.
18464 (reg-x86-64-linux.c): Likewise.
18465 (i386.o): New.
18466 (i386.c): Likewise.
18467 (i386-linux.o): Likewise.
18468 (i386-linux.c): Likewise.
18469 (amd64.o): Likewise.
18470 (amd64.c): Likewise.
18471 (amd64-linux.o): Likewise.
18472 (amd64-linux.c): Likewise.
18473
18474 * configure.srv (srv_i386_regobj): New.
18475 (srv_i386_linux_regobj): Likewise.
18476 (srv_amd64_regobj): Likewise.
18477 (srv_amd64_linux_regobj): Likewise.
18478 (srv_i386_32bit_xmlfiles): Likewise.
18479 (srv_i386_64bit_xmlfiles): Likewise.
18480 (srv_i386_xmlfiles): Likewise.
18481 (srv_amd64_xmlfiles): Likewise.
18482 (srv_i386_linux_xmlfiles): Likewise.
18483 (srv_amd64_linux_xmlfiles): Likewise.
18484 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18485 srv_xmlfiles to $srv_i386_xmlfiles.
18486 (i[34567]86-*-mingw32ce*): Likewise.
18487 (i[34567]86-*-mingw*): Likewise.
18488 (i[34567]86-*-nto*): Likewise.
18489 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18490 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18491 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18492 (x86_64-*-linux*): Likewise.
18493
18494 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18495 (init_registers_amd64_linux): New.
18496 (x86_arch_setup): Replace init_registers_x86_64_linux with
18497 init_registers_amd64_linux.
18498
193f13e6
MK
184992010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18500
18501 * configure.ac: Check for libdl. If it is not available link against
18502 static libthread_db.
18503 * configure: Regenerate.
18504
85d721b8
PA
185052010-02-22 Pedro Alves <pedro@codesourcery.com>
18506
18507 PR9605
18508
18509 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18510 handing a read watchpoint.
18511 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18512
6076632b
DE
185132010-02-12 Doug Evans <dje@google.com>
18514
18515 * linux-low.c (linux_supports_tracefork_flag): Document.
18516 (linux_look_up_symbols): Add comment.
18517
3327ccf7
L
185182010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18519
18520 * regcache.c (supply_register): Clear regcache if buf is NULL.
18521
0718675c 185222010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18523 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18524
18525 * inferiors.c (find_inferior): Add function documentation.
18526 (unloaded_dll): Handle the case where the unloaded dll has not
18527 been previously registered in the dll list.
18528
177321bd
DJ
185292010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18530
18531 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18532 (thumb2_breakpoint): New.
18533 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18534
2b009048
DJ
185352010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18536
18537 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18538 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18539 breakpoints.
18540
3be029c7
PA
185412010-01-21 Pedro Alves <pedro@codesourcery.com>
18542
18543 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18544
18f5de3b
JK
185452010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18546
18547 * linux-s390-low.c (s390_collect_ptrace_register)
18548 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18549
3743bb4f
DE
185502010-01-21 Doug Evans <dje@google.com>
18551
14ce3065
DE
18552 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18553 (PTRACE_ARG4_TYPE): New macro.
18554 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18555 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18556 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18557 (usr_store_inferior_registers): Ditto.
18558 (linux_read_memory, linux_write_memory): Ditto.
18559 (linux_test_for_tracefork): Ditto.
18560
3743bb4f
DE
18561 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18562 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18563
8b315be5
PA
185642010-01-21 Pedro Alves <pedro@codesourcery.com>
18565
18566 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18567 target.
18568
85492558
PA
185692010-01-21 Pedro Alves <pedro@codesourcery.com>
18570
18571 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18572 prototype to take a regcache. Adjust.
18573
442ea881
PA
185742010-01-20 Pedro Alves <pedro@codesourcery.com>
18575
18576 * regcache.h (struct thread_info): Forward declare.
18577 (struct regcache): New.
18578 (new_register_cache): Adjust prototype.
18579 (get_thread_regcache): Declare.
18580 (free_register_cache): Adjust prototype.
18581 (registers_to_string, registers_from_string): Ditto.
18582 (supply_register, supply_register_by_name, collect_register)
18583 (collect_register_as_string, collect_register_by_name): Ditto.
18584 * regcache.c (struct inferior_regcache_data): Delete.
18585 (get_regcache): Rename to ...
18586 (get_thread_regcache): ... this. Adjust. Switch inferior before
18587 fetching registers.
18588 (regcache_invalidate_one): Adjust.
18589 (regcache_invalidate): Fix prototype.
18590 (new_register_cache): Return the new register cache.
18591 (free_register_cache): Change prototype.
18592 (realloc_register_cache): Adjust.
18593 (registers_to_string): Change prototype to take a regcache. Adjust.
18594 (registers_from_string): Ditto.
18595 (register_data): Ditto.
18596 (supply_register): Ditto.
18597 (supply_register_by_name): Ditto.
18598 (collect_register): Ditto.
18599 (collect_register_as_string): Ditto.
18600 (collect_register_by_name): Ditto.
18601 * server.c (process_serial_event): Adjust.
18602 * linux-low.h (regset_fill_func, regset_store_func): Change
18603 prototype.
18604 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18605 Change prototype.
18606 * linux-low.c (get_stop_pc): Adjust.
18607 (check_removed_breakpoint): Adjust.
18608 (linux_wait_for_event): Adjust.
18609 (linux_resume_one_lwp): Adjust.
18610 (fetch_register): Add regcache parameter. Adjust.
18611 (usr_store_inferior_registers): Ditto.
18612 (regsets_fetch_inferior_registers): Ditto.
18613 (regsets_store_inferior_registers): Ditto.
18614 (linux_fetch_registers, linux_store_registers): Ditto.
18615 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18616 regcache. Adjust.
43aaf8b6
PA
18617 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18618 Ditto.
442ea881
PA
18619 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18620 prototype to take a regcache.
18621 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18622 * remote-utils.c (convert_ascii_to_int, outreg)
18623 (prepare_resume_reply): Change prototype to take a regcache.
18624 Adjust.
18625 * target.h (struct target_ops) <fetch_registers, store_registers>:
18626 Change prototype to take a regcache.
18627 (fetch_inferior_registers, store_inferior_registers): Change
18628 prototype to take a regcache. Adjust.
18629 * proc-service.c (ps_lgetregs): Adjust.
18630 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18631 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18632 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18633 take a regcache. Adjust.
18634 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18635 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18636 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18637 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18638 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18639 (cris_cannot_fetch_register):
18640 (cris_breakpoint_at): Change prototype to take a regcache.
18641 Adjust.
18642 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18643 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18644 to take a regcache. Adjust.
18645 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18646 Adjust.
18647 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18648 take a regcache. Adjust.
18649 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18650 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18651 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18652 * linux-mips-low.c (mips_get_pc):
18653 (mips_set_pc): Change prototype to take a regcache. Adjust.
18654 (mips_reinsert_addr): Adjust.
18655 (mips_collect_register): Change prototype to take a regcache.
18656 Adjust.
18657 (mips_supply_register):
18658 (mips_collect_register_32bit, mips_supply_register_32bit)
18659 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18660 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18661 * linux-ppc-low.c (ppc_supply_ptrace_register)
18662 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18663 (parse_spufs_run): Adjust.
18664 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18665 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18666 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18667 take a regcache. Adjust.
18668 * linux-s390-low.c (s390_collect_ptrace_register)
18669 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18670 (s390_set_pc): Change prototype to take a regcache. Adjust.
18671 (s390_arch_setup): Adjust.
18672 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18673 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18674 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18675 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18676 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18677 regcache. Adjust.
18678 (sparc_breakpoint_at): Adjust.
18679 * linux-xtensa-low.c (xtensa_fill_gregset):
18680 (xtensa_store_gregset):
18681 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18682 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18683 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18684 prototype to take a regcache. Adjust.
18685 * win32-arm-low.c (arm_fetch_inferior_register)
18686 (arm_store_inferior_register): Change prototype to take a
18687 regcache. Adjust.
18688 * win32-i386-low.c (i386_fetch_inferior_register)
18689 (i386_store_inferior_register): Change prototype to take a
18690 regcache. Adjust.
18691 * win32-low.c (child_fetch_inferior_registers)
18692 (child_store_inferior_registers): Change prototype to take a
18693 regcache. Adjust.
18694 (win32_wait): Adjust.
18695 (win32_fetch_inferior_registers): Change prototype to take a
18696 regcache. Adjust.
18697 (win32_store_inferior_registers): Adjust.
18698 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18699 store_inferior_register>: Change prototype to take a regcache.
18700
60c3d7b0
DE
187012010-01-20 Doug Evans <dje@google.com>
18702
18703 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18704 #ifdef.
18705 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18706 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18707
dc146f7c
VP
187082010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18709
18710 * linux-low.c (linux_core_of_thread): New.
18711 (compare_ints, show_process, list_threads): New.
18712 (linux_qxfer_osdata): Report threads and cores.
18713 (linux_target_op): Register linux_core_of_thread.
18714 * remote-utils.c (prepare_resume_reply): Report the core.
18715 (buffer_xml_printf): Support %d specifier.
18716 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18717 New.
18718 (handle_query): Handle qXfer:threads. Announce availability
18719 thereof.
18720 * target.h (struct target_ops): New field core_of_thread.
18721
7803799a
UW
187222010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18723
18724 * Makefile.in (clean): Remove new generated files.
18725 (reg-s390.o, reg-s390.c): Remove rules.
18726 (reg-s390x.o, reg-s390x.c): Likewise.
18727 (s390-linux32.o, s390-linux32.c): Add rules.
18728 (s390-linux64.o, s390-linux64.c): Likewise.
18729 (s390x-linux64.o, s390x-linux64.c): Likewise.
18730 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18731 * linux-s390-low.c: Include <elf.h>.
18732 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18733 (init_registers_s390): Remove prototype.
18734 (init_registers_s390x): Likewise.
18735 (init_registers_s390_linux32): Add prototype.
18736 (init_registers_s390_linux64): Likewise.
18737 (init_registers_s390x_linux64): Likewise.
18738 (s390_num_regs_3264): New define.
18739 (s390_regmap_3264): New global variable.
18740 (s390_cannot_fetch_register): Remove obsolete check.
18741 (s390_cannot_store_register): Likewise.
18742 (s390_collect_ptrace_register): Handle upper/lower register halves.
18743 (s390_supply_ptrace_register): Likewise.
18744 (s390_fill_gregset): Update to register number changes.
18745 (s390_get_hwcap): New routine.
18746 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18747 Install appropriate regmap and register set.
18748
6e7ffa39
JB
187492010-01-01 Joel Brobecker <brobecker@adacore.com>
18750
18751 * server.c (gdbserver_version): Update copyright year to 2010.
18752 * gdbreplay.c (gdbreplay_version): Likewise.
18753
957f3f49
DE
187542009-12-28 Doug Evans <dje@google.com>
18755
18756 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18757 elf/external.h. Include <elf.h> instead but only if necessary.
18758
ca5c370d
PA
187592009-12-28 Pedro Alves <pedro@codesourcery.com>
18760
18761 * linux-low.c (linux_remove_process): Remove `detaching'
18762 parameter. Don't release/detach from thread_db here.
18763 (linux_kill): Release/detach from thread_db here, ...
18764 (linux_detach): ... and here, before actually detaching.
18765 (linux_wait_1): ... and here, when a process exits.
18766 * thread-db.c (any_thread_of): New.
18767 (thread_db_free): Switch the current inferior to a thread of the
18768 passed in process.
18769
4ee62156
DE
187702009-12-21 Doug Evans <dje@google.com>
18771
d90e6a88
DE
18772 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18773
c5f62d5f
DE
18774 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18775 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18776 warning ifndef __NR_tkill. Move setting of errno there too.
18777 Delete unnecessary resetting of errno after syscall.
18778 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18779
10e86dd7
DE
18780 * configure.ac: Check for dladdr.
18781 * config.in: Regenerate.
18782 * configure: Regenerate.
18783 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18784 (try_thread_db_load): Update.
18785
4ee62156
DE
18786 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18787
00f515da
DE
187882009-12-18 Doug Evans <dje@google.com>
18789
e9464885
DE
18790 * event-loop.c: Include unistd.h if it exists.
18791
07d4f67e
DE
18792 * linux-low.c (my_waitpid): Move definition away from being in
18793 between linux_tracefork_child/linux_test_for_tracefork.
18794
00f515da
DE
18795 * gdb_proc_service.h (psaddr_t): Fix type.
18796 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18797 signature to match glibc.
18798
1de1badb
DE
187992009-12-16 Doug Evans <dje@google.com>
18800
18801 * linux-low.c (linux_read_memory): Fix argument to read.
18802
aeeb81d1
PA
188032009-11-26 Pedro Alves <pedro@codesourcery.com>
18804
18805 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18806 events, don't leave current_inferior pointing at null.
18807
10357975
PA
188082009-11-26 Pedro Alves <pedro@codesourcery.com>
18809
18810 * win32-low.c (LOG): Delete.
18811 (OUTMSG): Output to stderr.
18812 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18813 on compile time LOG macro.
18814 (win32_wait): Fix debug output.
18815
cf6e3471
PA
188162009-11-26 Pedro Alves <pedro@codesourcery.com>
18817
18818 * win32-low.c (win32_add_one_solib): If the dll name is
18819 "ntdll.dll", prepend the system directory to the dll path.
18820
0c85e18e
MK
188212009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18822
18823 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18824
9ac544ce 188252009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18826 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18827
18828 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18829 * configure.ac: Check for __mcoldfire__ and set
18830 gdb_cv_m68k_is_coldfire.
18831 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18832 reg-cf.o and reg-m68k.o.
18833 * configure: Regenerated.
18834
fd7dd3e6
PA
188352009-11-16 Pedro Alves <pedro@codesourcery.com>
18836
18837 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18838 Pass it to thread_db_free.
18839 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18840 proper `detaching' argument to linux_remove_process.
18841 * linux-low.h (thread_db_free): Add `detaching' parameter.
18842 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18843 to thread_db_free.
18844 (thread_db_free): Add `detaching' parameter. Only
18845 call td_ta_clear_event if detaching from process.
18846
75aa492e
MK
188472009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18848
18849 * thread-db.c (thread_db_free): Fix typo.
18850
21e1bee4
PP
188512009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18852
18853 PR gdb/10838
18854 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18855
8838b45e
NS
188562009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18857
18858 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18859 with an i686 compiler.
18860 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18861 needed.
18862 * configure: Rebuilt.
18863
8a35fb51
SL
188642009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18865
18866 PR gdb/10783
18867
18868 * server.c (handle_search_memory_1): Correct read_addr initialization
18869 in loop for searching subsequent chunks.
18870
96f15937
PP
188712009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18872
18873 * configure.ac: New --with-libthread-db option.
18874 * thread-db.c: Allow direct dependence on libthread_db.
18875 (thread_db_free): Adjust.
18876 * config.in: Regenerate.
18877 * configure: Likewise.
889bf7c5 18878
5f7d1694
PP
188792009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18880
18881 PR gdb/10757
18882 * thread-db.c (attach_thread): New function.
18883 (maybe_attach_thread): Return success/failure.
18884 (find_new_threads_callback): Adjust.
889bf7c5
PA
18885 (thread_db_find_new_threads): Loop until no new threads.
18886
88e3b899
PA
188872009-10-13 Pedro Alves <pedro@codesourcery.com>
18888
18889 * proc-service.c (ps_lgetregs): Formatting.
18890
cdbfd419
PP
188912009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18892
18893 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18894 * configure.ac: Adjust.
18895 * linux-low.h (struct process_info_private): Move members to struct
18896 thread_db.
18897 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18898 * linux-low.c (linux_remove_process): Adjust.
18899 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18900 * server.c (handle_query): Move code ...
18901 (handle_monitor_command): ... here. New function.
18902 * target.h (struct target_ops): New member.
18903 * thread-db.c (struct thread_db): New.
18904 (libthread_db_search_path): New variable.
18905 (thread_db_create_event, thread_db_enable_reporting)
18906 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18907 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18908 (try_thread_db_load_1, dladdr_to_soname): New functions.
18909 (try_thread_db_load, thread_db_load_search): New functions.
18910 (thread_db_init): Search for libthread_db.
18911 (thread_db_free): New function.
18912 (thread_db_handle_monitor_command): Likewise.
18913 * config.in: Regenerate.
18914 * configure: Regenerate.
889bf7c5 18915
4168d2d6
UW
189162009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18917
18918 * spu-low.c (spu_kill): Wait for inferior to terminate.
18919 Call clear_inferiors.
18920 (spu_detach): Call clear_inferiors.
18921
81ecdfbb
RW
189222009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18923
18924 * aclocal.m4: Regenerate.
18925 * config.in: Likewise.
18926 * configure: Likewise.
18927
0b9ff2c0
UW
189282009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18929
18930 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18931 (parse_spufs_run): New function.
18932 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18933 (ppc_breakpoint_at): Handle SPU breakpoints.
18934
efcbbd14
UW
189352009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18936
18937 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18938 (SPUFS_MAGIC): Define.
18939 (spu_enumerate_spu_ids): New function.
18940 (linux_qxfer_spu): New function.
18941 (linux_target_ops): Install linux_qxfer_spu.
18942
f4d9bade
UW
189432009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18944
18945 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18946 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18947 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18948 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18949 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18950 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18951 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18952 (init_registers_powerpc_cell32l): Add prototype.
18953 (init_registers_powerpc_cell64l): Likewise.
18954 (ppc_arch_setup): Detect Cell/B.E. architecture.
18955
96e946ca
RW
189562009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18957
18958 * Makefile.in (datarootdir): New variable.
18959
58d6951d
DJ
189602009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18961
18962 * linux-low.c (linux_write_memory): Update debugging output.
18963 * Makefile.in (clean): Add new descriptions.
18964 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18965 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18966 * configure.srv: Add new files for arm*-*-linux*.
18967 * linux-arm-low.c: Add new declarations.
18968 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18969 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18970 (HWCAP_VFPv3D16): New.
18971 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18972 instead of __IWMMXT__.
18973 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18974 (arm_arch_setup): New.
18975 (target_regsets): Remove #ifdef. Add VFP regset.
18976 (the_low_target): Use arm_arch_setup.
18977
12b42a12
DJ
189782009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18979
18980 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18981 the main thread again.
18982
ac8c974e
AR
189832009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18984
18985 Adding Neutrino gdbserver.
18986 * configure: Regenerated.
18987 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18988 * configure.srv (i[34567]86-*-nto*): New target.
18989 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18990 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18991 (nto_comctrl) [__QNX__]: New function.
18992 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18993
4424e0c3 189942009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
18995
18996 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18997 srv_tgtobj.
18998
912cf4ba
PA
189992009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19000 Pedro Alves <pedro@codesourcery.com>
19001
19002 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19003 don't support CONTEXT_EXTENDED_REGISTERS.
19004 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19005 (the_low_target): Install them.
19006 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19007 failing with ERROR_PIPE_NOT_CONNECTED.
19008
aa5ca48f
DE
190092009-06-30 Doug Evans <dje@google.com>
19010 Pierre Muller <muller@ics.u-strasbg.fr>
19011
19012 Add h/w watchpoint support to x86-linux, win32-i386.
19013 * Makefile.in (SFILES): Add i386-low.c
19014 (i386_low_h): Define.
19015 (i386-low.o): Add dependencies.
19016 (linux-x86-low.o): Add i386-low.h dependency.
19017 (win32-i386-low.o): Ditto.
19018 * i386-low.c: New file.
19019 * i386-low.h: New file.
19020 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19021 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19022 * linux-low.c (linux_add_process): Initialize arch_private.
19023 (linux_remove_process): Free arch_private.
19024 (add_lwp): Initialize arch_private.
19025 (delete_lwp): Free arch_private.
19026 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19027 provided.
19028 * linux-low.h (process_info_private): New member arch_private.
19029 (lwp_info): New member arch_private.
19030 (linux_target_ops): New members new_process, new_thread,
19031 prepare_to_resume.
19032 (ptid_of): New macro.
19033 * linux-x86-low.c: Include stddef.h, i386-low.h.
19034 (arch_process_info): New struct.
19035 (arch_lwp_info): New struct.
19036 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19037 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19038 (i386_dr_low_get_status): New function.
19039 (x86_insert_point, x86_remove_point): New functions.
19040 (x86_stopped_by_watchpoint): New function.
19041 (x86_stopped_data_address): New function.
19042 (x86_linux_new_process, x86_linux_new_thread): New functions.
19043 (x86_linux_prepare_to_resume): New function.
19044 (the_low_target): Add entries for insert_point, remove_point,
19045 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19046 prepare_to_resume.
19047 * server.c (debug_hw_points): New global.
19048 (monitor_show_help): Document set debug-hw-points.
19049 (handle_query): Process "set debug-hw-points".
19050 * server.h (debug_hw_points): Declare.
19051 (paddress): Declare.
19052 * utils.c (NUMCELLS, CELLSIZE): New macros.
19053 (get_sell, xsnprintf, paddress): New functions.
19054 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19055 remove_point, stopped_by_watchpoint, stopped_data_address.
19056 * win32-i386-low.c: Include i386-low.h.
19057 (debug_reg_state): Replaces dr.
19058 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19059 (i386_dr_low_get_status): New function.
19060 (i386_insert_point, i386_remove_point): New functions.
19061 (i386_stopped_by_watchpoint): New function.
19062 (i386_stopped_data_address): New function.
19063 (i386_initial_stuff): Update.
19064 (get_thread_context,set_thread_context,i386_thread_added): Update.
19065 (the_low_target): Add entries for insert_point,
19066 remove_point, stopped_by_watchpoint, stopped_data_address.
19067 * win32-low.c (win32_insert_watchpoint): New function.
19068 (win32_remove_watchpoint): New function.
19069 (win32_stopped_by_watchpoint): New function.
19070 (win32_stopped_data_address): New function.
19071 (win32_target_ops): Add entries for insert_watchpoint,
19072 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19073 * win32-low.h (win32_target_ops): New members insert_point,
19074 remove_point, stopped_by_watchpoint, stopped_data_address.
19075
d993e290
PA
190762009-06-25 Pedro Alves <pedro@codesourcery.com>
19077
19078 * server.c (process_serial_event): Re-return unsupported, not
19079 error, if the type isn't recognized. Re-allow supporting only
19080 insert or remove packets. Also call require_running for
19081 breakpoints. Add missing break statement to default case. Tidy.
19082 * target.h (struct target_ops): Rename insert_watchpoint to
19083 insert_point, and remove_watchpoint to remove_point.
19084
19085 * linux-low.h (struct linux_target_ops): Likewise.
19086 * linux-low.c (linux_insert_watchpoint): Rename to ...
19087 (linux_insert_point): ... this. Adjust.
19088 (linux_remove_watchpoint): Rename to ...
19089 (linux_remove_point): ... this. Adjust.
19090 (linux_target_ops): Adjust.
19091 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19092 (cris_insert_point): ... this.
19093 (cris_remove_watchpoint): Rename to ...
19094 (cris_remove_point): ... this.
19095 (the_low_target): Adjust.
19096
0f54c268
PM
190972009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19098
19099 * server.c (handle_v_kill): Pass signal_pid to
19100 kill_inferior if multi_process is zero.
19101
c6314022
AR
191022009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19103
19104 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19105 * target.h (target_ops): Comment for *_watchpoint to make it clear
19106 the functions can get types '0' and '1'.
19107
4463ce24
AR
191082009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19109
19110 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19111 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19112 * regcache.c (get_regcache): Likewise.
19113 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19114 * win32-low.c (child_fetch_inferior_registers): Remove check for
19115 regno 0.
19116
cf8fd78b
PA
191172009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19118 Pedro Alves <pedro@codesourcery.com>
19119
19120 * target.h (struct target_ops) <supports_multi_process>: New
19121 callback.
19122 (target_supports_multi_process): New.
19123 * server.c (handle_query): Even if GDB reports support, only
19124 enable multi-process if the target also supports it. Report
19125 multi-process support only if the target backend supports it.
19126 * linux-low.c (linux_supports_multi_process): New function.
19127 (linux_target_ops): Install it as target_supports_multi_process
19128 callback.
19129
47c0c975
DE
191302009-05-24 Doug Evans <dje@google.com>
19131
e09875d4
DE
19132 Global renaming of find_thread_pid to find_thread_ptid.
19133 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19134 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19135 All callers updated.
19136
e27d73f6
DE
19137 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19138 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19139 directly.
19140
47c0c975
DE
19141 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19142 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19143 (linux_resume_one_lwp): Ditto.
19144
2acc282a
DE
191452009-05-23 Doug Evans <dje@google.com>
19146
19147 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19148 from struct inferior_list_entry * to struct lwp_info *.
19149 All callers updated.
19150
9f1036c1
DE
191512009-05-13 Doug Evans <dje@google.com>
19152
19153 * linux-x86-low.c: Don't include assert.h.
19154 (x86_siginfo_fixup): Use fatal, not assert.
19155 (x86_arch_setup): Fix comment.
19156
d0722149
DE
191572009-05-12 Doug Evans <dje@google.com>
19158
19159 Biarch support for i386/amd64 gdbserver.
19160 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19161 Add linux-x86-low.c.
19162 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19163 (linux-x86-low.o): Add.
19164 * linux-x86-64-low.c: Delete.
19165 * linux-i386-low.c: Delete.
19166 * linux-x86-low.c: New file.
19167 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19168 linux-x86-low.o.
19169 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19170 linux-x86-low.o.
19171 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19172 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19173 (linux_child_pid_to_exec_file): New function.
19174 (elf_64_header_p, elf_64_file_p): New functions.
19175 (siginfo_fixup): New function.
19176 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19177 give target a chance to convert layout.
19178 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19179 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19180
fdeb2a12
DE
191812009-05-07 Doug Evans <dje@google.com>
19182
19183 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19184 (regsets_store_inferior_registers): Ditto.
19185
a6dbe5df
PA
191862009-05-06 Pedro Alves <pedro@codesourcery.com>
19187
19188 PR server/10048
19189
19190 * linux-low.c (must_set_ptrace_flags): Delete.
19191 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19192 of the global.
19193 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19194 `lwp->must_set_ptrace_flags' instead.
ba42693b 19195 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19196 (linux_wait_1): ... not here.
19197
5091eb23
DE
191982009-04-30 Doug Evans <dje@google.com>
19199
9f767825
DE
19200 * inferiors.c (started_inferior_callback): New function.
19201 (attached_inferior_callback): New function.
19202 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19203 * server.c (print_started_pid, print_attached_pid): New functions.
19204 (detach_or_kill_for_exit): New function.
19205 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19206 * server.h (have_started_inferiors_p): Declare.
19207 (have_attached_inferiors_p): Declare.
19208
5091eb23
DE
19209 * inferiors.c (remove_process): Fix memory leak, free process.
19210 * linux-low.c (linux_remove_process): New function.
19211 (linux_kill): Call it instead of remove_process.
19212 (linux_detach, linux_wait_1): Ditto.
19213
155c8968
PA
192142009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19215
19216 * configure.srv: Add x86 Windows CE target.
19217
7fe519cb
UW
192182009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19219
19220 * inferiors.c (get_thread_process): Make global.
19221 * server.h (get_thread_process): Add prototype.
19222 * thread-db.c (find_one_thread): Use get_thread_process
19223 instead of current_process.
19224 (thread_db_get_tls_address): Do not crash if called when
19225 thread layer is not yet initialized.
19226
5472f405
UW
192272009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19228
19229 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19230 * spu-low.c (current_tid): Rename to ...
19231 (current_ptid): ... this.
19232 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19233 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19234 ptid_get_lwp (current_ptid) instead of current_tid.
19235 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19236 instead of current_tid. Use find_process_pid to verify pid
19237 argument is valid. Pass proper argument to remove_process.
19238 (spu_thread_alive): Compare current_ptid instead of current_tid.
19239 (spu_resume): Likewise.
19240
55ac2b99
PA
192412009-04-02 Pedro Alves <pedro@codesourcery.com>
19242
19243 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19244 variable.
19245
95954743
PA
192462009-04-01 Pedro Alves <pedro@codesourcery.com>
19247
19248 Implement the multiprocess extensions, and add linux multiprocess
19249 support.
19250
19251 * server.h (ULONGEST): Declare.
19252 (struct ptid, ptid_t): New.
19253 (minus_one_ptid, null_ptid): Declare.
19254 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19255 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19256 (struct inferior_list_entry): Change `id' type from unsigned from
19257 to ptid_t.
19258 (struct sym_cache, struct breakpoint, struct
19259 process_info_private): Forward declare.
19260 (struct process_info): Declare.
19261 (current_process): Declare.
19262 (all_processes): Declare.
19263 (initialize_inferiors): Declare.
19264 (add_thread): Adjust to use ptid_t.
19265 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19266 (add_process, remove_process, find_thread_pid): Declare.
19267 (find_inferior_id): Adjust to use ptid_t.
19268 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19269 (multi_process): Declare.
19270 (push_event): Adjust to use ptid_t.
19271 (read_ptid, write_ptid): Declare.
19272 (prepare_resume_reply): Adjust to use ptid_t.
19273 (clear_symbol_cache): Declare.
19274 * inferiors.c (all_processes): New.
19275 (null_ptid, minus_one_ptid): New.
19276 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19277 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19278 (add_thread): Change unsigned long to ptid. Remove gdb_id
19279 parameter. Adjust.
19280 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19281 (gdb_id_to_thread): Rename to ...
19282 (find_thread_pid): ... this. Change unsigned long to ptid.
19283 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19284 (loaded_dll, pull_pid_from_list): Adjust.
19285 (add_process, remove_process, find_process_pid)
19286 (get_thread_process, current_process, initialize_inferiors): New.
19287 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19288 (struct target_waitstatus) <related_pid>: Ditto.
19289 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19290 return type to int.
19291 (struct target_ops) <join>: Add `pid' argument.
19292 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19293 (struct target_ops) <wait>: Add `ptid' field. Change return type
19294 to ptid.
19295 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19296 (mywait): Add `ptid' argument. Change return type to ptid_t.
19297 (target_pid_to_str): Declare.
19298 * target.c (set_desired_inferior): Adjust to use ptids.
19299 (mywait): Add new `ptid' argument. Adjust.
19300 (target_pid_to_str): New.
19301 * mem-break.h (free_all_breakpoints): Declare.
19302 * mem-break.c (breakpoints): Delelete.
19303 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19304 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19305 to use per-process breakpoint list.
19306 (free_all_breakpoints): New.
19307 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19308 (symbol_cache, all_symbols_looked_up): Delete.
19309 (hexchars): New.
19310 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19311 read_ptid): New.
19312 (prepare_resume_reply): Change ptid argument's type from unsigned
19313 long to ptid_t. Adjust. Implement W;process and X;process.
19314 (free_sym_cache, clear_symbol_cache): New.
19315 (look_up_one_symbol): Adjust to per-process symbol cache. *
19316 * server.c (cont_thread, general_thread, step_thread): Change type
19317 to ptid_t.
19318 (attached): Delete.
19319 (multi_process): New.
19320 (last_ptid): Change type to ptid_t.
19321 (struct vstop_notif) <ptid>: Change type to ptid_t.
19322 (queue_stop_reply, push_event): Change `ptid' argument's type to
19323 ptid_t.
19324 (discard_queued_stop_replies): Add `pid' argument.
19325 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19326 changes. Don't reference the `attached' global.
19327 (attach_inferior): Adjust to mywait interface changes.
19328 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19329 features. Handle and report "multiprocess+". Handle
19330 "qAttached:PID".
19331 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19332 changes.
19333 (handle_v_kill): New.
19334 (handle_v_stopped): Adjust to use target_pid_to_str.
19335 (handle_v_requests): Allow multiple attaches and runs when
19336 multiprocess extensions are in effect. Handle "vKill".
19337 (myresume): Adjust to use ptids.
19338 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19339 (handle_status): Adjust to discard_queued_stop_replies interface
19340 change.
19341 (first_thread_of, kill_inferior_callback)
19342 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19343 (main): Call initialize_inferiors. Adjust to use ptids, killing
19344 and detaching from all inferiors. Handle multiprocess packet
19345 variants.
19346 * linux-low.h: Include gdb_proc_service.h.
19347 (struct process_info_private): New.
19348 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19349 <lwpid_of>: Use ptid_get_lwp.
19350 (get_lwp_thread): Adjust.
19351 (struct lwp_info): Add `dead' member.
19352 (find_lwp_pid): Declare.
19353 * linux-low.c (thread_db_active): Delete.
19354 (new_inferior): Adjust comment.
19355 (inferior_pid): Delete.
19356 (linux_add_process): New.
19357 (handle_extended_wait): Adjust.
19358 (add_lwp): Change unsigned long to ptid.
19359 (linux_create_inferior): Add process to processes table. Adjust
19360 to use ptids. Don't set new_inferior here.
19361 (linux_attach_lwp): Rename to ...
19362 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19363 it. Adjust to use ptids.
19364 (linux_attach_lwp): New.
19365 (linux_attach): Add process to processes table. Don't set
19366 new_inferior here.
19367 (struct counter): New.
19368 (second_thread_of_pid_p, last_thread_of_process_p): New.
19369 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19370 multiple processes.
19371 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19372 processes. Remove process from process table.
19373 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19374 to multiple processes.
19375 (any_thread_of): New.
19376 (linux_detach): Add `pid' argument, and handle it. Remove process
19377 from processes table.
19378 (linux_join): Add `pid' argument. Handle it.
19379 (linux_thread_alive): Change unsighed long argument to ptid_t.
19380 Consider dead lwps as not being alive.
19381 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19382 threads we're not interested in.
19383 (same_lwp, find_lwp_pid): New.
19384 (linux_wait_for_lwp): Change `pid' argument's type from int to
19385 ptid_t. Adjust.
19386 (linux_wait_for_event): Rename to ...
19387 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19388 from int to ptid_t. Adjust.
19389 (linux_wait_for_event): New.
19390 (linux_wait_1): Add `ptid' argument. Change return type to
19391 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19392 that exit from the process table.
19393 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19394 Adjust.
19395 (mark_lwp_dead): New.
19396 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19397 stopping all threads, mark its main lwp as dead.
19398 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19399 ptids.
19400 (fetch_register, usr_store_inferior_registers)
19401 (regsets_fetch_inferior_registers)
19402 (regsets_store_inferior_registers, linux_read_memory)
19403 (linux_write_memory): Inline `inferior_pid'.
19404 (linux_look_up_symbols): Adjust to use per-process
19405 `thread_db_active'.
19406 (linux_request_interrupt): Adjust to use ptids.
19407 (linux_read_auxv): Inline `inferior_pid'.
19408 (initialize_low): Don't reference thread_db_active.
19409 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19410 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19411 (ps_getpid): Return the pid of the current inferior.
19412 * thread-db.c (proc_handle, thread_agent): Delete.
19413 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19414 per-process data.
19415 (find_one_thread): Change argument type to ptid_t. Adjust to
19416 per-process data.
19417 (maybe_attach_thread): Adjust to per-process data and ptids.
19418 (thread_db_find_new_threads): Ditto.
19419 (thread_db_init): Ditto.
19420 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19421 processes table. Adjust to use ptids.
19422 (spu_kill, spu_detach): Adjust interface. Remove process from
19423 processes table.
19424 (spu_join, spu_thread_alive): Adjust interface.
19425 (spu_wait): Adjust interface. Remove process from processes
19426 table. Adjust to use ptids.
19427 * win32-low.c (current_inferior_tid): Delete.
19428 (current_inferior_ptid): New.
19429 (debug_event_ptid): New.
19430 (thread_rec): Take a ptid. Adjust.
19431 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19432 (child_delete_thread): Ditto.
19433 (do_initial_child_stuff): Add `attached' argument. Add process to
19434 processes table.
19435 (child_fetch_inferior_registers, child_store_inferior_registers):
19436 Adjust.
19437 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19438 (win32_attach): Pass 1 to do_initial_child_stuff.
19439 (win32_kill): Adjust interface. Remove process from processes
19440 table.
19441 (win32_detach): Ditto.
19442 (win32_join): Adjust interface.
19443 (win32_thread_alive): Take a ptid.
19444 (win32_resume): Adjust to use ptids.
19445 (get_child_debug_event): Ditto.
19446 (win32_wait): Adjust interface. Remove exiting process from
19447 processes table.
19448
bd99dc85
PA
194492009-04-01 Pedro Alves <pedro@codesourcery.com>
19450
19451 Non-stop mode support.
19452
19453 * server.h (non_stop): Declare.
19454 (gdb_client_data, handler_func): Declare.
19455 (delete_file_handler, add_file_handler, start_event_loop):
19456 Declare.
19457 (handle_serial_event, handle_target_event, push_event)
19458 (putpkt_notif): Declare.
19459 * target.h (enum resume_kind): New.
19460 (struct thread_resume): Replace `step' field by `kind' field.
19461 (TARGET_WNOHANG): Define.
19462 (struct target_ops) <wait>: Add `options' argument.
19463 <supports_non_stop, async, start_non_stop>: New fields.
19464 (target_supports_non_stop, target_async): New.
19465 (start_non_stop): Declare.
19466 (mywait): Add `options' argument.
19467 * target.c (mywait): Add `options' argument. Print child exit
19468 notifications here.
19469 (start_non_stop): New.
19470 * server.c (non_stop, own_buf, mem_buf): New globals.
19471 (struct vstop_notif): New.
19472 (notif_queue): New global.
19473 (queue_stop_reply, push_event, discard_queued_stop_replies)
19474 (send_next_stop_reply): New.
19475 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19476 interface changes.
19477 (attach_inferior): In non-stop mode, don't wait for the target
19478 here.
19479 (handle_general_set): Handle QNonStop.
19480 (handle_query): When handling qC, return the current general
19481 thread, instead of the first thread of the list.
19482 (handle_query): If the backend supports non-stop mode, include
19483 QNonStop+ in the qSupported query response.
19484 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19485 and non-stop mode.
19486 (handle_v_attach, handle_v_run): Handle non-stop mode.
19487 (handle_v_stopped): New.
19488 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19489 (myresume): Adjust to use resume_kind. Handle non-stop.
19490 (queue_stop_reply_callback): New.
19491 (handle_status): Handle non-stop mode.
19492 (main): Clear non_stop flag on reconnection. Use the event-loop.
19493 Refactor serial protocol handling from here ...
19494 (process_serial_event): ... to this new function. When GDB
19495 selects any thread, select one here. In non-stop mode, wait until
19496 GDB acks all pending events before exiting.
19497 (handle_serial_event, handle_target_event): New.
19498 * remote-utils.c (remote_open): Install remote_desc in the event
19499 loop.
19500 (remote_close): Remove remote_desc from the event loop.
19501 (putpkt_binary): Rename to...
19502 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19503 (putpkt_binary): New as wrapper around putpkt_binary_1.
19504 (putpkt_notif): New.
19505 (prepare_resume_reply): In non-stop mode, don't change the
19506 general_thread.
19507 * event-loop.c: New.
19508 * Makefile.in (OBJ): Add event-loop.o.
19509 (event-loop.o): New rule.
19510
19511 * linux-low.h (pid_of): Moved here.
19512 (lwpid_of): New.
19513 (get_lwp_thread): Use lwpid_of.
19514 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19515 * linux-low.c (pid_of): Delete.
19516 (inferior_pid): Use lwpid_of.
19517 (linux_event_pipe): New.
19518 (target_is_async_p): New.
19519 (delete_lwp): New.
19520 (handle_extended_wait): Use lwpid_of.
19521 (add_lwp): Don't set lwpid field.
19522 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19523 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19524 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19525 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19526 first. Adjust to linux_wait_for_event interface changes. Use
19527 lwpid_of.
19528 (linux_detach): Don't delete the main lwp here.
19529 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19530 (status_pending_p): Don't consider explicitly suspended lwps.
19531 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19532 pointer. Add OPTIONS argument. Change return type to int. Use
19533 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19534 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19535 pointer. Add status pointer argument. Return a pid instead of a
19536 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19537 changes. In non-stop mode, don't switch to a random thread.
19538 (linux_wait): Rename to...
19539 (linux_wait_1): ... this. Add target_options argument, and handle
19540 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19541 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19542 clean exit and signal exit code. Don't stop all threads in
19543 non-stop mode. In all-stop mode, only stop all threads when
19544 reporting a stop to GDB. Handle explicit thread stop requests.
19545 (async_file_flush, async_file_mark): New.
19546 (linux_wait): New.
19547 (send_sigstop): Use lwpid_of.
19548 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19549 interface changes. In non-stop mode, don't switch to a random
19550 thread.
19551 (linux_resume_one_lwp): Use lwpid_of.
19552 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19553 (linux_resume_one_thread): ... this. Handle resume_stop. In
19554 non-stop mode, don't look for pending flag in all threads.
19555 (resume_status_pending_p): Don't consider explicitly suspended
19556 threads.
19557 (my_waitpid): Reimplement. Emulate __WALL.
19558 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19559 Use lwpid_of.
19560 (sigchld_handler, linux_supports_non_stop, linux_async)
19561 (linux_start_non_stop): New.
19562 (linux_target_ops): Register linux_supports_non_stop, linux_async
19563 and linux_start_non_stop.
19564 (initialize_low): Install SIGCHLD handler.
19565 * thread-db.c (thread_db_create_event, find_one_thread)
19566 (thread_db_get_tls_address): Use lwpid_of.
19567 * win32-low.c (win32_detach): Adjust to use resume_kind.
19568 (win32_wait): Add `options' argument.
19569 * spu-low.c (spu_resume): Adjust to use resume_kind.
19570 (spu_wait): Add `options' argument.
19571
5b1c542e
PA
195722009-04-01 Pedro Alves <pedro@codesourcery.com>
19573
19574 Decouple target code from remote protocol.
19575
19576 * target.h (enum target_waitkind): New.
19577 (struct target_waitstatus): New.
19578 (struct target_ops) <wait>: Return an unsigned long. Take a
19579 target_waitstatus pointer instead of a char pointer.
19580 (mywait): Likewise.
19581 * target.c (mywait): Change prototype to return an unsigned long.
19582 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19583 * server.h (thread_from_wait, old_thread_from_wait): Delete
19584 declarations.
19585 (prepare_resume_reply): Change prototype to take a
19586 target_waitstatus.
19587 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19588 (last_status, last_ptid): New.
19589 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19590 pid instead of a signal.
19591 (attach_inferior): Remove "status" and "signal" parameters.
19592 Adjust.
19593 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19594 not as an address.
19595 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19596 (handle_v_requests, myresume): Remove "status" and "signal"
19597 parameters. Adjust.
19598 (handle_status): New.
19599 (main): Delete local `status'. Adjust.
19600 * remote-utils.c: Include target.h.
19601 (prepare_resume_reply): Change prototype to take a
19602 target_waitstatus. Adjust.
19603
19604 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19605 interface.
19606 * spu-low.c (spu_wait): Adjust.
19607 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19608 Delete.
19609 (win32_wait): Adjust.
19610
2bd7c093
PA
196112009-04-01 Pedro Alves <pedro@codesourcery.com>
19612
19613 * target.h (struct thread_resume): Delete leave_stopped member.
19614 (struct target_ops): Add a `n' argument to the `resume' callback.
19615 * server.c (start_inferior): Adjust.
19616 (handle_v_cont, myresume): Adjust.
19617 * linux-low.c (check_removed_breakpoint): Adjust to resume
19618 interface change, and to removed leave_stopped field.
19619 (resume_ptr): Delete.
19620 (struct thread_resume_array): New.
19621 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19622 resume interface change.
19623 (linux_continue_one_thread, linux_queue_one_thread)
19624 (resume_status_pending_p): Check if the resume field is NULL
19625 instead of checking the leave_stopped member.
19626 (linux_resume): Adjust to the target resume interface change.
19627 * spu-low.c (spu_resume): Adjust to the target resume interface
19628 change.
19629 * win32-low.c (win32_detach, win32_resume): Ditto.
19630
c35fafde
PA
196312009-04-01 Pedro Alves <pedro@codesourcery.com>
19632
19633 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19634 flag.
19635 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19636 pending.
19637 (linux_continue_one_thread): Only preserve the stepping flag if
19638 there's a pending breakpoint.
19639
0a59d50b
PA
196402009-03-31 Pedro Alves <pedro@codesourcery.com>
19641
19642 * server.c (main): After the inferior having exited, call
19643 remote_close before exiting gdbserver.
19644
f04c6d38
TJB
196452009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19646
19647 Fix size of FPSCR in Power 7 processors.
19648 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19649 (PPC_FEATURE_HAS_DFP): New #define.
19650 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19651 size of the FPSCR.
19652
78e5cee6
PA
196532009-03-23 Pedro Alves <pedro@codesourcery.com>
19654
19655 * server.c (handle_query) Whitespace and formatting.
19656
1b3f6016
PA
196572009-03-22 Pedro Alves <pedro@codesourcery.com>
19658
19659 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19660 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19661 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19662 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19663 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19664 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19665 Makefile.in, configure.ac: Fix whitespace throughout.
19666 * configure: Regenerate.
19667
a07b2135
PA
196682009-03-22 Pedro Alves <pedro@codesourcery.com>
19669
19670 * inferiors.c (find_inferior): Make it safe for the callback
19671 function to delete the currently iterated inferior.
19672
67cc2626
PA
196732009-03-22 Pedro Alves <pedro@codesourcery.com>
19674
19675 * Makefile.in (linuw_low_h): Move higher.
19676 (thread-db.o): Depend on $(linux_low_h).
19677
54a0b537
PA
196782009-03-17 Pedro Alves <pedro@codesourcery.com>
19679
19680 Rename "process" to "lwp" throughout.
19681
19682 * linux-low.c (all_processes): Rename to...
19683 (all_lwps): ... this.
19684 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19685 (add_process): Rename to ...
19686 (add_lwp): ... this. Adjust.
19687 (linux_create_inferior): Adjust.
19688 (linux_attach_lwp): Adjust.
19689 (linux_attach): Adjust.
19690 (linux_kill_one_process): Rename to ...
19691 (linux_kill_one_lwp): ... this. Adjust.
19692 (linux_kill): Adjust.
19693 (linux_detach_one_process): Rename to ...
19694 (linux_detach_one_lwp): ... this. Adjust.
19695 (linux_detach): Adjust.
19696 (check_removed_breakpoint): Adjust.
19697 (status_pending_p): Adjust.
19698 (linux_wait_for_process): Rename to ...
19699 (linux_wait_for_lwp): ... this. Adjust.
19700 (linux_wait_for_event): Adjust.
19701 (send_sigstop): Adjust.
19702 (wait_for_sigstop): Adjust.
19703 (stop_all_processes): Rename to ...
19704 (stop_all_lwps): ... this.
19705 (linux_resume_one_process): Rename to ...
19706 (linux_resume_one_lwp): ... this. Adjust.
19707 (linux_set_resume_request, linux_continue_one_thread)
19708 (linux_queue_one_thread, resume_status_pending_p)
19709 (usr_store_inferior_registers, regsets_store_inferior_registers)
19710 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19711 Adjust.
19712 * linux-low.h (get_process): Rename to ...
19713 (get_lwp): ... this. Adjust.
19714 (get_thread_process): Rename to ...
19715 (get_thread_lwp): ... this. Adjust.
19716 (get_process_thread): Rename to ...
19717 (get_lwp_thread): ... this. Adjust.
19718 (struct process_info): Rename to ...
19719 (struct lwp_info): ... this.
19720 (all_processes): Rename to ...
19721 (all_lwps): ... this.
19722 * proc-service.c (ps_lgetregs): Adjust.
19723 * thread-db.c (thread_db_create_event, find_one_thread)
19724 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19725
0b16c5cf
PA
197262009-03-14 Pedro Alves <pedro@codesourcery.com>
19727
19728 * server.c (handle_query): Handle "qAttached".
19729
32de4b9d
NS
197302009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19731
19732 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19733 GPLv3, update license URL.
19734
2aecd87f
DE
197352009-03-01 Doug Evans <dje@google.com>
19736
93efd302 19737 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19738 (server_h): Add gdb_signals.h.
19739 (signals.o): Update.
19740 * server.h (target_signal_from_host,target_signal_to_host_p)
19741 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19742
86b1f9c5
PM
197432009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19744
19745 * remote-utils.c (getpkt): Also generate remote-debug
19746 information if noack_mode is set.
19747
4aa995e1
PA
197482009-02-06 Pedro Alves <pedro@codesourcery.com>
19749
19750 * server.c (handle_query): Report qXfer:siginfo:read and
19751 qXfer:siginfo:write as supported and handle them.
19752 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19753 * linux-low.c (linux_xfer_siginfo): New.
19754 (linux_target_ops): Set it.
19755
62709adf
PA
197562009-01-26 Pedro Alves <pedro@codesourcery.com>
19757
19758 * server.c (gdbserver_usage): Mention --remote-debug.
19759 (main): Accept '--remote-debug' switch.
19760
aef93bd7
DE
197612009-01-18 Doug Evans <dje@google.com>
19762
19763 * regcache.c (new_register_cache): No need to check result of xcalloc.
19764 * server.c (handle_search_memory): Back out calls to xmalloc,
19765 result is checked and error is returned to user upon failure.
19766 (handle_query): Ditto. Add more checks for result of malloc.
19767 (handle_v_cont): Check result of malloc, report error back to
19768 user upon failure.
19769 (handle_v_run): Ditto. Call freeargv.
19770 * server.h (freeargv): Declare.
19771 * utils.c (freeargv): New fn.
19772
54363045
DE
197732009-01-15 Doug Evans <dje@google.com>
19774
f626972c
DE
19775 * gdbreplay.c (perror_with_name): Make arg const char *.
19776 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19777 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19778 * utils.c (perror_with_name): Make arg const char *.
54363045 19779
18aae699
PA
197802009-01-14 Pedro Alves <pedro@codesourcery.com>
19781
19782 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19783 when handling a EXIT_PROCESS_DEBUG_EVENT.
19784
ff703abe
JB
197852009-01-06 Joel Brobecker <brobecker@adacore.com>
19786
19787 * gdbreplay.c (gdbreplay_version): Update copyright year.
19788 * server.c (gdbserver_version): Likewise.
19789
f21cc1a2 197902009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19791
19792 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19793 (handle_extended_wait): Improve comment.
0e21c1ec 19794
bca929d3
DE
197952008-12-13 Doug Evans <dje@google.com>
19796
19797 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19798 * server.h (ATTR_MALLOC): New macro.
19799 (xmalloc,xcalloc,xstrdup): Declare.
19800 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19801 * inferiors.c: Ditto.
19802 * linux-low.c: Ditto.
19803 * mem-break.c: Ditto.
19804 * regcache.c: Ditto.
19805 * remote-utils.c: Ditto.
19806 * server.c: Ditto.
19807 * target.c: Ditto.
19808 * win32-low.c: Ditto.
19809
97438e3f
DE
198102008-12-12 Doug Evans <dje@google.com>
19811
896c7fbb
DE
19812 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19813 in debugging printf.
19814
97438e3f
DE
19815 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19816
e3b886f8
DE
198172008-12-09 Doug Evans <dje@google.com>
19818
19819 * linux-low.h (struct process_info): Delete member tid, unused.
19820 * thread-db.c (find_one_thread): Update.
19821 (maybe_attach_thread): Update.
19822
07e059b5
VP
198232008-12-02 Pedro Alves <pedro@codesourcery.com>
19824
889bf7c5
PA
19825 * target.h (struct target_ops): Add qxfer_osdata member.
19826 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19827 and dirent.h.
19828 (linux_qxfer_osdata): New functions.
19829 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19830 callback.
19831 * server.c (handle_query): Handle "qXfer:osdata:read:".
19832 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19833 (buffer_xml_printf): New functions.
19834 * server.h (struct buffer): New.
19835 (buffer_grow_str, buffer_grow_str0): New macros.
19836 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19837 (buffer_xml_printf): Declare.
07e059b5 19838
4cab47ab
DE
198392008-11-24 Doug Evans <dje@google.com>
19840
19841 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19842
f142445f
DJ
198432008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19844
19845 * server.c (handle_v_run): Always use the supplied argument list.
19846
d0107bb6 198472008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19848
d0107bb6
BW
19849 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19850 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 19851
2c4ad781
TJB
198522008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19853
19854 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19855 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19856 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19857 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19858 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19859 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19860 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19861 XML target descriptions.
19862 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19863 when inferior is running on an ISA 2.05 or later processor. Add
19864 special case to return offset for full 64-bit slot of FPSCR when
19865 in 32-bits.
19866
dfb64f85
DJ
198672008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19868
19869 * Makefile.in (SFILES, clean): Added sparc64 files.
19870 (reg-sparc64.o, reg-sparc64.c): New.
19871 * configure.srv (sparc*-*-linux*): New configuration.
19872 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19873 syscall arguments for SPARC.
19874 (regsets_store_inferior_registers): Likewise.
19875 * linux-sparc-low.c: New file.
19876
66b6e1dd
DE
198772008-10-21 Doug Evans <dje@google.com>
19878
19879 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19880 (READLINE_DIR,READLINE_DEP): Delete.
19881 (INTERNAL_CFLAGS): Update.
19882 (LINTFLAGS): Update.
19883
9b710a42
PA
198842008-10-10 Pedro Alves <pedro@codesourcery.com>
19885
19886 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19887 whole argv from the last run, not just argv[0].
19888
5822d809
PA
198892008-09-08 Pedro Alves <pedro@codesourcery.com>
19890
19891 * regcache.c (new_register_cache): Return NULL if the register
19892 cache size isn't known yet.
19893 (free_register_cache): Avoid dereferencing a NULL regcache.
19894
74aac56f
DJ
198952008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19896
19897 * configure.srv: Merge MIPS and MIPS64.
19898
400b20f5
MR
198992008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19900
19901 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19902
677c5bb1
LM
199032008-08-18 Luis Machado <luisgpm@br.ibm.com>
19904
19905 * Makefile.in: Add required vsx dependencies.
19906
19907 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19908 Declare init_registers_powerpc_vsx32l.
19909 Declare init_registers_powerpc_vsx64l.
19910 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19911 (ppc_arch_setup): Check for VSX in hwcap.
19912 (ppc_fill_vsxregset): New function.
19913 (ppc_store_vsxregset): New function.
19914 Add new VSX entry in regset_info target_regsets.
19915
19916 * configure.srv: Add new VSX dependencies.
19917
a6f3e723
SL
199182008-08-12 Pedro Alves <pedro@codesourcery.com>
19919
19920 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19921 (remote_open): Set or clear transport_is_reliable.
19922 (putpkt_binary): Don't expect acks in noack mode.
19923 (getpkt): Don't send ack/nac in noack mode.
19924 * server.c (handle_general_set): Handle QStartNoAckMode.
19925 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19926 qSupported.
19927 (main): Reset noack_mode on every connection.
19928 * server.h (noack_mode): Declare.
19929
a417dc56
RW
199302008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19931
19932 * Makefile.in (GDBREPLAY_OBS): New variable.
19933 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19934
3221518c
UW
199352008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19936 Daniel Jacobowitz <dan@codesourcery.com>
19937
19938 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19939 (usr_store_inferior_registers): Likewise.
19940 (regsets_store_inferior_registers): Likewise.
19941
ec56be1b
PA
199422008-07-31 Rolf Jansen <rj@surtec.com>
19943 Pedro Alves <pedro@codesourcery.com>
19944
19945 * configure.ac: Check for memmem declaration.
19946 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19947 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19948 (disable_packet_qfThreadInfo): Unconditionally compile.
19949 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19950 * configure, config.in: Regenerate.
19951
2fe5e3ff
DE
199522008-07-28 Doug Kwan <dougkwan@google.com>
19953
19954 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19955 (linux_write_memory): Remove declaration of errno.
19956
836acd6d
UW
199572008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19958
19959 * linux-low.c (handle_extended_wait): Do not use "status"
19960 variable uninitialized.
19961
aeba519e
PA
199622008-07-07 Pedro Alves <pedro@codesourcery.com>
19963
19964 * server.c (handle_v_attach): Inhibit reporting dll changes.
19965
db42f210
PA
199662008-06-27 Pedro Alves <pedro@codesourcery.com>
19967
19968 * remote-utils.c (prepare_resume_reply): If requested, don't
19969 output "thread:TID" in the T stop reply.
19970
19971 * server.c (disable_packet_vCont, disable_packet_Tthread)
19972 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19973 (handle_query): If requested, disable support for qC, qfThreadInfo
19974 and qsThreadInfo.
19975 (handle_v_requests): If requested, disable support for vCont.
19976 (gdbserver_show_disableable): New.
19977 (main): Handle --disable-packet and --disable-packet=LIST.
19978
19979 * server.h (disable_packet_vCont, disable_packet_Tthread)
19980 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19981
8e4c5421
CD
199822008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19983
19984 * server.c (gdbserver_usage): Mention --version.
19985
6e23a804
DJ
199862008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19987
19988 * Makefile.in (gdbreplay.o): New rule.
19989
90aa6a40
JM
199902008-06-06 Joseph Myers <joseph@codesourcery.com>
19991
19992 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19993 message, not gdbserver.
19994
c16158bc 199952008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
19996 Nathan Sidwell <nathan@codesourcery.com>
19997 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
19998
19999 * acinclude.m4: Include ../../config/acx.m4.
20000 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20001 * configure, config.in: Regenerate.
20002 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20003 * server.c (gdbserver_version): Print PKGVERSION.
20004 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20005 (main): Adjust gdbserver_usage calls.
20006 * gdbreplay.c (version, host_name): Add declarations.
20007 (gdbreplay_version, gdbreplay_usage): New.
20008 (main): Accept --version and --help options.
20009
aeb75bf5
DJ
200102008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20011
20012 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20013 (arm_breakpoint_at): Handle Thumb.
20014 (the_low_target): Add comment.
20015
76b233dd
UW
200162008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20017
20018 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20019
08388c79
DE
200202008-05-09 Doug Evans <dje@google.com>
20021
a3c83fae
DE
20022 * server.h (decode_search_memory_packet): Declare.
20023 * remote-utils.c (decode_search_memory_packet): New fn.
20024 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20025 (handle_search_memory): New fn.
20026 (handle_query): Process qSearch:memory packets.
20027
bb9c3d36
UW
200282008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20029
20030 * regcache.c (registers_length): Remove.
20031 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20032 full register packet.
20033 * regcache.h (registers_length): Remove prototype.
20034 * server.h (PBUFSIZ): Define to 16384.
20035
7284e1be
UW
200362008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20037
20038 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20039 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20040 powerpc-64l.o, and powerpc-altivec64l.o.
20041 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20042 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20043 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20044 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20045 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20046 to srv_xmlfiles.
20047
20048 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20049 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20050 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20051 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20052 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20053 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20054 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20055 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20056 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20057 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20058 (clean): Update.
20059
20060 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20061 (init_registers_powerpc_32l): ... this new prototype.
20062 (init_registers_powerpc_32): Remove, replace by ...
20063 (init_registers_powerpc_altivec32l): ... this new prototype.
20064 (init_registers_powerpc_e500): Remove, replace by ...
20065 (init_registers_powerpc_e500l): ... this new prototype.
20066 (init_registers_ppc64): Remove, replace by ...
20067 (init_registers_powerpc_64l): ... this new prototype.
20068 (init_registers_powerpc_64): Remove, replace by ...
20069 (init_registers_powerpc_altivec64l): ... this new prototype.
20070 (ppc_num_regs): Set to 73.
20071 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20072 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20073 (ppc_cannot_store_register): Handle orig_r3 and trap.
20074 (ppc_arch_setup): Update init_registers_... calls.
20075 (ppc_fill_gregset): Handle orig_r3 and trap.
20076
20077 * inferiors.c (clear_inferiors): Reset current_inferior.
20078
fdc59709
PB
200792008-04-23 Paolo Bonzini <bonzini@gnu.org>
20080
889bf7c5
PA
20081 * acinclude.m4: Add override.m4.
20082 * configure: Regenerate.
fdc59709 20083
c9b2f845
UW
200842008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20085
20086 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20087 initial call to init_register_ppc64.
20088
550512b8
UW
200892008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20090
43aaf8b6
PA
20091 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20092 single powerpc*-*-linux* case.
550512b8
UW
20093 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20094
b6430ec3
UW
200952008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20096
20097 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20098 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20099 from reg_xmlfiles.
20100 * linux-ppc-low.c: Include <elf.h>.
20101 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20102 (ppc_hwcap): New global variable.
20103 (ppc_regmap): Remove __SPE__ #ifdef sections.
20104 (ppc_regmap_e500): New global variable.
20105 (ppc_cannot_store_register): Update __SPE__ special case.
20106 (ppc_get_hwcap): New function.
20107 (ppc_arch_setup): Use it to determine whether inferior supports
20108 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20109 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20110 Do not access registers if target does not support AltiVec.
20111 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20112 Do not access registers if target does not support SPE.
20113 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20114
52fa2412
UW
201152008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20116
20117 * linux-low.c (disabled_regsets, num_regsets): New.
20118 (use_regsets_p): Delete.
20119 (linux_wait_for_process): Clear disabled_regsets.
20120 (regsets_fetch_inferior_registers): Check and set it.
20121 (regsets_store_inferior_registers): Likewise.
20122 (linux_fetch_registers, linux_store_registers): Do not use
20123 use_regsets_p.
20124 (initialize_low): Allocate disabled_regsets.
20125
e28b3332
DJ
201262008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20127
20128 * Makefile.in (LIBOBJS): New.
20129 (OBS): Use LIBOBJS.
20130 (memmem.o): New rule.
20131 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20132 * configure: Regenerated.
20133
4536995d
UW
201342008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20135
20136 * server.c (handle_query): Never return "unsupported" for
20137 qXfer:features:read queries.
20138
221c031f
UW
201392008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20140
20141 * server.c (get_features_xml): Fix inverted condition.
20142 (handle_query): Always support qXfer:feature:read.
20143
ccd213ac
DJ
201442008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20145
20146 * server.c (wrapper_argv): New.
20147 (start_inferior): Handle wrapper_argv. If set, expect an extra
20148 trap.
20149 (gdbserver_usage): Document --wrapper.
20150 (main): Parse --wrapper.
20151
6fe305f7
UW
201522008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20153
20154 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20155 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20156 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20157 (ppc_set_pc): Likewise.
20158 (ppc_arch_setup): New function.
20159 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20160 of collect_register.
889bf7c5 20161 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20162
5b0a002e
UW
201632008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20164
20165 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20166 instead of linux-ppc64-low.o.
20167 * linux-ppc64-low.c: Remove file.
20168 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20169 (linux-ppc64-low.o): Remove rule.
20170
20171 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20172 (init_registers_powerpc_64): Likewise.
20173 (ppc_regmap): Conditionally define depending on __powerpc64__.
20174 (ppc_cannot_store_register): Do not special-case "fpscr" when
20175 compiled on __powerpc64__.
20176 (ppc_collect_ptrace_register): New function.
20177 (ppc_supply_ptrace_register): New function.
20178 (ppc_breakpoint): Change type to "unsigned int".
20179 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20180 (the_low_target): Conditionally provide initializers for the
889bf7c5 20181 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20182 collect_ptrace_register and supply_ptrace_register members.
20183
9b4b61c8
UW
201842008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20185
20186 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20187 * server.c (gdbserver_xmltarget): Define.
20188 (get_features_xml): Use it to replace "target.xml" and arch_string.
20189
20190 * configure.srv: Remove srv_xmltarget. Add XML files that were
20191 mentioned there to srv_xmlfiles instead. Remove conditional tests
20192 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20193 srv_xmlfiles and srv_regobj to include all possible choices.
20194 * configure.ac (srv_xmltarget): Remove.
20195 (srv_xmlfiles): Do not add "target.xml".
20196 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20197 checks for supplementary target information.
20198 * configure: Regenerate.
20199 * Makefile.in (XML_TARGET): Remove.
20200 (target.xml): Remove rule.
20201 (clean): Do not clean up target.xml.
20202 (.PRECIOUS): Do not mention target.xml.
20203
20204 * target.h (struct target_ops): Remove arch_string member.
20205 * linux-low.c (linux_arch_string): Remove.
20206 (linux_target_ops): Remove arch_string initializer.
20207 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20208 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20209 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20210 * spu-low.c (spu_arch_string): Remove.
20211 (spu_target_ops): Remove arch_string initializer.
20212 * win32-low.c (win32_arch_string): Remove.
20213 (win32_target_ops): Remove arch_string initializer.
20214 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20215 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20216 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20217
ee1a7ae4
UW
202182008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20219
20220 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20221 by collect_ptrace_register and supply_ptrace_register hooks.
20222 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20223 instead of checking for the_low_target.left_pad_xfer.
20224 (usr_store_inferior_registers): Use collect_ptrace_register callback
20225 instead of checking for the_low_target.left_pad_xfer.
20226
20227 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20228 (s390_supply_ptrace_register): Likewise.
20229 (s390_fill_gregset): Call s390_collect_ptrace_register.
20230 (the_low_target): Update.
20231
20232 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20233 (ppc_supply_ptrace_register): Likewise.
20234 (the_low_target): Update.
20235
20236 * linux-i386-low.c (the_low_target): Update.
20237 * linux-x86-64-low.c (the_low_target): Update.
20238
d61ddec4
UW
202392008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20240
20241 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20242 reg-s390.o and reg-s390x.o.
20243
20244 * linux-low.c (new_inferior): New global variable.
20245 (linux_create_inferior, linux_attach): Set it.
20246 (linux_wait_for_process): Call the_low_target.arch_setup after the
20247 target has stopped for the first time.
20248 (initialize_low): Do not call the_low_target.arch_setup.
20249
20250 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20251 (s390_set_pc): Likewise.
20252 (s390_arch_setup): New function.
20253 (the_low_target): Use s390_arch_setup as arch_setup routine.
20254
20255 * regcache.c (realloc_register_cache): New function.
20256 (set_register_cache): Call it for each existing regcache.
20257
d05b4ac3
UW
202582008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20259
20260 * server.h (init_registers): Remove prototype.
20261
20262 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20263 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20264 instead of init_registers ().
20265 * linux-arm-low.c (init_registers_arm): Add prototype.
20266 (init_registers_arm_with_iwmmxt): Likewise.
20267 (the_low_target): Add initializer for arch_setup field.
20268 * linux-cris-low.c (init_registers_cris): Add prototype.
20269 (the_low_target): Add initializer for arch_setup field.
20270 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20271 (the_low_target): Add initializer for arch_setup field.
20272 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20273 (the_low_target): Add initializer for arch_setup field.
20274 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20275 (the_low_target): Add initializer for arch_setup field.
20276 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20277 (the_low_target): Add initializer for arch_setup field.
20278 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20279 (the_low_target): Add initializer for arch_setup field.
20280 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20281 (init_registers_mips64_linux): Likewise.
20282 (the_low_target): Add initializer for arch_setup field.
20283 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20284 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20285 (the_low_target): Add initializer for arch_setup field.
20286 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20287 (init_registers_powerpc_64): Likewise.
20288 (the_low_target): Add initializer for arch_setup field.
20289 * linux-s390-low.c (init_registers_s390): Add prototype.
20290 (init_registers_s390x): Likewise.
20291 (the_low_target): Add initializer for arch_setup field.
20292 * linux-sh-low.c (init_registers_sh): Add prototype.
20293 (the_low_target): Add initializer for arch_setup field.
20294 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20295 (the_low_target): Add initializer for arch_setup field.
20296 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20297 (the_low_target): Add initializer for arch_setup field.
20298
20299 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20300 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20301 instead of init_registers ().
20302 * win32-arm-low.c (init_registers_arm): Add prototype.
20303 (the_low_target): Add initializer for arch_setup field.
20304 * win32-i386-low.c (init_registers_i386): Add prototype.
20305 (the_low_target): Add initializer for arch_setup field.
20306
20307 * spu-low.c (init_registers_spu): Add prototype.
20308 (initialize_low): Call initialie_registers_spu () instead of
20309 initialize_registers ().
20310
fd96d250
PA
203112008-02-19 Pedro Alves <pedro@codesourcery.com>
20312
20313 * server.c (handle_v_requests): When handling the vRun and vAttach
20314 packets, if already debugging a process, don't kill it. Return an
20315 error instead.
20316
d41b6bb4
DJ
203172008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20318
20319 * server.c (handle_query): Correct length check.
20320
5ac588cf
PA
203212008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20322
20323 * win32-low.c (do_initial_child_stuff): Add process handle
20324 parameter. Set current_process_handle and current_process_id from the
20325 parameters. Clear globals.
20326 (win32_create_inferior): Don't set current_process_handle and
20327 current_process_id here. Instead pass them on the call to
20328 do_initial_child_stuff.
20329 (win32_attach): Likewise.
20330 (win32_clear_inferiors): New.
20331 (win32_kill): Don't close the current process handle or the
20332 current thread handle here. Instead call win32_clear_inferiors.
20333 (win32_detach): Don't open a new handle to the process. Call
20334 win32_clear_inferiors.
20335 (win32_join): Don't rely on current_process_handle; open a new
20336 handle using the process id.
20337 (win32_wait): Call win32_clear_inferiors when the inferior process
20338 has exited.
20339
ecd7ecbc
DJ
203402008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20341
20342 * server.c (monitor_show_help): Add "exit".
20343
1525d545
MG
203442008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20345
ecd7ecbc 20346 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20347 (clean): Add reg-xtensa.c.
20348 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20349 * configure.srv (xtensa*-*-linux*) New target.
20350 * linux-xtensa-low.c: New.
20351 * xtensa-xtregs.c: New.
1525d545 20352
59a016f0
PA
203532008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20354
20355 * hostio.c: Don't include errno.h.
20356 (errno_to_fileio_errno): Move to hostio-errno.
20357 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20358 error number outputting to the target->hostio_last_error callback.
20359 (hostio_packet_error): Use FILEIO_EINVAL directly.
20360 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20361 calls to hostio_error.
20362 * hostio-errno.c: New.
20363 * server.h (hostio_last_error_from_errno): Declare.
20364 * target.h (target_ops): Add hostio_last_error member.
20365 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20366 as hostio_last_error handler.
889bf7c5 20367 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20368 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20369 (wince_hostio_last_error): New functions.
20370 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20371 as hostio_last_error handler.
20372 (win32_target_ops) [!_WIN32_WCE]: Register
20373 hostio_last_error_from_errno as hostio_last_error handler.
20374 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20375 (hostio-errno.o): New rule.
20376 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20377 * configure.srv (srv_hostio_err_objs): New variable. Default to
20378 hostio-errno.o.
20379 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20380 * configure: Regenerate.
20381
2d717e4f
DJ
203822008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20383
20384 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20385 (linux_kill, linux_detach): Clean up the process list.
20386 * remote-utils.c (remote_open): Improve port number parsing.
20387 (putpkt_binary, input_interrupt): Only send interrupts if the target
20388 is running.
20389 * server.c (extended_protocol): Make static.
20390 (attached): Define earlier.
20391 (exit_requested, response_needed, program_argv): New variables.
20392 (target_running): New.
20393 (start_inferior): Clear attached here.
20394 (attach_inferior): Set attached here.
20395 (require_running): Define.
20396 (handle_query): Use require_running and target_running. Implement
20397 "monitor exit".
20398 (handle_v_attach, handle_v_run): New.
20399 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20400 (gdbserver_usage): Update.
20401 (main): Redo argument parsing. Handle --debug and --multi. Handle
20402 --attach along with other options or after the port. Save
20403 program_argv. Support no initial program. Resynchronize
20404 communication with GDB after an error. Handle "monitor exit".
20405 Use require_running and target_running. Always allow the extended
20406 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20407 restart in extended mode.
20408 * README: Refer to the GDB manual. Update --attach usage.
20409
7407e2de
AS
204102007-12-20 Andreas Schwab <schwab@suse.de>
20411
20412 * linux-low.c (STACK_SIZE): Define.
20413 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20414 (linux_test_for_tracefork): Likewise.
20415
b65d95c5
DJ
204162007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20417
20418 * linux-low.c (linux_wait_for_event): Update messages. Do not
20419 reinsert auto-delete breakpoints.
20420 * mem-break.c (struct breakpoint): Change return type of handler to
20421 int.
20422 (set_breakpoint_at): Update handler type.
20423 (reinsert_breakpoint_handler): Return 1 instead of calling
20424 delete_breakpoint.
20425 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20426 setting a new one.
20427 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20428 * mem-break.h (set_breakpoint_at): Update handler type.
20429 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20430 * win32-low.c (auto_delete_breakpoint): New.
20431 (get_child_debug_event): Use it.
20432
4e799345
DJ
204332007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20434
20435 * configure.ac: Check for pread and pwrite.
20436 * hostio.c (handle_pread): Fall back to lseek and read.
20437 (handle_pwrite): Fall back to lseek and write.
20438 * config.in, configure: Regenerated.
20439
27524b67
DJ
204402007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20441
20442 * server.c (myresume): Add own_buf argument.
20443 (main): Update calls.
20444
a20d5e98
DJ
204452007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20446
20447 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20448 * remote-utils.c (remote_open): Do not call disable_async_io.
20449 (block_async_io): Delete.
20450 (unblock_async_io): Make static.
20451 (initialize_async_io): New.
20452 * server.c (handle_v_cont): Handle async I/O here.
20453 (myresume): Likewise. Move other common resume tasks here...
20454 (main): ... from here. Call initialize_async_io. Disable async
20455 I/O before the main loop.
20456 * server.h (initialize_async_io): Declare.
20457 (block_async_io, unblock_async_io): Delete prototypes.
20458 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20459
b79d787e
DJ
204602007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20461
20462 * remote-utils.c (readchar): Allow binary data in received messages.
20463
d97903b2
PA
204642007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20465
20466 * win32-low.c (attaching): New global.
20467 (win32_create_inferior): Clear the `attaching' global.
20468 (win32_attach): Set the `attaching' global.
20469 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20470 attaching. Only set a breakpoint at the entry point if not
20471 attaching.
20472
311de423
PA
204732007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20474
20475 * server.c (main): Don't report dll events on the initial
20476 connection on attaches.
20477
6c2d16d2
PA
204782007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20479
20480 * server.c (main): Relax numerical bases supported for the pid of
20481 the --attach command line argument.
20482
5ca906e6
PA
204832007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20484
20485 * win32-low.c (win32_attach): Call OpenProcess before
20486 DebugActiveProcess, not after. Add last error output to error
20487 call.
20488
9c6c8194
PA
204892007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20490
20491 * win32-low.c (win32_get_thread_context)
20492 (win32_set_thread_context): New functions.
20493 (thread_rec): Use win32_get_thread_context.
20494 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20495 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20496 field.
20497
4d5d1aaa
PA
204982007-12-03 Leo Zayas
20499 Pedro Alves <pedro_alves@portugalmail.pt>
20500
20501 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20502 global variables.
20503 (child_add_thread): Minor cleanup.
20504 (child_continue): Resume artificially suspended threads before
20505 calling ContinueDebugEvent.
20506 (suspend_one_thread): New.
20507 (fake_breakpoint_event): New.
20508 (get_child_debug_event): Change return type to int. Check here if
20509 gdb sent an interrupt request. If a soft interrupt was requested,
20510 fake a breakpoint event. Return 0 if there is no event to handle,
20511 and 1 otherwise.
20512 (win32_wait): Don't check here if gdb sent an interrupt request.
20513 Ensure there is a valid event to handle.
20514 (win32_request_interrupt): Add soft interruption method as last
20515 resort.
20516
c436e841
PA
205172007-12-03 Leo Zayas
20518 Pedro Alves <pedro_alves@portugalmail.pt>
20519
20520 * win32-low.h (win32_thread_info): Add descriptions to the
20521 structure members. Replace `suspend_count' counter by a
20522 `suspended' flag.
20523 * win32-low.c (thread_rec): Update condition of when to get the
20524 context from the inferior. Rely on ContextFlags being set if it
20525 has already been retrieved. Only suspend the inferior thread if
20526 we haven't already. Warn if that fails.
20527 (continue_one_thread): s/suspend_count/suspended/. Only call
20528 ResumeThread once. Warn if that fails.
20529
e7b5fa67
PA
205302007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20531
20532 * win32-low.c (win32_wait): Don't read from the inferior when it
20533 has already exited.
20534
a385171d
PA
205352007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20536
20537 * Makefile.in (win32_low_h): New variable.
20538 (win32-low.o): Add dependency on $(win32_low_h).
20539 (win32-arm-low.o, win32-i386-low.o): New rules.
20540
f80c84b3
DJ
205412007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20542
20543 * hostio.c: Correct copyright year.
20544
a6b151f1
DJ
205452007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20546
20547 * Makefile.in (OBS): Add hostio.o.
20548 (hostio.o): New rule.
20549 * server.h (handle_vFile): Declare.
20550 * hostio.c: New file.
20551 * server.c (handle_v_requests): Take packet_len and new_packet_len
20552 for binary packets. Call handle_vFile.
20553 (main): Update call to handle_v_requests.
20554
f9387fc3
DJ
205552007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20556
20557 * linux-low.c: Include <sched.h>.
20558
51c2684e
DJ
205592007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20560
20561 * linux-low.c (linux_tracefork_grandchild): New.
20562 (linux_tracefork_child): Use clone.
20563 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20564
75f83163
JB
205652007-10-31 Joel Brobecker <brobecker@adacore.com>
20566
20567 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20568
da5898ce
DJ
205692007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20570
20571 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20572
24a09b5f
DJ
205732007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20574
20575 * inferiors.c (change_inferior_id): Delete.
20576 (add_pid_to_list, pull_pid_from_list): New.
20577 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20578 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20579 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20580 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20581 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20582 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20583 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20584 (using_threads): Always set to 1.
20585 (handle_extended_wait): New.
20586 (add_process): Do not set TID.
20587 (linux_create_inferior): Set must_set_ptrace_flags.
20588 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20589 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20590 (linux_thread_alive): Rename TID argument to LWPID.
20591 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20592 (linux_wait_for_event): Do not use TID or check using_threads. Update
20593 call to dead_thread_notify. Call handle_extended_wait.
20594 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20595 (send_sigstop): Delete sigstop_sent.
20596 (wait_for_sigstop): Avoid TID.
20597 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20598 (linux_test_for_tracefork): New.
20599 (linux_lookup_signals): Use thread_db_active and
20600 linux_supports_tracefork_flag.
20601 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20602 * linux-low.h (get_process_thread): Avoid TID.
20603 (struct process_ifo): Move thread_known and tid to the end. Remove
20604 sigstop_sent.
20605 (linux_attach_lwp, thread_db_init): Update prototypes.
20606 * server.h (change_inferior_id): Delete prototype.
20607 (add_pid_to_list, pull_pid_from_list): New prototypes.
20608 * thread-db.c (thread_db_use_events): New.
20609 (find_first_thread): Rename to...
20610 (find_one_thread): ...this. Update callers and messages. Do not
20611 call fatal. Check thread_db_use_events. Do not call
20612 change_inferior_id or new_thread_notify.
20613 (maybe_attach_thread): Update. Do not call new_thread_notify.
20614 (thread_db_init): Set thread_db_use_events. Check use_events.
20615 * utils.c (fatal, warning): Correct message prefix.
20616
30ed0a8f
DJ
206172007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20618
20619 * Makefile.in (clean): Remove new files.
20620 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20621 (powerpc-64.o, powerpc-64.c): New rules.
20622 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20623 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20624 with SPE.
20625 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20626 SPE targets.
20627 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20628 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20629 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20630 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20631 (target_regsets): Add AltiVec and SPE register sets.
20632 * configure.ac: Check for AltiVec and SPE.
20633 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20634 (ppc_fill_vrregset, ppc_store_vrregset): New.
20635 (target_regsets): Add AltiVec register set.
20636 * configure: Regenerated.
20637
fd462a61
DJ
206382007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20639
20640 * linux-low.c (O_LARGEFILE): Define.
20641 (linux_read_memory): Use /proc/PID/mem.
20642 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20643 * configure, config.in: Regenerated.
20644
69f223ed
DJ
206452007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20646
20647 * linux-low.c (linux_wait_for_event): Do not pass signals while
20648 single-stepping.
20649
aec18585
PA
206502007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20651
20652 * win32-low.c (create_process): New.
20653 (win32_create_inferior): Use create_process instead of
20654 CreateProcess. If create_process failed retry appending an ".exe"
20655 suffix. Store the GetLastError result immediatelly after
20656 create_process calls and use it on the call to error.
20657
34d86ddd
PA
206582007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20659
20660 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20661
5a0e3bd0
JB
206622007-08-23 Joel Brobecker <brobecker@adacore.com>
20663
20664 * configure.ac: Switch license to GPLv3.
20665
f88c79e6
MS
206662007-08-01 Michael Snyder <msnyder@access-company.com>
20667
20668 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20669
6b3d9b83
PA
206702007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20671
20672 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20673 typedef.
20674 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20675 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20676 CloseToolhelp32Snapshot.
20677 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20678 CloseToolhelp32Snapshot.
20679
c588c53c
MS
206802007-07-27 Michael Snyder <michael.snyder@access-company.com>
20681
20682 * server.c (main): Check for inferior exit before main loop.
20683
aa0403d9
PA
206842007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20685
20686 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20687 instead of on tmp_desc.
20688
255e7678
DJ
206892007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20690 Daniel Jacobowitz <dan@codesourcery.com>
20691
20692 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20693 (add_thread): Minor cleanups.
20694 (clear_inferiors): Move lower in the file. Clear the DLL
20695 list.
20696 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20697 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20698 (xml_escape_text): New.
20699 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20700 for qSupported.
20701 (handle_v_cont): Report errors.
20702 (gdbserver_version): Update.
20703 (main): Correct size of own_buf. Do not report initial DLL events.
20704 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20705 (unloaded_dll, xml_escape_text): New.
20706 * win32-low.c (enum target_waitkind): Update comments.
20707 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20708 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20709 (win32_EnumProcessModules, win32_GetModuleInformation)
20710 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20711 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20712 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20713 (win32_Module32First, win32_Module32Next, load_toolhelp)
20714 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20715 (get_child_debug_event): Handle DLL events.
20716 (win32_wait): Likewise.
20717
0d37add9
DJ
207182007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20719
20720 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20721 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20722
45e2715e
PA
207232007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20724
20725 * win32-low.c (handle_output_debug_string): Ignore event if not
20726 waiting.
20727
c5674cf1
PA
207282007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20729
20730 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20731
2bbe3cc1
DJ
207322007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20733
20734 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20735
ae13219e
DJ
207362007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20737
20738 * inferiors.c (change_inferior_id): Add comment.
20739 * linux-low.c (check_removed_breakpoint): Add an early
20740 prototype. Improve debug output.
20741 (linux_attach): Doc update.
20742 (linux_detach_one_process, linux_detach): Clean up before releasing
20743 each process.
20744 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20745 * linux-low.h (struct process_info): Doc improvement.
20746 * mem-break.c (delete_all_breakpoints): New.
20747 * mem-break.h (delete_all_breakpoints): New prototype.
20748 * thread-db.c (find_first_thread): New.
20749 (thread_db_create_event): Call it instead of
20750 thread_db_find_new_threads. Clean up unused variables.
20751 (maybe_attach_thread): Remove first thread handling.
20752 (thread_db_find_new_threads): Use find_first_thread.
20753 (thread_db_get_tls_address): Likewise.
20754
4105de34
DJ
207552007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20756
20757 * thread-db.c (thread_db_find_new_threads): Add prototype.
20758 (thread_db_create_event): Check for the main thread before adding
20759 a new thread.
20760 (maybe_attach_thread): Only enable event reporting if TID == 0.
20761 (thread_db_get_tls_address): Check for new threads.
20762
2b876972
DJ
207632007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20764
20765 * linux-low.c (linux_create_inferior): Try execv before execvp.
20766 * spu-low.c (spu_create_inferior): Likewise.
20767
7a245884
DJ
207682007-06-13 Mike Frysinger <vapier@gentoo.org>
20769
20770 * linux-low.c (linux_create_inferior): Change execv to execvp.
20771 * spu-low.c (spu_create_inferior): Likewies.
20772
117ce543
DJ
207732007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20774
20775 * Makefile.in (clean): Clean new files instead of deleted ones.
20776 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20777 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20778 rules.
20779 * configure.srv: Specify XML files and new regformats for MIPS and
20780 MIPS64 GNU/Linux.
20781 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20782 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20783 an entry for the restart register.
20784 (mips_cannot_fetch_register, mips_cannot_store_register)
20785 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20786 register names to match the XML descriptions.
20787 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20788 restart register instead of $0.
20789
0e7f50da
UW
207902007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20791 Markus Deuling <deuling@de.ibm.com>
20792
20793 * remote-utils.c (decode_xfer_write): New function.
20794 * server.h (decode_xfer_write): Add prototype.
20795 * server.c (handle_query): Add PACKET_LEN argument. Support
20796 qXfer:spu:read and qXfer:spu:write packets.
20797 (main): Pass packet_len to handle_query.
20798 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20799 * target.h (target_ops): Add qxfer_spu.
20800
374c1d38
UW
208012007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20802
20803 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20804 accessing non-seekable spufs files.
20805
bb63802a
UW
208062007-05-16 Markus Deuling <deuling@de.ibm.com>
20807
889bf7c5 20808 * server.c (handle_query): Add reply for qC packet.
bb63802a 20809
7390519e
PA
208102007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20811 Leo Zayas <lerele@champenstudios@com>
20812
20813 * server.h (check_remote_input_interrupt_request): New function.
20814 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20815 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20816 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20817 (check_remote_input_interrupt_request): New function.
20818 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20819 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20820 winapi_GenerateConsoleCtrlEvent): New typedefs.
20821 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20822 to 250 ms.
20823 (win32_wait): Check for remote interrupt request
20824 with check_remote_input_interrupt_request.
20825 (win32_request_interrupt): New function.
20826 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20827
34b34921
PA
208282007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20829
20830 * win32-low.c (debug_registers_changed,
20831 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20832 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20833 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20834 (thread_rec): Get context using the low target.
20835 (child_add_thread): Call thread_added on the low target,
20836 which does the same thing.
20837 (regptr): Delete.
20838 (do_initial_child_stuff): Remove debug registers references.
20839 Set context using the low target. Resume threads after
20840 setting the contexts.
20841 (child_continue): Remove dead variable. Remove debug
20842 registers references.
20843 (child_fetch_inferior_registers): Go through the low target.
20844 (do_child_store_inferior_registers): Remove.
20845 (child_store_inferior_registers): Go through the low target.
20846 (win32_resume): Remove debug registers references.
20847 Set context using the low target.
20848 (handle_exception): Change return type to void. Don't record
20849 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20850 first chance exception.
889bf7c5 20851 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
20852 goto loop. Always return after waiting for debug event.
20853 (win32_wait): Convert to switch statement. Handle spurious
20854 events.
20855
20856 * win32-i386-low.c (debug_registers_changed,
20857 debug_registers_used): New.
20858 (initial_stuff): Rename to ...
20859 (i386_initial_stuff): ... this. Clear debug registers
20860 state variables.
20861 (store_debug_registers): Delete.
20862 (i386_get_thread_context): New.
20863 (load_debug_registers): Delete.
20864 (i386_set_thread_context): New.
20865 (i386_thread_added): New.
20866 (single_step): Rename to ...
20867 (i386_single_step): ... this.
20868 (do_fetch_inferior_registers): Rename to ...
20869 (i386_fetch_inferior_register): ... this.
20870 (i386_store_inferior_register): New.
20871 (the_low_target): Adapt to new interface.
20872
20873 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20874 (arm_get_thread_context): New.
20875 (arm_set_thread_context): New.
20876 (regptr): New.
20877 (do_fetch_inferior_registers): Rename to ...
20878 (arm_fetch_inferior_register): ... this.
20879 (arm_store_inferior_register): New.
20880 (arm_wince_breakpoint): Reimplement as unsigned long.
20881 (arm_wince_breakpoint_len): Define.
20882 (the_low_target): Adapt to new interface.
20883
20884 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20885 load_debug_registers. Add get_thread_context, set_thread_context,
20886 thread_added and store_inferior_register. Rename
20887 fetch_inferior_registers to fetch_inferior_register.
20888 (regptr): Remove declaration.
20889
dd6953e1
PA
208902007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20891
20892 * linux-low.c (linux_detach): Change return type to int. Return 0.
20893 * spu-low.c (spu_detach): Likewise.
20894
444d6139
PA
208952007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20896
20897 * target.h (target_ops): Change return type of detach to int.
20898 Add join.
20899 (join_inferior): New.
20900 * server.c (main): Don't skip detach support on mingw32.
20901 If the inferior doesn't support detaching return error.
20902 Call join_inferior instead of using waitpid.
20903 * linux-low.c (linux_join): New.
20904 (linux_target_op): Add linux_join.
20905 * spu-low.c (spu_join): New.
20906 (spu_target_ops): Add spu_join.
20907 * win32-low.c (win32_detach): Adapt to new interface.
20908 Reopen current_process_handle before detaching. Issue a child
20909 resume before detaching.
20910 (win32_join): New.
20911 (win32_target_op): Add win32_join.
20912
1d5315fe
PA
209132007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20914
20915 * win32-low.c (win32-attach): Fix return value.
20916 * target.h (target_ops): Describe ATTACH return values.
20917
bf914831
PA
209182007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20919
20920 * win32-low.c (GETPROCADDRESS): Define.
20921 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20922 (winapi_DebugSetProcessKillOnExit): Likewise.
20923 (win32_create_inferior): Force usage of ansi CreateProcessA.
20924 (win32_attach): Use GETPROCADDRESS.
20925 (win32_detach): Likewise.
20926
f72f3e60
PA
209272007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20928
20929 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20930
ed50f18f
PA
209312007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20932
20933 * win32-low.c: Commit leftover changes from 2007-03-29.
20934
0c2ead7e
DJ
209352007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20936
20937 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20938 fields short instead of int. Add explicit padding.
20939 (i387_cache_to_fsave): Remove unnecessary casts.
20940 (i387_fsave_to_cache): Doc fix.
20941 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20942
73725ff3
DJ
209432007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20944
20945 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20946 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20947
d99f33d8
PA
209482007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20949
20950 * configure.srv (arm*-*-mingw32ce*): Move near the other
20951 arm targets.
20952
68070c10
PA
209532007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20954
2482afc6 20955 * configure.ac: Add errno checking.
68070c10
PA
20956 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20957 sys/file.h and malloc.h.
20958 (AC_CHECK_DECLS): Add perror.
20959 (srv_mingwce): Handle.
2482afc6 20960 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
20961 win32-i386-low.o to srv_tgtobj.
20962 (i[34567]86-*-mingw*): Likewise.
20963 (arm*-*-mingw32ce*): Add case.
20964 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20965 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20966 [__MINGW32CE__] (strerror): New function.
20967 [__MINGW32CE__] (errno): Define to GetLastError.
20968 [__MINGW32CE__] (COUNTOF): New macro.
20969 (remote_open): Remove extra close call.
20970 * mem-break.c (delete_breakpoint_at): New function.
20971 * mem-break.h (delete_breakpoint_at): Declare.
20972 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20973 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20974 [USE_WIN32API] (read, write): Add char* casts.
20975 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20976 * server.h: Include wincecompat.h on Windows CE.
20977 [HAVE_ERRNO_H]: Check.
20978 (perror): Declare if not declared.
20979 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20980 (perror_with_name): Remove errno declaration.
20981 * wincecompat.h: New.
20982 * wincecompat.c: New.
20983 * win32-low.h: New.
20984 * win32-arm-low.c: New.
20985 * win32-i386-low.c: New.
20986 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20987 (OUTMSG2): Make it safe.
20988 (_T): New macro.
20989 (COUNTOF): New macro.
20990 (NUM_REGS): Get it from the low target.
20991 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20992 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20993 (thread_rec): Let low target handle debug registers.
20994 (child_add_thread): Likewise.
20995 (child_init_thread_list): Likewise.
20996 (continue_one_thread): Likewise.
20997 (regptr): New.
20998 (do_child_fetch_inferior_registers): Move to ...
20999 * win32-i386-low.c: ... here, and rename to ...
21000 (do_fetch_inferior_registers): ... this.
889bf7c5 21001 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21002 Go through the low target.
21003 (do_child_store_inferior_registers): Use regptr.
21004 (strwinerror): New function.
21005 (win32_create_inferior): Handle Windows CE.
21006 Use strwinerror instead of strerror on Windows error
21007 codes. Add program to the error output.
21008 Don't close the main thread handle on Windows CE.
21009 (win32_attach): Use coredll.dll on Windows CE.
21010 (win32_kill): Close current process and current
21011 thread handles.
21012 (win32_detach): Use coredll.dll on Windows CE.
21013 (win32_resume): Let low target handle debug registers, and
21014 step request.
21015 (handle_exception): Add/Remove initial breakpoint. Avoid
21016 non-existant WSTOPSIG on Windows CE.
21017 (win32_read_inferior_memory): Cast to remove warning.
21018 (win32_arch_string): Go through the low target.
21019 (initialize_low): Call set_breakpoint_data with the low
21020 target's breakpoint.
21021 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21022 FOP_REGNUM, mappings): Move to ...
21023 * win32-i386-low.c: ... here.
21024 * win32-low.c (win32_thread_info): Move to ...
21025 * win32-low.h: ... here.
21026 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21027 win32-arm-low.c and wincecompat.c.
21028 (all:): Add $EXEEXT.
21029 (install-only:): Likewise.
21030 (gdbserver:): Likewise.
21031 (gdbreplay:): Likewise.
21032 * config.in: Regenerate.
21033 * configure: Regenerate.
21034
41093d81
PA
210352007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21036
21037 * win32-low.c: Rename typedef thread_info to
21038 win32_thread_info throughout.
21039
544afa54
PA
210402007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21041
21042 * win32-i386-low.c: Rename to ...
21043 * win32-low.c: ... this.
21044 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21045 * Makefile.in: Likewise.
21046
bce7165d
PA
210472007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21048
21049 * remote-utils.c (monitor_output): Constify msg parameter.
21050 * server.h (monitor_output): Likewise.
21051 * win32-i386-low.c (handle_output_debug_string): New.
21052 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21053 handle_output_debug_string.
21054 (get_child_debug_event): Likewise.
21055
506c7aa0
DJ
210562007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21057
21058 * server.c (main): Correct strtoul check.
21059
42c81e2a
DJ
210602007-03-27 Jon Ringle <jon@ringle.org>
21061
21062 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21063
9453113a
DJ
210642007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21065
21066 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21067
64a69107
DJ
210682007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21069
21070 * terminal.h: Check HAVE_SGTTY_H.
21071
210722007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21073
21074 * remote-utils.c (remote_open): Print out the assigned port number.
21075
c74d0ad8
DJ
210762007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21077
21078 * remote-utils.c (monitor_output): New function.
21079 * server.c (debug_threads): Define here.
21080 (monitor_show_help): New function.
21081 (handle_query): Handle qRcmd.
21082 (main): Do not handle 'd' packet.
21083 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21084 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21085 of debug_threads.
21086
de7c3b4a
PA
210872007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21088
21089 * Makefile.in (EXEEXT): New.
21090 (clean): Use $(EXEEXT).
21091
ef57601b
PA
210922007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21093
21094 * target.h (target_ops): Rename send_signal to request_interrupt,
21095 and remove enum target_signal parameter.
21096 * linux-low.c (linux_request_interrupt): Rename from
21097 linux_send_signal, and always send SIGINT.
21098 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21099 and always send SIGINT.
21100 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21101 of send_signal.
21102 (input_interrupt): Likewise.
21103
820f2bda
PA
211042007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21105
21106 * server.c (get_features_xml): Check if target implemented
21107 arch_string.
21108 * win32-i386-low.c (win32_arch_string): New.
21109 (win32_target_ops): Add win32_arch_string as arch_string member.
21110
ab39bf24
UW
211112007-02-22 Markus Deuling <deuling@de.ibm.com>
21112
21113 * spu-low.c (spu_arch_string): New.
21114 (spu_target_ops): Add spu_arch_string.
21115
61ff6e04
DJ
211162007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21117
21118 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21119 * configure.ac: Do not check for terminal.h.
21120 * configure, config.in: Regenerated.
21121
fb1e4ffc
DJ
211222007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21123
21124 * Makefile.in (OBS): Add $(XML_BUILTIN).
21125 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21126 (clean): Update.
21127 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21128 (arm-with-iwmmxt.c): New.
21129 * config.in, configure: Regenerate.
21130 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21131 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21132 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21133 (arm*-*-linux*): Add iWMMXt and regset support.
21134 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21135 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21136 (arm_store_wmmxregset, target_regsets): New.
21137 * server.c (get_features_xml): Take annex argument. Check builtin
21138 XML documents.
21139 (handle_query): Handle multiple annexes.
21140
0f48aa01
DJ
211412007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21142
21143 * remote-utils.c [USE_WIN32API] (read, write): Define.
21144 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21145 write.
21146
23181151
DJ
211472007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21148
21149 * linux-i386-low.c (the_low_target): Set arch_string.
21150 * linux-x86-64-low.c (the_low_target): Likewise.
21151 * linux-low.c (linux_arch_string): New.
21152 (linux_target_ops): Add it.
21153 * linux-low.h (struct linux_target_ops): Add arch_string.
21154 * server.c (write_qxfer_response): Use const void * for DATA.
21155 (get_features_xml): New.
21156 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21157 * target.h (struct target_ops): Add arch_string method.
21158
9d606399
DJ
211592007-01-03 Denis Pilat <denis.pilat@st.com>
21160 Daniel Jacobowitz <dan@codesourcery.com>
21161
21162 * linux-low.c (linux_kill): Handle being called with no threads.
21163 * win32-i386-low.c (win32_kill): Likewise.
21164 (get_child_debug_event): Clear current_process_handle.
21165
211662006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21167 Daniel Jacobowitz <dan@codesourcery.com>
21168
21169 * remote-utils.c (remote_open): Check the type of specified
21170 serial port devices before opening them.
21171 * server.c (main): Kill the inferior if an error occurs during
21172 the first remote_open.
21173
a5e13d24
DJ
211742006-12-05 Markus Deuling <deuling@de.ibm.com>
21175
21176 * README: Update supported targets.
21177
186947f7
DJ
211782006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21179
21180 * Makefile.in (clean): Remove reg-mips64.c.
21181 (reg-mips64.c, reg-mips64.o): New rules.
21182 * configure.srv: Handle mips64. Include regset support for mips.
21183 * linux-mips-low.c (union mips_register): New.
21184 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21185 (mips_breakpoint, mips_breakpoint_at): Use int.
21186 (mips_collect_register, mips_supply_register)
21187 (mips_collect_register_32bit, mips_supply_register_32bit)
21188 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21189 (mips_store_fpregset, target_regsets): New.
21190 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21191
a13e2c95
UW
211922006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21193
21194 * configure.srv: Add target "spu*-*-*".
21195 * Makefile.in (clean): Remove reg-spu.c.
21196 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21197 * spu-low.c: New file.
21198
cb7283db
DJ
211992006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21200
21201 * configure.ac: Correct td_thr_tls_get_addr test.
21202 * configure: Regenerated.
21203
89be2091
DJ
212042006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21205
21206 * linux-low.c (linux_wait_for_event): Reformat. Use the
21207 pass_signals array.
21208 * remote-utils.c (decode_address_to_semicolon): New.
21209 * server.c (pass_signals, handle_general_set): New.
21210 (handle_query): Mention QPassSignals for qSupported.
21211 (main): Call handle_general_set.
21212 * server.h (pass_signals, decode_address_to_semicolon): New.
21213
000ef4f0
DJ
212142006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21215
21216 * server.c (handle_query): Correct error handling for read_auxv.
21217
b7149293
UW
212182005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21219
21220 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21221 and srv_linux_thread_db to yes.
21222 * linux-s390-low.c (s390_fill_gregset): New function.
21223 (target_regsets): Define data structure.
21224
dae5f5cf
DJ
212252006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21226
21227 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21228 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21229 * config.in, configure: Regenerated.
21230 * inferiors.c (gdb_id_to_thread): New function.
21231 (gdb_id_to_thread_id): Use it.
21232 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21233 * linux-low.h (struct process_info): Add th member.
21234 (thread_db_get_tls_address): New prototype.
21235 * remote-utils.c (decode_address): Make non-static.
21236 * server.c (handle_query): Handle qGetTLSAddr.
21237 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21238 * target.h (struct target_ops): Add get_tls_address.
21239 * thread-db.c (maybe_attach_thread): Save the thread handle.
21240 (thread_db_get_tls_address): New.
21241
32ca6d61
DJ
212422006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21243
21244 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21245 (linux_resume_one_process): Take a siginfo_t *. Update all
21246 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21247 (struct pending_signals): Add a siginfo_t.
21248 (linux_wait_for_process): Always set last_status.
21249 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21250 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21251 * linux-low.h (struct process_info): Add last_status.
21252
5ffff7c1
DJ
212532006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21254
21255 * remote-utils.c (try_rle): New function.
21256 (putpkt_binary): Use it.
21257
8695c747
DJ
212582006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21259
21260 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21261 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21262 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21263 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21264 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21265 point registers.
21266
290fadea
RS
212672006-08-08 Richard Sandiford <richard@codesourcery.com>
21268
21269 * server.c (terminal_fd): New variable.
21270 (old_foreground_pgrp): Likewise.
21271 (restore_old_foreground_pgrp): New function.
21272 (start_inferior): Record the terminal file descriptor in terminal_fd
21273 and its original foreground group in old_foreground_pgrp. Register
21274 restore_old_foreground_pgrp with atexit().
21275
9f2e1e63
DJ
212762006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21277
21278 * server.c (handle_query): Correct qPart to qXfer.
21279
b80864fb
DJ
212802006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21281
21282 * configure.ac: Check for more headers which are missing on
21283 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21284 * configure.srv: Add Cygwin and mingw32.
21285 * remote-utils.c: Don't include headers unconditionally which
21286 are missing on mingw32. Include <winsock.h> for mingw32.
21287 (remote_open): Adjust for mingw32 support. Flush
21288 standard error after writing to it.
21289 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21290 (unblock_async_io, enable_async_io, disable_async_io)
21291 (readchar, getpkt): Update for Winsock support.
21292 (prepare_resume_reply): Expect a protocol signal number.
21293 * server.c: Disable <sys/wait.h> on mingw32.
21294 (start_inferior): Adjust for mingw32 support. Flush
21295 standard error after writing to it.
21296 (attach_inferior): Likewise. Use protocol signal
21297 numbers.
21298 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21299 and names.
21300 * win32-i386-low.c: New file.
21301 * Makefile.in (XM_CLIBS): Set.
21302 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21303 (win32-i386-low.o): New dependency rule.
21304 * linux-low.c (linux_wait): Use target signal numbers.
21305 * target.h (struct target_ops): Doc fix.
21306 * server.h (target_signal_to_name): New prototype.
21307 * gdbreplay.c: Don't include headers unconditionally which
21308 are missing on mingw32. Include <winsock.h> for mingw32.
21309 (remote_close, remote_open): Adjust for Winsock support.
21310 * configure, config.in: Regenerated.
21311
0876f84a
DJ
213122006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21313
21314 * server.c (decode_xfer_read, write_qxfer_response): New.
21315 (handle_query): Take a packet length argument. Handle
21316 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21317 the qSupported response.
21318 (main): Update call to handle_query.
21319
01f9e8fa
DJ
213202006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21321
21322 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21323 (putpkt_binary): Renamed from putpkt and adjusted for binary
21324 data.
21325 (putpkt): New wrapper for putpkt_binary.
21326 (readchar): Don't mask off the high bit.
21327 (decode_X_packet): New function.
21328 * server.c (main): Call putpkt_binary if a handler sets the packet
21329 length. Save the length of the incoming packet. Handle 'X'.
21330 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21331
be2a5f71
DJ
213322006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21333
21334 * server.c (handle_query): Handle qSupported.
21335
ea025f5f
DJ
213362006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21337
21338 * remote-utils.c (all_symbols_looked_up): New variable.
21339 (look_up_one_symbol): Check it.
21340 * server.h (look_up_one_symbol): New declaration.
21341 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21342
9308fc88
DJ
213432006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21344
21345 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21346 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21347 (PTRACE_GET_THREAD_AREA): Define.
21348 (ps_get_thread_area): New function.
21349
52fb6437
NS
213502006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21351
21352 * configure.srv (m68k*-*-uclinux*): New target.
21353 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21354 (linux_resume_one_process): Remove extraneous cast.
21355 (linux_read_offsets): New.
21356 (linux_target_op): Add linux_read_offsets on mmuless systems.
21357 * server.c (handle_query): Add qOffsets logic.
21358 * target.h (struct target_ops): Add read_offsets.
21359
21b0f40c
DJ
213602006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21361
21362 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21363 (PTRACE_GET_THREAD_AREA): Define.
21364 (ps_get_thread_area): New function.
21365 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21366 (linux-x86-64-low.o): Update.
21367
0050a760
DJ
213682006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21369
21370 * configure.ac: Remove checks for prfpregset_t.
21371 * gdb_proc_service.h: New file.
21372 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21373 new "gdb_proc_service.h".
21374 * proc-service.c: Likewise.
21375 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21376 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21377 * Makefile.in (gdb_proc_service_h): Updated.
21378 * configure, config.in: Regenerated.
21379
b92a518e
DJ
213802006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21381
21382 * remote-utils.c (prepare_resume_reply): Move declaration
21383 of gdb_id_from_wait to the top of the block.
21384
545587ee
DJ
213852006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21386
21387 * linux-low.c (regsets_store_inferior_registers): Read the regset
21388 from the target before filling it.
21389
9db87ebd
DJ
213902006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21391
21392 * server.c (attach_inferior): Return SIGTRAP for a successful
21393 attach.
21394
dd24457d
DJ
213952006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21396
21397 * Makefile.in (OBS): Add version.o.
21398 (STAGESTUFF): Delete.
21399 (version.o): Add dependencies.
21400 (version.c): Replace rule.
21401 (clean): Remove version.c.
21402 * server.c (gdbserver_version): New.
21403 (gdbserver_usage): Use printf.
21404 (main): Handle --version and --help.
21405 * server.h (version, host_name): Add declarations.
21406
6f0f660e
EZ
214072005-12-23 Eli Zaretskii <eliz@gnu.org>
21408
889bf7c5
PA
21409 * linux-arm-low.c:
21410 * linux-arm-low.c:
21411 * inferiors.c:
21412 * i387-fp.h:
21413 * i387-fp.c:
21414 * gdbreplay.c:
21415 * regcache.c:
21416 * proc-service.c:
21417 * mem-break.h:
21418 * mem-break.c:
21419 * linux-x86-64-low.c:
21420 * linux-sh-low.c:
21421 * linux-s390-low.c:
21422 * linux-ppc64-low.c:
21423 * linux-ppc-low.c:
21424 * linux-mips-low.c:
21425 * linux-m68k-low.c:
21426 * linux-m32r-low.c:
21427 * linux-low.h:
21428 * linux-low.c:
21429 * linux-ia64-low.c:
21430 * linux-i386-low.c:
21431 * linux-crisv32-low.c:
21432 * thread-db.c:
21433 * terminal.h:
21434 * target.h:
21435 * target.c:
21436 * server.h:
21437 * server.c:
21438 * remote-utils.c:
21439 * regcache.h:
21440 * utils.c:
21441 * Makefile.in:
21442 * configure.ac:
6f0f660e
EZ
21443 * gdbserver.1: Add (C) after Copyright. Update the FSF
21444 address.
21445
9d1fb177
DJ
214462005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21447
21448 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21449 (arm_breakpoint_at): Recognize both breakpoints.
21450 (the_low_target): Use the correct breakpoint instruction.
21451
011a70c2
DJ
214522005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21453
21454 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21455 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21456 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21457 (the_low_target): Update.
21458
7fb85e41
AS
214592005-10-25 Andreas Schwab <schwab@suse.de>
21460
21461 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21462
21463 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21464 (ia64_num_regs): Reduce to 462.
21465
3db0444b
DJ
214662005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21467
21468 * acinclude.m4: Correct quoting.
21469 * aclocal.m4: Regenerated.
21470
21471 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21472 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21473 (thread_db_init): Call thread_db_err_str.
21474 * configure.ac: Check for TD_VERSION.
21475 * config.in, configure: Regenerated.
21476
bee0189a
DJ
214772005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21478
21479 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21480
e9d25b98
DJ
214812005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21482
21483 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21484 is not available. Define HAVE_PTRACE_GETREGS if it is.
21485 * config.in, configure: Regenerated.
21486 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21487 * linux-i386-low.c, linux-m68k-low.c: Update to use
21488 HAVE_PTRACE_GETREGS.
21489 * linux-low.c (regsets_fetch_inferior_registers)
21490 (regsets_store_inferior_registers): Only return 0 if we processed
21491 GENERAL_REGS.
21492 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21493 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21494
a06660f7
DJ
214952005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21496
21497 * inferiors.c (struct thread_info): Add gdb_id.
21498 (add_thread): Add gdb_id argument.
21499 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21500 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21501 calls to add_thread.
21502 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21503 * server.c (handle_query): Use thread_to_gdb_id.
21504 (handle_v_cont, main): Use gdb_id_to_thread_id.
21505 * server.h (add_thread): Update prototype.
21506 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21507 prototypes.
21508
5a1f5858
DJ
215092005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21510
21511 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21512 left-padded registers.
21513 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21514 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21515
e122f1f5
SE
215162005-07-01 Steve Ellcey <sje@cup.hp.com>
21517
21518 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21519 * configure: Regenerate.
21520 * config.in: Regenerate.
21521 * server.h (NEED_DECLARATION_STRERROR):
21522 Replace with !HAVE_DECL_STRERROR.
21523
d592fa2f
DJ
215242005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21525
21526 * linux-low.c (linux_wait, linux_send_signal): Don't test
21527 an unsigned long variable for > 0 if it could be MAX_ULONG.
21528 * server.c (myresume): Likewise.
21529 * target.c (set_desired_inferior): Likewise.
21530
ccbd4912
MK
215312005-06-13 Mark Kettenis <kettenis@gnu.org>
21532
21533 * configure.ac: Simplify and improve check for socklen_t.
21534 * configure, config.in: Regenerate.
21535
f450004a
DJ
215362005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21537
21538 * acconfig.h: Remove.
21539 * configure.ac: Add a test for socklen_t. Use three-argument
21540 AC_DEFINE throughout.
21541 * config.in: Regenerated using autoheader 2.59.
21542 * configure: Regenerated.
21543
21544 * gdbreplay.c (socklen_t): Provide a default.
21545 (remote_open): Use socklen_t.
21546 * remote-utils.c (socklen_t): Provide a default.
21547 (remote_open): Use socklen_t.
21548 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21549 unsigned char.
21550
21551 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21552 char for buffers.
21553 * linux-low.c (linux_read_memory, linux_write_memory)
21554 (linux_read_auxv): Likewise.
21555 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21556 (check_mem_write): Likewise.
21557 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21558 Likewise.
21559 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21560 (registers_from_string, register_data): Likewise.
21561 * server.c (handle_query, main): Likewise.
21562 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21563 (decode_M_packet): Likewise.
21564 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21565 * target.h (struct target_ops): Update read_memory, write_memory,
21566 and read_auxv.
21567 (read_inferior_memory, write_inferior_memory): Update.
21568 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21569 to unsigned char *.
21570 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21571 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21572 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21573 linux-s390-low.c, linux-sh-low.c: Update for changes in
21574 read_inferior_memory and the_low_target->breakpoint.
21575
eee84df1
DJ
215762005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21577
21578 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21579 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21580 * configure.srv: Add powerpc64-*-linux*.
21581 * linux-ppc64-low.c: New file.
21582
45b134e5
OF
215832005-05-23 Orjan Friberg <orjanf@axis.com>
21584
21585 * linux-cris-low.c: New file with support for CRIS.
21586 * linux-crisv32-low.c: Ditto for CRISv32.
21587 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21588 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21589 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21590 reg-crisv32.o, and reg-crisv32.c to make rules.
21591 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21592 recognized targets.
21593
48d93c75
UW
215942005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21595
21596 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21597 of sizeof (PTRACE_XFER_TYPE).
21598 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21599
e013ee27
OF
216002005-05-12 Orjan Friberg <orjanf@axis.com>
21601
889bf7c5 21602 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21603 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21604 pointers for hardware watchpoint support.
21605 * linux-low.h (struct linux_target_ops): Ditto.
21606 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21607 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21608 to linux_target_ops.
21609 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21610 reply packet.
21611 * server.c (main): Recognize 'Z' and 'z' packets.
21612
b0ded00b
UW
216132005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21614
21615 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21616 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21617 (the_low_target): Add new members.
21618
8643e2ad
DJ
216192005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21620
21621 * proc-service.c (ps_lgetregs): Search all_processes instead of
21622 all_threads.
21623
fc620387
DJ
216242005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21625
21626 * server.c (start_inferior): Change return type to int.
21627 (attach_inferior): Change sigptr to int *.
21628 (handle_v_cont, handle_v_requests): Change signal to int *.
21629 (main): Change signal to int.
21630
216312005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21632
21633 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21634 * configure.srv: Add m32r*-*-linux*.
21635 * linux-m32r-low.c: New file.
21636
e0e76420
DJ
216372005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21638
21639 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21640
a1928bad
DJ
216412005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21642
21643 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21644 Take unsigned long arguments for PIDs.
21645 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21646 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21647 (wait_for_sigstop, linux_resume_one_process)
21648 (regsets_fetch_inferior_registers, linux_send_signal)
21649 (linux_read_auxv): Likewise. Update the types of variables holding
21650 PIDs. Update format string specifiers.
21651 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21652 * remote-utils.c (prepare_resume_reply): Likewise.
21653 * server.c (cont_thread, general_thread, step_thread)
21654 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21655 unsigned long.
21656 (handle_query): Update format specifiers.
21657 (handle_v_cont, main): Use strtoul for thread IDs.
21658 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21659 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21660 (general_thread, step_thread, thread_from_wait)
21661 (old_thread_from_wait): Update.
21662 * target.h (struct thread_resume): Use unsigned long for THREAD.
21663 (struct target_ops): Use unsigned long for arguments to attach and
21664 thread_alive.
21665
dcdb98d2
DJ
216662005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21667
21668 * acinclude.m4: Include bfd/bfd.m4 directly.
21669 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21670 <agriffis@toolchain.org>.
21671 * aclocal.m4, configure: Regenerated.
21672
bec39cab
AC
216732005-01-07 Andrew Cagney <cagney@gnu.org>
21674
21675 * configure.ac: Rename configure.in, require autoconf 2.59.
21676 * configure: Re-generate.
21677
434c4c77
DJ
216782004-12-08 Daniel Jacobowitz <dan@debian.org>
21679
21680 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21681 LIBS when finished.
21682 * aclocal.m4: Regenerated.
21683 * configure: Regenerated.
21684
db1d3e1b
AS
216852004-11-21 Andreas Schwab <schwab@suse.de>
21686
21687 * linux-m68k-low.c (m68k_num_gregs): Define.
21688 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21689 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21690 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21691 (m68k_breakpoint_at): New. Add to the_low_target.
21692
21693 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21694 srv_linux_thread_db to yes.
21695
43360365
JB
216962004-10-20 Joel Brobecker <brobecker@gnat.com>
21697
21698 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21699 (ARCH_SET_FS): Likewise.
21700 (ARCH_GET_FS): Likewise.
21701 (ARCH_GET_GS): Likewise.
21702
fd500816
DJ
217032004-10-16 Daniel Jacobowitz <dan@debian.org>
21704
21705 * linux-i386-low.c (ps_get_thread_area): New.
21706 * linux-x86-64-low.c (ps_get_thread_area): New.
21707 * linux-low.c: Include <sys/syscall.h>.
21708 (linux_kill_one_process): Don't kill the first thread here.
21709 (linux_kill): Kill the first thread here.
21710 (kill_lwp): New function.
21711 (send_sigstop, linux_send_signal): Use it.
21712 * proc-service.c: Clean up #ifdefs.
21713 (fpregset_info): Delete.
21714 (ps_lgetregs): Update and enable implementation.
21715 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21716 implementations.
21717 * remote-utils.c (struct sym_cache, symbol_cache): New.
21718 (input_interrupt): Print a clearer message.
21719 (async_io_enabled): New variable.
21720 (enable_async_io, disable_async_io): Use it. Update comments.
21721 (look_up_one_symbol): Use the symbol cache.
21722 * thread-db.c (thread_db_look_up_symbols): New function.
21723 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21724
f6de3c42
DJ
217252004-10-16 Daniel Jacobowitz <dan@debian.org>
21726
21727 * configure.in: Test for -rdynamic.
21728 * configure: Regenerated.
21729 * Makefile (INTERNAL_LDFLAGS): New.
21730 (gdbserver, gdbreplay): Use it.
21731
2c0fc042
AC
217322004-09-02 Andrew Cagney <cagney@gnu.org>
21733
21734 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21735
075b3282
DJ
217362004-03-23 Daniel Jacobowitz <drow@mvista.com>
21737
21738 * linux-low.c (linux_wait): Clear all_processes list also.
21739
fa6a77dc
DJ
217402004-03-12 Daniel Jacobowitz <drow@mvista.com>
21741
21742 * linux-low.c: Include <errno.h>. Remove extern declaration of
21743 errno.
21744
6d782a97
DJ
217452004-03-12 Daniel Jacobowitz <drow@mvista.com>
21746
21747 * gdbreplay.c, server.h, utils.c: Update copyright years.
21748
3a7fb99b
DJ
217492004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21750
21751 * server.c (main): Print child status or termination signal from
21752 variable 'signal', not 'sig'.
21753
c3e735a6
DJ
217542004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21755
21756 * linux-low.c (linux_read_memory): Change return type to
21757 int. Check for and return error from ptrace().
21758 * target.c (read_inferior_memory): Change return type to int. Pass
21759 back return status from the_target->read_memory().
21760 * target.h (struct target_ops): Adapt *read_memory() prototype.
21761 Update comment.
21762 (read_inferior_memory): Adapt prototype.
21763 * server.c (main): Return an error packet if
21764 read_inferior_memory() returns an error.
21765
a59d1c82
DJ
217662004-03-04 Daniel Jacobowitz <drow@mvista.com>
21767
21768 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21769 Unify with other clean targets.
21770
dc3f8883
DJ
217712004-02-29 Daniel Jacobowitz <drow@mvista.com>
21772
21773 * server.c (handle_v_cont): Call set_desired_inferior.
21774
89a208da
DJ
217752004-02-29 Daniel Jacobowitz <drow@mvista.com>
21776
21777 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21778
62ea82f5
DJ
217792004-02-29 Daniel Jacobowitz <drow@mvista.com>
21780
21781 * linux-low.c (linux_wait): Unblock async I/O.
21782 (linux_resume): Block and enable async I/O.
21783 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21784 * server.h (block_async_io, unblock_async_io): Add prototypes.
21785
6910d122
DJ
217862004-02-29 Daniel Jacobowitz <drow@mvista.com>
21787
21788 * remote-utils.c (remote_open): Print a status notice after
21789 opening a TCP port.
21790 * server.c (attach_inferior): Print a status notice after
21791 attaching.
21792
217932004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21794
21795 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21796
c89dc5d4
DJ
217972004-02-26 Daniel Jacobowitz <drow@mvista.com>
21798
21799 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21800 error packet.
21801 * server.c, target.h: Update copyright years.
21802
4b8dad4a
RM
218032004-02-25 Roland McGrath <roland@redhat.com>
21804
21805 * target.h (struct target_ops): New member `read_auxv'.
21806 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21807 * linux-low.c (linux_read_auxv): New function.
21808 (linux_target_ops): Initialize `read_auxv' member to that.
21809
d7446758
JB
218102004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21811
21812 Committed by Jim Blandy <jimb@redhat.com>.
21813
21814 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21815 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21816 instead of GPR_SIZE to distiguish s390 and s390x targets.
21817
5544ad89
DJ
218182004-01-31 Daniel Jacobowitz <drow@mvista.com>
21819
21820 * linux-low.c: Update copyright year.
21821 (check_removed_breakpoint): Clear pending_is_breakpoint.
21822 (linux_set_resume_request, linux_queue_one_thread)
21823 (resume_status_pending_p): New functions.
21824 (linux_continue_one_thread): Use process->resume.
21825 (linux_resume): Only resume threads if there are no pending events.
21826 * linux-low.h (struct process_info): Add resume request
21827 pointer.
21828
2a68b70e
DJ
218292004-01-30 Daniel Jacobowitz <drow@mvista.com>
21830
21831 * regcache.c (new_register_cache): Clear the allocated register
21832 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21833
64386c31
DJ
218342003-10-13 Daniel Jacobowitz <drow@mvista.com>
21835
21836 * linux-low.c (linux_resume): Take a struct thread_resume *
21837 argument.
21838 (linux_wait): Update call.
21839 (resume_ptr): New static variable.
21840 (linux_continue_one_thread): Renamed from
21841 linux_continue_one_process. Use resume_ptr.
21842 (linux_resume): Use linux_continue_one_thread.
21843 * server.c (handle_v_cont, handle_v_requests): New functions.
21844 (myresume): New function.
21845 (main): Handle 'v' case.
21846 * target.h (struct thread_resume): New type.
21847 (struct target_ops): Change argument of "resume" to struct
21848 thread_resume *.
21849 (myresume): Delete macro.
21850
c938e9b0
L
218512003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21852
21853 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21854 (uninstall): Support DESTDIR.
21855
7f313d07
BC
21856Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21857
21858 * configure.srv: Add xscale*linux copy of arm*linux entry.
21859
3b2fc2ea
DJ
218602003-07-24 Daniel Jacobowitz <drow@mvista.com>
21861
21862 * linux-arm-low.c (arm_reinsert_addr): New function.
21863 (the_low_target): Add arm_reinsert_addr.
21864
1c0a559e
MK
218652003-07-08 Mark Kettenis <kettenis@gnu.org>
21866
21867 * mem-break.c: Remove whitespace at end of file.
21868
43d5792c
DJ
218692003-06-28 Daniel Jacobowitz <drow@mvista.com>
21870
21871 * configure.in: Check whether we need to prototype strerror.
21872 * server.h: Optionally prototype strerror.
21873 * gdbreplay.c (perror_with_name): Use strerror.
21874 * linux-low.c (linux_attach_lwp): Use strerror.
21875 * utils.c (perror_with_name): Use strerror.
21876 * config.in, configure: Regenerated.
21877
c8a86edf
DJ
218782003-06-28 Daniel Jacobowitz <drow@mvista.com>
21879
21880 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21881 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21882
73d37363
DJ
218832003-06-20 Daniel Jacobowitz <drow@mvista.com>
21884
21885 * Makefile.in (SFILES): Update.
21886 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21887 low-sun3.c: Remove files.
21888
6ad8ae5c
DJ
218892003-06-17 Daniel Jacobowitz <drow@mvista.com>
21890
21891 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21892 (linux_detach_one_process, linux_detach): New functions.
21893 (linux_target_ops): Add linux_detach.
21894 * server.c (main): Handle 'D' packet.
21895 * target.h (struct target_ops): Add "detach" member.
21896 (detach_inferior): Define.
21897
1581182a
MK
218982003-06-13 Mark Kettenis <kettenis@gnu.org>
21899
21900 From Kelley Cook <kelleycook@wideopenwest.com>:
21901 * configure.srv: Accept i[34567]86 variants.
21902
e5379b03
DJ
219032003-06-05 Daniel Jacobowitz <drow@mvista.com>
21904
21905 * linux-low.c (linux_wait_for_event): Correct comment typos.
21906 (linux_resume_one_process): Call check_removed_breakpoint.
21907 (linux_send_signal): New function.
21908 (linux_target_ops): Add linux_send_signal.
21909 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21910 of kill.
21911 * target.h (struct target_ops): Add send_signal.
21912
2ff29de4
JB
219132003-05-29 Jim Blandy <jimb@redhat.com>
21914
21915 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21916 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21917 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21918 away part of the register's value.
21919
254787d4
DJ
219202003-03-26 Daniel Jacobowitz <drow@mvista.com>
21921
21922 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21923 (linux_wait_for_event, linux_init_signals): Likewise.
21924
94e10508
DJ
219252003-03-17 Daniel Jacobowitz <drow@mvista.com>
21926
21927 * configure.in: Check for stdlib.h.
21928 * configure: Regenerated.
21929 * config.in: Regenerated.
21930
4c0711e0
DJ
219312003-01-04 Andreas Schwab <schwab@suse.de>
21932
21933 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21934
ef66e766
AC
219352003-01-02 Andrew Cagney <ac131313@redhat.com>
21936
21937 * Makefile.in: Remove obsolete code.
21938
a1358604
DJ
219392002-11-20 Daniel Jacobowitz <drow@mvista.com>
21940
21941 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21942 defined(PT_FPR0_HI).
21943
23ce3b1c
DJ
219442002-11-17 Stuart Hughes <seh@zee2.com>
21945
21946 * linux-arm-low.c (arm_num_regs): Increase.
21947 (arm_regmap): Include status register.
21948
219492002-11-17 Daniel Jacobowitz <drow@mvista.com>
21950
21951 * linux-low.c (register_addr): Remove incorrect -1 check.
21952
a9fa9f7d
DJ
219532002-08-29 Daniel Jacobowitz <drow@mvista.com>
21954
21955 * linux-low.c (linux_create_inferior): Call setpgid. Return
21956 the new PID.
21957 (unstopped_p, linux_signal_pid): Remove.
21958 (linux_target_ops): Remove linux_signal_pid.
21959 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21960 global instead of target method.
21961 * target.h (struct target_ops): Remove signal_pid. Update comment
21962 for create_inferior.
21963 * server.c (signal_pid): New variable.
21964 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 21965 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
21966 (attach_inferior): Set signal_pid.
21967
17574093
DJ
219682002-08-23 Daniel Jacobowitz <drow@mvista.com>
21969
21970 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21971
219722002-08-20 Jim Blandy <jimb@redhat.com>
21973
21974 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21975 default for this.
21976
219772002-08-01 Andrew Cagney <cagney@redhat.com>
21978
21979 * Makefile.in: Make chill references obsolete.
21980
219812002-07-24 Kevin Buettner <kevinb@redhat.com>
21982
21983 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21984 * configure: Regenerate.
21985 * config.in: Regenerate.
21986
219872002-07-09 David O'Brien <obrien@FreeBSD.org>
21988
21989 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21990 (perror_with_name, remote_close, remote_open, expect, play): Static.
21991
219922002-07-04 Michal Ludvig <mludvig@suse.cz>
21993
4b8dad4a 21994 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
21995 byte offsets instead of an array of indexes.
21996 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21997
219982002-06-13 Daniel Jacobowitz <drow@mvista.com>
21999
22000 * regcache.c: Add comment.
22001
220022002-06-11 Daniel Jacobowitz <drow@mvista.com>
22003
22004 * thread-db.c: New file.
22005 * proc-service.c: New file.
22006 * acinclude.m4: New file.
22007 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22008 proc-service.o, and thread-db.o.
22009 (linux-low.o): Add USE_THREAD_DB.
22010 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22011 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22012 * aclocal.m4: Regenerated.
22013 * config.in: Regenerated.
22014 * configure: Regenerated.
22015 * configure.in: Check for proc_service.h, sys/procfs.h,
22016 thread_db.h, and linux/elf.h headrs.
22017 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22018 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22019 Check for -lthread_db and thread support.
22020 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22021 PowerPC, and SuperH.
22022 * i387-fp.c: Constify arguments.
22023 * i387-fp.h: Likewise.
22024 * inferiors.c: (struct thread_info): Renamed from
22025 `struct inferior_info'. Remove PID member. Use generic inferior
22026 list header. All uses updated.
22027 (inferiors, signal_pid): Removed.
22028 (all_threads): New variable.
22029 (get_thread): Define.
22030 (add_inferior_to_list): New function.
22031 (for_each_inferior): New function.
22032 (change_inferior_id): New function.
22033 (add_inferior): Removed.
22034 (remove_inferior): New function.
22035 (add_thread): New function.
22036 (free_one_thread): New function.
22037 (remove_thread): New function.
22038 (clear_inferiors): Use for_each_inferior and free_one_thread.
22039 (find_inferior): New function.
22040 (find_inferior_id): New function.
22041 (inferior_target_data): Update argument type.
22042 (set_inferior_target_data): Likewise.
22043 (inferior_regcache_data): Likewise.
22044 (set_inferior_regcache_data): Likewise.
22045 * linux-low.c (linux_bp_reinsert): Remove.
22046 (all_processes, stopping_threads, using_thrads)
22047 (struct pending_signals, debug_threads, pid_of): New.
22048 (inferior_pid): Replace with macro.
22049 (struct inferior_linux_data): Remove.
22050 (get_stop_pc, add_process): New functions.
22051 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22052 Use add_process and add_thread.
22053 (linux_attach_lwp): New function, based on old linux_attach. Use
22054 add_process and add_thread. Set stop_expected for new threads.
22055 (linux_attach): New function.
22056 (linux_kill_one_process): New function.
22057 (linux_kill): Kill all LWPs.
22058 (linux_thread_alive): Use find_inferior_id.
22059 (check_removed_breakpoints, status_pending_p): New functions.
22060 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22061 Update. Use WNOHANG. Wait for cloned processes also. Update process
22062 struct for the found process.
22063 (linux_wait_for_event): New function.
22064 (linux_wait): Use it. Support LWPs.
22065 (send_sigstop, wait_for_sigstop, stop_all_processes)
22066 (linux_resume_one_process, linux_continue_one_process): New functions.
22067 (linux_resume): Support LWPs.
22068 (REGISTER_RAW_SIZE): Remove.
22069 (fetch_register): Use register_size instead. Call supply_register.
22070 (usr_store_inferior_registers): Likewise. Call collect_register.
22071 Fix recursive case.
22072 (regsets_fetch_inferior_registers): Improve error message.
22073 (regsets_store_inferior_registers): Add debugging.
22074 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22075 (unstopped_p, linux_signal_pid): New functions.
22076 (linux_target_ops): Add linux_signal_pid.
22077 (linux_init_signals): New function.
22078 (initialize_low): Call it. Initialize using_threads.
22079 * regcache.c (inferior_regcache_data): Add valid
22080 flag.
22081 (get_regcache): Fetch registers lazily. Add fetch argument
22082 and update all callers.
22083 (regcache_invalidate_one, regcache_invalidate): New
22084 functions.
22085 (new_register_cache): Renamed from create_register_cache.
22086 Return the new regcache.
22087 (free_register_cache): Change argument to a void *.
22088 (registers_to_string, registers_from_string): Call get_regcache
22089 with fetch flag set.
22090 (register_data): Make static. Pass fetch flag to get_regcache.
22091 (supply_register): Call get_regcache with fetch flag clear.
22092 (collect_register): Call get_regcache with fetch flag set.
22093 (collect_register_as_string): New function.
22094 * regcache.h: Update.
22095 * remote-utils.c (putpkt): Flush after debug output and use
22096 stderr.
22097 Handle input interrupts while waiting for an ACK.
22098 (input_interrupt): Use signal_pid method.
22099 (getpkt): Flush after debug output and use stderr.
22100 (outreg): Use collect_register_as_string.
22101 (new_thread_notify, dead_thread_notify): New functions.
22102 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22103 and general_thread.
22104 (look_up_one_symbol): Flush after debug output.
22105 * server.c (step_thread, server_waiting): New variables.
22106 (start_inferior): Don't use signal_pid. Update call to mywait.
22107 (attach_inferior): Update call to mywait.
22108 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22109 (main): Don't fetch/store registers explicitly. Use
22110 set_desired_inferior. Support proposed ``Hs'' packet. Update
22111 calls to mywait.
22112 * server.h: Update.
22113 (struct inferior_list, struct_inferior_list_entry): New.
22114 * target.c (set_desired_inferior): New.
22115 (write_inferior_memory): Constify.
22116 (mywait): New function.
22117 * target.h: Update.
22118 (struct target_ops): New signal_pid method.
22119 (mywait): Removed macro, added prototype.
22120
22121 * linux-low.h (regset_func): Removed.
22122 (regset_fill_func, regset_store_func): New.
22123 (enum regset_type): New.
22124 (struct regset_info): Add type field. Use new operation types.
22125 (struct linux_target_ops): stop_pc renamed to get_pc.
22126 Add decr_pc_after_break and breakpoint_at.
22127 (get_process, get_thread_proess, get_process_thread)
22128 (strut process_info, all_processes, linux_attach_lwp)
22129 (thread_db_init): New.
22130
22131 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22132 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22133 (the_low_target): Add new members.
22134 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22135 (i386_store_fpxregset): Constify.
22136 (target_regsets): Add new kind identifier.
22137 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22138 (i386_set_pc): Add debugging.
22139 (i386_breakpoint_at): New function.
22140 (the_low_target): Add new members.
22141 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22142 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22143 (mips_breakpoint_at): New.
22144 (the_low_target): Add new members.
22145 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22146 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22147 (the_low_target): Add new members.
22148 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22149 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22150 (the_low_target): Add new members.
22151 * linux-x86-64-low.c (target_regsets): Add new kind
22152 identifier.
22153
221542002-05-15 Daniel Jacobowitz <drow@mvista.com>
22155
22156 From Martin Pool <mbp@samba.org>:
22157 * server.c (gdbserver_usage): New function.
22158 (main): Call it.
22159
221602002-05-14 Daniel Jacobowitz <drow@mvista.com>
22161
22162 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22163 stop_at -> stop_pc.
22164
221652002-05-04 Andrew Cagney <ac131313@redhat.com>
22166
22167 * Makefile.in: Remove obsolete code.
22168
221692002-04-24 Michal Ludvig <mludvig@suse.cz>
22170
22171 * linux-low.c (regsets_fetch_inferior_registers),
22172 (regsets_store_inferior_registers): Removed cast to int from
22173 ptrace() calls.
22174 * regcache.h: Added declaration of struct inferior_info.
22175
221762002-04-20 Daniel Jacobowitz <drow@mvista.com>
22177
22178 * inferiors.c (struct inferior_info): Add regcache_data.
22179 (add_inferior): Call create_register_cache.
22180 (clear_inferiors): Call free_register_cache.
22181 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22182 * regcache.c (struct inferior_regcache_data): New.
22183 (registers): Remove.
22184 (get_regcache): New function.
22185 (create_register_cache, free_register_cache): New functions.
22186 (set_register_cache): Don't initialize the register cache here.
22187 (registers_to_string, registers_from_string, register_data): Call
22188 get_regcache.
22189 * regcache.h: Add prototypes.
22190 * server.h: Likewise.
22191
221922002-04-20 Daniel Jacobowitz <drow@mvista.com>
22193
22194 * mem-break.c: New file.
22195 * mem-break.h: New file.
22196 * Makefile.in: Add mem-break.o rule; update server.h
22197 dependencies.
22198 * inferiors.c (struct inferior_info): Add target_data
22199 member.
22200 (clear_inferiors): Free target_data member if set.
22201 (inferior_target_data, set_inferior_target_data): New functions.
22202 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22203 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22204 * linux-low.c (linux_bp_reinsert): New variable.
22205 (struct inferior_linux_data): New.
22206 (linux_create_inferior): Use set_inferior_target_data.
22207 (linux_attach): Likewise. Call add_inferior.
22208 (linux_wait_for_one_inferior): New function.
22209 (linux_wait): Call it.
22210 (linux_write_memory): Add const.
22211 (initialize_low): Call set_breakpoint_data.
22212 * linux-low.h (struct linux_target_ops): Add breakpoint
22213 handling members.
22214 * server.c (attach_inferior): Remove extra add_inferior
22215 call.
22216 * server.h: Include mem-break.h. Update inferior.c
22217 prototypes.
22218 * target.c (read_inferior_memory)
22219 (write_inferior_memory): New functions.
22220 * target.h (read_inferior_memory)
22221 (write_inferior_memory): Change macros to prototypes.
22222 (struct target_ops): Update comments. Add const to write_memory
22223 definition.
22224
222252002-04-11 Daniel Jacobowitz <drow@mvista.com>
22226
22227 * linux-low.c (usr_store_inferior_registers): Support
22228 registers which are allowed to fail to store.
22229 * linux-low.h (linux_target_ops): Likewise.
22230 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22231 (ppc_cannot_store_register): FPSCR may not be storable.
22232
222332002-04-09 Daniel Jacobowitz <drow@mvista.com>
22234
22235 * server.h: Include <string.h> if HAVE_STRING_H.
22236 * ChangeLog: Correct paths in last ChangeLog entry.
22237
222382002-04-09 Daniel Jacobowitz <drow@mvista.com>
22239
22240 * linux-low.h: Remove obsolete prototypes.
22241 (struct linux_target_ops): New.
22242 (extern the_low_target): New.
22243 * linux-low.c (num_regs, regmap): Remove declarations.
22244 (register_addr): Use the_low_target explicitly.
22245 (fetch_register): Likewise.
22246 (usr_fetch_inferior_registers): Likewise.
22247 (usr_store_inferior_registers): Likewise.
22248 * linux-arm-low.c (num_regs): Remove.
22249 (arm_num_regs): Define.
22250 (arm_regmap): Renamed from regmap, made static.
22251 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22252 made static.
22253 (arm_cannot_store_register): Renamed from cannot_store_register,
22254 made static.
22255 (the_low_target): New.
22256 * linux-i386-low.c (num_regs): Remove.
22257 (i386_num_regs): Define.
22258 (i386_regmap): Renamed from regmap, made static.
22259 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22260 made static.
22261 (i386_cannot_store_register): Renamed from cannot_store_register,
22262 made static.
22263 (the_low_target): New.
22264 * linux-ia64-low.c (num_regs): Remove.
22265 (ia64_num_regs): Define.
22266 (ia64_regmap): Renamed from regmap, made static.
22267 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22268 made static.
22269 (ia64_cannot_store_register): Renamed from cannot_store_register,
22270 made static.
22271 (the_low_target): New.
22272 * linux-m68k-low.c (num_regs): Remove.
22273 (m68k_num_regs): Define.
22274 (m68k_regmap): Renamed from regmap, made static.
22275 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22276 made static.
22277 (m68k_cannot_store_register): Renamed from cannot_store_register,
22278 made static.
22279 (the_low_target): New.
22280 * linux-mips-low.c (num_regs): Remove.
22281 (mips_num_regs): Define.
22282 (mips_regmap): Renamed from regmap, made static.
22283 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22284 made static.
22285 (mips_cannot_store_register): Renamed from cannot_store_register,
22286 made static.
22287 (the_low_target): New.
22288 * linux-ppc-low.c (num_regs): Remove.
22289 (ppc_num_regs): Define.
22290 (ppc_regmap): Renamed from regmap, made static.
22291 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22292 made static.
22293 (ppc_cannot_store_register): Renamed from cannot_store_register,
22294 made static.
22295 (the_low_target): New.
22296 * linux-s390-low.c (num_regs): Remove.
22297 (s390_num_regs): Define.
22298 (s390_regmap): Renamed from regmap, made static.
22299 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22300 made static.
22301 (s390_cannot_store_register): Renamed from cannot_store_register,
22302 made static.
22303 (the_low_target): New.
22304 * linux-sh-low.c (num_regs): Remove.
22305 (sh_num_regs): Define.
22306 (sh_regmap): Renamed from regmap, made static.
22307 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22308 made static.
22309 (sh_cannot_store_register): Renamed from cannot_store_register,
22310 made static.
22311 (the_low_target): New.
22312 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22313 (the_low_target): New.
22314
223152002-04-09 Daniel Jacobowitz <drow@mvista.com>
22316
22317 * Makefile.in: Add stamp-h target.
22318 * configure.in: Create stamp-h.
22319 * configure: Regenerated.
22320
223212002-04-09 Daniel Jacobowitz <drow@mvista.com>
22322
22323 * inferiors.c: New file.
22324 * target.c: New file.
22325 * target.h: New file.
22326 * Makefile.in: Add target.o and inferiors.o. Update
22327 dependencies.
22328 * linux-low.c (inferior_pid): New static variable,
22329 moved from server.c.
22330 (linux_create_inferior): Renamed from create_inferior.
22331 Call add_inferior. Return 0 on success instead of a PID.
22332 (linux_attach): Renamed from myattach.
22333 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22334 (linux_thread_alive): Renamed from mythread_alive.
22335 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22336 child dies.
22337 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22338 (regsets_store_inferior_registers): Correct error message.
22339 Add missing ``return 0''.
22340 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22341 (linux_store_registers): Renamed from store_inferior_registers.
22342 (linux_read_memory): Renamed from read_inferior_memory.
22343 (linux_write_memory): Renamed from write_inferior_memory.
22344 (linux_target_ops): New structure.
22345 (initialize_low): Call set_target_ops ().
22346 * remote-utils.c (unhexify): New function.
22347 (hexify): New function.
22348 (input_interrupt): Send signals to ``signal_pid''.
22349 * server.c (inferior_pid): Remove.
22350 (start_inferior): Update create_inferior call.
22351 (attach_inferior): Call add_inferior.
22352 (handle_query): New function.
22353 (main): Call handle_query for `q' packets.
22354 * server.h: Include "target.h". Remove obsolete prototypes.
22355 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22356
223572002-04-09 Daniel Jacobowitz <drow@mvista.com>
22358
22359 * Makefile.in: Add WARN_CFLAGS. Update configury
22360 dependencies.
22361 * configure.in: Check for <string.h>
22362 * configure: Regenerate.
22363 * config.in: Regenerate.
22364 * gdbreplay.c: Include needed system headers.
22365 (remote_open): Remove strchr prototype.
22366 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22367 * regcache.c (supply_register): Change buf argument to const void *.
22368 (supply_register_by_name): Likewise.
22369 (collect_register): Change buf argument to void *.
22370 (collect_register_by_name): Likewise.
22371 * regcache.h: Add missing prototypes.
22372 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22373 * server.c (handle_query): New function.
22374 (attached): New static variable, moved out of main.
22375 (main): Quiet longjmp clobber warnings.
22376 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22377 * utils.c (error): Remove NORETURN.
22378 (fatal): Likewise.