gdbsupport: replace AC_TRY_COMPILE in warning.m4
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
b6fb30ed
SM
12020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * configure: Re-generate.
864ca435
SM
4
52020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * configure: Re-generate.
b6fb30ed 8
5164c117
SM
92020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * configure: Re-generate.
12
7e8c7130
SM
132020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
14
15 * configure.ac: Modernize.
16 * configure: Re-generate.
17
91e1a0ed
SM
182020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
19
20 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
21 AC_CANONICAL_SYSTEM.
22 * configure: Re-generate.
23
d744f0f9
PA
242020-10-26 Pedro Alves <pedro@palves.net>
25
26 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
27 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
28 explicit type.
29
006811bc
SM
302020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * acinclude.m4: Update ptrace.m4 path.
33
92a048fd
SM
342020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * config.in: Re-generate.
37 * configure: Re-generate.
38
4dbe16c8
SM
392020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
40
41 * server.cc (handle_general_set): Don't use sprintf with
42 argument overlapping buffer.
43
a9b45cb7
TT
442020-10-20 Tom Tromey <tromey@adacore.com>
45
46 PR gdb/26742:
47 * inferiors.cc (remove_thread): Clear current_thread before
48 freeing the thread.
49
b07993f6
KR
502020-10-13 Kamil Rytarowski <n54@gmx.com>x
51
52 * netbsd-low.cc (netbsd_tdesc): Remove.
53 (netbsd_add_process): Likewise.
54 (netbsd_process_target::create_inferior): Update.
55
bbb826f5
AB
562020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * linux-arc-low.cc (arc_linux_read_description): Release the
59 unique_ptr returned from arc_create_target_description.
60
361cb219
AB
612020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
62
63 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
64 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
65
51a948fd
AB
662020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
67
68 * linux-low.cc (linux_process_target::handle_extended_wait):
69 Release the unique_ptr returned from allocate_target_description.
70 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
71 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
72 (tdesc_i386_linux_no_xml): Change type.
73 (x86_linux_read_description): Borrow pointer from unique_ptr
74 object.
75 (x86_target::get_ipa_tdesc_idx): Likewise.
76 (initialize_low_arch): Likewise.
77 * tdesc.cc (allocate_target_description): Update return type.
78
60b74662
TT
792020-10-07 Tom Tromey <tromey@adacore.com>
80
81 * server.cc (handle_search_memory): Remove dead code.
82
55b10d89
TT
832020-10-07 Tom Tromey <tromey@adacore.com>
84
85 * server.cc (handle_search_memory_1): Remove.
86 (handle_search_memory): Use simple_search_memory.
87
a038ffd8
SM
882020-10-07 Simon Marchi <simon.marchi@efficios.com>
89
90 * Makefile.in (COMPILE): Add CXXFLAGS.
91 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
92 (gdbserver$(EXEEXT)): Add CXXFLAGS.
93 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
94 ($(IPA_LIB)): Add CXXFLAGS.
95 (IPAGENT_COMPILE): Add CXXFLAGS.
96
bbe90b5d 972020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
98
99 * configure.srv: Support ARC architecture.
100 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
101 * linux-arc-low.cc: New file.
102
48491055
KR
1032020-10-07 Kamil Rytarowski <n54@gmx.com>
104
105 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
106 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
107 (netbsd_process_target::qxfer_libraries_svr4): Update.
108
2be01f63
KR
1092020-10-07 Kamil Rytarowski <n54@gmx.com>
110
111 * netbsd-low.cc: Fix whitespace formatting.
112 * netbsd-amd64-low.cc: Likewise.
113
91e5e8db
KR
1142020-10-07 Kamil Rytarowski <n54@gmx.com>
115
116 * netbsd-low.cc (netbsd_process_target::read_memory)
117 (netbsd_process_target::write_memory): Update.
118
9529c852
KR
1192020-10-07 Kamil Rytarowski <n54@gmx.com>
120
121 * netbsd-aarch64-low.cc: Add.
122 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
123 * configure.srv: Add aarch64*-*-netbsd*.
124
981b570a
SV
1252020-10-06 Shahab Vahedi <shahab@synopsys.com>
126
127 * regcache.cc (register_data): Remove unused "fetch" argument.
128
6b01403b
SM
1292020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
130
131 * server.cc (handle_monitor_command): Handle "set
132 debug-event-loop".
133 (captured_main): Handle "--debug-event-loop".
134 (monitor_show_help): Mention new setting.
135 (gdbserver_usage): Mention new flag.
136
2554f6f5
SM
1372020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
138
139 * linux-low.cc (linux_process_target::async): Pass name to
140 add_file_handler.
141 * remote-utils.cc (handle_accept_event): Likewise.
142 (remote_open): Likewise.
143
8b667fae
KR
1442020-10-01 Kamil Rytarowski <n54@gmx.com>
145
146 * netbsd-i386-low.cc: Add.
147 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
148 * configure.srv: Add i[34567]86-*-netbsd*.
149
15397b0e
KR
1502020-10-01 Kamil Rytarowski <n54@gmx.com>
151
152 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
153 (netbsd_target_regsets): Now const.
154 (the_low_target): Remove.
155 (class netbsd_amd64_target, the_netbsd_amd64_target)
156 (the_netbsd_target): Add.
157 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
158 low_arch_setup ().
159 (netbsd_process_target::fetch_registers)
160 (netbsd_process_target::store_registers, initialize_low): Update.
161 (the_netbsd_target): Remove.
162 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
163 (the_low_target, netbsd_tdesc): Remove.
164 (netbsd_process_target::get_regs_info)
165 (netbsd_process_target::low_arch_setup): Add.
166
99bb393f
HD
1672020-09-23 Hannes Domani <ssbssa@yahoo.de>
168
169 * win32-low.cc: Remove local wow64_process variable.
170 * win32-low.h: Remove local wow64_process variable.
171
b60cea74
TT
1722020-09-18 Tom Tromey <tromey@adacore.com>
173
174 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
175 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
176 (netbsd_process_target::wait): Change type of target_options.
177 * win32-low.h (class win32_process_target) <wait>: Update.
178 * win32-low.cc (win32_process_target::wait): Update.
179 * target.h (class process_stratum_target) <wait>: Update.
180 (mywait): Update.
181 * target.cc (mywait, target_wait): Change type of "options".
182 * linux-low.h (class linux_process_target) <wait, wait_1>:
183 Update.
184 * linux-low.cc (linux_process_target::wait)
185 (linux_process_target::wait_1): Update.
186
db92ac45
TT
1872020-09-15 Tom Tromey <tromey@adacore.com>
188
189 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
190 (xmltarget_amd64_linux_no_xml): Now arrays.
191
27087b7f
TT
1922020-09-14 Tom Tromey <tromey@adacore.com>
193
194 * tracepoint.cc (eval_result_names): Now const.
195 * ax.cc (gdb_agent_op_names): Now const.
196
62ba5048
KR
1972020-09-10 Kamil Rytarowski <n54@gmx.com>
198
199 * netbsd-low.cc: Add.
200 * netbsd-low.h: Likewise.
201 * netbsd-amd64-low.cc: Likewise.
202 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
203 "netbsd-amd64-low.cc".
204 * configure.srv: Add x86_64-*-netbsd*.
205
ece5bc8a
SM
2062020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
207
208 * server.cc (captured_main): Accept multiple `--selftest=`
209 options. Pass all `--selftest=` arguments to run_tests.
210
c8693053
RO
2112020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
212
213 * configure, config.in: Regenerate.
214
05a6b8c2
EZ
2152020-07-26 Eli Zaretskii <eliz@gnu.org>
216
217 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
218 When checking whether socklen_t type is defined, use ws2tcpip.h if
219 it is available and sys/socket.h isn't.
220 * configure: Regenerate.
221 * config.in: Regenerate.
222
028a4603
PA
2232020-07-22 Pedro Alves <pedro@palves.net>
224
225 * inferiors.cc (switch_to_process): New, moved here from
226 thread-db.cc, and made extern.
227 * inferiors.h (switch_to_process): Declare.
228 * server.cc: Include "gdbsupport/scoped_restore.h".
229 (handle_qxfer_threads_proper): Now returns bool. Prepare to
230 access memory around target calls.
231 (handle_qxfer_threads): Handle errors.
232 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
233
05c309a8
SM
2342020-07-21 Simon Marchi <simon.marchi@efficios.com>
235
236 * linux-low.cc (stopped_pids): Make static.
237
0e267416
AB
2382020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
239
240 * tdesc.cc (allocate_target_description): Add header comment.
241 (target_desc_deleter::operator()): New function.
242 * tdesc.h (struct target_desc): Declare as final.
243
b315b67d
SM
2442020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
245
246 * server.cc (handle_query): Use std::vector of
247 std::string for `qsupported` vector. Use separate
248 vector for unknowns.
249 * target.h (class process_stratum_target) <process_qsupported>:
250 Change parameters to array_view of const char *.
251 (target_process_qsupported): Remove `count` parameter.
252 * target.cc (process_stratum_target::process_qsupported): Change
253 parameters to array_view of const char *.
254 * linux-x86-low.cc (class x86_target) <process_qsupported>:
255 Likewise.
256
f638ed73
TV
2572020-06-29 Tom de Vries <tdevries@suse.de>
258
259 * ax.h: Include gdbsupport/debug_agent.h.
260
fbf42f4e
AB
2612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
262
263 * tdesc.cc (struct tdesc_compatible_info): New struct.
264 (tdesc_compatible_info_list): New function.
265 (tdesc_compatible_info_arch_name): New function.
266
013e3554
TBA
2672020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
268
269 Use std::list to stop pending signal instead of manually-created
270 linked list.
271 * linux-low.h: Include <list>.
272 (struct pending_signal): Move here from linux-low.cc.
273 (struct lwp_info) <pending_signals>
274 <pending_signals_to_report>: Update the type.
275 * linux-low.cc (struct pending_signals): Remove.
276 (linux_process_target::delete_lwp)
277 (linux_process_target::add_lwp)
278 (enqueue_one_deferred_signal)
279 (dequeue_one_deferred_signal)
280 (enqueue_pending_signal)
281 (linux_process_target::resume_one_lwp_throw)
282 (linux_process_target::thread_needs_step_over)
283 (linux_process_target::resume_one_thread)
284 (linux_process_target::proceed_one_lwp): Update the use of pending
285 signal list.
286
7d458ea5
SM
2872020-06-17 Simon Marchi <simon.marchi@efficios.com>
288
289 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
290 Remove.
291
84b300de
SM
2922020-06-12 Simon Marchi <simon.marchi@efficios.com>
293
294 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
295 * configure.srv: Remove mingw32ce cases.
296 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
297 * win32-low.h (to_back_slashes): Remove.
298 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
299
96c16e2b
SM
3002020-06-12 Simon Marchi <simon.marchi@efficios.com>
301
302 * Makefile.in (SFILES): linux-tile-low.cc.
303 * configure.srv: Remove tilegx case.
304 * linux-tile-low.cc: Remove.
305
bd1467ae
SM
3062020-06-12 Simon Marchi <simon.marchi@efficios.com>
307
308 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
309 * configure.srv: Remove m32r case.
310 * linux-m32r-low.cc: Remove.
311
7b46bf6f
SM
3122020-06-12 Simon Marchi <simon.marchi@efficios.com>
313
314 * Makefile.in (SFILES): Remove linux-cris-low.c.
315 * configure.srv: Remove cris cases.
316 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
317
1fa29f56
SM
3182020-06-12 Simon Marchi <simon.marchi@efficios.com>
319
320 * Makefile.in (SFILES): Remove linux-bfin-low.c.
321 * configure.srv: Remove bfin case.
322 * linux-bfin-low.cc: Remove.
323 * linux-low.cc: Remove BFIN-conditional code.
324
613f149a
SM
3252020-06-12 Simon Marchi <simon.marchi@efficios.com>
326
327 * configure: Re-generate.
328 * configure.ac: Remove srv_qnx test.
329 * configure.srv: Remove nto case.
330 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
331 * remote-utils.c: Remove __QNX__-guarded code.
332
fdb95bf5
SM
3332020-06-12 Simon Marchi <simon.marchi@efficios.com>
334
335 * configure: Re-generate.
336 * configure.ac: Remove srv_lynxos test.
337 * configure.srv: Remove lynxos cases.
338 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
339 Remove.
340
c00094dc
SM
3412020-06-12 Simon Marchi <simon.marchi@efficios.com>
342
343 * README: Fix a few outdated or incoherent things.
344
6479bf85
HD
3452020-05-27 Hannes Domani <ssbssa@yahoo.de>
346
347 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
348 (win32_clear_inferiors): Use open_process_used.
349 (get_child_debug_event): Likewise.
350
bea571eb
MW
3512020-05-25 Michael Weghorn <m.weghorn@posteo.de>
352
353 PR gdbserver/25893
354 * linux-low.cc (linux_process_target::create_inferior),
355 lynx-low.cc (lynx_process_target::create_inferior),
356 win32-low.cc (win32_process_target::create_inferior): Use
357 construct_inferior_arguments instead of stringify_argv
358 to get string representation which properly escapes
359 special characters.
360 * server.cc (handle_v_run): Just pass empty program arg
361 as such, since any further processing is now handled via
362 construct_inferior_arguments.
363
ace6b919
MW
3642020-05-25 Michael Weghorn <m.weghorn@posteo.de>
365
366 * nto-low.cc (nto_process_target::create_inferior): Pass
367 argv to spawnp function as char **.
368
b69ca137
MW
3692020-05-25 Michael Weghorn <m.weghorn@posteo.de>
370
371 * server.cc (captured_main), (handle_v_run): No longer
372 insert extra NULL element to args vector.
373
51e2cfa2
PA
3742020-05-23 Pedro Alves <palves@redhat.com>
375
376 * gdb-safe-ctype.h: New.
377
8bbf0394
TBA
3782020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
379
380 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
381 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
382 (ia64_target::low_breakpoint_at): Ditto.
383
01370779
HD
3842020-05-15 Hannes Domani <ssbssa@yahoo.de>
385
386 * win32-i386-low.cc (i386_supports_z_point_type): Handle
387 Z_PACKET_HW_BP z_type.
388 (i386_insert_point): Handle raw_bkpt_type type.
389 (i386_remove_point): Likewise.
390
7d186bc0
HD
3912020-04-30 Hannes Domani <ssbssa@yahoo.de>
392
393 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
394 Add arch/i386.o.
395 * win32-arm-low.cc (arm_num_regs): New function.
396 (struct win32_target_ops): Use arm_num_regs.
397 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
398 processes.
399 (i386_get_thread_context): Likewise.
400 (i386_prepare_to_resume): Likewise.
401 (i386_thread_added): Likewise.
402 (i386_single_step): Likewise.
403 (i386_fetch_inferior_register): Likewise.
404 (i386_store_inferior_register): Likewise.
405 (i386_arch_setup): Likewise.
406 (i386_win32_num_regs): New function.
407 (struct win32_target_ops): Use i386_win32_num_regs.
408 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
409 processes.
410 (win32_require_context): Likewise.
411 (child_add_thread): Likewise.
412 (do_initial_child_stuff): Likewise.
413 (continue_one_thread): Likewise.
414 (win32_process_target::resume): Likewise.
415 (load_psapi): Likewise.
416 (win32_add_all_dlls): Likewise.
417 (maybe_adjust_pc): Likewise.
418 (win32_process_target::qxfer_siginfo): Likewise.
419 (initialize_low): Likewise.
420 * win32-low.h (struct win32_target_ops): Change num_regs to
421 callback function.
422
1eb39914
SM
4232020-04-27 Simon Marchi <simon.marchi@efficios.com>
424
425 * configure.ac: Remove check for fs_base/gs_base in
426 user_regs_struct.
427 * configure: Re-generate.
428 * config.in: Re-generate.
429 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
430 x86_store_gregset): Adjust.
431
51ac8e22
HD
4322020-04-22 Hannes Domani <ssbssa@yahoo.de>
433
434 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
435 comparison.
436
a010605f
TT
4372020-04-16 Tom Tromey <tromey@adacore.com>
438
439 * win32-low.cc (windows_nat::handle_access_violation): New
440 function.
441
e2275c6e
SM
4422020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
443
444 * win32-low.cc (get_child_debug_event): Fix format string warning.
445
73944e9f
TT
4462020-04-13 Tom Tromey <tom@tromey.com>
447
448 * server.h (gdb_fildes_t): Remove typedef.
449 * remote-utils.c (remote_desc, list_desc): Now int.
450 (INVALID_DESCRIPTOR): Remove.
451 (gdb_connected, remote_close)
452 (check_remote_input_interrupt_request): Update.
453 * utils.h (pfildes): Don't declare.
454 * utils.c (pfildes): Remove.
455
55d7aec8
TT
4562020-04-13 Tom Tromey <tom@tromey.com>
457
458 * server.h (handle_serial_event, handle_target_event): Update.
459 * server.c: Don't call initialize_event_loop.
460 (keep_processing_events): New global.
461 (handle_serial_event): Return void. Set keep_processing_events.
462 (handle_target_event): Return void.
463 (start_event_loop): Move from event-loop.c. Rewrite.
464 * remote-utils.c (handle_accept_event): Return void.
465 (reset_readchar): Use delete_timer.
466 (process_remaining): Return void.
467 (reschedule): Use create_timer.
468 * event-loop.h: Remove.
469 * event-loop.cc: Remove.
470 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
471
e487f994
TT
4722020-04-13 Tom Tromey <tom@tromey.com>
473
474 * server.c (invoke_async_signal_handlers)
475 (check_async_event_handlers, flush_streams, gdb_select): New
476 functions.
477
8ae8e197
TT
4782020-04-13 Tom Tromey <tom@tromey.com>
479
480 * configure: Rebuild.
481 * config.in: Rebuild.
482
360ad8b3
TT
4832020-04-08 Tom Tromey <tromey@adacore.com>
484
485 PR gdb/22992
486 * win32-low.c (child_continue): Call matching_pending_stop.
487 (get_child_debug_event): Call fetch_pending_stop. Push pending
488 stop when needed.
489
523d4f80
TT
4902020-04-08 Tom Tromey <tromey@adacore.com>
491
492 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
493 (win32_process_target::supports_stopped_by_sw_breakpoint):
494 Declare.
495 * win32-low.c (win32_supports_z_point_type): Always handle
496 Z_PACKET_SW_BP.
497 (win32_insert_point): Call insert_memory_breakpoint when needed.
498 (win32_remove_point): Call remove_memory_breakpoint when needed.
499 (win32_process_target::stopped_by_sw_breakpoint)
500 (win32_process_target::supports_stopped_by_sw_breakpoint): New
501 methods.
502 (win32_target_ops): Update.
503 (maybe_adjust_pc): New function.
504 (win32_wait): Call maybe_adjust_pc.
505
e54e5929
TT
5062020-04-08 Tom Tromey <tromey@adacore.com>
507
508 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
509 field.
510 * win32-i386-low.c (the_low_target): Update.
511 * win32-arm-low.c (the_low_target): Update.
512
d6225aff
TT
5132020-04-08 Tom Tromey <tromey@adacore.com>
514
515 * win32-low.h (win32_process_target::read_pc)
516 (win32_process_target::write_pc): Declare.
517 * win32-low.c (win32_process_target::read_pc)
518 (win32_process_target::write_pc): New methods.
519 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
520 functions.
521 (the_low_target): Update.
522 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
523 functions.
524 (the_low_target): Update.
525
2c1d95e8
TT
5262020-04-08 Tom Tromey <tromey@adacore.com>
527
528 * win32-low.c (win32_kill, get_child_debug_event): Use
529 wait_for_debug_event.
530
e758e19c
TT
5312020-04-08 Tom Tromey <tromey@adacore.com>
532
533 * win32-low.c (child_continue): Call continue_last_debug_event.
534
8d30e395
TT
5352020-04-08 Tom Tromey <tromey@adacore.com>
536
537 * win32-low.c (handle_exception): Remove.
538 (windows_nat::handle_ms_vc_exception): New function.
539 (get_child_debug_event): Add "continue_status" parameter.
540 Update.
541 (win32_wait): Update.
542
a816ba18
TT
5432020-04-08 Tom Tromey <tromey@adacore.com>
544
545 * win32-low.c (windows_nat::handle_load_dll): Rename from
546 handle_load_dll. No longer static.
547 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
548 No longer static.
549
d41b524f
TT
5502020-04-08 Tom Tromey <tromey@adacore.com>
551
552 * win32-low.c (handle_output_debug_string): Add parameter. Change
553 return type.
554 (win32_kill, get_child_debug_event): Update.
555
3c76026d
TT
5562020-04-08 Tom Tromey <tromey@adacore.com>
557
558 * win32-low.c (current_process_handle, current_process_id)
559 (main_thread_id, last_sig, current_event, siginfo_er): Move to
560 nat/windows-nat.c.
561
9d8679cc
TT
5622020-04-08 Tom Tromey <tromey@adacore.com>
563
564 * win32-low.c (get_image_name): Remove.
565 (handle_load_dll): Update.
566
28688adf
TT
5672020-04-08 Tom Tromey <tromey@adacore.com>
568
569 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
570 No longer static. Change parameters.
571 (child_add_thread, child_fetch_inferior_registers)
572 (child_store_inferior_registers, win32_resume)
573 (win32_get_tib_address): Update.
574
4834dad0
TT
5752020-04-08 Tom Tromey <tromey@adacore.com>
576
577 * win32-low.h (struct win32_target_ops): Use qualified names where
578 needed.
579 * win32-i386-low.c: Add "using namespace".
580 * win32-low.c: Add "using namespace".
581 * win32-arm-low.c: Add "using namespace".
582
65bafd5b
TT
5832020-04-08 Tom Tromey <tromey@adacore.com>
584
585 * win32-low.c (delete_thread_info): Don't call CloseHandle.
586
98a03287
TT
5872020-04-08 Tom Tromey <tromey@adacore.com>
588
589 * win32-low.c (win32_require_context, suspend_one_thread): Use
590 windows_thread_info::suspend.
591 (continue_one_thread): Use windows_thread_info::resume.
592 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
593
62fe396b
TT
5942020-04-08 Tom Tromey <tromey@adacore.com>
595
596 * win32-i386-low.c (update_debug_registers)
597 (i386_prepare_to_resume, i386_thread_added): Update.
598
e9534bd2
TT
5992020-04-08 Tom Tromey <tromey@adacore.com>
600
601 * win32-low.c (child_add_thread): Use new.
602 (delete_thread_info): Use delete.
603
ae1f8880
TT
6042020-04-08 Tom Tromey <tromey@adacore.com>
605
606 * win32-low.h (struct windows_thread_info): Remove.
607
e56f8ccb
TT
6082020-04-08 Tom Tromey <tromey@adacore.com>
609
610 * win32-low.h (struct windows_thread_info): Rename from
611 win32_thread_info. Remove typedef.
612 (struct win32_target_ops, win32_require_context): Update.
613 * win32-low.c (win32_get_thread_context)
614 (win32_set_thread_context, win32_prepare_to_resume)
615 (win32_require_context, thread_rec, child_add_thread)
616 (delete_thread_info, continue_one_thread)
617 (child_fetch_inferior_registers, child_store_inferior_registers)
618 (win32_resume, suspend_one_thread, win32_get_tib_address):
619 Update.
620 * win32-i386-low.c (update_debug_registers)
621 (win32_get_current_dr, i386_get_thread_context)
622 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
623 (i386_fetch_inferior_register, i386_store_inferior_register):
624 Update.
625 * win32-arm-low.c (arm_get_thread_context)
626 (arm_fetch_inferior_register, arm_store_inferior_register):
627 Update.
628
0dd7b52e
TBA
6292020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
630
631 * linux-low.h (struct linux_target_ops): Remove.
632 (the_low_target): Remove.
633 * linux-x86-low.cc (the_low_target): Remove.
634 * linux-aarch64-low.cc (the_low_target): Ditto.
635 * linux-arm-low.cc (the_low_target): Ditto.
636 * linux-bfin-low.cc (the_low_target): Ditto.
637 * linux-cris-low.cc (the_low_target): Ditto.
638 * linux-crisv32-low.cc (the_low_target): Ditto.
639 * linux-ia64-low.cc (the_low_target): Ditto.
640 * linux-m32r-low.cc (the_low_target): Ditto.
641 * linux-m68k-low.cc (the_low_target): Ditto.
642 * linux-mips-low.cc (the_low_target): Ditto.
643 * linux-nios2-low.cc (the_low_target): Ditto.
644 * linux-ppc-low.cc (the_low_target): Ditto.
645 * linux-riscv-low.cc (the_low_target): Ditto.
646 * linux-s390-low.cc (the_low_target): Ditto.
647 * linux-sh-low.cc (the_low_target): Ditto.
648 * linux-sparc-low.cc (the_low_target): Ditto.
649 * linux-tic6x-low.cc (the_low_target): Ditto.
650 * linux-tile-low.cc (the_low_target): Ditto.
651 * linux-xtensa-low.cc (the_low_target): Ditto.
652
fc5ecdb6
TBA
6532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
654
655 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
656 linux target define the op by overriding the declaration in
657 process_stratum_target.
658
659 * linux-low.h (struct linux_target_ops): Remove the op.
660 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
661 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
662 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
663 (x86_get_ipa_tdesc_idx): Turn into...
664 (x86_target::get_ipa_tdesc_idx): ...this.
665 (the_low_target): Remove the op field.
666 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
667 (ppc_get_ipa_tdesc_idx): Turn into...
668 (ppc_target::get_ipa_tdesc_idx): ...this.
669 (the_low_target): Remove the op field.
670 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
671 (s390_get_ipa_tdesc_idx): Turn into...
672 (s390_target::get_ipa_tdesc_idx): ...this.
673 (the_low_target): Remove the op field.
674
9eedd27d
TBA
6752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
676
677 Turn the 'get_syscall_trapinfo' linux target op into a method
678 of process_stratum_target.
679
680 * linux-low.h (struct linux_target_ops): Remove the op.
681 (class linux_process_target) <get_syscall_trapinfo>
682 <gdb_catch_this_syscall>
683 <low_supports_catch_syscall>
684 <low_get_syscall_trapinfo>: Declare.
685 * linux-low.cc (get_syscall_trapinfo): Turn into...
686 (linux_process_target::get_syscall_trapinfo): ...this.
687 (linux_process_target::low_get_syscall_trapinfo): Define.
688 (gdb_catch_this_syscall_p): Turn into...
689 (linux_process_target::gdb_catch_this_syscall): ...this.
690 (linux_process_target::low_supports_catch_syscall): Define.
691
692 Update the callers below.
693
694 (linux_process_target::wait_1)
695 (linux_process_target::supports_catch_syscall)
696
697 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
698 <low_get_syscall_trapinfo>: Declare.
699 (x86_target::low_supports_catch_syscall): Define.
700 (x86_get_syscall_trapinfo): Turn into...
701 (x86_target::low_get_syscall_trapinfo): ...this.
702 (the_low_target): Remove the op field.
703 * linux-aarch64-low.cc (class aarch64_target)
704 <low_supports_catch_syscall>
705 <low_get_syscall_trapinfo>: Declare.
706 (aarch64_target::low_supports_catch_syscall): Define.
707 (aarch64_get_syscall_trapinfo): Turn into...
708 (aarch64_target::low_get_syscall_trapinfo): ...this.
709 (the_low_target): Remove the op field.
710 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
711 <low_get_syscall_trapinfo>: Declare.
712 (arm_target::low_supports_catch_syscall): Define.
713 (arm_get_syscall_trapinfo): Turn into...
714 (arm_target::low_get_syscall_trapinfo): ...this.
715 (the_low_target): Remove the op field.
716 * linux-ppc-low.cc (the_low_target): Remove the op field.
717 * linux-s390-low.cc (the_low_target): Remove the op field.
718
b31cdfa6
TBA
7192020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
720
721 Remove the 'supports_hardware_single_step' linux target op and
722 override the process_stratum_target's op definition in
723 linux_process_target to return true.
724
725 * linux-low.h (struct linux_target_ops): Remove the op.
726 (class linux_process_target) <finish_step_over>
727 <maybe_hw_step>: Declare.
728 * linux-low.cc (can_hardware_single_step): Remove.
729 (maybe_hw_step): Turn into...
730 (linux_process_target::maybe_hw_step): ...this.
731 (finish_step_over): Turn into...
732 (linux_process_target::finish_step_over): ...this.
733 (linux_process_target::supports_hardware_single_step): Update
734 to return true.
735
736 Update the callers below.
737
738 (linux_process_target::single_step)
739 (linux_process_target::resume_one_lwp_throw)
740
741 * linux-arm-low.cc (class arm_target)
742 <supports_hardware_single_step>: Declare.
743 (arm_supports_hardware_single_step): Turn into...
744 (arm_target::supports_hardware_single_step): ...this.
745 (the_low_target): Remove the op field.
746 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
747 (the_low_target): Remove the op field.
748 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
749 Remove.
750 (the_low_target): Remove the op field.
751 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
752 (the_low_target): Remove the op field.
753 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
754 (the_low_target): Remove the op field.
755 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
756 (the_low_target): Remove the op field.
757 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
758 (the_low_target): Remove the op field.
759 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
760 (the_low_target): Remove the op field.
761 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
762 (the_low_target): Remove the op field.
763 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
764 (the_low_target): Remove the op field.
765 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
766 (the_low_target): Remove the op field.
767 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
768 (the_low_target): Remove the op field.
769 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
770 Remove.
771 (the_low_target): Remove the op field.
772
9cfd8715
TBA
7732020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
774
775 Turn the 'supports_range_stepping' linux target op into a method
776 of linux_process_target.
777
778 * linux-low.h (struct linux_target_ops): Remove the op.
779 (class linux_process_target) <low_supports_range_stepping>: Declare.
780 * linux-low.cc (linux_process_target::low_supports_range_stepping):
781 Define.
782 (linux_process_target::supports_range_stepping): Update the call
783 site.
784 * linux-x86-low.cc (class x86_target)
785 <low_supports_range_stepping>: Declare.
786 (x86_supports_range_stepping): Turn into...
787 (x86_target::low_supports_range_stepping): ...this.
788 (the_low_target): Remove the op field.
789 * linux-aarch64-low.cc (class aarch64_target)
790 <low_supports_range_stepping>: Declare.
791 (aarch64_supports_range_stepping): Turn into...
792 (aarch64_target::low_supports_range_stepping): ...this.
793 (the_low_target): Remove the op field.
794 * linux-arm-low.cc (the_low_target): Remove the op field.
795 * linux-bfin-low.cc (the_low_target): Ditto.
796 * linux-crisv32-low.cc (the_low_target): Ditto.
797 * linux-m32r-low.cc (the_low_target): Ditto.
798 * linux-m68k-low.cc (the_low_target): Ditto.
799 * linux-ppc-low.cc (the_low_target): Ditto.
800 * linux-s390-low.cc (the_low_target): Ditto.
801 * linux-sh-low.cc (the_low_target): Ditto.
802 * linux-tic6x-low.cc (the_low_target): Ditto.
803 * linux-tile-low.cc (the_low_target): Ditto.
804 * linux-xtensa-low.cc (the_low_target): Ditto.
805
ab64c999
TBA
8062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
807
808 Remove the 'emit_ops' linux target ops and let the concrete
809 linux target define the op by overriding the declaration of
810 process_stratum_target.
811
812 * linux-low.h (struct linux_target_ops): Remove the op.
813 (class linux_process_target) <emit_ops>: Remove.
814 * linux-low.cc (linux_process_target::emit_ops): Remove.
815 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
816 (x86_emit_ops): Turn into...
817 (x86_target::emit_ops): ...this.
818 (the_low_target): Remove the op field.
819 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
820 (aarch64_emit_ops): Turn into...
821 (aarch64_target::emit_ops): ...this.
822 (the_low_target): Remove the op field.
823 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
824 (ppc_emit_ops): Turn into...
825 (ppc_target::emit_ops): ...this.
826 (the_low_target): Remove the op field.
827 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
828 (s390_emit_ops): Turn into...
829 (s390_target::emit_ops): ...this.
830 (the_low_target): Remove the op field.
831 * linux-arm-low.cc (the_low_target): Remove the op field.
832 * linux-bfin-low.cc (the_low_target): Ditto.
833 * linux-crisv32-low.cc (the_low_target): Ditto.
834 * linux-m32r-low.cc (the_low_target): Ditto.
835 * linux-m68k-low.cc (the_low_target): Ditto.
836 * linux-sh-low.cc (the_low_target): Ditto.
837 * linux-tic6x-low.cc (the_low_target): Ditto.
838 * linux-tile-low.cc (the_low_target): Ditto.
839 * linux-xtensa-low.cc (the_low_target): Ditto.
840
809a0c35
TBA
8412020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
842
843 Remove the 'install_fast_tracepoint_jump_pad' and
844 'get_min_fast_tracepoint_insn_len' linux target ops to let the
845 concrete linux target define the ops by overriding the declarations
846 of process_stratum_target.
847
848 * linux-low.h (struct linux_target_ops): Remove the ops.
849 (class linux_process_target) <supports_fast_tracepoints>
850 <install_fast_tracepoint_jump_pad>
851 <get_min_fast_tracepoint_insn_len>: Remove.
852 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
853 (linux_process_target::install_fast_tracepoint_jump_pad)
854 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
855 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
856 <install_fast_tracepoint_jump_pad>
857 <get_min_fast_tracepoint_insn_len>: Declare.
858 (x86_target::supports_fast_tracepoints): Define.
859 (x86_install_fast_tracepoint_jump_pad): Turn into...
860 (x86_target::install_fast_tracepoint_jump_pad): ...this.
861 (x86_get_min_fast_tracepoint_insn_len): Turn into...
862 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
863 (the_low_target): Remove the op fields.
864 * linux-aarch64-low.cc (class aarch64_target)
865 <supports_fast_tracepoints>
866 <install_fast_tracepoint_jump_pad>
867 <get_min_fast_tracepoint_insn_len>: Declare.
868 (aarch64_target::supports_fast_tracepoints): Define.
869 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
870 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
871 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
872 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
873 (the_low_target): Remove the op fields.
874 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
875 <install_fast_tracepoint_jump_pad>
876 <get_min_fast_tracepoint_insn_len>: Declare.
877 (ppc_target::supports_fast_tracepoints): Define.
878 (ppc_install_fast_tracepoint_jump_pad): Turn into...
879 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
880 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
881 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
882 (the_low_target): Remove the op fields.
883 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
884 <install_fast_tracepoint_jump_pad>
885 <get_min_fast_tracepoint_insn_len>: Declare.
886 (s390_target::supports_fast_tracepoints): Define.
887 (s390_install_fast_tracepoint_jump_pad): Turn into...
888 (s390_target::install_fast_tracepoint_jump_pad): ...this.
889 (s390_get_min_fast_tracepoint_insn_len): Turn into...
890 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
891 (the_low_target): Remove the op fields.
892 * linux-arm-low.cc (the_low_target): Remove the op fields.
893 * linux-bfin-low.cc (the_low_target): Ditto.
894 * linux-crisv32-low.cc (the_low_target): Ditto.
895 * linux-m32r-low.cc (the_low_target): Ditto.
896 * linux-m68k-low.cc (the_low_target): Ditto.
897 * linux-sh-low.cc (the_low_target): Ditto.
898 * linux-tic6x-low.cc (the_low_target): Ditto.
899 * linux-tile-low.cc (the_low_target): Ditto.
900 * linux-xtensa-low.cc (the_low_target): Ditto.
901
13e567af
TBA
9022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
903
904 Turn the 'get_thread_area' linux target op into a method of
905 process_stratum_target.
906
907 * linux-low.h (struct linux_target_ops): Remove the op.
908 (class linux_process_target) <stuck_in_jump_pad>
909 <linux_fast_tracepoint_collecting>
910 <low_get_thread_area>: Declare.
911 * linux-low.cc (supports_fast_tracepoints): Remove.
912 (linux_fast_tracepoint_collecting): Turn into...
913 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
914 (linux_process_target::low_get_thread_area): Define.
915 (stuck_in_jump_pad_callback): Turn into...
916 (linux_process_target::stuck_in_jump_pad): ...this.
917
918 Update the caller below.
919
920 (linux_process_target::stabilize_threads)
921
922 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
923 Declare.
924 (x86_get_thread_area): Turn into...
925 (x86_target::low_get_thread_area): ...this.
926 (the_low_target): Remove the op field.
927 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
928 Declare.
929 (aarch64_get_thread_area): Turn into...
930 (aarch64_target::low_get_thread_area): ...this.
931 (the_low_target): Remove the op field.
932 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
933 Declare.
934 (ppc_get_thread_area): Turn into...
935 (ppc_target::low_get_thread_area): ...this.
936 (the_low_target): Remove the op field.
937 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
938 Declare.
939 (s390_get_thread_area): Turn into...
940 (s390_target::low_get_thread_area): ...this.
941 (the_low_target): Remove the op field.
942 * linux-arm-low.cc (the_low_target): Remove the op field.
943 * linux-bfin-low.cc (the_low_target): Ditto.
944 * linux-crisv32-low.cc (the_low_target): Ditto.
945 * linux-m32r-low.cc (the_low_target): Ditto.
946 * linux-m68k-low.cc (the_low_target): Ditto.
947 * linux-sh-low.cc (the_low_target): Ditto.
948 * linux-tic6x-low.cc (the_low_target): Ditto.
949 * linux-tile-low.cc (the_low_target): Ditto.
950 * linux-xtensa-low.cc (the_low_target): Ditto.
951
47f70aa7
TBA
9522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
953
954 Remote the 'supports_tracepoints' linux target op and let the
955 concrete linux target define it by overriding the op declared in
956 process_stratum_target.
957
958 * linux-low.h (struct linux_target_ops): Remove the op.
959 (class linux_process_target) <supports_tracepoints>: Remove.
960 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
961 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
962 Declare.
963 (x86_supports_tracepoints): Turn into...
964 (x86_target::supports_tracepoints): ...this.
965 (the_low_target): Remove the op field.
966 * linux-aarch64-low.cc (class aarch64_target)
967 <supports_tracepoints>: Declare.
968 (aarch64_supports_tracepoints): Turn into...
969 (aarch64_target::supports_tracepoints): ...this.
970 (the_low_target): Remove the op field.
971 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
972 Declare.
973 (ppc_supports_tracepoints): Turn into...
974 (ppc_target::supports_tracepoints): ...this.
975 (the_low_target): Remove the op field.
976 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
977 Declare.
978 (s390_supports_tracepoints): Turn into...
979 (s390_target::supports_tracepoints): ...this.
980 (the_low_target): Remove the op field.
981 * linux-arm-low.cc (the_low_target): Remove the op field.
982 * linux-bfin-low.cc (the_low_target): Ditto.
983 * linux-crisv32-low.cc (the_low_target): Ditto.
984 * linux-m32r-low.cc (the_low_target): Ditto.
985 * linux-m68k-low.cc (the_low_target): Ditto.
986 * linux-sh-low.cc (the_low_target): Ditto.
987 * linux-tic6x-low.cc (the_low_target): Ditto.
988 * linux-tile-low.cc (the_low_target): Ditto.
989 * linux-xtensa-low.cc (the_low_target): Ditto.
990
a5b5da92
TBA
9912020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
992
993 Remove the 'process_qsupported' linux target op and let a concrete
994 linux target define the op by overriding the op declaration in
995 process_stratum_target.
996
997 * linux-low.h (struct linux_target_ops): Remove the op.
998 (class linux_process_target) <process_qsupported>: Remove.
999 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1000 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1001 (x86_linux_process_qsupported): Turn into...
1002 (x86_target::process_qsupported): ...this.
1003 (the_low_target): Remove the op field.
1004 * linux-aarch64-low.cc (the_low_target): Remove the op
1005 field.
1006 * linux-arm-low.cc (the_low_target): Ditto.
1007 * linux-bfin-low.cc (the_low_target): Ditto.
1008 * linux-crisv32-low.cc (the_low_target): Ditto.
1009 * linux-m32r-low.cc (the_low_target): Ditto.
1010 * linux-m68k-low.cc (the_low_target): Ditto.
1011 * linux-ppc-low.cc (the_low_target): Ditto.
1012 * linux-s390-low.cc (the_low_target): Ditto.
1013 * linux-sh-low.cc (the_low_target): Ditto.
1014 * linux-tic6x-low.cc (the_low_target): Ditto.
1015 * linux-tile-low.cc (the_low_target): Ditto.
1016 * linux-xtensa-low.cc (the_low_target): Ditto.
1017
d7599cc0
TBA
10182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1019
1020 Turn the 'prepare_to_resume' linux target op into a method of
1021 linux_process_target.
1022
1023 * linux-low.h (struct linux_target_ops): Remove the op.
1024 (class linux_process_target) <low_prepare_to_resume>: Declare.
1025 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1026 Define.
1027
1028 Update the callers below:
1029
1030 (linux_process_target::resume_one_lwp_throw)
1031 (linux_process_target::low_prepare_to_resume)
1032
1033 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1034 Declare.
1035 (x86_target::low_prepare_to_resume): Define.
1036 (the_low_target): Remove the op field.
1037 * linux-aarch64-low.cc (class aarch64_target)
1038 <low_prepare_to_resume>: Declare.
1039 (aarch64_target::low_prepare_to_resume): Define.
1040 (the_low_target): Remove the op field.
1041 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1042 Declare.
1043 (arm_prepare_to_resume): Turn into...
1044 (arm_target::low_prepare_to_resume): ...this.
1045 (the_low_target): Remove the op field.
1046 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1047 Declare.
1048 (mips_linux_prepare_to_resume): Turn into...
1049 (mips_target::low_prepare_to_resume): ...this.
1050 (the_low_target): Remove the op field.
1051 * linux-bfin-low.cc (the_low_target): Remove the op field.
1052 * linux-crisv32-low.cc (the_low_target): Ditto.
1053 * linux-m32r-low.cc (the_low_target): Ditto.
1054 * linux-m68k-low.cc (the_low_target): Ditto.
1055 * linux-ppc-low.cc (the_low_target): Ditto.
1056 * linux-s390-low.cc (the_low_target): Ditto.
1057 * linux-sh-low.cc (the_low_target): Ditto.
1058 * linux-tic6x-low.cc (the_low_target): Ditto.
1059 * linux-tile-low.cc (the_low_target): Ditto.
1060 * linux-xtensa-low.cc (the_low_target): Ditto.
1061
fd000fb3
TBA
10622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1063
1064 Turn the 'new_process', 'delete_process', 'new_thread',
1065 'delete_thread', and 'new_fork' linux target ops into methods
1066 of linux_process_target.
1067
1068 * linux-low.h (struct linux_target_ops): Remove the ops.
1069 (class linux_process_target) <add_linux_process>
1070 <add_lwp>
1071 <delete_lwp>
1072 <attach_lwp>
1073 <detach_one_lwp>
1074 <check_zombie_leaders>
1075 <filter_exit_event>
1076 <low_new_process>
1077 <low_delete_process>
1078 <low_new_thread>
1079 <low_delete_thread>
1080 <low_new_fork>: Declare.
1081 * linux-low.cc (delete_lwp): Turn into...
1082 (linux_process_target::delete_lwp): ...this.
1083 (linux_process_target::low_delete_thread): Define.
1084 (linux_add_process): Turn into...
1085 (linux_process_target::add_linux_process): ...this.
1086 (linux_process_target::low_new_process): Define.
1087 (linux_process_target::low_delete_process): Define.
1088 (linux_process_target::low_new_fork): Define.
1089 (add_lwp): Turn into...
1090 (linux_process_target::add_lwp): ...this.
1091 (linux_process_target::low_new_thread): Define.
1092 (linux_attach_lwp): Turn into...
1093 (linux_process_target::attach_lwp): ...this.
1094 (linux_detach_one_lwp): Turn into...
1095 (linux_process_target::detach_one_lwp): ...this.
1096 (linux_detach_lwp_callback): Remove and inline...
1097 (linux_process_target::detach): ...here.
1098 (check_zombie_leaders): Turn into...
1099 (linux_process_target::check_zombie_leaders): ...this.
1100 (filter_exit_event): Turn into...
1101 (linux_process_target::filter_exit_event): ...this.
1102
1103 Update the callers below.
1104
1105 (linux_process_target::handle_extended_wait)
1106 (linux_process_target::create_inferior)
1107 (attach_proc_task_lwp_callback)
1108 (linux_process_target::attach)
1109 (linux_process_target::detach)
1110 (linux_process_target::mourn)
1111 * thread-db.cc (attach_thread)
1112
1113 * linux-x86-low.cc (class x86_target) <low_new_process>
1114 <low_delete_process>
1115 <low_new_thread>
1116 <low_delete_thread>
1117 <low_new_fork>: Declare.
1118 (x86_linux_new_process): Turn into...
1119 (x86_target::low_new_process): ...this.
1120 (x86_linux_delete_process): Turn into...
1121 (x86_target::low_delete_process): ...this.
1122 (x86_target::low_new_thread): Define.
1123 (x86_target::low_delete_thread): Define.
1124 (x86_linux_new_fork): Turn into...
1125 (x86_target::low_new_fork): ...this.
1126 (the_low_target): Remove the op fields.
1127 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1128 <low_delete_process>
1129 <low_new_thread>
1130 <low_delete_thread>
1131 <low_new_fork>: Declare.
1132 (aarch64_linux_new_process): Turn into...
1133 (aarch64_target::low_new_process): ...this.
1134 (aarch64_linux_delete_process): Turn into...
1135 (aarch64_target::low_delete_process): ...this.
1136 (aarch64_target::low_new_thread): Define.
1137 (aarch64_target::low_delete_thread): Define.
1138 (aarch64_linux_new_fork): Turn into...
1139 (aarch64_target::low_new_fork): ...this.
1140 (the_low_target): Remove the op fields.
1141 * linux-arm-low.cc (class arm_target) <low_new_process>
1142 <low_delete_process>
1143 <low_new_thread>
1144 <low_delete_thread>
1145 <low_new_fork>: Declare.
1146 (arm_new_process): Turn into...
1147 (arm_target::low_new_process): ...this.
1148 (arm_delete_process): Turn into...
1149 (arm_target::low_delete_process): ...this.
1150 (arm_new_thread): Turn into...
1151 (arm_target::low_new_thread): ...this.
1152 (arm_delete_thread): Turn into...
1153 (arm_target::low_delete_thread): ...this.
1154 (arm_new_fork): Turn into...
1155 (arm_target::low_new_fork): ...this.
1156 (the_low_target): Remove the op fields.
1157 * linux-mips-low.cc (class mips_target) <low_new_process>
1158 <low_delete_process>
1159 <low_new_thread>
1160 <low_delete_thread>
1161 <low_new_fork>: Declare.
1162 (mips_linux_new_process): Turn into...
1163 (mips_target::low_new_process): ...this.
1164 (mips_linux_delete_process): Turn into...
1165 (mips_target::low_delete_process): ...this.
1166 (mips_linux_new_thread): Turn into...
1167 (mips_target::low_new_thread): ...this.
1168 (mips_linux_delete_thread): Turn into...
1169 (mips_target::low_delete_thread): ...this.
1170 (mips_linux_new_fork): Turn into...
1171 (mips_target::low_new_fork): ...this.
1172 (the_low_target): Remove the op fields.
1173 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1174 * linux-crisv32-low.cc (the_low_target): Ditto.
1175 * linux-m32r-low.cc (the_low_target): Ditto.
1176 * linux-m68k-low.cc (the_low_target): Ditto.
1177 * linux-ppc-low.cc (the_low_target): Ditto.
1178 * linux-s390-low.cc (the_low_target): Ditto.
1179 * linux-sh-low.cc (the_low_target): Ditto.
1180 * linux-tic6x-low.cc (the_low_target): Ditto.
1181 * linux-tile-low.cc (the_low_target): Ditto.
1182 * linux-xtensa-low.cc (the_low_target): Ditto.
1183
cb63de7c
TBA
11842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1185
1186 Turn the 'siginfo_fixup' linux target op into a method of
1187 linux_process_target.
1188
1189 * linux-low.h (struct linux_target_ops): Remove the op.
1190 (class linux_process_target) <siginfo_fixup>
1191 <low_siginfo_fixup>: Declare.
1192 * linux-low.cc (siginfo_fixup): Turn into...
1193 (linux_process_target::siginfo_fixup): ...this.
1194 (linux_process_target::low_siginfo_fixup): Define.
1195 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1196 (x86_siginfo_fixup): Turn into...
1197 (x86_target::low_siginfo_fixup): ...this.
1198 (the_low_target): Remove the op field.
1199 * linux-aarch64-low.cc (class aarch64_target):
1200 <low_siginfo_fixup>: Declare.
1201 (aarch64_linux_siginfo_fixup): Turn into...
1202 (aarch64_target::low_siginfo_fixup): ...this.
1203 (the_low_target): Remove the op field.
1204 * linux-arm-low.cc (the_low_target): Remove the op field.
1205 * linux-bfin-low.cc (the_low_target): Ditto.
1206 * linux-crisv32-low.cc (the_low_target): Ditto.
1207 * linux-m32r-low.cc (the_low_target): Ditto.
1208 * linux-m68k-low.cc (the_low_target): Ditto.
1209 * linux-mips-low.cc (the_low_target): Ditto.
1210 * linux-ppc-low.cc (the_low_target): Ditto.
1211 * linux-s390-low.cc (the_low_target): Ditto.
1212 * linux-sh-low.cc (the_low_target): Ditto.
1213 * linux-tic6x-low.cc (the_low_target): Ditto.
1214 * linux-tile-low.cc (the_low_target): Ditto.
1215 * linux-xtensa-low.cc (the_low_target): Ditto.
1216
b35db733
TBA
12172020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1218
1219 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1220 linux target ops into methods of linux_process_target.
1221
1222 * linux-low.h (struct linux_target_ops): Remove the ops.
1223 (class linux_process_target) <low_collect_ptrace_register>
1224 <low_store_ptrace_register>: Declare.
1225 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1226 (linux_process_target::low_supply_ptrace_register): Define.
1227
1228 Update the callers below.
1229
1230 (linux_process_target::fetch_register)
1231 (linux_process_target::store_register)
1232
1233 * linux-x86-low.cc (the_low_target): Remove the op fields.
1234 * linux-aarch64-low.cc (the_low_target): Ditto.
1235 * linux-arm-low.cc (the_low_target): Ditto.
1236 * linux-bfin-low.cc (the_low_target): Ditto.
1237 * linux-crisv32-low.cc (the_low_target): Ditto.
1238 * linux-m32r-low.cc (the_low_target): Ditto.
1239 * linux-m68k-low.cc (the_low_target): Ditto.
1240 * linux-sh-low.cc (the_low_target): Ditto.
1241 * linux-sparc-low.cc (the_low_target): Ditto.
1242 * linux-tic6x-low.cc (the_low_target): Ditto.
1243 * linux-tile-low.cc (the_low_target): Ditto.
1244 * linux-xtensa-low.cc (the_low_target): Ditto.
1245 * linux-mips-low.cc (class mips_target)
1246 <low_collect_ptrace_register>
1247 <low_supply_ptrace_register>: Declare.
1248 (mips_collect_ptrace_register): Turn into ...
1249 (mips_target::low_collect_ptrace_register): ...this.
1250 (mips_supply_ptrace_register): Turn into...
1251 (mips_target::low_supply_ptrace_register): ...this.
1252 (the_low_target): Remove the op fields.
1253 * linux-ppc-low.cc (class ppc_target)
1254 <low_collect_ptrace_register>
1255 <low_supply_ptrace_register>: Declare.
1256 (ppc_collect_ptrace_register): Turn into ...
1257 (ppc_target::low_collect_ptrace_register): ...this.
1258 (ppc_supply_ptrace_register): Turn into ...
1259 (ppc_target::low_supply_ptrace_register): ...this.
1260 (ppc_fill_gregset): Update for the calls to
1261 low_collect_ptrace_register.
1262 (the_low_target): Remove the op fields.
1263 * linux-s390-low.cc (class s390_target)
1264 <low_collect_ptrace_register>
1265 <low_supply_ptrace_register>: Declare.
1266 (s390_collect_ptrace_register): Turn into ...
1267 (s390_target::low_collect_ptrace_register): ...this.
1268 (s390_supply_ptrace_register): Turn into ...
1269 (s390_target::low_supply_ptrace_register): ...this.
1270 (s390_fill_gregset): Update for the calls to
1271 low_collect_ptrace_register.
1272 (the_low_target): Remove the op fields.
1273
ac1bbaca
TBA
12742020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1275
1276 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1277 target ops into methods of linux_process_target.
1278
1279 * linux-low.h (struct linux_target_ops): Remove the ops.
1280 (class linux_process_target) <check_stopped_by_watchpoint>
1281 <low_stopped_by_watchpoint>
1282 <low_stopped_data_address>: Declare.
1283 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1284 (linux_process_target::check_stopped_by_watchpoint): ...this.
1285 (linux_process_target::low_stopped_by_watchpoint): Define.
1286 (linux_process_target::low_stopped_data_address): Define.
1287 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1288 <low_stopped_data_address>: Declare.
1289 (x86_stopped_by_watchpoint): Turn into...
1290 (x86_target::low_stopped_by_watchpoint): ...this.
1291 (x86_stopped_data_address): Turn into...
1292 (x86_target::low_stopped_data_address): ...this.
1293 (the_low_target): Remove the op fields.
1294 * linux-aarch64-low.cc (class aarch64_target)
1295 <low_stopped_by_watchpoint>
1296 <low_stopped_data_address>: Declare.
1297 (aarch64_stopped_by_watchpoint): Turn into...
1298 (aarch64_target::low_stopped_by_watchpoint): ...this.
1299 (aarch64_stopped_data_address): Turn into...
1300 (aarch64_target::low_stopped_data_address): ...this.
1301 (the_low_target): Remove the op fields.
1302 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1303 <low_stopped_data_address>: Declare.
1304 (arm_stopped_by_watchpoint): Turn into...
1305 (arm_target::low_stopped_by_watchpoint): ...this.
1306 (arm_stopped_data_address): Turn into...
1307 (arm_target::low_stopped_data_address): ...this.
1308 (the_low_target): Remove the op fields.
1309 * linux-crisv32-low.cc (class crisv32_target)
1310 <low_stopped_by_watchpoint>
1311 <low_stopped_data_address>: Declare.
1312 (cris_stopped_by_watchpoint): Turn into...
1313 (crisv32_target::low_stopped_by_watchpoint): ...this.
1314 (cris_stopped_data_address): Turn into...
1315 (crisv32_target::low_stopped_data_address): ...this.
1316 (the_low_target): Remove the op fields.
1317 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1318 <low_stopped_data_address>: Declare.
1319 (mips_stopped_by_watchpoint): Turn into...
1320 (mips_target::low_stopped_by_watchpoint): ...this.
1321 (mips_stopped_data_address): Turn into...
1322 (mips_target::low_stopped_data_address): ...this.
1323 (the_low_target): Remove the op fields.
1324 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1325 * linux-m32r-low.cc (the_low_target): Ditto.
1326 * linux-m68k-low.cc (the_low_target): Ditto.
1327 * linux-ppc-low.cc (the_low_target): Ditto.
1328 * linux-s390-low.cc (the_low_target): Ditto.
1329 * linux-sh-low.cc (the_low_target): Ditto.
1330 * linux-sparc-low.cc (the_low_target): Ditto.
1331 * linux-tic6x-low.cc (the_low_target): Ditto.
1332 * linux-tile-low.cc (the_low_target): Ditto.
1333 * linux-xtensa-low.cc (the_low_target): Ditto.
1334
9db9aa23
TBA
13352020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1336
1337 Turn the 'insert_point' and 'remove_point' linux target ops into
1338 methods of linux_process_target.
1339
1340 * linux-low.h (struct linux_target_ops): Remove the ops.
1341 (class linux_process_target) <low_insert_point>
1342 <low_remove_point>: Declare.
1343 * linux-low.cc (linux_process_target::low_insert_point)
1344 (linux_process_target::low_remove_point): Define.
1345 (linux_process_target::insert_point)
1346 (linux_process_target::remove_point): Update for calls to
1347 low_insert_point and low_remove_point.
1348 * linux-x86-low.cc (class x86_target) <low_insert_point>
1349 <low_remove_point>: Declare.
1350 (x86_insert_point): Turn into...
1351 (x86_target::low_insert_point): ...this.
1352 (x86_remove_point): Turn into...
1353 (x86_target::low_remove_point): ...this.
1354 (the_low_target): Remove the op fields.
1355 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1356 <low_remove_point>: Declare.
1357 (aarch64_insert_point): Turn into...
1358 (aarch64_target::low_insert_point): ...this.
1359 (aarch64_remove_point): Turn into...
1360 (aarch64_target::low_remove_point): ...this.
1361 (the_low_target): Remove the op fields.
1362 * linux-arm-low.cc (class arm_target) <low_insert_point>
1363 <low_remove_point>: Declare.
1364 (arm_insert_point): Turn into...
1365 (arm_target::low_insert_point): ...this.
1366 (arm_remove_point): Turn into...
1367 (arm_target::low_remove_point): ...this.
1368 (the_low_target): Remove the op fields.
1369 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1370 <low_remove_point>: Declare.
1371 (crisv32_insert_point): Turn into...
1372 (crisv32_target::low_insert_point): ...this.
1373 (crisv32_remove_point): Turn into...
1374 (crisv32_target::low_remove_point): ...this.
1375 (the_low_target): Remove the op fields.
1376 * linux-mips-low.cc (class mips_target) <low_insert_point>
1377 <low_remove_point>: Declare.
1378 (mips_insert_point): Turn into...
1379 (mips_target::low_insert_point): ...this.
1380 (mips_remove_point): Turn into...
1381 (mips_target::low_remove_point): ...this.
1382 (the_low_target): Remove the op fields.
1383 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1384 <low_remove_point>: Declare.
1385 (ppc_insert_point): Turn into...
1386 (ppc_target::low_insert_point): ...this.
1387 (ppc_remove_point): Turn into...
1388 (ppc_target::low_remove_point): ...this.
1389 (the_low_target): Remove the op fields.
1390 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1391 * linux-m32r-low.cc (the_low_target): Ditto.
1392 * linux-m68k-low.cc (the_low_target): Ditto.
1393 * linux-s390-low.cc (the_low_target): Ditto.
1394 * linux-sh-low.cc (the_low_target): Ditto.
1395 * linux-sparc-low.cc (the_low_target): Ditto.
1396 * linux-tic6x-low.cc (the_low_target): Ditto.
1397 * linux-tile-low.cc (the_low_target): Ditto.
1398 * linux-xtensa-low.cc (the_low_target): Ditto.
1399
007c9b97
TBA
14002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1401
1402 Remove the 'supports_z_point_type' linux target op and let the
1403 concrete linux target define it by overriding the op declared in
1404 process_stratum_target.
1405
1406 * linux-low.cc (linux_process_target::supports_z_point_type):
1407 Remove.
1408 * linux-low.h (struct linux_target_ops): Remove the op.
1409 (class linux_process_target) <supports_z_point_type>: Remove.
1410 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1411 Declare.
1412 (x86_supports_z_point_type): Turn into...
1413 (x86_target::supports_z_point_type): ...this.
1414 (the_low_target): Remove the op field.
1415 * linux-aarch64-low.cc (class aarch64_target)
1416 <supports_z_point_type>: Declare.
1417 (aarch64_supports_z_point_type): Turn into...
1418 (aarch64_target::supports_z_point_type): ...this.
1419 (the_low_target): Remove the op field.
1420 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1421 Declare.
1422 (arm_supports_z_point_type): Turn into...
1423 (arm_target::supports_z_point_type): ...this.
1424 (the_low_target): Remove the op field.
1425 * linux-crisv32-low.cc (class crisv32_target)
1426 <supports_z_point_type>: Declare.
1427 (cris_supports_z_point_type): Turn into...
1428 (crisv32_target::supports_z_point_type): ...this.
1429 (the_low_target): Remove the op field.
1430 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1431 Declare.
1432 (mips_supports_z_point_type): Turn into...
1433 (mips_target::supports_z_point_type): ...this.
1434 (the_low_target): Remove the op field.
1435 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1436 Declare.
1437 (ppc_supports_z_point_type): Turn into...
1438 (ppc_target::supports_z_point_type): ...this.
1439 (the_low_target): Remove the op field.
1440 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1441 Declare.
1442 (s390_supports_z_point_type): Turn into...
1443 (s390_target::supports_z_point_type): ...this.
1444 (the_low_target): Remove the op field.
1445 * linux-bfin-low.cc (the_low_target): Remove the op field.
1446 * linux-m32r-low.cc (the_low_target): Ditto.
1447 * linux-m68k-low.cc (the_low_target): Ditto.
1448 * linux-sh-low.cc (the_low_target): Ditto.
1449 * linux-sparc-low.cc (the_low_target): Ditto.
1450 * linux-tic6x-low.cc (the_low_target): Ditto.
1451 * linux-tile-low.cc (the_low_target): Ditto.
1452 * linux-xtensa-low.cc (the_low_target): Ditto.
1453
d7146cda
TBA
14542020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1455
1456 Turn the 'breakpoint_at' linux target op into a method of
1457 linux_process_target.
1458
1459 * linux-low.h (struct linux_target_ops): Remove the op.
1460 (class linux_process_target) <low_breakpoint_at>: Declare.
1461
1462 Update the callers below:
1463
1464 * linux-low.cc (linux_process_target::save_stop_reason)
1465 (linux_process_target::thread_still_has_status_pending)
1466 (linux_process_target::wait_1)
1467
1468 * linux-x86-low.cc (class x86_target)
1469 <low_breakpoint_at>: Declare.
1470 (x86_breakpoint_at): Turn into...
1471 (x86_target::low_breakpoint_at): ...this.
1472 (the_low_target): Remove the op field.
1473 * linux-aarch64-low.cc (class aarch64_target)
1474 <low_breakpoint_at>: Declare.
1475 (aarch64_breakpoint_at): Turn into...
1476 (aarch64_target::low_breakpoint_at): ...this.
1477 (the_low_target): Remove the op field.
1478 * linux-arm-low.cc (class arm_target)
1479 <low_breakpoint_at>: Declare.
1480 (arm_target::low_breakpoint_at): Define.
1481 (the_low_target): Remove the op field.
1482 * linux-bfin-low.cc (class bfin_target)
1483 <low_breakpoint_at>: Declare.
1484 (bfin_breakpoint_at): Turn into...
1485 (bfin_target::low_breakpoint_at): ...this.
1486 (the_low_target): Remove the op field.
1487 * linux-cris-low.cc (class cris_target)
1488 <low_breakpoint_at>: Declare.
1489 (cris_breakpoint_at): Turn into...
1490 (cris_target::low_breakpoint_at): ...this.
1491 (the_low_target): Remove the op field.
1492 * linux-crisv32-low.cc (class crisv32_target)
1493 <low_breakpoint_at>: Declare.
1494 (crisv32_breakpoint_at): Turn into...
1495 (crisv32_target::low_breakpoint_at): ...this.
1496 (the_low_target): Remove the op field.
1497 * linux-ia64-low.cc (class ia64_target)
1498 <low_breakpoint_at>: Declare.
1499 (ia64_target::low_breakpoint_at): Define.
1500 * linux-m32r-low.cc (class m32r_target)
1501 <low_breakpoint_at>: Declare.
1502 (m32r_breakpoint_at): Turn into...
1503 (m32r_target::low_breakpoint_at): ...this.
1504 (the_low_target): Remove the op field.
1505 * linux-m68k-low.cc (class m68k_target)
1506 <low_breakpoint_at>: Declare.
1507 (m68k_breakpoint_at): Turn into...
1508 (m68k_target::low_breakpoint_at): ...this.
1509 (the_low_target): Remove the op field.
1510 * linux-mips-low.cc (class mips_target)
1511 <low_breakpoint_at>: Declare.
1512 (mips_breakpoint_at): Turn into...
1513 (mips_target::low_breakpoint_at): ...this.
1514 (the_low_target): Remove the op field.
1515 * linux-nios2-low.cc (class nios2_target)
1516 <low_breakpoint_at>: Declare.
1517 (nios2_breakpoint_at): Turn into...
1518 (nios2_target::low_breakpoint_at): ...this.
1519 (the_low_target): Remove the op field.
1520 * linux-ppc-low.cc (class ppc_target)
1521 <low_breakpoint_at>: Declare.
1522 (ppc_breakpoint_at): Turn into...
1523 (ppc_target::low_breakpoint_at): ...this.
1524 (the_low_target): Remove the op field.
1525 * linux-riscv-low.cc (class riscv_target)
1526 <low_breakpoint_at>: Declare.
1527 (riscv_breakpoint_at): Turn into...
1528 (riscv_target::low_breakpoint_at): ...this.
1529 (the_low_target): Remove the op field.
1530 * linux-s390-low.cc (class s390_target)
1531 <low_breakpoint_at>: Declare.
1532 (s390_breakpoint_at): Turn into...
1533 (s390_target::low_breakpoint_at): ...this.
1534 (the_low_target): Remove the op field.
1535 * linux-sh-low.cc (class sh_target)
1536 <low_breakpoint_at>: Declare.
1537 (sh_breakpoint_at): Turn into...
1538 (sh_target::low_breakpoint_at): ...this.
1539 (the_low_target): Remove the op field.
1540 * linux-sparc-low.cc (class sparc_target)
1541 <low_breakpoint_at>: Declare.
1542 (sparc_breakpoint_at): Turn into...
1543 (sparc_target::low_breakpoint_at): ...this.
1544 (the_low_target): Remove the op field.
1545 * linux-tic6x-low.cc (class tic6x_target)
1546 <low_breakpoint_at>: Declare.
1547 (tic6x_breakpoint_at): Turn into...
1548 (tic6x_target::low_breakpoint_at): ...this.
1549 (the_low_target): Remove the op field.
1550 * linux-tile-low.cc (class tile_target)
1551 <low_breakpoint_at>: Declare.
1552 (tile_breakpoint_at): Turn into...
1553 (tile_target::low_breakpoint_at): ...this.
1554 (the_low_target): Remove the op field.
1555 * linux-xtensa-low.cc (class xtensa_target)
1556 <low_breakpoint_at>: Declare.
1557 (xtensa_breakpoint_at): Turn into...
1558 (xtensa_target::low_breakpoint_at): ...this.
1559 (the_low_target): Remove the op field.
1560
d4807ea2
TBA
15612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1562
1563 Turn the 'decr_pc_after_break' linux_target_ops field into
1564 a method of linux_process_target.
1565
1566 * linux-low.h (struct linux_target_ops)
1567 <decr_pc_after_break>: Remove.
1568 (class linux_process_target) <low_decr_pc_after_break>: New method
1569 declaration.
1570 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1571 New method implementation.
1572
1573 Update the users below.
1574
1575 (linux_process_target::save_stop_reason)
1576 (linux_process_target::wait_1)
1577 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1578 New declaration.
1579 (x86_target::low_decr_pc_after_break): New method implementation.
1580 (the_low_target): Remove the field.
1581 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1582 New declaration.
1583 (bfin_target::low_decr_pc_after_break): New method implementation.
1584 (the_low_target): Remove the field.
1585 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1586 New declaration.
1587 (m68k_target::low_decr_pc_after_break): New method implementation.
1588 (the_low_target): Remove the field.
1589 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1590 New declaration.
1591 (s390_target::low_decr_pc_after_break): New method implementation.
1592 (the_low_target): Remove the field.
1593 * linux-aarch64-low.cc (the_low_target): Remove the field.
1594 * linux-arm-low.cc (the_low_target): Remove the field.
1595 * linux-cris-low.cc (the_low_target): Remove the field.
1596 * linux-crisv32-low.cc (the_low_target): Remove the field.
1597 * linux-m32r-low.cc (the_low_target): Remove the field.
1598 * linux-mips-low.cc (the_low_target): Remove the field.
1599 * linux-nios2-low.cc (the_low_target): Remove the field.
1600 * linux-ppc-low.cc (the_low_target): Remove the field.
1601 * linux-riscv-low.cc (the_low_target): Remove the field.
1602 * linux-sh-low.cc (the_low_target): Remove the field.
1603 * linux-sparc-low.cc (the_low_target): Remove the field.
1604 * linux-tic6x-low.cc (the_low_target): Remove the field.
1605 * linux-tile-low.cc (the_low_target): Remove the field.
1606 * linux-xtensa-low.cc (the_low_target): Remove the field.
1607
7582c77c
TBA
16082020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1609
1610 Remove the 'supports_software_single_step' linux target op and let
1611 the concrete linux target define it by overriding the op in
1612 process_stratum_target.
1613 Turn the 'get_next_pcs' linux target op into a method of
1614 linux_process_target.
1615
1616 * linux-low.h (struct linux_target_ops): Remove the ops.
1617 (class linux_process_target) <supports_software_single_step>:
1618 Remove.
1619 <low_get_next_pcs>: Declare.
1620 * linux-low.cc (can_software_single_step): Remove.
1621 (linux_process_target::low_get_next_pcs): Define.
1622 (linux_process_target::supports_software_single_step): Remove.
1623
1624 Update the callers below.
1625
1626 (linux_process_target::handle_extended_wait)
1627 (linux_process_target::wait_1)
1628 (linux_process_target::install_software_single_step_breakpoints)
1629 (linux_process_target::single_step)
1630 (linux_process_target::thread_needs_step_over)
1631 (linux_process_target::proceed_one_lwp)
1632 (linux_process_target::supports_range_stepping)
1633
1634 * linux-x86-low.cc (the_low_target): Remove the op field.
1635 * linux-aarch64-low.cc (the_low_target): Ditto.
1636 * linux-bfin-low.cc (the_low_target): Ditto.
1637 * linux-cris-low.cc (the_low_target): Ditto.
1638 * linux-crisv32-low.cc (the_low_target): Ditto.
1639 * linux-m32r-low.cc (the_low_target): Ditto.
1640 * linux-m68k-low.cc (the_low_target): Ditto.
1641 * linux-mips-low.cc (the_low_target): Ditto.
1642 * linux-nios2-low.cc (the_low_target): Ditto.
1643 * linux-ppc-low.cc (the_low_target): Ditto.
1644 * linux-riscv-low.cc (the_low_target): Ditto.
1645 * linux-s390-low.cc (the_low_target): Ditto.
1646 * linux-sh-low.cc (the_low_target): Ditto.
1647 * linux-sparc-low.cc (the_low_target): Ditto.
1648 * linux-tic6x-low.cc (the_low_target): Ditto.
1649 * linux-tile-low.cc (the_low_target): Ditto.
1650 * linux-xtensa-low.cc (the_low_target): Ditto.
1651 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1652 <supports_software_single_step>: Declare.
1653 (arm_target::supports_software_single_step): Define.
1654 (arm_gdbserver_get_next_pcs): Turn into...
1655 (arm_target::low_get_next_pcs): ...this.
1656 (the_low_target): Remove the op field.
1657
3ca4edb6
TBA
16582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1659
1660 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1661 the concrete linux target define it by overriding the op
1662 in process_stratum_target.
1663
1664 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1665 Remove.
1666 * linux-low.h (struct linux_target_ops): Remove the op.
1667 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1668 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1669 Declare.
1670 (x86_sw_breakpoint_from_kind): Turn into...
1671 (x86_target::sw_breakpoint_from_kind): ...this.
1672 (the_low_target): Remove the op field.
1673 * linux-aarch64-low.cc (class aarch64_target)
1674 <sw_breakpoint_from_kind>: Declare.
1675 (aarch64_sw_breakpoint_from_kind): Turn into...
1676 (aarch64_target::sw_breakpoint_from_kind): ...this.
1677 (the_low_target): Remove the op field.
1678 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1679 Declare.
1680 (arm_target::sw_breakpoint_from_kind): Define.
1681 (the_low_target): Remove the op field.
1682 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1683 Declare.
1684 (bfin_sw_breakpoint_from_kind): Turn into...
1685 (bfin_target::sw_breakpoint_from_kind): ...this.
1686 (the_low_target): Remove the op field.
1687 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1688 Declare.
1689 (cris_sw_breakpoint_from_kind): Turn into...
1690 (cris_target::sw_breakpoint_from_kind): ...this.
1691 (the_low_target): Remove the op field.
1692 * linux-crisv32-low.cc (class crisv32_target)
1693 <sw_breakpoint_from_kind>: Declare.
1694 (cris_sw_breakpoint_from_kind): Turn into...
1695 (crisv32_target::sw_breakpoint_from_kind): ...this.
1696 (the_low_target): Remove the op field.
1697 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1698 Declare.
1699 (ia64_target::sw_breakpoint_from_kind): Define.
1700 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1701 Declare.
1702 (m32r_sw_breakpoint_from_kind): Turn into...
1703 (m32r_target::sw_breakpoint_from_kind): ...this.
1704 (the_low_target): Remove the op field.
1705 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1706 Declare.
1707 (m68k_sw_breakpoint_from_kind): Turn into...
1708 (m68k_target::sw_breakpoint_from_kind): ...this.
1709 (the_low_target): Remove the op field.
1710 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1711 Declare.
1712 (mips_sw_breakpoint_from_kind): Turn into...
1713 (mips_target::sw_breakpoint_from_kind): ...this.
1714 (the_low_target): Remove the op field.
1715 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1716 Declare.
1717 (nios2_sw_breakpoint_from_kind): Turn into...
1718 (nios2_target::sw_breakpoint_from_kind): ...this.
1719 (the_low_target): Remove the op field.
1720 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1721 Declare.
1722 (ppc_sw_breakpoint_from_kind): Turn into...
1723 (ppc_target::sw_breakpoint_from_kind): ...this.
1724 (the_low_target): Remove the op field.
1725 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1726 Declare.
1727 (riscv_sw_breakpoint_from_kind): Turn into...
1728 (riscv_target::sw_breakpoint_from_kind): ...this.
1729 (the_low_target): Remove the op field.
1730 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1731 Declare.
1732 (s390_sw_breakpoint_from_kind): Turn into...
1733 (s390_target::sw_breakpoint_from_kind): ...this.
1734 (the_low_target): Remove the op field.
1735 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1736 Declare.
1737 (sh_sw_breakpoint_from_kind): Turn into...
1738 (sh_target::sw_breakpoint_from_kind): ...this.
1739 (the_low_target): Remove the op field.
1740 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1741 Declare.
1742 (sparc_sw_breakpoint_from_kind): Turn into...
1743 (sparc_target::sw_breakpoint_from_kind): ...this.
1744 (the_low_target): Remove the op field.
1745 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1746 Declare.
1747 (tic6x_sw_breakpoint_from_kind): Turn into...
1748 (tic6x_target::sw_breakpoint_from_kind): ...this.
1749 (the_low_target): Remove the op field.
1750 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1751 Declare.
1752 (tile_sw_breakpoint_from_kind): Turn into...
1753 (tile_target::sw_breakpoint_from_kind): ...this.
1754 (the_low_target): Remove the op field.
1755 * linux-xtensa-low.cc (class xtensa_target)
1756 <sw_breakpoint_from_kind>: Declare.
1757 (xtensa_sw_breakpoint_from_kind): Turn into...
1758 (xtensa_target::sw_breakpoint_from_kind): ...this.
1759 (the_low_target): Remove the op field.
1760
06250e4e
TBA
17612020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1762
1763 Remove the 'breakpoint_kind_from_pc' and
1764 'breakpoint_kind_from_current_state' linux target ops, and let the
1765 concrete linux target define them by overriding the ops of
1766 process_stratum_target.
1767
1768 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1769 Remove.
1770 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1771 * linux-low.h (struct linux_target_ops): Remove ops.
1772 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1773 <breakpoint_kind_from_current_state>: Remove.
1774 * linux-x86-low.cc (the_low_target): Remove the op fields.
1775 * linux-bfin-low.cc (the_low_target): Ditto.
1776 * linux-cris-low.cc (the_low_target): Ditto.
1777 * linux-crisv32-low.cc (the_low_target): Ditto.
1778 * linux-m32r-low.cc (the_low_target): Ditto.
1779 * linux-m68k-low.cc (the_low_target): Ditto.
1780 * linux-mips-low.cc (the_low_target): Ditto.
1781 * linux-nios2-low.cc (the_low_target): Ditto.
1782 * linux-ppc-low.cc (the_low_target): Ditto.
1783 * linux-s390-low.cc (the_low_target): Ditto.
1784 * linux-sh-low.cc (the_low_target): Ditto.
1785 * linux-sparc-low.cc (the_low_target): Ditto.
1786 * linux-tic6x-low.cc (the_low_target): Ditto.
1787 * linux-tile-low.cc (the_low_target): Ditto.
1788 * linux-xtensa-low.cc (the_low_target): Ditto.
1789 * linux-aarch64-low.cc (class aarch64_target)
1790 <breakpoint_kind_from_pc>
1791 <breakpoint_kind_from_current_state>: Declare.
1792 (aarch64_breakpoint_kind_from_pc): Turn into...
1793 (aarch64_target::breakpoint_kind_from_pc): ...this.
1794 (aarch64_breakpoint_kind_from_current_state): Turn into...
1795 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1796 (the_low_target): Remove the op fields.
1797 * linux-arm-low.cc (class arm_target):
1798 <breakpoint_kind_from_pc>
1799 <breakpoint_kind_from_current_state>: Declare.
1800 (arm_target::breakpoint_kind_from_pc): Define.
1801 (arm_target::breakpoint_kind_from_current_state): Define.
1802 (the_low_target): Remove the op fields.
1803 * linux-riscv-low.cc (class riscv_target):
1804 <breakpoint_kind_from_pc>: Declare.
1805 (riscv_breakpoint_kind_from_pc): Turn into...
1806 (riscv_target::breakpoint_kind_from_pc): ...this.
1807 (the_low_target): Remove the op fields.
1808
bf9ae9d8
TBA
18092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1810
1811 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1812 of linux_process_target.
1813
1814 * linux-low.h (struct linux_target_ops): Remove the ops.
1815 (class linux_process_target) <low_supports_breakpoints>
1816 <low_get_pc>
1817 <low_set_pc>: Declare.
1818 * linux-low.cc (supports_breakpoints): Turn into...
1819 (linux_process_target::low_supports_breakpoints): ...this.
1820 (linux_process_target::low_get_pc): Define.
1821 (linux_process_target::low_set_pc): Define.
1822
1823 Update the callers below.
1824
1825 (linux_process_target::get_pc)
1826 (linux_process_target::save_stop_reason)
1827 (linux_process_target::maybe_move_out_of_jump_pad)
1828 (linux_process_target::wait_1)
1829 (linux_process_target::resume_one_lwp_throw)
1830 (linux_process_target::resume)
1831 (linux_process_target::proceed_all_lwps)
1832 (linux_process_target::read_pc)
1833 (linux_process_target::write_pc)
1834
1835 * linux-x86-low.cc (class linux_process_target)
1836 <low_supports_breakpoints>
1837 <low_get_pc>
1838 <low_set_pc>: Declare.
1839 (x86_target::low_supports_breakpoints): Define.
1840 (x86_get_pc): Turn into...
1841 (x86_target::low_get_pc): ...this.
1842 (x86_set_pc): Turn into...
1843 (x86_target::low_set_pc): ...this.
1844 (the_low_target): Remove the op fields.
1845 * linux-arm-low.cc (class arm_target)
1846 <low_supports_breakpoints>
1847 <low_get_pc>
1848 <low_set_pc>: Declare.
1849 (arm_target::low_supports_breakpoints)
1850 (arm_target::low_get_pc)
1851 (arm_target::low_set_pc): Define.
1852 (the_low_target): Remove the op fields.
1853 * linux-bfin-low.cc (class bfin_target)
1854 <low_supports_breakpoints>
1855 <low_get_pc>
1856 <low_set_pc>: Declare.
1857 (bfin_target::low_supports_breakpoints)
1858 (bfin_target::low_get_pc)
1859 (bfin_target::low_set_pc): Define.
1860 (the_low_target): Remove the op fields.
1861 * linux-cris-low.cc (class cris_target)
1862 <low_supports_breakpoints>
1863 <low_get_pc>
1864 <low_set_pc>: Declare.
1865 (cris_target::low_supports_breakpoints)
1866 (cris_target::low_get_pc)
1867 (cris_target::low_set_pc): Define.
1868 (the_low_target): Remove the op fields.
1869 * linux-crisv32-low.cc (class crisv32_target)
1870 <low_supports_breakpoints>
1871 <low_get_pc>
1872 <low_set_pc>: Declare.
1873 (crisv32_target::low_supports_breakpoints)
1874 (crisv32_target::low_get_pc)
1875 (crisv32_target::low_set_pc): Define.
1876 (the_low_target): Remove the op fields.
1877 * linux-m32r-low.cc (class m32r_target)
1878 <low_supports_breakpoints>
1879 <low_get_pc>
1880 <low_set_pc>: Declare.
1881 (m32r_target::low_supports_breakpoints)
1882 (m32r_target::low_get_pc)
1883 (m32r_target::low_set_pc): Define.
1884 (the_low_target): Remove the op fields.
1885 * linux-m68k-low.cc (class m68k_target)
1886 <low_supports_breakpoints>
1887 <low_get_pc>
1888 <low_set_pc>: Declare.
1889 (m68k_target::low_supports_breakpoints)
1890 (m68k_target::low_get_pc)
1891 (m68k_target::low_set_pc): Define.
1892 (the_low_target): Remove the op fields.
1893 * linux-nios2-low.cc (class nios2_target)
1894 <low_supports_breakpoints>
1895 <low_get_pc>
1896 <low_set_pc>: Declare.
1897 (nios2_target::low_supports_breakpoints)
1898 (nios2_target::low_get_pc)
1899 (nios2_target::low_set_pc): Define.
1900 (the_low_target): Remove the op fields.
1901 * linux-sh-low.cc (class sh_target)
1902 <low_supports_breakpoints>
1903 <low_get_pc>
1904 <low_set_pc>: Declare.
1905 (sh_target::low_supports_breakpoints)
1906 (sh_target::low_get_pc)
1907 (sh_target::low_set_pc): Define.
1908 (the_low_target): Remove the op fields.
1909 * linux-xtensa-low.cc (class xtensa_target)
1910 <low_supports_breakpoints>
1911 <low_get_pc>
1912 <low_set_pc>: Declare.
1913 (xtensa_target::low_supports_breakpoints)
1914 (xtensa_target::low_get_pc)
1915 (xtensa_target::low_set_pc): Define.
1916 (the_low_target): Remove the op fields.
1917 * linux-sparc-low.cc (class sparc_target)
1918 <low_supports_breakpoints>
1919 <low_get_pc>: Declare.
1920 (sparc_target::low_supports_breakpoints)
1921 (sparc_target::low_get_pc): Define.
1922 (the_low_target): Remove the op fields.
1923 * linux-tile-low.cc (class tile_target)
1924 <low_supports_breakpoints>
1925 <low_get_pc>
1926 <low_set_pc>: Declare.
1927 (tile_target::low_supports_breakpoints)
1928 (tile_target::low_get_pc)
1929 (tile_target::low_set_pc): Define.
1930 (the_low_target): Remove the op fields.
1931 * linux-aarch64-low.cc (class aarch64_target)
1932 <low_supports_breakpoints>
1933 <low_get_pc>
1934 <low_set_pc>: Declare.
1935 (aarch64_target::low_supports_breakpoints): Define.
1936 (aarch64_get_pc): Turn into...
1937 (aarch64_target::low_get_pc): ...this.
1938 (aarch64_set_pc): Turn into...
1939 (aarch64_target::low_set_pc): ...this.
1940 (the_low_target): Remove the op fields.
1941 * linux-mips-low.cc (class mips_target)
1942 <low_supports_breakpoints>
1943 <low_get_pc>
1944 <low_set_pc>: Declare.
1945 (mips_target::low_supports_breakpoints): Define.
1946 (mips_get_pc): Turn into...
1947 (mips_target::low_get_pc): ...this.
1948 (mips_set_pc): Turn into...
1949 (mips_target::low_set_pc): ...this.
1950 (the_low_target): Remove the op fields.
1951 * linux-ppc-low.cc (class ppc_target)
1952 <low_supports_breakpoints>
1953 <low_get_pc>
1954 <low_set_pc>: Declare.
1955 (ppc_target::low_supports_breakpoints): Define.
1956 (ppc_get_pc): Turn into...
1957 (ppc_target::low_get_pc): ...this.
1958 (ppc_set_pc): Turn into...
1959 (ppc_target::low_set_pc): ...this.
1960 (the_low_target): Remove the op fields.
1961 * linux-riscv-low.cc (class riscv_target)
1962 <low_supports_breakpoints>
1963 <low_get_pc>
1964 <low_set_pc>: Declare.
1965 (riscv_target::low_supports_breakpoints): Define.
1966 (riscv_get_pc): Turn into...
1967 (riscv_target::low_get_pc): ...this.
1968 (riscv_set_pc): Turn into...
1969 (riscv_target::low_set_pc): ...this.
1970 (the_low_target): Remove the op fields.
1971 * linux-s390-low.cc (class s390_target)
1972 <low_supports_breakpoints>
1973 <low_get_pc>
1974 <low_set_pc>: Declare.
1975 (s390_target::low_supports_breakpoints): Define.
1976 (s390_get_pc): Turn into...
1977 (s390_target::low_get_pc): ...this.
1978 (s390_set_pc): Turn into...
1979 (s390_target::low_set_pc): ...this.
1980 (the_low_target): Remove the op fields.
1981 * linux-tic6x-low.cc (class tic6x_target)
1982 <low_supports_breakpoints>
1983 <low_get_pc>
1984 <low_set_pc>: Declare.
1985 (tic6x_target::low_supports_breakpoints): Define.
1986 (tic6x_get_pc): Turn into...
1987 (tic6x_target::low_get_pc): ...this.
1988 (tic6x_set_pc): Turn into...
1989 (tic6x_target::low_set_pc): ...this.
1990 (the_low_target): Remove the op fields.
1991
df95181f
TBA
19922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1993
1994 Turn some more static methods in linux-low into private methods
1995 of linux_process_target.
1996
1997 * linux-low.cc (get_pc): Turn into...
1998 (linux_process_target::get_pc): ...this.
1999 (save_stop_reason): Turn into...
2000 (linux_process_target::save_stop_reason): ...this.
2001 (thread_still_has_status_pending_p): Turn into...
2002 (linux_process_target::thread_still_has_status_pending): ...this.
2003 (status_pending_p_callback): Turn into...
2004 (linux_process_target::status_pending_p_callback): ...this.
2005 (resume_stopped_resumed_lwps): Turn into...
2006 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2007 (install_software_single_step_breakpoints): Turn into...
2008 (linux_process_target::install_software_single_step_breakpoints):
2009 ...this.
2010 (single_step): Turn into...
2011 (linux_process_target::single_step): ...this.
2012 (linux_resume_one_lwp_throw): Turn into...
2013 (linux_process_target::resume_one_lwp_throw): ...this.
2014 (linux_resume_one_lwp): Turn into...
2015 (linux_process_target::resume_one_lwp): ...this.
2016 (resume_status_pending_p): Turn into...
2017 (linux_process_target::resume_status_pending): ...this.
2018 (need_step_over_p): Turn into...
2019 (linux_process_target::thread_needs_step_over): ...this.
2020 (linux_resume_one_thread): Turn into...
2021 (linux_process_target::resume_one_thread): ...this.
2022 (proceed_one_lwp): Turn into...
2023 (linux_process_target::proceed_one_lwp): ...this.
2024 (unsuspend_and_proceed_one_lwp): Turn into...
2025 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2026
2027 Update the calls/references to the above functions below.
2028
2029 (linux_process_target::handle_extended_wait)
2030 (linux_process_target::filter_event)
2031 (linux_process_target::wait_for_event_filtered)
2032 (linux_process_target::wait_1)
2033 (linux_process_target::move_out_of_jump_pad)
2034 (linux_process_target::start_step_over)
2035 (linux_process_target::resume)
2036 (linux_process_target::proceed_all_lwps)
2037 (regsets_store_inferior_registers)
2038 (linux_process_target::store_register)
2039
2040 * linux-low.h (class linux_process_target)
2041 <get_pc>
2042 <save_stop_reason>
2043 <thread_still_has_status_pending>
2044 <status_pending_p_callback>
2045 <resume_stopped_resumed_lwps>
2046 <install_software_single_step_breakpoints>
2047 <single_step>
2048 <resume_one_lwp_throw>
2049 <resume_one_lwp>
2050 <resume_status_pending>
2051 <thread_needs_step_over>
2052 <resume_one_thread>
2053 <proceed_one_lwp>
2054 <unsuspend_and_proceed_one_lwp>: Declare.
2055
bd70b1f2
TBA
20562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2057
2058 Turn the 'fetch_register' linux target op into a method of
2059 linux_process_target.
2060
2061 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2062 (class linux_process_target) <low_fetch_register>: Declare.
2063 * linux-x86-low.cc (the_low_target)
2064 * linux-aarch64-low.cc (the_low_target)
2065 * linux-arm-low.cc (the_low_target)
2066 * linux-bfin-low.cc (the_low_target)
2067 * linux-cris-low.cc (the_low_target)
2068 * linux-crisv32-low.cc (the_low_target)
2069 * linux-m32r-low.cc (the_low_target)
2070 * linux-m68k-low.cc (the_low_target)
2071 * linux-nios2-low.cc (the_low_target)
2072 * linux-ppc-low.cc (the_low_target)
2073 * linux-s390-low.cc (the_low_target)
2074 * linux-sh-low.cc (the_low_target)
2075 * linux-sparc-low.cc (the_low_target)
2076 * linux-tic6x-low.cc (the_low_target)
2077 * linux-tile-low.cc (the_low_target)
2078 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2079 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2080 Declare.
2081 (ia64_fetch_register): Turn into...
2082 (ia64_target::low_fetch_register): ...this.
2083 (the_low_target): Remove the op field.
2084 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2085 Declare.
2086 (mips_fetch_register): Turn into...
2087 (mips_target::low_fetch_register): ...this.
2088 (the_low_target): Remove the op field.
2089 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2090 Declare.
2091 (riscv_fetch_register): Turn into...
2092 (riscv_target::low_fetch_register): ...this.
2093 (the_low_target): Remove the op field.
2094
2095 Update the callers below.
2096
2097 * linux-low.cc (linux_process_target::fetch_registers)
2098 (linux_process_target::low_fetch_register)
2099
daca57a7
TBA
21002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2101
2102 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2103 linux target ops into methods of linux_process_target.
2104
2105 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2106 (class linux_process_target) <fetch_register>
2107 <store_register>
2108 <usr_fetch_inferior_registers>
2109 <usr_store_inferior_registers>
2110 <low_cannot_fetch_register>
2111 <low_cannot_fetch_register> Declare.
2112 * linux-low.cc (fetch_register): Turn into...
2113 (linux_process_target::fetch_register): ...this.
2114 (store_register): Turn into ...
2115 (linux_process_target::store_register): ...this.
2116 (usr_fetch_inferior_registers): Turn into...
2117 (linux_process_target::usr_fetch_inferior_registers): ...this.
2118 (usr_store_inferior_registers): Turn into...
2119 (linux_process_target::usr_store_inferior_registers): ...this.
2120 * linux-x86-low.cc (class x86_target)
2121 <low_cannot_fetch_register>
2122 <low_cannot_store_register>: Declare.
2123 (x86_cannot_store_register): Turn into...
2124 (x86_target::low_cannot_store_register): ...this.
2125 (x86_cannot_fetch_register): Turn into...
2126 (x86_target::low_cannot_fetch_register): ...this.
2127 (the_low_target): Remove the target op fields.
2128 * linux-aarch64-low.cc (class aarch64_target)
2129 <low_cannot_fetch_register>
2130 <low_cannot_store_register>: Declare.
2131 (aarch64_target::low_cannot_fetch_register)
2132 (aarch64_target::low_cannot_store_register): Define.
2133 (the_low_target): Remove the op fields.
2134 * linux-arm-low.cc (class arm_target)
2135 <low_cannot_fetch_register>
2136 <low_cannot_store_register>: Declare.
2137 (arm_cannot_fetch_register): Turn into...
2138 (arm_target::low_cannot_fetch_register): ...this.
2139 (arm_cannot_store_register): Turn into...
2140 (arm_target::low_cannot_store_register): ...this.
2141 (the_low_target): Remove the op fields.
2142 * linux-bfin-low.cc (class bfin_target)
2143 <low_cannot_fetch_register>
2144 <low_cannot_store_register>: Declare.
2145 (bfin_cannot_fetch_register): Turn into...
2146 (bfin_target::low_cannot_fetch_register): ...this.
2147 (bfin_cannot_store_register): Turn into...
2148 (bfin_target::low_cannot_store_register): ...this.
2149 (the_low_target): Remove the op fields.
2150 * linux-cris-low.cc (class cris_target)
2151 <low_cannot_fetch_register>
2152 <low_cannot_store_register>: Declare.
2153 (cris_cannot_fetch_register): Turn into...
2154 (cris_target::low_cannot_fetch_register): ...this.
2155 (cris_cannot_store_register): Turn into...
2156 (cris_target::low_cannot_store_register): ...this.
2157 (the_low_target): Remove the op fields.
2158 * linux-crisv32-low.cc (class crisv32_target)
2159 <low_cannot_fetch_register>
2160 <low_cannot_store_register>: Declare.
2161 (crisv32_target::low_cannot_fetch_register)
2162 (crisv32_target::low_cannot_store_register): Define.
2163 (the_low_target): Remove the op fields.
2164 * linux-ia64-low.cc (class ia64_target)
2165 <low_cannot_fetch_register>
2166 <low_cannot_store_register>: Declare.
2167 (ia64_cannot_fetch_register): Turn into...
2168 (ia64_target::low_cannot_fetch_register): ...this.
2169 (ia64_cannot_store_register): Turn into...
2170 (ia64_target::low_cannot_store_register): ...this.
2171 (the_low_target): Remove the op fields.
2172 * linux-m32r-low.cc (class m32r_target)
2173 <low_cannot_fetch_register>
2174 <low_cannot_store_register>: Declare.
2175 (m32r_cannot_fetch_register): Turn into...
2176 (m32r_target::low_cannot_fetch_register): ...this.
2177 (m32r_cannot_store_register): Turn into...
2178 (m32r_target::low_cannot_store_register): ...this.
2179 (the_low_target): Remove the op fields.
2180 * linux-m68k-low.cc (class m68k_target)
2181 <low_cannot_fetch_register>
2182 <low_cannot_store_register>: Declare.
2183 (m68k_cannot_fetch_register): Turn into...
2184 (m68k_target::low_cannot_fetch_register): ...this.
2185 (m68k_cannot_store_register): Turn into...
2186 (m68k_target::low_cannot_store_register): ...this.
2187 (the_low_target): Remove the op fields.
2188 * linux-mips-low.cc (class mips_target)
2189 <low_cannot_fetch_register>
2190 <low_cannot_store_register>: Declare.
2191 (mips_cannot_fetch_register): Turn into...
2192 (mips_target::low_cannot_fetch_register): ...this.
2193 (mips_cannot_store_register): Turn into...
2194 (mips_target::low_cannot_store_register): ...this.
2195 (get_usrregs_info): Inline at the call sites in
2196 low_cannot_fetch_register and low_cannot_store_register,
2197 and remove.
2198 (the_low_target): Remove the op fields.
2199 * linux-nios2-low.cc (class nios2_target)
2200 <low_cannot_fetch_register>
2201 <low_cannot_store_register>: Declare.
2202 (nios2_cannot_fetch_register): Turn into...
2203 (nios2_target::low_cannot_fetch_register): ...this.
2204 (nios2_cannot_store_register): Turn into...
2205 (nios2_target::low_cannot_store_register): ...this.
2206 (the_low_target): Remove the op fields.
2207 * linux-ppc-low.cc (class ppc_target)
2208 <low_cannot_fetch_register>
2209 <low_cannot_store_register>: Declare.
2210 (ppc_cannot_fetch_register): Turn into...
2211 (ppc_target::low_cannot_fetch_register): ...this.
2212 (ppc_cannot_store_register): Turn into...
2213 (ppc_target::low_cannot_store_register): ...this.
2214 (the_low_target): Remove the op fields.
2215 * linux-riscv-low.cc (class riscv_target)
2216 <low_cannot_fetch_register>
2217 <low_cannot_store_register>: Declare.
2218 (riscv_target::low_cannot_fetch_register)
2219 (riscv_target::low_cannot_store_register): Define.
2220 (the_low_target): Remove the op fields.
2221 * linux-s390-low.cc (class s390_target)
2222 <low_cannot_fetch_register>
2223 <low_cannot_store_register>: Declare.
2224 (s390_cannot_fetch_register): Turn into...
2225 (s390_target::low_cannot_fetch_register): ...this.
2226 (s390_cannot_store_register): Turn into...
2227 (s390_target::low_cannot_store_register): ...this.
2228 (the_low_target): Remove the op fields.
2229 * linux-sh-low.cc (class sh_target)
2230 <low_cannot_fetch_register>
2231 <low_cannot_store_register>: Declare.
2232 (sh_cannot_fetch_register): Turn into...
2233 (sh_target::low_cannot_fetch_register): ...this.
2234 (sh_cannot_store_register): Turn into...
2235 (sh_target::low_cannot_store_register): ...this.
2236 (the_low_target): Remove the op fields.
2237 * linux-sparc-low.cc (class sparc_target)
2238 <low_cannot_fetch_register>
2239 <low_cannot_store_register>: Declare.
2240 (sparc_cannot_fetch_register): Turn into...
2241 (sparc_target::low_cannot_fetch_register): ...this.
2242 (sparc_cannot_store_register): Turn into...
2243 (sparc_target::low_cannot_store_register): ...this.
2244 (the_low_target): Remove the op fields.
2245 * linux-tic6x-low.cc (class tic6x_target)
2246 <low_cannot_fetch_register>
2247 <low_cannot_store_register>: Declare.
2248 (tic6x_cannot_fetch_register): Turn into...
2249 (tic6x_target::low_cannot_fetch_register): ...this.
2250 (tic6x_cannot_store_register): Turn into...
2251 (tic6x_target::low_cannot_store_register): ...this.
2252 (the_low_target): Remove the op fields.
2253 * linux-tile-low.cc (class tile_target)
2254 <low_cannot_fetch_register>
2255 <low_cannot_store_register>: Declare.
2256 (tile_cannot_fetch_register): Turn into...
2257 (tile_target::low_cannot_fetch_register): ...this.
2258 (tile_cannot_store_register): Turn into...
2259 (tile_target::low_cannot_store_register): ...this.
2260 (the_low_target): Remove the op fields.
2261 * linux-xtensa-low.cc (class xtensa_target)
2262 <low_cannot_fetch_register>
2263 <low_cannot_store_register>: Declare.
2264 (xtensa_target::low_cannot_fetch_register)
2265 (xtensa_target::low_cannot_store_register): Define.
2266 (the_low_target): Remove the op fields.
2267
aa8d21c9
TBA
22682020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2269
2270 Turn the 'regs_info' linux target op into a method of
2271 linux_process_target.
2272
2273 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2274 (class linux_process_target) <get_regs_info>: Define.
2275
2276 Update the callers below.
2277
2278 * linux-low.cc (linux_process_target::fetch_registers)
2279 (linux_process_target::store_registers)
2280 * proc-service.cc (gregset_info)
2281
2282 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2283 (x86_linux_regs_info): Turn into ...
2284 (x86_target::get_regs_info): ...this.
2285 (the_low_target): Remove the op field.
2286 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2287 Declare.
2288 (aarch64_regs_info): Turn into ...
2289 (aarch64_target::get_regs_info): ...this.
2290 (the_low_target): Remove the op field.
2291 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2292 (arm_regs_info): Turn into ...
2293 (arm_target::get_regs_info): ...this.
2294 (the_low_target): Remove the op field.
2295 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2296 (bfin_regs_info): Turn into ...
2297 (bfin_target::get_regs_info): ...this.
2298 (the_low_target): Remove the op field.
2299 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2300 (cris_regs_info): Turn into ...
2301 (cris_target::get_regs_info): ...this.
2302 (the_low_target): Remove the op field.
2303 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2304 Declare.
2305 (crisv32_regs_info): Turn into ...
2306 (crisv32_target::get_regs_info): ...this.
2307 (the_low_target): Remove the op field.
2308 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2309 (ia64_regs_info): Turn into ...
2310 (ia64_target::get_regs_info): ...this.
2311 (the_low_target): Remove the op field.
2312 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2313 (m32r_regs_info): Turn into ...
2314 (m32r_target::get_regs_info): ...this.
2315 (the_low_target): Remove the op field.
2316 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2317 (m68k_regs_info): Turn into ...
2318 (m68k_target::get_regs_info): ...this.
2319 (the_low_target): Remove the op field.
2320 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2321 (mips_regs_info): Turn into ...
2322 (mips_target::get_regs_info): ...this.
2323 (the_low_target): Remove the op field.
2324 (get_usrregs_info): Update the call to the op.
2325 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2326 (nios2_regs_info): Turn into ...
2327 (nios2_target::get_regs_info): ...this.
2328 (the_low_target): Remove the op field.
2329 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2330 (ppc_regs_info): Turn into ...
2331 (ppc_target::get_regs_info): ...this.
2332 (the_low_target): Remove the op field.
2333 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2334 (riscv_regs_info): Turn into ...
2335 (riscv_target::get_regs_info): ...this.
2336 (the_low_target): Remove the op field.
2337 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2338 (s390_regs_info): Turn into ...
2339 (s390_target::get_regs_info): ...this.
2340 (the_low_target): Remove the op field.
2341 (s390_collect_ptrace_register)
2342 (s390_supply_ptrace_register)
2343 (s390_fill_gregset): Update the call to the op.
2344 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2345 (sh_regs_info): Turn into ...
2346 (sh_target::get_regs_info): ...this.
2347 (the_low_target): Remove the op field.
2348 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2349 (sparc_regs_info): Turn into ...
2350 (sparc_target::get_regs_info): ...this.
2351 (the_low_target): Remove the op field.
2352 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2353 (tic6x_regs_info): Turn into ...
2354 (tic6x_target::get_regs_info): ...this.
2355 (the_low_target): Remove the op field.
2356 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2357 (tile_regs_info): Turn into ...
2358 (tile_target::get_regs_info): ...this.
2359 (the_low_target): Remove the op field.
2360 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2361 Declare.
2362 (xtensa_regs_info): Turn into ...
2363 (xtensa_target::get_regs_info): ...this.
2364 (the_low_target): Remove the op field.
2365
797bcff5
TBA
23662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2367
2368 Turn the 'arch_setup' linux target op into a method of
2369 linux_process_target.
2370
2371 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2372 (class linux_process_target) <arch_setup_thread>
2373 <low_arch_setup>: New declarations.
2374 * linux-low.cc (linux_arch_setup): Delete.
2375 (linux_arch_setup_thread): Turn into...
2376 (linux_process_target::arch_setup_thread): ... this.
2377
2378 Update the callers below.
2379
2380 (linux_process_target::handle_extended_wait)
2381 (linux_process_target::post_create_inferior)
2382 (linux_process_target::filter_event)
2383
2384 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2385 declaration.
2386 (x86_linux_update_xmltarget): Turn into...
2387 (x86_target::update_xmltarget): ...this.
2388 (x86_linux_process_qsupported): Update the call to
2389 x86_linux_update_xmltarget.
2390 (x86_arch_setup): Turn into ...
2391 (x86_target::low_arch_setup): ...this.
2392 (the_low_target): Remove the op field.
2393 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2394 declaration.
2395 (aarch64_arch_setup): Turn into ...
2396 (aarch64_target::low_arch_setup): ...this.
2397 (the_low_target): Remove the op field.
2398 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2399 declaration.
2400 (arm_arch_setup): Turn into ...
2401 (arm_target::low_arch_setup): ...this.
2402 (the_low_target): Remove the op field.
2403 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2404 declaration.
2405 (bfin_arch_setup): Turn into ...
2406 (bfin_target::low_arch_setup): ...this.
2407 (the_low_target): Remove the op field.
2408 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2409 declaration.
2410 (cris_arch_setup): Turn into ...
2411 (cris_target::low_arch_setup): ...this.
2412 (the_low_target): Remove the op field.
2413 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2414 declaration.
2415 (crisv32_arch_setup): Turn into ...
2416 (crisv32_target::low_arch_setup): ...this.
2417 (the_low_target): Remove the op field.
2418 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2419 declaration.
2420 (ia64_arch_setup): Turn into ...
2421 (ia64_target::low_arch_setup): ...this.
2422 (the_low_target): Remove the op field.
2423 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2424 declaration.
2425 (m32r_arch_setup): Turn into ...
2426 (m32r_target::low_arch_setup): ...this.
2427 (the_low_target): Remove the op field.
2428 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2429 declaration.
2430 (m68k_arch_setup): Turn into ...
2431 (m68k_target::low_arch_setup): ...this.
2432 (the_low_target): Remove the op field.
2433 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2434 declaration.
2435 (mips_arch_setup): Turn into ...
2436 (mips_target::low_arch_setup): ...this.
2437 (the_low_target): Remove the op field.
2438 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2439 declaration.
2440 (nios2_arch_setup): Turn into ...
2441 (nios2_target::low_arch_setup): ...this.
2442 (the_low_target): Remove the op field.
2443 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2444 declaration.
2445 (ppc_arch_setup): Turn into ...
2446 (ppc_target::low_arch_setup): ...this.
2447 (the_low_target): Remove the op field.
2448 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2449 declaration.
2450 (riscv_arch_setup): Turn into ...
2451 (riscv_target::low_arch_setup): ...this.
2452 (the_low_target): Remove the op field.
2453 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2454 declaration.
2455 (s390_arch_setup): Turn into ...
2456 (s390_target::low_arch_setup): ...this.
2457 (the_low_target): Remove the op field.
2458 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2459 declaration.
2460 (sh_arch_setup): Turn into ...
2461 (sh_target::low_arch_setup): ...this.
2462 (the_low_target): Remove the op field.
2463 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2464 declaration.
2465 (sparc_arch_setup): Turn into ...
2466 (sparc_target::low_arch_setup): ...this.
2467 (the_low_target): Remove the op field.
2468 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2469 declaration.
2470 (tic6x_arch_setup): Turn into ...
2471 (tic6x_target::low_arch_setup): ...this.
2472 (the_low_target): Remove the op field.
2473 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2474 declaration.
2475 (tile_arch_setup): Turn into ...
2476 (tile_target::low_arch_setup): ...this.
2477 (the_low_target): Remove the op field.
2478 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2479 declaration.
2480 (xtensa_arch_setup): Turn into ...
2481 (xtensa_target::low_arch_setup): ...this.
2482 (the_low_target): Remove the op field.
2483
ef0478f6
TBA
24842020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2485
2486 * linux-low.h (the_linux_target): New extern declaration.
2487 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2488 'the_target'.
2489 (the_linux_target): Remove.
2490 * linux-x86-low.cc (class x86_target): New class.
2491 (the_x86_target): New static object.
2492 (the_linux_target): Define as pointer to the_x86_target.
2493 * linux-aarch64-low.cc (class aarch64_target): New class.
2494 (the_aarch64_target): New static object.
2495 (the_linux_target): Define as pointer to the_aarch64_target.
2496 * linux-arm-low.cc (class arm_target): New class.
2497 (the_arm_target): New static object.
2498 (the_linux_target): Define as pointer to the_arm_target.
2499 * linux-bfin-low.cc (class bfin_target): New class.
2500 (the_bfin_target): New static object.
2501 (the_linux_target): Define as pointer to the_bfin_target.
2502 * linux-cris-low.cc (class cris_target): New class.
2503 (the_cris_target): New static object.
2504 (the_linux_target): Define as pointer to the_cris_target.
2505 * linux-crisv32-low.cc (class crisv32_target): New class.
2506 (the_crisv32_target): New static object.
2507 (the_linux_target): Define as pointer to the_crisv32_target.
2508 * linux-ia64-low.cc (class ia64_target): New class.
2509 (the_ia64_target): New static object.
2510 (the_linux_target): Define as pointer to the_ia64_target.
2511 * linux-m32r-low.cc (class m32r_target): New class.
2512 (the_m32r_target): New static object.
2513 (the_linux_target): Define as pointer to the_m32r_target.
2514 * linux-m68k-low.cc (class m68k_target): New class.
2515 (the_m68k_target): New static object.
2516 (the_linux_target): Define as pointer to the_m68k_target.
2517 * linux-mips-low.cc (class mips_target): New class.
2518 (the_mips_target): New static object.
2519 (the_linux_target): Define as pointer to the_mips_target.
2520 * linux-nios2-low.cc (class nios2_target): New class.
2521 (the_nios2_target): New static object.
2522 (the_linux_target): Define as pointer to the_nios2_target.
2523 * linux-ppc-low.cc (class ppc_target): New class.
2524 (the_ppc_target): New static object.
2525 (the_linux_target): Define as pointer to the_ppc_target.
2526 * linux-riscv-low.cc (class riscv_target): New class.
2527 (the_riscv_target): New static object.
2528 (the_linux_target): Define as pointer to the_riscv_target.
2529 * linux-s390-low.cc (class s390_target): New class.
2530 (the_s390_target): New static object.
2531 (the_linux_target): Define as pointer to the_s390_target.
2532 * linux-sh-low.cc (class sh_target): New class.
2533 (the_sh_target): New static object.
2534 (the_linux_target): Define as pointer to the_sh_target.
2535 * linux-sparc-low.cc (class sparc_target): New class.
2536 (the_sparc_target): New static object.
2537 (the_linux_target): Define as pointer to the_sparc_target.
2538 * linux-tic6x-low.cc (class tic6x_target): New class.
2539 (the_tic6x_target): New static object.
2540 (the_linux_target): Define as pointer to the_tic6x_target.
2541 * linux-tile-low.cc (class tile_target): New class.
2542 (the_tile_target): New static object.
2543 (the_linux_target): Define as pointer to the_tile_target.
2544 * linux-xtensa-low.cc (class xtensa_target): New class.
2545 (the_xtensa_target): New static object.
2546 (the_linux_target): Define as pointer to the_xtensa_target.
2547
d16f3f6c
TBA
25482020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2549
2550 Turn some static functions in linux-low.cc into private methods of
2551 linux_process_target.
2552
2553 * linux-low.cc (handle_extended_wait): Turn into ...
2554 (linux_process_target::handle_extended_wait): ...this. Call
2555 'mourn' on 'this' object instead of 'the_target'.
2556 (maybe_move_out_of_jump_pad): Turn into...
2557 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2558 (linux_low_filter_event): Turn into...
2559 (linux_process_target::filter_event): ...this.
2560 (linux_wait_for_event_filtered): Turn into...
2561 (linux_process_target::wait_for_event_filtered): ...this.
2562 (linux_wait_for_event): Turn into...
2563 (linux_process_target::wait_for_event): ...this.
2564 (linux_wait_1): Turn into...
2565 (linux_process_target::wait_1): ...this.
2566 (wait_for_sigstop): Turn into...
2567 (linux_process_target::wait_for_sigstop): ...this.
2568 (move_out_of_jump_pad_callback): Turn into...
2569 (linux_process_target::move_out_of_jump_pad): ...this.
2570 (stop_all_lwps): Turn into...
2571 (linux_process_target::stop_all_lwps): ...this.
2572 (start_step_over): Turn into...
2573 (linux_process_target::start_step_over): ...this.
2574 (complete_ongoing_step_over): Turn into...
2575 (linux_process_target::complete_ongoing_step_over): ...this.
2576 (proceed_all_lwps): Turn into...
2577 (linux_process_target::proceed_all_lwps): ...this.
2578 (unstop_all_lwps): Turn into...
2579 (linux_process_target::unstop_all_lwps): ...this.
2580
2581 * linux-low.h (class linux_process_target)
2582 <handle_extended_wait>
2583 <maybe_move_out_of_jump_pad>
2584 filter_event>
2585 <wait_for_event_filtered>
2586 <wait_for_event>
2587 <wait_1>
2588 <wait_for_sigstop>
2589 <move_out_of_jump_pad>
2590 <stop_all_lwps>
2591 <start_step_over>
2592 <complete_ongoing_step_over>
2593 <proceed_all_lwps>
2594 <unstop_all_lwps>: Declare.
2595
2596 Update the callers below.
2597
2598 * linux-low.cc (linux_process_target::attach): Update.
2599 (linux_process_target::stabilize_threads): Ditto.
2600 (linux_process_target::wait): Ditto.
2601
a5863204
TBA
26022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2603
2604 * linux-low.h (struct linux_target_ops): Update the comment for
2605 'cannot_store_register' to return 0 or 1.
2606 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2607 of 2.
2608
c884cc46
SM
26092020-03-20 Simon Marchi <simon.marchi@efficios.com>
2610
2611 * config.in: Re-generate.
2612 * configure: Re-generate.
2613
5a82b8a1
KR
26142020-03-17 Kamil Rytarowski <n54@gmx.com>
2615
2616 * regcache.cc (find_register_by_number): Update.
2617 * tdesc.cc (init_target_desc): Likewise.
2618 * tdesc.h (target_desc::reg_defs): Likewise.
2619
4635ff97
TT
26202020-03-12 Tom Tromey <tom@tromey.com>
2621
2622 * configure: Rebuild.
2623 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2624 (WIN32APILIBS): New subst.
2625 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2626 gdbsupport files.
2627 (gdbsupport/%.o): Remove target.
2628 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2629 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2630 (WIN32APILIBS): New variable.
2631 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2632 (gdbreplay$(EXEEXT)): Likewise.
2633
9a665d62
TT
26342020-03-12 Tom Tromey <tom@tromey.com>
2635
2636 * config.in, configure: Rebuild.
2637 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2638 * acinclude.m4: Include gettext-sister.m4.
2639 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2640 variables.
2641 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2642 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2643
272cd5a3
SM
26442020-03-12 Simon Marchi <simon.marchi@efficios.com>
2645
2646 * acinclude.m4: Update path to selftest.m4.
2647
db6878ac
SM
26482020-03-12 Simon Marchi <simon.marchi@efficios.com>
2649
2650 * configure.ac: Don't source bfd/development.sh, move
2651 GDB_AC_COMMON higher.
2652 * configure: Re-generate.
2653
4d696a5c
SM
26542020-03-12 Simon Marchi <simon.marchi@efficios.com>
2655
2656 * configure: Re-generate.
2657
a0761e34
SM
26582020-03-11 Simon Marchi <simon.marchi@efficios.com>
2659
2660 * configure: Re-generate.
2661
20ea4a60
AB
26622020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2663
2664 * .dir-locals.el: New file.
2665
842806cb
TBA
26662020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2667
2668 * .gitattributes: New file.
2669
442131c1
AB
26702020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2671
2672 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2673 reply into an S reply.
2674 * server.cc (disable_packet_T): New global.
2675 (captured_main): Set new global when appropriate.
2676 * server.h (disable_packet_T): Declare.
2677
dda42c0b
TT
26782020-02-21 Tom Tromey <tom@tromey.com>
2679
2680 * Makefile.in (mostlyclean): New target.
2681
52405d85
TBA
26822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2683
2684 * target.h (struct process_stratum_target): Remove.
2685 (class process_target): Rename to ...
2686 (class process_stratum_target): ... this.
2687 * linux-low.h (class linux_process_target): Derive from
2688 'process_stratum_target'.
2689 * linux-low.cc (linux_target_ops): Remove.
2690 (initialize_low): Set the_target to the singleton instance of
2691 linux_process_target.
2692 * lynx-low.h (class lynx_process_target): Derive from
2693 'process_stratum_target'.
2694 * lynx-low.cc (lynx_target_ops): Remove.
2695 (initialize_low): Set the_target to the singleton instance of
2696 lynx_process_target.
2697 * nto-low.h (class nto_process_target): Derive from
2698 'process_stratum_target'.
2699 * nto-low.cc (nto_target_ops): Remove.
2700 (initialize_low): Set the_target to the singleton instance of
2701 nto_process_target.
2702 * win32-low.h (class win32_process_target): Derive from
2703 'process_stratum_target'.
2704 * win32-low.cc (win32_target_ops): Remove.
2705 (initialize_low): Set the_target to the singleton instance of
2706 win32_process_target.
2707
2708 Replace 'the_target->pt' with 'the_target' in the uses below.
2709
2710 * hostio.cc (hostio_error)
2711 (handle_setfs)
2712 (handle_open)
2713 (handle_unlink)
2714 (handle_readlink)
2715 * linux-aarch32-low.cc (arm_breakpoint_at)
2716 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2717 * linux-arm-low.cc (arm_sigreturn_next_pc)
2718 (arm_get_hwcap)
2719 (arm_get_syscall_trapinfo)
2720 * linux-cris-low.cc (cris_breakpoint_at)
2721 * linux-crisv32-low.cc (cris_breakpoint_at)
2722 * linux-low.cc (handle_extended_wait)
2723 (linux_wait_1)
2724 (linux_read_memory)
2725 (linux_process_target::breakpoint_kind_from_pc)
2726 (linux_get_auxv)
2727 * linux-m32r-low.cc (m32r_breakpoint_at)
2728 * linux-mips-low.cc (mips_breakpoint_at)
2729 * linux-nios2-low.cc (nios2_breakpoint_at)
2730 * linux-ppc-low.cc (ppc_breakpoint_at)
2731 * linux-s390-low.cc (s390_get_hwcap)
2732 * linux-sh-low.cc (sh_breakpoint_at)
2733 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2734 (sparc_store_gregset_from_stack)
2735 (sparc_breakpoint_at)
2736 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2737 * linux-tile-low.cc (tile_breakpoint_at)
2738 * linux-x86-low.cc (x86_breakpoint_at)
2739 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2740 * mem-break.cc (bp_size)
2741 (bp_opcode)
2742 (insert_memory_breakpoint)
2743 (set_raw_breakpoint_at)
2744 (delete_raw_breakpoint)
2745 (z_type_supported)
2746 (uninsert_raw_breakpoint)
2747 (reinsert_raw_breakpoint)
2748 (validate_inserted_breakpoint)
2749 * regcache.cc (regcache_read_pc)
2750 (regcache_write_pc)
2751 * remote-utils.cc (putpkt_binary_1)
2752 (input_interrupt)
2753 (getpkt)
2754 (prepare_resume_reply)
2755 * server.cc (handle_general_set)
2756 (handle_detach)
2757 (handle_qxfer_auxv)
2758 (handle_qxfer_exec_file)
2759 (handle_qxfer_libraries_svr4)
2760 (handle_qxfer_osdata)
2761 (handle_qxfer_siginfo)
2762 (handle_qxfer_fdpic)
2763 (handle_query)
2764 (resume)
2765 (handle_v_requests)
2766 (queue_stop_reply_callback)
2767 (captured_main)
2768 * target.cc (prepare_to_access_memory)
2769 (done_accessing_memory)
2770 (read_inferior_memory)
2771 (target_write_memory)
2772 (target_stop_and_wait)
2773 (target_wait)
2774 (target_mourn_inferior)
2775 (target_continue_no_signal)
2776 (target_continue)
2777 (target_supports_multi_process)
2778 (kill_inferior)
2779 * target.h
2780 (target_create_inferior)
2781 (target_post_create_inferior)
2782 (myattach)
2783 (target_supports_fork_events)
2784 (target_supports_vfork_events)
2785 (target_supports_exec_events)
2786 (target_handle_new_gdb_connection)
2787 (detach_inferior)
2788 (mythread_alive)
2789 (fetch_inferior_registers)
2790 (store_inferior_registers)
2791 (join_inferior)
2792 (target_supports_non_stop)
2793 (target_async)
2794 (target_process_qsupported)
2795 (target_supports_catch_syscall)
2796 (target_get_ipa_tdesc_idx)
2797 (target_supports_tracepoints)
2798 (target_supports_fast_tracepoints)
2799 (target_get_min_fast_tracepoint_insn_len)
2800 (target_thread_stopped)
2801 (target_pause_all)
2802 (target_unpause_all)
2803 (target_stabilize_threads)
2804 (target_install_fast_tracepoint_jump_pad)
2805 (target_emit_ops)
2806 (target_supports_disable_randomization)
2807 (target_supports_agent)
2808 (target_enable_btrace)
2809 (target_disable_btrace)
2810 (target_read_btrace)
2811 (target_read_btrace_conf)
2812 (target_supports_range_stepping)
2813 (target_supports_stopped_by_sw_breakpoint)
2814 (target_stopped_by_sw_breakpoint)
2815 (target_supports_stopped_by_hw_breakpoint)
2816 (target_supports_hardware_single_step)
2817 (target_stopped_by_hw_breakpoint)
2818 (target_breakpoint_kind_from_pc)
2819 (target_breakpoint_kind_from_current_state)
2820 (target_supports_software_single_step)
2821 (target_core_of_thread)
2822 (target_thread_name)
2823 (target_thread_handle)
2824 * win32-low.cc (do_initial_child_stuff)
2825
2826 Rename target op default definitions listed below.
2827
2828 * target.cc (process_target::post_create_inferior): Rename as ...
2829 (process_stratum_target::post_create_inferior): ... this.
2830 (process_target::prepare_to_access_memory): Rename as ...
2831 (process_stratum_target::prepare_to_access_memory): ... this.
2832 (process_target::done_accessing_memory): Rename as ...
2833 (process_stratum_target::done_accessing_memory): ... this.
2834 (process_target::look_up_symbols): Rename as ...
2835 (process_stratum_target::look_up_symbols): ... this.
2836 (process_target::supports_read_auxv): Rename as ...
2837 (process_stratum_target::supports_read_auxv): ... this.
2838 (process_target::read_auxv): Rename as ...
2839 (process_stratum_target::read_auxv): ... this.
2840 (process_target::supports_z_point_type): Rename as ...
2841 (process_stratum_target::supports_z_point_type): ... this.
2842 (process_target::insert_point): Rename as ...
2843 (process_stratum_target::insert_point): ... this.
2844 (process_target::remove_point): Rename as ...
2845 (process_stratum_target::remove_point): ... this.
2846 (process_target::stopped_by_sw_breakpoint): Rename as ...
2847 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2848 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2849 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2850 (process_target::stopped_by_hw_breakpoint): Rename as ...
2851 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2852 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2853 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2854 (process_target::supports_hardware_single_step): Rename as ...
2855 (process_stratum_target::supports_hardware_single_step): ... this.
2856 (process_target::stopped_by_watchpoint): Rename as ...
2857 (process_stratum_target::stopped_by_watchpoint): ... this.
2858 (process_target::stopped_data_address): Rename as ...
2859 (process_stratum_target::stopped_data_address): ... this.
2860 (process_target::supports_read_offsets): Rename as ...
2861 (process_stratum_target::supports_read_offsets): ... this.
2862 (process_target::read_offsets): Rename as ...
2863 (process_stratum_target::read_offsets): ... this.
2864 (process_target::supports_get_tls_address): Rename as ...
2865 (process_stratum_target::supports_get_tls_address): ... this.
2866 (process_target::get_tls_address): Rename as ...
2867 (process_stratum_target::get_tls_address): ... this.
2868 (process_target::hostio_last_error): Rename as ...
2869 (process_stratum_target::hostio_last_error): ... this.
2870 (process_target::supports_qxfer_osdata): Rename as ...
2871 (process_stratum_target::supports_qxfer_osdata): ... this.
2872 (process_target::qxfer_osdata): Rename as ...
2873 (process_stratum_target::qxfer_osdata): ... this.
2874 (process_target::supports_qxfer_siginfo): Rename as ...
2875 (process_stratum_target::supports_qxfer_siginfo): ... this.
2876 (process_target::qxfer_siginfo): Rename as ...
2877 (process_stratum_target::qxfer_siginfo): ... this.
2878 (process_target::supports_non_stop): Rename as ...
2879 (process_stratum_target::supports_non_stop): ... this.
2880 (process_target::async): Rename as ...
2881 (process_stratum_target::async): ... this.
2882 (process_target::start_non_stop): Rename as ...
2883 (process_stratum_target::start_non_stop): ... this.
2884 (process_target::supports_multi_process): Rename as ...
2885 (process_stratum_target::supports_multi_process): ... this.
2886 (process_target::supports_fork_events): Rename as ...
2887 (process_stratum_target::supports_fork_events): ... this.
2888 (process_target::supports_vfork_events): Rename as ...
2889 (process_stratum_target::supports_vfork_events): ... this.
2890 (process_target::supports_exec_events): Rename as ...
2891 (process_stratum_target::supports_exec_events): ... this.
2892 (process_target::handle_new_gdb_connection): Rename as ...
2893 (process_stratum_target::handle_new_gdb_connection): ... this.
2894 (process_target::handle_monitor_command): Rename as ...
2895 (process_stratum_target::handle_monitor_command): ... this.
2896 (process_target::core_of_thread): Rename as ...
2897 (process_stratum_target::core_of_thread): ... this.
2898 (process_target::supports_read_loadmap): Rename as ...
2899 (process_stratum_target::supports_read_loadmap): ... this.
2900 (process_target::read_loadmap): Rename as ...
2901 (process_stratum_target::read_loadmap): ... this.
2902 (process_target::process_qsupported): Rename as ...
2903 (process_stratum_target::process_qsupported): ... this.
2904 (process_target::supports_tracepoints): Rename as ...
2905 (process_stratum_target::supports_tracepoints): ... this.
2906 (process_target::read_pc): Rename as ...
2907 (process_stratum_target::read_pc): ... this.
2908 (process_target::write_pc): Rename as ...
2909 (process_stratum_target::write_pc): ... this.
2910 (process_target::supports_thread_stopped): Rename as ...
2911 (process_stratum_target::supports_thread_stopped): ... this.
2912 (process_target::thread_stopped): Rename as ...
2913 (process_stratum_target::thread_stopped): ... this.
2914 (process_target::supports_get_tib_address): Rename as ...
2915 (process_stratum_target::supports_get_tib_address): ... this.
2916 (process_target::get_tib_address): Rename as ...
2917 (process_stratum_target::get_tib_address): ... this.
2918 (process_target::pause_all): Rename as ...
2919 (process_stratum_target::pause_all): ... this.
2920 (process_target::unpause_all): Rename as ...
2921 (process_stratum_target::unpause_all): ... this.
2922 (process_target::stabilize_threads): Rename as ...
2923 (process_stratum_target::stabilize_threads): ... this.
2924 (process_target::supports_fast_tracepoints): Rename as ...
2925 (process_stratum_target::supports_fast_tracepoints): ... this.
2926 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2927 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2928 (process_target::emit_ops): Rename as ...
2929 (process_stratum_target::emit_ops): ... this.
2930 (process_target::supports_disable_randomization): Rename as ...
2931 (process_stratum_target::supports_disable_randomization): ... this.
2932 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2933 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2934 (process_target::qxfer_libraries_svr4): Rename as ...
2935 (process_stratum_target::qxfer_libraries_svr4): ... this.
2936 (process_target::supports_agent): Rename as ...
2937 (process_stratum_target::supports_agent): ... this.
2938 (process_target::enable_btrace): Rename as ...
2939 (process_stratum_target::enable_btrace): ... this.
2940 (process_target::disable_btrace): Rename as ...
2941 (process_stratum_target::disable_btrace): ... this.
2942 (process_target::read_btrace): Rename as ...
2943 (process_stratum_target::read_btrace): ... this.
2944 (process_target::read_btrace_conf): Rename as ...
2945 (process_stratum_target::read_btrace_conf): ... this.
2946 (process_target::supports_range_stepping): Rename as ...
2947 (process_stratum_target::supports_range_stepping): ... this.
2948 (process_target::supports_pid_to_exec_file): Rename as ...
2949 (process_stratum_target::supports_pid_to_exec_file): ... this.
2950 (process_target::pid_to_exec_file): Rename as ...
2951 (process_stratum_target::pid_to_exec_file): ... this.
2952 (process_target::supports_multifs): Rename as ...
2953 (process_stratum_target::supports_multifs): ... this.
2954 (process_target::multifs_open): Rename as ...
2955 (process_stratum_target::multifs_open): ... this.
2956 (process_target::multifs_unlink): Rename as ...
2957 (process_stratum_target::multifs_unlink): ... this.
2958 (process_target::multifs_readlink): Rename as ...
2959 (process_stratum_target::multifs_readlink): ... this.
2960 (process_target::breakpoint_kind_from_pc): Rename as ...
2961 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2962 (process_target::breakpoint_kind_from_current_state): Rename as ...
2963 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2964 (process_target::thread_name): Rename as ...
2965 (process_stratum_target::thread_name): ... this.
2966 (process_target::thread_handle): Rename as ...
2967 (process_stratum_target::thread_handle): ... this.
2968 (process_target::supports_software_single_step): Rename as ...
2969 (process_stratum_target::supports_software_single_step): ... this.
2970 (process_target::supports_catch_syscall): Rename as ...
2971 (process_stratum_target::supports_catch_syscall): ... this.
2972 (process_target::get_ipa_tdesc_idx): Rename as ...
2973 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2974
478f9adf
PA
29752020-02-20 Pedro Alves <palves@redhat.com>
2976
2977 * target.cc (set_target_ops): Simply copy the given target pointer
2978 instead of creating a copy of the pointed object.
2979
d633e831
TBA
29802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2981
2982 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2983 of process_target.
2984
2985 * target.h (struct process_stratum_target): Remove the target op.
2986 (class process_target): Add the target op.
2987 (target_get_ipa_tdesc_idx): Update the macro.
2988 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2989
2990 Update the derived classes and callers below.
2991
2992 * linux-low.cc (linux_target_ops): Update.
2993 (linux_get_ipa_tdesc_idx): Turn into ...
2994 (linux_process_target::get_ipa_tdesc_idx): ... this.
2995 * linux-low.h (class linux_process_target): Update.
2996 * lynx-low.cc (lynx_target_ops): Update.
2997 * nto-low.cc (nto_target_ops): Update.
2998 * win32-low.cc (win32_target_ops): Update.
2999
bc8d3ae4
TBA
30002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3001
3002 Turn process_stratum_target's supports_catch_syscall op into a
3003 method of process_target.
3004
3005 * target.h (struct process_stratum_target): Remove the target op.
3006 (class process_target): Add the target op.
3007 (target_supports_catch_syscall): Update the macro.
3008 * target.cc (process_target::supports_catch_syscall): Define.
3009
3010 Update the derived classes and callers below.
3011
3012 * linux-low.cc (linux_target_ops): Update.
3013 (linux_supports_catch_syscall): Turn into ...
3014 (linux_process_target::supports_catch_syscall): ... this.
3015 * linux-low.h (class linux_process_target): Update.
3016 * lynx-low.cc (lynx_target_ops): Update.
3017 * nto-low.cc (nto_target_ops): Update.
3018 * win32-low.cc (win32_target_ops): Update.
3019
5303a34f
TBA
30202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3021
3022 Turn process_stratum_target's supports_software_single_step op
3023 into a method of process_target.
3024
3025 * target.h (struct process_stratum_target): Remove the target op.
3026 (class process_target): Add the target op.
3027 (target_supports_software_single_step): Update the macro.
3028 * target.cc (process_target::supports_software_single_step): Define.
3029
3030 Update the derived classes and callers below.
3031
3032 * linux-low.cc (linux_target_ops): Update.
3033 (linux_supports_software_single_step): Turn into ...
3034 (linux_process_target::supports_software_single_step): ... this.
3035 * linux-low.h (class linux_process_target): Update.
3036 * lynx-low.cc (lynx_target_ops): Update.
3037 * nto-low.cc (nto_target_ops): Update.
3038 * win32-low.cc (win32_target_ops): Update.
3039
7f63b89b
TBA
30402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3041
3042 Turn process_stratum_target's thread_name and thread_handle ops
3043 into methods of process_target.
3044
3045 * target.h (struct process_stratum_target): Remove the target ops.
3046 (class process_target): Add the target ops.
3047 (target_thread_name): Update the macro.
3048 (target_thread_handle): Update the macro.
3049 * target.cc (process_target::thread_name): Define.
3050 (process_target::thread_handle): Define.
3051
3052 Update the derived classes and callers below.
3053
3054 * linux-low.cc (linux_target_ops): Update.
3055 (linux_process_target::thread_name): Define.
3056 (linux_process_target::thread_handle): Define.
3057 * linux-low.h (class linux_process_target): Update.
3058 * lynx-low.cc (lynx_target_ops): Update.
3059 * nto-low.cc (nto_target_ops): Update.
3060 * win32-low.cc (win32_target_ops): Update.
3061
d367006f
TBA
30622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3063
3064 Turn process_stratum_target's breakpoint_kind_from_pc,
3065 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3066 ops into methods of process_target.
3067
3068 * target.h (struct process_stratum_target): Remove the target op.
3069 (class process_target): Add the target op.
3070 (target_breakpoint_kind_from_pc): Update the macro.
3071 (target_breakpoint_kind_from_current_state): Update the macro.
3072 (default_breakpoint_kind_from_pc): Remove declaration.
3073 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3074 (process_target::breakpoint_kind_from_pc): ... this.
3075 (process_target::breakpoint_kind_from_current_state): Define.
3076
3077 Update the derived classes and callers below.
3078
3079 * mem-break.cc (bp_size): Update.
3080 (bp_opcode): Update.
3081 * linux-low.cc (linux_target_ops): Update.
3082 (linux_wait_1): Update.
3083 (linux_breakpoint_kind_from_pc): Turn into ...
3084 (linux_process_target::breakpoint_kind_from_pc): ... this.
3085 (linux_sw_breakpoint_from_kind): Turn into ...
3086 (linux_process_target::sw_breakpoint_from_kind): ... this.
3087 (linux_breakpoint_kind_from_current_state): Turn into ...
3088 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3089 * linux-low.h (class linux_process_target): Update.
3090 * lynx-low.cc (lynx_target_ops): Update.
3091 (lynx_process_target::sw_breakpoint_from_kind): Define.
3092 * lynx-low.h (class lynx_process_target): Update.
3093 * nto-low.cc (nto_target_ops): Update.
3094 (nto_sw_breakpoint_from_kind): Turn into ...
3095 (nto_process_target::sw_breakpoint_from_kind): ... this.
3096 * nto-low.h (class nto_process_target): Update.
3097 * win32-low.cc (win32_target_ops): Update.
3098 (win32_sw_breakpoint_from_kind): Turn into ...
3099 (win32_process_target::sw_breakpoint_from_kind): ... this.
3100 * win32-low.h (class win32_process_target): Update.
3101
c9b7b804
TBA
31022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3103
3104 Turn process_stratum_target's multifs_open, multifs_readlink,
3105 multifs_unlink ops into methods of process_target.
3106
3107 * target.h (struct process_stratum_target): Remove the target ops.
3108 (class process_target): Add the target ops. Also add
3109 'supports_multifs'.
3110 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3111 "sys/stat.h".
3112 (process_target::supports_multifs): Define.
3113 (process_target::multifs_open): Define.
3114 (process_target::multifs_readlink): Define.
3115 (process_target::multifs_unlink): Define.
3116
3117 Update the derived classes and callers below.
3118
3119 * hostio.cc (handle_setfs): Update.
3120 (handle_open): Update.
3121 (handle_unlink): Update.
3122 (handle_readlink): Update.
3123 * linux-low.cc (linux_target_ops): Update.
3124 (linux_process_target::supports_multifs): Define.
3125 (linux_process_target::multifs_open): Define.
3126 (linux_process_target::multifs_readlink): Define.
3127 (linux_process_target::multifs_unlink): Define.
3128 * linux-low.h (class linux_process_target): Update.
3129 * lynx-low.cc (lynx_target_ops): Update.
3130 * nto-low.cc (nto_target_ops): Update.
3131 * win32-low.cc (win32_target_ops): Update.
3132
8247b823
TBA
31332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3134
3135 Turn process_stratum_target's pid_to_exec_file op into a method
3136 of process_target.
3137
3138 * target.h (struct process_stratum_target): Remove the target op.
3139 (class process_target): Add the target op. Also add
3140 'supports_pid_to_exec_file'.
3141 * target.cc (process_target::pid_to_exec_file): Define.
3142 (process_target::supports_pid_to_exec_file): Define.
3143
3144 Update the derived classes and callers below.
3145
3146 * server.cc (handle_qxfer_exec_file): Update.
3147 (handle_query): Update.
3148 * linux-low.cc (linux_target_ops): Update.
3149 (linux_process_target::supports_pid_to_exec_file): Define.
3150 (linux_process_target::pid_to_exec_file): Define.
3151 * linux-low.h (class linux_process_target): Update.
3152 * lynx-low.cc (lynx_target_ops): Update.
3153 * nto-low.cc (nto_target_ops): Update.
3154 * win32-low.cc (win32_target_ops): Update.
3155
2526e0cd
TBA
31562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3157
3158 Turn process_stratum_target's supports_range_stepping op into a
3159 method of process_target.
3160
3161 * target.h (struct process_stratum_target): Remove the target op.
3162 (class process_target): Add the target op.
3163 (target_supports_range_stepping): Update the macro.
3164 * target.cc (process_target::supports_range_stepping): Define.
3165
3166 Update the derived classes and callers below.
3167
3168 * linux-low.cc (linux_target_ops): Update.
3169 (linux_supports_range_stepping): Turn into ...
3170 (linux_process_target::supports_range_stepping): ... 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
79597bdd
TBA
31762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3177
3178 Turn process_stratum_target's btrace-related ops (enable_btrace,
3179 disable_btrace, read_btrace, read_btrace_conf) into methods of
3180 process_target.
3181
3182 * target.h (struct process_stratum_target): Remove the target ops.
3183 (class process_target): Add the target ops.
3184 (target_enable_btrace): Update.
3185 (target_disable_btrace): Update.
3186 (target_read_btrace): Update.
3187 (target_read_btrace_conf): Update.
3188 * target.cc (process_target::enable_btrace): Define.
3189 (process_target::disable_btrace): Define.
3190 (process_target::read_btrace): Define.
3191 (process_target::read_btrace_conf): Define.
3192
3193 Update the derived classes and callers below.
3194
3195 * linux-low.cc (linux_target_ops): Update.
3196 (linux_process_target:enable_btrace): Define as a wrapper around
3197 linux_enable_btrace.
3198 (linux_low_disable_btrace): Turn into ...
3199 (linux_process_target::disable_btrace): ... this.
3200 (linux_low_read_btrace): Turn into ...
3201 (linux_process_target::read_btrace): ... this.
3202 (linux_low_btrace_conf): Turn into ...
3203 (linux_process_target::read_btrace_conf): ... this.
3204 * linux-low.h (class linux_process_target): Update.
3205 * lynx-low.cc (lynx_target_ops): Update.
3206 * nto-low.cc (nto_target_ops): Update.
3207 * win32-low.cc (win32_target_ops): Update.
3208
c0245cb9
TBA
32092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3210
3211 Turn process_stratum_target's supports_agent op into a method of
3212 process_target.
3213
3214 * target.h (struct process_stratum_target): Remove the target op.
3215 (class process_target): Add the target op.
3216 (target_supports_agent): Update the macro.
3217 * target.cc (process_target::supports_agent): Define.
3218
3219 Update the derived classes and callers below.
3220
3221 * linux-low.cc (linux_target_ops): Update.
3222 (linux_supports_agent): Turn into ...
3223 (linux_process_target::supports_agent): ... this.
3224 * linux-low.h (class linux_process_target): Update.
3225 * lynx-low.cc (lynx_target_ops): Update.
3226 * nto-low.cc (nto_target_ops): Update.
3227 * win32-low.cc (win32_target_ops): Update.
3228
974387bb
TBA
32292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3230
3231 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3232 method of process_target.
3233
3234 * target.h (struct process_stratum_target): Remove the target op.
3235 (class process_target): Add the target op. Also add
3236 'supports_qxfer_libraries_svr4'.
3237 * target.cc (process_target::qxfer_libraries_svr4): Define.
3238 (process_target::supports_qxfer_libraries_svr4): Define.
3239
3240 Update the derived classes and callers below.
3241
3242 * server.cc (handle_qxfer_libraries_svr4): Update.
3243 (handle_query): Update.
3244 * linux-low.cc (linux_target_ops): Update.
3245 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3246 (linux_qxfer_libraries_svr4): Turn into ...
3247 (linux_process_target::qxfer_libraries_svr4): ... this.
3248 * linux-low.h (class linux_process_target): Update.
3249 * lynx-low.cc (lynx_target_ops): Update.
3250 * nto-low.cc (nto_target_ops): Update.
3251 * win32-low.cc (win32_target_ops): Update.
3252
c756403b
TBA
32532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3254
3255 Turn process_stratum_target's supports_disable_randomization op
3256 into a method of process_target.
3257
3258 * target.h (struct process_stratum_target): Remove the target op.
3259 (class process_target): Add the target op.
3260 (target_supports_disable_randomization): Update the macro.
3261 * target.cc (process_target::supports_disable_randomization): Define.
3262
3263 Update the derived classes and callers below.
3264
3265 * linux-low.cc (linux_target_ops): Update.
3266 (linux_supports_disable_randomization): Turn into ...
3267 (linux_process_target::supports_disable_randomization): ... this.
3268 * linux-low.h (class linux_process_target): Update.
3269 * lynx-low.cc (lynx_target_ops): Update.
3270 * nto-low.cc (nto_target_ops): Update.
3271 * win32-low.cc (win32_target_ops): Update.
3272
345dafad
TBA
32732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3274
3275 Turn process_stratum_target's emit_ops op into a method of
3276 process_target.
3277
3278 * target.h (struct process_stratum_target): Remove the target op.
3279 (class process_target): Add the target op.
3280 (target_emit_ops): Update the macro.
3281 * target.cc (process_target::emit_ops): Define.
3282
3283 Update the derived classes and callers below.
3284
3285 * linux-low.cc (linux_target_ops): Update.
3286 (linux_emit_ops): Turn into ...
3287 (linux_process_target::emit_ops): ... this.
3288 * linux-low.h (class linux_process_target): Update.
3289 * lynx-low.cc (lynx_target_ops): Update.
3290 * nto-low.cc (nto_target_ops): Update.
3291 * win32-low.cc (win32_target_ops): Update.
3292
c23c9391
TBA
32932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3294
3295 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3296 and get_min_fast_tracepoint_insn_len ops into methods of
3297 process_target.
3298
3299 * target.h (struct process_stratum_target): Remove the target ops.
3300 (class process_target): Add the target ops. Also add
3301 'supports_fast_tracepoints'.
3302 (target_supports_fast_tracepoints): Update the macro.
3303 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3304 (install_fast_tracepoint_jump_pad): Update and rename the macro
3305 to ...
3306 (target_install_fast_tracepoint_jump_pad): ... this.
3307 * target.cc (process_target::supports_fast_tracepoints): Define.
3308 (process_target::install_fast_tracepoint_jump_pad): Define.
3309 (process_target::get_min_fast_tracepoint_insn_len): Define.
3310
3311 Update the derived classes and callers below.
3312
3313 * tracepoint.cc (install_fast_tracepoint): Update.
3314 * linux-low.cc (linux_target_ops): Update.
3315 (linux_process_target::supports_fast_tracepoints): Define.
3316 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3317 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3318 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3319 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3320 * linux-low.h (class linux_process_target): Update.
3321 * lynx-low.cc (lynx_target_ops): Update.
3322 * nto-low.cc (nto_target_ops): Update.
3323 * win32-low.cc (win32_target_ops): Update.
3324
5c9eb2f2
TBA
33252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3326
3327 Turn process_stratum_target's stabilize_threads op into a
3328 method of process_target.
3329
3330 * target.h (struct process_stratum_target): Remove the target op.
3331 (class process_target): Add the target op.
3332 (target_stabilize_threads): Update the macro.
3333 * target.cc (process_target::stabilize_threads): Define.
3334
3335 Update the derived classes and callers below.
3336
3337 * server.cc (handle_status): Update.
3338 * tracepoint.cc (cmd_qtdp): Update.
3339 (cmd_qtstart): Update.
3340 * linux-low.cc (linux_target_ops): Update.
3341 (linux_stabilize_threads): Turn into ...
3342 (linux_process_target::stabilize_threads): ... this.
3343 (linux_wait_1): Update.
3344 * linux-low.h (class linux_process_target): Update.
3345 * lynx-low.cc (lynx_target_ops): Update.
3346 * nto-low.cc (nto_target_ops): Update.
3347 * win32-low.cc (win32_target_ops): Update.
3348
29e8dc09
TBA
33492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3350
3351 Turn process_stratum_target's pause_all and unpause_all ops
3352 into methods of process_target.
3353
3354 * target.h (struct process_stratum_target): Remove the target ops.
3355 (class process_target): Add the target ops.
3356 (pause_all): Update the macro and rename to...
3357 (target_pause_all): ... this.
3358 (unpause_all): Update the macro and rename to...
3359 (target_unpause_all): ... this.
3360 * target.cc (process_target::pause_all): Define.
3361 (process_target::unpause_all): Define.
3362
3363 Update the derived classes and callers below.
3364
3365 * server.cc (handle_status): Update.
3366 * tracepoint.cc (clear_installed_tracepoints): Update.
3367 (cmd_qtdp): Update.
3368 (cmd_qtstart): Update.
3369 (stop_tracing): Update.
3370 (cmd_qtstatus): Update.
3371 (upload_fast_traceframes): Update.
3372 (run_inferior_command): Update.
3373 * linux-low.cc (linux_target_ops): Update.
3374 (linux_pause_all): Turn into ...
3375 (linux_process_target::pause_all): ... this.
3376 (linux_unpause_all): Turn into ...
3377 (linux_process_target::unpause_all): ... this.
3378 (linux_process_target::prepare_to_access_memory): Update.
3379 (linux_process_target::done_accessing_memory): Update.
3380 * linux-low.h (class linux_process_target): Update.
3381 * lynx-low.cc (lynx_target_ops): Update.
3382 * nto-low.cc (nto_target_ops): Update.
3383 * win32-low.cc (win32_target_ops): Update.
3384
4e2e869c
TBA
33852020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3386
3387 Turn process_stratum_target's get_tib_address op into a method of
3388 process_target.
3389
3390 * target.h (struct process_stratum_target): Remove the target op.
3391 (class process_target): Add the target op. Also add
3392 'supports_get_tib_address'.
3393 * target.cc (process_target::get_tib_address): Define.
3394 (process_target::supports_get_tib_address): Define.
3395
3396 Update the derived classes and callers below.
3397
3398 * server.cc (handle_query): Update.
3399 * linux-low.cc (win32_target_ops): Update.
3400 * lynx-low.cc (lynx_target_ops): Update.
3401 * nto-low.cc (nto_target_ops): Update.
3402 * win32-low.cc (win32_target_ops): Update.
3403 (win32_process_target::supports_get_tib_address): Define.
3404 (win32_get_tib_address): Turn into ...
3405 (win32_process_target::get_tib_address): ... this.
3406 * win32-low.h (class win32_process_target): Update.
3407
68119632
TBA
34082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3409
3410 Turn process_stratum_target's thread_stopped op into a method of
3411 process_target.
3412
3413 * target.h (struct process_stratum_target): Remove the target op.
3414 (class process_target): Add the target op. Also add
3415 'supports_thread_stopped'.
3416 (target_thread_stopped): Update the macro.
3417 * target.cc (process_target::thread_stopped): Define.
3418 (process_target::supports_thread_stopped): Define.
3419 (prepare_to_access_memory): Update.
3420
3421 Update the derived classes and callers below.
3422
3423 * server.cc (queue_stop_reply_callback): Update.
3424 * linux-low.cc (linux_target_ops): Update.
3425 (linux_process_target::supports_thread_stopped): Define.
3426 (linux_thread_stopped): Turn into ...
3427 (linux_process_target::thread_stopped): ... this.
3428 * linux-low.h (class linux_process_target): Update.
3429 * lynx-low.cc (lynx_target_ops): Update.
3430 * nto-low.cc (nto_target_ops): Update.
3431 * win32-low.cc (win32_target_ops): Update.
3432
770d8f6a
TBA
34332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3434
3435 Turn process_stratum_target's read_pc and write_pc ops into
3436 methods of process_target.
3437
3438 * target.h (struct process_stratum_target): Remove the target ops.
3439 (class process_target): Add the target ops.
3440 * target.cc (process_target::read_pc): Define.
3441 (process_target::write_pc): Define.
3442
3443 Update the derived classes and callers below.
3444
3445 * regcache.cc (regcache_read_pc): Update.
3446 (regcache_write_pc): Update.
3447 * linux-low.cc (linux_target_ops): Update.
3448 (linux_read_pc): Turn into ...
3449 (linux_process_target::read_pc): ... this.
3450 (linux_write_pc): Turn into ...
3451 (linux_process_target::write_pc): ... this.
3452 * linux-low.h (class linux_process_target): Update.
3453 * lynx-low.cc (lynx_target_ops): Update.
3454 * nto-low.cc (nto_target_ops): Update.
3455 * win32-low.cc (win32_target_ops): Update.
3456
290732bf
TBA
34572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3458
3459 Turn process_stratum_target's supports_tracepoints op into a
3460 method of process_target.
3461
3462 * target.h (struct process_stratum_target): Remove the target op.
3463 (class process_target): Add the target op.
3464 (target_supports_tracepoints): Update the macro.
3465 * target.cc (process_target::supports_tracepoints): Define.
3466
3467 Update the derived classes and callers below.
3468
3469 * linux-low.cc (linux_target_ops): Update.
3470 (linux_supports_tracepoints): Turn into ...
3471 (linux_process_target::supports_tracepoints): ... this.
3472 * linux-low.h (class linux_process_target): Update.
3473 * lynx-low.cc (lynx_target_ops): Update.
3474 * nto-low.cc (nto_target_ops): Update.
3475 * win32-low.cc (win32_target_ops): Update.
3476
0df28b1b
TBA
34772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3478
3479 Turn process_stratum_target's process_qsupported op into a method
3480 of process_target.
3481
3482 * target.h (struct process_stratum_target): Remove the target op.
3483 (class process_target): Add the target op.
3484 (target_process_qsupported): Update the macro.
3485 * target.cc (process_target::process_qsupported): Define.
3486
3487 Update the derived classes and callers below.
3488
3489 * linux-low.cc (linux_target_ops): Update.
3490 (linux_process_qsupported): Turn into ...
3491 (linux_process_target::process_qsupported): ... this.
3492 * linux-low.h (class linux_process_target): Update.
3493 * lynx-low.cc (lynx_target_ops): Update.
3494 * nto-low.cc (nto_target_ops): Update.
3495 * win32-low.cc (win32_target_ops): Update.
3496
9da41fda
TBA
34972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3498
3499 Turn process_stratum_target's read_loadmap op into a method of
3500 process_target.
3501
3502 * target.h (struct process_stratum_target): Remove the target op.
3503 (class process_target): Add the target op. Also add
3504 'supports_read_loadmap'.
3505 * target.cc (process_target::read_loadmap): Define.
3506 (process_target::supports_read_loadmap): Define.
3507
3508 Update the derived classes and callers below.
3509
3510 * server.cc (handle_qxfer_fdpic): Update.
3511 (handle_query): Update.
3512 * linux-low.cc (linux_target_ops): Update.
3513 (linux_process_target::supports_read_loadmap): Define.
3514 (linux_read_loadmap): Turn into ...
3515 (linux_process_target::read_loadmap): ... this.
3516 * linux-low.h (class linux_process_target): Update.
3517 * lynx-low.cc (lynx_target_ops): Update.
3518 * nto-low.cc (nto_target_ops): Update.
3519 * win32-low.cc (win32_target_ops): Update.
3520
95a45fc1
TBA
35212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3522
3523 Turn process_stratum_target's core_of_thread op into a method of
3524 process_target.
3525
3526 * target.h (struct process_stratum_target): Remove the target op.
3527 (class process_target): Add the target op.
3528 (target_core_of_thread): Update the macro.
3529 * target.cc (process_target::core_of_thread): Define.
3530
3531 Update the derived classes and callers below.
3532
3533 * linux-low.cc (linux_target_ops): Update.
3534 (linux_process_target::core_of_thread): Define.
3535 * linux-low.h (class linux_process_target): Update.
3536 * lynx-low.cc (lynx_target_ops): Update.
3537 * nto-low.cc (nto_target_ops): Update.
3538 * win32-low.cc (win32_target_ops): Update.
3539
55cf3021
TBA
35402020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3541
3542 Turn process_stratum_target's handle_monitor_command op into a
3543 method of process_target.
3544
3545 * target.h (struct process_stratum_target): Remove the target op.
3546 (class process_target): Add the target op.
3547 (target_handle_monitor_command): Update the macro.
3548 * target.cc (process_target::handle_monitor_command): Define.
3549
3550 Update the derived classes and callers below.
3551
3552 * server.cc (handle_query): Update.
3553 * linux-low.cc (linux_target_ops): Update.
3554 (linux_process_target::handle_monitor_command): Define.
3555 * linux-low.h (class linux_process_target): Update.
3556 * lynx-low.cc (lynx_target_ops): Update.
3557 * nto-low.cc (nto_target_ops): Update.
3558 * win32-low.cc (win32_target_ops): Update.
3559
fb00dfce
TBA
35602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3561
3562 Turn process_stratum_target's handle_new_gdb_connection op into a
3563 method of process_target.
3564
3565 * target.h (struct process_stratum_target): Remove the target op.
3566 (class process_target): Add the target op.
3567 (target_handle_new_gdb_connection): Update the macro.
3568 * target.cc (process_target::handle_new_gdb_connection): Define.
3569
3570 Update the derived classes and callers below.
3571
3572 * linux-low.cc (linux_target_ops): Update.
3573 (linux_handle_new_gdb_connection): Turn into ...
3574 (linux_process_target::handle_new_gdb_connection): ... this.
3575 * linux-low.h (class linux_process_target): Update.
3576 * lynx-low.cc (lynx_target_ops): Update.
3577 * nto-low.cc (nto_target_ops): Update.
3578 * win32-low.cc (win32_target_ops): Update.
3579
9690a72a
TBA
35802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3581
3582 Turn process_stratum_target's supports_fork_events,
3583 supports_vfork_events, and supports_exec_events ops into methods
3584 of process_target.
3585
3586 * target.h (struct process_stratum_target): Remove the target ops.
3587 (class process_target): Add the target ops.
3588 (target_supports_fork_events): Update the macro.
3589 (target_supports_vfork_events): Update the macro.
3590 (target_supports_exec_events): Update the macro.
3591 * target.cc (process_target::supports_fork_events): Define.
3592 (process_target::supports_vfork_events): Define.
3593 (process_target::supports_exec_events): Define.
3594
3595 Update the derived classes and callers below.
3596
3597 * linux-low.cc (linux_target_ops): Update.
3598 (linux_supports_fork_events): Turn into ...
3599 (linux_process_target::supports_fork_events): ... this.
3600 (linux_supports_vfork_events): Turn into ...
3601 (linux_process_target::supports_vfork_events): ... this.
3602 (linux_supports_exec_events): Turn into ...
3603 (linux_process_target::supports_exec_events): ... this.
3604 * linux-low.h (class linux_process_target): Update.
3605 * lynx-low.cc (lynx_target_ops): Update.
3606 * nto-low.cc (nto_target_ops): Update.
3607 * win32-low.cc (win32_target_ops): Update.
3608
652aef77
TBA
36092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3610
3611 Turn process_stratum_target's supports_multi_process op into a
3612 method of process_target.
3613
3614 * target.h (struct process_stratum_target): Remove the target op.
3615 (class process_target): Add the target op.
3616 * target.cc (process_target::supports_multi_process): Define.
3617 (target_supports_multi_process): Update.
3618
3619 Update the derived classes and callers below.
3620
3621 * linux-low.cc (linux_target_ops): Update.
3622 (linux_supports_multi_process): Turn into ...
3623 (linux_process_target::supports_multi_process): ... 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
0dc587d4
TBA
36292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3630
3631 Turn process_stratum_target's supports_non_stop, async, and
3632 start_non_stop 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_supports_non_stop): Update the macro.
3637 (target_async): Update the macro.
3638 (start_non_stop): Remove declaration.
3639 * target.cc (process_target::supports_non_stop): Define.
3640 (process_target::async): Define.
3641 (process_target::start_non_stop): Define.
3642 (start_non_stop): Remove.
3643
3644 Update the derived classes and callers below.
3645
3646 * server.cc (handle_qxfer_siginfo): Update.
3647 (handle_query): Update.
3648 * linux-low.cc (linux_target_ops): Update.
3649 (linux_supports_non_stop): Turn into ...
3650 (linux_process_target::supports_non_stop): ... this.
3651 (linux_async): Turn into ...
3652 (linux_process_target::async): ... this.
3653 (linux_start_non_stop): Turn into ...
3654 (linux_process_target::start_non_stop): ... this.
3655 * linux-low.h (class linux_process_target): Update.
3656 * lynx-low.cc (lynx_target_ops): Update.
3657 * nto-low.cc (nto_target_ops): Update.
3658 (nto_supports_non_stop): Remove; rely on the default behavior
3659 instead.
3660 * win32-low.cc (win32_target_ops): Update.
3661
d7abedf7
TBA
36622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3663
3664 Turn process_stratum_target's qxfer_siginfo op into a method of
3665 process_target.
3666
3667 * target.h (struct process_stratum_target): Remove the target op.
3668 (class process_target): Add the target op. Also add
3669 'supports_qxfer_siginfo'.
3670 * target.cc (process_target::qxfer_siginfo): Define.
3671 (process_target::supports_qxfer_siginfo): Define.
3672
3673 Update the derived classes and callers below.
3674
3675 * server.cc (handle_qxfer_siginfo): Update.
3676 (handle_query): Update.
3677 * linux-low.cc (linux_target_ops): Update.
3678 (linux_process_target::supports_qxfer_siginfo): Define.
3679 (linux_xfer_siginfo): Turn into ...
3680 (linux_process_target::qxfer_siginfo): ... this.
3681 * linux-low.h (class linux_process_target): Update.
3682 * lynx-low.cc (lynx_target_ops): Update.
3683 * nto-low.cc (nto_target_ops): Update.
3684 * win32-low.cc (win32_target_ops): Update.
3685
2d0795ee
TBA
36862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3687
3688 Turn process_stratum_target's qxfer_osdata op into a method of
3689 process_target.
3690
3691 * target.h (struct process_stratum_target): Remove the target op.
3692 (class process_target): Add the target op. Also add
3693 'supports_qxfer_osdata'.
3694 * target.cc (process_target::qxfer_osdata): Define.
3695 (process_target::supports_qxfer_osdata): Define.
3696
3697 Update the derived classes and callers below.
3698
3699 * server.cc (handle_qxfer_osdata): Update.
3700 (handle_query): Update.
3701 * linux-low.cc (linux_target_ops): Update.
3702 (linux_process_target::supports_qxfer_osdata): Define.
3703 (linux_qxfer_osdata): Turn into ...
3704 (linux_process_target::qxfer_osdata): ... this.
3705 * linux-low.h (class linux_process_target): Update.
3706 * lynx-low.cc (lynx_target_ops): Update.
3707 * nto-low.cc (nto_target_ops): Update.
3708 * win32-low.cc (win32_target_ops): Update.
3709
ea06bbaa
TBA
37102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3711
3712 Turn process_stratum_target's hostio_last_error op into a
3713 method of process_target.
3714
3715 * target.h (struct process_stratum_target): Remove the target op.
3716 (class process_target): Add the target op.
3717 * target.cc: Add "hostio.h" to includes.
3718 (process_target::hostio_last_error): Define.
3719
3720 Update the derived classes and callers below.
3721
3722 * hostio.cc (hostio_error): Update.
3723 * linux-low.cc: Remove "hostio.h" from includes.
3724 (linux_target_ops): Update.
3725 * lynx-low.cc (lynx_target_ops): Update.
3726 * nto-low.cc (nto_target_ops): Update.
3727 * win32-low.h (class win32_process_target): Update.
3728 * win32-low.cc (win32_target_ops): Update.
3729 (wince_hostio_last_error): Turn into ...
3730 (win32_process_target::hostio_last_error): ... this.
3731
6e3fd7e9
TBA
37322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3733
3734 Turn process_stratum_target's get_tls_address op into a method of
3735 process_target.
3736
3737 * target.h (struct process_stratum_target): Remove the target op.
3738 (class process_target): Add the target op. Also add
3739 'supports_get_tls_address'.
3740 * target.cc (process_target::get_tls_address): Define.
3741 (process_target::supports_get_tls_address): Define.
3742
3743 Update the derived classes and callers below.
3744
3745 * server.cc (handle_query): Update.
3746 * linux-low.cc (linux_target_ops): Update.
3747 (linux_process_target::supports_get_tls_address): Define.
3748 (linux_process_target::get_tls_address): Define.
3749 * linux-low.h (class linux_process_target): Update.
3750 * lynx-low.cc (lynx_target_ops): Update.
3751 * nto-low.cc (nto_target_ops): Update.
3752 * win32-low.cc (win32_target_ops): Update.
3753
5203ae1e
TBA
37542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3755
3756 Turn process_stratum_target's read_offsets op into a method of
3757 process_target.
3758
3759 * target.h (struct process_stratum_target): Remove the target op.
3760 (class process_target): Add the target op. Also add
3761 'supports_read_offsets'.
3762 * target.cc (process_target::read_offsets): Define.
3763 (process_target::supports_read_offsets): Define.
3764
3765 Update the derived classes and callers below.
3766
3767 * server.cc (handle_query): Update.
3768 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3769 (linux_target_ops): Update.
3770 (linux_process_target::supports_read_offsets): Define.
3771 (linux_read_offsets): Turn into ...
3772 (linux_process_target::read_offsets): ... this.
3773 * linux-low.h (class linux_process_target): Update.
3774 * lynx-low.cc (lynx_target_ops): Update.
3775 * nto-low.cc (nto_target_ops): Update.
3776 * win32-low.cc (win32_target_ops): Update.
3777
6eeb5c55
TBA
37782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3779
3780 Turn process_stratum_target's stopped_by_watchpoint and
3781 stopped_data_address ops into methods of process_target.
3782
3783 * target.h (struct process_stratum_target): Remove the target ops.
3784 (class process_target): Add the target ops.
3785 * target.cc (process_target::stopped_by_watchpoint): Define.
3786 (process_target::stopped_data_address): Define.
3787
3788 Update the derived classes and callers below.
3789
3790 * remote-utils.cc (prepare_resume_reply): Update.
3791 * linux-low.cc (linux_target_ops): Update.
3792 (linux_stopped_by_watchpoint): Turn into ...
3793 (linux_process_target::stopped_by_watchpoint): ... this.
3794 (linux_stopped_data_address): Turn into ...
3795 (linux_process_target::stopped_data_address): ... this.
3796 * linux-low.h (class linux_process_target): Update.
3797 * lynx-low.cc (lynx_target_ops): Update.
3798 * nto-low.cc (nto_target_ops): Update.
3799 (nto_stopped_by_watchpoint): Turn into ...
3800 (nto_process_target::stopped_by_watchpoint): ... this.
3801 (nto_stopped_data_address): Turn into ...
3802 (nto_process_target::stopped_data_address): ... this.
3803 * nto-low.h (class nto_process_target): Update.
3804 * win32-low.cc (win32_target_ops): Update.
3805 (win32_stopped_by_watchpoint): Turn into ...
3806 (win32_process_target::stopped_by_watchpoint): ... this.
3807 (win32_stopped_data_address): Turn into ...
3808 (win32_process_target::stopped_data_address): ... this.
3809 * win32-low.h (class win32_process_target): Update.
3810
22aa6223
TBA
38112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3812
3813 Turn process_stratum_target's supports_hardware_single_step op into
3814 a method of process_target.
3815
3816 * target.h (struct process_stratum_target): Remove the target op.
3817 (class process_target): Add the target op.
3818 (target_supports_hardware_single_step): Update the macro.
3819 (target_can_do_hardware_single_step): Remove declaration.
3820 * target.cc (process_target::supports_hardware_single_step): Define.
3821 (target_can_do_hardware_single_step): Remove.
3822
3823 Update the derived classes and callers below.
3824
3825 * linux-low.h (class linux_process_target): Update.
3826 * linux-low.cc (linux_target_ops): Update.
3827 (linux_supports_hardware_single_step): Turn into ...
3828 (linux_process_target::supports_hardware_single_step): ... this.
3829 * lynx-low.h (class lynx_process_target): Update.
3830 * lynx-low.cc (lynx_target_ops): Update.
3831 (lynx_process_target::supports_hardware_single_step): Define.
3832 * nto-low.h (class nto_process_target): Update.
3833 * nto-low.cc (nto_target_ops): Update.
3834 (nto_process_target::supports_hardware_single_step): Define.
3835 * win32-low.h (class win32_process_target): Update.
3836 * win32-low.cc (win32_target_ops): Update.
3837 (win32_process_target::supports_hardware_single_step): Define.
3838
93fe88b2
TBA
38392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3840
3841 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3842 ops into methods of process_target.
3843
3844 * target.h (struct process_stratum_target): Remove the target ops.
3845 (class process_target): Add the target ops.
3846 (target_stopped_by_hw_breakpoint): Update the macro.
3847 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3848 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3849 (process_target::supports_stopped_by_hw_breakpoint): Define.
3850
3851 Update the derived classes and callers below.
3852
3853 * linux-low.cc (linux_target_ops): Update.
3854 (linux_stopped_by_hw_breakpoint): Turn into ...
3855 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3856 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3857 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3858 * linux-low.h (class linux_process_target): Update.
3859 * lynx-low.cc (lynx_target_ops): Update.
3860 * nto-low.cc (nto_target_ops): Update.
3861 * win32-low.cc (win32_target_ops): Update.
3862
84320c4e
TBA
38632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3864
3865 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3866 ops into methods of process_target.
3867
3868 * target.h (struct process_stratum_target): Remove the target ops.
3869 (class process_target): Add the target ops.
3870 (target_stopped_by_sw_breakpoint): Update the macro.
3871 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3872 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3873 (process_target::supports_stopped_by_sw_breakpoint): Define.
3874
3875 Update the derived classes and callers below.
3876
3877 * linux-low.cc (linux_target_ops): Update.
3878 (linux_stopped_by_sw_breakpoint): Turn into ...
3879 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3880 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3881 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3882 * linux-low.h (class linux_process_target): Update.
3883 * lynx-low.cc (lynx_target_ops): Update.
3884 * nto-low.cc (nto_target_ops): Update.
3885 * win32-low.cc (win32_target_ops): Update.
3886
7e0bde70
TBA
38872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3888
3889 Turn process_stratum_target's insert_point and remove_point ops
3890 into methods of process_target.
3891
3892 * target.h (struct process_stratum_target): Remove the target ops.
3893 (class process_target): Add the target ops.
3894 * target.cc (process_target::insert_point): Define.
3895 (process_target::remove_point): Define.
3896
3897 Update the derived classes and callers below.
3898
3899 * mem-break.cc (set_raw_breakpoint_at): Update.
3900 (delete_raw_breakpoint): Update.
3901 (uninsert_raw_breakpoint): Update.
3902 (reinsert_raw_breakpoint): Update.
3903 * linux-low.cc (linux_target_ops): Update.
3904 (linux_insert_point): Turn into ...
3905 (linux_process_target::insert_point): ... this.
3906 (linux_remove_point): Turn into ...
3907 (linux_process_target::remove_point): ... this.
3908 * linux-low.h (class linux_process_target): Update.
3909 * lynx-low.cc (lynx_target_ops): Update.
3910 * nto-low.cc (nto_target_ops): Update.
3911 (nto_insert_point): Turn into ...
3912 (nto_process_target::insert_point): ... this.
3913 (nto_remove_point): Turn into ...
3914 (nto_process_target::remove_point): ... this.
3915 * nto-low.h (class nto_process_target): Update.
3916 * win32-low.cc (win32_target_ops): Update.
3917 (win32_insert_point): Turn into ...
3918 (win32_process_target::insert_point): ... this.
3919 (win32_remove_point): Turn into ...
3920 (win32_process_target::remove_point): ... this.
3921 * win32-low.h (class win32_process_target): Update.
3922
a2b2297a
TBA
39232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3924
3925 Turn process_stratum_target's supports_z_point_type op into a
3926 method of process_target.
3927
3928 * target.h (struct process_stratum_target): Remove the target op.
3929 (class process_target): Add the target op.
3930 * target.cc (process_target::supports_z_point_type): Define.
3931
3932 Update the derived classes and callers below.
3933
3934 * mem-break.cc (z_type_supported): Update.
3935 * linux-low.cc (linux_target_ops): Update.
3936 (linux_supports_z_point_type): Turn into ...
3937 (linux_process_target::supports_z_point_type): ... this.
3938 * linux-low.h (class linux_process_target): Update.
3939 * lynx-low.cc (lynx_target_ops): Update.
3940 * nto-low.cc (nto_target_ops): Update.
3941 (nto_supports_z_point_type): Turn into ...
3942 (nto_process_target::supports_z_point_type): ... this.
3943 * nto-low.h (class nto_process_target): Update.
3944 * win32-low.cc (win32_target_ops): Update.
3945 (win32_supports_z_point_type): Turn into ...
3946 (win32_process_target::supports_z_point_type): ... this.
3947 * win32-low.h (class win32_process_target): Update.
3948
eac215cc
TBA
39492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3950
3951 Turn process_stratum_target's read_auxv op into a method of
3952 process_target.
3953
3954 * target.h (class process_stratum_target): Remove the target op.
3955 (struct process_target): Add the target op. Also add
3956 'supports_read_auxv'.
3957 * target.cc (process_target::read_auxv): Define.
3958 (process_target::supports_read_auxv): Define.
3959
3960 Update the derived classes and callers below.
3961
3962 * server.cc (handle_qxfer_auxv): Update.
3963 (handle_query): Update.
3964 * linux-low.cc (linux_target_ops): Update.
3965 (linux_process_target::supports_read_auxv): Define.
3966 (linux_read_auxv): Turn into ...
3967 (linux_process_target::read_auxv): ... this.
3968 * linux-low.h (class linux_process_target): Update.
3969 * lynx-low.cc (lynx_target_ops): Update.
3970 * nto-low.cc (nto_target_ops): Update.
3971 (nto_process_target::supports_read_auxv): Define.
3972 (nto_read_auxv): Turn into ...
3973 (nto_process_target::read_auxv): ... this.
3974 * nto-low.h (class nto_process_target): Update.
3975 * win32-low.cc (win32_target_ops): Update.
3976
eb497a2a
TBA
39772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3978
3979 Turn process_stratum_target's request_interrupt op into a method of
3980 process_target.
3981
3982 * target.h (struct process_stratum_target): Remove the target op.
3983 (class process_target): Add the target op.
3984
3985 Update the derived classes and callers below.
3986
3987 * remote-utils.cc (putpkt_binary_1): Update.
3988 (input_interrupt): Update.
3989 (getpkt): Update.
3990 * server.cc (handle_v_requests): Update.
3991 * linux-low.cc (linux_target_ops): Update.
3992 (linux_request_interrupt): Turn into ...
3993 (linux_process_target::request_interrupt): ... this.
3994 * linux-low.h (class linux_process_target): Update.
3995 * lynx-low.cc (lynx_target_ops): Update.
3996 (lynx_request_interrupt): Turn into ...
3997 (lynx_process_target::request_interrupt): ... this.
3998 * lynx-low.h (class lynx_process_target): Update.
3999 * nto-low.cc (nto_target_ops): Update.
4000 (nto_request_interrupt): Turn into ...
4001 (nto_process_target::request_interrupt): ... this.
4002 * nto-low.h (class nto_process_target): Update.
4003 * win32-low.cc (win32_target_ops): Update.
4004 (win32_request_interrupt): Turn into ...
4005 (win32_process_target::request_interrupt): ... this.
4006 * win32-low.h (class win32_process_target): Update.
4007
2a31c7aa
TBA
40082020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4009
4010 Turn process_stratum_target's look_up_symbols op into a method of
4011 process_target.
4012
4013 * target.h (struct process_stratum_target): Remove the target op.
4014 (class process_target): Add the target op.
4015 * target.cc (process_target::look_up_symbols): Define.
4016
4017 Update the derived classes and callers below.
4018
4019 * server.cc (handle_query): Update.
4020 * linux-low.cc (linux_target_ops): Update.
4021 (linux_look_up_symbols): Turn into ...
4022 (linux_process_target::look_up_symbols): ... this.
4023 * linux-low.h (class linux_process_target): Update.
4024 * lynx-low.cc (lynx_target_ops): Update.
4025 * nto-low.cc (nto_target_ops): Update.
4026 * win32-low.cc (win32_target_ops): Update.
4027
e2558df3
TBA
40282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4029
4030 Turn process_stratum_target's read_memory and write_memory
4031 ops into methods of process_target.
4032
4033 * target.h (struct process_stratum_target): Remove the target ops.
4034 (class process_target): Add the target ops.
4035
4036 Update the derived classes and callers below.
4037
4038 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4039 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4040 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4041 (arm_get_syscall_trapinfo): Update.
4042 * linux-cris-low.cc (cris_breakpoint_at): Update.
4043 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4044 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4045 * linux-mips-low.cc (mips_breakpoint_at): Update.
4046 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4047 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4048 * linux-sh-low.cc (sh_breakpoint_at): Update.
4049 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4050 (sparc_store_gregset_from_stack): Update.
4051 (sparc_breakpoint_at): Update.
4052 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4053 * linux-tile-low.cc (tile_breakpoint_at): Update.
4054 * linux-x86-low.cc (x86_breakpoint_at): Update.
4055 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4056 * mem-brea.cc (insert_memory_breakpoint): Update.
4057 (validate_inserted_breakpoint): Update.
4058 * target.cc (read_inferior_memory): Update.
4059 (target_write_memory): Update.
4060 * linux-low.cc (linux_target_ops): Update.
4061 (linux_read_memory): Make a wrapper around the read_memory target
4062 op call.
4063 (linux_process_target::read_memory): Rename from linux_read_memory.
4064 (linux_write_memory): Turn into ...
4065 (linux_process_target::write_memory): ... this.
4066 * linux-low.h (class linux_process_target): Update.
4067 * lynx-low.cc (lynx_target_ops): Update.
4068 (lynx_read_memory): Turn into ...
4069 (lynx_process_target::read_memory): ... this.
4070 (lynx_write_memory): Turn into ...
4071 (lynx_process_target::write_memory): ... this.
4072 * lynx-low.h (class lynx_process_target): Update.
4073 * nto-low.cc (nto_target_ops): Update.
4074 (nto_read_memory): Turn into ...
4075 (nto_process_target::read_memory): ... this.
4076 (nto_write_memory): Turn into ...
4077 (nto_process_target::write_memory): ... this.
4078 * nto-low.h (class nto_process_target): Update.
4079 * win32-low.cc (win32_target_ops): Update.
4080 (win32_read_inferior_memory): Turn into ...
4081 (win32_process_target::read_memory): ... this.
4082 (win32_write_inferior_memory): Turn into ...
4083 (win32_process_target::write_memory): ... this.
4084 * win32-low.h (class win32_process_target): Update.
4085
79b44087
TBA
40862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4087
4088 Turn process_stratum_target's prepare_to_access_memory and
4089 done_accessing_memory ops into methods of process_target.
4090
4091 * target.h (struct process_stratum_target): Remove the target ops.
4092 (class process_target): Add the target ops.
4093 * target.cc (process_target::prepare_to_access_memory): Define.
4094 (process_target::done_accessing_memory): Define.
4095 (prepare_to_access_memory): Update.
4096 (done_accessing_memory): Update.
4097
4098 Update the derived classes and callers below.
4099
4100 * linux-low.cc (linux_target_ops): Update.
4101 (linux_prepare_to_access_memory): Turn into ...
4102 (linux_process_target::prepare_to_access_memory): ... this.
4103 (linux_done_accessing_memory): Turn into ...
4104 (linux_process_target::done_accessing_memory): ... this.
4105 * linux-low.h (class linux_process_target): Update.
4106 * lynx-low.cc (lynx_target_ops): Update.
4107 * nto-low.cc (nto_target_ops): Update.
4108 * win32-low.cc (win32_target_ops): Update.
4109
a5a4d4cd
TBA
41102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4111
4112 Turn process_stratum_target's fetch_registers and store_registers
4113 ops into methods of process_target.
4114
4115 * target.h (struct process_stratum_target): Remove the target ops.
4116 (class process_target): Add the target ops.
4117 (fetch_inferior_registers): Update the macro.
4118 (store_inferior_registers): Update the macro.
4119
4120 Update the derived classes and callers below.
4121
4122 * linux-low.cc (linux_target_ops): Update.
4123 (linux_fetch_registers): Turn into ...
4124 (linux_process_target::fetch_registers): ... this.
4125 (linux_store_registers): Turn into ...
4126 (linux_process_target::store_registers): ... this.
4127 * linux-low.h (class linux_process_target): Update.
4128 * lynx-low.cc (lynx_target_ops): Update.
4129 (lynx_fetch_registers): Turn into ...
4130 (lynx_process_target::fetch_registers): ... this.
4131 (lynx_store_registers): Turn into ...
4132 (lynx_process_target::store_registers): ... this.
4133 * lynx-low.h (class lynx_process_target): Update.
4134 * nto-low.cc (nto_target_ops): Update.
4135 (nto_fetch_registers): Turn into ...
4136 (nto_process_target::fetch_registers): ... this.
4137 (nto_store_registers): Turn into ...
4138 (nto_process_target::store_registers): ... this.
4139 * nto-low.h (class nto_process_target): Update.
4140 * win32-low.cc (win32_target_ops): Update.
4141 (win32_fetch_inferior_registers): Turn into ...
4142 (win32_process_target::fetch_registers): ... this.
4143 (win32_store_inferior_registers): Turn into ...
4144 (win32_process_target::store_registers): ... this.
4145 * win32-low.h (class win32_process_target): Update.
4146
6532e7e3
TBA
41472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4148
4149 Turn process_stratum_target's wait 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
4155 Update the derived classes and callers below.
4156
4157 * target.cc (target_wait): Update.
4158 * linux-low.cc (linux_target_ops): Update.
4159 (linux_wait): Turn into ...
4160 (linux_process_target::wait): ... this.
4161 * linux-low.h (class linux_process_target): Update.
4162 * lynx-low.cc (lynx_target_ops): Update.
4163 (lynx_wait): Turn into ...
4164 (lynx_process_target::wait): ... this.
4165 * lynx-low.h (class lynx_process_target): Update.
4166 * nto-low.cc (nto_target_ops): Update.
4167 (nto_wait): Turn into ...
4168 (nto_process_target::wait): ... this.
4169 * nto-low.h (class nto_process_target): Update.
4170 * win32-low.cc (win32_target_ops): Update.
4171 (win32_wait): Turn into ...
4172 (win32_process_target::wait): ... this.
4173 (do_initial_child_stuff): Update.
4174 * win32-low.h (class win32_process_target): Update.
4175
0e4d7e35
TBA
41762020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4177
4178 Turn process_stratum_target's resume op into a method of
4179 process_target.
4180
4181 * target.h (struct process_stratum_target): Remove the target op.
4182 (class process_target): Add the target op.
4183
4184 Update the derived classes and callers below.
4185
4186 * server.cc (resume): Update.
4187 * target.cc (target_stop_and_wait): Update.
4188 (target_continue_no_signal): Update.
4189 (target_continue): Update.
4190 * linux-low.cc (linux_target_ops): Update.
4191 (linux_resume): Turn into ...
4192 (linux_process_target::resume): ... this.
4193 * linux-low.h (class linux_process_target): Update.
4194 * lynx-low.cc (lynx_target_ops): Update.
4195 (lynx_resume): Turn into ...
4196 (lynx_process_target::resume): ... this.
4197 * lynx-low.h (class lynx_process_target): Update.
4198 * nto-low.cc (nto_target_ops): Update.
4199 (nto_resume): Turn into ...
4200 (nto_process_target::resume): ... this.
4201 * nto-low.h (class nto_process_target): Update.
4202 * win32-low.cc (win32_target_ops): Update.
4203 (win32_resume): Turn into ...
4204 (win32_process_target::resume): ... this.
4205 (win32_process_target::detach): Update.
4206 (do_initial_child_stuff): Update.
4207 * win32-low.h (class win32_process_target): Update.
4208
13d3d99b
TBA
42092020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4210
4211 Turn process_stratum_target's thread_alive op into a method of
4212 process_target.
4213
4214 * target.h (struct process_stratum_target): Remove the target op.
4215 (class process_target): Add the target op.
4216 (mythread_alive): Update the macro.
4217
4218 Update the derived classes and callers below.
4219
4220 * linux-low.cc (linux_target_ops): Update.
4221 (linux_thread_alive): Turn into ...
4222 (linux_process_target::thread_alive): ... this.
4223 (wait_for_sigstop): Update.
4224 * linux-low.h (class linux_process_target): Update.
4225 * lynx-low.cc (lynx_target_ops): Update.
4226 (lynx_thread_alive): Turn into ...
4227 (lynx_process_target::thread_alive): ... this.
4228 * lynx-low.h (class lynx_process_target): Update.
4229 * nto-low.cc (nto_target_ops): Update.
4230 (nto_thread_alive): Turn into ...
4231 (nto_process_target::thread_alive): ... this.
4232 * nto-low.h (class nto_process_target): Update.
4233 * win32-low.cc (win32_target_ops): Update.
4234 (win32_thread_alive): Turn into ...
4235 (win32_process_target::thread_alive): ... this.
4236 * win32-low.h (class win32_process_target): Update.
4237
95a49a39
TBA
42382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4239
4240 Turn process_stratum_target's join op into a method of
4241 process_target.
4242
4243 * target.h (struct process_stratum_target): Remove the target op.
4244 (class process_target): Add the target op.
4245 (join_inferior): Update the macro.
4246
4247 Update the derived classes and callers below.
4248
4249 * linux-low.cc (linux_target_ops): Update.
4250 (linux_join): Turn into ...
4251 (linux_process_target::join): ... this.
4252 * linux-low.h (class linux_process_target): Update.
4253 * lynx-low.cc (lynx_target_ops): Update.
4254 (lynx_join): Turn into ...
4255 (lynx_process_target::join): ... this.
4256 * lynx-low.h (class lynx_process_target): Update.
4257 * nto-low.cc (nto_target_ops): Update.
4258 (nto_process_target::join): Define.
4259 * nto-low.h (class nto_process_target): Update.
4260 * win32-low.cc (win32_target_ops): Update.
4261 (win32_join): Turn into ...
4262 (win32_process_target::join): ... this.
4263 * win32-low.h (class win32_process_target): Update.
4264
8adb37b9
TBA
42652020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4266
4267 Turn process_stratum_target's mourn op into a method of
4268 process_target.
4269
4270 * target.h (struct process_stratum_target): Remove the target op.
4271 (class process_target): Add the target op.
4272
4273 Update the derived classes and callers below.
4274
4275 * target.cc (target_mourn_inferior): Update.
4276 * linux-low.cc (linux_target_ops): Update.
4277 (linux_mourn): Turn into ...
4278 (linux_process_target::mourn): ... this.
4279 (handle_extended_wait): Update.
4280 (linux_process_target::kill): Update.
4281 (linux_process_target::detach): Update.
4282 * linux-low.h (class linux_process_target): Update.
4283 * lynx-low.cc (lynx_target_ops): Update.
4284 (lynx_mourn): Turn into ...
4285 (lynx_process_target::mourn): ... this.
4286 * lynx-low.h (class lynx_process_target): Update.
4287 * nto-low.cc (nto_target_ops): Update.
4288 (nto_mourn): Turn into ...
4289 (nto_process_target::mourn): ... this.
4290 * nto-low.h (class nto_process_target): Update.
4291 * win32-low.cc (win32_target_ops): Update.
4292 (win32_mourn): Turn into ...
4293 (win32_process_target::mourn): ... this.
4294 * win32-low.h (class win32_process_target): Update.
4295
9061c9cf
TBA
42962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4297
4298 Turn process_stratum_target's detach op into a method of
4299 process_target.
4300
4301 * target.h (struct process_stratum_target): Remove the target op.
4302 (class process_target): Add the target op.
4303 (detach_inferior): Update the macro.
4304
4305 Update the derived classes and callers below.
4306
4307 * linux-low.cc (linux_target_ops): Update.
4308 (linux_detach): Turn into ...
4309 (linux_process_target::detach): ... this.
4310 * linux-low.h (class linux_process_target): Update.
4311 * lynx-low.cc (lynx_target_ops): Update.
4312 (lynx_detach): Turn into ...
4313 (lynx_process_target::detach): ... this.
4314 * lynx-low.h (class lynx_process_target): Update.
4315 * nto-low.cc (nto_target_ops): Update.
4316 (nto_detach): Turn into ...
4317 (nto_process_target::detach): ... this.
4318 * nto-low.h (class nto_process_target): Update.
4319 * win32-low.cc (win32_target_ops): Update.
4320 (win32_detach): Turn into ...
4321 (win32_process_target::detach): ... this.
4322 * win32-low.h (class win32_process_target): Update.
4323
c6885a57
TBA
43242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4325
4326 Turn process_stratum_target's kill op into a method of
4327 process_target.
4328
4329 * target.h (struct process_stratum_target): Remove the target op.
4330 (class process_target): Add the target op.
4331
4332 Update the derived classes and callers below.
4333
4334 * target.cc (kill_inferior): Update.
4335 * linux-low.cc (linux_target_ops): Update.
4336 (linux_kill): Turn into ...
4337 (linux_process_target::kill): ... this.
4338 * linux-low.h (class linux_process_target): Update.
4339 * lynx-low.cc (lynx_target_ops): Update.
4340 (lynx_kill): Turn into ...
4341 (lynx_process_target::kill): ... this.
4342 * lynx-low.h (class lynx_process_target): Update.
4343 * nto-low.cc (nto_target_ops): Update.
4344 (nto_kill): Turn into ...
4345 (nto_process_target::kill): ... this.
4346 * nto-low.h (class nto_process_target): Update.
4347 * win32-low.cc (win32_target_ops): Update.
4348 (win32_kill): Turn into ...
4349 (win32_process_target::kill): ... this.
4350 * win32-low.h (class win32_process_target): Update.
4351
ef03dad8
TBA
43522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4353
4354 Turn process_stratum_target's attach op into a method of
4355 process_target.
4356
4357 * target.h (struct process_stratum_target): Remove the target op.
4358 (class process_target): Add the target op.
4359 (myattach): Update the macro.
4360
4361 Update the derived classes and callers below.
4362
4363 * linux-low.cc (linux_target_ops): Update.
4364 (linux_attach): Turn into ...
4365 (linux_process_target::attach): ... this.
4366 * linux-low.h (class linux_process_target): Update.
4367 * lynx-low.cc (lynx_target_ops): Update.
4368 (lynx_attach): Turn into ...
4369 (lynx_process_target::attach): ... this.
4370 * lynx-low.h (class lynx_process_target): Update.
4371 * nto-low.cc (nto_target_ops): Update.
4372 (nto_attach): Turn into ...
4373 (nto_process_target::attach): ... this.
4374 * nto-low.h (class nto_process_target): Update.
4375 * win32-low.cc (win32_target_ops): Update.
4376 (win32_attach): Turn into ...
4377 (win32_process_target::attach): ... this.
4378 * win32-low.h (class win32_process_target): Update.
4379
6dee9afb
TBA
43802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4381
4382 Turn process_stratum_target's post_create_inferior op into a method
4383 of process_target.
4384
4385 * target.h (struct process_stratum_target): Remove the target op.
4386 (class process_target): Add the target op.
4387 (target_post_create_inferior): Update the macro.
4388 * target.cc (process_target::post_create_inferior): Define.
4389
4390 Update the derived classes and callers below.
4391
4392 * linux-low.cc (linux_target_ops): Update.
4393 (linux_post_create_inferior): Turn into ...
4394 (linux_process_target::post_create_inferior): ... this.
4395 * linux-low.h (class linux_process_target): Update.
4396 * lynx-low.cc (lynx_target_ops): Update.
4397 * nto-low.cc (nto_target_ops): Update.
4398 * win32-low.cc (win32_target_ops): Update.
4399
15295543
TBA
44002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4401
4402 Turn process_stratum_target's create_inferior op into a method of
4403 process_target.
4404
4405 * target.h (struct process_stratum_target): Remove the target op.
4406 (class process_target): Add the target op.
4407 (create_inferior): Rename the macro to ...
4408 (target_create_inferior): ... this.
4409
4410 Update the derived classes and callers below.
4411
4412 * server.cc (handle_v_run): Update.
4413 (captured_main): Update.
4414 (process_serial_event): Update.
4415 * linux-low.cc (linux_target_ops): Update.
4416 (linux_create_inferior): Turn into ...
4417 (linux_process_target::create_inferior): ... this.
4418 * linux-low.h (class linux_process_target): Update.
4419 * lynx-low.cc (lynx_target_ops): Update.
4420 (lynx_create_inferior): Turn into ...
4421 (lynx_process_target::create_inferior): ... this.
4422 * lynx-low.h (class lynx_process_target): Update.
4423 * nto-low.cc (nto_target_ops): Update.
4424 (nto_create_inferior): Turn into ...
4425 (nto_process_target::create_inferior): ... this.
4426 * nto-low.h (class nto_process_target): Update.
4427 * win32-low.cc (win32_target_ops): Update.
4428 (win32_create_inferior): Turn into ...
4429 (win32_process_target::create_inferior): ... this.
4430 * win32-low.h (class win32_process_target): Update.
4431
5ef9273d
TBA
44322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4433
4434 * target.h (class process_target): New class definition.
4435 (struct process_stratum_target) <pt>: New field with type
4436 'process_target*'.
4437 * linux-low.h (class linux_process_target): Define as a derived
4438 class of 'process_target'.
4439 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4440 as the 'pt' field.
4441 * lynx-low.h (class lynx_process_target): Define as a derived
4442 class of 'process_target'.
4443 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4444 as the 'pt' field.
4445 * nto-low.h (class nto_process_target): Define as a derived
4446 class of 'process_target'.
4447 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4448 as the 'pt' field.
4449 * win32-low.h (class win32_process_target): Define as a derived
4450 class of 'process_target'.
4451 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4452 as the 'pt' field.
4453
9f1528a1
AB
44542020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4455
4456 * configure: Regenerate.
4457
bf84f706
MR
44582020-02-19 Maciej W. Rozycki <macro@wdc.com>
4459 Andrew Burgess <andrew.burgess@embecosm.com>
4460
4461 * linux-riscv-low.cc: New file.
4462 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4463 and nat/riscv-linux-tdesc.c.
4464 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4465 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4466 Define.
4467
1a627e7e
TT
44682020-02-14 Tom Tromey <tom@tromey.com>
4469
4470 * acinclude.m4: Don't include acx_configure_dir.m4.
4471 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4472 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4473 (all, install-only, uninstall, clean-info, clean)
4474 (maintainer-clean): Don't recurse.
4475 (subdir_do, all-lib): Remove.
4476 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4477 (GNULIB_H): Remove.
4478 (generated_files): Update.
4479 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4480 * configure: Rebuild.
4481 * configure.ac: Don't configure gnulib or libiberty.
4482 (GNULIB): Update.
4483
a9b34532
EZ
44842020-02-14 Eli Zaretskii <eliz@gnu.org>
4485
4486 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4487 preparing the command line for CreateProcess.
4488 (win32_create_inferior): Reflect the program name in debugging
4489 output that shows the process and its command line.
4490
feacfcac
SM
44912020-02-13 Simon Marchi <simon.marchi@efficios.com>
4492
4493 * Makefile.in: Rename source files from .c to .cc.
4494 * %.c: Rename to %.cc.
4495 * configure.ac: Rename server.c to server.cc.
4496 * configure: Re-generate.
4497
06b3c5bd
SM
44982020-02-13 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4501
052793ad
HD
45022020-02-12 Hannes Domani <ssbssa@yahoo.de>
4503
4504 * win32-low.c (win32_create_inferior): Set signal_pid.
4505
f20e3e82
MR
45062020-02-12 Maciej W. Rozycki <macro@wdc.com>
4507 Pedro Alves <palves@redhat.com>
4508
4509 Skip building gdbserver in a cross-configuration.
4510 * configure.srv: Set $gdbserver_host depending on whether $target
4511 is $host. Use $gdbserver_host instead of $host.
4512
8ddd8e0e
SM
45132020-02-11 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * configure: Re-generate.
4516
898e7f60
SM
45172020-02-11 Simon Marchi <simon.marchi@efficios.com>
4518
4519 * configure: Re-generate.
4520
58df732b
SM
45212020-02-11 Simon Marchi <simon.marchi@efficios.com>
4522
4523 * acinclude.m4: Update warning.m4 path.
4524
7928d571
HD
45252020-02-09 Hannes Domani <ssbssa@yahoo.de>
4526
4527 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4528 (handle_exception): Set siginfo_er.
4529 (win32_xfer_siginfo): New function.
4530
919adfe8
TT
45312020-02-07 Tom Tromey <tom@tromey.com>
4532 Pedro Alves <palves@redhat.com>
4533
4534 * README: Update build documentation.
4535 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4536 host, not target.
4537 * configure.ac: Update paths.
4538 * configure: Rebuild.
4539 * acinclude.m4: Update paths.
4540 * Makefile.in: Update include paths.
4541 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4542 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4543 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4544 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4545 (%-generated.c): Update paths.
4546 * Move entire directory from ../gdb/gdbserver.
4547
287c844a
MR
45482020-01-29 Maciej W. Rozycki <macro@wdc.com>
4549
4550 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4551
548a204f
PFC
45522020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4553
4554 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4555 assignment instead of srv_linux_obj.
4556
a2236a08
HD
45572020-01-28 Hannes Domani <ssbssa@yahoo.de>
4558
4559 * server.c (handle_qxfer_libraries): Write segment-address with
4560 paddress.
4561
bdaed379
HD
45622020-01-24 Hannes Domani <ssbssa@yahoo.de>
4563
4564 * Makefile.in (install-strip): New target.
4565 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4566 * aclocal.m4: Regenerate.
4567 * configure: Regenerate.
4568 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4569
42cd72aa
MR
45702020-01-24 Maciej W. Rozycki <macro@wdc.com>
4571
4572 * Makefile.in (SFILES): Adjust paths to point to real files.
4573 (OBS): Move waitstatus.o to target/waitstatus.o.
4574 (TAGS): Transform paths appropriately.
4575 (%.o): Rename to...
4576 (nat/%.o): ... this pattern rule.
4577 (%.o): Rename to...
4578 (target/%.o): ... this pattern rule.
4579 * configure.srv: Adjust paths throughout to include nat/ prefix
4580 with the revant files.
4581 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4582 * configure: Regenerate.
4583
42ba50ec
MR
45842020-01-24 Maciej W. Rozycki <macro@wdc.com>
4585
4586 * Makefile.in (TAGS): Remove config files from the recipe.
4587
05ea2a05
TT
45882020-01-14 Tom Tromey <tom@tromey.com>
4589
4590 * configure: Rebuild.
4591 * configure.ac: Remove any checks that were added to common.m4.
4592 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4593 lib-link.m4.
4594
01027315
TT
45952020-01-14 Tom Tromey <tom@tromey.com>
4596
4597 * server.h: Include config.h.
4598 * gdbreplay.c: Include config.h.
4599 * configure: Rebuild.
4600 * configure.ac: Don't source common.host.
4601 * acinclude.m4: Update path.
4602 * Makefile.in (INCSUPPORT): New variable.
4603 (INCLUDE_CFLAGS): Add INCSUPPORT.
4604 (SFILES): Update paths.
4605 (version-generated.c): Update path to create-version.sh.
4606 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4607
b2ceabe8
TT
46082020-01-14 Tom Tromey <tom@tromey.com>
4609
4610 * configure.ac (LIBS): Use WIN32APILIBS.
4611 (USE_WIN32API): Don't define.
4612 * configure: Rebuild.
4613
25c51f71
TT
46142020-01-14 Tom Tromey <tom@tromey.com>
4615
4616 * configure: Rebuild.
4617
c0bd321d
SM
46182020-01-13 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * Makefile.in (%-generated.c): Remove rule for files from
4621 regformats/i386.
4622
bb564c58
SM
46232020-01-13 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * configure: Re-generate.
4626
6e37c371
SM
46272020-01-13 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4630 Define to static.
4631 * tracepoint.c (stop_tracing, flush_trace_buffer,
4632 about_to_request_buffer_space, get_trace_state_variable_value,
4633 set_trace_state_variable_value, gdb_collect): Add declaration.
4634
df4a0200
SM
46352020-01-13 Simon Marchi <simon.marchi@efficios.com>
4636
4637 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4638 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4639 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4640 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4641 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4642 static.
4643
89e94ec9
SM
46442020-01-13 Simon Marchi <simon.marchi@efficios.com>
4645
4646 * inferiors.c: Include gdbsupport/common-inferior.h.
4647
2552728a
SM
46482020-01-13 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * hostio-errno.c: Include hostio.h.
4651
4025fa09
SM
46522020-01-13 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4655 prerequisite.
4656
c0b0a142
SM
46572020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4658
4659 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4660 * linux-arm-tdesc.h: Include arch/arm.h.
4661
bb1183e2
SM
46622020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4663
4664 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4665
f5df0b5f
SM
46662020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4667
4668 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4669 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4670
5b6d1e4f
PA
46712020-01-10 Pedro Alves <palves@redhat.com>
4672
4673 * fork-child.c (post_fork_inferior): Pass target down to
4674 startup_inferior.
4675 * inferiors.c (switch_to_thread): Add process_stratum_target
4676 parameter.
4677 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4678 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4679 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4680 * remote-utils.c (prepare_resume_reply): Pass the target to
4681 switch_to_thread.
4682 * target.c (the_target): Now a process_stratum_target.
4683 (done_accessing_memory): Pass the target to switch_to_thread.
4684 (set_target_ops): Ajust to use process_stratum_target.
4685 * target.h (struct target_ops): Rename to ...
4686 (struct process_stratum_target): ... this.
4687 (the_target, set_target_ops): Adjust.
4688 (prepare_to_access_memory): Adjust comment.
4689 * win32-low.c (child_xfer_memory): Adjust to use
4690 process_stratum_target.
4691 (win32_target_ops): Now a process_stratum_target.
4692
559e7e50
EZ
46932020-01-06 Eli Zaretskii <eliz@gnu.org>
4694 Pedro Alves <palves@redhat.com>
4695
4696 * win32-low.c (get_child_debug_event): Extract the fatal exception
4697 from the exit status and convert to the equivalent Posix signal
4698 number.
4699 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4700 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4701
48189bec
HD
47022020-01-01 Hannes Domani <ssbssa@yahoo.de>
4703
4704 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4705
5dd8bf88
JB
47062020-01-01 Joel Brobecker <brobecker@adacore.com>
4707
4708 * server.c (gdbserver_version): Change copyright year to 2020.
4709 * gdbreplay.c (gdbreplay_version): Likewise.
4710
0ad6b8ee
CB
47112019-12-19 Christian Biesinger <cbiesinger@google.com>
4712
4713 * configure: Regenerate.
4714 * configure.ac: Quote variable arguments of test.
4715
1ee7b812
BE
47162019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4717
4718 * Makefile.in: Fix build with GNU Make 3.81
4719
d9fa87f4
TT
47202019-12-16 Tom Tromey <tromey@adacore.com>
4721
4722 * server.c (get_exec_file): Constify result.
4723
ab7d13f0
CB
47242019-12-10 Christian Biesinger <cbiesinger@google.com>
4725
4726 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4727 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4728 * config.in: Regenerate.
4729 * configure: Regenerate.
4730 * configure.ac: Don't check for strerror.
4731 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4732 Call safe_strerror instead of strerror.
4733 * server.h (strerror): Remove this now-unnecessary declaration.
4734 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4735 strerror.
4736 (gdb_agent_helper_thread): Likewise.
4737 * utils.c (perror_with_name): Likewise.
4738
4da8c3a8
TT
47392019-11-26 Tom Tromey <tom@tromey.com>
4740
4741 * configure, config.in: Rebuild.
4742
21987b9c
TT
47432019-11-26 Tom Tromey <tom@tromey.com>
4744
4745 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4746 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4747 gdb_sigmask.
4748 * configure, config.in: Rebuild.
4749
5e030278
TT
47502019-11-26 Tom Tromey <tom@tromey.com>
4751
4752 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4753 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4754 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4755 * acinclude.m4: Include ax_pthread.m4.
4756 * config.in, configure: Rebuild.
4757
6d91ce9a
CB
47582019-11-26 Christian Biesinger <cbiesinger@google.com>
4759
4760 * debug.c (debug_set_output): Call safe_strerror instead of
4761 strerror.
4762 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4763 (linux_kill_one_lwp): Likewise.
4764 (linux_detach_one_lwp): Likewise.
4765 (linux_wait_for_event_filtered): Likewise.
4766 (store_register): Likewise.
4767 * lynx-low.c (lynx_attach): Likewise.
4768 * mem-break.c (insert_memory_breakpoint): Likewise.
4769 (remove_memory_breakpoint): Likewise.
4770 (delete_fast_tracepoint_jump): Likewise.
4771 (set_fast_tracepoint_jump): Likewise.
4772 (uninsert_fast_tracepoint_jumps_at): Likewise.
4773 (reinsert_fast_tracepoint_jumps_at): Likewise.
4774 * nto-low.c (nto_xfer_memory): Likewise.
4775 (nto_resume): Likewise.
4776
6cdd651f
LM
47772019-11-20 Luis Machado <luis.machado@linaro.org>
4778
4779 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4780 instead of register count.
4781 * tdesc.c (tdesc_contains_feature): New function.
4782 * tdesc.h (tdesc_contains_feature): New prototype.
4783
cd850b40
CB
47842019-11-15 Christian Biesinger <cbiesinger@google.com>
4785
4786 * Makefile.in: Add safe-strerror.c.
4787 * configure: Regenerate.
4788 * configure.ac: Don't source common.host.
4789
5abebf3c
CB
47902019-11-15 Christian Biesinger <cbiesinger@google.com>
4791
4792 * config.in: Regenerate.
4793 * configure: Regenerate.
4794
e06f3d6e
AB
47952019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4796
4797 * ax.c (ax_printf): Handle size_t_arg.
4798
ca3a04f6
CB
47992019-11-06 Christian Biesinger <cbiesinger@google.com>
4800
4801 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4802 * mi/mi-main.c (output_cores): Likewise.
4803 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4804 (linux_xfer_osdata_modules): Likewise.
4805 * remote.c (register_remote_support_xml): Likewise.
4806 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4807 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4808
e48f6033
CB
48092019-11-01 Christian Biesinger <cbiesinger@google.com>
4810
4811 * configure: Regenerate.
4812 * configure.ac: Remove check for strerror_r.
4813
e7e97a2e
CB
48142019-10-31 Christian Biesinger <cbiesinger@google.com>
4815
4816 * config.in: Regenerate.
4817 * configure: Regenerate.
4818 * configure.ac: Also check for strerror_r.
4819
75cafaa6
CB
48202019-10-31 Christian Biesinger <cbiesinger@google.com>
4821
4822 * ax.h (debug_agent): Remove duplicate declaration.
4823
30baf67b
TV
48242019-10-26 Tom de Vries <tdevries@suse.de>
4825
4826 * linux-aarch64-low.c: Fix typos in comments.
4827 * linux-arm-low.c: Same.
4828 * linux-low.c: Same.
4829 * linux-ppc-low.c: Same.
4830 * proc-service.c: Same.
4831 * regcache.h: Same.
4832 * server.c: Same.
4833 * tracepoint.c: Same.
4834 * win32-low.c: Same.
4835
52c64cf7
TT
48362019-10-25 Tom Tromey <tromey@adacore.com>
4837
4838 * utils.c (xstrdup): Remove.
4839
c12d372d
TT
48402019-10-23 Tom Tromey <tom@tromey.com>
4841
4842 * configure, config.in: Rebuild.
4843
4d0b984b
TT
48442019-10-23 Tom Tromey <tom@tromey.com>
4845
4846 * configure: Rebuild.
4847 * acinclude.m4: Use m4_include, not sinclude.
4848
c5adaa19
TT
48492019-10-17 Tom Tromey <tromey@adacore.com>
4850
4851 * configure: Rebuild.
4852 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4853 in AC_CONFIG_FILES invocation.
4854 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4855 invocation.
4856
fec4e896
CB
48572019-10-16 Christian Biesinger <cbiesinger@google.com>
4858
4859 * server.c: Include xml-builtin.h.
4860 (get_xml_features): Don't declare xml_builtins here.
4861
00975ff6
AB
48622019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4863
4864 * Makefile.in: Remove references to vec-ipa.o.
4865
0dc32745
AB
48662019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4867
4868 * Makefile.in: Remove references to vec.c.
4869
3e6ec53a
CB
48702019-10-02 Christian Biesinger <cbiesinger@google.com>
4871
4872 * server.c (server_waiting): Change to bool.
4873 (extended_protocol): Likewise.
4874 (response_needed): Likewise.
4875 (exit_requested): Likewise.
4876 (run_once): Likewise.
4877 (report_no_resumed): Likewise.
4878 (non_stop): Likewise.
4879 (disable_packet_vCont): Likewise.
4880 (disable_packet_Tthread): Likewise.
4881 (disable_packet_qC): Likewise.
4882 (disable_packet_qfThreadInfo): Likewise.
4883 (handle_general_set): Update.
4884 (handle_detach): Update.
4885 (handle_monitor_command): Update.
4886 (handle_query): Update.
4887 (captured_main): Update.
4888 (process_serial_event): Update.
4889 * server.h (server_waiting): Change to bool.
4890 (disable_packet_vCont): Likewise.
4891 (disable_packet_Tthread): Likewise.
4892 (disable_packet_qC): Likewise.
4893 (disable_packet_qfThreadInfo): Likewise.
4894 (run_once): Likewise.
4895 (non_stop): Likewise.
4896 * target.c (target_stop_and_wait): Update.
4897
80fd2826
TT
48982019-10-02 Tom Tromey <tromey@adacore.com>
4899
4900 * Makefile.in (SFILES): Add common-inferior.c.
4901 (OBS): Add common-inferior.o.
4902 * server.c (startup_with_shell): Don't define.
4903
46f29a9a
AB
49042019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4905
4906 * linux-low.c (linux_low_read_btrace): Update for change to
4907 std::vector.
4908
f9d949fb
CB
49092019-09-20 Christian Biesinger <cbiesinger@google.com>
4910
4911 * debug.c (debug_threads): Remove comment in favor of the header.
4912 * debug.h (using_threads): Add declaration.
4913 (debug_threads): Add comment.
4914 * linux-aarch64-low.c: Include debug.h and remove declaration of
4915 debug_threads.
4916 * nto-low.c: Likewise.
4917 * remote-utils.c: Likewise.
4918 * thread-db.c: Likewise.
4919
abf516c6
UW
49202019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4921
4922 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4923 and powerpc-cell64l-ipa.o.
4924 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4925 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4926 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4927 (spu*-*-*): Remove.
4928
4929 * spu-low.c: Remove file.
4930
4931 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4932 (parse_spufs_run): Remove.
4933 (ppc_get_pc): Remove Cell/B.E. support.
4934 (ppc_set_pc): Likewise.
4935 (ppc_breakpoint_at): Likewise.
4936 (ppc_arch_setup): Likewise.
4937 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4938 tdesc_powerpc_cell32l.
4939 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4940 or init_registers_powerpc_cell32l.
4941 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4942 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4943 or init_registers_powerpc_cell32l.
4944 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4945 (init_registers_powerpc_cell32l): Remove prototype.
4946 (init_registers_powerpc_cell64l): Likewise.
4947
4948 * target.h (struct target_ops): Remove qxfer_spu member.
4949 * server.c (handle_qxfer_spu): Remove.
4950 (qxfer_packets): Remove entry for "spu".
4951 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4952 * linux-low.c (SPUFS_MAGIC): Remove.
4953 (spu_enumerate_spu_ids): Remove.
4954 (linux_qxfer_spu): Remove.
4955 (linux_target_ops): Remove qxfer_spu member.
4956 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4957 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4958 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4959
2d41fa11
SDJ
49602019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4961
4962 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4963 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4964 * config.in: Regenerate.
4965 * configure: Regenerate.
4966
d59b55f0
TT
49672019-08-15 Tom Tromey <tromey@adacore.com>
4968
4969 * target.c (target_write_memory): Use gdb::byte_vector.
4970
4196ab2a
TT
49712019-08-15 Tom Tromey <tromey@adacore.com>
4972
4973 * tracepoint.c (write_inferior_data_pointer)
4974 (write_inferior_integer, write_inferior_int8)
4975 (write_inferior_uinteger, m_tracepoint_action_download)
4976 (r_tracepoint_action_download, x_tracepoint_action_download)
4977 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4978 (download_agent_expr, download_tracepoint_1)
4979 (download_trace_state_variables, upload_fast_traceframes): Update.
4980 * server.c (gdb_write_memory): Update.
4981 * remote-utils.c (relocate_instruction): Update.
4982 * proc-service.c (ps_pdwrite): Update.
4983 * mem-break.c (remove_memory_breakpoint)
4984 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4985 (uninsert_fast_tracepoint_jumps_at)
4986 (reinsert_fast_tracepoint_jumps_at): Update.
4987 * linux-x86-low.c (append_insns)
4988 (i386_install_fast_tracepoint_jump_pad)
4989 (amd64_write_goto_address, i386_write_goto_address): Update.
4990 * linux-s390-low.c (append_insns, s390_write_goto_address):
4991 Update.
4992 * linux-ppc-low.c (ppc_relocate_instruction)
4993 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4994 (ppc_write_goto_address): Update.
4995 * linux-aarch64-low.c (append_insns): Update.
4996 * target.h (struct target_ops): Update.
4997 (write_inferior_memory): Don't declare.
4998 * target.c (target_write_memory): Rename from
4999 write_inferior_memory. Remove old target_write_memory.
5000
c6778d00
TT
50012019-08-15 Tom Tromey <tromey@adacore.com>
5002
5003 * target.c (write_inferior_memory): Use std::vector.
5004
404f2902
FCE
50052019-08-06 Frank Ch. Eigler <fche@redhat.com>
5006
5007 PR build/24886
5008 * configure.ac: Drop enable-libmcheck support.
5009 * configure, config.in: Rebuild.
5010 * acinclude.m4: Don't include it.
5011
4c5aa8e0
AH
50122019-07-19 Alan Hayward <alan.hayward@arm.com>
5013
5014 * configure.srv: Remove Arm xml files.
5015
7cc17433
AH
50162019-07-19 Alan Hayward <alan.hayward@arm.com>
5017
5018 * configure.srv: Add new files. Remove xml generated files.
5019 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5020 registers.
5021 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5022 * linux-aarch32-tdesc.c: New file.
5023 * linux-aarch32-tdesc.h: New file.
5024 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5025 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5026 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5027 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5028 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5029 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5030 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5031 (arm_read_description): Call arm_linux_read_description.
5032 (initialize_low_arch): Don't init registers.
5033 * linux-arm-tdesc.c: New file.
5034 * linux-arm-tdesc.h: New file.
5035
166a82be
AH
50362019-07-10 Alan Hayward <alan.hayward@arm.com>
5037
5038 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5039 Move counter inside for.
5040 (arm_read_description): Check ptrace earlier.
5041 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5042
268a13a5
TT
50432019-07-09 Tom Tromey <tom@tromey.com>
5044
5045 * configure: Rebuild.
5046 * configure.ac: Change common to gdbsupport.
5047 * acinclude.m4: Change common to gdbsupport.
5048 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5049 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5050 common to gdbsupport.
5051 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5052 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5053 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5054 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5055 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5056 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5057 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5058 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5059 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5060 common to gdbsupport.
5061
350fab54
AH
50622019-07-04 Alan Hayward <alan.hayward@arm.com>
5063
5064 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5065 defines.
5066 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5067
2b40fda7
AH
50682019-07-04 Alan Hayward <alan.hayward@arm.com>
5069
5070 * configure.srv: Remove legacy xml.
5071 * linux-aarch64-low.c (initialize_low_arch): Remove
5072 initialize_low_tdesc call.
5073 * linux-aarch64-tdesc-selftest.c: Remove file.
5074 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5075 * linux-x86-low.c (initialize_low_arch): Remove
5076 initialize_low_tdesc call.
5077 * linux-x86-tdesc-selftest.c: Remove file.
5078 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5079
7d10623d
TV
50802019-06-20 Tom de Vries <tdevries@suse.de>
5081
5082 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5083 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5084
8d6a48df
TV
50852019-06-19 Tom de Vries <tdevries@suse.de>
5086
5087 * debug.h (debug_write): Change return type to ssize_t.
5088 * debug.c (debug_write): Same.
5089
73cc7272
TT
50902019-06-14 Tom Tromey <tom@tromey.com>
5091
5092 * configure.ac: Use new path to gnulib.
5093 * configure: Rebuild.
5094 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5095 to gnulib.
5096
08f10e02
TT
50972019-06-11 Tom Tromey <tom@tromey.com>
5098
5099 * Makefile.in (SFILES): Add alloc.c.
5100 (OBS): Add alloc.o.
5101 (IPA_OBJS): Add alloc-ipa.o.
5102 (alloc-ipa.o): New target.
5103 (%.o: ../%.c): New pattern rule.
5104
422186a9
TT
51052019-06-10 Tom Tromey <tromey@adacore.com>
5106
5107 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5108 end warning with a newline.
5109 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5110 newline.
5111 * thread-db.c (attach_thread): Don't end warning with a newline.
5112 (thread_db_notice_clone): Likewise.
5113 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5114 newline.
5115 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5116 end warning with a newline.
5117
b02f78f9
PA
51182019-06-04 Pedro Alves <palves@redhat.com>
5119
5120 * server.c (captured_main): Use make_unique_xstrdup.
5121
88ed7edb
TT
51222019-06-02 Tom Tromey <tom@tromey.com>
5123
5124 * gdbreplay.c (fromhex): Remove.
5125 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5126
33a6bc35
TT
51272019-05-29 Tom Tromey <tromey@adacore.com>
5128
5129 * configure: Rebuild.
5130
e90a813d
KB
51312019-05-06 Kevin Buettner <kevinb@redhat.com>
5132
5133 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5134 sign extension code on 32-bit builds.
5135
353ea2d1
EZ
51362019-05-03 Eli Zaretskii <eliz@gnu.org>
5137
5138 * remote-utils.c:
5139 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5140
b494cdff
TT
51412019-04-19 Tom Tromey <tom@tromey.com>
5142
5143 * server.c (struct vstop_notif): Derive from notif_event.
5144 <base>: Remove.
5145 (queue_stop_reply): Update.
5146 (remove_all_on_match_ptid): Change type. Rewrite.
5147 (discard_queued_stop_replies): Rewrite.
5148 (in_queued_stop_replies_ptid): Change type.
5149 (in_queued_stop_replies): Rewrite.
5150 (notif_stop): Update.
5151 (queue_stop_reply_callback): Update.
5152 (captured_main): Don't call initialize_notif.
5153 (push_stop_notification): Update.
5154 * notif.c (notif_write_event, handle_notif_ack)
5155 (notif_event_enque, notif_push): Update.
5156 (notif_event_xfree, initialize_notif): Remove.
5157 * notif.h (struct notif_event): Include <list>, not
5158 "common/queue.h".
5159 (struct notif_server) <queue>: Now a std::list.
5160 (notif_event_p): Remove typedef.
5161 (initialize_notif): Don't declare.
5162 (struct notif_event): Add virtual destructor.
5163
a7e559cc
AH
51642019-04-17 Alan Hayward <alan.hayward@arm.com>
5165
5166 * ax.c (ax_vdebug): Call debug_printf.
5167 * debug.c (debug_write): New function.
5168 * debug.h (debug_write): New declaration.
5169 * linux-low.c (sigchld_handler): Call debug_write.
5170
aeb2e706
AH
51712019-04-17 Alan Hayward <alan.hayward@arm.com>
5172
5173 * debug.c (debug_set_output): New function.
5174 (debug_vprintf): Send output to debug_file.
5175 (debug_flush): Likewise.
5176 * debug.h (debug_set_output): New declaration.
5177 * server.c (handle_monitor_command): Add debug-file option.
5178 (captured_main): Likewise.
5179
c1bc0935
AH
51802019-04-17 Alan Hayward <alan.hayward@arm.com>
5181
5182 * debug.c (remote_debug): Add definition.
5183 * debug.h (remote_debug): Add declaration.
5184 * hostio.c (remote_debug): Remove declaration.
5185 * remote-utils.c (struct ui_file): Likewise.
5186 (remote_debug): Likewise.
5187 * remote-utils.h (remote_debug): Likewise,
5188 * server.c (remote_debug): Remove definition.
5189
3f52fdbc
KB
51902019-04-10 Kevin Buettner <kevinb@redhat.com>
5191
5192 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5193 when using a 64-bit gdbserver.
5194
b0319eaa
TT
51952019-04-09 Tom Tromey <tromey@adacore.com>
5196
5197 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5198
eedc3f4f
TT
51992019-04-08 Tom Tromey <tom@tromey.com>
5200
5201 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5202 throw.
5203 (linux_resume_one_lwp): Likewise.
5204
230d2906
TT
52052019-04-08 Tom Tromey <tom@tromey.com>
5206
5207 * gdbreplay.c: Update.
5208 * linux-low.c: Update.
5209 * server.c: Update.
5210
a70b8144
TT
52112019-04-08 Tom Tromey <tom@tromey.com>
5212
5213 * server.c: Use C++ exception handling.
5214 * linux-low.c: Use C++ exception handling.
5215 * gdbreplay.c: Use C++ exception handling.
5216
3d6e9d23
TT
52172019-04-08 Tom Tromey <tom@tromey.com>
5218
5219 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5220 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5221 (captured_main, main): Update.
5222 * gdbreplay.c (main): Update.
5223
0570503d
PFC
52242019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5225
5226 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5227 value in argument pointer, return 1 if the entry is found and 0
5228 otherwise. Move comment.
5229 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5230 * linux-low.h (linux_get_auxv): Declare.
5231 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5232
227a9e65
TT
52332019-04-05 Tom Tromey <tromey@adacore.com>
5234
5235 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5236 variables.
5237
69f4c9cc
AH
52382019-03-28 Alan Hayward <alan.hayward@arm.com>
5239
5240 * linux-low.c (AT_HWCAP2): Add define if not already included.
5241
974c89e0
AH
52422019-03-26 Alan Hayward <alan.hayward@arm.com>
5243
5244 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5245 (aarch64_arch_setup): Call linux_get_hwcap.
5246 * linux-arm-low.c (arm_get_hwcap): Remove function.
5247 (arm_read_description): Call linux_get_hwcap.
5248 * linux-low.c (linux_get_auxv): New function.
5249 (linux_get_hwcap): Likewise.
5250 (linux_get_hwcap2): Likewise.
5251 * linux-low.h (linux_get_hwcap): New declaration.
5252 (linux_get_hwcap2): Likewise.
5253 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5254 (ppc_arch_setup): Call linux_get_hwcap.
5255 * linux-s390-low.c (s390_get_hwcap): Remove function.
5256 (s390_arch_setup): Call linux_get_hwcap.
5257
1ef53e6b
AH
52582019-03-22 Alan Hayward <alan.hayward@arm.com>
5259 Jiong Wang <jiong.wang@arm.com>
5260
5261 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5262 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5263 to fail.
5264 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5265
ee4fbcfa
AH
52662019-03-22 Alan Hayward <alan.hayward@arm.com>
5267 Jiong Wang <jiong.wang@arm.com>
5268
5269 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5270 (aarch64_get_hwcap): New function.
5271 (aarch64_arch_setup): Read APIA hwcap.
5272
6dc0ebde
AH
52732019-03-22 Alan Hayward <alan.hayward@arm.com>
5274 Jiong Wang <jiong.wang@arm.com>
5275
5276 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5277 (initialize_low_tracepoint): Likewise.
5278 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5279 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5280 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5281 (aarch64_linux_read_description): Likewise.
5282 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5283
1163a4b7
JB
52842019-03-12 John Baldwin <jhb@FreeBSD.org>
5285
5286 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5287 i386_create_target_description for 'segments' parameter.
5288 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5289 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5290 * win32-i386-low.c (i386_arch_setup): Likewise.
5291
d3a70e03
TT
52922019-03-12 Tom Tromey <tromey@adacore.com>
5293
5294 * linux-low.c (iterate_over_lwps): Update.
5295
37991b4f
TT
52962019-03-06 Tom Tromey <tom@tromey.com>
5297
5298 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5299 (captured_main): Use SCOPE_EXIT.
5300
45950eb6
SDJ
53012019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5302
5303 * configure.srv: Use '$enable_unittest' instead of '$development'
5304 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5305 case.
5306
43ac54fc
TT
53072019-02-27 Tom Tromey <tromey@adacore.com>
5308
5309 * gdbreplay.c (logchar): Handle \r\n.
5310
df0da8a2
AH
53112019-02-07 Alan Hayward <alan.hayward@arm.com>
5312
5313 * linux-low.c (linux_attach): Add process before lwp.
5314 * server.c (attach_inferior): Check if already attached.
5315
1a5c2598
TT
53162019-02-07 Tom Tromey <tom@tromey.com>
5317
5318 * x86-tdesc.h: Rename include guard.
5319 * x86-low.h: Add include guard.
5320 * wincecompat.h: Rename include guard.
5321 * win32-low.h: Add include guard.
5322 * utils.h: Rename include guard.
5323 * tracepoint.h: Rename include guard.
5324 * tdesc.h: Rename include guard.
5325 * target.h: Rename include guard.
5326 * server.h: Rename include guard.
5327 * remote-utils.h: Rename include guard.
5328 * regcache.h: Rename include guard.
5329 * nto-low.h: Rename include guard.
5330 * notif.h: Add include guard.
5331 * mem-break.h: Rename include guard.
5332 * lynx-low.h: Add include guard.
5333 * linux-x86-tdesc.h: Add include guard.
5334 * linux-s390-tdesc.h: Add include guard.
5335 * linux-ppc-tdesc-init.h: Add include guard.
5336 * linux-low.h: Add include guard.
5337 * linux-aarch64-tdesc.h: Add include guard.
5338 * linux-aarch32-low.h: Add include guard.
5339 * inferiors.h: Rename include guard.
5340 * i387-fp.h: Rename include guard.
5341 * hostio.h: Rename include guard.
5342 * gdbthread.h: Rename include guard.
5343 * gdb_proc_service.h: Rename include guard.
5344 * event-loop.h: Rename include guard.
5345 * dll.h: Rename include guard.
5346 * debug.h: Rename include guard.
5347 * ax.h: Rename include guard.
5348
956cc47c
SN
53492018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5350
5351 PR gdb/23985
5352 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5353 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5354
a0707f3c
TT
53552019-01-25 Tom Tromey <tom@tromey.com>
5356
5357 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5358
0747795c
TT
53592019-01-25 Tom Tromey <tom@tromey.com>
5360
5361 * win32-low.c: Fix common/ includes.
5362 * win32-i386-low.c: Fix common/ includes.
5363 * tracepoint.c: Fix common/ includes.
5364 * thread-db.c: Fix common/ includes.
5365 * target.h: Fix common/ includes.
5366 * symbol.c: Fix common/ includes.
5367 * spu-low.c: Fix common/ includes.
5368 * server.h: Fix common/ includes.
5369 * server.c: Fix common/ includes.
5370 * remote-utils.c: Fix common/ includes.
5371 * regcache.h: Fix common/ includes.
5372 * regcache.c: Fix common/ includes.
5373 * nto-x86-low.c: Fix common/ includes.
5374 * notif.h: Fix common/ includes.
5375 * mem-break.h: Fix common/ includes.
5376 * lynx-low.c: Fix common/ includes.
5377 * lynx-i386-low.c: Fix common/ includes.
5378 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5379 * linux-x86-low.c: Fix common/ includes.
5380 * linux-low.c: Fix common/ includes.
5381 * inferiors.h: Fix common/ includes.
5382 * i387-fp.c: Fix common/ includes.
5383 * hostio.c: Fix common/ includes.
5384 * hostio-errno.c: Fix common/ includes.
5385 * gdbthread.h: Fix common/ includes.
5386 * gdbreplay.c: Fix common/ includes.
5387 * fork-child.c: Fix common/ includes.
5388 * event-loop.c: Fix common/ includes.
5389 * ax.c:
5390 (enum gdb_agent_op): Fix common/ includes.
5391
be6d4f74
TT
53922019-01-21 Tom Tromey <tom@tromey.com>
5393
5394 * tracepoint.c: Fix includes.
5395 * remote-utils.c: Fix includes.
5396 * linux-x86-low.c: Fix includes.
5397
66d91b39
JB
53982019-01-01 Joel Brobecker <brobecker@adacore.com>
5399
5400 * gdbreplay.c (gdbreplay_version): Update copyright year in
5401 version message.
5402 * server.c (gdbserver_version): Likewise.
5403
754e3168
AH
54042018-12-05 Alan Hayward <alan.hayward@arm.com>
5405
5406 * linux-low.c (add_lwp): Switch ordering.
5407
d105de22
TT
54082018-11-29 Tom Tromey <tom@tromey.com>
5409
5410 * win32-low.c (win32_join): Take pid, not process.
5411 * target.h (struct target_ops) <join>: Change argument type.
5412 (join_inferior): Change argument name.
5413 * spu-low.c (spu_join): Take pid, not process.
5414 * server.c (handle_detach): Preserve pid before destroying
5415 process.
5416 * lynx-low.c (lynx_join): Take pid, not process.
5417 * linux-low.c (linux_join): Take pid, not process.
5418
50138245
AH
54192018-11-23 Alan Hayward <alan.hayward@arm.com>
5420
5421 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5422 (aarch64_cannot_fetch_register): Likewise.
5423 (struct linux_target_ops): Update references.
5424
64f57f3d
PFC
54252018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5426
5427 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5428
8d619c01
EBM
54292018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5430
5431 * configure.srv (ipa_ppc_linux_regobj): Add
5432 powerpc-isa207-htm-vsx32l-ipa.o and
5433 powerpc-isa207-htm-vsx64l-ipa.o.
5434 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5435 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5436 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5437 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5438 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5439 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5440 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5441 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5442 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5443 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5444 (init_registers_powerpc_isa207_htm_vsx32l)
5445 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5446 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5447 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5448 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5449 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5450 (ppc_store_tm_ctarregset): New functions.
5451 (ppc_regsets): Add entries for HTM regsets.
5452 (ppc_arch_setup): Set htm in features struct when needed. Set
5453 sizes for the HTM regsets.
5454 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5455 (initialize_low_arch): Call
5456 init_registers_powerpc_isa207_htm_vsx32l and
5457 init_registers_powerpc_isa207_htm_vsx64l.
5458 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5459 PPC_TDESC_ISA207_HTM_VSX.
5460 (initialize_low_tracepoint): Call
5461 init_registers_powerpc_isa207_htm_vsx32l and
5462 init_registers_powerpc_isa207_htm_vsx64l.
5463
232bfb86
EBM
54642018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5465
5466 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5467 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5468 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5469 (ppc_store_pmuregset): New functions.
5470 (ppc_regsets): Add entries for ebb and pmu regsets.
5471 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5472 pmu regsets are available. Set sizes for these regsets.
5473
f2cf6173
EBM
54742018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5475
5476 * configure.srv (ipa_ppc_linux_regobj): Add
5477 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5478 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5479 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5480 rs6000/powerpc-isa207-vsx32l.xml, and
5481 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5482 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5483 <PPC_TDESC_ISA207_VSX>: New enum value.
5484 (init_registers_powerpc_isa207_vsx32l): Declare.
5485 (init_registers_powerpc_isa207_vsx64l): Declare.
5486 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5487 (ppc_store_tarregset): New function.
5488 (ppc_regsets): Add entry for the TAR regset.
5489 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5490 size for the TAR regsets.
5491 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5492 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5493 and init_registers_powerpc_isa207_vsx64l.
5494 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5495 (initialize_low_tracepoint): Call
5496 init_registers_powerpc_isa207_vsx32l and
5497 init_registers_powerpc_isa207_vsx64l.
5498
7ca18ed6
EBM
54992018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5500 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5501
5502 * configure.srv (ipa_ppc_linux_regobj): Add
5503 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5504 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5505 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5506 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5507 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5508 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5509 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5510 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5511 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5512 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5513 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5514 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5515 (ppc_hwcap): Add comment.
5516 (ppc_hwcap2): New global.
5517 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5518 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5519 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5520 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5521 when needed. Set sizes for the the DSCR and PPR regsets.
5522 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5523 (initialize_low_arch): Call
5524 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5525 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5526 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5527 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5528 (initialize_low_tracepoint): Call
5529 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5530 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5531
5c849b22
PFC
55322018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5533
5534 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5535
8ecfd7bd
SDJ
55362018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5537 Simon Marchi <simark@simark.ca>
5538
5539 * acinclude.m4: Include "../selftest.m4".
5540 * configure: Regenerate.
5541 * configure.ac: Use "GDB_AC_SELFTEST".
5542 * configure.srv: Use "$enable_unittests" instead of
5543 "$development" when checking whether unit tests have been
5544 enabled.
5545 * server.c (captured_main): Update message informing that
5546 selftests have been disabled.
5547
96643e35
TT
55482018-10-04 Tom Tromey <tom@tromey.com>
5549
5550 * configure: Rebuild.
5551
da4ae14a
TT
55522018-10-04 Tom Tromey <tom@tromey.com>
5553
5554 * server.c (handle_status): Rename inner "thread".
5555 (process_serial_event): Declare "res" in 'm' case.
5556 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5557 (iterate_over_lwps): Rename inner "thread".
5558 (linux_qxfer_libraries_svr4): Rename inner "len".
5559 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5560
7c619dbd
GB
55612018-10-01 Gary Benson <gbenson@redhat.com>
5562
5563 * gdb_proc_service.h: Moved common code to
5564 common/gdb_proc_service.h.
5565
3795e814
GB
55662018-10-01 Gary Benson <gbenson@redhat.com>
5567
5568 * gdb_proc_service.h: Synchronize comments and whitespace with
5569 GDB's version of this file.
5570
49b036f1
TT
55712018-09-25 Tom Tromey <tom@tromey.com>
5572
5573 * configure: Rebuild.
5574 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5575
8ff03f0b
SM
55762018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5577
5578 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5579 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5580 ($(IPA_LIB)): Sort IPA_OBJS.
5581
a1cd91dc
SM
55822018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5583
5584 * Makefile.in: Remove references to $(ADD_DEPS).
5585
752312ba
TT
55862018-09-16 Tom Tromey <tom@tromey.com>
5587
5588 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5589 variables.
5590 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5591 variables.
5592
f1628857
TT
55932018-09-05 Tom Tromey <tom@tromey.com>
5594
5595 * configure: Rebuild.
5596
ad202fcc
SM
55972018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5598
5599 PR build/23399
5600 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5601
d3d8724a
TT
56022018-08-27 Tom Tromey <tom@tromey.com>
5603
5604 PR build/23087:
5605 * configure: Rebuild.
5606
b4f183d2
TT
56072018-08-27 Tom Tromey <tom@tromey.com>
5608
5609 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5610 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5611 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5612 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5613 (s390x_emit_stack_adjust): Add casts to unsigned char.
5614
4e2aa472
SM
56152018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5616
5617 PR gdb/23374
5618 PR gdb/23375
5619 * server.h (struct client_state) <disable_randomization>:
5620 Initialize to 1.
5621
cf4088a9
SM
56222018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5623
5624 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5625 variable.
5626 (mips_supply_ptrace_register): Likewise.
5627
a0de763e
TT
56282018-07-22 Tom Tromey <tom@tromey.com>
5629
5630 * configure: Rebuild.
5631
b0a7723d
TT
56322018-07-22 Tom Tromey <tom@tromey.com>
5633
5634 * win32-low.c (win32_create_inferior): Remove unused variables.
5635 * gdbreplay.c (remote_open): Remove unused variable.
5636 * remote-utils.c (remote_prepare): Remove unused variable.
5637 * x86-tdesc.h (X86_TDESC_H): Define.
5638 (amd64_expedite_regs): Define conditionally.
5639 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5640 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5641 * remote-utils.c (readchar): Remove unused variable.
5642
a780ef4f
PA
56432018-07-13 Pedro Alves <palves@redhat.com>
5644
5645 * linux-low.c (linux_kill): Change parameter to process_info
5646 pointer instead of pid. Adjust.
5647 * lynx-low.c (lynx_kill): Likewise.
5648 * nto-low.c (nto_kill): Likewise.
5649 * spu-low.c (spu_kill): Likewise.
5650 * win32-low.c (win32_kill): Likewise.
5651 * server.c (handle_v_kill, kill_inferior_callback)
5652 (detach_or_kill_for_exit): Adjust.
5653 * target.c (kill_inferior): Change parameter to process_info
5654 pointer instead of pid. Adjust.
5655 * target.h (struct target_ops) <kill>: Change parameter to
5656 process_info pointer instead of pid. Adjust all implementations
5657 and callers.
5658 (kill_inferior): Likewise.
5659
ef2ddb33
PA
56602018-07-13 Pedro Alves <palves@redhat.com>
5661
5662 * linux-low.c (linux_detach, linux_join): Change parameter to
5663 process_info pointer instead of pid. Adjust.
5664 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5665 * nto-low.c (nto_detach): Likewise.
5666 * spu-low.c (spu_detach, spu_join): Likewise.
5667 * win32-low.c (win32_detach, win32_join): Likewise.
5668 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5669 * target.h (struct target_ops) <detach, join>: Change parameter to
5670 process_info pointer instead of pid. Adjust all implementations
5671 and callers.
5672 (detach_inferior, join_inferior): Rename 'pid' parameter to
5673 'proc'.
5674
c7ab0aef
SDJ
56752018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5676 Jan Kratochvil <jan.kratochvil@redhat.com>
5677 Paul Fertser <fercerpav@gmail.com>
5678 Tsutomu Seki <sekiriki@gmail.com>
5679
5680 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5681 (OBS): Add 'common/netstuff.o'.
5682 (GDBREPLAY_OBS): Likewise.
5683 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5684 (remote_open): Implement support for IPv6
5685 connections.
5686 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5687 and 'wspiapi.h'.
5688 (handle_accept_event): Accept connections from IPv6 sources.
5689 (remote_prepare): Handle IPv6-style hostnames; implement
5690 support for IPv6 connections.
5691 (remote_open): Implement support for printing connections from
5692 IPv6 sources.
5693
31445d10
PA
56942018-07-11 Pedro Alves <palves@redhat.com>
5695
5696 PR gdb/23377
5697 * mem-break.c (any_persistent_commands): Add process_info
5698 parameter and use it instead of relying on the current process.
5699 Change return type to bool.
5700 * mem-break.h (any_persistent_commands): Add process_info
5701 parameter and change return type to bool.
5702 * server.c (handle_detach): Remove require_running_or_return call.
5703 Look up the process_info for the process we're about to detach.
5704 If not found, return back error to GDB. Adjust
5705 any_persistent_commands call to pass down a process pointer.
5706
cb197132
PA
57072018-07-11 Pedro Alves <palves@redhat.com>
5708
5709 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5710 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5711 instead of collect_register_by_name.
5712 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5713 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5714
1b919490
VB
57152018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5716 Pedro Alves <palves@redhat.com>
5717
5718 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5719
d7e15655
TT
57202018-07-03 Tom Tromey <tom@tromey.com>
5721
5722 * linux-low.c: Update.
5723 * lynx-low.c: Update.
5724 * mem-break.c: Update.
5725 * nto-low.c: Update.
5726 * remote-utils.c: Update.
5727 * server.c: Update.
5728 * spu-low.c: Update.
5729 * target.c: Update.
5730 * win32-low.c: Update.
5731
26a57c92
TT
57322018-07-03 Tom Tromey <tom@tromey.com>
5733
5734 * server.c: Update.
5735
0e998d96
TT
57362018-07-03 Tom Tromey <tom@tromey.com>
5737
5738 * linux-low.c: Update.
5739
cc6bcb54
TT
57402018-07-03 Tom Tromey <tom@tromey.com>
5741
5742 * target.c: Update.
5743
e38504b3
TT
57442018-07-03 Tom Tromey <tom@tromey.com>
5745
5746 * linux-low.c: Update.
5747 * linux-mips-low.c: Update.
5748 * lynx-low.c: Update.
5749 * nto-low.c: Update.
5750 * remote-utils.c: Update.
5751 * server.c: Update.
5752 * spu-low.c: Update.
5753 * target.c: Update.
5754 * thread-db.c: Update.
5755
e99b03dc
TT
57562018-07-03 Tom Tromey <tom@tromey.com>
5757
5758 * linux-low.c: Update.
5759 * linux-mips-low.c: Update.
5760 * lynx-low.c: Update.
5761 * mem-break.c: Update.
5762 * nto-low.c: Update.
5763 * remote-utils.c: Update.
5764 * server.c: Update.
5765 * spu-low.c: Update.
5766 * target.c: Update.
5767 * tracepoint.c: Update.
5768
f2907e49
TT
57692018-07-03 Tom Tromey <tom@tromey.com>
5770
5771 * linux-low.c: Update.
5772 * linux-ppc-low.c: Update.
5773 * linux-x86-low.c: Update.
5774 * proc-service.c: Update.
5775 * server.c: Update.
5776 * spu-low.c: Update.
5777 * thread-db.c: Update.
5778 * win32-low.c: Update.
5779
fd79271b
TT
57802018-07-03 Tom Tromey <tom@tromey.com>
5781
5782 * linux-low.c: Update.
5783 * lynx-low.c: Update.
5784 * nto-low.c: Update.
5785 * remote-utils.c: Update.
5786 * spu-low.c: Update.
5787 * thread-db.c: Update.
5788 * win32-low.c: Update.
5789
c0867626
SDJ
57902018-06-29 Joel Brobecker <brobecker@adacore.com>
5791
5792 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5793 parameter in call to 'amd64_create_target_description'.
5794
2512d7ef
JK
57952018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5796
5797 * x86-tdesc.h: Remove executable permission flag.
5798
d0ac1c44
SM
57992018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5800
5801 * configure.ac: Remove AC_PREREQ, add missing quoting.
5802 * configure: Re-generate.
5803 * config.in: Re-generate.
5804 * aclocal.m4: Re-generate.
5805
c4eb05ff
SM
58062018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5807
5808 * tracepoint.h (current_traceframe): Remove declaration.
5809
02895270
AH
58102018-06-18 Alan Hayward <alan.hayward@arm.com>
5811
5812 * linux-aarch64-low.c (is_sve_tdesc): New function.
5813 (aarch64_sve_regs_copy_to_regcache): Likewise.
5814 (aarch64_sve_regs_copy_from_regcache): Likewise.
5815 (aarch64_regs_info): Add SVE checks.
5816 (initialize_low_arch): Initialize SVE.
5817
e9902bfc
AH
58182018-06-18 Alan Hayward <alan.hayward@arm.com>
5819
5820 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5821
fefa175e
AH
58222018-06-11 Alan Hayward <alan.hayward@arm.com>
5823
5824 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5825 (initialize_low_tracepoint): Likewise
5826 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5827 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5828 param.
5829 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5830 checks.
5831 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5832
b91ad3ff
AH
58332018-06-11 Alan Hayward <alan.hayward@arm.com>
5834
5835 * server.h (PBUFSIZ): Increase size
5836
f868386e
AH
58372018-06-11 Alan Hayward <alan.hayward@arm.com>
5838
5839 * regcache.c (regcache::raw_compare): New function.
5840 * regcache.h (regcache::raw_compare): New declaration.
5841
9c861883
AH
58422018-06-11 Alan Hayward <alan.hayward@arm.com>
5843
5844 * regcache.c (new_register_cache): Use new.
5845 (free_register_cache): Use delete.
5846 (register_data): Use const.
5847 (supply_register): Move body inside regcache.
5848 (regcache::raw_supply): New override function.
5849 (collect_register): Move body inside regcache.
5850 (regcache::raw_collect): New override function.
5851 (regcache::get_register_status): New override function.
5852 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5853
40591844
TT
58542018-06-09 Tom Tromey <tom@tromey.com>
5855
5856 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5857 declare queue.
5858 (event_queue): Use std::queue.
5859 (gdb_event_xfree): Remove.
5860 (initialize_event_loop, process_event, wait_for_event): Update.
5861
6341380d
SC
58622018-06-08 Stan Cox <scox@redhat.com>
5863
5864 * win32-low.c (win32_create_inferior): last_ptid and last_status
5865 moved to client_state.
5866
03349c93
PA
58672018-06-08 Pedro Alves <palves@redhat.com>
5868
5869 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5870 common/common-exceptions.o, common/common-utils.o,
5871 common/errors.o, common/print-utils.o and utils.o.
5872 * gdbreplay.c: Include "common-defs.h" instead of the two
5873 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5874 string.h or alloca.h.
5875 (perror_with_name): Delete.
5876 (remote_open): Use xstrdup instead of strdup.
5877 (main): Rename to ...
5878 (captured_main): ... this.
5879 (main): New.
5880
8dcc53b3
TT
58812018-06-08 Tom Tromey <tom@tromey.com>
5882
5883 * linux-low.c (linux_low_read_btrace): Update.
5884
c12a5089
SC
58852018-06-04 Stan Cox <scox@redhat.com>
5886
5887 * server.h (struct client_state): New.
5888 * server.c (cont_thread, general_thread, multi_process)
5889 (report_fork_events, report_vfork_events, report_exec_events)
5890 (report_thread_events, swbreak_feature, hwbreak_feature)
5891 (vCont_supported, disable_randomization, pass_signals)
5892 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5893 Moved to client_state.
5894 * remote-utils.c (remote_debug, noack_mode)
5895 (transport_is_reliable): Moved to client_state.
5896 * tracepoint.c (current_traceframe): Moved to client_state.
5897
5898 Update all callers.
5899 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5900 linux-low.c, remote-utils.h, target.c: Use client_state.
5901
122394f1
AH
59022018-05-31 Alan Hayward <alan.hayward@arm.com>
5903
5904 * configure.srv: Add new c/h file.
5905
95228a0d
AH
59062018-05-31 Alan Hayward <alan.hayward@arm.com>
5907
5908 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5909 null VQ.
5910
d8dab6c3
MR
59112018-05-25 Maciej W. Rozycki <macro@mips.com>
5912
5913 * gdb.arch/mips-fpregset-core.exp: New test.
5914 * gdb.arch/mips-fpregset-core.c: New test source.
5915
81e25b7c
EK
59162018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5917
5918 PR server/23198
5919 * hostio.c (require_int): Do not report overflow for integers
5920 between 0xfffffff and 0x7fffffff.
5921
7e947ad3
MR
59222018-05-22 Maciej W. Rozycki <macro@mips.com>
5923
5924 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5925 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5926 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5927 functions.
5928 (the_low_target): Wire them.
5929
1d75a658
PFC
59302018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5931
5932 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5933 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5934 mode. Call collect_register_by_name with vscr using
5935 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5936 (ppc_store_vrregset): Add and set vscr_offset variable as in
5937 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5938 vscr_offset.
5939
d078308a
PFC
59402018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5941
5942 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5943 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5944 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5945
7273b5fc
PFC
59462018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5947
5948 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5949 (ppc_store_vsxregset): Likewise.
5950 (ppc_fill_vrregset): Likewise.
5951 (ppc_store_vrregset): Likewise.
5952 (ppc_fill_evrregset): Likewise.
5953 (ppc_store_evrregset): Likewise.
5954 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5955 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5956 needed.
5957
2e077f5e
PFC
59582018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5959
5960 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5961 wordsize of the inferior. Call ppc_linux_target_wordsize.
5962
bd64614e
PFC
59632018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5964
5965 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5966 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5967 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5968 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5969 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5970 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5971 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5972 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5973 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5974 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5975 (tdesc_powerpc_e500l): Remove.
5976 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5977 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5978 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5979 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5980 linux-ppc-tdesc.h.
5981 (ppc_arch_setup): Remove target description matching code. Fill a
5982 ppc_linux_features struct and call ppc_linux_match_description
5983 with it.
5984
75d74cca
MR
59852018-05-22 Maciej W. Rozycki <macro@mips.com>
5986
5987 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5988 width of the requested register exceeds the width of the
5989 `ptrace' data type.
5990 (mips_cannot_store_register): Likewise.
5991
e4439e43
MR
59922018-05-21 Maciej W. Rozycki <macro@mips.com>
5993
5994 * linux-mips-low.c (mips_fetch_register): New function. Update
5995 preceding comment.
5996 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5997 (the_low_target): Wire `mips_fetch_register'.
5998
55271bf9
JB
59992018-05-10 Joel Brobecker <brobecker@adacore.com>
6000
6001 * lynx-i386-low.c (LYNXOS_178): New macro.
6002 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6003 the layout on LynxOS-178.
6004 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6005 handle floating point registers that are not supported by
6006 LynxOS-178.
6007
1a34f210
TT
60082018-05-10 Tom Tromey <tom@tromey.com>
6009
6010 * configure: Rebuild.
6011
190852c8
JB
60122018-05-10 Joel Brobecker <brobecker@adacore.com>
6013
6014 PR server/23158:
6015 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6016 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6017 Use it to set the expedite_regs field in the given tdesc.
6018 * x86-tdesc.h: New file.
6019 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6020 Adjust following the addition of the new expedite_regs parameter
6021 to init_target_desc.
6022 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6023 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6024 (i386_linux_read_description, amd64_linux_read_description):
6025 Adjust following the addition of the new expedite_regs parameter
6026 to init_target_desc.
6027 * lynx-i386-low.c: #include "x86-tdesc.h".
6028 (lynx_i386_arch_setup): Adjust following the addition of the new
6029 expedite_regs parameter to init_target_desc.
6030 * nto-x86-low.c: #include "x86-tdesc.h".
6031 (nto_x86_arch_setup): Adjust following the addition of the new
6032 expedite_regs parameter to init_target_desc.
6033 * win32-i386-low.c: #include "x86-tdesc.h".
6034 (i386_arch_setup): Adjust following the addition of the new
6035 expedite_regs parameter to init_target_desc.
6036
7dbac825
JB
60372018-05-10 Joel Brobecker <brobecker@adacore.com>
6038
6039 PR server/23158:
6040 * win32-low.c (win32_create_inferior): Add call to my_wait
6041 setting last_status global.
6042
906994d9
JB
60432018-05-10 Joel Brobecker <brobecker@adacore.com>
6044
6045 PR server/23158:
6046 * win32-low.c (create_process): Only call gdb_tilde_expand if
6047 inferior_cwd is not NULL.
6048
8ee22052
AB
60492018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6050
6051 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6052 registers to the cache if their values have changed.
6053 (i387_xsave_to_cache): Provide default values for x87 control
6054 registers when these features are available, but disabled.
6055 * regcache.c (supply_register_by_name_zeroed): New function.
6056 * regcache.h (supply_register_by_name_zeroed): Declare new
6057 function.
6058
aff689d3
TT
60592018-05-07 Tom Tromey <tom@tromey.com>
6060
6061 * configure: Rebuild.
6062
85e26832
TT
60632018-05-04 Tom Tromey <tom@tromey.com>
6064
6065 * configure: Rebuild.
6066
a3b60e45
JK
60672018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6068 Pedro Alves <palves@redhat.com>
6069
6070 * linux-aarch64-low.c (aarch64_stopped_data_address):
6071 Likewise.
6072
632e107b
TT
60732018-04-27 Tom Tromey <tom@tromey.com>
6074
6075 * configure: Rebuild.
6076
458412c3
TT
60772018-04-23 Tom Tromey <tom@tromey.com>
6078
6079 * configure: Rebuild.
6080
f31c089e
SM
60812018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6082
6083 * Makefile.in (depcomp): Add "..".
6084 (all_deps_files): New and use it.
6085
b319b098
AH
60862018-04-18 Alan Hayward <alan.hayward@arm.com>
6087
6088 * configure.srv (aarch64*-*-linux*): Don't include xml.
6089 (i[34567]86-*-cygwin*): Likewise.
6090 (i[34567]86-*-linux*): Likewise.
6091 (i[34567]86-*-lynxos*): Likewise.
6092 (i[34567]86-*-mingw32ce*): Likewise.
6093 (i[34567]86-*-mingw*): Likewise.
6094 (i[34567]86-*-nto*): Likewise.
6095 (tic6x-*-uclinux): Likewise.
6096 (x86_64-*-linux*): Likewise.
6097 (x86_64-*-mingw*): Likewise.
6098 (x86_64-*-cygwin*): Likewise.
6099
3b74854b
AH
61002018-04-18 Alan Hayward <alan.hayward@arm.com>
6101
6102 * tdesc.c: Remove xml parameter.
6103
e98577a9
AH
61042018-04-18 Alan Hayward <alan.hayward@arm.com>
6105
6106 * server.c (get_features_xml): Remove cast.
6107 * tdesc.c (void target_desc::accept): Fill in function.
6108 (tdesc_get_features_xml): Remove old xml creation.
6109 (print_xml_feature::visit_pre): Add xml vistor.
6110 * tdesc.h (struct target_desc): Make xmltarget mutable.
6111 (tdesc_get_features_xml): Remove declaration.
6112
d278f585
AH
61132018-04-18 Alan Hayward <alan.hayward@arm.com>
6114
6115 * tdesc.c (tdesc_architecture_name): Add new function.
6116 (tdesc_osabi_name): Likewise.
6117 (tdesc_get_features_xml): Use new functions.
6118
eee8a18d
AH
61192018-04-18 Alan Hayward <alan.hayward@arm.com>
6120
6121 * tdesc.c (tdesc_create_flags): Remove.
6122 (tdesc_add_flag): Likewise.
6123 (tdesc_named_type): Likewise.
6124 (tdesc_create_union): Likewise.
6125 (tdesc_create_struct): Likewise.
6126 (tdesc_create_vector): Likewise.
6127 (tdesc_add_bitfield): Likewise.
6128 (tdesc_add_field): Likewise.
6129 (tdesc_set_struct_size): Likewise.
6130
82ec9bc7
AH
61312018-04-18 Alan Hayward <alan.hayward@arm.com>
6132
6133 * tdesc.c (~target_desc): Remove implictly deleted items.
6134 (init_target_desc): Iterate all features.
6135 (tdesc_get_features_xml): Use vector.
6136 (tdesc_create_feature): Create feature.
6137 * tdesc.h (tdesc_feature) Remove
6138 (target_desc): Add features.
6139
ea3e7d71
AH
61402018-04-18 Alan Hayward <alan.hayward@arm.com>
6141
6142 * Makefile.in: Add common/tdesc.c
6143 * tdesc.c (init_target_desc): init all reg_defs from register
6144 vector.
6145 (tdesc_create_reg): Create tdesc_reg.
6146 * tdesc.h (tdesc_feature): Add register vector.
6147
17d08cd4
SM
61482018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6149
6150 * tdesc.h (struct target_desc) <features>: Change type to
6151 std::vector<std::string>.
6152 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6153 changes.
6154 (tdesc_get_features_xml): Likewise.
6155 (tdesc_create_feature): Likewise.
6156
5cd3e386
AH
61572018-03-26 Alan Hayward <alan.hayward@arm.com>
6158
6159 * regcache.c (find_register_by_number): Return a ref.
6160 (find_regno): Use references.
6161 (register_size): Likewise.
6162 (register_data): Likewise.
6163 * tdesc.c (target_desc::~target_desc): Remove free calls.
6164 (target_desc::operator==): Use std::vector compare.
6165 (init_target_desc): Use reference.
6166 (tdesc_create_reg): Use reg constructors.
6167 * tdesc.h (struct target_desc): Replace pointer with object.
6168
dff7492c
AH
61692018-03-23 Alan Hayward <alan.hayward@arm.com>
6170
6171 * regcache.c (find_register_by_number): Make static.
6172 (find_regno): Use find_register_by_number
6173 * regcache.h (struct reg): Remove declaration.
6174
d80e5242
AH
61752018-03-23 Alan Hayward <alan.hayward@arm.com>
6176
6177 * tdesc.c (target_desc::~target_desc): Move to here.
6178 (target_desc::operator==): Likewise.
6179 * tdesc.h (target_desc::~target_desc): Move from here.
6180 (target_desc::operator==): Likewise.
6181
f69c5afb
AA
61822018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6183
6184 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6185
ce29f843
AA
61862018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6187
6188 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6189 S390_TDESC_GS.
6190 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6191 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6192 and init_registers_s390_gs_linux64.
6193
c49bd90b
AA
61942018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6195
6196 * linux-s390-low.c (s390_fill_gs): Remove function.
6197 (s390_fill_gsbc): Remove function.
6198 (s390_regsets): Set fill functions for the guarded storage regsets
6199 to NULL.
6200
7edb9bd3
AA
62012018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6202
6203 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6204 the word size. Add comment.
6205 (s390_get_wordsize): New function.
6206 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6207 pswm with it. Instead, use s390_get_wordsize to determine the
6208 word size first and derive the correct tdesc from that directly.
6209
39be3c7e
SM
62102018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6211
6212 * Makefile.in: Include silent-rules.mk.
6213 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6214 (COMPILE): Add ECHO_CXX.
6215 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6216 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6217 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6218 (version-generated.c): Add ECHO_GEN.
6219 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6220 (IPAGENT_COMPILE): Add ECHO_CXX.
6221 (%-generated.c): Add ECHO_REGDAT.
6222
3ae9ce5d
TT
62232018-03-14 Tom Tromey <tom@tromey.com>
6224
6225 PR cli/14977:
6226 * ax.c (ax_printf): Special case for NULL.
6227
e6a58aa8
SM
62282018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6229
6230 * linux-low.c (linux_qxfer_libraries_svr4): Use
6231 xml_escape_text_append.
6232
f6e8a41e
SM
62332018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6234
6235 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6236
b9671caf
SM
62372018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6238
6239 * server.c (handle_general_set): Remove unnecessary xstrdup.
6240
e80aaf61
SM
62412018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6242
6243 * server.c (parse_debug_format_options): Adjust to
6244 delim_string_to_char_ptr_vec changes.
6245 * thread-db.c (thread_db_load_search): Adjust to
6246 dirnames_to_char_ptr_vec changes.
6247
b1223e78
MM
62482018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6249
6250 * target.h (target_enable_btrace, target_disable_btrace)
6251 (target_read_btrace, target_read_btrace_conf): Turn macro into
6252 inline function. Throw error if target method is not defined.
6253 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6254 check for btrace target method. Be prepared to handle exceptions
6255 from btrace target methods.
6256
81561546
SDJ
62572018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6258
6259 * server.c (captured_main): Change order of error message printed
6260 when the current working directory cannot be found.
6261
25e3c82c
SDJ
62622018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6263
6264 * server.c: Include "filenames.h" and "pathstuff.h".
6265 (program_name): Delete variable.
6266 (program_path): New anonymous class.
6267 (get_exec_wrapper): Use "program_path" instead of
6268 "program_name".
6269 (handle_v_run): Likewise.
6270 (captured_main): Likewise.
6271 (process_serial_event): Likewise.
6272
b4987c95
SDJ
62732018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6274
6275 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6276 (OBJS): Add "pathstuff.o".
6277 * server.c (current_directory): New global variable.
6278 (captured_main): Initialize "current_directory".
6279
f46cd62a
AH
62802018-02-26 Alan Hayward <alan.hayward@arm.com>
6281
6282 * tdesc.c: Use common/tdesc.h.
6283 * tdesc.h: Likewise.
6284
a543c5ca
AH
62852018-02-20 Alan Hayward <alan.hayward@arm.com>
6286 Simon Marchi <simon.marchi@ericsson.com>
6287
6288 * Makefile.in: Switch order of make rules.
6289
b5884fa7
AH
62902018-02-19 Alan Hayward <alan.hayward@arm.com>
6291
6292 * Makefile.in: Add common directory in build.
6293 * configure.ac: Add common reference.
6294 * configure: Regenerate.
6295
de6242d3
MM
62962018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6297
6298 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6299 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6300 * spu-low.c (spu_target_ops): Likewise.
6301 * win32-low.c (win32_target_ops): Likewise.
6302 * server.c (supported_btrace_packets): Report packets unconditionally.
6303 * target.h (target_ops) <supports_btrace>: Remove.
6304 (target_supports_btrace): Remove.
6305
9ee23a85
MM
63062018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6307
6308 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6309 (handle_btrace_disable): Change return type to void. Use exceptions
6310 to report errors.
6311 (handle_btrace_general_set): Catch exception and copy message to
6312 return message.
6313
8ce47547
TT
63142018-02-08 Tom Tromey <tom@tromey.com>
6315
6316 * linux-low.c (install_software_single_step_breakpoints): Use
6317 make_scoped_restore.
6318 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6319 (do_restore_current_thread_cleanup): Remove.
6320 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6321 declare.
6322
45dd3607
TT
63232018-02-08 Tom Tromey <tom@tromey.com>
6324
6325 * mem-break.c (set_raw_breakpoint_at): Use
6326 gdb::unique_xmalloc_ptr.
6327
e671cd59
PA
63282018-01-30 Pedro Alves <palves@redhat.com>
6329
6330 PR gdb/13211
6331 * target.c (target_terminal::terminal_state): Rename to ...
6332 (target_terminal::m_terminal_state): ... this.
6333
a0aad537
JC
63342018-01-19 James Clarke <jrtc27@jrtc27.com>
6335
6336 * linux-low.c (handle_extended_wait): Surround call to
6337 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6338
4d9b86e1
SM
63392018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6340
6341 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6342 linux_ptrace_attach_fail_reason_string now returning an
6343 std::string.
6344 (linux_attach): Likewise.
6345 * thread-db.c (attach_thread): Likewise.
6346
f517c180
EA
63472018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6348
6349 PR gdb/21559
6350 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6351 checking for fs_base/gs_base fields in struct user_regs_struct.
6352 * configure: Regenerate.
6353
9a70f35c
YQ
63542018-01-16 Yao Qi <yao.qi@linaro.org>
6355
6356 PR gdb/18749
6357 * linux-low.c (fetch_register): Call supply_register instead of
6358 error.
6359
605fd3c6
YQ
63602018-01-08 Yao Qi <yao.qi@linaro.org>
6361 Simon Marchi <simon.marchi@ericsson.com>
6362
6363 * Makefile.in (OBS): Remove selftest.o.
6364 * configure.ac: Set srv_selftest_objs if $development is true.
6365 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6366 * configure: Re-generated.
6367 * server.c (captured_main): Wrap variable selftest_filter with
6368 GDB_SELF_TEST.
6369
2cc05030
SM
63702018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6371
6372 * server.c (parse_debug_format_options): Return std::string.
6373 (handle_monitor_command, captured_main): Adjust.
6374
e379cee6
PA
63752018-01-05 Pedro Alves <palves@redhat.com>
6376
6377 PR gdb/18653
6378 * server.c (captured_main): Pass quiet=false to
6379 save_original_signals_state.
6380
82e1e79a
JB
63812018-01-01 Joel Brobecker <brobecker@adacore.com>
6382
6383 * gdbreplay.c (gdbreplay_version): Update copyright year in
6384 version message.
6385 * server.c (gdbserver_version): Likewise.
6386
8e481c3b
TT
63872017-12-08 Tom Tromey <tom@tromey.com>
6388
6389 * ax.c (ax_printf): Update.
6390
a8806230
YQ
63912017-12-07 Yao Qi <yao.qi@linaro.org>
6392
6393 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6394 aarch64_linux_read_description.
6395 * linux-amd64-ipa.c (idx2mask): New array.
6396 (get_ipa_tdesc): Move idx2mask out.
6397 (initialize_low_tracepoint): Initialize target descriptions.
6398 * linux-i386-ipa.c (idx2mask): New array.
6399 (get_ipa_tdesc): Move idx2mask out.
6400 (initialize_low_tracepoint): Initialize target descriptions.
6401
d4a0e8b5
SM
64022017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6403
6404 * tdesc.c (struct tdesc_type): Change return type.
6405 (tdesc_add_flag): Change parameter type.
6406 (tdesc_add_bitfield): Likewise.
6407 (tdesc_add_field): Likewise.
6408 (tdesc_set_struct_size): Likewise.
6409
798a7429
SM
64102017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6411
6412 * regcache.c (registers_to_string): Remove unused variable.
6413
c0e15c9b
SM
64142017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6415
6416 * inferiors.c (for_each_inferior_with_data): Remove.
6417 * inferiors.h (for_each_inferior_with_data): Remove.
6418 * server.c (handle_qxfer_threads_worker): Change parameter type.
6419 (handle_qxfer_threads_proper): Use for_each_thread.
6420
f0045347
SM
64212017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6422
6423 * inferiors.c (for_each_inferior): Remove.
6424 (clear_inferiors): Use for_each_thread.
6425 * inferiors.h (for_each_inferior): Remove.
6426 * linux-low.c (linux_wait_for_event_filtered): Use
6427 for_each_thread.
6428 (linux_stabilize_threads): Likewise.
6429 * regcache.c (regcache_release): Likewise.
6430 * server.c (gdb_wants_all_threads_stopped): Likewise.
6431 (clear_pending_status_callback): Remove.
6432 (handle_status): Use for_each_thread.
6433 (captured_main): Likewise.
6434 * win32-low.c (child_init_thread_list): Likewise.
6435 (win32_clear_inferiors): Likewise.
6436 (fake_breakpoint_event): Likewise.
6437
9521758b
SM
64382017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6439
6440 * inferiors.h (find_inferior): Remove.
6441 * inferiors.c (find_inferior): Remove.
6442
8f86d7aa
SM
64432017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6444
6445 * linux-low.c (resume_status_pending_p): Update comment.
6446 (need_step_over_p): Update comment.
6447
e2b44075
SM
64482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6449
6450 * linux-low.c (proceed_one_lwp): Return void, change parameter
6451 type.
6452 (unsuspend_and_proceed_one_lwp): Likewise.
6453 (proceed_all_lwps): Use for_each_thread.
6454 (unstop_all_lwps): Likewise.
6455
c80825ff
SM
64562017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6457
6458 * linux-low.c (linux_resume_one_thread): Return void, take
6459 parameter directly.
6460 (linux_resume): Use for_each_thread.
6461
df3e4dbe
SM
64622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6463
6464 * linux-low.c (send_sigstop_callback): Return void, change
6465 parameter type. Rename to...
6466 (send_sigstop): ... this.
6467 (suspend_and_send_sigstop_callback): Return void, change parameter
6468 type. Rename to...
6469 (suspend_and_send_sigstop): ... this.
6470 (stop_all_lwps): Use for_each_thread.
6471
5a6b0a41
SM
64722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6473
6474 * linux-low.c (lwp_running): Return bool, remove unused
6475 argument.
6476 (linux_stabilize_threads): Use find_thread.
6477
39a64da5
SM
64782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6479
6480 * linux-low.c (select_singlestep_lwp_callback): Remove.
6481 (count_events_callback): Remove.
6482 (select_event_lwp_callback): Remove.
6483 (select_event_lwp): Use find_thread/for_each_thread.
6484
a1385b7b
SM
64852017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6486
6487 * linux-low.c (not_stopped_callback): Return bool, take filter
6488 argument directly.
6489 (linux_wait_for_event_filtered): Use find_thread.
6490 (linux_wait_1): Likewise.
6491
454296a2
SM
64922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6493
6494 * linux-low.c (same_lwp): Remove.
6495 (find_lwp_pid): Use find_thread.
6496
6b2a85da
SM
64972017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6498
6499 * linux-low.c (delete_lwp_callback): Remove.
6500 (linux_mourn): Use for_each_thread.
6501
798a38e8
SM
65022017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6503
6504 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6505 args parameter, don't check for pid.
6506 (linux_detach): Use for_each_thread.
6507
e4eb0dec
SM
65082017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6509
6510 * linux-low.c (struct counter): Remove.
6511 (second_thread_of_pid_p): Remove.
6512 (last_thread_of_process_p): Use find_thread.
6513
83e1b6c1
SM
65142017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6515
6516 * inferiors.c (find_inferior_in_random): Remove.
6517 * inferiors.h (find_inferior_in_random): Remove.
6518 * linux-low.c (status_pending_p_callback): Return bool, accept
6519 parameter ptid directly.
6520 (linux_wait_for_event_filtered): Use find_thread_in_random.
6521 (linux_wait_1): Likewise.
6522
8dc7b443
SM
65232017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6524
6525 * inferiors.c (find_inferior_id): Remove.
6526 (find_thread_ptid): Move implemention from find_inferior_id to
6527 here.
6528 * inferiors.h (find_inferior_id): Remove.
6529 * server.c (handle_status): Use find_thread_ptid.
6530 (process_serial_event): Likewise.
6531 * thread-db.c (find_one_thread): Likewise.
6532 (thread_db_thread_handle): Likewise.
6533 * win32-low.c (thread_rec): Likewise.
6534 (child_delete_thread): Likewise.
6535 (win32_thread_alive): Likewise.
6536 (get_child_debug_event): Likewise.
6537
da25033c
SM
65382017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6539
6540 * linux-mips-low.c (update_watch_registers_callback): Return
6541 void, remove pid_p parameter, don't check for pid.
6542 (mips_insert_point, mips_remove_point): Use for_each_thread.
6543
c91bb56b
SM
65442017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6545
6546 * lynx.low (lynx_delete_thread_callback): Remove.
6547 (lynx_mourn): Use for_each_thread.
6548
634a3254
SM
65492017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6550
6551 * regcache.c (regcache_invalidate_one): Remove.
6552 (regcache_invalidate_pid): use for_each_thread.
6553
41272101
TT
65542017-11-26 Tom Tromey <tom@tromey.com>
6555
6556 * linux-low.c (linux_create_inferior): Update.
6557
f5291a6f
UW
65582017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6559
6560 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6561
6654d750
AH
65622017-11-24 Alan Hayward <alan.hayward@arm.com>
6563
6564 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6565 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6566 * linux-aarch64-tdesc-selftest.c: New file.
6567 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6568
65692017-11-24 Alan Hayward <alan.hayward@arm.com>
6570
6571 * configure.srv: Add new file.
6572 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6573 * linux-aarch64-tdesc-selftest.c: New file.
6574 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6575
49bdb7ee
AH
65762017-11-24 Alan Hayward <alan.hayward@arm.com>
6577
6578 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6579 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6580 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6581
d6d7ce56
AH
65822017-11-24 Alan Hayward <alan.hayward@arm.com>
6583
6584 * configure.srv: Add new files.
6585 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6586 aarch64_linux_read_description.
6587 * linux-aarch64-low.c (aarch64_linux_read_description):
6588 Merge with aarch64_arch_setup.
6589 (aarch64_arch_setup): Call aarch64_linux_read_description.
6590 * linux-aarch64-tdesc.c: New file.
6591 * linux-aarch64-tdesc.h: New file.
6592
506fe5f4
YQ
65932017-11-24 Yao Qi <yao.qi@linaro.org>
6594
6595 * configure.srv: Set $srv_regobj for tic6x-linux.
6596 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6597 (tic6x_read_description): Move some code to tic6x_arch_setup.
6598 (tic6x_tdesc_test): New function.
6599 (initialize_low_arch): Call selftests::register_test.
6600
29f9a567
YQ
66012017-11-22 Yao Qi <yao.qi@linaro.org>
6602
6603 * remote-utils.c (prepare_resume_reply): Use memcpy.
6604
578290ec
SM
66052017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6606
6607 * linux-low.c (kill_one_lwp_callback): Return void, take
6608 argument directly, don't filter on pid.
6609 (linux_kill): Use for_each_thread.
6610
eca55aec
SM
66112017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6612
6613 * linux-low.c (need_step_over_p): Return bool, remove dummy
6614 argument.
6615 (linux_resume, proceed_all_lwps): Use find_thread.
6616
25c28b4d
SM
66172017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6618
6619 * linux-low.c (resume_status_pending_p): Return bool, remove
6620 flag_p argument.
6621 (linux_resume): Use find_thread.
6622
5fdda392
SM
66232017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6624
6625 * linux-low.c (struct thread_resume_array): Remove.
6626 (linux_set_resume_request): Return void, take arguments
6627 directly.
6628 (linux_resume): Use for_each_thread.
6629
fcb056a5
SM
66302017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6631
6632 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6633 return bool, remove data argument.
6634 (linux_stabilize_threads): Use find_thread.
6635
139720c5
SM
66362017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6637
6638 * linux-low.c (unsuspend_one_lwp): Remove.
6639 (unsuspend_all_lwps): Use for_each_thread, inline code from
6640 unsuspend_one_lwp.
6641
6d1e5673
SM
66422017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6643
6644 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6645 * linux-low.c (struct iterate_over_lwps_args): Remove.
6646 (iterate_over_lwps_filter): Remove.
6647 (iterate_over_lwps): Use find_thread.
6648
bbf550d5
SM
66492017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6650
6651 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6652 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6653 code from reset_lwp_ptrace_options_callback.
6654
00192f77
SM
66552017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6656
6657 * linux-arm-low.c (struct update_registers_data): Remove.
6658 (update_registers_callback): Return void, take arguments
6659 directly, don't check thread's pid.
6660 (arm_insert_point, arm_remove_point): Use for_each_thread.
6661
2bee2b6c
SM
66622017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6663
6664 * win32-low.c (continue_one_thread): Return void, take argument
6665 directly.
6666 (child_continue): Use for_each_thread.
6667
0b360f19
SM
66682017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6669
6670 * win32-i386-low.c (update_debug_registers_callback): Rename
6671 to ...
6672 (update_debug_registers): ... this, return void, remove pid_p arg.
6673 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6674
f27866ba
SM
66752017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6676
6677 * inferiors.h (struct process_info): Add constructor, initialize
6678 fields..
6679 <syscalls_to_catch>: Change type to std::vector<int>.
6680 * inferiors.c (add_process): Allocate process_info with new.
6681 (remove_process): Free process_info with delete.
6682 * linux-low.c (handle_extended_wait): Adjust.
6683 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6684 * server.c (handle_general_set): Adjust.
6685
e849ea89
PA
66862017-11-16 Pedro Alves <palves@redhat.com>
6687
6688 * remote-utils.c (remote_close): Block SIGIO signals instead of
6689 uninstalling the SIGIO handler.
6690
1d0aa65c
AH
66912017-11-16 Alan Hayward <alan.hayward@arm.com>
6692
6693 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6694
3491a34c
YQ
66952017-11-16 Yao Qi <yao.qi@linaro.org>
6696
6697 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6698 (tic6x_store_gregset): Likewise.
6699 (tic6x_usrregs_info): Move it up.
6700
a602f924
AH
67012017-11-15 Alan Hayward <alan.hayward@arm.com>
6702
6703 * Makefile.in: Update arch rules.
6704 * configure.srv: Explicitly mark arch/ files.
6705
5616b6c3
AS
67062017-11-13 Andreas Schwab <schwab@suse.de>
6707
6708 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6709 function.
6710 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6711
d1928160
PA
67122017-11-06 Pedro Alves <palves@redhat.com>
6713
6714 * config.in, configure: Regenerate.
6715
bac608e7
SM
67162017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6717
6718 * target.c (struct thread_search): Remove.
6719 (thread_search_callback): Remove.
6720 (prepare_to_access_memory): Use for_each_thread instead of
6721 find_inferior. Inline code from thread_search_callback.
6722
eaddb425
SM
67232017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6724
6725 * server.c (struct visit_actioned_threads_data): Remove.
6726 (visit_actioned_threads): Change prototype to take arguments
6727 directly.
6728 (resume): Use find_thread instead of find_inferior.
6729
99078d34
SM
67302017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6731
6732 * server.c (queue_stop_reply_callback): Change prototype, return
6733 void.
6734 (find_status_pending_thread_callback): Remove.
6735 (handle_status): Replace find_inferior with find_thread and
6736 for_each_thread.
6737
cc628f3d
AH
67382017-10-25 Alan Hayward <alan.hayward@arm.com>
6739
6740 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6741 with REGNO.
6742 (aarch64_store_gregset): Likewise.
6743 (aarch64_fill_fpregset): Likewise.
6744 (aarch64_store_fpregset): Likewise.
6745
4d3bb80e
SM
67462017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6747
6748 * gdbthread.h (find_thread, for_each_thread): New functions.
6749 * inferiors.c (thread_of_pid): Remove.
6750 (find_any_thread_of_pid): Use find_thread.
6751 * linux-low.c (num_lwps): Use for_each_thread.
6752
7a7cdfa0
YQ
67532017-10-17 Yao Qi <yao.qi@linaro.org>
6754
6755 * Makefile.in: Remove one rule.
6756 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6757
e675d170
YQ
67582017-10-17 Yao Qi <yao.qi@linaro.org>
6759
6760 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6761 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6762
7eb4e0f9
YQ
67632017-10-17 Yao Qi <yao.qi@linaro.org>
6764
6765 * configure.srv: Rename arm.o with arch/arm.o.
6766
60d6cfc9
YQ
67672017-10-17 Yao Qi <yao.qi@linaro.org>
6768
6769 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6770 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6771 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6772 (arch-i386.o, arch-amd64.o): Remove rules.
6773 (arch/%.o): New rule.
6774 Update POSTCOMPILE and COMPILE.pre.
6775 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6776 * configure: Re-generated.
6777 * configure.srv: Replace arch-i386.o with arch/i386.o.
6778 Replace arch-amd64.o with arch/amd64.o.
6779
5bfda255
YQ
67802017-10-16 Yao Qi <yao.qi@linaro.org>
6781
6782 * configure: Regenerated.
6783
9c80ecd6
SM
67842017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6785
6786 * inferiors.h: (struct inferior_list): Remove.
6787 (struct inferior_list_entry); Remove.
6788 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6789 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6790 get_first_inferior): Remove.
6791 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6792 find_inferior_id, find_inferior_in_random): Change signature.
6793 * inferiors.c (all_threads): Change type to
6794 std::list<thread_info *>.
6795 (get_thread): Remove macro.
6796 (find_inferior, find_inferior_id): Change signature, implement
6797 using find_thread.
6798 (find_inferior_in_random): Change signature, implement using
6799 find_thread_in_random.
6800 (for_each_inferior, for_each_inferior_with_data): Change
6801 signature, implement using for_each_thread.
6802 (add_inferior_to_list, remove_inferior): Remove.
6803 (add_thread, get_first_thread, thread_of_pid,
6804 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6805 (get_first_inferior, one_inferior_p, clear_inferior_list):
6806 Remove.
6807 (clear_inferiors, get_thread_process): Update.
6808 * gdbthread.h: Include <list>.
6809 (struct thread_info) <entry>: Remove field.
6810 <id>: New field.
6811 (all_threads): Change type to std::list<thread_info *>.
6812 (get_first_inferior): Add doc.
6813 (find_thread, for_each_thread, find_thread_in_random): New
6814 functions.
6815 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6816 * linux-arm-low.c (update_registers_callback): Update.
6817 * linux-low.c (second_thread_of_pid_p): Update.
6818 (kill_one_lwp_callback, linux_detach_lwp_callback,
6819 delete_lwp_callback, status_pending_p_callback, same_lwp,
6820 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6821 iterate_over_lwps, not_stopped_callback,
6822 resume_stopped_resumed_lwps, count_events_callback,
6823 select_singlestep_lwp_callback, select_event_lwp_callback,
6824 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6825 suspend_and_send_sigstop_callback, wait_for_sigstop,
6826 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6827 lwp_running, linux_set_resume_request, resume_status_pending_p,
6828 need_step_over_p, start_step_over, linux_resume_one_thread,
6829 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6830 reset_lwp_ptrace_options_callback): Update.
6831 * linux-mips-low.c (update_watch_registers_callback): Update.
6832 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6833 Update.
6834 (free_register_cache_thread_one): Remove.
6835 (regcache_release): Update.
6836 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6837 handle_qxfer_threads_worker): Update.
6838 (handle_query): Update, use list iterator.
6839 (visit_actioned_threads, handle_pending_status,
6840 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6841 clear_pending_status_callback, set_pending_status_callback,
6842 find_status_pending_thread_callback, handle_status,
6843 process_serial_event): Update.
6844 * target.c (thread_search_callback): Update.
6845 * thread-db.c (thread_db_get_tls_address): Update.
6846 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6847 Update.
6848 * win32-i386-low.c (update_debug_registers_callback): Update.
6849 * win32-low.c (delete_thread_info, child_delete_thread,
6850 continue_one_thread, suspend_one_thread,
6851 get_child_debug_event): Adjust.
6852
9179355e
SM
68532017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6854
6855 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6856 * inferiors.h: Include <list>.
6857 (struct process_info) <entry>: Remove field.
6858 <pid>: New field.
6859 (pid_of): Change macro to function.
6860 (ptid_of, lwpid_of): Remove macro.
6861 (all_processes): Change type to std::list<process_info *>.
6862 (ALL_PROCESSES): Remove macro.
6863 (for_each_process, find_process): New function.
6864 * inferiors.c (all_processes): Change type to
6865 std::list<process_info *>.
6866 (find_thread_process): Adjust.
6867 (add_process): Likewise.
6868 (remove_process): Likewise.
6869 (find_process_pid): Likewise.
6870 (get_first_process): Likewise.
6871 (started_inferior_callback): Remove.
6872 (have_started_inferiors_p): Adjust.
6873 (attached_inferior_callback): Remove.
6874 (have_attached_inferiors_p): Adjust.
6875 * linux-low.c (check_zombie_leaders): Likewise.
6876 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6877 (x86_linux_update_xmltarget): Adjust.
6878 * server.c (handle_query): Likewise.
6879 (gdb_reattached_process): Remove.
6880 (handle_status): Adjust.
6881 (kill_inferior_callback): Likewise.
6882 (detach_or_kill_inferior): Remove.
6883 (print_started_pid): Likewise.
6884 (print_attached_pid): Likewise.
6885 (detach_or_kill_for_exit): Update.
6886 (process_serial_event): Likewise.
6887 * linux-arm-low.c (arm_new_fork): Likewise.
6888
c9cb8905
SM
68892017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6890
6891 * dll.h: Include <list>.
6892 (struct dll_info): Add constructor.
6893 <entry>: Remove field.
6894 (all_dlls): Change type to std::list<dll_info>.
6895 * dll.c: Include <algorithm>.
6896 (get_dll): Remove macro.
6897 (all_dlls): Change type to std::list<dll_info *>.
6898 (free_one_dll): Remove.
6899 (match_dll): Likewise.
6900 (loaded_dll): Adjust.
6901 (unloaded_dll): Adjust to all_dlls type change, use
6902 std::find_if. Inline code from match_dll.
6903 (clear_dlls): Adjust to all_dlls type change.
6904 * server.c (emit_dll_description): Remove.
6905 (handle_qxfer_libraries): Adjust to all_dlls type change,
6906 integrate emit_dll_description's functionality.
6907
04ec7890
SM
69082017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6909
6910 * linux-low.h (struct linux_target_ops) <delete_process>: New
6911 field.
6912 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6913 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6914 (struct linux_target_ops): Add delete_process callback.
6915 * linux-arm-low.c (arm_delete_process): New.
6916 (struct linux_target_ops): Add delete_process callback.
6917 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6918 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6919 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6920 * linux-mips-low.c (mips_linux_delete_process): New.
6921 (struct linux_target_ops): Add delete_process callback.
6922 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6923 * linux-s390-low.c (struct linux_target_ops): Likewise.
6924 * linux-sh-low.c (struct linux_target_ops): Likewise.
6925 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6926 * linux-tile-low.c (struct linux_target_ops): Likewise.
6927 * linux-x86-low.c (x86_linux_delete_process): New.
6928 (struct linux_target_ops): Add delete_process callback.
6929 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6930
466eecee
SM
69312017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6932
6933 * linux-aarch64-low.c (the_low_target): Add thread delete
6934 callback.
6935 * linux-arm-low.c (arm_delete_thread): New function.
6936 (the_low_target): Add thread delete callback.
6937 * linux-bfin-low.c (the_low_target): Likewise.
6938 * linux-crisv32-low.c (the_low_target): Likewise.
6939 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6940 set.
6941 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6942 field.
6943 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6944 * linux-mips-low.c (mips_linux_delete_thread): New function.
6945 (the_low_target): Add thread delete callback.
6946 * linux-ppc-low.c (the_low_target): Likewise.
6947 * linux-s390-low.c (the_low_target): Likewise.
6948 * linux-sh-low.c (the_low_target): Likewise.
6949 * linux-tic6x-low.c (the_low_target): Likewise.
6950 * linux-tile-low.c (the_low_target): Likewise.
6951 * linux-x86-low.c (the_low_target): Likewise.
6952 * linux-xtensa-low.c (the_low_target): Likewise.
6953
b79f7801
YZ
69542017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6955
6956 * win32-low.c: Include "common-inferior.h".
6957
bc3b087d
SDJ
69582017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6959
6960 * inferiors.c (set_inferior_cwd): New function.
6961 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6962 (handle_query): Inform that QSetWorkingDir is supported.
6963 * win32-low.c (create_process): Pass the inferior's cwd to
6964 CreateProcess.
6965
d092c5a2
SDJ
69662017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6967
6968 * inferiors.c (current_inferior_cwd): New global variable.
6969 (get_inferior_cwd): New function.
6970 * inferiors.h (struct process_info) <cwd>: New field.
6971
7da0a886
SDJ
69722017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6973
6974 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6975 (OBS): Add gdb_tilde_expand.o.
6976
289a6840
SM
69772017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6978
6979 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6980 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6981
256642e8
PA
69822017-09-29 Pedro Alves <palves@redhat.com>
6983
6984 * ax.c (gdb_parse_agent_expr): Constify.
6985 * ax.h (gdb_parse_agent_expr): Constify.
6986 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6987 Constify.
6988 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6989 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6990 * remote-utils.h (read_ptid): Constify.
6991 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6992 (process_point_options, process_serial_event): Constify.
6993 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6994 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6995 (cmd_qtbuffer): Constify.
6996
5b9ca4d4
PA
69972017-09-29 Pedro Alves <palves@redhat.com>
6998
6999 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7000 fails.
7001
94c207e0
PA
70022017-09-29 Pedro Alves <palves@redhat.com>
7003
7004 * linux-low.c (handle_extended_wait): Pass parent thread instead
7005 of process to thread_db_notice_clone.
7006 * linux-low.h (thread_db_notice_clone): Replace parent process
7007 parameter with parent thread parameter.
7008 * thread-db.c (find_one_thread): Add comment.
7009 (thread_db_notice_clone): Replace parent process parameter with
7010 parent thread parameter. Temporarily switch to the parent thread.
7011
75352e28
SDJ
70122017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7013
7014 * gdbthread.h: Include "common-gdbthread.h".
7015 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7016 "if" when validating the ptid.
7017 * remote-utils.c: Include "gdbthread.h".
7018 (prepare_resume_reply): Use "switch_to_thread".
7019 * target.c (done_accessing_memory): Likewise.
7020
ad339634
AA
70212017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7022
7023 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7024 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7025 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7026 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7027 s390x-gs-linux64-ipa.o to ipa_obj.
7028 * linux-s390-low.c (HWCAP_S390_GS): New define.
7029 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7030 New functions.
7031 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7032 (s390_arch_setup): Check for guarded-storage support and choose
7033 appropriate tdesc.
7034 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7035 init_registers_s390x_gs_linux64.
7036 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7037 enum value.
7038 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7039 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7040
cc4d742f
SM
70412017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7042
7043 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7044
f6327dcb
KB
70452017-09-21 Kevin Buettner <kevinb@redhat.com>
7046
7047 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7048 (thread_db_thread_handle): Declare.
7049 * linux-low.c (linux_target_ops): Initialize thread_handle.
7050 * server.c (handle_qxfer_threads_worker): Add support for
7051 "handle" attribute.
7052 * target.h (struct target_ops): Add new function pointer,
7053 thread_handle.
7054 (target_thread_handle): Define.
7055 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7056 field in lwp.
7057 (thread_db_thread_handle): New function.
7058
86299109
KB
70592017-09-21 Kevin Buettner <kevinb@redhat.com>
7060
7061 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7062 * linux-low.h (thread_db_notice_clone): Declare.
7063 * thread-db.c (thread_db_notice_clone): New function.
7064
f557a88a
PA
70652017-09-21 Pedro Alves <palves@redhat.com>
7066
7067 * server.c (gdb_read_memory, handle_status, process_serial_event)
7068 (handle_serial_event, handle_target_event): Adjust to
7069 set_desired_thread prototype change.
7070 * target.c (set_desired_thread): Remove 'use_general' parameter
7071 and adjust.
7072 * target.h (set_desired_thread): Remove 'use_general' parameter.
7073
223ffa71
TT
70742017-09-20 Tom Tromey <tom@tromey.com>
7075
7076 * target.c (target_terminal::terminal_state): Define.
7077 (target_terminal::init): Rename from target_terminal_init.
7078 (target_terminal::inferior): Rename from
7079 target_terminal_inferior.
7080 (target_terminal::ours): Rename from target_terminal_ours.
7081 (target_terminal::ours_for_output, target_terminal::info): New.
7082
04fd3ba9
SM
70832017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7084
7085 * server.c (accumulate_file_name_length): Remove.
7086 (emit_dll_description): Adjust to std::string change.
7087 (handle_qxfer_libraries): Use std::string to hold document.
7088
5e187554
SM
70892017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7090
7091 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7092 return type of xml_escape_text.
7093 * server.c (emit_dll_description): Likewise.
7094
1526853e
SM
70952017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7096
7097 * server.c (captured_main): Accept argument for --selftest.
7098 Update run_tests call.
7099 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7100 when registering selftests.
7101
c4dfafab
SDJ
71022017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7103
7104 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7105 instead of "VEC" for "target_desc.reg_defs".
7106 (regcache_cpy): Likewise.
7107 (registers_to_string): Likewise.
7108 (registers_from_string): Likewise.
7109 (find_regno): Likewise.
7110 (supply_regblock): Likewise.
7111 (regcache_raw_read_unsigned): Likewise.
7112 * tdesc.c (init_target_desc): Likewise.
7113 (tdesc_create_reg): Likewise.
7114 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7115 (struct target_desc) <reg_defs>: Convert to "std::vector".
7116 (target_desc): Do not initialize "reg_defs".
7117 (~target_desc): Update code to use "std::vector" instead of "VEC"
7118 for "target_desc.reg_defs".
7119 (operator==): Likewise.
7120
124aceb4
SM
71212017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7122
7123 * inferiors.h (thread_to_gdb_id): Remove.
7124 * inferiors.c (thread_to_gdb_id): Remove.
7125 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7126 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7127 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7128 Likewise.
7129 * nto-low.c (nto_fetch_registers, nto_store_registers,
7130 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7131
96cde54f
SM
71322017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7133
7134 * inferiors.h (gdb_id_to_thread_id): Remove.
7135 * inferiors.c (gdb_id_to_thread_id): Remove.
7136 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7137 removal. Move pid declaration closer to where it's used.
7138
e8ca139e
SM
71392017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7140
7141 * server.c (handle_detach): New function.
7142 (process_serial_event): Move code out, call handle_detach.
7143
f8a4e119
SM
71442017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7145
7146 * server.c (require_running): Rename to ...
7147 (require_running_or_return): ... this ...
7148 (require_running_or_break): ... and this.
7149 (handle_query, process_serial_event): Adjust.
7150
0eb0a407
SM
71512017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7152
7153 * linux-low.c (linux_set_resume_request): Remove unused
7154 variables.
7155
785922a5
SM
71562017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7157
7158 * server.c (first_thread_of): Remove.
7159 (process_serial_event): Replace usage of first_thread_of with
7160 find_any_thread_of_pid.
7161 * tracepoint.c (same_process_p): Remove.
7162 (gdb_agent_about_to_close): Replace usage of same_process_p with
7163 find_any_thread_of_pid.
7164 * linux-x86-low.c (same_process_callback): Remove.
7165 (x86_arch_setup_process_callback): Replace usage of
7166 same_process_callback with find_any_thread_of_pid.
7167 * thread-db.c (any_thread_of): Remove.
7168 (switch_to_process): Replace usage of any_thread_of with
7169 find_any_thread_of_pid.
7170 * inferiors.c (thread_pid_matches_callback): Remove.
7171 (find_thread_process): Adjust to use find_any_thread_of_pid.
7172
a059f00c
SDJ
71732017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7174
7175 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7176 with "!VEC_empty".
a059f00c 7177
cc397f3a
SDJ
71782017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7179
7180 * linux-low.c (handle_extended_wait): Use
7181 "allocate_target_description" instead of "XNEW".
7182 * linux-x86-low.c (initialize_low_arch): Likewise.
7183
22916b07
YQ
71842017-09-05 Yao Qi <yao.qi@linaro.org>
7185
7186 * configure.srv (srv_i386_regobj): Remove.
7187 (srv_amd64_regobj): Remove.
7188 (srv_regobj): Set it to "" for x86 non-linux targets.
7189 * linux-x86-tdesc.c (i386_linux_read_description):
7190 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7191 (init_registers_i386): Remove the declaration.
7192 (tdesc_i386): Remove the declaration.
7193 (lynx_i386_arch_setup): Call i386_create_target_description.
7194 * nto-x86-low.c: Likewise.
7195 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7196 [!__x86_64__]: include arch/i386.h.
7197 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7198
38602d55
YQ
71992017-09-05 Yao Qi <yao.qi@linaro.org>
7200
7201 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7202 i386/amd64-XXX-linux from it.
7203
44b886ff
YQ
72042017-09-05 Yao Qi <yao.qi@linaro.org>
7205
7206 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7207 false.
7208 (ipa_amd64_linux_regobj): Remove.
7209 (ipa_x32_linux_regobj): Remove.
7210
b4570e4b
YQ
72112017-09-05 Yao Qi <yao.qi@linaro.org>
7212
7213 * Makefile.in (arch-amd64.o): New rule.
7214 * configure.srv: Append arch-amd64.o.
7215 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7216 (get_ipa_tdesc): Call amd64_linux_read_description.
7217 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7218 and init_registers_amd64_XXX.
7219 * linux-x86-low.c (x86_linux_read_description): Call
7220 amd64_linux_read_description.
7221 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7222 (initialize_low_arch): Don't call init_registers_x32_XXX and
7223 init_registers_amd64_XXX.
7224 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7225 and tdesc_amd64_XXX.
7226 [__x86_64__] (amd64_tdesc_test): New function.
7227 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7228 and init_registers_amd64_XXX.
7229 * linux-x86-tdesc.c: Include arch/amd64.h.
7230 (xcr0_to_tdesc_idx): New function.
7231 (i386_linux_read_description): New function.
7232 (amd64_get_ipa_tdesc_idx): New function.
7233 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7234 (amd64_get_ipa_tdesc): Declare.
7235
d1f28ea2
YQ
72362017-09-05 Yao Qi <yao.qi@linaro.org>
7237
7238 * configure.srv (srv_i386_linux_xmlfiles): Remove
7239 i386/i386-XXX-linux.xml from it.
7240
25a93583
YQ
72412017-09-05 Yao Qi <yao.qi@linaro.org>
7242
7243 * configure.srv: Set srv_i386_linux_regobj empty if $development
7244 is false.
7245 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7246 initialize_low_tdesc.
7247 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7248 with #if initialize_low_tdesc.
7249 * linux-x86-tdesc-selftest.c: New file.
7250 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7251
5f035c07
YQ
72522017-09-05 Yao Qi <yao.qi@linaro.org>
7253
7254 * Makefile.in (arch-i386.o): New rule.
7255 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7256 (x86_64-*-linux*): Likewise.
7257 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7258 include arch/i386.h.
7259 (i386_linux_read_description): Remove code and call
7260 i386_create_target_description.
7261 * tdesc.c (allocate_target_description): New function.
7262 * tdesc.h (set_tdesc_architecture): Remove declaration.
7263 (set_tdesc_osabi): Likewise.
7264
0abe8a89
YQ
72652017-09-05 Yao Qi <yao.qi@linaro.org>
7266
7267 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7268 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7269 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7270 .xmltarget.
7271 * server.c (get_features_xml): Call tdesc_get_features_xml.
7272 * tdesc.c (set_tdesc_architecture): New function.
7273 (set_tdesc_osabi): New function.
7274 (tdesc_get_features_xml): New function.
7275 (tdesc_create_feature): Add an argument.
7276 * tdesc.h (struct target_desc) <features>: New field.
7277 <arch, osabi>: New field.
7278 (~target_desc): xfree features, arch, and osabi.
7279 (target_desc::oerator==): Don't compare .xmltarget.
7280 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7281 (set_tdesc_osabi): Likewise.
7282 (tdesc_get_features_xml): Likewise.
7283
0a188386
YQ
72842017-09-05 Yao Qi <yao.qi@linaro.org>
7285
7286 * linux-x86-tdesc.c: Include selftest.h.
7287 (i386_tdesc_test): New function.
7288 (initialize_low_tdesc): Call selftests::register_test.
7289 * tdesc.h: Include regdef.h.
7290 (target_desc): Override operator == and !=.
7291
f49ff000
YQ
72922017-09-05 Yao Qi <yao.qi@linaro.org>
7293
7294 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7295 (ipa_obj): Likewise.
7296 * linux-i386-ipa.c: Include common/x86-xstate.h
7297 (get_ipa_tdesc): Call i386_linux_read_description.
7298 (initialize_low_tracepoint): Don't call init_registers_XXX
7299 functions, call initialize_low_tdesc instead.
7300 * linux-x86-low.c (x86_linux_read_description): Call
7301 i386_linux_read_description.
7302 (initialize_low_arch): Don't call init_registers_i386_XXX
7303 functions, call initialize_low_tdesc.
7304 * linux-x86-tdesc.c: New file.
7305 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7306 (i386_get_ipa_tdesc_idx): Declare.
7307 (i386_get_ipa_tdesc): Declare.
7308 (initialize_low_tdesc): Declare.
7309
2b68ef2f
YQ
73102017-09-05 Yao Qi <yao.qi@linaro.org>
7311
7312 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7313 instead of 0.
7314
f7000548
YQ
73152017-09-05 Yao Qi <yao.qi@linaro.org>
7316
7317 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7318 * regcache.c (get_thread_regcache): Use VEC_length.
7319 (init_register_cache): Likewise.
7320 (regcache_cpy): Likewise.
7321 (registers_to_string): Iterate reg_defs via VEC_iterate.
7322 (find_regno): Likewise.
7323 (find_register_by_number): Use VEC_index.
7324 (register_size): Call find_register_by_number.
7325 (register_data): Call find_register_by_number.
7326 (supply_regblock): Use VEC_length.
7327 (regcache_raw_read_unsigned): Likewise.
7328 * tdesc.c (init_target_desc): Iterate reg_defs via
7329 VEC_iterate.
7330 (default_description): Update initializer.
7331 (copy_target_description): Don't update field num_registers.
7332 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7333 <num_registers>: Remove.
7334
50a421ac
SM
73352017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7336
7337 * Makefile.in (.SECONDARY): Define target.
7338
23fdd69e
SM
73392017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7340
7341 * linux-low.c (linux_wait_1): Adjust.
7342 * server.c (queue_stop_reply_callback): Adjust.
7343
0a2dde4a
SDJ
73442017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7345
7346 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7347 QEnvironmentUnset and QEnvironmentReset packets.
7348 (handle_query): Inform remote that QEnvironmentHexEncoded,
7349 QEnvironmentUnset and QEnvironmentReset are supported.
7350
6afd337d
SM
73512017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7352
7353 * inferiors.h (inferior_target_data): Rename to ...
7354 (thread_target_data): ... this.
7355 (inferior_regcache_data): Rename to ...
7356 (thread_regcache_data): ... this.
7357 (set_inferior_regcache_data): Rename to ...
7358 (set_thread_regcache_data): ... this.
7359 * inferiors.c (inferior_target_data): Rename to ...
7360 (thread_target_data): ... this.
7361 (inferior_regcache_data): Rename to ...
7362 (thread_regcache_data): ... this.
7363 (set_inferior_regcache_data): Rename to ...
7364 (set_thread_regcache_data): ... this.
7365 (free_one_thread): Update.
7366 * linux-low.h (get_thread_lwp): Update.
7367 * regcache.c (get_thread_regcache): Update.
7368 (regcache_invalidate_thread): Update.
7369 (free_register_cache_thread): Update.
7370 * win32-i386-low.c (update_debug_registers_callback): Update.
7371 (win32_get_current_dr): Update.
7372 * win32-low.c (thread_rec): Update.
7373 (delete_thread_info): Update.
7374 (continue_one_thread): Update.
7375 (suspend_one_thread): Update.
7376
a160cc46
SM
73772017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7378
7379 * inferiors.c (set_inferior_target_data): Remove.
7380 * inferiors.h (set_inferior_target_data): Remove.
7381
6d580b63
YQ
73822017-08-18 Yao Qi <yao.qi@linaro.org>
7383
7384 * Makefile.in (OBS): Add selftest.o.
7385 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7386 * configure, config.in: Re-generated.
7387 * server.c: Include common/sefltest.h.
7388 (captured_main): Handle option --selftest.
7389
f5a29eb0
YQ
73902017-08-09 Yao Qi <yao.qi@linaro.org>
7391
7392 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7393 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7394 i386-avx-mpx.o and i386-mmx.o.
7395 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7396 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7397 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7398 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7399 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7400 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7401 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7402 i386/amd64-avx-mpx.xml.
7403
57757c2f
YQ
74042017-08-09 Yao Qi <yao.qi@linaro.org>
7405
7406 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7407 and x32-avx-avx512.o.
7408 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7409 i386/x32-avx-avx512.xml.
7410
229d26fc
SM
74112017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7412
7413 * tracepoint.h (enum class fast_tpoint_collect_result): New
7414 enumeration.
7415 (fast_tracepoint_collecting): Change return type to
7416 fast_tpoint_collect_result.
7417 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7418 * linux-low.h: Include tracepoint.h.
7419 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7420 fast_tpoint_collect_result.
7421 * linux-low.c (handle_tracepoints): Adjust.
7422 (linux_fast_tracepoint_collecting): Change return type to
7423 fast_tpoint_collect_result.
7424 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7425 linux_wait_1, stuck_in_jump_pad_callback,
7426 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7427 proceed_one_lwp): Adjust to type change.
7428
2e1e43e1
YQ
74292017-07-10 Yao Qi <yao.qi@linaro.org>
7430
7431 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7432
adc764e7
YQ
74332017-06-29 Yao Qi <yao.qi@linaro.org>
7434
7435 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7436 Remove.
7437 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7438
a206891a
SM
74392017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7440
7441 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7442
9a6c7d9c
SDJ
74432017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7444
7445 * linux-low.c (linux_create_inferior): Adjust code to access the
7446 environment information via 'gdb_environ' class.
7447 * lynx-low.c (lynx_create_inferior): Likewise.
7448 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7449 (get_environ): Return a pointer to 'our_environ'.
7450 (captured_main): Initialize 'our_environ'.
7451 * server.h (get_environ): Adjust prototype.
7452 * spu-low.c (spu_create_inferior): Adjust code to access the
7453 environment information via 'gdb_environ' class.
7454
ae3e2ccf
SM
74552017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7456
7457 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7458 usage of "register" keyword.
7459
3e019bdc
SM
74602017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7461
7462 * configure: Re-generate.
7463
8465943a
SM
74642017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7465
7466 * configure: Re-generate.
7467
cf0dd6f0
SM
74682017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7469
7470 * Makefile.in (COMPILE.pre): Add "-x c++".
7471
9845682b
SDJ
74722017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7473
7474 * fork-child.c: Conditionally include <signal.h>.
7475
aefd8b33
SDJ
74762017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7477
7478 * server.c (handle_general_set): Handle new packet
7479 "QStartupWithShell".
7480 (handle_query): Add "QStartupWithShell" to the list of supported
7481 packets.
7482 (gdbserver_usage): Add help text explaining the
7483 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7484 options.
7485 (captured_main): Recognize and act upon the presence of the new
7486 CLI options.
7487
2090129c
SDJ
74882017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7489 Pedro Alves <palves@redhat.com>
7490
7491 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7492 * configure: Regenerate.
7493 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7494 "fork-inferior.o".
7495 (i[34567]86-*-lynxos*): Likewise.
7496 (spu*-*-*): Likewise.
7497 * fork-child.c: New file.
7498 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7499 and "environ.h".
7500 (linux_ptrace_fun): New function.
7501 (linux_create_inferior): Adjust function prototype to reflect
7502 change on "target.h". Adjust function code to use
7503 "fork_inferior".
7504 (linux_request_interrupt): Delete "signal_pid".
7505 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7506 (lynx_ptrace_fun): New function.
7507 (lynx_create_inferior): Adjust function prototype to reflect
7508 change on "target.h". Adjust function code to use
7509 "fork_inferior".
7510 * nto-low.c (nto_create_inferior): Adjust function prototype and
7511 code to reflect change on "target.h". Update comments.
7512 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7513 "common-terminal.h" and "environ.h".
7514 (terminal_fd): Moved to fork-child.c.
7515 (old_foreground_pgrp): Likewise.
7516 (restore_old_foreground_pgrp): Likewise.
7517 (last_status): Make it global.
7518 (last_ptid): Likewise.
7519 (our_environ): New variable.
7520 (startup_with_shell): Likewise.
7521 (program_name): Likewise.
7522 (program_argv): Rename to...
7523 (program_args): ...this.
7524 (wrapper_argv): New variable.
7525 (start_inferior): Delete function.
7526 (get_exec_wrapper): New function.
7527 (get_exec_file): Likewise.
7528 (get_environ): Likewise.
7529 (prefork_hook): Likewise.
7530 (post_fork_inferior): Likewise.
7531 (postfork_hook): Likewise.
7532 (postfork_child_hook): Likewise.
7533 (handle_v_run): Update code to deal with arguments coming from the
7534 remote host. Update calls from "start_inferior" to
7535 "create_inferior".
7536 (captured_main): Likewise. Initialize environment variable. Call
7537 "have_job_control".
7538 * server.h (post_fork_inferior): New prototype.
7539 (get_environ): Likewise.
7540 (last_status): Declare.
7541 (last_ptid): Likewise.
7542 (signal_pid): Likewise.
7543 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7544 (spu_ptrace_fun): New function.
7545 (spu_create_inferior): Adjust function prototype to reflect change
7546 on "target.h". Adjust function code to use "fork_inferior".
7547 * target.c (target_terminal_init): New function.
7548 (target_terminal_inferior): Likewise.
7549 (target_terminal_ours): Likewise.
7550 * target.h: Include <vector>.
7551 (struct target_ops) <create_inferior>: Update prototype.
7552 (create_inferior): Update macro.
7553 * utils.c (gdb_flush_out_err): New function.
7554 * win32-low.c (win32_create_inferior): Adjust function prototype
7555 and code to reflect change on "target.h".
7556
043a4934
SDJ
75572017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7558
7559 * inferiors.c (switch_to_thread): New function.
7560
15652511
SDJ
75612017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7562
7563 * Makefile.in (SFILE): Add "common/job-control.c".
7564 (OBS): Add "job-control.o".
7565
21ea5acd
SDJ
75662017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7567
7568 * Makefile: Remove "@host_makefile_frag@".
7569
e13cb306
PA
75702017-05-05 Pedro Alves <palves@redhat.com>
7571
7572 * configure: Regenerate.
7573
c94fee56
SDJ
75742017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7575
7576 * configure: Regenerate.
7577
a0ff9e1a
SM
75782017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7579
7580 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7581 software_single_step change of return type to
7582 std::vector<CORE_ADDR>.
7583 * linux-low.c (install_software_single_step_breakpoints):
7584 Likewise.
7585 * linux-low.h (install_software_single_step_breakpoints):
7586 Likewise.
7587
be628ab8
SDJ
75882017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7589
7590 * remote-utils.c: Include "gdb_termios.h" instead of
7591 "terminal.h".
7592 * terminal.h: Delete file.
7593
7c5ded6a
SDJ
75942017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7595
7596 * server.c: Include <vector>.
7597 <program_argv, wrapper_argv>: Convert to std::vector.
7598 (start_inferior): Rewrite function to use C++.
7599 (handle_v_run): Likewise. Update code that calculates the argv
7600 based on the vRun packet; use C++.
7601 (captured_main): Likewise.
7602
436252de
SM
76032017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7604
7605 * server.c (handle_v_cont): Initialize thread_resume::thread
7606 with null_ptid.
7607
9bf2a700
PA
76082017-04-05 Pedro Alves <palves@redhat.com>
7609
7610 * configure: Regenerate.
7611
a121b7c1
PA
76122017-04-05 Pedro Alves <palves@redhat.com>
7613
7614 * gdbreplay.c (sync_error): Constify.
7615 * linux-x86-low.c (push_opcode): Constify.
7616
21c8a587
PA
76172017-04-05 Pedro Alves <palves@redhat.com>
7618
7619 * win32-low.c (get_child_debug_event)
7620 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7621 Report TARGET_WAITKIND_SPURIOUS instead.
7622
fb32b4f7
PA
76232017-04-05 Pedro Alves <palves@redhat.com>
7624
e79be6e5
SM
7625 * remote-utils.c (remote_prepare, remote_open): Constify.
7626 * remote-utils.h (remote_prepare, remote_open): Constify.
7627 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7628
65dd1e59
SM
76292017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7630
7631 * Makefile.in (clean): Clear .deps.
7632
8fa5b777
SM
76332017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7634
7635 * .gitignore: Remove generated files, replace with wildcard.
7636 * (clean): Replace removal of generated files with wildcard.
7637 (version.c): Replace with...
7638 (version-generated.c): ...this.
7639 (xml-builtin.c): Replace with...
7640 (xml-builtin-generated.c): ...this.
7641 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7642 (%.c: *regformats*): Replace with...
7643 (%-generated.c: *regformats*): ...this.
7644
a12e714b
MF
76452017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7646
7647 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7648 (xtensa_fill_gregset): Call collect_register_by_name for
7649 threadptr register.
7650 (xtensa_store_gregset): Call supply_register_by_name for
7651 threadptr register.
7652
1a09b50a
MF
76532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7654
7655 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7656 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7657 (xtensa_store_gregset): Call supply_register for all registers in
7658 a0_regnum..a0_regnum + C0_NREGS range.
7659
1a01e7c6
SM
76602017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7661
7662 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7663 (ax-ipa.o: ax.c): Remove.
7664 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7665 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7666 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7667 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7668 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7669
36bc18a8
SM
76702017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7671
7672 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7673 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7674 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7675 (errors-ipa.o: ../common/errors.c): Remove.
7676 (format-ipa.o: ../common/format.c): Remove.
7677 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7678
a8ebe3d5
SM
76792017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7680
7681 * Makefile.in (%-ipa.o: %.c): New rule.
7682 (tracepoint-ipa.o: tracepoint.c): Remove.
7683 (utils-ipa.o: utils.c): Remove.
7684 (remote-utils-ipa.o: remote-utils.c): Remove.
7685 (regcache-ipa.o: regcache.c): Remove.
7686 (i386-linux-ipa.o: i386-linux.c): Remove.
7687 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7688 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7689 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7690 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7691 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7692 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7693 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7694 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7695 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7696 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7697 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7698 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7699 (aarch64-ipa.o: aarch64.c): Remove.
7700 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7701 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7702 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7703 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7704 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7705 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7706 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7707 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7708 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7709 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7710 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7711 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7712 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7713 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7714 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7715 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7716 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7717 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7718 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7719 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7720 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7721 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7722 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7723 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7724 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7725 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7726 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7727 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7728 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7729 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7730 (tdesc-ipa.o: tdesc.c): Remove.
7731 (x32-linux-ipa.o: x32-linux.c): Remove.
7732 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7733 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7734
50cfacb7
SM
77352017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7736
7737 * Makefile.in (%.o: ../arch/%.c): New rule.
7738 (arm.o: ../arch/arm.c): Remove.
7739 (arm-linux.o: ../arch/arm-linux.c): Remove.
7740 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7741 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7742
c5a22423
SM
77432017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7744
7745 * Makefile.in (%.o: ../nat/%.c): New rule.
7746 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7747 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7748 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7749 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7750 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7751 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7752 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7753 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7754 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7755 (linux-personality.o: ../nat/linux-personality.c): Remove.
7756 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7757 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7758 (x86-linux.o: ../nat/x86-linux.c): Remove.
7759 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7760 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7761
6bda016b
SM
77622017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7763
7764 * Makefile.in (%.o: ../common/%.c): New rule.
7765 (signals.o: ../common/signals.c): Remove.
7766 (print-utils.o: ../common/print-utils.c): Remove.
7767 (rsp-low.o: ../common/rsp-low.c): Remove.
7768 (common-utils.o: ../common/common-utils.c): Remove.
7769 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7770 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7771 (vec.o: ../common/vec.c): Remove.
7772 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7773 (xml-utils.o: ../common/xml-utils.c): Remove.
7774 (ptid.o: ../common/ptid.c): Remove.
7775 (buffer.o: ../common/buffer.c): Remove.
7776 (format.o: ../common/format.c): Remove.
7777 (filestuff.o: ../common/filestuff.c): Remove.
7778 (agent.o: ../common/agent.c): Remove.
7779 (errors.o: ../common/errors.c): Remove.
7780 (environ.o: ../common/environ.c): Remove.
7781 (common-debug.o: ../common/common-debug.c): Remove.
7782 (cleanups.o: ../common/cleanups.c): Remove.
7783 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7784 (fileio.o: ../common/fileio.c): Remove.
7785 (common-regcache.o: ../common/common-regcache.c): Remove.
7786 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7787 (new-op.o: ../common/new-op.c): Remove.
7788 (btrace-common.o: ../common/btrace-common.c): Remove.
7789
21122961
SM
77902017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7791
7792 * Makefile.in (%.o: ../target/%.c): New rule.
7793 (waitstatus.o: ../target/waitstatus.c): Remove.
7794
c362e621
SM
77952017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7796
7797 * Makefile.in
7798 (%.c: ../regformats/%.dat,
7799 (%.c: ../regformats/arm/%.dat,
7800 (%.c: ../regformats/i386/%.dat,
7801 (%.c: ../regformats/rs6000/%.dat): New rules.
7802 (aarch64.c): Remove.
7803 (reg-arm.c): Remove.
7804 (arm-with-iwmmxt.c): Remove.
7805 (arm-with-vfpv2.c): Remove.
7806 (arm-with-vfpv3.c): Remove.
7807 (arm-with-neon.c): Remove.
7808 (reg-bfin.c): Remove.
7809 (reg-cris.c): Remove.
7810 (reg-crisv32.c): Remove.
7811 (i386.c): Remove.
7812 (i386-linux.c): Remove.
7813 (i386-avx.c): Remove.
7814 (i386-avx-linux.c): Remove.
7815 (i386-avx-avx512.c): Remove.
7816 (i386-avx-avx512-linux.c): Remove.
7817 (i386-mpx.c): Remove.
7818 (i386-mpx-linux.c): Remove.
7819 (i386-avx-mpx-avx512-pku.c): Remove.
7820 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7821 (i386-avx-mpx.c): Remove.
7822 (i386-avx-mpx-linux.c): Remove.
7823 (i386-mmx.c): Remove.
7824 (i386-mmx-linux.c): Remove.
7825 (reg-ia64.c): Remove.
7826 (reg-m32r.c): Remove.
7827 (reg-m68k.c): Remove.
7828 (reg-cf.c): Remove.
7829 (mips-linux.c): Remove.
7830 (mips-dsp-linux.c): Remove.
7831 (mips64-linux.c): Remove.
7832 (mips64-dsp-linux.c): Remove.
7833 (nios2-linux.c): Remove.
7834 (powerpc-32.c): Remove.
7835 (powerpc-32l.c): Remove.
7836 (powerpc-altivec32l.c): Remove.
7837 (powerpc-cell32l.c): Remove.
7838 (powerpc-vsx32l.c): Remove.
7839 (powerpc-isa205-32l.c): Remove.
7840 (powerpc-isa205-altivec32l.c): Remove.
7841 (powerpc-isa205-vsx32l.c): Remove.
7842 (powerpc-e500l.c): Remove.
7843 (powerpc-64l.c): Remove.
7844 (powerpc-altivec64l.c): Remove.
7845 (powerpc-cell64l.c): Remove.
7846 (powerpc-vsx64l.c): Remove.
7847 (powerpc-isa205-64l.c): Remove.
7848 (powerpc-isa205-altivec64l.c): Remove.
7849 (powerpc-isa205-vsx64l.c): Remove.
7850 (s390-linux32.c): Remove.
7851 (s390-linux32v1.c): Remove.
7852 (s390-linux32v2.c): Remove.
7853 (s390-linux64.c): Remove.
7854 (s390-linux64v1.c): Remove.
7855 (s390-linux64v2.c): Remove.
7856 (s390-te-linux64.c): Remove.
7857 (s390-vx-linux64.c): Remove.
7858 (s390-tevx-linux64.c): Remove.
7859 (s390x-linux64.c): Remove.
7860 (s390x-linux64v1.c): Remove.
7861 (s390x-linux64v2.c): Remove.
7862 (s390x-te-linux64.c): Remove.
7863 (s390x-vx-linux64.c): Remove.
7864 (s390x-tevx-linux64.c): Remove.
7865 (tic6x-c64xp-linux.c): Remove.
7866 (tic6x-c64x-linux.c): Remove.
7867 (tic6x-c62x-linux.c): Remove.
7868 (reg-sh.c): Remove.
7869 (reg-sparc64.c): Remove.
7870 (reg-spu.c): Remove.
7871 (amd64.c): Remove.
7872 (amd64-linux.c): Remove.
7873 (amd64-avx.c): Remove.
7874 (amd64-avx-linux.c): Remove.
7875 (amd64-avx-avx512.c): Remove.
7876 (amd64-avx-avx512-linux.c): Remove.
7877 (amd64-mpx.c): Remove.
7878 (amd64-mpx-linux.c): Remove.
7879 (amd64-avx-mpx-avx512-pku.c): Remove.
7880 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7881 (amd64-avx-mpx.c): Remove.
7882 (amd64-avx-mpx-linux.c): Remove.
7883 (x32.c): Remove.
7884 (x32-linux.c): Remove.
7885 (x32-avx.c): Remove.
7886 (x32-avx-linux.c): Remove.
7887 (x32-avx-avx512.c): Remove.
7888 (x32-avx-avx512-linux.c): Remove.
7889 (reg-xtensa.c): Remove.
7890 (reg-tilegx.c): Remove.
7891 (reg-tilegx32.c): Remove.
7892
1672e0d9
SDJ
78932017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7894
7895 * Makefile.in (SFILES): Add "common/environ.c".
7896 (OBJS): Add "common/environ.h".
7897
239b6d10
WT
78982017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7899
7900 * configure.ac: Check if the fs_base and gs_base members of
7901 `struct user_regs_struct' exist.
7902 * config.in: Regenerated.
7903 * configure: Likewise.
7904
694b382c
AT
79052017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7906
7907 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7908 target_read_memory.
7909 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7910 (get_next_pcs_syscall_next_pc): Likewise.
7911
7dc53023
LM
79122016-12-23 Luis Machado <lgustavo@codesourcery.com>
7913
7914 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7915 * nto-x86-low.c: Likewise.
7916
ad02e4fe
SM
79172016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7918
7919 * Makefile.in: Include disable-implicit-rules.mk.
7920
dcb07cfa
PA
79212016-11-23 Pedro Alves <palves@redhat.com>
7922
7923 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7924 (debug_vprintf): Use std::chrono::steady_clock instead of
7925 gettimeofday. Use '.' instead of ':'.
7926 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7927 (get_timestamp): Use std::chrono::steady_clock instead of
7928 gettimeofday.
7929
8629c02c
SM
79302016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7931
7932 * Makefile.in: Fix whitespace formatting.
7933
b593ecca
SM
79342016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7935
7936 * Makefile.in (SFILES, OBS): Flatten list and order
7937 alphabetically.
7938
9986ba08
PA
79392016-11-23 Pedro Alves <palves@redhat.com>
7940
7941 * event-loop.c (handle_file_event): Use warning.
7942 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7943 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7944 Use warning.
7945
4eefa7bc
PA
79462016-11-23 Pedro Alves <palves@redhat.com>
7947
7948 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7949 output.
7950 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7951 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7952 debug_printf and debug_flush for debug output.
7953 * server.c (handle_general_set): Likewise.
7954 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7955 output.
7956
5443506e
SM
79572016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7958
7959 * Makefile.in (.c.o): Replace rule with ...
7960 (%.o: %.c): ... this one.
7961
3b165252
SM
79622016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7963
7964 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7965 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7966 make.
7967 * configure.ac: Remove checks for the make program.
7968 * configure: Re-generate.
7969
0bcda685
PA
79702016-10-28 Pedro Alves <palves@redhat.com>
7971
7972 * Makefile.in (CXX_DIALECT): Get from configure.
7973 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7974 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7975 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7976 * config.in: Regenerate.
7977 * configure: Regenerate.
7978
c3805894
YQ
79792016-10-27 Yao Qi <yao.qi@linaro.org>
7980
7981 * linux-low.c (linux_supports_range_stepping): Return true if
7982 can_software_single_step return true.
7983
89342618
YQ
79842016-10-27 Yao Qi <yao.qi@linaro.org>
7985
7986 * inferiors.c (find_inferior_in_random): New function.
7987 * inferiors.h (find_inferior_in_random): Declare.
7988 * linux-low.c (linux_wait_for_event_filtered): Call
7989 find_inferior_in_random instead of find_inferior.
7990
e3652c84
YQ
79912016-10-27 Yao Qi <yao.qi@linaro.org>
7992
7993 * linux-low.c (linux_wait_1): If single-step breakpoints are
7994 inserted, remove them.
7995
5a04c4cf
PA
79962016-10-26 Pedro Alves <palves@redhat.com>
7997
7998 * linux-low.c (handle_extended_wait): Link parent/child fork
7999 threads.
8000 (linux_wait_1): Unlink them.
8001 (linux_set_resume_request): Ignore resume requests for
8002 already-resumed and unhandled fork child threads.
8003 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8004 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8005 New functions.
8006 (handle_v_requests) <vCont>: Don't call require_running.
8007 * server.h (in_queued_stop_replies): New declaration.
8008
cb93dc7f
YQ
80092016-10-24 Yao Qi <yao.qi@linaro.org>
8010
8011 PR server/20733
8012 * linux-aarch64-low.c (append_insns): Cast the return value to
8013 'uint32_t *'.
8014
a1078bea
YQ
80152016-10-10 Yao Qi <yao.qi@linaro.org>
8016
8017 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8018
1fb77080
SDJ
80192016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8020
8021 * target.c (target_supports_multi_process): New function, moved
8022 from...
8023 * target.h (target_supports_multi_process): ... here. Remove
8024 macro.
8025
39b5a3b9
TT
80262016-10-05 Tom Tromey <tom@tromey.com>
8027
8028 PR remote/20655:
8029 * tracepoint.c (handle_tracepoint_bkpts): Check
8030 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8031
c1d0b70a
YQ
80322016-10-05 Yao Qi <yao.qi@linaro.org>
8033
8034 * configure.srv: Update the path of arm-*.xml files.
8035
0a69eedb
YQ
80362016-10-05 Terry Guo <terry.guo@arm.com>
8037 Yao Qi <yao.qi@linaro.org>
8038
8039 * Makefile.in: Adjust the path of rules.
8040 * configure.srv: Update the path of xml files.
8041 * regformats/arm-with-iwmmxt.dat: Regenerated.
8042 * regformats/arm-with-neon.dat: Likewise.
8043 * regformats/arm-with-vfpv2.dat: Likewise.
8044 * regformats/arm-with-vfpv3.dat Likewise.
8045
17e16485
YQ
80462016-09-30 Yao Qi <yao.qi@linaro.org>
8047
8048 PR gdbserver/20627
8049 * target.c (target_stop_and_wait): Don't call
8050 target_continue_no_signal, use resume_stop instead.
8051
edeeb602
YQ
80522016-09-26 Yao Qi <yao.qi@linaro.org>
8053
8054 * linux-low.c (linux_wait_1): Call debug_exit.
8055
503b1c39
PA
80562016-09-23 Pedro Alves <palves@redhat.com>
8057
8058 * Makefile.in (SFILES): Add common/new-op.c.
8059 (OBS): Add common/new-op.o.
8060 (new-op.o): New rule.
8061
74172ecf
SM
80622016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8063
8064 * .gitinore: Ignore more files.
8065
fc6cda2e
YQ
80662016-09-21 Yao Qi <yao.qi@linaro.org>
8067
8068 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8069 23.
8070
bc1e6c81
SDJ
80712016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8072
8073 * server.c (start_inferior): Call target_mourn_inferior instead of
8074 mourn_inferior; pass ptid_t argument to it.
8075 (resume): Likewise.
8076 (handle_target_event): Likewise.
8077 * target.c (target_mourn_inferior): New function.
8078 * target.h (mourn_inferior): Delete macro.
8079
0e00e962
AA
80802016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8081
8082 * linux-low.c (lwp_is_stepping): New function.
8083
1d8cb77d
CL
80842016-09-06 Carl Love <cel@us.ibm.com>
8085
8086 * server.c (start_inferior): Fixed comment, requested comment change
8087 didn't get updated correctly. Removed reference to ptrace () call as
8088 it is only true on Linux systems.
8089
7313bced
CL
80902016-09-06 Carl Love <cel@us.ibm.com>
8091
8092 * server.c (start_inferior): Do not call
8093 function target_post_create_inferior () if the
8094 inferior process has already exited.
8095
cf6de44d
PA
80962016-09-05 Pedro Alves <palves@redhat.com>
8097
8098 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8099 (COMPILE.pre, CC_LD): Use CXX directly.
8100 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8101 * acinclude.m4: Don't include build-with-cxx.m4.
8102 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8103 * configure: Regenerate.
8104
c1da6748
AT
81052016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8106
8107 PR gdb/19495
8108 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8109 call writing data to own_buf.
8110
f2b9e3df
SDJ
81112016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8112
8113 * target.c (mywait): Call target_wait instead of
8114 the_target->wait.
8115 (target_wait): New function.
8116
049a8570
SDJ
81172016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8118
8119 * server.c (start_inferior): New variable 'ptid'. Replace calls
8120 to the_target->resume by target_continue{,_no_signal}, depending
8121 on the case.
8122 * target.c (target_stop_and_wait): Call target_continue_no_signal
8123 instead of the_target->resume.
8124 (target_continue): New function.
8125
3aa5cfa0
AT
81262016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8127
8128 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8129
754653a7
AZ
81302016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8131
8132 PR server/20491
8133 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8134 ps_prochandle.
8135 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8136 * linux-arm-low.c (ps_get_thread_area): Likewise.
8137 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8138 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8139 * linux-mips-low.c (ps_get_thread_area): Likewise.
8140 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8141 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8142 * linux-x86-low.c (ps_get_thread_area): Likewise.
8143 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8144
ed036b40
PA
81452016-08-19 Pedro Alves <palves@redhat.com>
8146
8147 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8148
c8ef42ee
PA
81492016-08-19 Pedro Alves <palves@redhat.com>
8150
8151 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8152 comment. Use memcpy instead of casting through unsigned long.
8153
9c235a72
PA
81542016-08-19 Pedro Alves <palves@redhat.com>
8155
8156 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8157 allocating around 0x80000000.
8158
201506da
PA
81592016-08-19 Pedro Alves <palves@redhat.com>
8160
8161 PR gdb/20415
8162 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8163 (x32-avx512-linux-ipa.o): New rules.
8164 * configure.ac (x86_64-*-linux*): New x32 check.
8165 * configure.srv (ipa_x32_linux_regobj): New.
8166 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8167 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8168 descriptions.
8169 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8170 descriptions.
8171 * configure: Regenerate.
8172
f348d89a
PA
81732016-08-09 Pedro Alves <palves@redhat.com>
8174
8175 PR gdb/18653
8176 * Makefile.in (OBS): Add signals-state-save-restore.o.
8177 (signals-state-save-restore.o): New rule.
8178 * config.in: Regenerate.
8179 * configure: Regenerate.
8180 * linux-low.c: Include "signals-state-save-restore.h".
8181 (linux_create_inferior): Call
8182 restore_original_signals_state.
8183 * server.c: Include "dispositions-save-restore.h".
8184 (captured_main): Call save_original_signals_state.
8185
1baf5149
PA
81862016-08-05 Pedro Alves <palves@redhat.com>
8187
8188 * configure: Regenerate.
8189
fcd4a73d
YQ
81902016-08-04 Yao Qi <yao.qi@linaro.org>
8191
8192 * linux-low.c (regsets_fetch_inferior_registers): Check
8193 errno is ESRCH or not.
8194
979659d0
YQ
81952016-08-02 Yao Qi <yao.qi@linaro.org>
8196
8197 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8198 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8199 (thread_db_load_search): Update.
8200 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8201 td_ta_set_event and td_ta_event_getmsg.
8202
6598661d
PA
82032016-07-26 Pedro Alves <palves@redhat.com>
8204
8205 PR server/20414
8206 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8207 of unsigned long for 64-bit registers and use uint32_t instead of
8208 unsigned int for 32-bit registers.
8209
9cf12d57
PA
82102016-07-26 Pedro Alves <palves@redhat.com>
8211
8212 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8213 to 'ptrace'.
8214
305450ed
TT
82152016-07-21 Tom Tromey <tom@tromey.com>
8216
8217 * configure: Rebuild.
8218
2583da7c
YQ
82192016-07-21 Yao Qi <yao.qi@linaro.org>
8220
8221 * mem-break.c (find_gdb_breakpoint): Cast bp to
8222 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8223
21536b36
YQ
82242016-07-21 Yao Qi <yao.qi@linaro.org>
8225
8226 * server.c (handle_v_requests): Support s and S actions
8227 if target_supports_software_single_step return true.
8228
8901d193
YQ
82292016-07-21 Yao Qi <yao.qi@linaro.org>
8230
8231 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8232 is resume_step, call maybe_hw_step.
8233 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8234 and unstop them.
8235 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8236 breakpoints or not.
8237 (proceed_one_lwp): If resume request is resume_step, install
8238 reinsert breakpoints and call maybe_hw_step.
8239
0e9a339e
YQ
82402016-07-21 Yao Qi <yao.qi@linaro.org>
8241
8242 * linux-low.c (proceed_one_lwp): Declare.
8243 (linux_resume_one_thread): Remove local variable 'step'.
8244 Lift code enqueue signal. Call proceed_one_lwp instead of
8245 linux_resume_one_lwp.
8246
4281b351
YQ
82472016-07-21 Yao Qi <yao.qi@linaro.org>
8248
8249 * linux-low.c (linux_resume_one_thread): Call
8250 enqueue_pending_signal.
8251
984a2c04
YQ
82522016-07-21 Yao Qi <yao.qi@linaro.org>
8253
8254 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8255 * inferiors.c (do_restore_current_thread_cleanup): New function.
8256 (make_cleanup_restore_current_thread): Likewise.
8257 * linux-low.c (install_software_single_step_breakpoints): Call
8258 make_cleanup_restore_current_thread. Switch current_thread to
8259 thread.
8260
bec903c9
YQ
82612016-07-21 Yao Qi <yao.qi@linaro.org>
8262
8263 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8264 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8265 (clone_one_breakpoint): Likewise.
8266 (delete_reinsert_breakpoints): Change parameter to thread.
8267 Callers updated.
8268 (has_reinsert_breakpoints): Likewise.
8269 (uninsert_reinsert_breakpoints): Likewise.
8270 (reinsert_reinsert_breakpoints): Likewise.
8271 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8272 (delete_reinsert_breakpoints): Likewise.
8273 (reinsert_reinsert_breakpoints): Likewise.
8274 (uninsert_reinsert_breakpoints): Likewise.
8275 (has_reinsert_breakpoints): Likewise.
8276
63c40ec7
YQ
82772016-07-21 Yao Qi <yao.qi@linaro.org>
8278
8279 * inferiors.c (get_thread_process): Make parameter const.
8280 * inferiors.h (get_thread_process): Update declaration.
8281 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8282 Add new parameters child_thread and parent_thread. Callers
8283 updated.
8284 * mem-break.h (clone_all_breakpoints): Update declaration.
8285
9aa76cd0
YQ
82862016-07-21 Yao Qi <yao.qi@linaro.org>
8287
8288 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8289 <command_list, handler>: Remove.
8290 (struct gdb_breakpoint): New.
8291 (struct other_breakpoint): New.
8292 (struct reinsert_breakpoint): New.
8293 (is_gdb_breakpoint): New function.
8294 (any_persistent_commands): Update command_list if
8295 is_gdb_breakpoint returns true.
8296 (set_breakpoint): Create breakpoints according to their types.
8297 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8298 (set_gdb_breakpoint_1): Likewise.
8299 (set_gdb_breakpoint): Likewise.
8300 (clear_breakpoint_conditions): Change parameter type to
8301 'struct gdb_breakpoint *'.
8302 (clear_breakpoint_commands): Likewise.
8303 (clear_breakpoint_conditions_and_commands): Likewise.
8304 (add_condition_to_breakpoint): Likewise.
8305 (add_breakpoint_condition): Likewise.
8306 (add_commands_to_breakpoint): Likewise.
8307 (check_breakpoints): Check other_breakpoint.
8308 (clone_one_breakpoint): Clone breakpopint according to its type.
8309 * mem-break.h (struct gdb_breakpoint): Declare.
8310 (set_gdb_breakpoint): Update declaration.
8311 (clear_breakpoint_conditions_and_commands): Likewise.
8312 (add_breakpoint_condition): Likewise.
8313 (add_breakpoint_commands): Likewise.
8314 * server.c (process_point_options): Change parameter type to
8315 'struct gdb_breakpoint *'.
8316
811f8301
YQ
83172016-07-21 Yao Qi <yao.qi@linaro.org>
8318
8319 * mem-break.c (set_breakpoint_at): Rename it to ...
8320 (set_breakpoint_type_at): ... it.
8321 (set_breakpoint_at): Call set_breakpoint_type_at.
8322 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8323 * mem-break.h (set_breakpoint_at): Update comments.
8324
b1c51e36
CLT
83252016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8326
8327 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8328 to buf parameter.
8329 (nios2_store_gregset): Likewise.
8330
ced2dffb
PA
83312016-07-01 Pedro Alves <palves@redhat.com>
8332 Antoine Tremblay <antoine.tremblay@ericsson.com>
8333
8334 * linux-low.c: Change interface to take the target lwp_info
8335 pointer directly and return void. Handle detaching from a zombie
8336 thread.
8337 (linux_detach_lwp_callback): New function.
8338 (linux_detach): Detach from the leader thread after detaching from
8339 the clone threads.
8340
2ac09a5b
YQ
83412016-06-28 Yao Qi <yao.qi@linaro.org>
8342
8343 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8344 for variable new_offset.
8345 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8346 (aarch64_ftrace_insn_reloc_cb): Likewise.
8347 (aarch64_ftrace_insn_reloc_tb): Likewise.
8348 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8349 PRIx64 instead of PRIx32.
8350
79e7fd4f
YQ
83512016-06-28 Yao Qi <yao.qi@linaro.org>
8352
8353 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8354 (the_low_target): Install arm_get_syscall_trapinfo.
8355
061fc021
YQ
83562016-06-28 Yao Qi <yao.qi@linaro.org>
8357
8358 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8359 function.
8360 (the_low_target): Install aarch64_get_syscall_trapinfo.
8361
4cc32bec
YQ
83622016-06-28 Yao Qi <yao.qi@linaro.org>
8363
8364 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8365 Callers updated.
8366 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8367 Remove parameter sysno.
8368 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8369 sysret.
8370
782c1122
AA
83712016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8372
8373 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8374 (s390_emit_ne_goto): Likewise.
8375 (s390_emit_lt_goto): Likewise.
8376 (s390_emit_le_goto): Likewise.
8377 (s390_emit_gt_goto): Likewise.
8378 (s390_emit_ge_goto): Likewise.
8379 (s390x_emit_eq_goto): Likewise.
8380 (s390x_emit_ne_goto): Likewise.
8381 (s390x_emit_lt_goto): Likewise.
8382 (s390x_emit_le_goto): Likewise.
8383 (s390x_emit_gt_goto): Likewise.
8384 (s390x_emit_ge_goto): Likewise.
8385 (s390_emit_ops_impl): Mark variable static.
8386 (s390x_emit_ops): Likewise.
8387
2e7b624b
YQ
83882016-06-17 Yao Qi <yao.qi@linaro.org>
8389
8390 * linux-low.c (handle_extended_wait): Call
8391 uninsert_reinsert_breakpoints for the parent process. Remove
8392 reinsert breakpoints from the child process. Reinsert them to
8393 the parent process when vfork is done.
8394 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8395 (reinsert_reinsert_breakpoints): New function.
8396 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8397 (reinsert_reinsert_breakpoints): Declare.
8398
8a81c5d7
YQ
83992016-06-17 Yao Qi <yao.qi@linaro.org>
8400
8401 * linux-low.c (handle_extended_wait): If the parent is doing
8402 step-over, remove the reinsert breakpoints from the forked child.
8403
f50bf8e5
YQ
84042016-06-17 Yao Qi <yao.qi@linaro.org>
8405
8406 * linux-low.c (unsuspend_all_lwps): Declare.
8407 (linux_low_filter_event): If thread exited, call finish_step_over.
8408 If step-over is finished, unsuspend other threads.
8409
8376a3cb
YQ
84102016-06-17 Yao Qi <yao.qi@linaro.org>
8411
8412 * linux-low.c (linux_resume_one_lwp_throw): Assert
8413 has_reinsert_breakpoints returns false.
8414 * mem-break.c (delete_disabled_breakpoints): Assert
8415 bp type isn't reinsert_breakpoint.
8416
f79b145d
YQ
84172016-06-17 Yao Qi <yao.qi@linaro.org>
8418
8419 * linux-low.c (maybe_hw_step): New function.
8420 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8421 (finish_step_over): Switch current_thread to lwp temporarily,
8422 and assert has_reinsert_breakpoints returns true.
8423 (proceed_one_lwp): Call maybe_hw_step.
8424 * mem-break.c (has_reinsert_breakpoints): New function.
8425 * mem-break.h (has_reinsert_breakpoints): Declare.
8426
0ae534d2
JT
84272016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8428
8429 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8430
fcdad592
YQ
84312016-05-17 Yao Qi <yao.qi@linaro.org>
8432
8433 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8434 instead of find_inferior.
8435
9e784964
YQ
84362016-05-05 Yao Qi <yao.qi@linaro.org>
8437
8438 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8439 Initialize res to zero.
8440
cf2ebb6e
YQ
84412016-05-05 Yao Qi <yao.qi@linaro.org>
8442
8443 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8444 to uint32_t.
8445
c1aebf87
UW
84462016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8447
8448 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8449 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8450 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8451
35fd2deb 84522016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8453 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8454
8455 * tracepoint.c (write_inferior_int8): New function.
8456 (cmd_qtenable_disable): Write enable flag using
8457 write_inferior_int8.
8458
484b3c32
YQ
84592016-04-25 Yao Qi <yao.qi@linaro.org>
8460
8461 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8462 (need_step_over_p): Return zero if the LWP has pending signals
8463 can be delivered on software single step target.
8464
85ba7d86
YQ
84652016-04-25 Yao Qi <yao.qi@linaro.org>
8466
8467 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8468 return instead of error.
8469
3539aa13
YQ
84702016-04-22 Yao Qi <yao.qi@linaro.org>
8471
8472 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8473 to 23.
8474
5b061e98
YQ
84752016-04-22 Yao Qi <yao.qi@linaro.org>
8476
8477 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8478 signal when stepping over breakpoint with software single
8479 step.
8480
3451269c
PA
84812016-04-21 Pedro Alves <palves@redhat.com>
8482
8483 * linux-s390-low.c (s390_collect_ptrace_register)
8484 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8485 add casts.
8486 (s390_check_regset): Use void * instead of gdb_byte *.
8487
a2358508
PA
84882016-04-20 Pedro Alves <palves@redhat.com>
8489
8490 * configure: Renegerate.
8491
6885166d
YQ
84922016-04-20 Yao Qi <yao.qi@linaro.org>
8493
8494 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8495 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8496 number 16.
8497 (arm_store_gregset): Likewise.
8498
2b863f51
WT
84992016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8500
8501 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8502 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8503 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8504 (amd64-avx-mpx-linux.c): New rules.
8505 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8506 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8507 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8508 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8509 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8510 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8511 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8512 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8513 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8514 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8515 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8516 * linux-x86-low.c (x86_linux_read_description): Add case for
8517 X86_XSTATE_AVX_MPX_MASK.
8518 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8519 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8520 init_registers_i386_avx_mpx_linux.
8521 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8522 (initialize_low_tracepoint): Call
8523 init_registers_i386_avx_mpx_linux.
8524 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8525 (initialize_low_tracepoint): Call
8526 init_registers_amd64_avx_mpx_linux.
8527 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8528 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8529 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8530 declarations.
8531
9b30624b
PA
85322016-04-18 Pedro Alves <palves@redhat.com>
8533
8534 * configure: Regenerate.
8535
45e3745e
AT
85362016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8537
8538 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8539 (aarch64_emit_sub): Likewise.
8540
2afc13ff
PA
85412016-04-12 Pedro Alves <palves@redhat.com>
8542
8543 * utils.c (prepare_to_throw_exception): Delete.
8544
6e774b13
SM
85452016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8546
8547 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8548
4dca19f8
MK
85492016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8550
8551 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8552
d0a9981f
MK
85532016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8554
8555 * linux-aarch64-ipa.c: Add <elf.h> include.
8556 * linux-ppc-ipa.c: Add <elf.h> include.
8557 * linux-s390-ipa.c: Add <elf.h> include.
8558
252db07e
MK
85592016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8560
8561 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8562 (get_raw_reg_ptr): Likewise.
8563 (get_trace_state_variable_value_ptr): Likewise.
8564 (set_trace_state_variable_value_ptr): Likewise.
8565 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8566 char *.
8567
14e2b6d9
MK
85682016-03-31 Wei-cheng Wang <cole945@gmail.com>
8569 Marcin Kościelnicki <koriakin@0x04.net>
8570
8571 PR/17221
8572 * linux-ppc-low.c (emit_insns): New function.
8573 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8574 (ppc_emit_prologue): New function.
8575 (ppc_emit_epilogue): New function.
8576 (ppc_emit_add): New function.
8577 (ppc_emit_sub): New function.
8578 (ppc_emit_mul): New function.
8579 (ppc_emit_lsh): New function.
8580 (ppc_emit_rsh_signed): New function.
8581 (ppc_emit_rsh_unsigned): New function.
8582 (ppc_emit_ext): New function.
8583 (ppc_emit_zero_ext): New function.
8584 (ppc_emit_log_not): New function.
8585 (ppc_emit_bit_and): New function.
8586 (ppc_emit_bit_or): New function.
8587 (ppc_emit_bit_xor): New function.
8588 (ppc_emit_bit_not): New function.
8589 (ppc_emit_equal): New function.
8590 (ppc_emit_less_signed): New function.
8591 (ppc_emit_less_unsigned): New function.
8592 (ppc_emit_ref): New function.
8593 (ppc_emit_const): New function.
8594 (ppc_emit_reg): New function.
8595 (ppc_emit_pop): New function.
8596 (ppc_emit_stack_flush): New function.
8597 (ppc_emit_swap): New function.
8598 (ppc_emit_stack_adjust): New function.
8599 (ppc_emit_call): New function.
8600 (ppc_emit_int_call_1): New function.
8601 (ppc_emit_void_call_2): New function.
8602 (ppc_emit_if_goto): New function.
8603 (ppc_emit_goto): New function.
8604 (ppc_emit_eq_goto): New function.
8605 (ppc_emit_ne_goto): New function.
8606 (ppc_emit_lt_goto): New function.
8607 (ppc_emit_le_goto): New function.
8608 (ppc_emit_gt_goto): New function.
8609 (ppc_emit_ge_goto): New function.
8610 (ppc_write_goto_address): New function.
8611 (ppc_emit_ops_impl): New static variable.
8612 (ppc64v1_emit_prologue): New function.
8613 (ppc64v2_emit_prologue): New function.
8614 (ppc64_emit_epilogue): New function.
8615 (ppc64_emit_add): New function.
8616 (ppc64_emit_sub): New function.
8617 (ppc64_emit_mul): New function.
8618 (ppc64_emit_lsh): New function.
8619 (ppc64_emit_rsh_signed): New function.
8620 (ppc64_emit_rsh_unsigned): New function.
8621 (ppc64_emit_ext): New function.
8622 (ppc64_emit_zero_ext): New function.
8623 (ppc64_emit_log_not): New function.
8624 (ppc64_emit_bit_and): New function.
8625 (ppc64_emit_bit_or): New function.
8626 (ppc64_emit_bit_xor): New function.
8627 (ppc64_emit_bit_not): New function.
8628 (ppc64_emit_equal): New function.
8629 (ppc64_emit_less_signed): New function.
8630 (ppc64_emit_less_unsigned): New function.
8631 (ppc64_emit_ref): New function.
8632 (ppc64_emit_const): New function.
8633 (ppc64v1_emit_reg): New function.
8634 (ppc64v2_emit_reg): New function.
8635 (ppc64_emit_pop): New function.
8636 (ppc64_emit_stack_flush): New function.
8637 (ppc64_emit_swap): New function.
8638 (ppc64v1_emit_call): New function.
8639 (ppc64v2_emit_call): New function.
8640 (ppc64v1_emit_int_call_1): New function.
8641 (ppc64v2_emit_int_call_1): New function.
8642 (ppc64v1_emit_void_call_2): New function.
8643 (ppc64v2_emit_void_call_2): New function.
8644 (ppc64_emit_if_goto): New function.
8645 (ppc64_emit_eq_goto): New function.
8646 (ppc64_emit_ne_goto): New function.
8647 (ppc64_emit_lt_goto): New function.
8648 (ppc64_emit_le_goto): New function.
8649 (ppc64_emit_gt_goto): New function.
8650 (ppc64_emit_ge_goto): New function.
8651 (ppc64v1_emit_ops_impl): New static variable.
8652 (ppc64v2_emit_ops_impl): New static variable.
8653 (ppc_emit_ops): New function.
8654 (linux_low_target): Wire in ppc_emit_ops.
8655
a2174ba4
MK
86562016-03-31 Wei-cheng Wang <cole945@gmail.com>
8657 Marcin Kościelnicki <koriakin@0x04.net>
8658
8659 PR/17221
8660 * Makefile.in: Add powerpc-*-ipa.o
8661 * configure.srv: Add ipa_obj for powerpc*-linux.
8662 * linux-ppc-ipa.c: New file.
8663 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8664 includes.
8665 (PPC_FIELD): New macro.
8666 (PPC_SEXT): New macro.
8667 (PPC_OP6): New macro.
8668 (PPC_BO): New macro.
8669 (PPC_LI): New macro.
8670 (PPC_BD): New macro.
8671 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8672 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8673 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8674 (ppc_get_thread_area): New function.
8675 (is_elfv2_inferior): New function.
8676 (gen_ds_form): New function.
8677 (GEN_STD): New macro.
8678 (GEN_STDU): New macro.
8679 (GEN_LD): New macro.
8680 (GEN_LDU): New macro.
8681 (gen_d_form): New function.
8682 (GEN_ADDI): New macro.
8683 (GEN_ADDIS): New macro.
8684 (GEN_LI): New macro.
8685 (GEN_LIS): New macro.
8686 (GEN_ORI): New macro.
8687 (GEN_ORIS): New macro.
8688 (GEN_LWZ): New macro.
8689 (GEN_STW): New macro.
8690 (GEN_STWU): New macro.
8691 (gen_xfx_form): New function.
8692 (GEN_MFSPR): New macro.
8693 (GEN_MTSPR): New macro.
8694 (GEN_MFCR): New macro.
8695 (GEN_MTCR): New macro.
8696 (GEN_SYNC): New macro.
8697 (GEN_LWSYNC): New macro.
8698 (gen_x_form): New function.
8699 (GEN_OR): New macro.
8700 (GEN_MR): New macro.
8701 (GEN_LWARX): New macro.
8702 (GEN_STWCX): New macro.
8703 (GEN_CMPW): New macro.
8704 (gen_md_form): New function.
8705 (GEN_RLDICL): New macro.
8706 (GEN_RLDICR): New macro.
8707 (gen_i_form): New function.
8708 (GEN_B): New macro.
8709 (GEN_BL): New macro.
8710 (gen_b_form): New function.
8711 (GEN_BNE): New macro.
8712 (GEN_LOAD): New macro.
8713 (GEN_STORE): New macro.
8714 (gen_limm): New function.
8715 (gen_atomic_xchg): New function.
8716 (gen_call): New function.
8717 (ppc_relocate_instruction): New function.
8718 (ppc_install_fast_tracepoint_jump_pad): New function.
8719 (ppc_get_min_fast_tracepoint_insn_len): New function.
8720 (ppc_get_ipa_tdesc_idx): New function.
8721 (the_low_target): Wire in the new functions.
8722 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8723 tdescs.
8724 * linux-ppc-tdesc.h: New file.
8725
a13c4696
MK
87262016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8727
8728 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8729 (alloc_jump_pad_buffer): New function.
8730 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8731 (alloc_jump_pad_buffer): New function.
8732 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8733 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8734 (alloc_jump_pad_buffer): New function.
8735 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8736 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8737 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8738 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8739
1cda1512
MK
87402016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8741
8742 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8743 * linux-amd64-ipa.c: Likewise.
8744 * linux-i386-ipa.c: Likewise.
8745 * linux-s390-ipa.c: Likewise.
8746 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8747 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8748 set_trace_state_variable_value_ptr.
8749 (struct ipa_sym_addresses): Likewise.
8750 (symbol_list): Likewise.
8751 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8752 accessing gdb_collect directly.
8753 (gdb_collect_ptr_type): New typedef.
8754 (get_raw_reg_ptr_type): New typedef.
8755 (get_trace_state_variable_value_ptr_type): New typedef.
8756 (set_trace_state_variable_value_ptr_type): New typedef.
8757 (gdb_collect_ptr): New global.
8758 (get_raw_reg_ptr): New global.
8759 (get_trace_state_variable_value_ptr): New global.
8760 (set_trace_state_variable_value_ptr): New global.
8761 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8762 accessing get_raw_reg directly.
8763 (get_get_tsv_func_addr): Likewise for
8764 get_trace_state_variable_value_ptr.
8765 (get_set_tsv_func_addr): Likewise for
8766 set_trace_state_variable_value_ptr.
8767 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8768
72fb5488
SM
87692016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8770
8771 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8772
28170b88
MK
87732016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8774
8775 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8776 packets.
8777 (relocate_instruction): Remove own_buf.
8778 * server.c (own_buf): Make global.
8779 (handle_v_requests): Make global.
8780 * server.h (own_buf): New declaration.
8781 (handle_v_requests): New prototype.
8782
f39e8743
MK
87832016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8784
8785 PR 18377
8786 * linux-s390-low.c (add_insns): New function.
8787 (s390_emit_prologue): New function.
8788 (s390_emit_epilogue): New function.
8789 (s390_emit_add): New function.
8790 (s390_emit_sub): New function.
8791 (s390_emit_mul): New function.
8792 (s390_emit_lsh): New function.
8793 (s390_emit_rsh_signed): New function.
8794 (s390_emit_rsh_unsigned): New function.
8795 (s390_emit_ext): New function.
8796 (s390_emit_log_not): New function.
8797 (s390_emit_bit_and): New function.
8798 (s390_emit_bit_or): New function.
8799 (s390_emit_bit_xor): New function.
8800 (s390_emit_bit_not): New function.
8801 (s390_emit_equal): New function.
8802 (s390_emit_less_signed): New function.
8803 (s390_emit_less_unsigned): New function.
8804 (s390_emit_ref): New function.
8805 (s390_emit_if_goto): New function.
8806 (s390_emit_goto): New function.
8807 (s390_write_goto_address): New function.
8808 (s390_emit_litpool): New function.
8809 (s390_emit_const): New function.
8810 (s390_emit_call): New function.
8811 (s390_emit_reg): New function.
8812 (s390_emit_pop): New function.
8813 (s390_emit_stack_flush): New function.
8814 (s390_emit_zero_ext): New function.
8815 (s390_emit_swap): New function.
8816 (s390_emit_stack_adjust): New function.
8817 (s390_emit_set_r2): New function.
8818 (s390_emit_int_call_1): New function.
8819 (s390_emit_void_call_2): New function.
8820 (s390_emit_eq_goto): New function.
8821 (s390_emit_ne_goto): New function.
8822 (s390_emit_lt_goto): New function.
8823 (s390_emit_le_goto): New function.
8824 (s390_emit_gt_goto): New function.
8825 (s390_emit_ge_goto): New function.
8826 (s390x_emit_prologue): New function.
8827 (s390x_emit_epilogue): New function.
8828 (s390x_emit_add): New function.
8829 (s390x_emit_sub): New function.
8830 (s390x_emit_mul): New function.
8831 (s390x_emit_lsh): New function.
8832 (s390x_emit_rsh_signed): New function.
8833 (s390x_emit_rsh_unsigned): New function.
8834 (s390x_emit_ext): New function.
8835 (s390x_emit_log_not): New function.
8836 (s390x_emit_bit_and): New function.
8837 (s390x_emit_bit_or): New function.
8838 (s390x_emit_bit_xor): New function.
8839 (s390x_emit_bit_not): New function.
8840 (s390x_emit_equal): New function.
8841 (s390x_emit_less_signed): New function.
8842 (s390x_emit_less_unsigned): New function.
8843 (s390x_emit_ref): New function.
8844 (s390x_emit_if_goto): New function.
8845 (s390x_emit_const): New function.
8846 (s390x_emit_call): New function.
8847 (s390x_emit_reg): New function.
8848 (s390x_emit_pop): New function.
8849 (s390x_emit_stack_flush): New function.
8850 (s390x_emit_zero_ext): New function.
8851 (s390x_emit_swap): New function.
8852 (s390x_emit_stack_adjust): New function.
8853 (s390x_emit_int_call_1): New function.
8854 (s390x_emit_void_call_2): New function.
8855 (s390x_emit_eq_goto): New function.
8856 (s390x_emit_ne_goto): New function.
8857 (s390x_emit_lt_goto): New function.
8858 (s390x_emit_le_goto): New function.
8859 (s390x_emit_gt_goto): New function.
8860 (s390x_emit_ge_goto): New function.
8861 (s390_emit_ops): New function.
8862 (struct linux_target_ops): Fill in emit_ops hook.
8863
abd9baf9
MK
88642016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8865
8866 PR 18377
8867 * Makefile.in: Add s390 IPA files.
8868 * configure.srv: Build IPA for s390.
8869 * linux-s390-ipa.c: New file.
8870 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8871 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8872 (tdesc_s390_linux32): Likewise.
8873 (init_registers_s390_linux32v1): Likewise.
8874 (tdesc_s390_linux32v1): Likewise.
8875 (init_registers_s390_linux32v2): Likewise.
8876 (tdesc_s390_linux32v2): Likewise.
8877 (init_registers_s390_linux64): Likewise.
8878 (tdesc_s390_linux64): Likewise.
8879 (init_registers_s390_linux64v1): Likewise.
8880 (tdesc_s390_linux64v1): Likewise.
8881 (init_registers_s390_linux64v2): Likewise.
8882 (tdesc_s390_linux64v2): Likewise.
8883 (init_registers_s390_te_linux64): Likewise.
8884 (tdesc_s390_te_linux64): Likewise.
8885 (init_registers_s390_vx_linux64): Likewise.
8886 (tdesc_s390_vx_linux64): Likewise.
8887 (init_registers_s390_tevx_linux64): Likewise.
8888 (tdesc_s390_tevx_linux64): Likewise.
8889 (init_registers_s390x_linux64): Likewise.
8890 (tdesc_s390x_linux64): Likewise.
8891 (init_registers_s390x_linux64v1): Likewise.
8892 (tdesc_s390x_linux64v1): Likewise.
8893 (init_registers_s390x_linux64v2): Likewise.
8894 (tdesc_s390x_linux64v2): Likewise.
8895 (init_registers_s390x_te_linux64): Likewise.
8896 (tdesc_s390x_te_linux64): Likewise.
8897 (init_registers_s390x_vx_linux64): Likewise.
8898 (tdesc_s390x_vx_linux64): Likewise.
8899 (init_registers_s390x_tevx_linux64): Likewise.
8900 (tdesc_s390x_tevx_linux64): Likewise.
8901 (have_hwcap_s390_vx): New static variable.
8902 (s390_arch_setup): Fill have_hwcap_s390_vx.
8903 (s390_get_thread_area): New function.
8904 (s390_ft_entry_gpr_esa): New const.
8905 (s390_ft_entry_gpr_zarch): New const.
8906 (s390_ft_entry_misc): New const.
8907 (s390_ft_entry_fr): New const.
8908 (s390_ft_entry_vr): New const.
8909 (s390_ft_main_31): New const.
8910 (s390_ft_main_64): New const.
8911 (s390_ft_exit_fr): New const.
8912 (s390_ft_exit_vr): New const.
8913 (s390_ft_exit_misc): New const.
8914 (s390_ft_exit_gpr_esa): New const.
8915 (s390_ft_exit_gpr_zarch): New const.
8916 (append_insns): New function.
8917 (s390_relocate_instruction): New function.
8918 (s390_install_fast_tracepoint_jump_pad): New function.
8919 (s390_get_min_fast_tracepoint_insn_len): New function.
8920 (s390_get_ipa_tdesc_idx): New function.
8921 (struct linux_target_ops): Wire in the above functions.
8922 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8923 * linux-s390-tdesc.h: New file.
8924
a4105d04
MK
89252016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8926
8927 * linux-s390-low.c (s390_supports_tracepoints): New function.
8928 (struct linux_target_ops): Fill supports_tracepoints hook.
8929
35ac8b3e
YQ
89302016-03-18 Yao Qi <yao.qi@linaro.org>
8931
8932 * linux-low.c (lwp_signal_can_be_delivered): New function.
8933 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8934
94610ec4
YQ
89352016-03-18 Yao Qi <yao.qi@linaro.org>
8936
8937 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8938 0 if signal is enqueued. Remove 'signal' from one debugging
8939 message. Move one debugging message to some lines below.
8940 Remove code setting 'signal' to 0.
8941
80aea927
YQ
89422016-03-18 Yao Qi <yao.qi@linaro.org>
8943
8944 * linux-low.c (linux_low_filter_event): Remove redundant
8945 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8946
b04fd3be
MK
89472016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8948
8949 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8950 (struct linux_target_ops): Wire in the above.
8951
c40c8d4b
YQ
89522016-03-03 Yao Qi <yao.qi@linaro.org>
8953
8954 * linux-low.c: Update comments to start_step_over.
8955
0f8288ae
YQ
89562016-03-03 Yao Qi <yao.qi@linaro.org>
8957
8958 PR server/19736
8959 * linux-low.c (handle_extended_wait): Set child suspended
8960 if event_lwp->bp_reinsert isn't zero.
8961
fdbd04a8
YQ
89622016-03-02 Yao Qi <yao.qi@linaro.org>
8963
8964 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8965 enqueue_pending_signal.
8966
6896a8fa
MK
89672016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8968
8969 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8970 is actually loaded.
8971
ab503087
MK
89722016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8973
8974 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8975 (s390_regmap_3264) [!__s390x__]: New global.
8976 (s390_collect_ptrace_register): Skip map entries containing -1.
8977 (s390_supply_ptrace_register): Ditto.
8978 (s390_fill_gprs_high): New function.
8979 (s390_store_gprs_high): New function.
8980 (s390_regsets): Add NT_S390_HIGH_GPRS.
8981 (s390_get_hwcap): Enable on 31-bit.
8982 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8983 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8984 Detect NT_S390_HIGH_GPRS.
8985 (s390_usrregs_info_3264): Enable on 31-bit.
8986 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8987 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8988
ae91f625
MK
89892016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8990
8991 PR gdb/13808
8992 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8993 * configure.srv: Ditto.
8994 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8995 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8996 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8997 (init_registers_amd64_linux): Remove prototype.
8998 (tdesc_amd64_linux): Remove declaration.
8999 (get_ipa_tdesc): New function.
9000 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9001 initialize remaining tdescs.
9002 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9003 (init_registers_i386_linux): Remove prototype.
9004 (tdesc_i386_linux): Remove declaration.
9005 (get_ipa_tdesc): New function.
9006 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9007 initialize remaining tdescs.
9008 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9009 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9010 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9011 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9012 (x86_get_ipa_tdesc_idx): New function.
9013 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9014 * linux-x86-tdesc.h: New file.
9015 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9016 (target_get_ipa_tdesc_idx): New macro.
9017 * tracepoint.c (ipa_tdesc_idx): New macro.
9018 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9019 (symbol_list): Add ipa_tdesc_idx.
9020 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9021 (ipa_tdesc): Remove.
9022 (ipa_tdesc_idx): New variable.
9023 (get_context_regcache): Use get_ipa_tdesc.
9024 (gdb_collect): Ditto.
9025 (gdb_probe): Ditto.
9026 * tracepoint.h (get_ipa_tdesc): New prototype.
9027 (ipa_tdesc): Remove.
9028
e7ad2f14
PA
90292016-02-24 Pedro Alves <palves@redhat.com>
9030
9031 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9032 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9033 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9034 Factor out common code between the USE_SIGTRAP_SIGINFO and
9035 !USE_SIGTRAP_SIGINFO blocks.
9036 (linux_low_filter_event): Call save_stop_reason instead of
9037 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9038 Update comments.
9039 (linux_wait_1): Update comments.
9040
657f9cde
WW
90412016-02-24 Wei-cheng Wang <cole945@gmail.com>
9042
9043 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9044 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9045 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9046 ppc_insert_point, ppc_remove_point.
9047
b00b61e1
MK
90482016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9049
9050 * linux-s390-low.c (s390_supports_z_point_type): New function.
9051 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9052
553cb527
YQ
90532016-02-16 Yao Qi <yao.qi@linaro.org>
9054
9055 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9056 PC. Get pc from regcache_read_pc.
9057
a5652c21
YQ
90582016-02-12 Yao Qi <yao.qi@linaro.org>
9059
9060 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9061 or linux_get_pc_32bit.
9062 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9063
ed443b61
YQ
90642016-02-12 Yao Qi <yao.qi@linaro.org>
9065
9066 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9067 arm_linux_get_next_pcs_fixup.
9068
020ecd38
MK
90692016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9070
9071 * tracepoint.c (x_tracepoint_action_download): Change
9072 write_inferior_data_ptr to write_inferior_data_pointer.
9073 (cmd_qtstart): Likewise.
9074 (write_inferior_data_ptr): Remove.
9075 (download_agent_expr): Change write_inferior_data_ptr to
9076 write_inferior_data_pointer.
9077 (download_tracepoint_1): Likewise.
9078 (download_tracepoint): Likewise.
9079 (download_trace_state_variables): Likewise.
9080
7cae9051
WW
90812016-02-11 Wei-cheng Wang <cole945@gmail.com>
9082 Marcin Kościelnicki <koriakin@0x04.net>
9083
9084 * tracepoint.c (struct tracepoint_action_ops): Remove.
9085 (struct tracepoint_action): Remove ops.
9086 (m_tracepoint_action_download, r_tracepoint_action_download)
9087 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9088 size and offset accordingly.
9089 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9090 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9091 (tracepoint_action_send, tracepoint_action_download): New functions.
9092 Helpers for trace action handlers.
9093 (add_tracepoint_action): Remove setup actions ops.
9094 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9095
9f6a71b4
YQ
90962016-02-10 Yao Qi <yao.qi@linaro.org>
9097
9098 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9099
1e94266c
SM
91002016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9101
9102 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9103 to AC_OUTPUT.
9104 * configure: Regenerate.
9105
8adce034
SM
91062016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9107
9108 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9109 void * to gdb_byte *.
9110 * linux-low.c (siginfo_fixup): Likewise.
9111 (linux_xfer_siginfo): Likewise.
9112 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9113 Likewise.
9114 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9115
93813b37
WT
91162016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9117
9118 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9119 to srv_tgtobj.
9120 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9121 to srv_tgtobj.
9122 * linux-x86-low.c [__x86_64__]: Include
9123 "nat/amd64-linux-siginfo.h".
9124 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9125 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9126 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9127 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9128 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9129 (cpt_si_fd, si_timerid, si_overrun): Move from
9130 nat/amd64-linux-siginfo.c.
9131 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9132
8424cc97
SM
91332016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9134
9135 * server.c (skip_to_semicolon): Remove.
9136 (process_point_options): Use strchrnul instead of
9137 skip_to_semicolon.
9138
4d18591b
YQ
91392016-01-26 Yao Qi <yao.qi@linaro.org>
9140
9141 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9142 * linux-low.c (install_software_single_step_breakpoints): Don't
9143 call regcache_read_pc.
9144 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9145 argument pc.
9146
d8020970
YQ
91472016-01-26 Yao Qi <yao.qi@linaro.org>
9148
9149 * linux-low.c (install_software_single_step_breakpoints): Call
9150 regcache_read_pc instead of get_pc.
9151
8b207339
YQ
91522016-01-26 Yao Qi <yao.qi@linaro.org>
9153
9154 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9155 (unblock_async_io): Rename to ...
9156 (block_unblock_async_io): ... it. New function.
9157 (enable_async_io): Don't install SIGIO handler. Unblock it
9158 instead.
9159 (disable_async_io): Don't ignore SIGIO. Block it instead.
9160 (initialize_async_io): Install SIGIO handler. Don't call
9161 unblock_async_io.
9162
18879fef
YQ
91632016-01-26 Yao Qi <yao.qi@linaro.org>
9164
9165 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9166 first character is '\003', call *the_target->request_interrupt.
9167
a0f8e08a
YQ
91682016-01-25 Yao Qi <yao.qi@linaro.org>
9169
9170 * remote-utils.c (new_thread_notify): Remove.
9171 (dead_thread_notify): Likewise.
9172 * remote-utils.h (new_thread_notify): Remove declaration.
9173 (dead_thread_notify): Likewise.
9174
cc5fd9ab
MK
91752016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9176
9177 * gdb.trace/pending.exp: Fix expected message on continue.
9178
99e8eb11
MK
91792016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9180
9181 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9182 it works properly on big-endian machines where sizeof (CORE_ADDR)
9183 != sizeof (void *).
9184
a994041d
PA
91852016-01-21 Pedro Alves <palves@redhat.com>
9186
9187 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9188 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9189 * configure: Regenerate.
9190
f7a6a40d
YQ
91912016-01-21 Yao Qi <yao.qi@linaro.org>
9192
9193 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9194 is_thumb and set it according to CPSR saved on the stack.
9195 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9196 arm_sigreturn_next_pc.
9197
6f69e520
YQ
91982016-01-18 Yao Qi <yao.qi@linaro.org>
9199
9200 * linux-low.c (linux_set_pc_64bit): New function.
9201 (linux_get_pc_64bit): New function.
9202 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9203 Declare.
9204 * linux-sparc-low.c (debug_threads): Remove declaration.
9205 (sparc_get_pc): Remove.
9206 (the_low_target): Use linux_get_pc_64bit instead of
9207 sparc_get_pc.
9208 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9209 (the_low_target): Use linux_get_pc_64bit and
9210 linux_set_pc_64bit.
9211
276d4552
YQ
92122016-01-18 Yao Qi <yao.qi@linaro.org>
9213
9214 * linux-arm-low.c (debug_threads): Remove declaration.
9215 (arm_get_pc, arm_set_pc): Remove.
9216 (the_low_target): Use linux_get_pc_32bit and
9217 linux_set_pc_32bit.
9218 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9219 (the_low_target): Use linux_get_pc_32bit and
9220 linux_set_pc_32bit.
9221 * linux-cris-low.c (debug_threads): Remove declaration.
9222 (cris_get_pc, cris_set_pc,): Remove.
9223 (the_low_target): Use linux_get_pc_32bit and
9224 linux_set_pc_32bit.
9225 * linux-crisv32-low.c (debug_threads): Remove declaration.
9226 (cris_get_pc, cris_set_pc): Remove.
9227 (the_low_target): Use linux_get_pc_32bit and
9228 linux_set_pc_32bit.
9229 * linux-low.c: Include inttypes.h.
9230 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9231 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9232 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9233 (the_low_target): Use linux_get_pc_32bit and
9234 linux_set_pc_32bit.
9235 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9236 (the_low_target): Use linux_get_pc_32bit and
9237 linux_set_pc_32bit.
9238 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9239 (the_low_target): Use linux_get_pc_32bit and
9240 linux_set_pc_32bit.
9241 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9242 (the_low_target): Use linux_get_pc_32bit and
9243 linux_set_pc_32bit.
9244 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9245 (the_low_target): Use linux_get_pc_32bit and
9246 linux_set_pc_32bit.
9247
eb0edac8
GB
92482016-01-18 Gary Benson <gbenson@redhat.com>
9249
9250 * configure.ac (AC_FUNC_FORK): New check.
9251 * config.in: Regenerate.
9252 * configure: Likewise.
9253
1b451dda
YQ
92542016-01-14 Yao Qi <yao.qi@linaro.org>
9255
9256 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9257 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9258 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9259 arm_get_next_pcs_ctor.
9260
82075af2
JS
92612016-01-12 Josh Stone <jistone@redhat.com>
9262 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9263
9264 * inferiors.h: Include "gdb_vecs.h".
9265 (struct process_info): Add syscalls_to_catch.
9266 * inferiors.c (remove_process): Free syscalls_to_catch.
9267 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9268 syscall_return stops.
9269 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9270 * server.c (handle_general_set): Handle QCatchSyscalls.
9271 (handle_query): Report support for QCatchSyscalls.
9272 * target.h (struct target_ops): Add supports_catch_syscall.
9273 (target_supports_catch_syscall): New macro.
9274 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9275 (struct lwp_info): Add syscall_state.
9276 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9277 Maintain syscall_state and syscalls_to_catch across exec.
9278 (get_syscall_trapinfo): New function, proxy to the_low_target.
9279 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9280 (linux_low_filter_event): Toggle syscall_state entry/return for
9281 syscall traps, and set it ignored for all others.
9282 (gdb_catching_syscalls_p): New function.
9283 (gdb_catch_this_syscall_p): New function.
9284 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9285 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9286 (linux_supports_catch_syscall): New function.
9287 (linux_target_ops): Install it.
9288 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9289 (the_low_target): Install it.
9290
8f13a3ce
MF
92912016-01-12 Mike Frysinger <vapier@gentoo.org>
9292
9293 * acinclude.m4: Include new ../warning.m4 file.
9294 * configure: Regenerated.
9295 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9296
5b3da067
MF
92972016-01-12 Mike Frysinger <vapier@gentoo.org>
9298
9299 * ax.c (is_goto_target): Mark static.
9300 * linux-low.c (register_addr): Likewise.
9301 (linux_fetch_registers, linux_store_registers): Likewise.
9302 * mem-break.c (any_persistent_commands): Fix old prototype.
9303 (add_commands_to_breakpoint): Mark static.
9304 * regcache.c (find_register_by_name): Delete unused func.
9305 * remote-utils.c (hex_or_minus_one): Mark static.
9306 * server.c (monitor_show_help): Mark static.
9307 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9308 handle_v_requests): Likewise.
9309
bc504a31
PA
93102016-01-12 Pedro Alves <palves@redhat.com>
9311
9312 Remove use of the registered trademark symbol throughout.
9313
5a0dd67a
YQ
93142016-01-08 Yao Qi <yao.qi@linaro.org>
9315
9316 * remote-utils.c (getpkt): If c is '\003', call target hook
9317 request_interrupt.
9318
b2ca446f
YQ
93192016-01-06 Yao Qi <yao.qi@linaro.org>
9320
9321 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9322 linux-aarch32-low.c.
9323 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9324 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9325 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9326 (thumb2_breakpoint): Declare.
9327 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9328 linux-aarch32-low.h.
9329 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9330 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9331 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9332
edd88788
JB
93332016-01-01 Joel Brobecker <brobecker@adacore.com>
9334
9335 * gdbreplay.c (gdbreplay_version): Change copyright year in
9336 version message.
9337 * server.c (gdbserver_version): Likewise.
9338
65da7f14
PP
93392015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9340
9341 * server.c (crc32_table): Delete.
9342 (crc32): Use libiberty's xcrc32 function.
9343
4abd5ed2
JB
93442015-12-22 Joel Brobecker <brobecker@adacore.com>
9345
9346 * lynx-low.c (lynx_delete_thread_callback): New function.
9347 (lynx_mourn): Properly delete our process and all of its
9348 threads. Remove call to clear_inferiors.
9349
0e50fe5c
JB
93502015-12-22 Joel Brobecker <brobecker@adacore.com>
9351
9352 * target.c (thread_search_callback): Add check that
9353 the thread_stopped target callback is not NULL before
9354 calling it.
9355
35adc03f
YQ
93562015-12-21 Yao Qi <yao.qi@linaro.org>
9357
9358 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9359 arm breakpoint.
9360
bd2b2909
AT
93612015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9362
9363 * server.c (handle_query): Call target_supports_software_single_step.
9364
7fe5e27e
AT
93652015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9366
9367 * linux-low.c (single_step): New function.
9368 (linux_resume_one_lwp_throw): Call single_step.
9369 (start_step_over): Likewise.
9370
d9311bfa
AT
93712015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9372
9373 * Makefile.in (SFILES): Append arch/arm-linux.c,
9374 arch/arm-get-next-pcs.c.
9375 (arm-linux.o): New rule.
9376 (arm-get-next-pcs.o): New rule.
9377 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9378 arm-linux.o.
9379 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9380 to linux-aarch32-low.c.
9381 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9382 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9383 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9384 (thumb2_breakpoint_len): Likewise.
9385 (arm_is_thumb_mode): Make non-static.
9386 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9387 from linux-aarch32-low.c.
9388 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9389 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9390 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9391 (thumb2_breakpoint_len): Likewise.
9392 (arm_is_thumb_mode): New declaration.
9393 * linux-arm-low.c: Include arch/arm-linux.h
9394 aarch/arm-get-next-pcs.h, sys/syscall.h.
9395 (get_next_pcs_ops): New struct.
9396 (get_next_pcs_addr_bits_remove): New function.
9397 (get_next_pcs_is_thumb): New function.
9398 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9399 (arm_sigreturn_next_pc): Likewise.
9400 (get_next_pcs_syscall_next_pc): Likewise.
9401 (arm_gdbserver_get_next_pcs): Likewise.
9402 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9403 Initialize.
9404 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9405 * server.h: Include gdb_vecs.h.
9406
68ce2059
AT
94072015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9408
9409 * Makefile.in (SFILES): Append common/common-regcache.c.
9410 (OBS): Append common-regcache.o.
9411 (common-regcache.o): New rule.
9412 * regcache.c (init_register_cache): Initialize cache to
9413 REG_UNAVAILABLE.
9414 (regcache_raw_read_unsigned): New function.
9415 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9416 register_status enum.
9417
fa5308bd
AT
94182015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9419
9420 * linux-aarch64-low.c (the_low_targets): Rename
9421 breakpoint_reinsert_addr to get_next_pcs.
9422 * linux-arm-low.c (the_low_targets): Likewise.
9423 * linux-bfin-low.c (the_low_targets): Likewise.
9424 * linux-cris-low.c (the_low_targets): Likewise.
9425 * linux-crisv32-low.c (the_low_targets): Likewise.
9426 * linux-low.c (can_software_single_step): Likewise.
9427 (install_software_single_step_breakpoints): New function.
9428 (start_step_over): Use install_software_single_step_breakpoints.
9429 * linux-low.h: New CORE_ADDR vector.
9430 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9431 get_next_pcs.
9432 * linux-mips-low.c (the_low_targets): Likewise.
9433 * linux-nios2-low.c (the_low_targets): Likewise.
9434 * linux-sparc-low.c (the_low_targets): Likewise.
9435
4a6ed09b
PA
94362015-12-17 Pedro Alves <palves@redhat.com>
9437
9438 * linux-low.c (linux_kill_one_lwp): Remove references to
9439 LinuxThreads.
9440 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9441 to 'kill'.
9442 (linux_init_signals): Delete.
9443 (initialize_low): Adjust.
9444 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9445
7544db95
PA
94462015-12-16 Pedro Alves <palves@redhat.com>
9447
9448 * configure.ac (compiler warning flags): When testing a
9449 -Wno-foo option, check whether -Wfoo works instead.
9450 * configure: Regenerate.
9451
8020350c
DB
94522015-12-11 Don Breazeal <donb@codesourcery.com>
9453
9454 * server.c (process_serial_event): Don't exit from gdbserver
9455 in remote mode if there are still active inferiors.
9456
db91f502
YQ
94572015-12-11 Yao Qi <yao.qi@linaro.org>
9458
9459 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9460 arm_breakpoint_at if the process is 32-bit.
9461
b37a6290
YQ
94622015-12-11 Yao Qi <yao.qi@linaro.org>
9463
9464 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9465 arm breakpoint.
9466
17b1509a
YQ
94672015-12-07 Yao Qi <yao.qi@linaro.org>
9468
9469 * configure.srv: Append arm.o to srv_tgtobj for
9470 aarch64*-*-linux* target.
9471 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9472 from linux-arm-low.c.
9473 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9474 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9475 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9476 (thumb2_breakpoint_len): Likewise.
9477 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9478 (arm_breakpoint_kinds): Likewise.
9479 (arm_breakpoint_kind_from_pc): Likewise.
9480 (arm_sw_breakpoint_from_kind): Likewise.
9481 (arm_breakpoint_kind_from_current_state): Likewise.
9482 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9483 (arm_sw_breakpoint_from_kind): Declare.
9484 (arm_breakpoint_kind_from_current_state): Declare.
9485 (arm_breakpoint_at): Declare.
9486 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9487 arm_sw_breakpoint_from_kind if process is 32-bit.
9488 (aarch64_breakpoint_kind_from_pc): New function.
9489 (aarch64_breakpoint_kind_from_current_state): New function.
9490 (the_low_target): Initialize fields breakpoint_kind_from_pc
9491 and breakpoint_kind_from_current_state.
9492 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9493 linux-aarch32-low.c.
9494 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9495 (arm_breakpoint, arm_breakpoint_len): Likewise.
9496 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9497 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9498 (arm_is_thumb_mode): Likewise.
9499 (arm_breakpoint_at): Likewise.
9500 (arm_breakpoint_kind_from_pc): Likewise.
9501 (arm_sw_breakpoint_from_kind): Likewise.
9502 (arm_breakpoint_kind_from_current_state): Likewise.
9503
9504 Revert:
9505 2015-08-04 Yao Qi <yao.qi@linaro.org>
9506
9507 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9508 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9509 * server.c (extended_protocol): Remove "static".
9510 * server.h (extended_protocol): Declare it.
9511
ece66d65
JS
95122015-12-04 Josh Stone <jistone@redhat.com>
9513
9514 * target.h (struct target_ops) <arch_setup>: Rename to ...
9515 (struct target_ops) <post_create_inferior>: ... this.
9516 (target_arch_setup): Rename to ...
9517 (target_post_create_inferior): ... this, calling post_create_inferior.
9518 * server.c (start_inferior): Update target_arch_setup calls to
9519 target_post_create_inferior.
9520 * linux-low.c (linux_low_ptrace_options): Forward declare.
9521 (linux_arch_setup): Update its comment for general use.
9522 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9523 (struct linux_target_ops): Use linux_post_create_inferior.
9524 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9525 to post_create_inferior.
9526 * nto-low.c (struct nto_target_ops): Likewise.
9527 * spu-low.c (struct spu_target_ops): Likewise.
9528 * win32-low.c (struct win32_target_ops): Likewise.
9529
e58c48b4
AT
95302015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9531
9532 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9533
fbec8956
AT
95342015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9535
9536 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9537 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9538 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9539 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9540 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9541 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9542 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9543 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9544 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9545 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9546 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9547 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9548
9b4c5f87
AT
95492015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9550
9551 * linux-low.c (linux_look_up_symbols): Don't call
9552 linux_supports_traceclone.
9553 * linux-low.h (thread_db_init): Remove use_events argument.
9554 * thread-db.c (thread_db_use_event): Remove global variable.
9555 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9556 (struct thread_db) <td_create_bp>: Remove field.
9557 (thread_db_create_event): Remove function.
9558 (thread_db_enable_reporting): Likewise.
9559 (find_one_thread): Don't check for thread_db_use_events.
9560 (attach_thread): Likewise.
9561 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9562 (try_thread_db_load_1): Don't check for thread_db_use_events.
9563 (thread_db_init): Remove use_events argument and thread events
9564 handling.
9565 (remove_thread_event_breakpoints): Remove function.
9566 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9567
7d00775e
AT
95682015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9569
9570 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9571 New function.
9572 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9573 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9574 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9575 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9576 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9577 Initialize.
9578 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9579 New function.
9580 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9581 * linux-low.c (can_hardware_single_step): Use
9582 supports_hardware_single_step.
9583 (can_software_single_step): New function.
9584 (start_step_over): Call can_software_single_step.
9585 (linux_supports_hardware_single_step): New function.
9586 (struct target_ops) <supports_software_single_step>: Initialize.
9587 * linux-low.h (struct linux_target_ops)
9588 <supports_hardware_single_step>: Initialize.
9589 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9590 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9591 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9592 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9593 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9594 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9595 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9596 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9597 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9598 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9599 Initialize.
9600 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9601 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9602 Initialize.
9603 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9604 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9605 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9606 New function.
9607 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9608 * target.h (struct target_ops): <supports_software_single_step>:
9609 New field.
9610 (target_supports_software_single_step): New macro.
9611
2d97cd35
AT
96122015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9613
9614 * linux-low.c (linux_wait_1): Fix pc advance condition.
9615 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9616 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9617
769ef81f
AT
96182015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9619
9620 * linux-arm-low.c (arm_is_thumb_mode): New function.
9621 (arm_breakpoint_at): Use arm_is_thumb_mode.
9622 (arm_breakpoint_kind_from_current_state): New function.
9623 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9624 Initialize.
9625 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9626 (linux_breakpoint_kind_from_current_state): New function.
9627 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9628 * linux-low.h (struct linux_target_ops)
9629 <breakpoint_kind_from_current_state>: New field.
9630 * target.h (struct target_ops): Likewise.
9631 (target_breakpoint_kind_from_current_state): New macro.
9632
1bebeeca
PA
96332015-11-30 Pedro Alves <palves@redhat.com>
9634
9635 * linux-low.c (linux_resume): Wake up the event loop before
9636 returning.
9637
a67a9fae
PA
96382015-11-30 Pedro Alves <palves@redhat.com>
9639
9640 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9641 check.
9642 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9643 to -1.
9644 * target.c (struct thread_search): New structure.
9645 (thread_search_callback): New function.
9646 (prev_general_thread): New global.
9647 (prepare_to_access_memory, done_accessing_memory): New functions.
9648 * target.h (prepare_to_access_memory, done_accessing_memory):
9649 Replace macros with function declarations.
9650
f2faf941
PA
96512015-11-30 Pedro Alves <palves@redhat.com>
9652
9653 PR 14618
9654 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9655 report TARGET_WAITKIND_NO_RESUMED.
9656 * remote-utils.c (prepare_resume_reply): Handle
9657 TARGET_WAITKIND_NO_RESUMED.
9658 * server.c (report_no_resumed): New global.
9659 (handle_query) <qSupported>: Handle "no-resumed+". Report
9660 "no-resumed+" support.
9661 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9662 return error if the client doesn't support no-resumed events.
9663 (push_stop_notification): New function.
9664 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9665 events if the client supports them.
9666
a681f9c9
PA
96672015-11-30 Pedro Alves <palves@redhat.com>
9668
9669 * linux-low.c (thread_still_has_status_pending_p): Don't check
9670 vCont;t here.
9671 (lwp_resumed): New function.
9672 (status_pending_p_callback): Return early if the LWP is not
9673 supposed to be resumed.
9674
65706a29
PA
96752015-11-30 Pedro Alves <palves@redhat.com>
9676
9677 * linux-low.c (handle_extended_wait): Assert that the LWP's
9678 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9679 thread create events, leave the new child's status pending.
9680 (linux_low_filter_event): If GDB wants to hear about thread exit
9681 events, leave the LWP marked dead and don't delete it.
9682 (linux_wait_for_event_filtered): Don't check for thread exit.
9683 (filter_exit_event): New function.
9684 (linux_wait_1): Use it, when returning an exit event.
9685 (linux_resume_one_lwp_throw): Assert that the LWP's
9686 waitstatus is TARGET_WAITKIND_IGNORE.
9687 * remote-utils.c (prepare_resume_reply): Handle
9688 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9689 * server.c (report_thread_events): New global.
9690 (handle_general_set): Handle QThreadEvents.
9691 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9692 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9693 TARGET_WAITKIND_THREAD_EXITED.
9694 * server.h (report_thread_events): Declare.
9695
56cf4bed
PA
96962015-11-30 Pedro Alves <palves@redhat.com>
9697
9698 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9699 the thread's last_resume_kind was resume_stop.
9700
500c1d85
PA
97012015-11-30 Pedro Alves <palves@redhat.com>
9702
9703 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9704 before returning.
9705
de979965
PA
97062015-11-30 Pedro Alves <palves@redhat.com>
9707
9708 * server.c (handle_v_requests): Handle vCtrlC.
9709
34c65914
PA
97102015-11-30 Pedro Alves <palves@redhat.com>
9711
9712 * gdbthread.h (find_any_thread_of_pid): Declare.
9713 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9714 functions.
9715 * server.c (handle_query): If current_thread is NULL, look for
9716 another thread of the selected process.
9717
79efa585 97182015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9719 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9720
9721 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9722 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9723 name in reply.
9724 * target.h (struct target_ops) <thread_name>: New field.
9725 (target_thread_name): New macro.
9726
80d82c19
JB
97272015-11-23 Joel Brobecker <brobecker@adacore.com>
9728
9729 * regcache.h (regcache_invalidate_pid): Add declaration.
9730 * regcache.c (regcache_invalidate_pid): New function, extracted
9731 from regcache_invalidate.
9732 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9733 Add trivial documentation comment.
9734 * lynx-low.c: Use regcache_invalidate_pid instead of
9735 regcache_invalidate.
9736
64da5dd5
JB
97372015-11-23 Joel Brobecker <brobecker@adacore.com>
9738
9739 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9740 and Elf64_auxv_t if the target is Android.
9741
37ce4055
DE
97422015-11-22 Doug Evans <xdje42@gmail.com>
9743
9744 * target.h: #include <sys/types.h>.
9745
06e03fff
PA
97462015-11-19 Pedro Alves <palves@redhat.com>
9747
9748 * linux-low.c (linux_process_qsupported): Change prototype.
9749 Adjust.
9750 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9751 Change prototype.
9752 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9753 and adjust to loop over all features.
9754 * server.c (handle_query) <qSupported>: Adjust to call
9755 target_process_qsupported once, passing it a vector of unprocessed
9756 features.
9757 * target.h (struct target_ops) <process_qsupported>: Change
9758 prototype.
9759 (target_process_qsupported): Adjust.
9760
9a084706
PA
97612015-11-19 Pedro Alves <palves@redhat.com>
9762
9763 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9764 mode.
9765 * configure: Regenerate.
9766
dad44a1f
PA
97672015-11-19 Pedro Alves <palves@redhat.com>
9768
9769 * configure: Regenerate.
9770
231c0592
YQ
97712015-11-19 Yao Qi <yao.qi@linaro.org>
9772
9773 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9774 type to uint32_t.
9775
6c1c9a8b
YQ
97762015-11-19 Yao Qi <yao.qi@linaro.org>
9777
9778 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9779 (struct aarch64_operand): Move enum out.
9780
9caa3311
YQ
97812015-11-19 Yao Qi <yao.qi@linaro.org>
9782
9783 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9784 struct user_fpsimd_state *.
9785 (aarch64_store_fpregset): Likewise.
9786
6a69a054
YQ
97872015-11-19 Yao Qi <yao.qi@linaro.org>
9788
9789 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9790 struct user_pt_regs *.
9791 (aarch64_store_gregset): Likewise.
9792
1798301e
PA
97932015-11-18 Pedro Alves <palves@redhat.com>
9794
9795 * Makefile.in (all_object_files): Add $IPA_OBJS.
9796
ce7715e2
PA
97972015-11-17 Pedro Alves <palves@redhat.com>
9798
9799 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9800 GDB_SIGNAL_0 and gdb_signal_to_string.
9801
c0879059
PA
98022015-11-17 Pedro Alves <palves@redhat.com>
9803
9804 * win32-low.c (handle_output_debug_string): Remove parameter.
9805 (win32_kill): Remove our_status local and adjust call to
9806 handle_output_debug_string.
9807 (get_child_debug_event): Adjust call to
9808 handle_output_debug_string.
9809
1996e237
SM
98102015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9811
9812 * linux-mips-low.c (mips_fill_gregset): Add cast.
9813 (mips_store_gregset): Likewise.
9814 (mips_fill_fpregset): Likewise.
9815 (mips_store_fpregset): Likewise.
9816
cbec665b
SM
98172015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9818
9819 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9820 priv.
9821
eb3e3c67
SM
98222015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9823
9824 * linux-mips-low.c (mips_linux_new_thread): Change type of
9825 watch_type to enum target_hw_bp_type.
9826
171de4b8
SM
98272015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9828
9829 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9830 Change return type to arm_hwbp_type.
9831
04248ead
SM
98322015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9833
9834 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9835 (arm_store_gregset): Likewise.
9836 * linux-arm-low.c (arm_get_hwcap): Likewise.
9837 (arm_read_description): Likewise.
9838
04b3479c
SM
98392015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9840
9841 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9842
2bc84e8a
SM
98432015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9844
9845 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9846 (ppc_fill_vsxregset): Likewise.
9847 (ppc_store_vsxregset): Likewise.
9848 (ppc_fill_vrregset): Likewise.
9849 (ppc_store_vrregset): Likewise.
9850 (ppc_fill_evrregset): Likewise.
9851 (ppc_store_evrregset): Likewise.
9852
e6c5bb05
SM
98532015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9854
9855 * linux-ppc-low.c (ppc_usrregs_info): Remove
9856 forward-declaration.
9857 (ppc_arch_setup): Move lower in file.
9858
7ea45d72
SM
98592015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9860
9861 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9862 (ps_pdwrite): Likewise.
9863
69291610
HW
98642015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9865
9866 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9867 to after assert checks.
9868
b42945fd
SM
98692015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9870
9871 * proc-service.c (ps_pdread): Add/adjust casts.
9872 (ps_pdwrite): Add/adjust casts.
9873
d6f85c84
SM
98742015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9875
9876 * server.c (handle_search_memory_1): Cast return value of
9877 memmem.
9878
f98cd059
SM
98792015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9880
9881 * server.c (write_qxfer_response): Change type of data to
9882 gdb_byte *.
9883
d2412fa5
PA
98842015-10-29 Pedro Alves <palves@redhat.com>
9885
9886 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9887
c17414a2
PA
98882015-10-29 Pedro Alves <palves@redhat.com>
9889
9890 * tracepoint.c (clear_installed_tracepoints): Add casts.
9891
e053fbc4
PA
98922015-10-29 Pedro Alves <palves@redhat.com>
9893
9894 * server.c (handle_v_cont, process_serial_event): Add enum
9895 gdb_signal casts to signal parsing code.
9896
add67df8
PA
98972015-10-29 Pedro Alves <palves@redhat.com>
9898
9899 * linux-low.h (NULL_REGSET): Define.
9900 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9901 * linux-arm-low.c (arm_regsets): Likewise.
9902 * linux-crisv32-low.c (cris_regsets): Likewise.
9903 * linux-m68k-low.c (m68k_regsets): Likewise.
9904 * linux-mips-low.c (mips_regsets): Likewise.
9905 * linux-nios2-low.c (nios2_regsets): Likewise.
9906 * linux-ppc-low.c (ppc_regsets): Likewise.
9907 * linux-s390-low.c (s390_regsets): Likewise.
9908 * linux-sh-low.c (sh_regsets): Likewise.
9909 * linux-sparc-low.c (sparc_regsets): Likewise.
9910 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9911 * linux-tile-low.c (tile_regsets): Likewise.
9912 * linux-x86-low.c (x86_regsets): Likewise.
9913 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9914
50bc912a
PA
99152015-10-29 Pedro Alves <palves@redhat.com>
9916
9917 * linux-low.h (NULL_REGSET): Define.
9918 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9919 * linux-arm-low.c (arm_regsets): Likewise.
9920 * linux-crisv32-low.c (cris_regsets): Likewise.
9921 * linux-m68k-low.c (m68k_regsets): Likewise.
9922 * linux-mips-low.c (mips_regsets): Likewise.
9923 * linux-nios2-low.c (nios2_regsets): Likewise.
9924 * linux-ppc-low.c (ppc_regsets): Likewise.
9925 * linux-s390-low.c (s390_regsets): Likewise.
9926 * linux-sh-low.c (sh_regsets): Likewise.
9927 * linux-sparc-low.c (sparc_regsets): Likewise.
9928 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9929 * linux-tile-low.c (tile_regsets): Likewise.
9930 * linux-x86-low.c (x86_regsets): Likewise.
9931 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9932
682b2546
DE
99332015-10-26 Doug Evans <dje@google.com>
9934
9935 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9936
963843d4
DE
99372015-10-26 Doug Evans <dje@google.com>
9938
9939 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9940
d41401ac
DE
99412015-10-26 Doug Evans <dje@google.com>
9942
9943 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9944 for debug_printf.
9945 (attach_thread, find_new_threads_callback): Ditto.
9946
3db28855
AT
99472015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9948
9949 * mem-break.h (set_breakpoint_data): Remove.
9950
fb78e89c
AT
99512015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9952
9953 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9954 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9955 (initialize_low): Remove set_breakpoint_data call.
9956 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9957 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9958 (initialize_low): Remove set_breakpoint_data call.
9959 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9960 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9961 (initialize_low): Remove set_breakpoint_data call.
9962
2e6ee069
AT
99632015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9964
9965 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9966 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9967 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9968 * target.h (target_breakpoint_kind_from_pc): New macro.
9969
1652a986
AT
99702015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9971
9972 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9973 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9974 the default breakpoint kind.
9975
abeead09
AT
99762015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9977
9978 * linux-arm-low.c (arm_supports_z_point_type): Add software
9979 breakpoint support.
9980
b0b4b501
AT
99812015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9982
9983 * linux-arm-low.c: Refactor breakpoint definitions.
9984 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9985 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9986
8689682c
AT
99872015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9988
9989 * Makefile.in: Add arm.c/o.
9990 * configure.srv: Likewise.
9991 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9992 (arm_breakpoint_kind_from_pc): New function.
9993 (arm_sw_breakpoint_from_kind): Return proper kind.
9994 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9995
27165294
AT
99962015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9997
9998 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9999 removal.
10000 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10001 (struct raw_breakpoint) <size>: Remove.
10002 (struct raw_breakpoint) <kind>: Add.
10003 (bp_size): New function.
10004 (bp_opcode): Likewise.
10005 (find_raw_breakpoint_at): Adjust for kind.
10006 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10007 (remove_memory_breakpoint): Adjust for kind call bp_size.
10008 (set_raw_breakpoint_at): Adjust for kind.
10009 (set_breakpoint): Likewise.
10010 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10011 (delete_raw_breakpoint): Adjust for kind.
10012 (delete_breakpoint): Likewise.
10013 (find_gdb_breakpoint): Likewise.
10014 (set_gdb_breakpoint_1): Likewise.
10015 (set_gdb_breakpoint): Likewise.
10016 (delete_gdb_breakpoint_1): Likewise.
10017 (delete_gdb_breakpoint): Likewise.
10018 (uninsert_raw_breakpoint): Likewise.
10019 (reinsert_raw_breakpoint): Likewise.
10020 (set_breakpoint_data): Remove.
10021 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10022 (check_mem_read): Adjust for kind call bp_size.
10023 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10024 (clone_one_breakpoint): Adjust for kind.
10025 * mem-break.h (set_gdb_breakpoint): Likewise.
10026 (delete_gdb_breakpoint): Likewise.
10027 * server.c (process_serial_event): Likewise.
10028
dd373349
AT
100292015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10030
10031 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10032 (struct linux_target_ops) <breakpoint>: Remove.
10033 (struct linux_target_ops) <breakpoint_len>: Remove.
10034 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10035 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10036 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10037 (arm_sw_breakpoint_from_kind): New function.
10038 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10039 (struct linux_target_ops) <breakpoint>: Remove.
10040 (struct linux_target_ops) <breakpoint_len>: Remove.
10041 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10042 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10043 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10044 (struct linux_target_ops) <breakpoint>: Remove.
10045 (struct linux_target_ops) <breakpoint_len>: Remove.
10046 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10047 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10048 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10049 (struct linux_target_ops) <breakpoint>: Remove.
10050 (struct linux_target_ops) <breakpoint_len>: Remove.
10051 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10052 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10053 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10054 and sw_breakpoint_from_kind to increment the pc.
10055 (linux_breakpoint_kind_from_pc): New function.
10056 (linux_sw_breakpoint_from_kind): New function.
10057 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10058 (initialize_low): Call breakpoint_kind_from_pc and
10059 sw_breakpoint_from_kind to replace breakpoint_data/len.
10060 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10061 New field.
10062 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10063 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10064 (struct linux_target_ops) <breakpoint>: Remove.
10065 (struct linux_target_ops) <breakpoint_len>: Remove.
10066 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10067 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10068 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10069 (struct linux_target_ops) <breakpoint>: Remove.
10070 (struct linux_target_ops) <breakpoint_len>: Remove.
10071 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10072 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10073 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10074 (struct linux_target_ops) <breakpoint>: Remove.
10075 (struct linux_target_ops) <breakpoint_len>: Remove.
10076 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10077 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10078 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10079 (struct linux_target_ops) <breakpoint>: Remove.
10080 (struct linux_target_ops) <breakpoint_len>: Remove.
10081 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10082 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10083 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10084 (struct linux_target_ops) <breakpoint>: Remove.
10085 (struct linux_target_ops) <breakpoint_len>: Remove.
10086 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10087 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10088 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10089 (struct linux_target_ops) <breakpoint>: Remove.
10090 (struct linux_target_ops) <breakpoint_len>: Remove.
10091 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10092 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10093 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10094 (struct linux_target_ops) <breakpoint>: Remove.
10095 (struct linux_target_ops) <breakpoint_len>: Remove.
10096 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10097 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10098 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10099 (struct linux_target_ops) <breakpoint>: Remove.
10100 (struct linux_target_ops) <breakpoint_len>: Remove.
10101 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10102 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10103 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10104 (struct linux_target_ops) <breakpoint>: Remove.
10105 (struct linux_target_ops) <breakpoint_len>: Remove.
10106 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10107 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10108 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10109 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10110 (struct linux_target_ops) <breakpoint>: Remove.
10111 (struct linux_target_ops) <breakpoint_len>: Remove.
10112 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10113 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10114 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10115 (struct linux_target_ops) <breakpoint>: Remove.
10116 (struct linux_target_ops) <breakpoint_len>: Remove.
10117 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10118 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10119
4cd98a19
AT
101202015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10121
10122 * linux-cris-low.c (cris_get_pc): Remove void arg.
10123
774ee6d2
AR
101242015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10125
10126 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10127 variable name.
10128
833dcd29
AR
101292015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10130
10131 * inferiors.c (thread_pid_matches_callback): New function.
10132 (find_thread_process): New function.
10133 (remove_thread): Reset current_thread.
10134 (remove_process): Assert threads have been removed first.
10135
8d689ee5
YQ
101362015-10-15 Yao Qi <yao.qi@linaro.org>
10137
10138 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10139 if it is 3.
10140 (aarch64_remove_point): Likewise.
10141 * regcache.c (regcache_register_size): New function.
10142
1c2e1515
YQ
101432015-10-12 Yao Qi <yao.qi@linaro.org>
10144
10145 * linux-aarch64-low.c: Update all callers as emit_load_store
10146 is renamed to aarch64_emit_load_store.
10147
e1c587c3
YQ
101482015-10-12 Yao Qi <yao.qi@linaro.org>
10149
10150 * linux-aarch64-low.c: Update all callers of function renaming
10151 from emit_insn to aarch64_emit_insn.
10152
b6542f81
YQ
101532015-10-12 Yao Qi <yao.qi@linaro.org>
10154
10155 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10156 arch/aarch64-insn.h.
10157 (struct aarch64_memory_operand): Likewise.
10158 (ENCODE): Likewise.
10159 (emit_insn): Move to arch/aarch64-insn.c.
10160 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10161 (emit_load_store): Move to arch/aarch64-insn.c.
10162 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10163 (can_encode_int32): Remove.
10164
246994ce
YQ
101652015-10-12 Yao Qi <yao.qi@linaro.org>
10166
10167 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10168 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10169 (aarch64_relocate_instruction): Likewise.
10170 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10171 (struct aarch64_insn_visitor): Likewise.
10172
0badd99f
YQ
101732015-10-12 Yao Qi <yao.qi@linaro.org>
10174
10175 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10176 (struct aarch64_insn_visitor): New.
10177 (struct aarch64_insn_relocation_data): New.
10178 (aarch64_ftrace_insn_reloc_b): New function.
10179 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10180 (aarch64_ftrace_insn_reloc_cb): Likewise.
10181 (aarch64_ftrace_insn_reloc_tb): Likewise.
10182 (aarch64_ftrace_insn_reloc_adr): Likewise.
10183 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10184 (aarch64_ftrace_insn_reloc_others): Likewise.
10185 (visitor): New.
10186 (aarch64_relocate_instruction): Use visitor.
10187
dfaffe9d
YQ
101882015-10-12 Yao Qi <yao.qi@linaro.org>
10189
10190 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10191 int. Add argument buf.
10192 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10193 aarch64_relocate_instruction.
10194
70b439f0
YQ
101952015-10-12 Yao Qi <yao.qi@linaro.org>
10196
10197 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10198 argument insn. Remove local variable insn. Don't call
10199 target_read_uint32.
10200 (aarch64_install_fast_tracepoint_jump_pad): Call
10201 target_read_uint32.
10202
7781c06f
YQ
102032015-09-30 Yao Qi <yao.qi@linaro.org>
10204
10205 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10206 (emit_load_store_pair): Likewise.
10207
9a3c8263
SM
102082015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10209
10210 * dll.c (match_dll): Add cast(s).
10211 (unloaded_dll): Likewise.
10212 * linux-low.c (second_thread_of_pid_p): Likewise.
10213 (delete_lwp_callback): Likewise.
10214 (count_events_callback): Likewise.
10215 (select_event_lwp_callback): Likewise.
10216 (linux_set_resume_request): Likewise.
10217 * server.c (accumulate_file_name_length): Likewise.
10218 (emit_dll_description): Likewise.
10219 (handle_qxfer_threads_worker): Likewise.
10220 (visit_actioned_threads): Likewise.
10221 * thread-db.c (any_thread_of): Likewise.
10222 * tracepoint.c (same_process_p): Likewise.
10223 (match_blocktype): Likewise.
10224 (build_traceframe_info_xml): Likewise.
10225
224c3ddb
SM
102262015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10227
10228 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10229 assignment.
10230 (gdb_unparse_agent_expr): Likewise.
10231 * hostio.c (require_data): Likewise.
10232 (handle_pread): Likewise.
10233 * linux-low.c (disable_regset): Likewise.
10234 (fetch_register): Likewise.
10235 (store_register): Likewise.
10236 (get_dynamic): Likewise.
10237 (linux_qxfer_libraries_svr4): Likewise.
10238 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10239 (set_fast_tracepoint_jump): Likewise.
10240 (uninsert_fast_tracepoint_jumps_at): Likewise.
10241 (reinsert_fast_tracepoint_jumps_at): Likewise.
10242 (validate_inserted_breakpoint): Likewise.
10243 (clone_agent_expr): Likewise.
10244 * regcache.c (init_register_cache): Likewise.
10245 * remote-utils.c (putpkt_binary_1): Likewise.
10246 (decode_M_packet): Likewise.
10247 (decode_X_packet): Likewise.
10248 (look_up_one_symbol): Likewise.
10249 (relocate_instruction): Likewise.
10250 (monitor_output): Likewise.
10251 * server.c (handle_search_memory): Likewise.
10252 (handle_qxfer_exec_file): Likewise.
10253 (handle_qxfer_libraries): Likewise.
10254 (handle_qxfer): Likewise.
10255 (handle_query): Likewise.
10256 (handle_v_cont): Likewise.
10257 (handle_v_run): Likewise.
10258 (captured_main): Likewise.
10259 * target.c (write_inferior_memory): Likewise.
10260 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10261 * tracepoint.c (init_trace_buffer): Likewise.
10262 (add_tracepoint_action): Likewise.
10263 (add_traceframe): Likewise.
10264 (add_traceframe_block): Likewise.
10265 (cmd_qtdpsrc): Likewise.
10266 (cmd_qtdv): Likewise.
10267 (cmd_qtstatus): Likewise.
10268 (response_source): Likewise.
10269 (response_tsv): Likewise.
10270 (cmd_qtnotes): Likewise.
10271 (gdb_collect): Likewise.
10272 (initialize_tracepoint): Likewise.
10273
afbe19f8
PL
102742015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10275
10276 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10277 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10278 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10279 <NOP>: New.
10280 (enum aarch64_condition_codes): New enum.
10281 (w0): New static global.
10282 (fp): Likewise.
10283 (lr): Likewise.
10284 (struct aarch64_memory_operand) <type>: New
10285 MEMORY_OPERAND_POSTINDEX type.
10286 (postindex_memory_operand): New helper function.
10287 (emit_ret): New function.
10288 (emit_load_store_pair): New function, factored out of emit_stp
10289 with support for MEMORY_OPERAND_POSTINDEX.
10290 (emit_stp): Rewrite using emit_load_store_pair.
10291 (emit_ldp): New function.
10292 (emit_load_store): Likewise.
10293 (emit_ldr): Mention post-index instruction in comment.
10294 (emit_ldrh): New function.
10295 (emit_ldrb): New function.
10296 (emit_ldrsw): Mention post-index instruction in comment.
10297 (emit_str): Likewise.
10298 (emit_subs): New function.
10299 (emit_cmp): Likewise.
10300 (emit_and): Likewise.
10301 (emit_orr): Likewise.
10302 (emit_orn): Likewise.
10303 (emit_eor): Likewise.
10304 (emit_mvn): Likewise.
10305 (emit_lslv): Likewise.
10306 (emit_lsrv): Likewise.
10307 (emit_asrv): Likewise.
10308 (emit_mul): Likewise.
10309 (emit_sbfm): Likewise.
10310 (emit_sbfx): Likewise.
10311 (emit_ubfm): Likewise.
10312 (emit_ubfx): Likewise.
10313 (emit_csinc): Likewise.
10314 (emit_cset): Likewise.
10315 (emit_nop): Likewise.
10316 (emit_ops_insns): New helper function.
10317 (emit_pop): Likewise.
10318 (emit_push): Likewise.
10319 (aarch64_emit_prologue): New function.
10320 (aarch64_emit_epilogue): Likewise.
10321 (aarch64_emit_add): Likewise.
10322 (aarch64_emit_sub): Likewise.
10323 (aarch64_emit_mul): Likewise.
10324 (aarch64_emit_lsh): Likewise.
10325 (aarch64_emit_rsh_signed): Likewise.
10326 (aarch64_emit_rsh_unsigned): Likewise.
10327 (aarch64_emit_ext): Likewise.
10328 (aarch64_emit_log_not): Likewise.
10329 (aarch64_emit_bit_and): Likewise.
10330 (aarch64_emit_bit_or): Likewise.
10331 (aarch64_emit_bit_xor): Likewise.
10332 (aarch64_emit_bit_not): Likewise.
10333 (aarch64_emit_equal): Likewise.
10334 (aarch64_emit_less_signed): Likewise.
10335 (aarch64_emit_less_unsigned): Likewise.
10336 (aarch64_emit_ref): Likewise.
10337 (aarch64_emit_if_goto): Likewise.
10338 (aarch64_emit_goto): Likewise.
10339 (aarch64_write_goto_address): Likewise.
10340 (aarch64_emit_const): Likewise.
10341 (aarch64_emit_call): Likewise.
10342 (aarch64_emit_reg): Likewise.
10343 (aarch64_emit_pop): Likewise.
10344 (aarch64_emit_stack_flush): Likewise.
10345 (aarch64_emit_zero_ext): Likewise.
10346 (aarch64_emit_swap): Likewise.
10347 (aarch64_emit_stack_adjust): Likewise.
10348 (aarch64_emit_int_call_1): Likewise.
10349 (aarch64_emit_void_call_2): Likewise.
10350 (aarch64_emit_eq_goto): Likewise.
10351 (aarch64_emit_ne_goto): Likewise.
10352 (aarch64_emit_lt_goto): Likewise.
10353 (aarch64_emit_le_goto): Likewise.
10354 (aarch64_emit_gt_goto): Likewise.
10355 (aarch64_emit_ge_got): Likewise.
10356 (aarch64_emit_ops_impl): New static global variable.
10357 (aarch64_emit_ops): New target function, return
10358 &aarch64_emit_ops_impl.
10359 (struct linux_target_ops): Install it.
10360
bb903df0
PL
103612015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10362
10363 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10364 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10365 aarch64-ipa.o.
10366 * linux-aarch64-ipa.c: New file.
10367 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10368 and endian.h.
10369 (aarch64_get_thread_area): New target method.
10370 (extract_signed_bitfield): New helper function.
10371 (aarch64_decode_ldr_literal): New function.
10372 (enum aarch64_opcodes): New enum.
10373 (struct aarch64_register): New struct.
10374 (struct aarch64_operand): New struct.
10375 (x0): New static global.
10376 (x1): Likewise.
10377 (x2): Likewise.
10378 (x3): Likewise.
10379 (x4): Likewise.
10380 (w2): Likewise.
10381 (ip0): Likewise.
10382 (sp): Likewise.
10383 (xzr): Likewise.
10384 (aarch64_register): New helper function.
10385 (register_operand): Likewise.
10386 (immediate_operand): Likewise.
10387 (struct aarch64_memory_operand): New struct.
10388 (offset_memory_operand): New helper function.
10389 (preindex_memory_operand): Likewise.
10390 (enum aarch64_system_control_registers): New enum.
10391 (ENCODE): New macro.
10392 (emit_insn): New helper function.
10393 (emit_b): New function.
10394 (emit_bcond): Likewise.
10395 (emit_cb): Likewise.
10396 (emit_tb): Likewise.
10397 (emit_blr): Likewise.
10398 (emit_stp): Likewise.
10399 (emit_ldp_q_offset): Likewise.
10400 (emit_stp_q_offset): Likewise.
10401 (emit_load_store): Likewise.
10402 (emit_ldr): Likewise.
10403 (emit_ldrsw): Likewise.
10404 (emit_str): Likewise.
10405 (emit_ldaxr): Likewise.
10406 (emit_stxr): Likewise.
10407 (emit_stlr): Likewise.
10408 (emit_data_processing_reg): Likewise.
10409 (emit_data_processing): Likewise.
10410 (emit_add): Likewise.
10411 (emit_sub): Likewise.
10412 (emit_mov): Likewise.
10413 (emit_movk): Likewise.
10414 (emit_mov_addr): Likewise.
10415 (emit_mrs): Likewise.
10416 (emit_msr): Likewise.
10417 (emit_sevl): Likewise.
10418 (emit_wfe): Likewise.
10419 (append_insns): Likewise.
10420 (can_encode_int32_in): New helper function.
10421 (aarch64_relocate_instruction): New function.
10422 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10423 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10424 (struct linux_target_ops): Install aarch64_get_thread_area,
10425 aarch64_install_fast_tracepoint_jump_pad and
10426 aarch64_get_min_fast_tracepoint_insn_len.
10427
787749ea
PL
104282015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10429
10430 * Makefile.in (aarch64-insn.o): New rule.
10431 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10432
9812b2e6
YQ
104332015-09-21 Yao Qi <yao.qi@linaro.org>
10434
10435 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10436
18fe412b
YQ
104372015-09-21 Yao Qi <yao.qi@linaro.org>
10438
10439 * tracepoint.c (max_jump_pad_size): Remove.
10440
a0cc84cd
YQ
104412015-09-18 Yao Qi <yao.qi@linaro.org>
10442
10443 * linux-aarch64-low.c: Don't include sys/uio.h.
10444 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10445
d78908cf
WW
104462015-09-16 Wei-cheng Wang <cole945@gmail.com>
10447
10448 * tracepoint.c (eval_result_type): Change prototype.
10449 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10450
d57e0d50
PA
104512015-09-15 Pedro Alves <palves@redhat.com>
10452
10453 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10454 Check whether to report exec events instead of checking whether
10455 multiprocess is enabled.
10456
5a676acc
PA
104572015-09-15 Pedro Alves <palves@redhat.com>
10458
10459 PR remote/18965
10460 * remote-utils.c (prepare_resume_reply): Merge
10461 TARGET_WAITKIND_VFORK_DONE switch case with the
10462 TARGET_WAITKIND_FORKED case.
10463
7c5d0fad
YQ
104642015-09-15 Yao Qi <yao.qi@linaro.org>
10465
10466 * server.c (handle_query): Check string comparison using
10467 "else if" instead of "if".
10468
750ce8d1
YQ
104692015-09-15 Yao Qi <yao.qi@linaro.org>
10470
10471 * server.c (vCont_supported): New global variable.
10472 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10473 matches. Append ";vContSupported+" to own_buf.
10474 (handle_v_requests): Append ";s;S" to own_buf if target supports
10475 hardware single step or vCont_supported is false.
10476 (capture_main): Set vCont_supported to zero.
10477
70b90b91
YQ
104782015-09-15 Yao Qi <yao.qi@linaro.org>
10479
10480 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10481 it to ...
10482 (linux_supports_hardware_single_step): ... New function.
10483 (linux_target_ops): Update.
10484 * lynx-low.c (lynx_target_ops): Set field
10485 supports_hardware_single_step to target_can_do_hardware_single_step.
10486 * nto-low.c (nto_target_ops): Likewise.
10487 * spu-low.c (spu_target_ops): Likewise.
10488 * win32-low.c (win32_target_ops): Likewise.
10489 * target.c (target_can_do_hardware_single_step): New function.
10490 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10491 Remove. <supports_hardware_single_step>: New field.
10492 (target_supports_conditional_breakpoints): Remove.
10493 (target_supports_hardware_single_step): New macro.
10494 (target_can_do_hardware_single_step): Declare.
10495 * server.c (handle_query): Use target_supports_hardware_single_step
10496 instead of target_supports_conditional_breakpoints.
10497
ade90bde
YQ
104982015-09-15 Yao Qi <yao.qi@linaro.org>
10499
10500 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10501 function.
10502 (struct linux_target_ops the_low_target): Install
10503 aarch64_linux_siginfo_fixup.
10504
94585166
DB
105052015-09-11 Don Breazeal <donb@codesourcery.com>
10506 Luis Machado <lgustavo@codesourcery.com>
10507
10508 * linux-low.c (linux_mourn): Static declaration.
10509 (linux_arch_setup): Move in front of
10510 handle_extended_wait.
10511 (linux_arch_setup_thread): New function.
10512 (handle_extended_wait): Handle exec events. Call
10513 linux_arch_setup_thread. Make event_lwp argument a
10514 pointer-to-a-pointer.
10515 (check_zombie_leaders): Do not check stopped threads.
10516 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10517 (linux_low_filter_event): Add lwp and thread for exec'ing
10518 non-leader thread if leader thread has been deleted.
10519 Refactor code into linux_arch_setup_thread and call it.
10520 Pass child lwp pointer by reference to handle_extended_wait.
10521 (linux_wait_for_event_filtered): Update comment.
10522 (linux_wait_1): Prevent clobbering exec event status.
10523 (linux_supports_exec_events): New function.
10524 (linux_target_ops) <supports_exec_events>: Initialize new member.
10525 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10526 new member.
10527 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10528 * server.c (report_exec_events): New global variable.
10529 (handle_query): Handle qSupported query for exec-events feature.
10530 (captured_main): Initialize report_exec_events.
10531 * server.h (report_exec_events): Declare new global variable.
10532 * target.h (struct target_ops) <supports_exec_events>: New
10533 member.
10534 (target_supports_exec_events): New macro.
10535 * win32-low.c (win32_target_ops) <supports_exec_events>:
10536 Initialize new member.
10537
0568462b
MM
105382015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10539
10540 * linux-low.c (linux_low_enable_btrace): Remove.
10541 (linux_target_ops): Replace linux_low_enable_btrace with
10542 linux_enable_btrace.
10543
39edd165
YQ
105442015-09-03 Yao Qi <yao.qi@linaro.org>
10545
10546 * linux-aarch64-low.c (aarch64_insert_point): Call
10547 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10548 returns true.
10549
1db33b5a
UW
105502015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10551
10552 * linux-low.c (check_stopped_by_breakpoint): Use
10553 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10554
ab290430
PA
105552015-08-27 Pedro Alves <palves@redhat.com>
10556
10557 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10558
8d749320
SM
105592015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10560
6711b7f8
SM
10561 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10562 the XNEW-family equivalent.
8d749320
SM
10563 (compile_bytecodes): Likewise.
10564 * dll.c (loaded_dll): Likewise.
10565 * event-loop.c (append_callback_event): Likewise.
10566 (create_file_handler): Likewise.
10567 (create_file_event): Likewise.
10568 * hostio.c (handle_open): Likewise.
10569 * inferiors.c (add_thread): Likewise.
10570 (add_process): Likewise.
10571 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10572 * linux-arm-low.c (arm_new_process): Likewise.
10573 (arm_new_thread): Likewise.
10574 * linux-low.c (add_to_pid_list): Likewise.
10575 (linux_add_process): Likewise.
10576 (handle_extended_wait): Likewise.
10577 (add_lwp): Likewise.
10578 (enqueue_one_deferred_signal): Likewise.
10579 (enqueue_pending_signal): Likewise.
10580 (linux_resume_one_lwp_throw): Likewise.
10581 (linux_resume_one_thread): Likewise.
10582 (linux_read_memory): Likewise.
10583 (linux_write_memory): Likewise.
10584 * linux-mips-low.c (mips_linux_new_process): Likewise.
10585 (mips_linux_new_thread): Likewise.
10586 (mips_add_watchpoint): Likewise.
10587 * linux-x86-low.c (initialize_low_arch): Likewise.
10588 * lynx-low.c (lynx_add_process): Likewise.
10589 * mem-break.c (set_raw_breakpoint_at): Likewise.
10590 (set_breakpoint): Likewise.
10591 (add_condition_to_breakpoint): Likewise.
10592 (add_commands_to_breakpoint): Likewise.
10593 (clone_agent_expr): Likewise.
10594 (clone_one_breakpoint): Likewise.
10595 * regcache.c (new_register_cache): Likewise.
10596 * remote-utils.c (look_up_one_symbol): Likewise.
10597 * server.c (queue_stop_reply): Likewise.
10598 (start_inferior): Likewise.
10599 (queue_stop_reply_callback): Likewise.
10600 (handle_target_event): Likewise.
10601 * spu-low.c (fetch_ppc_memory): Likewise.
10602 (store_ppc_memory): Likewise.
10603 * target.c (set_target_ops): Likewise.
10604 * thread-db.c (thread_db_load_search): Likewise.
10605 (try_thread_db_load_1): Likewise.
10606 * tracepoint.c (add_tracepoint): Likewise.
10607 (add_tracepoint_action): Likewise.
10608 (create_trace_state_variable): Likewise.
10609 (cmd_qtdpsrc): Likewise.
10610 (cmd_qtro): Likewise.
10611 (add_while_stepping_state): Likewise.
10612 * win32-low.c (child_add_thread): Likewise.
10613 (get_image_name): Likewise.
10614
ed8b7b42
YQ
106152015-08-25 Yao Qi <yao.qi@linaro.org>
10616
10617 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10618
db3cb7cb
YQ
106192015-08-25 Yao Qi <yao.qi@linaro.org>
10620
10621 * Makefile.in (aarch64-linux.o): New rule.
10622 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10623 srv_tgtobj.
10624 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10625 (aarch64_init_debug_reg_state): Make it extern.
10626 (aarch64_linux_prepare_to_resume): Remove.
10627
f6011a1c
YQ
106282015-08-25 Yao Qi <yao.qi@linaro.org>
10629
10630 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10631 lwp_arch_private_info and ptid_of_lwp.
10632
88e2cf7e
YQ
106332015-08-25 Yao Qi <yao.qi@linaro.org>
10634
10635 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10636 Find proc_info by find_process_pid. All callers updated.
10637
5e35436e
YQ
106382015-08-25 Yao Qi <yao.qi@linaro.org>
10639
10640 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10641 Remove.
10642 (debug_reg_change_callback): Remove.
10643 (aarch64_notify_debug_reg_change): Remove.
10644
4a8a7965
YQ
106452015-08-25 Yao Qi <yao.qi@linaro.org>
10646
10647 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10648 Call current_lwp_ptid.
10649
32a271ee
YQ
106502015-08-25 Yao Qi <yao.qi@linaro.org>
10651
10652 * linux-aarch64-low.c (debug_reg_change_callback): Use
10653 debug_printf.
10654
0d51c8d7
YQ
106552015-08-25 Yao Qi <yao.qi@linaro.org>
10656
10657 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10658
31a43dd5
YQ
106592015-08-25 Yao Qi <yao.qi@linaro.org>
10660
10661 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10662
8ee52567
YQ
106632015-08-25 Yao Qi <yao.qi@linaro.org>
10664
10665 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10666 the code.
10667
ff3f0f45
YQ
106682015-08-25 Yao Qi <yao.qi@linaro.org>
10669
10670 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10671 Remove.
10672 (debug_reg_change_callback): Remove argument entry and add argument
10673 lwp. Remove local variable thread. Don't print thread id in the
10674 debugging output. Don't check whether pid of thread equals to pid.
10675 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10676 iterate_over_lwps instead find_inferior.
10677
3d40fbb5
PA
106782015-08-24 Pedro Alves <palves@redhat.com>
10679
10680 * inferiors.c (get_first_process): New function.
10681 * inferiors.h (get_first_process): New declaration.
10682 * remote-utils.c (read_ptid): Default to the first process in the
10683 list, instead of to the current thread's process.
10684
438e1e42
PA
106852015-08-24 Pedro Alves <palves@redhat.com>
10686
10687 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10688 * event-loop.c: Likewise.
10689 * remote-utils.c: Likewise.
10690 * tracepoint.c: Likewise.
10691
a8c6d4fc
PA
106922015-08-24 Pedro Alves <palves@redhat.com>
10693
10694 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10695 ptid_get_lwp.
10696
99b0bb12
PA
106972015-08-21 Pedro Alves <palves@redhat.com>
10698
10699 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10700 instead of literal 1.
10701
f8904751
PA
107022015-08-21 Pedro Alves <palves@redhat.com>
10703
10704 * tdesc.c (default_description): Explicitly zero-initialize.
10705
465a859e
PA
107062015-08-21 Pedro Alves <palves@redhat.com>
10707
10708 PR gdb/18749
10709 * inferiors.c (remove_thread): Discard any pending stop reply for
10710 this thread.
10711 * server.c (remove_all_on_match_pid): Rename to ...
10712 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10713 instead of a pid.
10714 (discard_queued_stop_replies): Change parameter to a ptid. Now
10715 extern.
10716 (handle_v_kill, kill_inferior_callback, captured_main)
10717 (process_serial_event): Adjust.
10718 * server.h (discard_queued_stop_replies): Declare.
10719
f0db101d
PA
107202015-08-21 Pedro Alves <palves@redhat.com>
10721
10722 * linux-low.c (wait_for_sigstop): Always switch to no thread
10723 selected if the previously current thread dies.
10724 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10725 process instead of the current thread's.
10726 * remote-utils.c (input_interrupt): Don't check if there's no
10727 current thread.
10728 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10729 current thread to the general thread fails, error out.
10730 (handle_qxfer_auxv, handle_qxfer_libraries)
10731 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10732 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10733 (handle_query): Check if there's a thread selected instead of
10734 checking whether there's any thread in the thread list.
10735 (handle_qxfer_threads, handle_qxfer_btrace)
10736 (handle_qxfer_btrace_conf): Don't error out early if there's no
10737 thread in the thread list.
10738 (handle_v_cont, myresume): Don't set the current thread to the
10739 continue thread.
10740 (process_serial_event) <Hg handling>: Also set thread_id if the
10741 previous general thread is still alive.
10742 (process_serial_event) <g/G handling>: If setting the current
10743 thread to the general thread fails, error out.
10744 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10745 thread's lwp instead of the current thread's.
10746 * target.c (set_desired_thread): If the desired thread was not
10747 found, leave the current thread pointing to NULL. Return an int
10748 (boolean) indicating success.
10749 * target.h (set_desired_thread): Change return type to int.
10750
40045d91
MF
107512015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10752
10753 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10754 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10755 #includes.
10756 (ps_get_thread_area): New function.
10757
45face3b
GB
107582015-08-19 Gary Benson <gbenson@redhat.com>
10759
10760 * hostio.c (handle_pread): Do not attempt to read more data
10761 than hostio_reply_with_data can fit in a packet.
10762
16d5f642
JB
107632015-08-18 Joel Brobecker <brobecker@adacore.com>
10764
10765 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10766
a738da3a
MF
107672015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10768
10769 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10770
33ebda9d
PA
107712015-08-06 Pedro Alves <palves@redhat.com>
10772
10773 * tracepoint.c (expr_eval_result): Now an int.
10774
a44892be
PA
107752015-08-06 Pedro Alves <palves@redhat.com>
10776
10777 * gdbthread.h (struct regcache): Forward declare.
10778 (struct thread_info) <regcache_data>: Now a struct regcache
10779 pointer.
10780 * inferiors.c (inferior_regcache_data)
10781 (set_inferior_regcache_data): Now work with struct regcache
10782 pointers.
10783 * inferiors.h (struct regcache): Forward declare.
10784 (inferior_regcache_data, set_inferior_regcache_data): Now work
10785 with struct regcache pointers.
10786 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10787 (free_register_cache_thread): Remove struct regcache pointer
10788 casts.
10789
608a1e46
PA
107902015-08-06 Pedro Alves <palves@redhat.com>
10791
10792 * server.c (captured_main): On error, print the exception message
10793 to stderr, and if run_once is set, throw a quit.
10794
f0ce0d3a
PA
107952015-08-06 Pedro Alves <palves@redhat.com>
10796
10797 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10798 the current thread.
10799
bf47e248
PA
108002015-08-06 Pedro Alves <palves@redhat.com>
10801
10802 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10803 reading beyond the passed in buffer length.
10804
b6b9ffcc
PL
108052015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10806
10807 * tracepoint.c (symbol_list) <required>: Remove.
10808
863d01bd
PA
108092015-08-06 Pedro Alves <palves@redhat.com>
10810
10811 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10812 count if stopping and suspending threads.
10813 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10814 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10815 (linux_detach): Complete an ongoing step-over.
10816 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10817 throughout.
10818 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10819 (linux_wait_1): If passing a signal to the inferior after
10820 finishing a step-over, unsuspend and re-resume all lwps. If we
10821 see a single-step event but the thread should be continuing, don't
10822 pass the trap to gdb.
10823 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10824 internal_error instead of gdb_assert.
10825 (enqueue_pending_signal): New function.
10826 (check_ptrace_stopped_lwp_gone): Add debug output.
10827 (start_step_over): Use internal_error instead of gdb_assert.
10828 (complete_ongoing_step_over): New function.
10829 (linux_resume_one_thread): Don't resume a suspended thread.
10830 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10831 it stepping.
10832
00db26fa
PA
108332015-08-06 Pedro Alves <palves@redhat.com>
10834
10835 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10836 (linux_thread_alive): Use lwp_is_marked_dead.
10837 (extended_event_reported): Delete.
10838 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10839 instead of extended_event_reported.
10840 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10841 as well.
10842 (lwp_is_marked_dead): New function.
10843 (lwp_running): Use lwp_is_marked_dead.
10844 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10845 comment.
10846
ad071a30
PA
108472015-08-06 Pedro Alves <palves@redhat.com>
10848
10849 * linux-low.c (linux_wait_1): Move fork event output out of the
10850 !report_to_gdb check. Pass event_child->waitstatus to
10851 target_waitstatus_to_string instead of ourstatus.
10852
524b57e6
YQ
108532015-08-04 Yao Qi <yao.qi@linaro.org>
10854
10855 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10856 if current_thread is 32 bit.
10857
6085d6f6
YQ
108582015-08-04 Yao Qi <yao.qi@linaro.org>
10859
10860 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10861 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10862 * server.c (extended_protocol): Remove "static".
10863 * server.h (extended_protocol): Declare it.
10864
8a7e4587
YQ
108652015-08-04 Yao Qi <yao.qi@linaro.org>
10866
10867 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10868 both aarch64 and aarch32.
10869 (aarch64_set_pc): Likewise.
10870
3b53ae99
YQ
108712015-08-04 Yao Qi <yao.qi@linaro.org>
10872
10873 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10874 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10875 arm-with-neon.xml to srv_xmlfiles.
10876 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10877 (is_64bit_tdesc): New function.
10878 (aarch64_linux_read_description): New function.
10879 (aarch64_arch_setup): Call aarch64_linux_read_description.
10880 (regs_info): Rename to regs_info_aarch64.
10881 (aarch64_regs_info): Return right regs_info.
10882 (initialize_low_arch): Call initialize_low_arch_aarch32.
10883
bd9e6534
YQ
108842015-08-04 Yao Qi <yao.qi@linaro.org>
10885
10886 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10887 * linux-aarch32-low.c: New file.
10888 * linux-aarch32-low.h: New file.
10889 * linux-arm-low.c (arm_fill_gregset): Move it to
10890 linux-aarch32-low.c.
10891 (arm_store_gregset): Likewise.
10892 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10893 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10894 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10895 (regs_info): Rename to regs_info_arm.
10896 (arm_regs_info): Return regs_info_aarch32 if
10897 have_ptrace_getregset is 1 and target description is
10898 arm_with_neon or arm_with_vfpv3.
10899 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10900 Call initialize_low_arch_aarch32 instead.
10901
ded48a5e
YQ
109022015-08-04 Yao Qi <yao.qi@linaro.org>
10903
10904 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10905 * linux-low.c: ... here.
10906 * linux-low.h (have_ptrace_getregset): Declare it.
10907
96e9210f
PA
109082015-08-04 Pedro Alves <palves@redhat.com>
10909
10910 * thread-db.c (struct thread_db): Use new typedefs.
10911 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10912 CHK calls.
10913 (disable_thread_event_reporting): Cast result of dlsym to
10914 destination function pointer type.
10915 (thread_db_mourn): Use td_ta_delete_ftype.
10916
af60a1ef
SL
109172015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10918
10919 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10920 arch variant.
10921 (CDX_BREAKPOINT): Define for R2.
10922 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10923 (the_low_target): Add comments.
10924
e8b41681
YQ
109252015-07-30 Yao Qi <yao.qi@linaro.org>
10926
10927 * linux-arm-low.c (arm_hwcap): Remove it.
10928 (arm_read_description): New local variable arm_hwcap. Don't
10929 set arm_hwcap to zero.
10930
89abb039
YQ
109312015-07-30 Yao Qi <yao.qi@linaro.org>
10932
10933 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10934 Use regcache->tdesc instead.
10935 (arm_store_wmmxregset): Likewise.
10936 (arm_fill_vfpregset): Likewise.
10937 (arm_store_vfpregset): Likewise.
10938
deca266c
YQ
109392015-07-30 Yao Qi <yao.qi@linaro.org>
10940
10941 * linux-arm-low.c: Include arch/arm.h.
10942 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10943 (arm_store_gregset): Likewise.
10944
aa58a496
SM
109452015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10946
10947 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10948 ptrace's 4th parameter.
10949
50904b25
YQ
109502015-07-27 Yao Qi <yao.qi@linaro.org>
10951
10952 * configure.srv (case aarch64*-*-linux*): Don't set
10953 srv_linux_usrregs.
10954
5826e159
PA
109552015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10956
10957 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10958 sys/ptrace.h.
10959 * linux-arm-low.c: Likewise.
10960 * linux-cris-low.c: Likewise.
10961 * linux-crisv32-low.c: Likewise.
10962 * linux-low.c: Likewise.
10963 * linux-m68k-low.c: Likewise.
10964 * linux-mips-low.c: Likewise.
10965 * linux-nios2-low.c: Likewise.
10966 * linux-s390-low.c: Likewise.
10967 * linux-sparc-low.c: Likewise.
10968 * linux-tic6x-low.c: Likewise.
10969 * linux-tile-low.c: Likewise.
10970 * linux-x86-low.c: Likewise.
10971
54019719
PA
109722015-07-24 Pedro Alves <palves@redhat.com>
10973
10974 * config.in: Regenerate.
10975 * configure: Regenerate.
10976
eb7aa561
PA
109772015-07-24 Pedro Alves <palves@redhat.com>
10978
10979 * acinclude.m4: Include ../ptrace.m4.
10980 * configure.ac: Call GDB_AC_PTRACE.
10981 * config.in, configure: Regenerate.
10982
55d7b841
YQ
109832015-07-24 Yao Qi <yao.qi@linaro.org>
10984
10985 * linux-low.c (linux_create_inferior): Remove setting to
10986 proc->priv->new_inferior.
10987 (linux_attach): Likewise.
10988 (linux_low_filter_event): Likewise.
10989 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10990
c06cbd92
YQ
109912015-07-24 Yao Qi <yao.qi@linaro.org>
10992
10993 * linux-low.c (linux_arch_setup): New function.
10994 (linux_low_filter_event): If proc->tdesc is NULL and
10995 proc->attached is true, call the_low_target.arch_setup.
10996 Otherwise, keep status pending, and return.
10997 (linux_resume_one_lwp_throw): Don't call get_pc if
10998 thread->while_stepping isn't NULL. Don't call
10999 get_thread_regcache if proc->tdesc is NULL.
11000 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11001 (linux_target_ops): Install arch_setup.
11002 * server.c (start_inferior): Call the_target->arch_setup.
11003 * target.h (struct target_ops) <arch_setup>: New field.
11004 (target_arch_setup): New marco.
11005 * lynx-low.c (lynx_target_ops): Update.
11006 * nto-low.c (nto_target_ops): Update.
11007 * spu-low.c (spu_target_ops): Update.
11008 * win32-low.c (win32_target_ops): Update.
11009
5ae3ebba
YQ
110102015-07-24 Yao Qi <yao.qi@linaro.org>
11011
11012 * linux-low.c (linux_add_process): Don't set
11013 proc->priv->new_inferior.
11014 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11015 (linux_attach): Likewise.
11016
eb97750b
YQ
110172015-07-24 Yao Qi <yao.qi@linaro.org>
11018
11019 * server.c (start_inferior): Code refactor.
11020
51aee833
YQ
110212015-07-24 Yao Qi <yao.qi@linaro.org>
11022
11023 * server.c (process_serial_event): Set general_thread.
11024
af1b22f3
YQ
110252015-07-21 Yao Qi <yao.qi@linaro.org>
11026
11027 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11028 aarch64_linux_get_debug_reg_capacity.
11029
554717a3
YQ
110302015-07-17 Yao Qi <yao.qi@linaro.org>
11031
11032 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11033 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11034 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11035 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11036 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11037 (AARCH64_HWP_ALIGNMENT): Likewise.
11038 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11039 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11040 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11041 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11042 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11043 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11044 (struct aarch64_debug_reg_state): Likewise.
11045 (struct arch_lwp_info): Likewise.
11046 (aarch64_align_watchpoint): Likewise.
11047 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11048 (aarch64_watchpoint_length): Likewise.
11049 (aarch64_point_encode_ctrl_reg): Likewise
11050 (aarch64_point_is_aligned): Likewise.
11051 (aarch64_align_watchpoint): Likewise.
11052 (aarch64_linux_set_debug_regs):
11053 (aarch64_dr_state_insert_one_point): Likewise.
11054 (aarch64_dr_state_remove_one_point): Likewise.
11055 (aarch64_handle_breakpoint): Likewise.
11056 (aarch64_handle_aligned_watchpoint): Likewise.
11057 (aarch64_handle_unaligned_watchpoint): Likewise.
11058 (aarch64_handle_watchpoint): Likewise.
11059
c67ca4de
YQ
110602015-07-17 Yao Qi <yao.qi@linaro.org>
11061
11062 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11063 and don't aarch64_get_debug_reg_state. All callers update.
11064 (aarch64_handle_aligned_watchpoint): Likewise.
11065 (aarch64_handle_unaligned_watchpoint): Likewise.
11066 (aarch64_handle_watchpoint): Likewise.
11067 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11068 (aarch64_remove_point): Likewise.
11069
25abf979
YQ
110702015-07-17 Yao Qi <yao.qi@linaro.org>
11071
11072 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11073 debug_printf.
11074 (aarch64_handle_unaligned_watchpoint): Likewise.
11075
db1ff28b
JK
110762015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11077
11078 Revert the previous 3 commits:
11079 Move gdb_regex* to common/
11080 Move linux_find_memory_regions_full & co.
11081 gdbserver build-id attribute generator
11082
700ca40f
JK
110832015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11084 Jan Kratochvil <jan.kratochvil@redhat.com>
11085
11086 gdbserver build-id attribute generator.
11087 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11088 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11089 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11090 (find_phdr): New.
11091 (get_dynamic): Use find_pdhr to traverse program headers.
11092 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11093 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11094 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11095 (get_hex_build_id): New.
11096 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11097 to reply XML document.
11098
9904185c
JK
110992015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11100 Jan Kratochvil <jan.kratochvil@redhat.com>
11101
11102 * target.c: Include target/target-utils.h and fcntl.h.
11103 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11104 (target_fileio_read_stralloc): New functions.
11105
6e5b4429
JK
111062015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11107
11108 * Makefile.in (OBS): Add gdb_regex.o.
11109 (gdb_regex.o): New.
11110 * config.in: Rebuilt.
11111 * configure: Rebuilt.
11112
ddc98fbf
JK
111132015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11114 Jan Kratochvil <jan.kratochvil@redhat.com>
11115
11116 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11117 * Makefile.in (OBS): Add target-utils.o.
11118 (linux-maps.o, target-utils.o): New.
11119 * configure.srv (srv_linux_obj): Add linux-maps.o.
11120
e57bb7a0
PL
111212015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11122
11123 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11124 function, return 1.
11125 (the_low_target): Install it.
11126
586b02a9
PA
111272015-07-14 Pedro Alves <palves@redhat.com>
11128
11129 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11130 Instead, ignore ECHILD, and throw an error for other errnos.
11131
58c1b36c
PA
111322015-07-10 Pedro Alves <palves@redhat.com>
11133
11134 * event-loop.c (struct callback_event) <data>: Change type to
11135 gdb_client_data instance instead of gdb_client_data pointer.
11136 (append_callback_event): Adjust.
11137
421530db
PL
111382015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11139
11140 * linux-aarch64-low.c: Add comments for each linux_target_ops
11141 method. Remove comments already covered in target_ops and
11142 linux_target_ops definitions.
11143 (the_low_target): Add comments for each unimplemented method.
11144
c2d65f38
YQ
111452015-07-09 Yao Qi <yao.qi@linaro.org>
11146
11147 * linux-aarch64-low.c (aarch64_regmap): Remove.
11148 (aarch64_usrregs_info): Remove.
11149 (regs_info): Set field usrregs to NULL.
11150
b20a6524
MM
111512015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11152
11153 * linux-low.c: Include "rsp-low.h"
11154 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11155 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11156 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11157 (handle_btrace_enable_pt): New.
11158 (handle_btrace_general_set): Support "pt".
11159 (handle_btrace_conf_general_set): Support "pt:size".
11160
96c97461
PL
111612015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11162
11163 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11164 Z_PACKET_SW_BP.
11165
37d66942
PL
111662015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11167
11168 * linux-aarch64-low.c: Remove comment about endianness.
11169 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11170 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11171 memcmp.
11172
dc06243f
GB
111732015-06-24 Gary Benson <gbenson@redhat.com>
11174
11175 * linux-i386-ipa.c (stdint.h): Do not include.
11176 * lynx-i386-low.c (stdint.h): Likewise.
11177 * lynx-ppc-low.c (stdint.h): Likewise.
11178 * mem-break.c (stdint.h): Likewise.
11179 * thread-db.c (stdint.h): Likewise.
11180 * tracepoint.c (stdint.h): Likewise.
11181 * win32-low.c (stdint.h): Likewise.
11182
124e13d9
SM
111832015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11184
11185 * server.c (write_qxfer_response): Update call to
11186 remote_escape_output.
11187
909c2cda
JK
111882015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11189 Jan Kratochvil <jan.kratochvil@redhat.com>
11190
11191 Merge multiple hex conversions.
11192 * gdbreplay.c (tohex): Rename to 'fromhex'.
11193 (logchar): Use fromhex.
11194
24c05f46
JK
111952015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11196
11197 * server.c (handle_qxfer_libraries): Set `version' attribute for
11198 <library-list>.
11199
14d2069a
GB
112002015-06-10 Gary Benson <gbenson@redhat.com>
11201
11202 * target.h (struct target_ops) <multifs_open>: New field.
11203 <multifs_unlink>: Likewise.
11204 <multifs_readlink>: Likewise.
11205 * linux-low.c (nat/linux-namespaces.h): New include.
11206 (linux_target_ops): Initialize the_target->multifs_open,
11207 the_target->multifs_unlink and the_target->multifs_readlink.
11208 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11209 * hostio.c (hostio_fs_pid): New static variable.
11210 (hostio_handle_new_gdb_connection): New function.
11211 (handle_setfs): Likewise.
11212 (handle_open): Use the_target->multifs_open as appropriate.
11213 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11214 (handle_readlink): Use the_target->multifs_readlink as
11215 appropriate.
11216 (handle_vFile): Handle vFile:setfs packets.
11217 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11218 after target_handle_new_gdb_connection.
11219
4b8b5e72
GB
112202015-06-10 Gary Benson <gbenson@redhat.com>
11221
11222 * configure.ac (AC_CHECK_FUNCS): Add setns.
11223 * config.in: Regenerate.
11224 * configure: Likewise.
11225 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11226 (linux-namespaces.o): New rule.
11227 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11228
3ac2e371
GB
112292015-06-09 Gary Benson <gbenson@redhat.com>
11230
11231 * hostio.c (handle_open): Process mode argument with
11232 fileio_to_host_mode.
11233
ca9b78ce
YQ
112342015-06-01 Yao Qi <yao.qi@linaro.org>
11235
11236 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11237 * linux-x86-low.c: Likewise.
11238
bfacd19d
DB
112392015-05-28 Don Breazeal <donb@codesourcery.com>
11240
11241 * linux-low.c (handle_extended_wait): Initialize
11242 thread_info.last_resume_kind for new fork children.
11243
452003ef
PA
112442015-05-15 Pedro Alves <palves@redhat.com>
11245
11246 * target.h (target_handle_new_gdb_connection): Rewrite using if
11247 wrapped in do/while.
11248
1041a03c
JB
112492015-05-14 Joel Brobecker <brobecker@adacore.com>
11250
11251 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11252 * configure, config.in: Regenerate.
11253 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11254 Declare typedef.
11255
c269dbdb
DB
112562015-05-12 Don Breazeal <donb@codesourcery.com>
11257
11258 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11259 PTRACE_EVENT_VFORK_DONE.
11260 (linux_low_ptrace_options, extended_event_reported): Add vfork
11261 events.
11262 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11263 and "vforkdone" for RSP 'T' Stop Reply Packet.
11264 * server.h (report_vfork_events): Declare
11265 global variable.
11266
3a8a0396
DB
112672015-05-12 Don Breazeal <donb@codesourcery.com>
11268
11269 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11270 (the_low_target) <new_fork>: Initialize new member.
11271 * linux-arm-low.c (arm_new_fork): New function.
11272 (the_low_target) <new_fork>: Initialize new member.
11273 * linux-low.c (handle_extended_wait): Call new target function
11274 new_fork.
11275 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11276 * linux-mips-low.c (mips_add_watchpoint): New function
11277 extracted from mips_insert_point.
11278 (the_low_target) <new_fork>: Initialize new member.
11279 (mips_linux_new_fork): New function.
11280 (mips_insert_point): Call mips_add_watchpoint.
11281 * linux-x86-low.c (x86_linux_new_fork): New function.
11282 (the_low_target) <new_fork>: Initialize new member.
11283
de0d863e
DB
112842015-05-12 Don Breazeal <donb@codesourcery.com>
11285
11286 * linux-low.c (handle_extended_wait): Implement return value,
11287 rename argument 'event_child' to 'event_lwp', handle
11288 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11289 (linux_low_ptrace_options): New function.
11290 (linux_low_filter_event): Call linux_low_ptrace_options,
11291 use different argument fo linux_enable_event_reporting,
11292 use return value from handle_extended_wait.
11293 (extended_event_reported): New function.
11294 (linux_wait_1): Call extended_event_reported and set
11295 status to report fork events.
11296 (linux_write_memory): Add pid to debug message.
11297 (reset_lwp_ptrace_options_callback): New function.
11298 (linux_handle_new_gdb_connection): New function.
11299 (linux_target_ops): Initialize new structure member.
11300 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11301 * lynx-low.c: Initialize new structure member.
11302 * remote-utils.c (prepare_resume_reply): Implement stop reason
11303 "fork" for "T" stop message.
11304 * server.c (handle_query): Call handle_new_gdb_connection.
11305 * server.h (report_fork_events): Declare global flag.
11306 * target.h (struct target_ops) <handle_new_gdb_connection>:
11307 New member.
11308 (target_handle_new_gdb_connection): New macro.
11309 * win32-low.c: Initialize new structure member.
11310
ddcbc397
DB
113112015-05-12 Don Breazeal <donb@codesourcery.com>
11312
11313 * mem-break.c (APPEND_TO_LIST): Define macro.
11314 (clone_agent_expr): New function.
11315 (clone_one_breakpoint): New function.
11316 (clone_all_breakpoints): New function.
11317 * mem-break.h: Declare new functions.
11318
89245bc0
DB
113192015-05-12 Don Breazeal <donb@codesourcery.com>
11320
11321 * linux-low.c (linux_supports_fork_events): New function.
11322 (linux_supports_vfork_events): New function.
11323 (linux_target_ops): Initialize new structure members.
11324 (initialize_low): Call linux_check_ptrace_features.
11325 * lynx-low.c (lynx_target_ops): Initialize new structure
11326 members.
11327 * server.c (report_fork_events, report_vfork_events):
11328 New global flags.
11329 (handle_query): Add new features to qSupported packet and
11330 response.
11331 (captured_main): Initialize new global variables.
11332 * target.h (struct target_ops) <supports_fork_events>:
11333 New member.
11334 <supports_vfork_events>: New member.
11335 (target_supports_fork_events): New macro.
11336 (target_supports_vfork_events): New macro.
11337 * win32-low.c (win32_target_ops): Initialize new structure
11338 members.
11339
835205d0
GB
113402015-05-12 Gary Benson <gbenson@redhat.com>
11341
11342 * server.c (handle_qxfer_exec_file): Use current process
11343 if annex is empty.
11344
21e94bd9
SL
113452015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11346
11347 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11348 Remove HAVE_PTRACE_GETREGS conditionals.
11349 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11350 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11351
45614f15
YQ
113522015-05-08 Yao Qi <yao.qi@linaro.org>
11353
11354 * linux-low.c (linux_supports_conditional_breakpoints): New
11355 function.
11356 (linux_target_ops): Install new target method.
11357 * lynx-low.c (lynx_target_ops): Install NULL hook for
11358 supports_conditional_breakpoints.
11359 * nto-low.c (nto_target_ops): Likewise.
11360 * spu-low.c (spu_target_ops): Likewise.
11361 * win32-low.c (win32_target_ops): Likewise.
11362 * server.c (handle_query): Check
11363 target_supports_conditional_breakpoints.
11364 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11365 New field.
11366 (target_supports_conditional_breakpoints): New macro.
11367
80ad801e
PA
113682015-05-06 Pedro Alves <palves@redhat.com>
11369
11370 PR server/18081
11371 * server.c (start_inferior): If the process exits, mourn it.
11372
819843c7
GB
113732015-04-21 Gary Benson <gbenson@redhat.com>
11374
11375 * hostio.c (fileio_open_flags_to_host): Factored out to
11376 fileio_to_host_openflags in common/fileio.c. Single use
11377 updated.
11378
a2d5a9d7
MF
113792015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11380
11381 * linux-xtensa-low.c (xtensa_fill_gregset)
11382 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11383 XCHAL_HAVE_LOOP.
11384
deb44829
MF
113852015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11386
11387 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11388 (regs_info): Replace usrregs pointer with NULL.
11389
e57f1de3
GB
113902015-04-17 Gary Benson <gbenson@redhat.com>
11391
11392 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11393 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11394 * server.c (handle_qxfer_exec_file): New function.
11395 (qxfer_packets): Add exec-file entry.
11396 (handle_query): Report qXfer:exec-file:read as supported packet.
11397
62828379
RN
113982015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11399
11400 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11401
b88bb450
GB
114022015-04-09 Gary Benson <gbenson@redhat.com>
11403
11404 * hostio-errno.c (errno_to_fileio_error): Remove function.
11405 Update caller to use remote_fileio_to_fio_error.
11406
c8f4bfdd
YQ
114072015-04-09 Yao Qi <yao.qi@linaro.org>
11408
11409 * linux-low.c (linux_insert_point): Call
11410 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11411 (linux_remove_point): Call remove_memory_breakpoint if type is
11412 raw_bkpt_type_sw.
11413 * linux-x86-low.c (x86_insert_point): Don't call
11414 insert_memory_breakpoint.
11415 (x86_remove_point): Don't call remove_memory_breakpoint.
11416
41f98f02
PA
114172015-04-01 Pedro Alves <palves@redhat.com>
11418 Cleber Rosa <crosa@redhat.com>
11419
11420 * server.c (gdbserver_usage): Reorganize and extend the usage
11421 message.
11422
2bf6fb9d
PA
114232015-03-24 Pedro Alves <palves@redhat.com>
11424
11425 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11426 output. Also dump TRAP_TRACE.
11427 (linux_low_filter_event): In debug output, distinguish a
11428 resume_stop SIGSTOP from a delayed SIGSTOP.
11429
369f6daa
GB
114302015-03-24 Gary Benson <gbenson@redhat.com>
11431
11432 * linux-x86-low.c (x86_linux_new_thread): Moved to
11433 nat/x86-linux.c.
11434 (x86_linux_prepare_to_resume): Likewise.
11435
8e5d4070
GB
114362015-03-24 Gary Benson <gbenson@redhat.com>
11437
11438 * Makefile.in (x86-linux-dregs.o): New rule.
11439 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11440 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11441 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11442 (x86_linux_dr_get): Likewise.
11443 (x86_linux_dr_set): Likewise.
11444 (update_debug_registers_callback): Likewise.
11445 (x86_linux_dr_set_addr): Likewise.
11446 (x86_linux_dr_get_addr): Likewise.
11447 (x86_linux_dr_set_control): Likewise.
11448 (x86_linux_dr_get_control): Likewise.
11449 (x86_linux_dr_get_status): Likewise.
11450 (x86_linux_update_debug_registers): Likewise.
11451
2b95d440
GB
114522015-03-24 Gary Benson <gbenson@redhat.com>
11453
11454 * linux-x86-low.c (x86_linux_update_debug_registers):
11455 New function, factored out from...
11456 (x86_linux_prepare_to_resume): ...this.
11457
14b0bc68
GB
114582015-03-24 Gary Benson <gbenson@redhat.com>
11459
11460 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11461 (x86_linux_dr_set): Likewise.
11462 (update_debug_registers_callback): Likewise.
11463 (x86_linux_dr_set_addr): Likewise.
11464 (x86_linux_dr_get_addr): Likewise.
11465 (x86_linux_dr_set_control): Likewise.
11466 (x86_linux_dr_get_control): Likewise.
11467 (x86_linux_dr_get_status): Likewise.
11468 (x86_linux_prepare_to_resume): Likewise.
11469
5dfe6ca8
GB
114702015-03-24 Gary Benson <gbenson@redhat.com>
11471
11472 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11473 Use perror_with_name. Pass string through gettext.
11474 (x86_linux_dr_set): Likewise.
11475
d33472ad
GB
114762015-03-24 Gary Benson <gbenson@redhat.com>
11477
11478 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11479 (x86_linux_dr_set_addr): ...this.
11480 (x86_dr_low_get_addr): Rename to...
11481 (x86_linux_dr_get_addr): ...this.
11482 (x86_dr_low_set_control): Rename to...
11483 (x86_linux_dr_set_control): ...this.
11484 (x86_dr_low_get_control): Rename to...
11485 (x86_linux_dr_get_control): ...this.
11486 (x86_dr_low_get_status): Rename to...
11487 (x86_linux_dr_get_status): ...this.
11488 (x86_dr_low): Update with new function names.
11489
4b134ca1
GB
114902015-03-24 Gary Benson <gbenson@redhat.com>
11491
11492 * Makefile.in (x86-linux.o): New rule.
11493 * configure.srv: Add x86-linux.o to relevant targets.
11494 * linux-low.c (lwp_set_arch_private_info): New function.
11495 (lwp_arch_private_info): Likewise.
11496 * linux-x86-low.c: Include nat/x86-linux.h.
11497 (arch_lwp_info): Removed structure.
11498 (update_debug_registers_callback):
11499 Use lwp_set_debug_registers_changed.
11500 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11501 and lwp_set_debug_registers_changed.
11502 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11503
34c703da
GB
115042015-03-24 Gary Benson <gbenson@redhat.com>
11505
11506 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11507 * linux-arm-low.c (arm_new_thread): Likewise.
11508 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11509 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11510 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11511 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11512
cff068da
GB
115132015-03-24 Gary Benson <gbenson@redhat.com>
11514
11515 * linux-low.c (ptid_of_lwp): New function.
11516 (lwp_is_stopped): Likewise.
11517 (lwp_stop_reason): Likewise.
11518 * linux-x86-low.c (update_debug_registers_callback):
11519 Use lwp_is_stopped.
11520 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11521 lwp_stop_reason.
11522
b2f7c7e8
GB
115232015-03-24 Gary Benson <gbenson@redhat.com>
11524
11525 * linux-low.h (linux_stop_lwp): Remove declaration.
11526
6d4ee8c6
GB
115272015-03-24 Gary Benson <gbenson@redhat.com>
11528
11529 * linux-low.h: Include nat/linux-nat.h.
11530 * linux-low.c (iterate_over_lwps_args): New structure.
11531 (iterate_over_lwps_filter): New function.
11532 (iterate_over_lwps): Likewise.
11533 * linux-x86-low.c (update_debug_registers_callback):
11534 Update signature to what iterate_over_lwps expects.
11535 Remove PID check that iterate_over_lwps now performs.
11536 (x86_dr_low_set_addr): Use iterate_over_lwps.
11537 (x86_dr_low_set_control): Likewise.
11538
70a0bb6b
GB
115392015-03-24 Gary Benson <gbenson@redhat.com>
11540
11541 * linux-x86-low.c (x86_debug_reg_state): New function.
11542 (x86_linux_prepare_to_resume): Use the above.
11543
7b669087
GB
115442015-03-24 Gary Benson <gbenson@redhat.com>
11545
11546 * linux-low.c (current_lwp_ptid): New function.
11547 * linux-x86-low.c: Include nat/linux-nat.h.
11548 (x86_dr_low_get_addr): Use current_lwp_ptid.
11549 (x86_dr_low_get_control): Likewise.
11550 (x86_dr_low_get_status): Likewise.
11551
eef49a3d
PA
115522015-03-20 Pedro Alves <palves@redhat.com>
11553
11554 * tracepoint.c (cmd_qtstatus): Make "str" const.
11555
b2333d22
PA
115562015-03-20 Pedro Alves <palves@redhat.com>
11557
11558 * server.c (handle_general_set): Make "req_str" const.
11559
23f238d3
PA
115602015-03-19 Pedro Alves <palves@redhat.com>
11561
11562 * linux-low.c (linux_resume_one_lwp): Rename to ...
11563 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11564 instead call perror_with_name.
11565 (check_ptrace_stopped_lwp_gone): New function.
11566 (linux_resume_one_lwp): Reimplement as wrapper around
11567 linux_resume_one_lwp_throw that swallows errors if the LWP is
11568 gone.
11569
91baf43f
PA
115702015-03-19 Pedro Alves <palves@redhat.com>
11571
11572 * linux-low.c (count_events_callback, select_event_lwp_callback):
11573 No longer check whether the thread has resume_stop as last resume
11574 kind.
11575
8bf3b159
PA
115762015-03-19 Pedro Alves <palves@redhat.com>
11577
11578 * linux-low.c (count_events_callback, select_event_lwp_callback):
11579 Use the lwp's status_pending_p field, not the thread's.
11580
b90fc188
PA
115812015-03-19 Pedro Alves <palves@redhat.com>
11582
11583 * linux-low.c (select_event_lwp_callback): Update comments to
11584 no longer mention SIGTRAP.
11585
464b0089
GB
115862015-03-18 Gary Benson <gbenson@redhat.com>
11587
11588 * server.c (handle_query): Do not report vFile:fstat as supported.
11589
aa9e327f
GB
115902015-03-11 Gary Benson <gbenson@redhat.com>
11591
11592 * hostio.c (sys/types.h): New include.
11593 (sys/stat.h): Likewise.
11594 (common-remote-fileio.h): Likewise.
11595 (handle_fstat): New function.
11596 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11597
791c0056
GB
115982015-03-11 Gary Benson <gbenson@redhat.com>
11599
11600 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11601 struct stat.st_blocks and struct stat.st_blksize.
11602 * configure: Regenerate.
11603 * config.in: Likewise.
11604 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11605 (OBS): Add common-remote-fileio.o.
11606 (common-remote-fileio.o): New rule.
11607
9a9df970
PA
116082015-03-09 Pedro Alves <palves@redhat.com>
11609
11610 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11611 'struct sockaddr' pointer in 'accept' call.
11612
9eb1356e
PA
116132015-03-09 Pedro Alves <palves@redhat.com>
11614
11615 Revert:
11616 2015-03-07 Pedro Alves <palves@redhat.com>
11617 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11618 or <winsock2.h> here. Instead include "gdb_socket.h".
11619 (remote_open): Use union gdb_sockaddr_u.
11620 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11621 or <winsock2.h> here. Instead include "gdb_socket.h".
11622 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11623 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11624 or <sys/un.h>.
11625 (init_named_socket, gdb_agent_helper_thread): Use union
11626 gdb_sockaddr_u.
11627
aac331e4
PA
116282015-03-07 Pedro Alves <palves@redhat.com>
11629
11630 * configure.ac (build_warnings): Move
11631 -Wdeclaration-after-statement to the C-specific set.
11632 * configure: Regenerate.
11633
366c75fc
PA
116342015-03-07 Pedro Alves <palves@redhat.com>
11635
11636 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11637 or <winsock2.h> here. Instead include "gdb_socket.h".
11638 (remote_open): Use union gdb_sockaddr_u.
11639 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11640 or <winsock2.h> here. Instead include "gdb_socket.h".
11641 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11642 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11643 or <sys/un.h>.
11644 (init_named_socket, gdb_agent_helper_thread): Use union
11645 gdb_sockaddr_u.
11646
492d29ea
PA
116472015-03-07 Pedro Alves <palves@redhat.com>
11648
11649 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11650 instead.
11651
60a191ed
YQ
116522015-03-06 Yao Qi <yao.qi@linaro.org>
11653
11654 * linux-aarch64-low.c (aarch64_insert_point): Use
11655 show_debug_regs as a boolean.
11656 (aarch64_remove_point): Likewise.
11657
f5771b1d
PA
116582015-03-05 Pedro Alves <palves@redhat.com>
11659
11660 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11661 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11662 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11663 * nto-low.c (nto_target_ops): Likewise.
11664 * spu-low.c (spu_target_ops): Likewise.
11665 * win32-low.c (win32_target_ops): Likewise.
11666
3e572f71
PA
116672015-03-04 Pedro Alves <palves@redhat.com>
11668
72f4393d 11669 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11670 Decide whether a breakpoint triggered based on the SIGTRAP's
11671 siginfo.si_code.
72f4393d
L
11672 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11673 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11674 (linux_low_filter_event): Check for breakpoints before checking
11675 watchpoints.
11676 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11677 siginfo.si_code.
72f4393d
L
11678 (linux_stopped_by_sw_breakpoint)
11679 (linux_supports_stopped_by_sw_breakpoint)
11680 (linux_stopped_by_hw_breakpoint)
11681 (linux_supports_stopped_by_hw_breakpoint): New functions.
11682 (linux_target_ops): Install new target methods.
3e572f71 11683
1ec68e26
PA
116842015-03-04 Pedro Alves <palves@redhat.com>
11685
11686 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11687 * server.c (swbreak_feature, hwbreak_feature): New globals.
11688 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11689 (captured_main): Clear swbreak_feature and hwbreak_feature.
11690 * server.h (swbreak_feature, hwbreak_feature): Declare.
11691 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11692 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11693 supports_stopped_by_hw_breakpoint>: New fields.
11694 (target_supports_stopped_by_sw_breakpoint)
11695 (target_stopped_by_sw_breakpoint)
11696 (target_supports_stopped_by_hw_breakpoint)
11697 (target_stopped_by_hw_breakpoint): Declare.
11698
15c66dd6
PA
116992015-03-04 Pedro Alves <palves@redhat.com>
11700
11701 enum lwp_stop_reason -> enum target_stop_reason
11702 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11703 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11704 (linux_wait_1, stuck_in_jump_pad_callback)
11705 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11706 (linux_stopped_by_watchpoint):
11707 * linux-low.h (enum lwp_stop_reason): Delete.
11708 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11709 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11710
98fc70d6
YQ
117112015-03-04 Yao Qi <yao.qi@linaro.org>
11712
11713 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11714
dd2ac174
GB
117152015-03-03 Gary Benson <gbenson@redhat.com>
11716
11717 * hostio.c (handle_vFile): Fix prefix lengths.
11718
d68e53f4
MM
117192015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11720
11721 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11722 ptr_bits.
11723
bf2d68ab
AA
117242015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11725
11726 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11727 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11728 (clean): Add "rm -f" for above C files.
11729 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11730 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11731 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11732 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11733 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11734 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11735 (init_registers_s390x_vx_linux64)
11736 (init_registers_s390x_tevx_linux64)
11737 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11738 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11739 declarations.
11740 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11741 (s390_store_vxrs_high): New functions.
11742 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11743 NT_S390_VXRS_HIGH.
11744 (s390_arch_setup): Add logic for selecting one of the new target
11745 descriptions. Activate the new vector regsets if applicable.
11746 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11747 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11748 and init_registers_s390x_tevx_linux64.
11749
c966a859
PA
117502015-03-01 Pedro Alves <palves@redhat.com>
11751
11752 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11753 parameter.
11754
4180215b
PA
117552015-02-27 Pedro Alves <palves@redhat.com>
11756
11757 * linux-x86-low.c (u_debugreg_offset): New function.
11758 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11759
749bab01
PA
117602015-02-27 Pedro Alves <palves@redhat.com>
11761
11762 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11763 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11764 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11765 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11766 (ps_lsetfpregs, ps_getpid)
11767 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11768 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11769 (ps_lsetxregs, ps_plog): Declare.
11770
3c14e5a3
PA
117712015-02-27 Pedro Alves <palves@redhat.com>
11772
11773 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11774 IP_AGENT_EXPORT_FUNC.
11775 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11776 IP_AGENT_EXPORT_FUNC.
11777 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11778 (IP_AGENT_EXPORT): Delete.
11779 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11780 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11781 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11782 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11783 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11784 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11785 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11786 (traceframe_read_count, traceframe_write_count)
11787 (traceframes_created, trace_state_variables, get_raw_reg)
11788 (get_trace_state_variable_value, set_trace_state_variable_value)
11789 (ust_loaded, helper_thread_id, cmd_buf): Use
11790 IPA_SYM_EXPORTED_NAME.
11791 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11792 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11793 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11794 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11795 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11796 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11797 EXTERN_C_PUSH/EXTERN_C_POP.
11798 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11799 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11800 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11801 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11802 (traceframe_write_count, traceframe_read_count)
11803 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11804 (about_to_request_buffer_space, get_trace_state_variable_value)
11805 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11806 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11807 EXTERN_C_PUSH/EXTERN_C_POP.
11808 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11809 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11810 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11811 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11812 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11813 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11814 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11815 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11816 Define.
11817 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11818 (IP_AGENT_EXPORT_VAR_DECL): Define.
11819 (tracing): Declare.
11820 (gdb_agent_get_raw_reg): Declare.
11821
fe978cb0
PA
118222015-02-27 Tom Tromey <tromey@redhat.com>
11823 Pedro Alves <palves@redhat.com>
11824
11825 Rename symbols whose names are reserved C++ keywords throughout.
11826
3bc3d82a
PA
118272015-02-27 Pedro Alves <palves@redhat.com>
11828
11829 * Makefile.in (COMPILER): New, get it from autoconf.
11830 (CXX): Get from autoconf instead.
11831 (COMPILE.pre): Use COMPILER.
11832 (CC-LD): Rename to ...
11833 (CC_LD): ... this. Use COMPILER.
11834 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11835 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11836 * acinclude.m4: Include build-with-cxx.m4.
11837 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11838 Disable -Werror by default if building in C++ mode.
11839 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11840 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11841 the C++ compiler. Save/restore CXXFLAGS too.
11842 * configure: Regenerate.
11843
07697489
PA
118442015-02-27 Pedro Alves <palves@redhat.com>
11845
11846 * acinclude.m4: Include libiberty.m4.
11847 * configure.ac: Call libiberty_INIT.
11848 * config.in, configure: Regenerate.
11849
9beb7c4e
PA
118502015-02-26 Pedro Alves <palves@redhat.com>
11851
11852 * linux-low.c (linux_wait_1): When incrementing the PC past a
11853 program breakpoint always use the_low_target.breakpoint_len as
11854 increment, rather than the maximum between that and
11855 the_low_target.decr_pc_after_break.
11856
8090aef2
PA
118572015-02-23 Pedro Alves <palves@redhat.com>
11858
11859 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11860 thread was doing a step-over; always adjust the PC if
11861 we stepped over a permanent breakpoint.
11862 (linux_wait_1): If we stepped over breakpoint that was on top of a
11863 permanent breakpoint, manually advance the PC past it.
11864
bc9540e8
PA
118652015-02-23 Pedro Alves <palves@redhat.com>
11866
11867 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11868 modes.
11869 (x86_fill_gregset, x86_store_gregset): Use it when handling
11870 $orig_eax.
11871
2db9a427
PA
118722015-02-20 Pedro Alves <palves@redhat.com>
11873
11874 * thread-db.c: Include "nat/linux-procfs.h".
11875 (thread_db_init): Skip listing new threads if the kernel supports
11876 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11877
afa8d396
PA
118782015-02-20 Pedro Alves <palves@redhat.com>
11879
11880 * linux-low.c (status_pending_p_callback): Use ptid_match.
11881
c9587f88
AT
118822015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11883
11884 PR breakpoints/16812
11885 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11886 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11887 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11888
b05ec7a5
AT
118892015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11890
11891 PR breakpoints/15956
11892 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11893
d33501a5
MM
118942015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11895
11896 * linux-low.c (linux_low_btrace_conf): Print size.
11897 * server.c (handle_btrace_conf_general_set): New.
11898 (hanle_general_set): Call handle_btrace_conf_general_set.
11899 (handle_query): Report Qbtrace-conf:bts:size as supported.
11900
f4abbc16
MM
119012015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11902
11903 * linux-low.c (linux_low_enable_btrace): Update parameters.
11904 (linux_low_btrace_conf): New.
11905 (linux_target_ops)<to_btrace_conf>: Initialize.
11906 * server.c (current_btrace_conf): New.
11907 (handle_btrace_enable): Rename to ...
11908 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11909 to target_enable_btrace. Update comment. Update users.
11910 (handle_qxfer_btrace_conf): New.
11911 (qxfer_packets): Add btrace-conf entry.
11912 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11913 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11914 (target_ops)<read_btrace_conf>: New.
11915 (target_enable_btrace): Update parameters.
11916 (target_read_btrace_conf): New.
11917
043c3577
MM
119182015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11919
11920 * server.c (handle_btrace_general_set): Remove call to
11921 target_supports_btrace.
11922 (supported_btrace_packets): New.
11923 (handle_query): Call supported_btrace_packets.
11924 * target.h: include btrace-common.h.
11925 (btrace_target_info): Removed.
11926 (supports_btrace, target_supports_btrace): Update parameters.
11927
734b0e4b
MM
119282015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11929
11930 * Makefile.in (SFILES): Add common/btrace-common.c.
11931 (OBS): Add common/btrace-common.o.
11932 (btrace-common.o): Add build rules.
11933 * linux-low: Include btrace-common.h.
11934 (linux_low_read_btrace): Use struct btrace_data. Call
11935 btrace_data_init and btrace_data_fini.
11936
d6c146e9
PA
119372015-02-06 Pedro Alves <palves@redhat.com>
11938
11939 * thread-db.c (find_new_threads_callback): Add debug output.
11940
20ba1ce6
PA
119412015-02-04 Pedro Alves <palves@redhat.com>
11942
11943 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11944 (resume_stopped_resumed_lwps): New function.
11945 (linux_wait_for_event_filtered): Use it.
11946
8cc73a39
SDJ
119472015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11948
11949 * Makefile.in (SFILES): Add linux-personality.c.
11950 (linux-personality.o): New rule.
11951 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11952 list of objects to be built.
11953 * linux-low.c: Include nat/linux-personality.h.
11954 (linux_create_inferior): Remove code to disable address space
11955 randomization (moved to ../nat/linux-personality.c). Create
11956 cleanup to disable address space randomization.
11957
fb23d554
SDJ
119582015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11959
11960 * Makefile.in (posix-strerror.o): New rule.
11961 (mingw-strerror.o): Likewise.
11962 * configure: Regenerated.
11963 * configure.ac: Source file ../common/common.host. Initialize new
11964 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11965
cdf43629
YQ
119662015-01-14 Yao Qi <yao@codesourcery.com>
11967
11968 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11969 (ppc-linux.o): New rule.
11970 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11971 * configure.ac: AC_CHECK_FUNCS(getauxval).
11972 * config.in: Re-generated.
11973 * configure: Re-generated.
11974 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11975 ppc64_64bit_inferior_p
11976
514c5338
YQ
119772015-01-14 Yao Qi <yao@codesourcery.com>
11978
11979 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11980 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11981 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11982 (PT_ORIG_R3, PT_TRAP): Likewise.
11983 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11984 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11985 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11986
3368c1e5
JB
119872015-01-10 Joel Brobecker <brobecker@adacore.com>
11988
11989 * i387-fp.c (i387_cache_to_xsave): In look over
11990 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11991 zmmh_low_space field by use of zmmh_high_space.
11992
582511be
PA
119932015-01-09 Pedro Alves <palves@redhat.com>
11994
11995 * linux-low.c (step_over_bkpt): Move higher up in the file.
11996 (handle_extended_wait): Don't store the stop_pc here.
11997 (get_stop_pc): Adjust comments and rename to ...
11998 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11999 stopped for a software breakpoint or hardware breakpoint.
12000 (thread_still_has_status_pending_p): New function.
12001 (status_pending_p_callback): Use
12002 thread_still_has_status_pending_p. If the event is no longer
12003 interesting, resume the LWP.
12004 (handle_tracepoints): Add assert.
12005 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12006 (wstatus_maybe_breakpoint): New function.
12007 (cancel_breakpoint): Delete function.
12008 (check_stopped_by_watchpoint): New function, factored out from
12009 linux_low_filter_event.
12010 (lp_status_maybe_breakpoint): Delete function.
12011 (linux_low_filter_event): Remove filter_ptid argument.
12012 Leave thread group exits pending here. Store the LWP's stop PC.
12013 Always leave events pending.
12014 (linux_wait_for_event_filtered): Pull all events out of the
12015 kernel, and leave them all pending.
12016 (count_events_callback, select_event_lwp_callback): Consider all
12017 events.
12018 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12019 (select_event_lwp): Only give preference to the stepping LWP in
12020 all-stop mode. Adjust comments.
12021 (ignore_event): New function.
12022 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12023 references to cancel_breakpoints. Adjust to renames. Also give
12024 equal priority to all LWPs that have had events in non-stop mode.
12025 If reporting a software breakpoint event, unadjust the LWP's PC.
12026 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12027 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12028 Adjust.
12029 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12030 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12031 (linux_stopped_by_watchpoint): Adjust.
12032 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12033 * linux-low.h (enum lwp_stop_reason): New.
12034 (struct lwp_info) <stop_pc>: Adjust comment.
12035 <stopped_by_watchpoint>: Delete field.
12036 <stop_reason>: New field.
12037 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12038 * mem-break.c (software_breakpoint_inserted_here)
12039 (hardware_breakpoint_inserted_here): New function.
12040 * mem-break.h (software_breakpoint_inserted_here)
12041 (hardware_breakpoint_inserted_here): Declare.
12042 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12043 (cancel_breakpoints): Delete.
12044 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12045 (upload_fast_traceframes): Remove references to
12046 cancel_breakpoints.
12047
a33e3959
PA
120482015-01-09 Pedro Alves <palves@redhat.com>
12049
12050 * thread-db.c (find_new_threads_callback): Ignore thread if the
12051 kernel thread ID is -1.
12052
8784d563
PA
120532015-01-09 Pedro Alves <palves@redhat.com>
12054
12055 * linux-low.c (linux_attach_fail_reason_string): Move to
12056 nat/linux-ptrace.c, and rename.
12057 (linux_attach_lwp): Update comment.
12058 (attach_proc_task_lwp_callback): New function.
12059 (linux_attach): Adjust to rename and use
12060 linux_proc_attach_tgid_threads.
12061 (linux_attach_fail_reason_string): Delete declaration.
12062
76f2b779
JB
120632015-01-01 Joel Brobecker <brobecker@adacore.com>
12064
12065 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12066 * server.c (gdbserver_version): Likewise.
12067
fafcc06a
SDJ
120682014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12069
12070 * remote-utils.c: Include ctype.h.
12071 (input_interrupt): Explicitly handle the case when the char
12072 received is the NUL byte. Improve the printing of non-ASCII
12073 characters.
12074
beed38b8
JB
120752014-12-16 Joel Brobecker <brobecker@adacore.com>
12076
12077 * linux-low.c (linux_low_filter_event): Update call to
12078 linux_enable_event_reporting following the addition of
12079 a new parameter to that function.
12080
bf330350
CU
120812014-12-16 Catalin Udma <catalin.udma@freescale.com>
12082
12083 PR server/17457
12084 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12085 (AARCH64_FPCR_REGNO): Likewise.
12086 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12087 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12088 (aarch64_store_fpregset): Likewise.
12089
5227d625
JB
120902014-12-15 Joel Brobecker <brobecker@adacore.com>
12091
12092 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12093 Remove FIXME comment about assumption about N.
12094
f93b65a0
JB
120952014-12-13 Joel Brobecker <brobecker@adacore.com>
12096
12097 * configure.ac: If large-file support is disabled in GDBserver,
12098 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12099 * configure: Regenerate.
12100
e5a9158d
AA
121012014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12102
12103 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12104 warning upon ENODATA from ptrace.
12105 * linux-s390-low.c (s390_store_tdb): New.
12106 (s390_regsets): Add regset for NT_S390_TDB.
12107
feea5f36
AA
121082014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12109
12110 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12111 without a fill_function.
12112 * linux-s390-low.c (s390_fill_last_break): Remove.
12113 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12114 (s390_arch_setup): Use regset's size instead of fill_function for
12115 loop end condition.
12116
098dbe61
AA
121172014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12118
12119 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12120 the regset's store function when ptrace returned an error.
12121 * regcache.c (get_thread_regcache): Invalidate register cache
12122 before fetching inferior's registers.
12123
28eef672
AA
121242014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12125
12126 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12127 while-loop as for-loop.
12128 (regsets_store_inferior_registers): Likewise.
12129
bdca27a2
YQ
121302014-11-28 Yao Qi <yao@codesourcery.com>
12131
12132 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12133 * config.in, configure: Re-generate.
12134 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12135 is defined.
12136
9c232dda
YQ
121372014-11-21 Yao Qi <yao@codesourcery.com>
12138
12139 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12140 (AC_CHECK_HEADERS): Remove malloc.h.
12141 * configure: Re-generated.
12142 * config.in: Re-generated.
12143 * server.h: Don't include alloca.h and malloc.h.
12144 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12145 Don't include malloc.h.
12146
43968415
JB
121472014-11-17 Joel Brobecker <brobecker@adacore.com>
12148
12149 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12150 corresponding ERRNO check in same block.
12151
40e91bc7
PA
121522014-11-12 Pedro Alves <palves@redhat.com>
12153
12154 * server.c (cont_thread): Update comment.
12155 (start_inferior, attach_inferior): No longer clear cont_thread.
12156 (handle_v_cont): No longer set cont_thread.
12157 (captured_main): Clear cont_thread each time a GDB connects.
12158
c2c118cf
PA
121592014-11-12 Pedro Alves <palves@redhat.com>
12160
12161 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12162 thread, and don't resume all threads if the Hc thread has exited.
12163
78708b7c
PA
121642014-11-12 Pedro Alves <palves@redhat.com>
12165
12166 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12167 the process group instead of to a specific LWP.
12168
a2abc7de
PA
121692014-10-15 Pedro Alves <palves@redhat.com>
12170
12171 PR server/17487
12172 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12173 parameter.
12174 (arm_set_thread_context): Delete.
12175 (the_low_target): Adjust.
12176 * win32-i386-low.c (debug_registers_changed)
12177 (debug_registers_used): Delete.
12178 (update_debug_registers_callback): New function.
12179 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12180 needing to update their debug registers.
12181 (win32_get_current_dr): New function.
12182 (x86_dr_low_get_addr, x86_dr_low_get_control)
12183 (x86_dr_low_get_status): Fetch the debug register from the thread
12184 record's context.
12185 (i386_initial_stuff): Adjust.
12186 (i386_get_thread_context): Remove current_event parameter. Don't
12187 clear debug_registers_changed nor copy DR values to
12188 debug_reg_state.
12189 (i386_set_thread_context): Delete.
12190 (i386_prepare_to_resume): New function.
12191 (i386_thread_added): Mark the thread as needing to update irs
12192 debug registers.
12193 (the_low_target): Remove i386_set_thread_context and install
12194 i386_prepare_to_resume.
12195 * win32-low.c (win32_get_thread_context): Adjust.
12196 (win32_set_thread_context): Use SetThreadContext
12197 directly.
12198 (win32_prepare_to_resume): New function.
12199 (win32_require_context): New function, factored out from ...
12200 (thread_rec): ... this.
12201 (continue_one_thread): Call win32_prepare_to_resume on each thread
12202 we're about to continue.
12203 (win32_resume): Call win32_prepare_to_resume on the event thread.
12204 * win32-low.h (struct win32_thread_info)
12205 <debug_registers_changed>: New field.
12206 (struct win32_target_ops): Change prototype of set_thread_context,
12207 delete set_thread_context and add prepare_to_resume.
12208 (win32_require_context): New declaration.
12209
a442d071
GB
122102014-10-08 Gary Benson <gbenson@redhat.com>
12211
12212 * server.h: Do not include common-exceptions.h.
12213
6f1947e8
GB
122142014-10-08 Gary Benson <gbenson@redhat.com>
12215
12216 * server.h: Do not include cleanups.h.
12217
63b434a4
JH
122182014-09-30 James Hogan <james.hogan@imgtec.com>
12219
12220 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12221 mips64-dsp-linux.c.
12222
c4d9ceb6
YQ
122232014-09-23 Yao Qi <yao@codesourcery.com>
12224
12225 * linux-low.c (lp_status_maybe_breakpoint): New function.
12226 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12227 (count_events_callback): Likewise.
12228 (select_event_lwp_callback): Likewise.
12229 (cancel_breakpoints_callback): Likewise.
12230
89a5711c
DB
122312014-09-19 Don Breazeal <donb@codesourcery.com>
12232
12233 * linux-low.c (handle_extended_wait): Call
12234 linux_ptrace_get_extended_event.
12235 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12236 linux_is_extended_waitstatus.
12237
bffc0964
JB
122382014-09-16 Joel Brobecker <brobecker@adacore.com>
12239
12240 * Makefile.in (CPPFLAGS): Define.
12241 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12242 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12243
0bfdf32f
GB
122442014-09-16 Gary Benson <gbenson@redhat.com>
12245
12246 * inferiors.h (current_inferior): Renamed as...
12247 (current_thread): New variable. All uses updated.
12248 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12249 (maybe_move_out_of_jump_pad): Likewise.
12250 (cancel_breakpoint): Likewise.
12251 (linux_low_filter_event): Likewise.
12252 (wait_for_sigstop): Likewise.
12253 (linux_resume_one_lwp): Likewise.
12254 (need_step_over_p): Likewise.
12255 (start_step_over): Likewise.
12256 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12257 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12258 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12259 and save_inferior as saved_thread.
12260 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12261 saved_thread.
12262 (regcache_invalidate_thread): Likewise.
12263 * remote-utils.c (prepare_resume_reply): Likewise.
12264 * thread-db.c (thread_db_get_tls_address): Likewise.
12265 (disable_thread_event_reporting): Likewise.
12266 (remove_thread_event_breakpoints): Likewise.
12267 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12268 as saved_thread.
12269 * target.h (set_desired_inferior): Renamed as...
12270 (set_desired_thread): New declaration. All uses updated.
12271 * server.c (myresume): Updated comment to reference thread instead
12272 of inferior.
12273 (handle_serial_event): Likewise.
12274 (handle_target_event): Likewise.
12275
361c8ade
GB
122762014-09-12 Tom Tromey <tromey@redhat.com>
12277 Gary Benson <gbenson@redhat.com>
12278
12279 * regcache.h: Include common-regcache.h.
12280 (regcache_read_pc): Don't declare.
12281 * regcache.c (get_thread_regcache_for_ptid): New function.
12282
bd9269f7
GB
122832014-09-11 Tom Tromey <tromey@redhat.com>
12284 Gary Benson <gbenson@redhat.com>
12285
12286 * symbol.c: New file.
12287 * Makefile.in (SFILES): Add symbol.c.
12288 (OBS): Add symbol.o.
12289
f8c1d06b
GB
122902014-09-11 Gary Benson <gbenson@redhat.com>
12291
12292 * target.c (target_stop_ptid, target_continue_ptid): New
12293 functions.
12294
721ec300
GB
122952014-09-11 Tom Tromey <tromey@redhat.com>
12296 Gary Benson <gbenson@redhat.com>
12297
12298 * target.h: Include target/target.h.
12299 * target.c (target_read_memory, target_read_uint32)
12300 (target_write_memory): New functions.
12301
c5e92cca
GB
123022014-09-11 Gary Benson <gbenson@redhat.com>
12303
12304 * server.h (debug_hw_points): Don't declare.
12305 * server.c (debug_hw_points): Don't define. Replace all uses
12306 with show_debug_regs.
12307 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12308 all uses with show_debug_regs.
12309
2e4bb98a
EBM
123102014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12311
12312 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12313 endianness into account.
12314 (ppc_supply_ptrace_register): Likewise.
12315
ac740bc7
JH
123162014-09-03 James Hogan <james.hogan@imgtec.com>
12317
12318 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12319 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12320
97ea6506
GB
123212014-09-03 Gary Benson <gbenson@redhat.com>
12322
12323 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12324 ALL_DEBUG_ADDRESS_REGISTERS.
12325
df7e5265
GB
123262014-09-02 Gary Benson <gbenson@redhat.com>
12327
12328 * i386-low.h: Renamed as...
12329 * x86-low.h: New file. All type, function and variable name
12330 prefixes changed from "i386_" to "x86_". All references updated.
12331 * i386-low.c: Renamed as...
12332 * x86-low.c: New file. All type, function and variable name
12333 prefixes changed from "i386_" to "x86_". All references updated.
12334
ed859da7
GB
123352014-09-02 Gary Benson <gbenson@redhat.com>
12336
12337 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12338 (x86_linux_new_thread): Likewise.
12339
860789c7
GB
123402014-08-29 Gary Benson <gbenson@redhat.com>
12341
12342 * server.h (setjmp.h): Do not include.
12343 (toplevel): Do not declare.
12344 (common-exceptions.h): Include.
12345 (cleanups.h): Likewise.
12346 * server.c (toplevel): Do not define.
12347 (exit_code): New static global.
12348 (detach_or_kill_for_exit_cleanup): New function.
12349 (main): New function. Original main renamed to...
12350 (captured_main): New function.
12351 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12352
ff55e1b5
GB
123532014-08-29 Gary Benson <gbenson@redhat.com>
12354
12355 * Makefile.in (SFILES): Add common/common-exceptions.c.
12356 (OBS): Add common-exceptions.o.
12357 (common-exceptions.o): New rule.
12358 * utils.c (prepare_to_throw_exception): New function.
12359
e9bcb658
GB
123602014-08-29 Gary Benson <gbenson@redhat.com>
12361
12362 * config.in: Regenerate.
12363 * configure: Likewise.
12364
e3180625
GB
123652014-08-29 Gary Benson <gbenson@redhat.com>
12366
12367 * Makefile.in (SFILES): Add common/cleanups.c.
12368 (OBS): cleanups.o.
12369 (cleanups.o): New rule.
12370
e3d6ba5d
GB
123712014-08-29 Gary Benson <gbenson@redhat.com>
12372
12373 * utils.c (internal_vwarning): New function.
12374
7096e886
GB
123752014-08-28 Gary Benson <gbenson@redhat.com>
12376
12377 * utils.h (fatal): Remove declaration.
12378 * utils.c (fatal): Remove function.
12379
14ce3192
GB
123802014-08-28 Gary Benson <gbenson@redhat.com>
12381
12382 * tracepoint.c (gdb_agent_init): Replace fatal with
12383 perror_with_name.
12384 (initialize_tracepoint): Likewise.
12385
50278d59
GB
123862014-08-28 Gary Benson <gbenson@redhat.com>
12387
12388 * remote-utils.c (remote_prepare): Replace fatal with error.
12389
aa96c426
GB
123902014-08-28 Gary Benson <gbenson@redhat.com>
12391
12392 * linux-low.c (linux_async): Replace fatal with warning.
12393 Tidy up and return.
12394 (linux_start_non_stop): Return -1 if linux_async failed.
12395
f7160e97
GB
123962014-08-28 Gary Benson <gbenson@redhat.com>
12397
12398 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12399 gdb_assert.
12400 (i386_dr_low_get_addr): Remove vague comment.
12401 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12402 gdb_assert.
12403
38e08fca
GB
124042014-08-28 Gary Benson <gbenson@redhat.com>
12405
12406 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12407 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12408 internal_error.
12409 (linux_resume_one_lwp): Likewise.
12410 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12411 gdb_assert.
12412 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12413 with internal_error.
12414 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12415 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12416 (find_register_by_name): Replace fatal with internal_error.
12417 (find_regno): Likewise.
12418 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12419 * thread-db.c (thread_db_create_event): Likewise.
12420 (thread_db_load_search): Likewise.
12421 (try_thread_db_load_1): Likewise.
12422 * tracepoint.c (get_jump_space_head): Replace fatal with
12423 internal_error.
12424 (claim_trampoline_space): Likewise.
12425 (have_fast_tracepoint_trampoline_buffer): Likewise.
12426 (cmd_qtstart): Likewise.
12427 (stop_tracing): Likewise.
12428 (fast_tracepoint_collecting): Likewise.
12429 (target_malloc): Likewise.
12430 (download_tracepoint): Likewise.
12431 (download_trace_state_variables): Replace check with gdb_assert.
12432 (upload_fast_traceframes): Replace fatal with internal_error.
12433
34abf635
GB
124342014-08-19 Tom Tromey <tromey@redhat.com>
12435 Gary Benson <gbenson@redhat.com>
12436
12437 * Makefile.in (SFILES): Add common/common-debug.c.
12438 (OBS): Add common-debug.o.
12439 (common-debug.o): New rule.
12440 * debug.h (debug_printf): Don't declare.
12441 * debug.c (debug_printf): Renamed and rewritten as...
12442 (debug_vprintf): New function.
12443
f6e94d78
GB
124442014-08-19 Gary Benson <gbenson@redhat.com>
12445
12446 * utils.h: Do not include print-utils.h.
12447
9239eeab
GB
124482014-08-19 Tom Tromey <tromey@redhat.com>
12449 Gary Benson <gbenson@redhat.com>
12450
12451 * server.h: Add static assertion.
12452 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12453
ef87c8bb
GB
124542014-08-19 Tom Tromey <tromey@redhat.com>
12455 Gary Benson <gbenson@redhat.com>
12456
12457 * Makefile.in (SFILES): Add common/errors.c.
12458 (OBS): Add errors.o.
12459 (IPA_OBS): Add errors-ipa.o.
12460 (errors.o): New rule.
12461 (errors-ipa.o): Likewise.
12462 * utils.h (perror_with_name, error, warning): Don't declare.
12463 * utils.c (warning): Renamed and rewritten as...
12464 (vwarning): New function.
12465 (error): Renamed and rewritten as...
12466 (verror): New function.
12467 (internal_error): Renamed and rewritten as...
12468 (internal_verror): New function.
12469
bb974a24
GB
124702014-08-07 Gary Benson <gbenson@redhat.com>
12471
12472 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12473 * configure: Regenerate.
12474 * config.in: Likewise.
12475 * server.h: Do not include errno.h.
12476 * event-loop.c: Likewise.
12477 * hostio-errno.c: Likewise.
12478 * linux-low.c: Likewise.
12479 * remote-utils.c: Likewise.
12480 * spu-low.c: Likewise.
12481 * utils.c: Likewise.
12482 * gdbreplay.c: Unconditionally include errno.h.
12483
6d3d12eb
GB
124842014-08-07 Gary Benson <gbenson@redhat.com>
12485
12486 * server.h: Do not include string.h.
12487 * event-loop.c: Likewise.
12488 * linux-low.c: Likewise.
12489 * regcache.c: Likewise.
12490 * remote-utils.c: Likewise.
12491 * spu-low.c: Likewise.
12492 * utils.c: Likewise.
12493
dccbb609
GB
124942014-08-07 Gary Benson <gbenson@redhat.com>
12495
12496 * server.h: Do not include gdb_assert.h.
12497
e76df0d0
GB
124982014-08-07 Gary Benson <gbenson@redhat.com>
12499
12500 * server.h: Do not include common-utils.h.
12501
4cb9c816
GB
125022014-08-07 Gary Benson <gbenson@redhat.com>
12503
12504 * server.h: Do not include ptid.h.
12505 * notif.h: Likewise.
12506
3995eeee
GB
125072014-08-07 Gary Benson <gbenson@redhat.com>
12508
12509 * server.h: Do not include gdb_locale.h.
12510
cb9f1a9b
GB
125112014-08-07 Gary Benson <gbenson@redhat.com>
12512
12513 * server.h: Do not include gdb/signals.h.
12514 * win32-low.c: Likewise.
12515
a5fceff8
GB
125162014-08-07 Gary Benson <gbenson@redhat.com>
12517
12518 * server.h: Do not include pathmax.h.
12519
b9391142
GB
125202014-08-07 Gary Benson <gbenson@redhat.com>
12521
12522 * server.h: Do not include libiberty.h.
12523 * linux-bfin-low.c: Likewise.
12524
0e443c87
GB
125252014-08-07 Gary Benson <gbenson@redhat.com>
12526
12527 * server.h: Do not include ansidecl.h.
12528
8ebb3f56
GB
125292014-08-07 Gary Benson <gbenson@redhat.com>
12530
12531 * linux-x86-low.c: Do not include stddef.h.
12532 * lynx-ppc-low.c: Likewise.
12533 * tracepoint.c: Likewise.
12534
8980bdf6
GB
125352014-08-07 Gary Benson <gbenson@redhat.com>
12536
12537 * server.h: Do not include stdarg.h.
12538 * nto-low.c: Likewise.
12539
d7096f71
GB
125402014-08-07 Gary Benson <gbenson@redhat.com>
12541
12542 * server.h: Do not include stdlib.h.
12543 * inferiors.c: Likewise.
12544 * linux-low.c: Likewise.
12545 * regcache.c: Likewise.
12546 * spu-low.c: Likewise.
12547 * tracepoint.c: Likewise.
12548 * utils.c: Likewise.
12549
d02f550d
GB
125502014-08-07 Gary Benson <gbenson@redhat.com>
12551
12552 * server.h: Do not include stdio.h.
12553 * linux-low.c: Likewise.
12554 * remote-utils.c: Likewise.
12555 * spu-low.c: Likewise.
12556 * utils.c: Likewise.
12557 * wincecompat.c: Likewise.
12558
87f6c4e3
GB
125592014-08-06 Gary Benson <gbenson@redhat.com>
12560
12561 * regcache.c (init_register_cache): Move conditionals inside if.
12562
7089dca4
GB
125632014-08-06 Gary Benson <gbenson@redhat.com>
12564
12565 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12566
462f517e
GB
125672014-07-31 Gary Benson <gbenson@redhat.com>
12568
12569 * ax.h: Do not include server.h.
12570 * gdbthread.h: Likewise.
12571 * lynx-low.h: Likewise.
12572 * notif.h: Likewise.
12573
976411d6
GB
125742014-07-30 Gary Benson <gbenson@redhat.com>
12575
12576 * server.h: Include common-defs.h.
12577 Do not include config.h or build-gnulib-gdbserver/config.h.
12578
d41f6d8e
GB
125792014-07-30 Gary Benson <gbenson@redhat.com>
12580
12581 * hostio-errno.c: Move server.h to top of includes list.
12582 * inferiors.c: Likewise.
12583 * linux-x86-low.c: Likewise.
12584 * notif.c: Include server.h.
12585
314c6a35
TT
125862014-07-24 Tom Tromey <tromey@redhat.com>
12587 Gary Benson <gbenson@redhat.com>
12588
12589 * server.h (CORE_ADDR): Now unsigned.
12590
69ff6be5
PA
125912014-07-16 Pedro Alves <palves@redhat.com>
12592
12593 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12594
ce9e3fe7
PA
125952014-07-15 Pedro Alves <palves@redhat.com>
12596
12597 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12598 copy.
12599
e76126e8
PA
126002014-07-11 Pedro Alves <palves@redhat.com>
12601
12602 * linux-low.c (kill_wait_lwp): New function, based on
12603 kill_one_lwp_callback, but use my_waitpid directly.
12604 (kill_one_lwp_callback, linux_kill): Use it.
12605
8e9db26e
PA
126062014-06-23 Pedro Alves <palves@redhat.com>
12607
12608 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12609 before setting DR0..DR3.
12610
698b3e08
GB
126112014-06-20 Gary Benson <gbenson@redhat.com>
12612
12613 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12614 * configure: Regenerated.
12615 * config.in: Likewise.
12616
125f8a3d
GB
126172014-06-20 Gary Benson <gbenson@redhat.com>
12618
12619 * Makefile.in (SFILES): Update locations for files moved
12620 from common to nat.
12621 (object file files): Reordered.
12622
42995dbd
GB
126232014-06-20 Gary Benson <gbenson@redhat.com>
12624
12625 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12626 (i386_dr_low_set_addr): Likewise.
12627 (i386_dr_low_get_addr): Likewise.
12628 (i386_dr_low_can_set_control): Likewise.
12629 (i386_dr_low_set_control): Likewise.
12630 (i386_dr_low_get_control): Likewise.
12631 (i386_dr_low_get_status): Likewise.
12632 (i386_get_debug_register_length): Likewise.
12633 * linux-x86-low.c (i386_dr_low_set_addr):
12634 Changed signature. Made static.
12635 (i386_dr_low_get_addr): Likewise.
12636 (i386_dr_low_set_control): Likewise.
12637 (i386_dr_low_get_control): Likewise.
12638 (i386_dr_low_get_status): Likewise.
12639 (i386_dr_low): New global variable.
12640 * win32-i386-low.c (i386_dr_low_set_addr):
12641 Changed signature. Made static.
12642 (i386_dr_low_get_addr): Likewise.
12643 (i386_dr_low_set_control): Likewise.
12644 (i386_dr_low_get_control): Likewise.
12645 (i386_dr_low_get_status): Likewise.
12646 (i386_dr_low): New global variable.
12647
e1d2394b
MS
126482014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12649
12650 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12651 * Makefile.in (AR, AR_FLAGS): Define.
12652 * configure: Regenerate.
12653
3a8ee006
GB
126542014-06-19 Gary Benson <gbenson@redhat.com>
12655
12656 * Makefile.in (i386-dregs.o): New rule.
12657 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12658 * i386-low.c (target.h): Remove include.
12659 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12660 (DR_CONTROL_SHIFT): Likewise.
12661 (DR_CONTROL_SIZE): Likewise.
12662 (DR_RW_EXECUTE): Likewise.
12663 (DR_RW_WRITE): Likewise.
12664 (DR_RW_READ): Likewise.
12665 (DR_RW_IORW): Likewise.
12666 (DR_LEN_1): Likewise.
12667 (DR_LEN_2): Likewise.
12668 (DR_LEN_4): Likewise.
12669 (DR_LEN_8): Likewise.
12670 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12671 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12672 (DR_ENABLE_SIZE): Likewise.
12673 (DR_LOCAL_SLOWDOWN): Likewise.
12674 (DR_GLOBAL_SLOWDOWN): Likewise.
12675 (DR_CONTROL_RESERVED): Likewise.
12676 (I386_DR_CONTROL_MASK): Likewise.
12677 (I386_DR_VACANT): Likewise.
12678 (I386_DR_LOCAL_ENABLE): Likewise.
12679 (I386_DR_GLOBAL_ENABLE): Likewise.
12680 (I386_DR_DISABLE): Likewise.
12681 (I386_DR_SET_RW_LEN): Likewise.
12682 (I386_DR_GET_RW_LEN): Likewise.
12683 (I386_DR_WATCH_HIT): Likewise.
12684 (i386_wp_op_t): Likewise.
12685 (i386_show_dr): Likewise.
12686 (i386_length_and_rw_bits): Likewise.
12687 (i386_insert_aligned_watchpoint): Likewise.
12688 (i386_remove_aligned_watchpoint): Likewise.
12689 (i386_handle_nonaligned_watchpoint): Likewise.
12690 i386_update_inferior_debug_regs(): Likewise.
12691 (i386_dr_insert_watchpoint): Likewise.
12692 (i386_dr_remove_watchpoint): Likewise.
12693 (i386_dr_region_ok_for_watchpoint): Likewise.
12694 (i386_dr_stopped_data_address): Likewise.
12695 (i386_dr_stopped_by_watchpoint): Likewise.
12696
8f26655c
GB
126972014-06-19 Gary Benson <gbenson@redhat.com>
12698
12699 * i386-low.c (i386_dr_show): Renamed to
12700 i386_show_dr and made static. All uses updated.
12701 (i386_dr_length_and_rw_bits): Renamed to
12702 i386_length_and_rw_bits and made static.
12703 All uses updated.
12704 (i386_dr_insert_aligned_watchpoint): Renamed to
12705 i386_insert_aligned_watchpoint and made static.
12706 All uses updated.
12707 (i386_dr_remove_aligned_watchpoint): Renamed to
12708 i386_remove_aligned_watchpoint and made static.
12709 All uses updated.
12710 (i386_dr_update_inferior_debug_regs): Renamed to
12711 i386_update_inferior_debug_regs and made static.
12712 All uses updated.
12713
b9228891
GB
127142014-06-18 Gary Benson <gbenson@redhat.com>
12715
5171def3
GB
12716 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12717 (i386_dr_low_can_set_control): Likewise.
12718 (i386_get_debug_register_length): Likewise.
12719 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12720 (i386_dr_low_can_set_control): Likewise.
12721 (i386_get_debug_register_length): Likewise.
12722
127232014-06-17 Gary Benson <gbenson@redhat.com>
12724
b9228891
GB
12725 * i386-low.h (i386-dregs.h): New include.
12726 (DR_FIRSTADDR): Now in i386-dregs.h.
12727 (DR_LASTADDR): Likewise.
12728 (DR_NADDR): Likewise.
12729 (DR_STATUS): Likewise.
12730 (DR_CONTROL): Likewise.
12731 (i386_debug_reg_state): Likewise.
12732 (i386_dr_insert_watchpoint): Likewise.
12733 (i386_dr_remove_watchpoint): Likewise.
12734 (i386_dr_region_ok_for_watchpoint): Likewise.
12735 (i386_dr_stopped_data_address): Likewise.
12736 (i386_dr_stopped_by_watchpoint): Likewise.
12737 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12738
4be83cc2
GB
127392014-06-18 Gary Benson <gbenson@redhat.com>
12740
12741 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12742 i386_dr_insert_watchpoint.
12743 (i386_low_remove_watchpoint): Renamed to
12744 i386_dr_remove_watchpoint.
12745 (i386_low_region_ok_for_watchpoint): Renamed to
12746 i386_dr_region_ok_for_watchpoint.
12747 (i386_low_stopped_data_address): Renamed to
12748 i386_dr_stopped_data_address.
12749 (i386_low_stopped_by_watchpoint): Renamed to
12750 i386_dr_stopped_by_watchpoint.
12751 * i386-low.c (i386_show_dr): Renamed to
12752 i386_dr_show and made nonstatic. All uses updated.
12753 (i386_length_and_rw_bits): Renamed to
12754 i386_dr_length_and_rw_bits and made nonstatic.
12755 All uses updated.
12756 (i386_insert_aligned_watchpoint): Renamed to
12757 i386_dr_insert_aligned_watchpoint and made nonstatic.
12758 All uses updated.
12759 (i386_remove_aligned_watchpoint): Renamed to
12760 i386_dr_remove_aligned_watchpoint and made nonstatic.
12761 All uses updated.
12762 (i386_update_inferior_debug_regs): Renamed to
12763 i386_dr_update_inferior_debug_regs and made nonstatic.
12764 All uses updated.
12765 (i386_low_insert_watchpoint): Renamed to
12766 i386_dr_insert_watchpoint. All uses updated.
12767 (i386_low_remove_watchpoint): Renamed to
12768 i386_dr_remove_watchpoint. All uses updated.
12769 (i386_low_region_ok_for_watchpoint): Renamed to
12770 i386_dr_region_ok_for_watchpoint. All uses updated.
12771 (i386_low_stopped_data_address): Renamed to
12772 i386_dr_stopped_data_address. All uses updated.
12773 (i386_low_stopped_by_watchpoint): Renamed to
12774 i386_dr_stopped_by_watchpoint. All uses updated.
12775
131aa0d4
GB
127762014-06-18 Gary Benson <gbenson@redhat.com>
12777
12778 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12779 (i386_dr_low_can_set_control): Likewise.
12780 (i386_insert_aligned_watchpoint): New check.
12781
d9305f7f
GB
127822014-06-18 Gary Benson <gbenson@redhat.com>
12783
12784 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12785 Renamed to state.
12786
e927c9fc
GB
127872014-06-18 Gary Benson <gbenson@redhat.com>
12788
12789 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12790 instead of fatal and error.
12791 (i386_handle_nonaligned_watchpoint): Likewise.
12792
1b6d4134
GB
127932014-06-18 Gary Benson <gbenson@redhat.com>
12794
12795 * i386-low.c (i386_get_debug_register_length): New macro.
12796 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12797 (i386_show_dr): Use debug_printf instead of fprintf. Use
12798 phex to format values.
12799
6e62758f
GB
128002014-06-18 Gary Benson <gbenson@redhat.com>
12801
12802 * i386-low.h: Comment changes.
12803 * i386-low.c: Likewise.
12804
fc6e2f03
GB
128052014-06-18 Gary Benson <gbenson@redhat.com>
12806
12807 * i386-low.c: Whitespace changes.
12808
f9d1eeed
TT
128092014-06-12 Tom Tromey <tromey@redhat.com>
12810
12811 * utils.c (freeargv): Remove.
12812
0b04e523
TT
128132014-06-12 Tom Tromey <tromey@redhat.com>
12814
12815 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12816 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12817 (parse_debug_format_options): Likewise.
12818 (gdbserver_usage): Likewise.
12819 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12820 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12821 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12822 against libiberty.
12823 ($(LIBGNU)): Depend on libiberty.
12824 (all-lib): Recurse into all subdirs.
12825 (install-only): Invoke "install" target in subdirs.
12826 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12827 targets.
12828 * configure: Rebuild.
12829 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12830 for vasprintf, vsnprintf, or gettimeofday.
12831 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12832 srv_tgtobj.
12833
270c9937
JB
128342014-06-05 Joel Brobecker <brobecker@adacore.com>
12835
12836 * development.sh: Delete.
12837 * Makefile.in (config.status): Adjust dependency on development.sh.
12838 * configure.ac: Adjust development.sh source call.
12839 * configure: Regenerate.
12840
0a261ed8
PA
128412014-06-02 Pedro Alves <palves@redhat.com>
12842
12843 * ax.c (gdb_free_agent_expr): New function.
12844 * ax.h (gdb_free_agent_expr): New declaration.
12845 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12846 list.
12847 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12848 static.
12849 (clear_breakpoint_conditions_and_commands): New function.
12850 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12851 (clear_breakpoint_conditions_and_commands): New declaration.
12852
e9dae05e
RR
128532014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12854
12855 * linux-aarch64-low.c (asm/ptrace.h): Include.
12856
5876f503
JK
128572014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12858
12859 Fix TLS access for -static -pthread.
12860 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12861 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12862 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12863
802e8e6d
PA
128642014-05-20 Pedro Alves <palves@redhat.com>
12865
12866 * linux-aarch64-low.c (aarch64_insert_point)
12867 (aarch64_remove_point): No longer check whether the type is
12868 supported here. Adjust to new interface.
12869 (the_low_target): Install aarch64_supports_z_point_type as
12870 supports_z_point_type method.
12871 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12872 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12873 instead of a Z packet char. Adjust.
12874 (arm_supports_z_point_type): New function.
12875 (arm_insert_point, arm_remove_point): Adjust to new interface.
12876 (the_low_target): Install arm_supports_z_point_type.
12877 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12878 (cris_insert_point, cris_remove_point): Adjust to new interface.
12879 Don't check whether the type is supported here.
12880 (the_low_target): Install cris_supports_z_point_type.
12881 * linux-low.c (linux_supports_z_point_type): New function.
12882 (linux_insert_point, linux_remove_point): Adjust to new interface.
12883 * linux-low.h (struct linux_target_ops) <insert_point,
12884 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12885 raw_breakpoint pointer parameter.
12886 <supports_z_point_type>: New method.
12887 * linux-mips-low.c (mips_supports_z_point_type): New function.
12888 (mips_insert_point, mips_remove_point): Adjust to new interface.
12889 Use mips_supports_z_point_type.
12890 (the_low_target): Install mips_supports_z_point_type.
12891 * linux-ppc-low.c (the_low_target): Install NULL as
12892 supports_z_point_type method.
12893 * linux-s390-low.c (the_low_target): Install NULL as
12894 supports_z_point_type method.
12895 * linux-sparc-low.c (the_low_target): Install NULL as
12896 supports_z_point_type method.
12897 * linux-x86-low.c (x86_supports_z_point_type): New function.
12898 (x86_insert_point): Adjust to new insert_point interface. Use
12899 insert_memory_breakpoint. Adjust to new
12900 i386_low_insert_watchpoint interface.
12901 (x86_remove_point): Adjust to remove_point interface. Use
12902 remove_memory_breakpoint. Adjust to new
12903 i386_low_remove_watchpoint interface.
12904 (the_low_target): Install x86_supports_z_point_type.
12905 * lynx-low.c (lynx_target_ops): Install NULL as
12906 supports_z_point_type callback.
12907 * nto-low.c (nto_supports_z_point_type): New.
12908 (nto_insert_point, nto_remove_point): Adjust to new interface.
12909 (nto_target_ops): Install nto_supports_z_point_type.
12910 * mem-break.c: Adjust intro comment.
12911 (struct raw_breakpoint) <raw_type, size>: New fields.
12912 <inserted>: Update comment.
12913 <shlib_disabled>: Delete field.
12914 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12915 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12916 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12917 (raw_bkpt_type_to_target_hw_bp_type): New function.
12918 (find_enabled_raw_code_breakpoint_at): New function.
12919 (find_raw_breakpoint_at): New type and size parameters. Use them.
12920 (insert_memory_breakpoint): New function, based off
12921 set_raw_breakpoint_at.
12922 (remove_memory_breakpoint): New function.
12923 (set_raw_breakpoint_at): Reimplement.
12924 (set_breakpoint): New, based on set_breakpoint_at.
12925 (set_breakpoint_at): Reimplement.
12926 (delete_raw_breakpoint): Go through the_target->remove_point
12927 instead of assuming memory breakpoints.
12928 (find_gdb_breakpoint_at): Delete.
12929 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12930 (find_gdb_breakpoint): New function.
12931 (set_gdb_breakpoint_at): Delete.
12932 (z_type_supported): New function.
12933 (set_gdb_breakpoint_1): New function, loosely based off
12934 set_gdb_breakpoint_at.
12935 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12936 (delete_gdb_breakpoint_at): Delete.
12937 (delete_gdb_breakpoint_1): New function, loosely based off
12938 delete_gdb_breakpoint_at.
12939 (delete_gdb_breakpoint): New function.
12940 (clear_gdb_breakpoint_conditions): Rename to ...
12941 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12942 breakpoint.
12943 (add_condition_to_breakpoint): Make static.
12944 (add_breakpoint_condition): Take a struct breakpoint pointer
12945 instead of an address. Adjust.
12946 (gdb_condition_true_at_breakpoint): Rename to ...
12947 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12948 z_type parameter.
12949 (gdb_condition_true_at_breakpoint): Reimplement.
12950 (add_breakpoint_commands): Take a struct breakpoint pointer
12951 instead of an address. Adjust.
12952 (gdb_no_commands_at_breakpoint): Rename to ...
12953 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12954 parameter. Return true if no breakpoint was found. Change debug
12955 output.
12956 (gdb_no_commands_at_breakpoint): Reimplement.
12957 (run_breakpoint_commands): Rename to ...
12958 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12959 and change return type to boolean.
12960 (run_breakpoint_commands): New function.
12961 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12962 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12963 breakpoint. Go through the_target->remove_point instead of
12964 assuming memory breakpoint.
12965 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12966 software and hardware breakpoints.
12967 (reinsert_raw_breakpoint): Go through the_target->insert_point
12968 instead of assuming memory breakpoint.
12969 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12970 software and hardware breakpoints.
12971 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12972 Check both software and hardware breakpoints.
12973 (validate_inserted_breakpoint): Assert the breakpoint is a
12974 software breakpoint. Set the inserted flag to -1 instead of
12975 setting shlib_disabled.
12976 (delete_disabled_breakpoints): Adjust.
12977 (validate_breakpoints): Only validate software breakpoints.
12978 Adjust to inserted flag change.
12979 (check_mem_read, check_mem_write): Skip breakpoint types other
12980 than software breakpoints. Adjust to inserted flag change.
12981 * mem-break.h (enum raw_bkpt_type): New enum.
12982 (raw_breakpoint, struct process_info): Forward declare.
12983 (Z_packet_to_target_hw_bp_type): Delete declaration.
12984 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12985 (set_gdb_breakpoint, delete_gdb_breakpoint)
12986 (clear_breakpoint_conditions): New declarations.
12987 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12988 (breakpoint_inserted_here): Update comment.
12989 (add_breakpoint_condition, add_breakpoint_commands): Replace
12990 address parameter with a breakpoint pointer parameter.
12991 (gdb_breakpoint_here): Update comment.
12992 (delete_gdb_breakpoint_at): Delete.
12993 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12994 * server.c (process_point_options): Take a struct breakpoint
12995 pointer instead of an address. Adjust.
12996 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12997 delete_gdb_breakpoint.
12998 * spu-low.c (spu_target_ops): Install NULL as
12999 supports_z_point_type method.
13000 * target.h: Include mem-break.h.
13001 (struct target_ops) <prepare_to_access_memory>: Update comment.
13002 <supports_z_point_type>: New field.
13003 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13004 instead of a char. Also take a raw breakpoint pointer.
13005 * win32-arm-low.c (the_low_target): Install NULL as
13006 supports_z_point_type.
13007 * win32-i386-low.c (i386_supports_z_point_type): New function.
13008 (i386_insert_point, i386_remove_point): Adjust to new interface.
13009 (the_low_target): Install i386_supports_z_point_type.
13010 * win32-low.c (win32_supports_z_point_type): New function.
13011 (win32_insert_point, win32_remove_point): Adjust to new interface.
13012 (win32_target_ops): Install win32_supports_z_point_type.
13013 * win32-low.h (struct win32_target_ops):
13014 <supports_z_point_type>: New method.
13015 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13016 instead of a char. Also take a raw breakpoint pointer.
13017
932539e3
PA
130182014-05-20 Pedro Alves <palves@redhat.com>
13019
13020 * mem-break.h: Include break-common.h.
13021 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13022 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13023 (Z_packet_to_target_hw_bp_type): New declaration.
13024 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13025 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13026 (Z_PACKET_ACCESS_WP): Delete macros.
13027 (Z_packet_to_hw_type): Delete function.
13028 * i386-low.h: Don't include break-common.h here.
13029 (Z_packet_to_hw_type): Delete declaration.
13030 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13031 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13032 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13033 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13034 * linux-aarch64-low.c: Don't include break-common.h here.
13035 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13036 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13037 (Z_packet_to_target_hw_bp_type): Delete function.
13038 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13039 function.
13040 (mips_insert_point, mips_remove_point): Use
13041 Z_packet_to_target_hw_bp_type.
13042
4ff0d3d8
PA
130432014-05-20 Pedro Alves <palves@redhat.com>
13044
13045 * linux-aarch64-low.c: Include break-common.h.
13046 (enum target_point_type): Delete.
13047 (Z_packet_to_point_type): Rename to ...
13048 (Z_packet_to_target_hw_bp_type): ... this, and return a
13049 target_hw_bp_type instead.
13050 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13051 instead of an enum target_point_type.
13052 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13053 breakpoint type.
13054 (aarch64_dr_state_insert_one_point)
13055 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13056 (aarch64_handle_aligned_watchpoint)
13057 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13058 Take an enum target_hw_bp_type instead of an enum
13059 target_point_type.
13060 (aarch64_supports_z_point_type): New function.
13061 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13062 use Z_packet_to_target_hw_bp_type.
13063
786dc519
JB
130642014-05-20 Joel Brobecker <brobecker@adacore.com>
13065
13066 * configure.ac: Only use -Werror by default when DEVELOPMENT
13067 is true.
13068 * configure: Regenerate.
13069
9e0aa64f
JK
130702014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13071
13072 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13073 * linux-x86-low.c (X86_64_USER_REGS): New.
13074 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13075
2b577b92
YQ
130762014-04-28 Yao Qi <yao@codesourcery.com>
13077
13078 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13079 name.
13080
94611da2
PA
130812014-04-25 Pedro Alves <palves@redhat.com>
13082
13083 PR server/16255
13084 * linux-low.c (linux_attach_fail_reason_string): New function.
13085 (linux_attach_lwp): Delete.
13086 (linux_attach_lwp_1): Rename to ...
13087 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13088 argument. Remove "initial" parameter. Return int instead of
13089 void. Don't error or warn here.
13090 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13091 failure to attach to the tgid. Call warning when failing to
13092 attach to an lwp.
13093 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13094 argument. Remove "initial" parameter. Return int instead of
13095 void. Don't error or warn here.
13096 (linux_attach_fail_reason_string): New declaration.
13097 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13098 interface change. Use linux_attach_fail_reason_string.
13099
01f9f808
MS
131002014-04-24 Michael Sturm <michael.sturm@mintel.com>
13101 Walfred Tedeschi <walfred.tedeschi@intel.com>
13102
13103 * Makefile.in: Added rules to handle new files
13104 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13105 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13106 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13107 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13108 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13109 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13110 x32-avx512-linux.o.
13111 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13112 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13113 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13114 i386/x32-avx512.xml.
13115 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13116 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13117 i386/x32-avx512-linux.xml.
13118 * i387-fp.c (num_avx512_k_registers): New constant for number
13119 of K registers.
13120 (num_avx512_zmmh_low_registers): New constant for number of
13121 lower ZMM registers (0-15).
13122 (num_avx512_zmmh_high_registers): New constant for number of
13123 higher ZMM registers (16-31).
13124 (num_avx512_ymmh_registers): New contant for number of higher
13125 YMM registers (ymm16-31 added by avx521 on x86_64).
13126 (num_avx512_xmm_registers): New constant for number of higher
13127 XMM registers (xmm16-31 added by AVX512 on x86_64).
13128 (struct i387_xsave): Add space for AVX512 registers.
13129 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13130 Add code to handle AVX512 registers.
13131 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13132 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13133 prototypei from generated file.
13134 (tdesc_amd64_avx512_linux): Likewise.
13135 (init_registers_x32_avx512_linux): Likewise.
13136 (tdesc_x32_avx512_linux): Likewise.
13137 (init_registers_i386_avx512_linux): Likewise.
13138 (tdesc_i386_avx512_linux): Likewise.
13139 (x86_64_regmap): Add AVX512 registers.
13140 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13141 mask.
13142 (initialize_low_arch): Add code to initialize AVX512 registers.
13143
51aa91f9
PA
131442014-04-23 Pedro Alves <palves@redhat.com>
13145
13146 * mem-break.c (find_gdb_breakpoint_at): Make static.
13147 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13148
a4165e94
PA
131492014-04-23 Pedro Alves <palves@redhat.com>
13150
13151 * i386-low.c: Don't include break-common.h here.
13152 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13153 prototype to take target_hw_bp_type as argument instead of a Z
13154 packet char.
13155 * i386-low.h: Include break-common.h here.
13156 (Z_packet_to_hw_type): Declare.
13157 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13158 prototypes.
13159 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13160 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13161 (x86_remove_point): Convert the packet number to a
13162 target_hw_bp_type before calling i386_low_remove_watchpoint.
13163 * win32-i386-low.c (i386_insert_point): Convert the packet number
13164 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13165 (i386_remove_point): Convert the packet number to a
13166 target_hw_bp_type before calling i386_low_remove_watchpoint.
13167
b8acf843
PA
131682014-04-23 Pedro Alves <palves@redhat.com>
13169
13170 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13171
d708bcd1
PA
131722014-04-10 Pedro Alves <palves@redhat.com>
13173
13174 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13175 Check if the condition or command is NULL before checking if the
13176 breakpoint is known. On success, return true.
13177 * mem-break.h (add_breakpoint_condition): Document return.
13178 (add_breakpoint_commands): Add describing comment.
13179 * server.c (skip_to_semicolon): New function.
13180 (process_point_options): Use it.
13181
2eec7d5b
PA
131822014-04-09 Pedro Alves <palves@redhat.com>
13183
13184 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13185 to lwpid_of.
13186
fa96cb38
PA
131872014-02-27 Pedro Alves <palves@redhat.com>
13188
13189 PR 12702
13190 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13191 macros.
13192 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13193 output.
13194 (last_thread_of_process_p): Take a PID argument instead of a
13195 thread pointer.
13196 (linux_wait_for_lwp): Delete.
13197 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13198 functions.
13199 (linux_low_filter_event): New function, party factored out from
13200 linux_wait_for_event.
13201 (linux_wait_for_event): Rename to ...
13202 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13203 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13204 sigsuspend. Check for zombie leaders.
13205 (linux_wait_for_event): Reimplement as wrapper around
13206 linux_wait_for_event_filtered.
13207 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13208 a normal or signal exit is seen, it's the whole process exiting.
13209 (wait_for_sigstop): No longer a for_each_inferior callback.
13210 Rewrite on top of linux_wait_for_event_filtered.
13211 (stop_all_lwps): Call wait_for_sigstop directly.
13212 * server.c (resume, handle_target_event): Handle
13213 TARGET_WAITKIND_NO_RESUMED.
13214
d763de10
JB
132152014-02-26 Joel Brobecker <brobecker@adacore.com>
13216
13217 * win32-low.c (psapi_get_dll_name,
13218 * win32_CreateToolhelp32Snapshot): Delete.
13219 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13220 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13221 Delete.
13222 (handle_load_dll): Add function description.
13223 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13224
850a0f76
JB
132252014-02-26 Joel Brobecker <brobecker@adacore.com>
13226
13227 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13228 Add comment.
13229 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13230 base address when calling win32_add_one_solib.
13231 (handle_load_dll): Delete local variable load_addr.
13232 Remove 0x1000 offset applied to DLL base address when calling
13233 win32_add_one_solib.
13234 (handle_unload_dll): Add comment.
13235
f25b3fc3
JB
132362014-02-26 Joel Brobecker <brobecker@adacore.com>
13237
13238 * win32-low.c (win32_add_all_dlls): Renames
13239 win32_ensure_ntdll_loaded. Rewrite function documentation.
13240 Adjust implementation to always load all DLLs.
13241 Add 0x1000 offset to DLL base address when calling
13242 win32_add_one_solib.
13243 (child_initialization_done): New static global.
13244 (do_initial_child_stuff): Set child_initialization_done to
13245 zero during child initialization, and 1 after. Replace call
13246 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13247 Add comment.
13248 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13249 (handle_unload_dll): Add function documentation.
13250 (get_child_debug_event): Ignore load and unload DLL events
13251 during child initialization.
13252
d86d4aaf
DE
132532014-02-20 Doug Evans <dje@google.com>
13254
3bc32da3 13255 Remove global all_lwps.
d86d4aaf
DE
13256 * inferiors.h (ptid_of): Move here from linux-low.h.
13257 (pid_of, lwpid_of): Ditto.
13258 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13259 parameter is a struct thread_info * now.
13260 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13261 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13262 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13263 directly.
13264 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13265 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13266 * linux-arm-low.c (update_registers_callback): Update, "entry"
13267 parameter is a struct thread_info * now.
13268 Fetch lwpid from current_inferior directly.
13269 (arm_insert_point): Pass &all_threads to find_inferior instead of
13270 &all_lwps.
13271 (arm_remove_point): Ditto.
13272 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13273 (arm_prepare_to_resume): Fetch pid from thread.
13274 (arm_read_description): Fetch lwpid from current_inferior directly.
13275 * linux-low.c (all_lwps): Delete.
13276 (delete_lwp): Delete call to remove_inferior.
13277 (handle_extended_wait): Fetch lwpid from thread.
13278 (add_lwp): Don't set lwp->entry.id. Remove call to
13279 add_inferior_to_list.
13280 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13281 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13282 (kill_one_lwp_callback): Ditto.
13283 (linux_kill): Don't dereference NULL pointer.
13284 Fetch ptid,lwpid from thread.
13285 (get_detach_signal): Fetch ptid from thread.
13286 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13287 Simplify call to regcache_invalidate_thread.
13288 (delete_lwp_callback): Update, "entry" parameter is a
13289 struct thread_info * now. Fetch pid from thread.
13290 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13291 (status_pending_p_callback): Update, "entry" parameter is a
13292 struct thread_info * now. Fetch ptid from thread.
13293 (find_lwp_pid): Update, "entry" parameter is a
13294 struct thread_info * now.
13295 (linux_wait_for_lwp): Fetch pid from thread.
13296 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13297 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13298 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13299 (dequeue_one_deferred_signal): Ditto.
13300 (cancel_breakpoint): Fetch ptid from current_inferior.
13301 (linux_wait_for_event): Pass &all_threads to find_inferior,
13302 not &all_lwps. Fetch ptid, lwpid from thread.
13303 (count_events_callback): Update, "entry" parameter is a
13304 struct thread_info * now.
13305 (select_singlestep_lwp_callback): Ditto.
13306 (select_event_lwp_callback): Ditto.
13307 (cancel_breakpoints_callback): Ditto.
13308 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13309 not &all_lwps.
13310 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13311 (unsuspend_one_lwp): Update, "entry" parameter is a
13312 struct thread_info * now.
13313 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13314 not &all_lwps.
13315 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13316 Fetch lwpid from thread, not lwp.
13317 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13318 Pass &all_threads to find_inferior, not &all_lwps.
13319 (send_sigstop): Fetch lwpid from thread, not lwp.
13320 (send_sigstop_callback): Update, "entry" parameter is a
13321 struct thread_info * now.
13322 (suspend_and_send_sigstop_callback): Ditto.
13323 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13324 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13325 struct thread_info * now.
13326 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13327 from thread, lwp.
13328 (lwp_running): Update, "entry" parameter is a
13329 struct thread_info * now.
13330 (stop_all_lwps): Fetch ptid from thread.
13331 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13332 (linux_resume_one_lwp): Fetch lwpid from thread.
13333 (linux_set_resume_request): Update, "entry" parameter is a
13334 struct thread_info * now. Fetch pid, lwpid from thread.
13335 (resume_status_pending_p): Update, "entry" parameter is a
13336 struct thread_info * now.
13337 (need_step_over_p): Ditto. Fetch lwpid from thread.
13338 (start_step_over): Fetch lwpid from thread.
13339 (linux_resume_one_thread): Update, "entry" parameter is a
13340 struct thread_info * now. Fetch lwpid from thread.
13341 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13342 (proceed_one_lwp): Update, "entry" parameter is a
13343 struct thread_info * now. Fetch lwpid from thread.
13344 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13345 struct thread_info * now.
13346 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13347 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13348 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13349 directly.
13350 (regsets_store_inferior_registers): Ditto.
13351 (fetch_register, store_register): Ditto.
13352 (linux_read_memory, linux_write_memory): Ditto.
13353 (linux_request_interrupt): Ditto.
13354 (linux_read_auxv): Ditto.
13355 (linux_xfer_siginfo): Ditto.
13356 (linux_qxfer_spu): Ditto.
13357 (linux_qxfer_libraries_svr4): Ditto.
13358 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13359 moved to inferiors.h.
13360 (get_lwp): Delete.
13361 (get_thread_lwp): Update.
13362 (struct lwp_info): Delete member "entry". Simplify comment for
13363 member "thread".
13364 (all_lwps): Delete.
13365 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13366 current_inferior directly.
13367 (update_watch_registers_callback): Update, "entry" parameter is a
13368 struct thread_info * now. Fetch pid from thread.
13369 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13370 (mips_insert_point): Fetch lwpid from current_inferior.
13371 Pass &all_threads to find_inferior, not &all_lwps.
13372 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13373 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13374 directly.
13375 (mips_stopped_data_address): Ditto.
13376 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13377 directly.
13378 * linux-tile-low.c (tile_arch_setup): Ditto.
13379 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13380 (update_debug_registers_callback): Update, "entry" parameter is a
13381 struct thread_info * now. Fetch pid from thread.
13382 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13383 Pass &all_threads to find_inferior, not &all_lwps.
13384 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13385 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13386 Pass &all_threads to find_inferior, not &all_lwps.
13387 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13388 (i386_dr_low_get_status): Ditto.
13389 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13390 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13391 (x86_linux_read_description): Ditto.
13392 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13393
3b8361aa
DE
133942014-02-20 Doug Evans <dje@google.com>
13395
13396 * inferiors.c (get_first_inferior): Fix buglet.
13397
f7667f0d
DE
133982014-02-19 Doug Evans <dje@google.com>
13399
13400 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13401 * inferiors.c (add_thread): Change result type to struct thread_info *.
13402 All callers updated.
13403 (add_lwp): Call add_thread here instead of in callers.
13404 All callers updated.
13405 * linux-low.h (get_lwp_thread): Rewrite.
13406 (struct lwp_info): New member "thread".
13407
b3312d80
DE
134082014-02-19 Doug Evans <dje@google.com>
13409
13410 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13411 All callers updated.
13412
ecc6f45c
DE
134132014-02-19 Doug Evans <dje@google.com>
13414
13415 * inferiors.c (add_thread): Fix whitespace.
13416
649ebbca
DE
134172014-02-19 Doug Evans <dje@google.com>
13418
13419 * dll.c (clear_dlls): Replace accessing list implemention details
13420 with API function.
13421 * gdbthread.h (get_first_thread): Declare.
13422 * inferiors.c (for_each_inferior_with_data): New function.
13423 (get_first_thread): New function.
13424 (find_thread_ptid): Simplify.
13425 (get_first_inferior): New function.
13426 (clear_list): Delete.
13427 (one_inferior_p): New function.
13428 (clear_inferior_list): New function.
13429 (clear_inferiors): Update.
13430 * inferiors.h (for_each_inferior_with_data): Declare.
13431 (clear_inferior_list): Declare.
13432 (one_inferior_p): Declare.
13433 (get_first_inferior): Declare.
13434 * linux-low.c (linux_wait_for_event): Replace accessing list
13435 implemention details with API function.
13436 * server.c (target_running): Ditto.
13437 (accumulate_file_name_length): New function.
13438 (emit_dll_description): New function.
13439 (handle_qxfer_libraries): Replace accessing list implemention
13440 details with API function.
13441 (handle_qxfer_threads_worker): New function.
13442 (handle_qxfer_threads_proper): Replace accessing list implemention
13443 details with API function.
13444 (handle_query): Ditto.
13445 (visit_actioned_threads_callback_ftype): New typedef.
13446 (visit_actioned_threads_data): New struct.
13447 (visit_actioned_threads): Rewrite to be find_inferior callback.
13448 (resume): Call find_inferior.
13449 (handle_status): Replace accessing list implemention
13450 details with API function.
13451 (process_serial_event): Replace accessing list implemention details
13452 with API function.
13453 * target.c (set_desired_inferior): Replace accessing list implemention
13454 details with API function.
13455 * tracepoint.c (same_process_p): New function.
13456 (gdb_agent_about_to_close): Replace accessing list implemention
13457 details with API function.
13458 * win32-low.c (child_delete_thread): Replace accessing list
13459 implemention details with API function.
13460 (match_dll_by_basename): New function.
13461 (dll_is_loaded_by_basename): New function.
13462 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13463 details call to dll_is_loaded_by_basename.
13464
80894984
DE
134652014-02-19 Doug Evans <dje@google.com>
13466
13467 * dll.h (struct dll_info): Add comment.
13468 * gdbthread.h (struct thread_info): Add comment.
13469 (current_ptid): Simplify.
13470 * inferiors.c (add_process): Update.
13471 (remove_process): Update.
13472 * inferiors.h (struct process_info): Rename member "head" to "entry".
13473 * linux-low.c (delete_lwp): Update.
13474 (add_lwp): Update.
13475 (last_thread_of_process_p): Update.
13476 (kill_one_lwp_callback, linux_kill): Update.
13477 (status_pending_p_callback): Update.
13478 (wait_for_sigstop): Update. Simplify read of ptid.
13479 (start_step_over): Update.
13480 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13481 (get_lwp_thread): Update.
13482 (struct lwp_info): Rename member "head" to "entry".
13483 * regcache.h (inferior_list_entry): Delete.
13484 * server.c (kill_inferior_callback): Update.
13485 (detach_or_kill_inferior_callback): Update.
13486 (print_started_pid): Update.
13487 (print_attached_pid): Update.
13488 (process_serial_event): Simplify read of ptid.
13489 * thread-db.c (thread_db_create_event): Update.
13490 (thread_db_get_tls_address): Update.
13491 * win32-low.c (current_inferior_ptid): Simplify.
13492
46917d26
TT
134932014-02-19 Tom Tromey <tromey@redhat.com>
13494
13495 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13496 argument.
13497 (target_supports_btrace): Update.
13498
0759a81e
YQ
134992014-02-14 Yao Qi <yao@codesourcery.com>
13500
13501 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13502 (rsp-low-ipa.o): New target.
13503
a7191e8b
TT
135042014-02-12 Tom Tromey <tromey@redhat.com>
13505
13506 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13507 convert_ascii_to_int.
13508 * regcache.c (registers_to_string): Likewise.
13509 * remote-utils.c (decode_M_packet): Likewise.
13510 * server.c (process_serial_event): Likewise.
13511
ff0e980e
TT
135122014-02-12 Tom Tromey <tromey@redhat.com>
13513
13514 * server.c (handle_query, handle_v_run): Use hex2bin, not
13515 unhexify.
13516 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13517
e9371aff
TT
135182014-02-12 Tom Tromey <tromey@redhat.com>
13519
13520 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13521 convert_int_to_ascii.
13522 * regcache.c (registers_to_string, collect_register_as_string):
13523 Likewise.
13524 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13525 Likewise.
13526 * server.c (process_serial_event): Likewise.
13527 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13528 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13529
971dc0b8
TT
135302014-02-12 Tom Tromey <tromey@redhat.com>
13531
13532 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13533 bin2hex, not hexify.
13534 * tracepoint.c (cmd_qtstatus): Likewise.
13535
0a822afb
TT
135362014-02-12 Tom Tromey <tromey@redhat.com>
13537
13538 * remote-utils.c (monitor_output): Pass explicit length to
13539 hexify.
13540
9c3d6531
TT
135412014-02-12 Tom Tromey <tromey@redhat.com>
13542
13543 * tracepoint.c: Include rsp-low.h.
13544 * server.c: Include rsp-low.h.
13545 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13546 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13547 declare.
13548 * remote-utils.c: Include rsp-low.h.
13549 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13550 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13551 (convert_int_to_ascii, convert_ascii_to_int): Move to
13552 common/rsp-low.c.
13553 * regcache.c: Include rsp-low.h.
13554 * ax.c: Include rsp-low.h.
13555 * Makefile.in (SFILES): Add common/rsp-low.c.
13556 (OBS): Add rsp-low.o.
13557 (rsp-low.o): New target.
13558
01fd3ea5
TT
135592014-02-12 Tom Tromey <tromey@redhat.com>
13560
13561 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13562 Include print-utils.h.
13563 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13564 (plongest, thirty_two, phex_nz): Remove.
13565 * Makefile.in (SFILES): Add common/print-utils.c.
13566 (OBS): Add print-utils.o.
13567 (print-utils-ipa.o): New target.
13568 (print-utils.o): New target.
13569 (IPA_OBJS): Add print-utils-ipa.o.
13570
e99dc820
TT
135712014-02-06 Tom Tromey <tromey@redhat.com>
13572
13573 * Makefile.in (SFILES): Fix indentation.
13574
ee1e2d4f
DE
135752014-02-05 Doug Evans <dje@google.com>
13576
13577 * linux-low.c (linux_wait_for_event): Improve comment.
13578 (linux_wait_1): Keep current_inferior in sync with event_child.
13579
f5a02773
DE
135802014-01-22 Doug Evans <dje@google.com>
13581
13582 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13583
87ce2a04
DE
135842014-01-22 Doug Evans <dje@google.com>
13585
13586 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13587 * configure: Regenerate.
13588 * config.in: Regenerate.
13589 * Makefile.in (SFILES): Add debug.c.
13590 (OBS): Add debug.o.
13591 * debug.c: New file.
13592 * debug.h: New file.
13593 * linux-aarch64-low.c (*): Update all debugging printfs to use
13594 debug_printf instead of fprintf.
13595 * linux-arm-low.c (*): Ditto.
13596 * linux-cris-low.c (*): Ditto.
13597 * linux-crisv32-low.c (*): Ditto.
13598 * linux-m32r-low.c (*): Ditto.
13599 * linux-sparc-low.c (*): Ditto.
13600 * linux-x86.c (*): Ditto.
13601 * linux-low.c (*): Ditto.
13602 (linux_wait_1): Add calls to debug_enter, debug_exit.
13603 (linux_wait): Remove redundant debugging printf.
13604 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13605 (linux_resume, unstop_all_lwps): Ditto.
13606 * mem-break.c (*): Update all debugging printfs to use
13607 debug_printf instead of fprintf.
13608 * remote-utils.c (*): Ditto.
13609 * thread-db.c (*): Ditto.
13610 * server.c #include <ctype.h>, "gdb_vecs.h".
13611 (debug_threads): Moved to debug.c.
13612 (*): Update all debugging printfs to use debug_printf instead of
13613 fprintf.
13614 (start_inferior): Replace call to fflush with call to debug_flush.
13615 (monitor_show_help): Mention set debug-format.
13616 (parse_debug_format_options): New function.
13617 (handle_monitor_command): Handle "monitor set debug-format".
13618 (gdbserver_usage): Mention --debug-format.
13619 (main): Parse --debug-format.
13620 * server.h (debug_threads): Declaration moved to debug.h.
13621 #include "debug.h".
13622 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13623 trace_debug_1 that uses debug_printf.
13624 (tracepoint_look_up_symbols): Update all debugging printfs to use
13625 debug_printf instead of fprintf.
13626
e671835b
BS
136272014-01-20 Baruch Siach <baruch@tkos.co.il>
13628
13629 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13630 sys/ptrace.h.
13631
b5737fa9
PA
136322014-01-17 Pedro Alves <palves@redhat.com>
13633
ea38d2a9 13634 PR build/16445
c7faa97a
PA
13635 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13636 defined after including gdb_proc_service.h.
b5737fa9 13637
40ed484e
DE
136382014-01-16 Doug Evans <dje@google.com>
13639
13640 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13641 (match_dll): Use it.
13642
969c39fb
MM
136432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13644
13645 * target.h (target_ops) <read_btrace>: Change parameters and
13646 return type to allow error reporting.
13647 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13648 trace reading errors on.
13649 * linux-low.c (linux_low_read_btrace): Pass trace reading
13650 errors on.
13651 (linux_low_disable_btrace): New.
13652
ab7f45ba
DE
136532014-01-15 Doug Evans <dje@google.com>
13654
13655 * inferiors.c (thread_id_to_gdb_id): Delete.
13656 * inferiors.h (thread_id_to_gdb_id): Delete.
13657
66af0f44
EZ
136582014-01-13 Eli Zaretskii <eliz@gnu.org>
13659
13660 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13661 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13662 versions.
13663
9939e131
PA
136642014-01-08 Pedro Alves <palves@redhat.com>
13665
13666 * server.c (handle_status): Don't discard previous queued stop
13667 replies or thread's pending status here.
13668 (main) <disconnection>: Do it here instead.
13669
b7ea362b
PA
136702014-01-08 Pedro Alves <palves@redhat.com>
13671
13672 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13673 * server.c (visit_actioned_threads, handle_pending_status): New
13674 function.
13675 (handle_v_cont): Factor out parts to ...
13676 (resume): ... this new function. If in all-stop, and a thread
13677 being resumed has a pending status, report it without actually
13678 resuming.
13679 (myresume): Adjust to use the new 'resume' function.
13680 (clear_pending_status_callback, set_pending_status_callback)
13681 (find_status_pending_thread_callback): New functions.
13682 (handle_status): Handle the case of multiple threads having
13683 interesting statuses to report. Report threads' real last signal
13684 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13685 with an interesting thread to report the status for, instead of
13686 always reporting the status of the first thread.
13687
28498c42
JB
136882014-01-01 Joel Brobecker <brobecker@adacore.com>
13689
13690 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13691 * gdbreplay.c (gdbreplay_version): Likewise.
13692
f45c82da
YZ
136932013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13694
13695 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13696 iov.iov_len with the real length in use.
13697
379a5e2d
JB
136982013-12-13 Joel Brobecker <brobecker@adacore.com>
13699
13700 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13701 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13702 for all targets that use win32-low.c.
13703 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13704 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13705
4210d83e
PA
137062013-12-13 Pedro Alves <palves@redhat.com>
13707
13708 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13709 if equal to TARGET_WAITKIND_LOADED.
13710 * win32-low.c (cached_status): New static global.
13711 (win32_wait): Add declaration.
13712 (do_initial_child_stuff): Flush all initial pending debug events
13713 up to the initial breakpoint.
13714 (win32_wait): If CACHED_STATUS was set, return that instead
13715 of doing a real wait. Remove the code resuming the execution
13716 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13717 during the initial phase. Also remove the code changing
13718 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13719 TARGET_WAITKIND_STOPPED.
13720
e7f0d979
YQ
137212013-12-11 Yao Qi <yao@codesourcery.com>
13722
13723 * notif.c (handle_notif_ack): Return 0 if no notification
13724 matches.
13725
ebcf782c
DE
137262013-11-20 Doug Evans <dje@google.com>
13727
13728 * linux-low.c (linux_set_resume_request): Fix comment.
13729
20ad9378
DE
137302013-11-20 Doug Evans <dje@google.com>
13731
13732 * linux-low.c (resume_status_pending_p): Tweak comment.
13733
a196ebeb
WT
137342013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13735
13736 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13737 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13738 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13739 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13740 (srv_amd64_regobj): Add amd64-mpx.o.
13741 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13742 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13743 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13744 * i387-fp.c (num_pl_bnd_register) Added constant.
13745 (num_pl_bnd_cfg_registers) Added constant.
13746 (struct i387_xsave) Added reserved area and MPX fields.
13747 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13748 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13749 function.
13750 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13751 (init_registers_amd64_mpx_linux): Declare new function.
13752 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13753 (x86_64_regmap): Add MPX registers.
13754 (x86_linux_read_description): Add MPX case.
13755 (initialize_low_arch): Initialize MPX targets.
13756
0080a2f6
TT
137572013-11-18 Tom Tromey <tromey@redhat.com>
13758
13759 * configure: Rebuild.
13760 * configure.ac: Don't check for stdlib.h.
13761 * gdbreplay.c: Unconditionally include stdlib.h.
13762
2978b111
TT
137632013-11-18 Tom Tromey <tromey@redhat.com>
13764
13765 * config.in: Rebuild.
13766 * configure: Rebuild.
13767 * configure.ac: Don't use AC_HEADER_DIRENT.
13768
a3d08894
TT
137692013-11-18 Tom Tromey <tromey@redhat.com>
13770
13771 * server.h: Don't check HAVE_STRING_H.
13772 * gdbreplay.c: Don't check HAVE_STRING_H.
13773 * configure: Rebuild.
13774
0a5dd17d
TT
137752013-11-18 Tom Tromey <tromey@redhat.com>
13776
13777 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13778 LIBGNU.
13779
1bd2f0ba
TT
137802013-11-08 Tom Tromey <tromey@redhat.com>
13781
13782 * configure, config.in: Rebuild.
13783 * configure.ac: Remove unused configury.
13784
3266f10b
TT
137852013-11-08 Tom Tromey <tromey@redhat.com>
13786
13787 * acinclude.m4: Include common.m4, codeset.m4.
13788 * configure, config.in: Rebuild.
13789 * configure.ac: Use GDB_AC_COMMON.
13790
6682d959
AA
137912013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13792
13793 * linux-s390-low.c (HWCAP_S390_TE): New define.
13794 (s390_arch_setup): Consider the TE field in the HWCAP for
13795 determining 'have_regset_tdb'.
13796
fd0a4d76
SDJ
137972013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13798
13799 PR gdb/16014
13800 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13801 call to sizeof.
13802
1a3d890b
PA
138032013-10-02 Pedro Alves <palves@redhat.com>
13804
13805 * server.c (process_serial_event): Don't output "GDBserver
13806 exiting" if GDB is connected through stdio.
13807 * target.c (mywait): Likewise, be silent if GDB is connected
13808 through stdio.
13809
97ad4581
JB
138102013-10-01 Joel Brobecker <brobecker@adacore.com>
13811
13812 * lynx-low.c (lynx_add_threads_after_attach): New function.
13813 (lynx_attach): Remove call to add_thread. Add call to
13814 lynx_add_threads_after_attach instead.
13815
5b4e221c
MF
138162013-09-28 Mike Frysinger <vapier@gentoo.org>
13817
13818 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13819 * config.in, configure: Regenerated.
13820
ee47b2f8
YQ
138212013-09-18 Yao Qi <yao@codesourcery.com>
13822
13823 PR server/15959
13824 * server.c (start_inferior): Clear 'resume_info'.
13825
d6707650 138262013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13827
d6707650
JW
13828 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13829 for each register.
13830
9243dd0e 138312013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13832
9243dd0e
JW
13833 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13834 linux-tile-low.o to srv_tgtobj.
13835
c623a6ef
WN
138362013-09-16 Will Newton <will.newton@linaro.org>
13837
13838 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13839 out regs.
13840
fb71d39e
PA
138412013-09-06 Pedro Alves <palves@redhat.com>
13842
13843 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13844 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13845 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13846 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13847 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13848 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13849
8e7e9910
PA
138502013-09-06 Pedro Alves <palves@redhat.com>
13851
13852 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13853 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13854
7c3a12ca
PA
138552013-09-06 Pedro Alves <palves@redhat.com>
13856
13857 * linux-amd64-ipa.c: Include tracepoint.h.
13858 * linux-i386-ipa.c: Include tracepoint.h.
13859
8eb3d7b6
RW
138602013-09-06 Ricard Wanderlof <ricardw@axis.com>
13861
13862 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13863 (ps_get_thread_area): New function.
13864
eddddb9d
RW
138652013-09-06 Ricard Wanderlof <ricardw@axis.com>
13866
13867 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13868 (initialize_low_arch): Call init_registers_crisv32 rather than
13869 init_register_crisv32.
13870
533b0600
PA
138712013-09-05 Pedro Alves <palves@redhat.com>
13872
13873 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13874 to ...
13875 * hostio.h: ... this new file.
13876 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13877 win32-low.c: Include hostio.h.
13878
0ce3d3b5
PA
138792013-09-05 Pedro Alves <palves@redhat.com>
13880
13881 * server.h (gdb_client_data, handler_func, callback_handler_func)
13882 (delete_file_handler, add_file_handler, append_callback_event)
13883 (delete_callback_event, start_event_loop, initialize_event_loop):
13884 Move to event-loop.h and include it.
13885 * event-loop.h: New file.
13886
799cdc37
PA
138872013-09-05 Pedro Alves <palves@redhat.com>
13888
13889 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13890 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13891 (loaded_dll, unloaded_dll): Move to ...
13892 * dll.h: ... this new file.
13893 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13894
6a6bbd9d
PA
138952013-09-05 Pedro Alves <palves@redhat.com>
13896
13897 * server.h (current_process, get_thread_process, all_processes)
13898 (add_inferior_to_list, for_each_inferior, current_inferior)
13899 (remove_inferior, add_process, remove_process, find_process_pid)
13900 (have_started_inferiors_p, have_attached_inferiors_p)
13901 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13902 (clear_inferiors, find_inferior, find_inferior_id)
13903 (inferior_target_data, set_inferior_target_data)
13904 (inferior_regcache_data, set_inferior_regcache_data): Move to
13905 inferiors.h, and include it.
13906 * inferiors.h: New file.
13907
f699aaba
PA
139082013-09-05 Pedro Alves <palves@redhat.com>
13909
13910 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13911 Move ...
72f4393d 13912 * ax.h: ... here.
f699aaba 13913
c144c7a0
PA
139142013-09-05 Pedro Alves <palves@redhat.com>
13915
13916 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13917 tracepoint.h.
13918 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13919 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13920 (handle_tracepoint_general_set, handle_tracepoint_query)
13921 (tracepoint_finished_step, tracepoint_was_hit)
13922 (release_while_stepping_state_list, current_traceframe)
13923 (in_readonly_region, traceframe_read_mem)
13924 (fetch_traceframe_registers, traceframe_read_sdata)
13925 (traceframe_read_info, struct fast_tpoint_collect_status)
13926 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13927 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13928 (supply_fast_tracepoint_registers)
13929 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13930 (ipa_tdesc, claim_trampoline_space)
13931 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13932 (agent_mem_read, agent_get_trace_state_variable_value)
13933 (agent_set_trace_state_variable_value, agent_tsv_read)
13934 (agent_mem_read_string, get_raw_reg_func_addr)
13935 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13936 * tracepoint.h: ... this new file.
13937
ff42e6ab
PA
139382013-09-05 Pedro Alves <palves@redhat.com>
13939
13940 * server.h (perror_with_name, error, fatal, warning, paddress)
13941 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13942 include it.
13943 * utils.h: New file.
13944
541af0f4
PA
139452013-09-05 Pedro Alves <palves@redhat.com>
13946
13947 * server.h (remote_debug, noack_mode, transport_is_reliable)
13948 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13949 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13950 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13951 (write_enn, initialize_async_io, enable_async_io)
13952 (disable_async_io, check_remote_input_interrupt_request)
13953 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13954 (dead_thread_notify, prepare_resume_reply)
13955 (decode_address_to_semicolon, decode_address, decode_m_packet)
13956 (decode_M_packet, decode_X_packet, decode_xfer_write)
13957 (decode_search_memory_packet, unhexify, hexify)
13958 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13959 (look_up_one_symbol, relocate_instruction)
13960 (monitor_output): Move to remote-utils.h, and include it.
13961 * remote-utils.h: New file.
13962
eebdf26b
PA
139632013-09-05 Pedro Alves <palves@redhat.com>
13964
13965 * server.h (_): Delete.
13966
3aafd2ff
PA
139672013-09-02 Pedro Alves <palves@redhat.com>
13968
13969 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13970 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13971 allocated.
13972 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13973
cee83bcb
PM
139742013-09-02 Pierre Muller <muller@sourceware.org>
13975
13976 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13977 or WriteProcessMemory complete successfully and handle
13978 ERROR_PARTIAL_COPY error.
13979
9a13b2fa
PA
139802013-09-02 Pedro Alves <palves@redhat.com>
13981
13982 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13983 error instead of EIO.
13984
602e3198
JK
139852013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13986
13987 PR server/15604
13988 * linux-low.c: Include filestuff.h.
13989 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13990 * lynx-low.c: Include filestuff.h.
13991 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13992 * server.c: Include filestuff.h.
13993 (main): Call notice_open_fds.
13994 * spu-low.c: Include filestuff.h.
13995 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13996
96d7229d
LM
139972013-08-22 Luis Machado <lgustavo@codesourcery.com>
13998
13999 * Makefile.in: Explain why ../target and ../nat are not
14000 listed as include file search paths.
14001 (linux-waitpid.o): New object file rule.
14002 * configure.srv (srv_native_linux_obj): New variable.
14003 Replace all occurrences of linux native object files with
14004 $srv_native_linux_obj.
14005 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14006 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14007 (linux_enable_event_reporting): Remove declaration.
14008 (my_waitpid): Moved to common/linux-waitpid.c.
14009 (linux_wait_for_event): Pass ptid when calling
14010 linux_enable_event_reporting.
14011 (linux_supports_tracefork_flag): Remove.
14012 (linux_enable_event_reporting): Likewise.
14013 (linux_tracefork_grandchild): Remove.
14014 (STACK_SIZE): Moved to common/linux-ptrace.c.
14015 (linux_tracefork_child): Remove.
14016 (linux_test_for_tracefork): Remove.
14017 (linux_look_up_symbols): Call linux_supports_traceclone.
14018 (initialize_low): Remove call to linux_test_for_tracefork.
14019 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14020 common/linux-ptrace.h.
14021 (PTRACE_TYPE_ARG4): Likewise.
14022 Include linux-ptrace.h.
14023
32940073
PA
140242013-08-21 Pedro Alves <palves@redhat.com>
14025
14026 * config.in: Renegerate.
14027
33b60d58 140282013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14029
33b60d58
LM
14030 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14031 (SFILES): Remove $(srcdir)/common/target-common.c and
14032 add $(srcdir)/target/waitstatus.c.
14033 (OBS): Remove target-common.o and add waitstatus.o.
14034 (server_h): Remove $(srcdir)/../common/target-common.h and
14035 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14036 and $(srcdir)/../target/waitstatus.h.
14037 (target-common.o): Remove.
14038 (waitstatus.o): New target object file.
14039 * target.h: Do not include target-common.h and
14040 include target/resume.h, target/wait.h and
14041 target/waitstatus.h.
14042
b8e1b30e
LM
140432013-08-13 Luis Machado <lgustavo@codesourcery.com>
14044
14045 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14046 to PTRACE_TYPE_ARG3.
14047 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14048 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14049 PTRACE_TYPE_ARG4.
14050 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14051 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14052
7a60ad40
YQ
140532013-07-27 Jie Zhang <jie@codesourcery.com>
14054 Daniel Jacobowitz <dan@codesourcery.com>
14055 Yao Qi <yao@codesourcery.com>
14056
14057 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14058 (mips-linux-watch.o): New rule.
14059 (mips_linux_watch_h): New variable.
14060 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14061 srv_tgtobj.
14062 * linux-mips-low.c: Include mips-linux-watch.h.
14063 (struct arch_process_info, struct arch_lwp_info): New.
14064 (update_watch_registers_callback): New function.
14065 (mips_linux_new_process, mips_linux_new_thread) New functions.
14066 (mips_linux_prepare_to_resume, mips_insert_point): New
14067 functions.
14068 (mips_remove_point, mips_stopped_by_watchpoint): New
14069 functions.
14070 (rsp_bp_type_to_target_hw_bp_type): New function.
14071 (mips_stopped_data_address): New function.
14072 (the_low_target): Add watchpoint support functions.
14073
de6f69ad
YQ
140742013-07-27 Yao Qi <yao@codesourcery.com>
14075
14076 * i386-low.c: Include break-common.h.
14077 (enum target_hw_bp_type): Remove.
14078
3360c0bf
LM
140792013-07-24 Luis Machado <lgustavo@codesourcery.com>
14080
14081 * Makefile.in (SFILES): /common/target-common.c.
14082 (OBS): Add target-common.o.
14083 (server_h): Add $(srcdir)/../common/target-common.h.
14084 (target-common.o): New target.
14085 * server.c (queue_stop_reply_callback): Free
14086 status string after use.
14087 * target.c (target_waitstatus_to_string): Remove.
14088 * target.h: Include target-common.h.
14089 (resume_kind): Likewise.
14090 (target_waitkind): Likewise.
14091 (target_waitstatus): Likewise.
14092 (TARGET_WNOHANG): Likewise.
14093
bd885420
YQ
140942013-07-04 Yao Qi <yao@codesourcery.com>
14095
14096 * Makefile.in (host_alias): Use @host_noncanonical@.
14097 (target_alias): Use @target_noncanonical@.
14098 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14099 ACX_NONCANONICAL_HOST.
14100 * configure: Regenerated.
14101
14102 Revert:
14103 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14104
14105 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14106 * configure: Rebuild.
14107 * Makefile.in (version_host, version_target): Get from configure.
14108 (version.c): Use $(version_host) and $(version_target).
14109
17ef446e
PA
141102013-07-03 Pedro Alves <palves@redhat.com>
14111
14112 * Makefile.in (config.status): Depend on development.sh.
14113 * acinclude.m4: Include libmcheck.m4.
14114 * configure: Regenerate.
14115
7a9a7487
MG
141162013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14117
14118 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14119 attribute inside the parentheses.
14120 (winapi_DebugSetProcessKillOnExit): Ditto.
14121 (winapi_DebugBreakProcess): Ditto.
14122 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14123
49b64de6
MG
141242013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14125
14126 * notif.h (notif_event): Add a dummy member to avoid compiler
14127 errors.
14128
d5749ee7
PA
141292013-07-01 Pedro Alves <palves@redhat.com>
14130
14131 * hostio.c (HOSTIO_PATH_MAX): Define.
14132 (require_filename, handle_open, handle_unlink, handle_readlink):
14133 Use it.
14134
d8d2a3ee
PA
141352013-07-01 Pedro Alves <palves@redhat.com>
14136
14137 * server.h: Include "pathmax.h".
14138 * linux-low.c: Don't include sys/param.h.
14139 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14140 MAXPATHLEN.
14141 * win32-low.c: Don't include sys/param.h.
14142 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14143
bc7dea8d
PA
141442013-07-01 Pedro Alves <palves@redhat.com>
14145
14146 * event-loop.c: Don't check HAVE_UNISTD_H before including
14147 <unistd.h>.
14148 * gdbreplay.c: Likewise.
14149 * remote-utils.c: Likewise.
14150 * server.c: Likewise.
14151 * configure.ac: Don't check for unistd.h.
14152 * configure: Regenerate.
14153
d6c2da54
TT
141542013-06-28 Tom Tromey <tromey@redhat.com>
14155
14156 * Makefile.in (version.c): Use version.in, not
14157 common/version.in.
14158
257b6bec
MG
141592013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14160
14161 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14162 * configure: Rebuild.
14163 * Makefile.in (version_host, version_target): Get from configure.
14164 (version.c): Use $(version_host) and $(version_target).
14165
86ebe149
DK
141662013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14167
14168 Fix trace-status to output user name without trailing colon.
14169 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14170
f30aa5af
DK
141712013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14172
14173 Fix trace-status to output proper start-time and stop-time.
14174 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14175 output start time and stop time in hex as gdb expects.
14176
28a93511
YQ
141772013-06-26 Pedro Alves <pedro@codesourcery.com>
14178
14179 * tracepoint.c (build_traceframe_info_xml): Output trace state
14180 variables present in the trace buffer.
14181
01208463
TT
141822013-06-24 Tom Tromey <tromey@redhat.com>
14183
14184 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14185 create-version.sh.
14186 (version.o): Remove.
14187 * gdbreplay.c: Include version.h.
14188 (version, host_name): Don't declare.
14189 * server.h: Include version.h.
14190 (version, host_name): Don't declare.
14191
760256f9
PA
141922013-06-12 Pedro Alves <palves@redhat.com>
14193
14194 * linux-x86-low.c (linux_is_elf64): Delete global.
14195 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14196 with local linux_pid_exe_is_elf_64_file use.
14197
030031ee
PA
141982013-06-11 Pedro Alves <palves@redhat.com>
14199
14200 * linux-low.c (regset_disabled, disable_regset): New functions.
14201 (regsets_fetch_inferior_registers)
14202 (regsets_store_inferior_registers): Use them.
14203 (initialize_regsets_info); Don't allocate the disabled_regsets
14204 array here.
14205 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14206 comment.
14207
5da6eb0a
PA
142082013-06-11 Pedro Alves <palves@redhat.com>
14209
14210 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14211 xmalloc.
14212
7e5aaa09
PA
142132013-06-11 Pedro Alves <palves@redhat.com>
14214
14215 * linux-x86-low.c (initialize_low_arch): Call
14216 init_registers_x32_avx_linux.
14217
d878444c
JK
142182013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14219
14220 Fix compatibility with Android Bionic.
14221 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14222 it is not empty.
14223
3aee8918
PA
142242013-06-07 Pedro Alves <palves@redhat.com>
14225
5f2b57b5 14226 PR server/14823
3aee8918
PA
14227 * Makefile.in (OBS): Add tdesc.o.
14228 (IPA_OBJS): Add tdesc-ipa.o.
14229 (tdesc-ipa.o): New rule.
14230 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14231 interface.
14232 * linux-low.c (new_inferior): Delete.
14233 (disabled_regsets, num_regsets): Delete.
14234 (linux_add_process): Adjust to set the new per-process
14235 new_inferior flag.
14236 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14237 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14238 was a stop. When calling arch_setup, switch the current inferior
14239 to the thread that got an event.
14240 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14241 (regsets_fetch_inferior_registers)
14242 (regsets_store_inferior_registers): New regsets_info parameter.
14243 Adjust to use it.
14244 (linux_register_in_regsets): New regs_info parameter. Adjust to
14245 use it.
14246 (register_addr, fetch_register, store_register): New usrregs_info
14247 parameter. Adjust to use it.
14248 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14249 parameter regs_info. Adjust to use it.
14250 (linux_fetch_registers): Get the current inferior's regs_info, and
14251 adjust to use it.
14252 (linux_store_registers): Ditto.
14253 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14254 (initialize_low): Don't initialize the target_regsets here. Call
14255 initialize_low_arch.
14256 * linux-low.h (target_regsets): Delete declaration.
14257 (struct regsets_info): New.
14258 (struct usrregs_info): New.
14259 (struct regs_info): New.
14260 (struct process_info_private) <new_inferior>: New field.
14261 (struct linux_target_ops): Delete the num_regs, regmap, and
14262 regset_bitmap fields. New field regs_info.
14263 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14264 * i387-fp.c (num_xmm_registers): Delete.
14265 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14266 calls to new interface.
14267 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14268 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14269 Infer the number of xmm registers from the regcache's target
14270 description.
14271 * i387-fp.h (num_xmm_registers): Delete.
14272 * inferiors.c (add_thread): Don't install the thread's regcache
14273 here.
14274 * proc-service.c (gregset_info): Fetch the current inferior's
14275 regs_info. Adjust to use it.
14276 * regcache.c: Include tdesc.h.
14277 (register_bytes, reg_defs, num_registers)
14278 (gdbserver_expedite_regs): Delete.
14279 (get_thread_regcache): If the thread doesn't have a regcache yet,
14280 create one, instead of aborting gdbserver.
14281 (regcache_invalidate_one): Rename to ...
14282 (regcache_invalidate_thread): ... this.
14283 (regcache_invalidate_one): New.
14284 (regcache_invalidate): Only invalidate registers of the current
14285 process.
14286 (init_register_cache): Add target_desc parameter, and use it.
14287 (new_register_cache): Ditto. Assert the target description has a
14288 non zero registers_size.
14289 (regcache_cpy): Add assertions. Adjust.
14290 (realloc_register_cache, set_register_cache): Delete.
14291 (registers_to_string, registers_from_string): Adjust.
14292 (find_register_by_name, find_regno, find_register_by_number)
14293 (register_cache_size): Add target_desc parameter, and use it.
14294 (free_register_cache_thread, free_register_cache_thread_one)
14295 (regcache_release, register_cache_size): New.
14296 (register_size): Add target_desc parameter, and use it.
14297 (register_data, supply_register, supply_register_zeroed)
14298 (supply_regblock, supply_register_by_name, collect_register)
14299 (collect_register_as_string, collect_register_by_name): Adjust.
14300 * regcache.h (struct target_desc): Forward declare.
14301 (struct regcache) <tdesc>: New field.
14302 (init_register_cache, new_register_cache): Add target_desc
14303 parameter.
14304 (regcache_invalidate_thread): Declare.
14305 (regcache_invalidate_one): Delete declaration.
14306 (regcache_release): Declare.
14307 (find_register_by_number, register_cache_size, register_size)
14308 (find_regno): Add target_desc parameter.
14309 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14310 declarations.
14311 * remote-utils.c: Include tdesc.h.
14312 (outreg, prepare_resume_reply): Adjust.
14313 * server.c: Include tdesc.h.
14314 (gdbserver_xmltarget): Delete declaration.
14315 (get_features_xml, process_serial_event): Adjust.
14316 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14317 declare.
14318 (struct process_info) <tdesc>: New field.
14319 (ipa_tdesc): Declare.
14320 * tdesc.c: New file.
14321 * tdesc.h: New file.
14322 * tracepoint.c: Include tdesc.h.
14323 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14324 (get_context_regcache): Adjust to pass ipa_tdesc down.
14325 (do_action_at_tracepoint): Adjust to get the register cache size
14326 from the context regcache's description.
14327 (traceframe_walk_blocks): Adjust to get the register cache size
14328 from the current trace frame's description.
14329 (traceframe_get_pc): Adjust to get current trace frame's
14330 description and pass it down.
14331 (gdb_collect): Adjust to get the register cache size from the
14332 IPA's description.
14333 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14334 (gdbserver_xmltarget): Delete.
14335 (initialize_low_tracepoint): Set the ipa's target description.
14336 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14337 (initialize_low_tracepoint): Set the ipa's target description.
14338 * linux-x86-low.c: Include tdesc.h.
14339 [__x86_64__] (is_64bit_tdesc): New.
14340 (ps_get_thread_area, x86_get_thread_area): Use it.
14341 (i386_cannot_store_register): Rename to ...
14342 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14343 (i386_cannot_fetch_register): Rename to ...
14344 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14345 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14346 to new interface.
14347 (target_regsets): Rename to ...
14348 (x86_regsets): ... this.
14349 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14350 interface.
14351 (x86_siginfo_fixup): Use is_64bit_tdesc.
14352 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14353 (tdesc_x32_avx_linux, tdesc_x32_linux)
14354 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14355 Declare.
14356 (x86_linux_update_xmltarget): Delete.
14357 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14358 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14359 (AMD64_LINUX_USER64_CS): New.
14360 (x86_linux_read_description): New, based on
14361 x86_linux_update_xmltarget.
14362 (same_process_callback): New.
14363 (x86_arch_setup_process_callback): New.
14364 (x86_linux_update_xmltarget): New.
14365 (x86_regsets_info): New.
14366 (amd64_linux_regs_info): New.
14367 (i386_linux_usrregs_info): New.
14368 (i386_linux_regs_info): New.
14369 (x86_linux_regs_info): New.
14370 (x86_arch_setup): Reimplement.
14371 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14372 (x86_emit_ops): Ditto.
14373 (the_low_target): Adjust. Install x86_linux_regs_info,
14374 x86_cannot_fetch_register, and x86_cannot_store_register.
14375 (initialize_low_arch): New.
14376 * linux-ia64-low.c (tdesc_ia64): Declare.
14377 (ia64_fetch_register): Adjust.
14378 (ia64_usrregs_info, regs_info): New globals.
14379 (ia64_regs_info): New function.
14380 (the_low_target): Adjust.
14381 (initialize_low_arch): New function.
14382 * linux-sparc-low.c (tdesc_sparc64): Declare.
14383 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14384 Adjust.
14385 (sparc_arch_setup): New function.
14386 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14387 (the_low_target): Adjust.
14388 (initialize_low_arch): New function.
14389 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14390 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14391 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14392 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14393 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14394 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14395 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14396 (tdesc_powerpc_isa205_vsx64l): Declare.
14397 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14398 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14399 (ppc_set_pc, ppc_get_hwcap): Adjust.
14400 (ppc_usrregs_info): Forward declare.
14401 (!__powerpc64__) ppc_regmap_adjusted: New global.
14402 (ppc_arch_setup): Adjust to the current process'es target
14403 description.
14404 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14405 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14406 (ppc_store_evrregset): Adjust.
14407 (target_regsets): Rename to ...
14408 (ppc_regsets): ... this, and make static.
14409 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14410 (ppc_regs_info): New function.
14411 (the_low_target): Adjust.
14412 (initialize_low_arch): New function.
14413 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14414 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14415 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14416 (tdesc_s390x_linux64v2): Declare.
14417 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14418 (s390_fill_gregset, s390_store_last_break): Adjust.
14419 (target_regsets): Rename to ...
14420 (s390_regsets): ... this, and make static.
14421 (s390_get_pc, s390_set_pc): Adjust.
14422 (s390_get_hwcap): New target_desc parameter, and use it.
14423 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14424 (s390_arch_setup): Adjust to set the current process'es target
14425 description. Don't adjust the regmap.
14426 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14427 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14428 (regs_info_3264): New globals.
14429 (s390_regs_info): New function.
14430 (the_low_target): Adjust.
14431 (initialize_low_arch): New function.
14432 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14433 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14434 [__mips64] (init_registers_mips_linux)
14435 (init_registers_mips_dsp_linux): Delete defines.
14436 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14437 (have_dsp): New global.
14438 (mips_read_description): New, based on mips_arch_setup.
14439 (mips_arch_setup): Reimplement.
14440 (get_usrregs_info): New function.
14441 (mips_cannot_fetch_register, mips_cannot_store_register)
14442 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14443 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14444 (target_regsets): Rename to ...
14445 (mips_regsets): ... this, and make static.
14446 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14447 (dsp_regs_info, regs_info): New globals.
14448 (mips_regs_info): New function.
14449 (the_low_target): Adjust.
14450 (initialize_low_arch): New function.
14451 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14452 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14453 Declare.
14454 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14455 (arm_read_description): New, with bits factored from
14456 arm_arch_setup.
14457 (arm_arch_setup): Reimplement.
14458 (target_regsets): Rename to ...
14459 (arm_regsets): ... this, and make static.
14460 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14461 (arm_regs_info): New function.
14462 (the_low_target): Adjust.
14463 (initialize_low_arch): New function.
14464 * linux-m68k-low.c (tdesc_m68k): Declare.
14465 (target_regsets): Rename to ...
14466 (m68k_regsets): ... this, and make static.
14467 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14468 (m68k_regs_info): New function.
14469 (m68k_arch_setup): New function.
14470 (the_low_target): Adjust.
14471 (initialize_low_arch): New function.
14472 * linux-sh-low.c (tdesc_sharch): Declare.
14473 (target_regsets): Rename to ...
14474 (sh_regsets): ... this, and make static.
14475 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14476 (sh_regs_info, sh_arch_setup): New functions.
14477 (the_low_target): Adjust.
14478 (initialize_low_arch): New function.
14479 * linux-bfin-low.c (tdesc_bfin): Declare.
14480 (bfin_arch_setup): New function.
14481 (bfin_usrregs_info, regs_info): New globals.
14482 (bfin_regs_info): New function.
14483 (the_low_target): Adjust.
14484 (initialize_low_arch): New function.
14485 * linux-cris-low.c (tdesc_cris): Declare.
14486 (cris_arch_setup): New function.
14487 (cris_usrregs_info, regs_info): New globals.
14488 (cris_regs_info): New function.
14489 (the_low_target): Adjust.
14490 (initialize_low_arch): New function.
14491 * linux-cris-low.c (tdesc_crisv32): Declare.
14492 (cris_arch_setup): New function.
14493 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14494 (cris_regs_info): New function.
14495 (the_low_target): Adjust.
14496 (initialize_low_arch): New function.
14497 * linux-m32r-low.c (tdesc_m32r): Declare.
14498 (m32r_arch_setup): New function.
14499 (m32r_usrregs_info, regs_info): New globals.
14500 (m32r_regs_info): Adjust.
14501 (initialize_low_arch): New function.
14502 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14503 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14504 (tic6x_usrregs_info): Forward declare.
14505 (tic6x_read_description): New function, based on ...
14506 (tic6x_arch_setup): ... this. Reimplement.
14507 (target_regsets): Rename to ...
14508 (tic6x_regsets): ... this, and make static.
14509 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14510 (tic6x_regs_info): New function.
14511 (the_low_target): Adjust.
14512 (initialize_low_arch): New function.
14513 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14514 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14515 (target_regsets): Rename to ...
14516 (xtensa_regsets): ... this, and make static.
14517 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14518 globals.
14519 (xtensa_arch_setup, xtensa_regs_info): New functions.
14520 (the_low_target): Adjust.
14521 (initialize_low_arch): New function.
14522 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14523 (nios2_arch_setup): Set the current process'es tdesc.
14524 (target_regsets): Rename to ...
14525 (nios2_regsets): ... this.
14526 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14527 (nios2_regs_info): New function.
14528 (the_low_target): Adjust.
14529 (initialize_low_arch): New function.
a261b8f5
PA
14530 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14531 (aarch64_arch_setup): Set the current process'es tdesc.
14532 (target_regsets): Rename to ...
14533 (aarch64_regsets): ... this.
14534 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14535 (aarch64_regs_info): New function.
14536 (the_low_target): Adjust.
14537 (initialize_low_arch): New function.
3aee8918
PA
14538 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14539 globals.
14540 (target_regsets): Rename to ...
14541 (tile_regsets): ... this.
14542 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14543 (tile_regs_info): New function.
14544 (tile_arch_setup): Set the current process'es tdesc.
14545 (the_low_target): Adjust.
14546 (initialize_low_arch): New function.
14547 * spu-low.c (tdesc_spu): Declare.
14548 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14549 * win32-arm-low.c (tdesc_arm): Declare.
14550 (arm_arch_setup): New function.
14551 (the_low_target): Install arm_arch_setup instead of
14552 init_registers_arm.
14553 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14554 (init_windows_x86): Rename to ...
14555 (i386_arch_setup): ... this. Set `win32_tdesc'.
14556 (the_low_target): Adjust.
14557 * win32-low.c (win32_tdesc): New global.
14558 (child_add_thread): Don't create the thread cache here.
14559 (do_initial_child_stuff): Set the new process'es tdesc.
14560 * win32-low.h (struct target_desc): Forward declare.
14561 (win32_tdesc): Declare.
14562 * lynx-i386-low.c (tdesc_i386): Declare global.
14563 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14564 * lynx-low.c (lynx_tdesc): New global.
14565 (lynx_add_process): Set the new process'es tdesc.
14566 * lynx-low.h (struct target_desc): Forward declare.
14567 (lynx_tdesc): Declare global.
14568 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14569 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14570 * nto-low.c (nto_tdesc): New global.
14571 (do_attach): Set the new process'es tdesc.
14572 * nto-low.h (struct target_desc): Forward declare.
14573 (nto_tdesc): Declare.
14574 * nto-x86-low.c (tdesc_i386): Declare.
14575 (nto_x86_arch_setup): Set `nto_tdesc'.
14576
b1fbec62
GB
145772013-06-04 Gary Benson <gbenson@redhat.com>
14578
14579 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14580 to qSupported response when appropriate.
14581 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14582 with nonzero-length annex.
14583 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14584 arguments supplied in annex.
14585
d1ec4ce7
DE
145862013-05-31 Doug Evans <dje@google.com>
14587
ac44adcb 14588 PR server/15594
d1ec4ce7
DE
14589 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14590 64 bits in 64-cross-32 environment.
14591
9b25f2d3
PA
145922013-05-28 Pedro Alves <palves@redhat.com>
14593
14594 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14595 (aarch64-without-fpu.c): Delete rule.
14596 * configure.srv (aarch64*-*-linux*): Remove references to
14597 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14598 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14599 declaration.
14600
6740dc9c
PA
146012013-05-24 Pedro Alves <palves@redhat.com>
14602
14603 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14604 instead of strchr/decode_address. Error if the range isn't split
14605 with a ','. Don't assume there's be a ':' in the action.
14606
c2d6af84
PA
146072013-05-23 Yao Qi <yao@codesourcery.com>
14608 Pedro Alves <palves@redhat.com>
14609
14610 * linux-low.c (lwp_in_step_range): New function.
14611 (linux_wait_1): If the thread was range stepping and stopped
14612 outside the stepping range, report the stop to GDB. Otherwise,
14613 continue stepping. Add range stepping debug output.
14614 (linux_set_resume_request): Copy the step range from the resume
14615 request to the lwp.
14616 (linux_supports_range_stepping): New.
14617 (linux_target_ops) <supports_range_stepping>: Set to
14618 linux_supports_range_stepping.
14619 * linux-low.h (struct linux_target_ops)
14620 <supports_range_stepping>: New field.
14621 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14622 * linux-x86-low.c (x86_supports_range_stepping): New.
14623 (the_low_target) <supports_range_stepping>: Set to
14624 x86_supports_range_stepping.
14625 * server.c (handle_v_cont): Handle 'r' action.
14626 (handle_v_requests): Append ";r" if the target supports range
14627 stepping.
14628 * target.h (struct thread_resume) <step_range_start,
14629 step_range_end>: New fields.
14630 (struct target_ops) <supports_range_stepping>:
14631 New field.
14632 (target_supports_range_stepping): New macro.
14633
58794e1a
JB
146342013-05-17 Joel Brobecker <brobecker@adacore.com>
14635
14636 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14637 confusion in comment.
14638
d631c5a7
JB
146392013-05-17 Joel Brobecker <brobecker@adacore.com>
14640
14641 * lynx-low.c (struct process_info_private): New type.
14642 (lynx_add_process): New function.
14643 (lynx_create_inferior, lynx_attach): Replace calls to
14644 add_process by calls to lynx_add_process.
14645 (lynx_resume): If PTID is null, then try using
14646 current_process()->private->last_wait_event_ptid.
14647 Add comments.
14648 (lynx_clear_inferiors): Delete. The contents of that function
14649 has been inlined in lynx_mourn;
14650 (lynx_wait_1): Save the ptid in the process's private data.
14651 (lynx_mourn): Free the process' private data. Replace call
14652 to lynx_clear_inferiors by call to clear_inferiors.
14653
96f7a20f
YQ
146542013-05-17 Yao Qi <yao@codesourcery.com>
14655
14656 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14657 the right place.
14658
db0dfaa0
LM
146592013-05-16 Luis Machado <lgustavo@codesourcery.com>
14660
14661 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14662 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14663 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14664 PT_TEXT_END_ADDR guards. Update comments.
14665 (linux_target_op) <read_offsets>: Conditionally define to
14666 linux_read_offsets if the target is UCLIBC and if it defines
14667 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14668
68f5f838
SL
146692013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14670 Andrew Jenner <andrew@codesourcery.com>
14671
14672 * Makefile.in (SFILES): Add linux-nios2-low.c.
14673 (clean): Add action to delete nios2-linux.c.
14674 (nios2-linux.c): New rule.
14675 * configure.srv: Add nios2*-*-linux*.
14676 * linux-nios2-low.c: New.
14677
1ebff1fd
HAQ
146782013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14679
14680 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14681
f6150862
HZ
146822013-04-25 Hui Zhu <hui@codesourcery.com>
14683
14684 PR gdb/15186
f6150862
HZ
14685 * ax.c (ax_printf): Add fflush.
14686
614c279d
TT
146872013-04-22 Tom Tromey <tromey@redhat.com>
14688
14689 * Makefile.in (SFILES): Add filestuff.c.
14690 (OBS): Add filestuff.o.
14691 (filestuff.o): New target.
14692 * config.in, configure: Rebuild.
14693 * configure.ac: Check for fdwalk, pipe2.
14694
7d4e5717
PA
146952013-04-17 Pedro Alves <palves@redhat.com>
14696
14697 * configure.ac (USE_THREAD_DB): Delete variable.
14698 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14699 Don't AC_SUBST USE_THREAD_DB.
14700 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14701 * config.in, configure: Regenerate.
14702
d5c93e41
PA
147032013-04-16 Pedro Alves <palves@redhat.com>
14704
14705 * linux-low.h (struct lwp_info) <thread_known>: Move under
14706 the USE_THREAD_DB #ifdef.
14707
04f5fe89
PA
147082013-04-16 Pedro Alves <palves@redhat.com>
14709
14710 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14711 (linux-low.o): Delete rule.
14712 * linux-low.h: Always include "gdb_thread_db.h" instead of
14713 conditionally including thread_db.h.
14714 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14715 HAVE_THREAD_DB_H.
14716
480b27bf
JK
147172013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14718
14719 * Makefile.in (install-only): Fix make install regression.
14720
43662968
JK
147212013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14722
14723 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14724 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14725 installation.
14726 * gdbserver.1: Remove.
14727
3e74e146
PA
147282013-03-22 Pedro Alves <palves@redhat.com>
14729
14730 * linux-low.c (handle_extended_wait): Don't call
14731 linux_enable_event_reporting.
14732
a8347a2a
TT
147332013-03-15 Tony Theodore <tonyt@logyst.com>
14734
14735 PR build/9098:
14736 * Makefile.in (SHELL): Use @SHELL@.
14737
eeb56fa7
SDJ
147382013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14739
14740 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14741 compiler warning.
14742
4fa7e2ff
JB
147432013-03-13 Joel Brobecker <brobecker@adacore.com>
14744
14745 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14746 Remove extraneous NULL element.
14747
8ddb1965
YQ
147482013-03-13 Yao Qi <yao@codesourcery.com>
14749
14750 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14751 'V' block in trace frame.
14752
9accd112
MM
147532013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14754
14755 * target.h (struct target_ops): Add btrace ops.
14756 (target_supports_btrace): New macro.
14757 (target_enable_btrace): New macro.
14758 (target_disable_btrace): New macro.
14759 (target_read_btrace): New macro.
14760 * gdbthread.h (struct thread_info): Add btrace field.
14761 * server.c: Include btrace-common.h.
14762 (handle_btrace_general_set): New function.
14763 (handle_btrace_enable): New function.
14764 (handle_btrace_disable): New function.
14765 (handle_general_set): Call handle_btrace_general_set.
14766 (handle_qxfer_btrace): New function.
14767 (struct qxfer qxfer_packets[]): Add btrace entry.
14768 * inferiors.c (remove_thread): Disable btrace.
14769 * linux-low: Include linux-btrace.h.
14770 (linux_low_enable_btrace): New function.
14771 (linux_low_read_btrace): New function.
14772 (linux_target_ops): Add btrace ops.
14773 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14774 Add srv_linux_btrace=yes.
14775 (x86_64-*-linux*): Add linux-btrace.o.
14776 Add srv_linux_btrace=yes.
14777 * configure.ac: Define HAVE_LINUX_BTRACE.
14778 * config.in: Regenerated.
14779 * configure: Regenerated.
14780
5cc22e4c
MM
147812013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14782
14783 * server.c (handle_qxfer): Preserve error message if -3 is
14784 returned.
14785 (qxfer): Document the -3 return value.
14786
7c97f91e
MM
147872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14788
14789 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14790 (linux_btrace_h): New variable.
14791 (linux-btrace.o): New rule.
14792
be9a119c 147932013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14794 Hafiz Abid Qadeer <abidh@codesourcery.com>
14795
14796 * tracepoint.c (trace_buffer_size): New global.
14797 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14798 (init_trace_buffer): Change to one-argument function. Allocate
14799 trace buffer memory.
14800 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14801 handle QTBuffer:size packet.
14802 (cmd_bigqtbuffer_size): New function.
14803 (initialize_tracepoint): Call init_trace_buffer with
14804 DEFAULT_TRACE_BUFFER_SIZE.
14805 * server.c (handle_query): Add QTBuffer:size in the
14806 supported packets.
14807
e64f7499
YQ
148082013-03-07 Yao Qi <yao@codesourcery.com>
14809
14810 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14811 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14812 of -1.
14813 (cmd_qtsp): Adjust condition. Do post increment.
14814 Set cur_action and cur_step_action back to 0.
14815
f0ae6fc3
PA
148162013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14817
14818 PR server/15236
14819 * linux-low.c (linux_write_memory): Return early success if LEN is
14820 zero.
14821
b5b0b0af
CV
148222013-03-05 Corinna Vinschen <vinschen@redhat.de>
14823
334ad4a8 14824 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14825
589bc927
TT
148262013-02-28 Tom Tromey <tromey@redhat.com>
14827
14828 * configure.ac: Invoke AC_SYS_LARGEFILE.
14829 * configure, config.in: Rebuild.
14830
dfe07582
CV
148312013-02-28 Corinna Vinschen <vinschen@redhat.com>
14832
14833 * win32-low.c: Throughout, fix format strings and casts of
14834 printf-like functions to avoid type related warnings on all
14835 platforms.
14836 (get_child_debug_event): Print dwDebugEventCode as hex since
14837 that's how it's usually documented.
14838
736cd585
YQ
148392013-02-28 Yao Qi <yao@codesourcery.com>
14840
14841 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14842 pulongest.
14843
e1f58301
JW
148442013-02-27 Jiong Wang <jiwang@tilera.com>
14845
14846 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14847 (reg-tilegx32.c): New rule.
14848 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14849 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14850 different register info initializer according to elf class.
14851 (init_registers_tilgx32): New function. The tilegx32 register info
14852 initializer.
14853 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14854 (tile_store_gregset): Likewise.
14855
d171ca78
YQ
148562013-02-27 Yao Qi <yao@codesourcery.com>
14857
14858 * server.c (process_point_options): Print debug message when
14859 debug_threads is true.
14860
282bbdf3
YQ
148612013-02-26 Yao Qi <yao@codesourcery.com>
14862
14863 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14864
aca22551
PA
148652013-02-19 Pedro Alves <palves@redhat.com>
14866 Kai Tietz <ktietz@redhat.com>
14867
14868 PR gdb/15161
14869
14870 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14871 instead of strtoul to extract address from packet.
14872 (process_serial_event) <'z'>: Likewise.
14873
4f3cee1c
YQ
148742013-02-18 Yao Qi <yao@codesourcery.com>
14875
14876 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14877
8e1d55a3
PA
148782013-02-14 Pedro Alves <palves@redhat.com>
14879
14880 Plug memory leak.
14881
14882 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14883 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14884
458820da
PA
148852013-02-14 Pedro Alves <palves@redhat.com>
14886
14887 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14888
baea0dae
PA
148892013-02-14 Pedro Alves <palves@redhat.com>
14890
14891 * tracepoint.c (save_string): Delete.
14892 (add_tracepoint_action): Use savestring instead of save_string.
14893
0b1afbb3
PA
148942013-02-12 Pedro Alves <palves@redhat.com>
14895
14896 * linux-xtensa-low.c: Ditto.
14897 * xtensa-xtregs.c: Ditto.
14898
8a4ac37e
PA
148992013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14900
14901 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14902 thread_db.
14903
148de6bb
MS
149042013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14905
14906 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14907 aarch64_num_wp_regs and aarch64_num_bp_regs to
14908 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14909
55fac6e0
MS
149102013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14911
14912 * linux-aarch64-low.c (ps_get_thread_area): Replace
14913 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14914
176eb98c
MS
149152013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14916 Marcus Shawcroft <marcus.shawcroft@arm.com>
14917 Nigel Stephens <nigel.stephens@arm.com>
14918 Yufeng Zhang <yufeng.zhang@arm.com>
14919
14920 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14921 (aarch64.c, aarch64-without-fpu.c): New targets.
14922 * configure.srv (aarch64*-*-linux*): New.
14923 * linux-aarch64-low.c: New file.
14924
56f7af9c
MS
149252013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14926
43aaf8b6 14927 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14928 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14929 (dequeue_one_deferred_signal, linux_resume_one_thread)
14930 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14931 (linux_tracefork_grandchild, linux_test_for_tracefork)
14932 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14933 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14934 where the argument is 0.
14935
60f662b0
YQ
149362013-01-25 Yao Qi <yao@codesourcery.com>
14937
14938 * event-loop.c: Include "queue.h".
14939 (gdb_event_p): New typedef.
14940 (struct gdb_event) <next_event>: Remove.
14941 (event_queue): Change to QUEUE(gdb_event_p).
14942 (async_queue_event): Remove.
14943 (gdb_event_xfree): New.
14944 (initialize_event_loop): New.
14945 (process_event): Use API from QUEUE.
14946 (wait_for_event): Likewise.
14947 * server.c (main): Call initialize_event_loop.
14948 * server.h (initialize_event_loop): Declare.
14949
5ae4861a
YQ
149502013-01-18 Yao Qi <yao@codesourcery.com>
14951
14952 * ax.h (struct eval_agent_expr_context): New.
14953 (gdb_eval_agent_expr): Update declaration.
14954 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14955 TFRAME. Add new argument CTX.
14956 * server.h (struct eval_agent_expr_context): Declare.
14957 (agent_mem_read, agent_tsv_read): Update declaration.
14958 (agent_mem_read_string): Likewise.
14959 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14960 (add_traceframe_block): Add new argument TPOINT.
14961 Increase TPOINT->traceframe_usage.
14962 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14963 eval_tracepoint_agent_expr.
14964 (condition_true_at_tracepoint): Likewise.
14965 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14966 (agent_mem_read_string, agent_tsv_read): Likewise.
14967
85e00e85
YQ
149682013-01-16 Yao Qi <yao@codesourcery.com>
14969
14970 * linux-low.c (linux_resume_one_lwp): Don't check
14971 'lwp->bp_reinsert != 0'.
14972
4039cf45
JB
149732013-01-07 Joel Brobecker <brobecker@adacore.com>
14974 Pedro Alves <palves@redhat.com>
14975
14976 * lynx-low.c (ptrace_request_to_str): Define a temporary
14977 macro and use it to simplify this function's implementation.
14978
9044dee2
JB
149792013-01-07 Joel Brobecker <brobecker@adacore.com>
14980
14981 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14982 sets errno.
14983
e6352c8f
JB
149842013-01-07 Joel Brobecker <brobecker@adacore.com>
14985
14986 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14987
50681a27
JB
149882013-01-07 Joel Brobecker <brobecker@adacore.com>
14989
14990 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14991
3f6e77ef
JB
149922013-01-07 Joel Brobecker <brobecker@adacore.com>
14993
14994 * lynx-low.c (lynx_resume): Use the resume_info parameter
14995 to determine the ptid for the lynx_ptrace call, unless
14996 it is equal to minus_one_ptid, in which case we use the
14997 ptid of the current_inferior.
14998 (lynx_wait_1): After having received a thread create/exit
14999 event, resume the inferior's execution using the signaling
15000 thread's ptid, rather than the old ptid.
15001
7fda33ae
JB
150022013-01-07 Joel Brobecker <brobecker@adacore.com>
15003
15004 * lynx-low.c (lynx_resume): Delete variable ret.
15005
b9786c74
JB
150062013-01-01 Joel Brobecker <brobecker@adacore.com>
15007
15008 * gdbreplay.c (gdbreplay_version): Update copyright year.
15009 * server.c (gdbserver_version): Likewise.
15010
8b93d60f
JB
150112012-12-17 Joel Brobecker <brobecker@adacore.com>
15012
15013 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15014 new thread.
15015
037335a7
JB
150162012-12-17 Joel Brobecker <brobecker@adacore.com>
15017
15018 * lynx-low.c (ptrace_request_to_str): Add handling for
15019 PTRACE_GETTRACESIG.
15020
52d4cbd8
JB
150212012-12-17 Joel Brobecker <brobecker@adacore.com>
15022
15023 * lynx-low.c (lynx_attach): Delete variable new_process.
15024
ab8f6ca9
JB
150252012-12-17 Joel Brobecker <brobecker@adacore.com>
15026
15027 * lynx-low.c (lynx_create_inferior): Delete variable
15028 new_process.
15029
78cbc024
JB
150302012-12-17 Joel Brobecker <brobecker@adacore.com>
15031
15032 * lynx-low.c (ptrace_request_to_str): Do not handle
15033 PTRACE_GETTHREADLIST if this macro does not exist.
15034
14a00470
YQ
150352012-12-15 Yao Qi <yao@codesourcery.com>
15036
15037 * Makefile.in (OBS): Add notif.o.
15038 * notif.c, notif.h: New.
15039 * server.c: Include "notif.h".
15040 (struct vstop_notif) <next>: Remove.
15041 <base>: New field.
15042 (queue_stop_reply): Update.
15043 (push_event, send_next_stop_reply): Remove.
15044 (discard_queued_stop_replies): Update.
15045 (notif_stop): New variable.
15046 (handle_v_stopped): Remove.
15047 (handle_v_requests): Don't call handle_v_stopped. Call
15048 handle_ack_notif instead.
15049 (queue_stop_reply_callback): Call notif_event_enque instead
15050 of queue_stop_reply.
15051 (handle_status): Don't call send_next_stop_reply, call
15052 notif_write_event instead.
15053 (kill_inferior_callback): Likewise.
15054 (detach_or_kill_inferior_callback): Likewise.
15055 (main): Call initialize_notif.
15056 (process_serial_event): Call QUEUE_is_empty.
15057 (handle_target_event): Call notif_push instead of push event.
15058 * server.h (push_event): Remove declaration.
15059
61c125b9
TT
150602012-12-10 Tom Tromey <tromey@redhat.com>
15061
15062 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15063 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15064 macros.
15065 (.c.o): Rewrite.
15066 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15067 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15068 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15069 (amd64-linux-ipa.o, ax.o): Rewrite.
15070 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15071 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15072 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15073 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15074 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15075 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15076 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15077 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15078 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15079 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15080 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15081 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15082 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15083 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15084 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15085 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15086 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15087 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15088 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15089 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15090 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15091 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15092 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15093 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15094 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15095 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15096 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15097 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15098 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15099 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15100 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15101 (reg-tilegx.o): Remove.
15102 (all_object_files): New macro.
15103 Include .deps files.
15104 * aclocal.m4, configure: Rebuild.
15105 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15106 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15107 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15108
e90e9ad9
TT
151092012-12-05 Tom Tromey <tromey@redhat.com>
15110
15111 PR gdb/14917:
15112 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15113
02d403bf 151142012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15115
15116 * configure.ac: Check for linux/perf_event.h.
15117 * config.in: Regenerated.
15118 * configure: Regenerated.
15119
0270a750
PA
151202012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15121
15122 * hostio.c (handle_readlink): Decrease buffer size
15123 parameter passed to readlink by one byte.
15124
8c29b58e
YQ
151252012-11-26 Yao Qi <yao@codesourcery.com>
15126
15127 * configure.ac (build_warnings): Append '-Wempty-body'.
15128 * configure: Regenerated.
15129 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15130 body.
15131
8bdce1ff
PM
151322012-11-15 Pierre Muller <muller@sourceware.org>
15133
15134 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15135 * config.in: Regenerate.
15136 * configure: Regenerate.
15137 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15138 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15139 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15140 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15141 header.
15142 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15143 instead of <sys/wait.h> header.
15144 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15145
02d403bf 151462012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15147
15148 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15149 (various make rules): Remove -DGDBSERVER
15150
fbd5db48
YQ
151512012-11-09 Yao Qi <yao@codesourcery.com>
15152
15153 * spu-low.c (current_ptid): Move it to ..
15154 * gdbthread.h: ... here. New.
15155 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15156 * server.c (myresume, process_serial_event): Likewise.
15157 * thread-db.c (thread_db_find_new_threads): Likewise.
15158 * tracepoint.c (run_inferior_command): Likewise.
15159
b3dc46ff
AB
151602012-10-01 Andrew Burgess <aburgess@broadcom.com>
15161
15162 * server.c (handle_search_memory_1): Include access length in
15163 warning message.
15164
07c04788
HPN
151652012-09-05 Michael Brandt <michael.brandt@axis.com>
15166
15167 * linux-crisv32-low.c: Fix compile errors.
15168
918d227b
YQ
151692012-09-04 Yao Qi <yao@codesourcery.com>
15170
15171 * tracepoint.c (cmd_qtsv): Adjust debug message.
15172 Don't check CUR_TPOINT.
15173
18c1b81a
YQ
151742012-08-28 Yao Qi <yao@codesourcery.com>
15175
15176 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15177 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15178 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15179 Remove declarations of xmalloc, xreallloc, xstrdup and
15180 freeargv.
15181 * Makefile.in (libiberty_h): New.
15182 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15183 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15184
dc82f37b
YQ
151852012-08-23 Yao Qi <yao@codesourcery.com>
15186
15187 * server.h: Remove declaration of 'xsnprintf'.
15188
406b1477
KS
151892012-08-22 Keith Seitz <keiths@redhat.com>
15190
15191 * server.h: Include build-gnulib-gbserver/config.h.
15192 * gdbreplay.c: Likewise.
15193
e6712ff1
DE
151942012-08-08 Doug Evans <dje@google.com>
15195
15196 * Makefile.in (SFILES): Add gdb_vecs.c.
15197 (OBS): Add gdb_vecs.o.
15198 (gdb_vecs_h, host_defs_h): New variables.
15199 (thread-db.o): Add $(gdb_vecs_h) dependency.
15200 (gdb_vecs.o): New rule.
15201 * thread-db.c: #include "gdb_vecs.h".
15202 (thread_db_load_search): Use a vector to iterate over path elements.
15203 Handle text appearing after "$pdir".
15204
15205 * configure.ac: Add check for strstr.
15206 * config.in: Regenerate.
15207 * configure: Regenerate.
15208
7c3270ae
UW
152092012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15210
15211 * hostio.c (handle_pread): If pread fails, fall back to attempting
15212 lseek/read.
15213 (handle_pwrite): Likewise for pwrite.
15214
b62e2b27
UW
152152012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15216
15217 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15218 between unsupported TYPE and unimplementable ADDR/LEN combination.
15219 (arm_insert_point): Act on new return value.
15220
78a99e91
PA
152212012-07-31 Pedro Alves <palves@redhat.com>
15222
15223 * server.c (process_point_options): Only skip tokens if we find
15224 one that is unrecognized. Don't treat 'X' specially while
15225 skipping unrecognized tokens.
15226
fcf303ab
UW
152272012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15228
15229 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15230 to 4-byte-align HW breakpoint addresses for Thumb.
15231
7255706c
YQ
152322012-07-27 Yao Qi <yao@codesourcery.com>
15233
15234 PR remote/14161.
15235
15236 * server.h: Declare gdb_agent_about_to_close.
15237 * target.c (kill_inferior): Include "agent.h".
15238 New. Send command 'kill'.
15239 * target.h (kill_inferior): Removed macro.
15240 * tracepoint.c (gdb_agent_about_to_close): New.
15241 (gdb_agent_helper_thread): Handle command 'close'.
15242 Wait endlessly until the inferior stops.
15243 Install gdb_agent_remove_socket to atexit hook.
15244 (agent_socket_name): New static variable.
15245 (gdb_agent_socket_init): Replace local variable 'name' with
15246 'agent_socket_name'.
15247 (gdb_agent_remove_socket): New.
15248
5a3f286f
YQ
152492012-07-27 Yao Qi <yao@codesourcery.com>
15250
15251 * server.c (process_point_options): Stop at 'X' when parsing.
15252
961bd387
ME
152532012-07-19 Michael Eager <eager@eagercon.com>
15254
a261b8f5 15255 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15256 to hw_execute.
15257 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15258 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15259 hardware breakpoint.
15260
aa7c7447
JK
152612012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15262
15263 * gdbserver/linux-low.c (initialize_low): Call
15264 linux_ptrace_init_warnings.
15265
7f216e7c
DE
152662012-07-02 Doug Evans <dje@google.com>
15267
15268 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15269 pointer to int.
15270
d3ce09f5
SS
152712012-07-02 Stan Shebs <stan@codesourcery.com>
15272
15273 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15274 (ax.o): Add it to build rule.
15275 (ax-ipa.o): Ditto.
15276 (OBS): Add format.o.
15277 (IPA_OBS): Add format.o.
15278 * server.c (handle_query): Claim support for breakpoint commands.
15279 (process_point_options): Add command case.
15280 (process_serial_event): Leave running if there are printfs in
15281 effect.
15282 * mem-break.h (any_persistent_commands): Declare.
15283 (add_breakpoint_commands): Declare.
15284 (gdb_no_commands_at_breakpoint): Declare.
15285 (run_breakpoint_commands): Declare.
15286 * mem-break.c (struct point_command_list): New struct.
15287 (struct breakpoint): New field command_list.
15288 (any_persistent_commands): New function.
15289 (add_commands_to_breakpoint): New function.
15290 (add_breakpoint_commands): New function.
15291 (gdb_no_commands_at_breakpoint): New function.
15292 (run_breakpoint_commands): New function.
15293 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15294 locally.
15295 * ax.c: Include format.h.
15296 (ax_printf): New function.
15297 (gdb_eval_agent_expr): Add printf opcode.
15298
2f8f6aed
YQ
152992012-06-13 Yao Qi <yao@codesourcery.com>
15300
15301 * server.c (start_inferior): Remove duplicated writes to fields
15302 'last_resume_kind' and 'last_status' of 'current_inferior'.
15303
0c9070b3
YQ
153042012-06-12 Yao Qi <yao@codesourcery.com>
15305 Pedro Alves <palves@redhat.com>
15306
15307 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15308 comment.
15309 * server.c (handle_v_cont): Extend comment.
15310
c52daf70
YQ
153112012-06-11 Yao Qi <yao@codesourcery.com>
15312
15313 * linux-low.c (linux_attach): Add 'static'.
15314
d38bbb0a
YQ
153152012-06-06 Yao Qi <yao@codesourcery.com>
15316
15317 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15318
89dc0afd
JK
153192012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15320
15321 Fix gcc -flto compilation warning.
15322 * server.c (main): Make variable multi_mode and attach volatile.
15323
75f62ce7
TJB
153242012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15325
15326 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15327 if the platform doesn't know about it.
15328
65f479b6
PA
153292012-05-30 Jeff Kenton <jkenton@tilera.com>
15330
15331 * Makefile.in (SFILES): Add linux-tile-low.c.
15332 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15333 * configure.srv: Handle tilegx-*-linux*.
15334 * linux-tile-low.c: New file.
15335
0c5bf5a9
JK
153362012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15337
15338 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15339
a493e3e2
PA
153402012-05-24 Pedro Alves <palves@redhat.com>
15341
15342 PR gdb/7205
15343
43aaf8b6 15344 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15345
2ea28649
PA
153462012-05-24 Pedro Alves <palves@redhat.com>
15347
15348 PR gdb/7205
15349
15350 Replace target_signal with gdb_signal throughout.
15351
8d409d16
MR
153522012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15353
15354 * linux-low.c (linux_store_registers): Avoid the copying sequence
15355 when no data has been retrieved by ptrace.
15356
23512c01
MGD
153572012-05-22 Will Deacon <will.deacon@arm.com>
15358
15359 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15360 Include asm/ptrace.h.
15361 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15362 already defined.
15363
4934b29e
MR
153642012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15365
15366 * linux-low.c (linux_store_registers): Don't re-retrieve data
15367 with ptrace that has already been obtained from /proc. Always
15368 copy any data retrieved with ptrace to the buffer supplied.
15369
bde24c0a
PA
153702012-05-11 Yao Qi <yao@codesourcery.com>
15371 Pedro Alves <palves@redhat.com>
15372
15373 * linux-low.c (enum stopping_threads_kind): New.
15374 (stopping_threads): Change type to `enum stopping_threads_kind'.
15375 (handle_extended_wait): If stopping and suspending threads, leave
15376 the new_lwp suspended too.
15377 (linux_wait_for_event): Adjust.
15378 (stop_all_lwps): Set `stopping_threads' to
15379 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15380 whether we're suspending threads or just stopping them. Assert no
15381 recursion happens.
15382
623b6bdf
YQ
153832012-04-29 Yao Qi <yao@codesourcery.com>
15384
15385 * server.h: Move some code to ...
15386 * gdbthread.h: ... here. New.
15387 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15388 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15389 (nto-low.o, win32-low.o): Likewise.
15390 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15391 * regcache.c, remote-utils.c, server.c: Likewise.
15392 * target.c, tracepoint.c, win32-low.c: Likewise.
15393
f15f9948
TJB
153942012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15395
15396 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15397 (PTRACE_ARG4_TYPE): Likewise.
15398 (PTRACE_XFER_TYPE): Likewise.
15399 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15400 ptrace to PTRACE_ARG3_TYPE.
15401 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15402 (PTRACE_ARG4_TYPE): Likewise.
15403 (PTRACE_XFER_TYPE): Likewise.
15404 (linux_detach_one_lwp): Cast fourth argument of
15405 ptrace to long then PTRACE_ARG4_TYPE.
15406 (regsets_fetch_inferior_registers): Cast third argument of
15407 ptrace to long then PTRACE_ARG3_TYPE.
15408 (regsets_store_inferior_registers): Likewise.
15409
38ea300a
PA
154102012-04-20 Pedro Alves <palves@redhat.com>
15411
15412 * configure: Regenerate.
15413
c971b7fa
PA
154142012-04-19 Pedro Alves <palves@redhat.com>
15415
43aaf8b6 15416 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15417 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15418 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15419 (all, install-only, uninstall, clean-info, all-lib, clean): No
15420 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15421 (maintainer-clean realclean distclean): Use subdir_do.
15422 (subdir_do): New.
15423 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15424 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15425 * acinclude.m4: Include acx_configure_dir.m4.
15426 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15427 calls. Call AC_PROG_RANLIB. Configure gnulib using
15428 ACX_CONFIGURE_DIR.
15429 (GNULIB): New.
15430 (GNULIB_STDINT_H): Adjust.
15431 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15432 * gdbreplay.c: Include build-gnulib/config.h.
15433 * server.h: Likewise.
15434 * aclocal.m4: Regenerate.
15435 * config.in: Regenerate.
15436 * configure: Regenerate.
c971b7fa 15437
809277f8
PA
154382012-04-19 Pedro Alves <palves@redhat.com>
15439
15440 * Makefile.in (LIBGNU, INCGNU): Adjust.
15441 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15442 (all, install-only, uninstall, clean-info, all-lib, clean)
15443 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15444 * configure.ac: Adjust AC_OUTPUT output.
15445 * aclocal.m4: Regenerate.
15446 * configure: Regenerate.
15447
fd9bb8b8
PA
154482012-04-19 Pedro Alves <palves@redhat.com>
15449
15450 * Makefile.in (generated_files): New.
15451 (server_h): Remove the explicit dependency on config.h, and depend
15452 on $generated_files.
15453
1c298c66
PA
154542012-04-19 Pedro Alves <palves@redhat.com>
15455
15456 * Makefile.in (INCGNU): Add -Ignulib.
15457
57c4b50b
PA
154582012-04-19 Pedro Alves <palves@redhat.com>
15459
15460 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15461 (INCGNU): ... this, and spell out -I here.
15462 (GNULIB_LIB): Rename to ...
15463 (LIBGNU): ... this.
15464 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15465
1030e047
PA
154662012-04-19 Pedro Alves <palves@redhat.com>
15467
15468 * config.in: Regenerate.
15469
447d4319
PA
154702012-04-19 Pedro Alves <palves@redhat.com>
15471
15472 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15473 * server.h (memmem): Remove declaration.
15474 * config.in: Regenerate.
15475 * configure: Regenerate.
15476
aad9eab9
YQ
154772012-04-19 Yao Qi <yao@codesourcery.com>
15478
15479 * Makefile.in (SFILES): Add common/vec.c.
15480 (OBS): Add vec.o.
15481 (vec.o): New rule.
15482
3e10640f
YQ
154832012-04-19 Yao Qi <yao@codesourcery.com>
15484
15485 * remote-utils.c (prepare_resume_reply): Replace with macro
15486 target_core_of_thread.
15487 * server.c (handle_qxfer_threads_proper): Likewise.
15488 * target.h (traget_core_of_thread): New macro.
15489
71622373
PA
154902012-04-18 Pedro Alves <palves@redhat.com>
15491
15492 * aclocal.m4: Regenerate.
15493 * configure: Regenerate.
15494
80d26939
YQ
154952012-04-16 Yao Qi <yao@codesourcery.com>
15496
15497 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15498 duplicated on address.
15499
42476b70
YQ
155002012-04-16 Yao Qi <yao@codesourcery.com>
15501
15502 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15503 (struct tracepoint_action_ops) <send>: New field.
15504 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15505 (agent_expr_send, x_tracepoint_action_send): New.
15506 (l_tracepoint_action_send): New.
15507 (cmd_qtdp): Download and install tracepoint
15508 according to `use_agent'.
15509 (run_inferior_command): Add one more parameter `len'.
15510 Update callers.
15511 (tracepoint_send_agent): New.
15512 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15513
7bc83639
YQ
155142012-04-16 Yao Qi <yao@codesourcery.com>
15515
15516 * tracepoint.c (download_tracepoints): Moved to ...
15517 (cmd_qtstart): ... here.
15518
5f18041e
YQ
155192012-04-14 Yao Qi <yao@codesourcery.com>
15520
15521 * tracepoint.c: Include inttypes.h.
15522 (struct collect_memory_action): Use sized types.
15523 (struct tracepoint): Likewise.
15524 (cmd_qtdp, stop_tracing): Update print specifiers.
15525 (cmd_qtp, response_tracepoint): Likewise.
15526 (collect_data_at_tracepoint): Likewise.
15527 (collect_data_at_step): Likewise.
15528
55a8c076
YQ
155292012-04-14 Yao Qi <yao@codesourcery.com>
15530
15531 Import gnulib module inttypes.
15532 * aclocal.m4, config.in, configure: Regenerated.
15533
dc750257
YQ
155342012-04-14 Yao Qi <yao@codesourcery.com>
15535
15536 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15537 Makefile and config.status at last.
15538
0ab5faf9
YQ
155392012-04-13 Yao Qi <yao@codesourcery.com>
15540
15541 * tracepoint.c: Include stdint.h unconditionally.
15542
18f5fd81
TJB
155432012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15544
15545 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15546 on BFD_HAVE_SYS_PROCFS_TYPE.
15547 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15548 * configure: Regenerate.
15549 * config.in: Likewise.
15550
4d47af5c
L
155512012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15552
15553 * Makefile.in (clean): Also remove x32.c x32-linux.c
15554 x32-avx.c x32-avx-linux.c.
15555 (x32.o): New target.
15556 (x32.c): Likewise.
15557 (x32-linux.o): Likewise.
15558 (x32-linux.c): Likewise.
15559 (x32-avx.o): Likewise.
15560 (x32-avx.c): Likewise.
15561 (x32-avx-linux.o): Likewise.
15562 (x32-avx-linux.c): Likewise.
15563
15564 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15565 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15566 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15567 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15568 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15569 i386/x32-avx-linux.xml.
15570
15571 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15572 (init_registers_x32_avx_linux): Likwise.
15573 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15574 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15575
ecedbe58
PA
155762012-04-13 Pedro Alves <palves@redhat.com>
15577
15578 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15579 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15580 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15581 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15582 the sub-make.
15583
c92b5177
L
155842012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15585
15586 * linux-x86-low.c (compat_x32_clock_t): New.
15587 (compat_x32_siginfo_t): Likewise.
15588 (compat_x32_siginfo_from_siginfo): Likewise.
15589 (siginfo_from_compat_x32_siginfo): Likewise.
15590 (linux_is_elf64): Likewise.
15591 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15592 and siginfo_from_compat_x32_siginfo for x32.
15593 (x86_arch_setup): Set linux_is_elf64.
15594
214d508e
L
155952012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15596
15597 PR gdb/13969
15598 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15599 e_machine field.
15600 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15601 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15602 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15603 compatible with process.
15604
c9a1864a
YQ
156052012-04-12 Yao Qi <yao@codesourcery.com>
15606
15607 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15608 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15609 (install-only, install-info, clean): Handle sub dir gnulib.
15610 (all-lib, am--refresh): New targets.
15611 (memmem.o): Remove target.
15612 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15613 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15614 (AC_REPLACE_FUNCS): Remove memmem.
15615 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15616 (AC_OUTPUT): Generate Makefile in gnulib/.
15617 * aclocal.m4, config.in, configure: Regenerated.
15618
367ba2c2
MR
156192012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15620
15621 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15622
9d236627
PA
156232012-04-05 Pedro Alves <palves@redhat.com>
15624
15625 -Werror=strict-aliasing
15626
15627 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15628 pointer.
15629
111217b3
PA
156302012-04-04 Pedro Alves <palves@redhat.com>
15631
15632 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15633 (sparc_store_gregset_from_stack, sparc_store_gregset)
15634 (sparc_breakpoint_at): Fix formatting.
15635
8365dcf5
TJB
156362012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15637
15638 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15639 are available.
15640 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15641 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15642 * config.in: Regenerate.
15643 * configure: Likewise.
15644
689cc2ae
PA
156452012-03-29 Pedro Alves <palves@redhat.com>
15646
15647 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15648 Correct ptrace arguments.
15649
c14dfd32
PA
156502012-03-28 Pedro Alves <palves@redhat.com>
15651
15652 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15653 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15654 (IA64_FR1_REGNUM): New defines.
15655 (ia64_fetch_register): New.
15656 (the_low_target): Install it.
15657 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15658 field.
15659 * linux-low.c (linux_fetch_registers): Try the
15660 the_low_target.fetch_register hook first.
15661
15662 * linux-arm-low.c (the_low_target): Adjust.
15663 * linux-bfin-low.c (the_low_target): Adjust.
15664 * linux-cris-low.c (the_low_target): Adjust.
15665 * linux-crisv32-low.c (the_low_target): Adjust.
15666 * linux-m32r-low.c (the_low_target): Adjust.
15667 * linux-m68k-low.c (the_low_target): Adjust.
15668 * linux-mips-low.c (the_low_target): Adjust.
15669 * linux-ppc-low.c (the_low_target): Adjust.
15670 * linux-s390-low.c (the_low_target): Adjust.
15671 * linux-sh-low.c (the_low_target): Adjust.
15672 * linux-sparc-low.c (the_low_target): Adjust.
15673 * linux-tic6x-low.c (the_low_target): Adjust.
15674 * linux-x86-low.c (the_low_target): Adjust.
15675 * linux-xtensa-low.c (the_low_target): Adjust.
15676
63c88e13
PA
156772012-03-26 Pedro Alves <palves@redhat.com>
15678
15679 * server.c (handle_qxfer_libraries): Don't bail early if
15680 the_target->qxfer_libraries_svr4 is not NULL.
15681
fb723180
PA
156822012-03-26 Pedro Alves <palves@redhat.com>
15683
15684 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15685
0afae3cf
PA
156862012-03-23 Pedro Alves <palves@redhat.com>
15687
15688 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15689 "library-list-svr4" element's start tag when the the DSO list is
15690 empty.
15691
485f1ee4
PA
156922012-03-23 Pedro Alves <palves@redhat.com>
15693
15694 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15695 a variable whose type size is the same as the inferior's pointer
15696 size.
15697
a5362b9a
TS
156982012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15699
15700 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15701 struct siginfo.
15702 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15703 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15704 * linux-low.h: Include <signal.h>.
15705 (struct siginfo): Remove forward declaration.
15706 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15707 struct siginfo.
15708
d226c142
MF
157092012-03-21 Mike Frysinger <vapier@gentoo.org>
15710
15711 * .gitignore: Ignore more files.
15712
122f36ef
PA
157132012-03-19 Pedro Alves <palves@redhat.com>
15714 Jan Kratochvil <jan.kratochvil@redhat.com>
15715
15716 * server.c (cont_thread, general_thread): Add describing comments.
15717 (start_inferior): Clear `cont_thread'.
15718 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15719 of a process.
15720
fc3e5175
YQ
157212012-03-15 Yao Qi <yao@codesourcery.com>
15722
15723 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15724 handling to ...
15725 (cmd_qtdp): ... here.
15726
8d0d92cd
YQ
157272012-03-15 Yao Qi <yao@codesourcery.com>
15728
15729 * tracepoint.c (struct tracepoint_action_ops): New.
15730 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15731 (m_tracepoint_action_download): New.
15732 (r_tracepoint_action_download): New.
15733 (x_tracepoint_action_download): New.
15734 (l_tracepoint_action_download): New.
15735 (add_tracepoint_action): Install `action->ops' according type.
15736 (download_tracepoint_1): Move code `download' function pointer
15737 of various tracepoint_action_ops.
15738
87b0bb13
JK
157392012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15740
15741 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15742 linux_ptrace_attach_warnings.
15743
5f572dec
JK
157442012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15745
15746 * Makefile.in (linux-ptrace.o): New.
15747 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15748 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15749 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15750 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15751 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15752 of these targets.
15753 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15754
f4647387
YQ
157552012-03-08 Yao Qi <yao@codesourcery.com>
15756 Pedro Alves <palves@redhat.com>
15757
15758 Fix PR server/13392.
15759 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15760 offset of JMP insn.
15761 * tracepoint.c (remove_tracepoint): New.
15762 (cmd_qtdp): Call remove_tracepoint when failed to install.
15763
9b224c5e
PA
157642012-03-07 Pedro Alves <palves@redhat.com>
15765
15766 * linux-low.c (get_detach_signal): New.
15767 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15768 Pass on pending signals to PTRACE_DETACH. Check the result of the
15769 ptrace call.
15770 * server.c (program_signals, program_signals_p): New.
15771 (handle_general_set): Handle QProgramSignals.
15772 * server.h (program_signals, program_signals_p): Declare.
15773
e237a7e2
JK
157742012-03-05 Pedro Alves <palves@redhat.com>
15775 Jan Kratochvil <jan.kratochvil@redhat.com>
15776
15777 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15778 New comment why.
15779
5808517f
YQ
157802012-03-03 Yao Qi <yao@codesourcery.com>
15781
15782 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15783 agent_look_up_symbols.
15784
58b4daa5
YQ
157852012-03-03 Yao Qi <yao@codesourcery.com>
15786
15787 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15788 (linux-x86-low.o): Likewise.
15789 * server.h: Remove in_process_agent_loaded.
15790 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15791 common/agent.c.
15792 Update callers.
15793
8ffcbaaf
YQ
157942012-03-03 Yao Qi <yao@codesourcery.com>
15795
15796 * tracepoint.c (gdb_agent_capability): New global.
15797 (in_process_agent_loaded_ust): Renamed to
15798 `in_process_agent_supports_ust'.
15799 Update callers.
15800 (in_process_agent_supports_ust): Call agent_capability_check.
15801 (clear_installed_tracepoints): Assert that agent supports
15802 agent.
15803
d1feda86
YQ
158042012-03-03 Yao Qi <yao@codesourcery.com>
15805
15806 * linux-low.c (linux_supports_agent): New.
15807 (linux_target_ops): Initialize field `supports_agent' with
15808 linux_supports_agent.
15809 * target.h (struct target_ops) <supports_agent>: New.
15810 (target_supports_agent): New macro.
15811 * server.c (handle_general_set): Handle packet 'QAgent'.
15812 (handle_query): Send `QAgent+'.
15813 * Makefile.in (server.o): Depends on agent.h.
15814
2fa291ac
YQ
158152012-03-03 Yao Qi <yao@codesourcery.com>
15816
15817 * Makefile.in (OBS): Add agent.o.
15818 Add new rule for agent.o.
15819 Track dependence of tracepoint.c on agent.h.
15820 * tracepoint.c (run_inferior_command_1):
15821 (run_inferior_command): Call agent_run_command.
15822 (gdb_ust_connect_sync_socket): Deleted. Move it to
15823 common/agent.c.
15824 (resume_thread, stop_thread): Likewise.
15825 (gdb_ust_socket_init): Renamed to ...
15826 (gdb_agent_socket_init): ... New.
15827 (gdb_ust_thread): Renamed to ...
15828 (gdb_agent_helper_thread): ... New.
15829 (gdb_ust_init): Move some code to ...
15830 (gdb_agent_init): ... here. New.
15831 [HAVE_UST]: Call gdb_ust_init.
15832 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15833 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15834 * config.in, configure: Regenerated.
15835
05044653
PA
158362012-03-02 Pedro Alves <palves@redhat.com>
15837
15838 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15839 * linux-low.c (struct simple_pid_list): New.
15840 (stopped_pids): New a struct simple_pid_list pointer.
15841 (add_to_pid_list, pull_pid_from_list): New.
15842 (handle_extended_wait): Don't assume the first signal new children
15843 report is SIGSTOP. Adjust call to pull_pid_from_list.
15844 (linux_wait_for_lwp): Adjust.
15845
8d00225b
YQ
158462012-03-02 Yao Qi <yao@codesourcery.com>
15847
15848 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15849 debug log.
15850
19560ba5
YQ
158512012-03-02 Yao Qi <yao@codesourcery.com>
15852
15853 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15854 `stop_pc' and `tpoint'. Update caller.
15855
1faeff08
MR
158562012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15857
15858 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15859 * linux-low.c (use_linux_regsets): New macro.
15860 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15861 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15862 (linux_register_in_regsets): New function.
15863 (usr_fetch_inferior_registers): Skip registers covered by
15864 regsets.
15865 (usr_store_inferior_registers): Likewise.
15866 (usr_fetch_inferior_registers): New macro.
15867 (usr_store_inferior_registers): Likewise.
15868 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15869 (linux_store_registers): Likewise.
15870 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15871 prototype.
15872 (init_registers_mips64_dsp_linux): Likewise.
15873 (init_registers_mips_linux): New macro.
15874 (init_registers_mips_dsp_linux): Likewise.
15875 (mips_dsp_num_regs): Likewise.
15876 (DSP_BASE, DSP_CONTROL): New fallback macros.
15877 (mips_base_regs): New macro.
15878 (mips_regmap): Use it. Fix the size.
15879 (mips_dsp_regmap): New variable.
15880 (mips_dsp_regset_bitmap): Likewise.
15881 (mips_arch_setup): New function.
15882 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15883 than mips_regmap.
15884 (mips_cannot_store_register): Likewise.
15885 (the_low_target): Update .arch_setup, .num_regs and .regmap
15886 initializers. Add .regset_bitmap initializer.
15887 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15888 initializer.
15889 * linux-bfin-low.c (the_low_target): Likewise.
15890 * linux-cris-low.c (the_low_target): Likewise.
15891 * linux-crisv32-low.c (the_low_target): Likewise.
15892 * linux-ia64-low.c (the_low_target): Likewise.
15893 * linux-m32r-low.c (the_low_target): Likewise.
15894 * linux-m68k-low.c (the_low_target): Likewise.
15895 * linux-ppc-low.c (the_low_target): Likewise.
15896 * linux-s390-low.c (the_low_target): Likewise.
15897 * linux-sh-low.c (the_low_target): Likewise.
15898 * linux-sparc-low.c (the_low_target): Likewise.
15899 * linux-tic6x-low.c (the_low_target): Likewise.
15900 * linux-x86-low.c (the_low_target): Likewise.
15901 * linux-xtensa-low.c (the_low_target): Likewise.
15902 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15903 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15904 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15905 srv_xmlfiles.
15906 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15907 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15908
c03e6ccc
YQ
159092012-02-29 Yao Qi <yao@codesourcery.com>
15910 Pedro Alves <palves@redhat.com>
15911
15912 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15913 `step_over_finished' is true.
15914
644cebc9
PA
159152012-02-27 Pedro Alves <palves@redhat.com>
15916
15917 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15918 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15919
c14d7ab2
PA
159202012-02-27 Pedro Alves <palves@redhat.com>
15921
15922 PR server/9684
15923 * linux-low.c (pid_is_stopped): New.
15924 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15925
412c89dd
LM
159262012-02-25 Luis Machado <lgustavo@codesourcery.com>
15927
15928 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15929 of conditions.
15930
b745defe
MR
159312012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15932
15933 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15934
9f3a5c85
LM
159352012-02-24 Luis Machado <lgustavo@codesourcery>
15936
15937 * server.c (handle_query): Advertise support for target-side
15938 breakpoint condition evaluation.
15939 (process_point_options): New function.
15940 (process_serial_event): When inserting a breakpoint, check for
15941 a target-side condition that should be evaluated.
15942
15943 * mem-break.c: Include regcache.h and ax.h.
15944 (point_cond_list_t): New data structure.
15945 (breakpoint) <cond_list>: New field.
15946 (find_gdb_breakpoint_at): Make non-static.
15947 (delete_gdb_breakpoint_at): Clear any target-side
15948 conditions.
15949 (clear_gdb_breakpoint_conditions): New function.
15950 (add_condition_to_breakpoint): Likewise.
15951 (add_breakpoint_condition): Likewise.
15952 (gdb_condition_true_at_breakpoint): Likewise.
15953 (gdb_breakpoint_here): Return result directly instead
15954 of going through a local variable.
15955
15956 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15957 (clear_gdb_breakpoint_conditions): Likewise.
15958 (add_breakpoint_condition): Likewise.
15959 (gdb_condition_true_at_breakpoint): Likewise.
15960
15961 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15962 (need_step_over_p): Take target-side breakpoint condition into
15963 consideration.
15964
5e1dc496
LM
159652012-02-24 Luis Machado <lgustavo@codesourcery>
15966
15967 * server.h: Include tracepoint.h.
15968 (agent_mem_read, agent_get_trace_state_variable_value,
15969 agent_set_trace_state_variable_value,
15970 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15971 get_set_tsv_func_addr): New prototypes.
15972
15973 * ax.h: New include file.
15974 * ax.c: New source file.
15975
15976 * tracepoint.c: Include ax.h.
15977 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15978 agent_expr, eval_result_type): Move to ax.h.
15979 (parse_agent_expr): Rename to ...
15980 (gdb_parse_agent_expr): ... this, make it non-static and move
15981 to ax.h.
15982 (unparse_agent_expr) Rename to ...
15983 (gdb_unparse_agent_expr): ... this, make it non-static and move
15984 to ax.h.
15985 (eval_agent_expr): Rename to ...
15986 (eval_tracepoint_agent_expr): ... this.
15987 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15988 forward declarations.
15989 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15990 (agent_get_trace_state_variable_value): New function.
15991 (agent_set_trace_state_variable_value): New function.
15992 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15993 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15994 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15995 (condition_true_at_tracepoint): Likewise.
15996 (parse_agent_expr): Rename to ...
15997 (gdb_parse_agent_expr): ... this and move to ax.c.
15998 (unparse_agent_expr): Rename to ...
15999 (gdb_unparse_agent_expr): ... this and move to ax.c.
16000 (gdb_agent_op_name): Move to ax.c.
16001 (eval_agent_expr): Rename to ...
16002 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16003 and move to ax.c.
16004 (eval_tracepoint_agent_expr): New function.
16005 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16006 non-static.
5e1dc496
LM
16007 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16008 ax.c.
16009 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16010 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16011 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16012 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16013 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16014 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16015 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16016 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16017 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16018 (compile_bytecodes): Remove forward declaration.
16019 (is_goto_target): Move to ax.c.
16020 (compile_bytecodes): Move to ax.c and call
16021 agent_get_trace_state_variable_value (...) and
16022 agent_set_trace_state_variable_value (...).
16023
16024 * Makefile.in: Update ax.c and IPA dependencies.
16025
277e4e52
PA
160262012-02-24 Pedro Alves <palves@redhat.com>
16027
16028 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16029 (cmd_bigqtbuffer_circular): ... this. Only handle
16030 'QTBuffer:circular:'.
16031 (handle_tracepoint_general_set): Adjust.
16032
bf4c19f7
YQ
160332012-02-16 Yao Qi <yao@codesourcery.com>
16034
16035 * inferiors.c: Move code to ...
16036 * dll.c: .... here. New.
16037 * server.h: Declare clear_dlls.
16038 * Makefile.in (SFILES): Add dll.c.
16039 (OBS): Add dll.o
16040 (dll.o): New rule.
16041
d73f2619
YQ
160422012-02-11 Yao Qi <yao@codesourcery.com>
16043
16044 * server.c: (handle_monitor_command): Add a new parameter
16045 `own_buf'.
16046 (handle_query): Update caller.
16047
f8255c2a
JB
160482012-02-09 Joel Brobecker <brobecker@adacore.com>
16049
16050 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16051 * configure, config.in: Regenerate.
16052 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16053 is not defined.
16054
da84f473
PA
160552012-02-02 Pedro Alves <palves@redhat.com>
16056
16057 Try SIGKILL first, then PTRACE_KILL.
16058 * linux-low.c (linux_kill_one_lwp): New.
16059 (linux_kill_one_lwp): Rename to ...
16060 (kill_one_lwp_callback): ... this. Use the new
16061 linux_kill_one_lwp.
16062
e886a173
PA
160632012-02-02 Pedro Alves <palves@redhat.com>
16064
16065 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16066 inferior.
16067
be07f1a2
PA
160682012-01-27 Pedro Alves <palves@redhat.com>
16069
16070 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16071 (elf_64_file_p): Make static.
16072 (linux_pid_exe_is_elf_64_file): New.
16073 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16074 Delete declarations.
16075 (linux_pid_exe_is_elf_64_file): Declare.
16076 * linux-x86-low.c (x86_arch_setup): Use
16077 linux_pid_exe_is_elf_64_file.
16078
d8301ad1
JK
160792012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16080
16081 * linux-low.c (linux_wait_for_event_1): Rename to ...
16082 (linux_wait_for_event): ... here and merge it with former
16083 linux_wait_for_event - new variable wait_ptid, use it.
16084 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16085
01b17894
PA
160862012-01-23 Pedro Alves <palves@redhat.com>
16087
16088 * server.c (main): Avoid yet another case of infinite loop while
16089 detaching/killing after a longjmp.
16090
e825046f
JK
160912012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16092
16093 Code cleanup.
16094 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16095
b9e7b9c3
UW
160962012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16097
16098 * hostio.c (handle_readlink): New function.
16099 (handle_vFile): Call it to handle "vFile:readlink" packets.
16100
901f9912
UW
161012012-01-20 Pedro Alves <palves@redhat.com>
16102 Ulrich Weigand <ulrich.weigand@linaro.org>
16103
16104 * server.c (handle_v_requests): Only support vAttach and vRun to
16105 start multiple processes when in extended protocol mode.
16106
fc1ab1a0
PA
161072012-01-17 Pedro Alves <palves@redhat.com>
16108
16109 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16110 memalign plus mprotect to allocate the scratch buffer.
16111
7d5d4e98
PA
161122012-01-13 Pedro Alves <palves@redhat.com>
16113
16114 * server.c (attach_inferior): Clear `cont_thread'.
16115
f128d5e9
PA
161162012-01-13 Pedro Alves <palves@redhat.com>
16117
16118 * server.c (main): Avoid infinite loop while detaching/killing
16119 after a longjmp.
16120
06db92f0
DE
161212012-01-09 Doug Evans <dje@google.com>
16122
16123 * server.c (start_inferior): Set last_ptid in --wrapper case.
16124
32d92999
YQ
161252012-01-06 Yao Qi <yao@codesourcery.com>
16126
16127 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16128 defined.
16129 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16130
5e0a92a9
YQ
161312012-01-04 Yao Qi <yao@codesourcery.com>
16132
16133 * tracepoint.c (cmd_qtdp): Print debug message
16134 for static tracepoint.
16135
ae639e8c
YQ
161362012-01-04 Yao Qi <yao@codesourcery.com>
16137
16138 * tracepoint.c (trace_vdebug): Differentiate debug message
16139 between gdbserver and IPA.
16140
f72429c5
YQ
161412012-01-03 Yao Qi <yao@codesourcery.com>
16142
16143 * tracepoint.c (tracepoint_was_hit): Don't collect for
16144 static tracepoint.
16145
12c3e59c
JB
161462012-01-02 Joel Brobecker <brobecker@adacore.com>
16147
16148 * terminal.h: Reformat copyright header.
16149
67827812
JB
161502012-01-02 Joel Brobecker <brobecker@adacore.com>
16151
16152 * server.c (gdbserver_version): Update copyright year.
16153 * gdbreplay.c (gdbreplay_version): Likewise.
16154
3e52c33d
JK
161552011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16156
16157 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16158
16159 Revert:
16160 2011-12-18 Hui Zhu <teawater@gmail.com>
16161 * linux-low.c (linux_create_inferior): Save return value to ret.
16162
66f1260e
HZ
161632011-12-18 Hui Zhu <teawater@gmail.com>
16164
16165 * linux-low.c (linux_create_inferior): Save return value to ret.
16166
e77616d7
DE
161672011-12-16 Doug Evans <dje@google.com>
16168
e7b06c57
DE
16169 * linux-low.c (linux_create_inferior): If stdio connection,
16170 redirect stdin from /dev/null, stdout to stderr.
16171 * remote-utils.c (remote_is_stdio): New static global.
16172 (remote_connection_is_stdio): New function.
16173 (remote_prepare): Handle stdio connection.
16174 (remote_open): Ditto.
16175 (remote_close): Don't close stdin for stdio connections.
16176 (read_prim,write_prim): New functions. Replace all calls to
16177 read/write to these.
16178 * server.c (main): Watch for "-" argument. Move call to
16179 remote_prepare before start_inferior.
16180 * server.h (STDIO_CONNECTION_NAME): New macro.
16181 (remote_connection_is_stdio): Declare.
16182
e77616d7
DE
16183 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16184 in debugging output.
16185
82067193
YQ
161862011-12-15 Yao Qi <yao@codesourcery.com>
16187
16188 * tracepoint.c: Include sys/syscall.h.
16189 (gdb_ust_thread): Remove preprocessor conditional.
16190
82bfbe7e
PA
161912011-12-14 Pedro Alves <pedro@codesourcery.com>
16192
16193 * linux-low.c (linux_detach_one_lwp): Call
16194 the_low_target.prepare_to_resume before detaching.
16195
712c6575
YQ
161962011-12-14 Yao Qi <yao@codesourcery.com>
16197
16198 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16199 of write.
16200
d54d1edf
YQ
162012011-12-14 Yao Qi <yao@codesourcery.com>
16202
16203 * i386-low.c (i386_low_stopped_data_address): Initialize local
16204 variable `control'.
16205
6210a125
PA
162062011-12-13 Pedro Alves <pedro@codesourcery.com>
16207
16208 PR remote/13492
16209
16210 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16211 DR_CONTROL unless necessary. Extend comments.
16212 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16213 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16214
2ece8244
YQ
162152011-12-13 Yao Qi <yao@codesourcery.com>
16216
16217 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16218 macros.
16219 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16220
784867a5
JK
162212011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16222
16223 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16224 Print new debug message for such case.
16225
6bf36717
JK
162262011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16227
16228 Fix overlapping memcpy.
16229 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16230 the read_inferior_memory transfer.
16231 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16232 write_inferior_memory transfer.
16233 (set_fast_tracepoint_jump): New variable buf. Use it for the
16234 read_inferior_memory and write_inferior_memory transfers.
16235 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16236 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16237 Use it for the write_inferior_memory transfer.
16238 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16239 buffers.
16240
50275556
MR
162412011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16242
16243 * linux-low.c (fetch_register, store_register): Make code
16244 consistent, fix formatting.
16245
7325beb4
MR
162462011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16247
16248 * linux-low.c (usr_store_inferior_registers): Factor out code
16249 to handle individual registers into...
16250 (store_register): ... this new function.
16251
c642a434
UW
162522011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16253
16254 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16255 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16256 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16257 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16258 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16259 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16260 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16261 (srv_xmlfiles): Add new XML files.
16262
16263 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16264 and <sys/uio.h>.
16265 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16266 (init_registers_s390_linux32v1): Add prototype.
16267 (init_registers_s390_linux32v2): Likewise.
16268 (init_registers_s390_linux64v1): Likewise.
16269 (init_registers_s390_linux64v2): Likewise.
16270 (init_registers_s390x_linux64v1): Likewise.
16271 (init_registers_s390x_linux64v2): Likewise.
16272 (s390_num_regs): Increment to 52.
16273 (s390_regmap): Add orig_r2 register.
16274 (s390_num_regs_3264): Increment to 68.
16275 (s390_regmap_3264): Add orig_r2 register.
16276 (s390_collect_ptrace_register): Handle orig_r2 register.
16277 (s390_supply_ptrace_register): Likewise.
16278 (s390_fill_last_break): New function.
16279 (s390_store_last_break): Likewise.
16280 (s390_fill_system_call): New function.
16281 (s390_store_system_call): Likewise.
16282 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16283 register sets.
16284 (s390_check_regset): New function.
16285 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16286 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16287 Update target_regsets for available register sets.
16288
2268b414
JK
162892011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16290 Jan Kratochvil <jan.kratochvil@redhat.com>
16291
16292 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16293 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16294 New.
16295 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16296 * linux-low.h (struct process_info_private): New member r_debug.
16297 * server.c (handle_qxfer_libraries): Call
16298 the_target->qxfer_libraries_svr4.
16299 (handle_qxfer_libraries_svr4): New function.
16300 (qxfer_packets): New entry "libraries-svr4".
16301 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16302 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16303 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16304 PACKET_qXfer_libraries_svr4.
16305
d6db1fab
UW
163062011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16307
16308 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16309 PSW address/mask between 8-byte and 16-byte formats.
16310 (s390_supply_ptrace_register): Likewise.
16311 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16312 basic addressing mode bit.
16313
242f5f1c
SS
163142011-11-24 Stan Shebs <stan@codesourcery.com>
16315
16316 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16317
f196051f
SS
163182011-11-17 Stan Shebs <stan@codesourcery.com>
16319
16320 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16321 (tracing_start_time): New global.
16322 (tracing_stop_time): New global.
16323 (tracing_user_name): New global.
16324 (tracing_notes): New global.
16325 (tracing_stop_note): New global.
16326 (cmd_qtstart): Set traceframe_usage, start_time.
16327 (stop_tracing): Set stop_time.
16328 (cmd_qtstatus): Report additional status.
16329 (cmd_qtp): New function.
16330 (handle_tracepoint_query): Call it.
16331 (cmd_qtnotes): New function.
16332 (handle_tracepoint_general_set): Call it.
16333 (get_timestamp): Rename from tsv_get_timestamp.
16334
405f8e94
SS
163352011-11-14 Stan Shebs <stan@codesourcery.com>
16336 Kwok Cheung Yeung <kcy@codesourcery.com>
16337
16338 * linux-x86-low.c (small_jump_insn): New.
16339 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16340 trampoline and error message, build a trampoline and issue a small
16341 jump instruction to it.
16342 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16343 trampoline and error message.
16344 (x86_get_min_fast_tracepoint_insn_len): New.
16345 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16346 * linux-low.h (struct linux_target_ops): Add arguments to
16347 install_fast_tracepoint_jump_pad operation, add new operation.
16348 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16349 arguments.
16350 (linux_get_min_fast_tracepoint_insn_len): New function.
16351 (linux_target_op): Add new operation.
16352 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16353 (gdb_trampoline_buffer_end): Ditto.
16354 (gdb_trampoline_buffer_error): Ditto.
16355 (struct ipa_sym_addresses): Add fields for new IPA variables.
16356 (symbol_list): Add entries for new IPA variables.
16357 (struct tracepoint): Add fields to hold the address range of the
16358 trampoline used by the tracepoint.
16359 (trampoline_buffer_head): New static variable.
16360 (trampoline_buffer_tail): Ditto.
16361 (claim_trampoline_space): New function.
16362 (have_fast_tracepoint_trampoline_buffer): New function.
16363 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16364 structure.
16365 (install_fast_tracepoint): Ditto, also add error buffer argument.
16366 (cmd_qtminftpilen): New function.
16367 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16368 (fast_tracepoint_from_trampoline_address): New function.
16369 (fast_tracepoint_collecting): Handle trampoline as part of jump
16370 pad space.
16371 (set_trampoline_buffer_space): New function.
16372 (initialize_tracepoint): Initialize new IPA variables.
16373 * target.h (struct target_ops): Add arguments to
16374 install_fast_tracepoint_jump_pad operation, add new
16375 get_min_fast_tracepoint_insn_len operation.
16376 (target_get_min_fast_tracepoint_insn_len): New.
16377 (install_fast_tracepoint_jump_pad): Add arguments.
16378 * server.h (IPA_BUFSIZ): Define.
16379 * linux-i386-ipa.c: Include extra header files.
16380 (initialize_fast_tracepoint_trampoline_buffer): New function.
16381 (initialize_low_tracepoint): Call it.
16382 * server.h (set_trampoline_buffer_space): Declare.
16383 (claim_trampoline_space): Ditto.
16384 (have_fast_tracepoint_trampoline_buffer): Ditto.
16385
1e4d1764
YQ
163862011-11-14 Yao Qi <yao@codesourcery.com>
16387
16388 * server.c (handle_query): Handle InstallInTrace for qSupported.
16389 * tracepoint.c (add_tracepoint): Sort list.
16390 (install_tracepoint, download_tracepoint): New.
16391 (cmd_qtdp): Call them to install and download tracepoints.
16392 (sort_tracepoints): Removed.
16393 (cmd_qtstart): Update.
16394
5c73ff4e
YQ
163952011-11-14 Yao Qi <yao@codesourcery.com>
16396
16397 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16398 * mem-break.h: Declare.
16399 * tracepoint.c (cmd_qtstart): Move some code to ...
16400 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16401 New.
16402 (download_tracepoints): Move some code to ...
16403 (download_tracepoint_1): ... here. New.
16404
86a30030
YQ
164052011-11-08 Yao Qi <yao@codesourcery.com>
16406
16407 * remote-utils.c (relocate_instruction): A comment fix.
16408
8d26e50c
JB
164092011-11-07 Joel Brobecker <brobecker@adacore.com>
16410
16411 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16412 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16413 dr_status_mirror and dr_control_mirror from debug_reg_state.
16414 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16415 (i386_initial_stuff): Remove use of deleted globals.
16416 (i386_get_thread_context, i386_set_thread_context,
16417 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16418 from debug_reg_state.
16419
a59306a3
YQ
164202011-11-05 Yao Qi <yao@codesourcery.com>
16421
16422 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16423 address as TPOINT's.
16424
3065dfb6
SS
164252011-11-02 Stan Shebs <stan@codesourcery.com>
16426
16427 * tracepoint.c (agent_mem_read_string): New function.
16428 (eval_agent_expr): Call it for tracenz.
16429 * server.c (handle_query): Report support for tracenz.
16430
fd0d8c7c
YQ
164312011-11-02 Yao Qi <yao@codesourcery.com>
16432
16433 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16434
609086b1
YQ
164352011-11-02 Yao Qi <yao@codesourcery.com>
16436
16437 * target.h: Fix a typo in comment.
16438
b9fd1791
PA
164392011-10-31 Pedro Alves <pedro@codesourcery.com>
16440
16441 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16442 clobber the breakpoints' shadows with fast tracepoint jumps.
16443 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16444 * target.c (write_inferior_memory): Also pass MYADDR down to
16445 check_mem_write.
16446
03583c20
UW
164472011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16448
16449 * configure.ac: Check support for personality routine.
16450 * configure: Regenerate.
16451 * config.in: Likewise.
16452 * linux-low.c: Include <sys/personality.h>.
16453 Define ADDR_NO_RANDOMIZE if necessary.
16454 (linux_create_inferior): Disable address space randomization when
16455 forking inferior, if requested.
16456 (linux_supports_disable_randomization): New function.
16457 (linux_target_ops): Install it.
16458 * server.h (disable_randomization): Declare.
16459 * server.c (disable_randomization): New global variable.
16460 (handle_general_set): Handle QDisableRandomization.
16461 (handle_query): Likewise for qSupported.
16462 (main): Support --disable-randomization and --no-disable-randomization
16463 command line arguments.
16464 * target.h (struct target_ops): Add supports_disable_randomization.
16465 (target_supports_disable_randomization): New macro.
16466
723b724b
MF
164672011-09-29 Mike Frysinger <vapier@gentoo.org>
16468
16469 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16470 ifdef check.
16471 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16472 [!PT_GETDSBT] (target_loadmap): New definition.
16473 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16474 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16475 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16476 and PT_GETDSBT to LINUX_LOADMAP.
16477 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16478 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16479
55329a5c 164802011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16481
16482 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16483 (arm_linux_hwbp_cap): New static variable.
16484 (arm_linux_get_hwbp_cap): Replace by ...
16485 (arm_linux_init_hwbp_cap): ... this new function.
16486 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16487 (arm_linux_get_hw_watchpoint_count): Likewise.
16488 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16489 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16490 (arm_prepare_to_resume): Use perror_with_name instead of error.
16491
55329a5c 164922011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16493
16494 * linux-arm-low.c: Include <signal.h>.
16495 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16496 (struct arm_linux_hwbp_cap): New data type.
16497 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16498 (struct arm_linux_hw_breakpoint): New data type.
16499 (MAX_BPTS, MAX_WPTS): Define.
16500 (struct arch_process_info, struct arch_lwp_info): New data types.
16501 (arm_linux_get_hwbp_cap): New function.
16502 (arm_linux_get_hw_breakpoint_count): Likewise.
16503 (arm_linux_get_hw_watchpoint_count): Likewise.
16504 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16505 (arm_hwbp_control_initialize): Likewise.
16506 (arm_hwbp_control_is_enabled): Likewise.
16507 (arm_hwbp_control_is_initialized): Likewise.
16508 (arm_hwbp_control_disable): Likewise.
16509 (arm_linux_hw_breakpoint_equal): Likewise.
16510 (arm_linux_hw_point_initialize): Likewise.
16511 (struct update_registers_data): New data structure.
16512 (update_registers_callback: New function.
16513 (arm_insert_point): Likewise.
16514 (arm_remove_point): Likewise.
16515 (arm_stopped_by_watchpoint): Likewise.
16516 (arm_stopped_data_address): Likewise.
16517 (arm_new_process): Likewise.
16518 (arm_new_thread): Likewise.
16519 (arm_prepare_to_resume): Likewise.
16520 (the_low_target): Register arm_insert_point, arm_remove_point,
16521 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16522 arm_new_thread, and arm_prepare_to_resume.
16523
6b9801d4
SS
165242011-09-15 Stan Shebs <stan@codesourcery.com>
16525
16526 * server.h (struct emit_ops): Add compare-goto fields.
16527 * tracepoint.c (gdb_agent_op_sizes): New table.
16528 (emit_eq_goto): New function.
16529 (emit_ne_goto): New function.
16530 (emit_lt_goto): New function.
16531 (emit_le_goto): New function.
16532 (emit_gt_goto): New function.
16533 (emit_ge_goto): New function.
16534 (is_goto_target): New function.
16535 (compile_bytecodes): Recognize special cases of compare-goto
16536 combinations and call specialized emitters for them.
16537 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16538 (amd64_emit_ne_goto): New function.
16539 (amd64_emit_lt_goto): New function.
16540 (amd64_emit_le_goto): New function.
16541 (amd64_emit_gt_goto): New function.
16542 (amd64_emit_ge_goto): New function.
16543 (amd64_emit_ops): Add the new functions.
16544 (i386_emit_eq_goto): New function.
16545 (i386_emit_ne_goto): New function.
16546 (i386_emit_lt_goto): New function.
16547 (i386_emit_le_goto): New function.
16548 (i386_emit_gt_goto): New function.
16549 (i386_emit_ge_goto): New function.
16550 (i386_emit_ops): Add the new functions.
16551
bf15cbda
SS
165522011-09-08 Stan Shebs <stan@codesourcery.com>
16553
16554 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16555 (i386_emit_epilogue): Restore %ebx.
16556
943ca1dd
JZ
165572011-08-31 Jie Zhang <jzhang918@gmail.com>
16558
16559 * server.c (step_thread): Remove definition.
16560 (process_serial_event): Don't handle Hs.
16561 * server.h (step_thread): Remove declaration.
16562 * target.c (set_desired_inferior): Remove use of step_thread.
16563
e3deef73
LM
165642011-08-24 Luis Machado <lgustavo@codesourcery.com>
16565
16566 * linux-low.c: Include linux-procfs.h.
16567 (linux_attach_lwp_1): Update comments.
16568 (linux_attach): Scan for existing threads when attaching to a
16569 process that is the tgid.
16570 * Makefile.in: Update dependencies.
16571
13da1c97
LM
165722011-08-24 Luis Machado <lgustavo@codesourcery.com>
16573
16574 * configure.srv: Add linux-procfs.o dependencies.
16575
881127c9
YQ
165762011-08-14 Yao Qi <yao@codesourcery.com>
16577
16578 * target.h (struct target_ops): Fix indent.
16579 * win32-low.c (win32_target_ops): Fix comment.
16580
58dbd541
YQ
165812011-08-14 Andrew Jenner <andrew@codesourcery.com>
16582 Yao Qi <yao@codesourcery.com>
16583
16584 * Makefile.in (clean): Remove tic6x-*.c files.
16585 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16586 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16587 (tic6x-c64xp-linux.c): Likewise.
16588 * configure.srv: Add support for tic6x-*-uclinux.
16589 * linux-tic6x-low.c: New.
16590 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16591
78d85199
YQ
165922011-08-14 Andrew Stubbs <ams@codesourcery.com>
16593 Yao Qi <yao@codesourcery.com>
16594
16595 * target.h (struct target_ops): Add read_loadmap.
16596 * linux-low.c (struct target_loadseg): New type.
16597 (struct target_loadmap): New type.
16598 (linux_read_loadmap): New function.
16599 (linux_target_ops): Add linux_read_loadmap.
16600 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16601 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16602 to NULL.
78d85199 16603
a959a88d
EZ
166042011-08-05 Eli Zaretskii <eliz@gnu.org>
16605
16606 * win32-low.c: Include <stdint.h>.
16607
1ced966e
PA
166082011-07-22 Pedro Alves <pedro@codesourcery.com>
16609
16610 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16611 to the inferior here.
16612 (i386_remove_aligned_watchpoint): Ditto.
16613 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16614 fit part of the watchpoint in the debug registers.
16615 (i386_update_inferior_debug_regs): New.
16616 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16617 registers, and only update the inferior on success.
16618 (i386_low_remove_watchpoint): Ditto.
16619
d26e3629
KY
166202011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16621
16622 * linux-low.c (compare_ints, unique, list_threads, show_process,
16623 linux_core_of_thread): Delete.
16624 (linux_target_ops): Change linux_core_of_thread to
16625 linux_common_core_of_thread.
16626 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16627 * utils.c (malloc_failure): Change type of argument.
16628 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16629 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16630 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16631 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16632 (IPA_OBJS): Add common-utils-ipa.o.
16633 (ptid_h, linux_osdata_h): New macros.
16634 (server_h): Add common/common-utils.h, common/xml-utils.h,
16635 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16636 common/ptid.h.
16637 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16638 ptid.o, buffer.o): New rules.
16639 (linux-low.o): Add common/linux-osdata.h as a dependency.
16640 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16641 * configure.ac: Add AC_HEADER_DIRENT check.
16642 * config.in: Regenerate.
16643 * configure: Regenerate.
16644 * remote-utils.c (xml_escape_text): Delete.
16645 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16646 buffer_xml_printf): Move to common/buffer.c.
16647 * server.c (main): Remove call to initialize_inferiors.
16648 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16649 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16650 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16651 internal_error, gdb_assert, gdb_assert_fail): Delete.
16652 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16653 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16654 common/buffer.h.
16655 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16656 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16657 initialize_inferiors): Delete.
16658
2275a1a7
PA
166592011-07-20 Pedro Alves <pedro@codesourcery.com>
16660
16661 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16662 symbol error.
16663
0a5b1e09
PA
166642011-05-31 Pedro Alves <pedro@codesourcery.com>
16665
16666 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16667 assertion.
16668 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16669
6938fd34
YQ
166702011-05-26 Yao Qi <yao@codesourcery.com>
16671
16672 * Makefile.in (thread-db.o): Track dependence to
16673 common/gdb_thread_db.h.
16674 * thread-db.c: include gdb_thread_db.h from right place.
16675
b481f9e0
TT
166762011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16677
16678 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16679 __FILE__ and __LINE__ to internal_error.
16680
98a5dd13
DE
166812011-05-13 Doug Evans <dje@google.com>
16682
16683 * thread-db.c (try_thread_db_load_from_sdir): New function.
16684 (try_thread_db_load_from_dir): New function.
16685 (thread_db_load_search): Handle $sdir, ignore $pdir.
16686 Remove trying of system directories if search of
16687 libthread-db-search-path fails, that is now done via $sdir.
16688
d248b706
KY
166892011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16690
16691 * server.c (handle_query): Add EnableDisableTracepoints to the list
16692 of supported features.
43aaf8b6 16693 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16694 tracepoints.
43aaf8b6
PA
16695 (cmd_qtenable_disable): New.
16696 (cmd_qtstart): Install tracepoints even if disabled.
16697 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16698 receiving a QTEnable or QTDisable packet.
16699 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16700 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16701 tracepoints.
16702 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16703
84e578fb
DE
167042011-05-10 Doug Evans <dje@google.com>
16705
16706 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16707
71f55dd8
DE
167082011-05-04 Doug Evans <dje@google.com>
16709
16710 * linux-low.c (linux_join): Skip process lookup.
16711 * spu-low.c (spu_join): Ditto.
16712 * server.c (join_inferiors_callback): Delete.
16713 (process_serial_event): For 'D' packet (detach) call join_inferior
16714 directly.
16715
4d393d60
JM
167162011-05-04 Joseph Myers <joseph@codesourcery.com>
16717
16718 * README: Don't mention xscale*-*-linux*.
16719 * configure.srv (xscale*-*-linux*): Don't handle target.
16720
b00ad6ff
NF
167212011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16722
16723 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16724 casting pointers.
16725 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16726 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16727 (i386_emit_void_call_2): Likewise.
16728
af96c192
YQ
167292011-04-26 Yao Qi <yao@codesourcery.com>
16730
43aaf8b6
PA
16731 * linux-low.c: Move common macros to linux-ptrace.h.
16732 Include linux-ptrace.h.
af96c192
YQ
16733 * Makefile.in (linux_ptrace_h): New.
16734 (linux-low.o): Depends on linux-ptrace.h.
16735
03f2bd59
JK
167362011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16737
16738 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16739 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16740 (remote_prepare): New function with most of the TCP code from ...
16741 (remote_open): ... here. Detect PORT here unconditionally. Move also
16742 setting transport_is_reliable.
16743 * server.c (run_once): New variable.
16744 (gdbserver_usage): Document it.
16745 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16746 the first run if RUN_ONCE.
16747 * server.h (run_once, remote_prepare): New declarations.
16748
7a9dd1b2
TT
167492011-04-19 Tom Tromey <tromey@redhat.com>
16750
16751 * win32-low.c (handle_load_dll): Remove duplicate "the".
16752
81239425
PM
167532011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16754
16755 Remove support for old Cygwin 1.5 versions.
16756 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16757 function to avoid warning.
16758 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16759 warning.
16760
9e0627f1
PM
167612011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16762
16763 * gdbserver/server.h (Macro _): Define it if not available.
16764
588eebee
MS
167652011-03-14 Michael Snyder <msnyder@vmware.com>
16766
348af9f7 16767 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16768
43f70d4c
JB
167692011-03-10 Joel Brobecker <brobecker@adacore.com>
16770
16771 * Makefile.in (maintainer-clean realclean distclean): Remove
16772 "make ... subdir_do" command.
16773
348af9f7
MS
167742011-03-10 Michael Snyder <msnyder@vmware.com>
16775
16776 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16777
16778 * server.c (handle_v_run): Free alloced buffer on early return.
16779
e637a4f5
YQ
167802011-03-09 Yao Qi <yao@codesourcery.com>
16781
16782 Revert:
16783 2011-03-04 Yao Qi <yao@codesourcery.com>
16784
16785 * Makefile.in: Remove GNU make feature --directory.
16786
16787 2011-03-05 Yao Qi <yao@codesourcery.com>
16788
16789 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16790 (subdir_do): New make target. Copied from gdb/Makefile.
16791 (maintainer-clean, realclean, distclean, clean): Call corresponding
16792 make targets in common/Makefile.
16793
16794 2011-02-11 Yao Qi <yao@codesourcery.com>
16795
16796 * configure.ac: Call AC_PROG_RANLIB.
16797 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16798 * configure: Regenerate.
16799
e6edda56
JK
168002011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16801
16802 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16803
e5141119
JB
168042011-03-06 Yao Qi <yao@codesourcery.com>
16805
16806 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16807
64794aa4
JB
168082011-03-05 Yao Qi <yao@codesourcery.com>
16809
16810 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16811 (subdir_do): New make target. Copied from gdb/Makefile.
16812 (maintainer-clean, realclean, distclean, clean): Call corresponding
16813 make targets in common/Makefile.
16814
7a762829
YQ
168152011-03-04 Yao Qi <yao@codesourcery.com>
16816
16817 * Makefile.in: Remove GNU make feature --directory.
16818
348af9f7
MS
168192011-03-04 Michael Snyder <msnyder@vmware.com>
16820
16821 * server.c (queue_stop_reply): Call xmalloc not malloc.
16822
168232011-03-02 Michael Snyder <msnyder@vmware.com>
16824
16825 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16826
9f72fee2
MS
168272011-02-28 Michael Snyder <msnyder@vmware.com>
16828
588eebee
MS
16829 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16830 (cmd_qtframe): Ditto.
16831 (cmd_qtbuffer): Ditto.
16832 (cmd_bigqtbuffer): Ditto.
16833
9f72fee2
MS
16834 * utils.c (decimal2str): Initialize 'width' to nine, then
16835 don't mess with it.
16836
8040bd49
UW
168372011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16838
16839 * hostio.c (require_data): Free *data, not data.
16840
7e52cbd0
JK
168412011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16842
16843 * hostio.c (require_data): Use free, not xfree.
16844
9130f83e
MS
168452011-02-27 Michael Snyder <msnyder@vmware.com>
16846
4b812f4e
MS
16847 * server.c (handle_query): Discard unused value.
16848
9130f83e
MS
16849 * hostio.c (require_data): Free malloc memory before returning
16850 error.
16851
69d37113
MS
168522011-02-26 Michael Snyder <msnyder@vmware.com>
16853
16854 * linux-low.c (list_threads): Call closedir for dirent.
16855
35f5825a
MS
168562011-02-27 Michael Snyder <msnyder@vmware.com>
16857
2a589cef
MS
16858 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16859 a case statement falls through.
16860
0adea5f7
MS
16861 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16862
35f5825a
MS
16863 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16864 in comparison.
16865
238f1c74
MS
168662011-02-26 Michael Snyder <msnyder@vmware.com>
16867
16868 * utils.c (decimal2str): Eliminate dead code and dead param.
16869 (pulongest): Drop dead param from call to decimal2str.
16870 (plongest): Ditto.
16871
633ff500
JB
168722011-02-24 Joel Brobecker <brobecker@adacore.com>
16873
16874 Revert the following patch (not approved yet):
16875 2011-02-21 Hui Zhu <teawater@gmail.com>
16876 * tracepoint.c (tp_printf): New function.
16877 (eval_agent_expr): Handle gdb_agent_op_printf.
16878
f9c6ff72
HZ
168792011-02-21 Hui Zhu <teawater@gmail.com>
16880
16881 * tracepoint.c (tp_printf): New function.
16882 (eval_agent_expr): Handle gdb_agent_op_printf.
16883
94d5e490
TT
168842011-02-18 Tom Tromey <tromey@redhat.com>
16885
16886 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16887 (tracepoint.o): Likewise.
16888 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16889 (gdb_agent_op_names): Likewise.
16890
c7f96d2b
TT
168912011-02-18 Tom Tromey <tromey@redhat.com>
16892
16893 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16894 gdb_agent_op_rot>: New constants.
16895 (gdb_agent_op_names): Add pick and roll.
16896 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16897 cases.
16898
0feedb2c
JK
168992011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16900
16901 * aclocal.m4: Regenerated with aclocal-1.11.1.
16902
b3b9301e
PA
169032011-02-14 Pedro Alves <pedro@codesourcery.com>
16904
16905 * server.c (handle_qxfer_traceframe_info): New.
16906 (qxfer_packets): Register "traceframe-info".
16907 (handle_query): Report support for qXfer:traceframe-info:read+.
16908 * tracepoint.c (match_blocktype): New.
16909 (traceframe_find_block_type): Rename to ...
16910 (traceframe_walk_blocks): ... this. Add callback filter argument,
16911 and use it.
16912 (traceframe_find_block_type): New, reimplemented on top of
16913 traceframe_walk_blocks.
16914 (build_traceframe_info_xml): New.
16915 (traceframe_read_info): New.
16916 * server.h (traceframe_read_info): Declare.
16917
4f3e6fb7
YQ
169182011-02-11 Yao Qi <yao@codesourcery.com>
16919
16920 * configure.ac: Call AC_PROG_RANLIB.
16921 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16922 * configure: Regenerate.
16923
764880b7
PA
169242011-02-07 Pedro Alves <pedro@codesourcery.com>
16925
16926 * server.c (gdb_read_memory): Change return semantics to allow
16927 partial transfers.
16928 (handle_search_memory_1): Adjust.
16929 (process_serial_event) <'m' packet>: Handle partial transfers.
16930 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16931
1c79eb8a
PA
169322011-01-28 Pedro Alves <pedro@codesourcery.com>
16933
16934 * regcache.c (init_register_cache): Initialize
16935 regcache->register_status.
16936 (free_register_cache): Release regcache->register_status.
16937 (regcache_cpy): Copy register_status.
16938 (registers_to_string): Print 'x's for unavailable registers.
16939 (supply_register): Mark the register's status valid or
16940 unavailable, depending on whether a buffer was passed in or not.
16941 (supply_register_zeroed): New.
16942 (supply_regblock): Mark the registers' status valid or
16943 unavailable, depending on whether a buffer was passed in or not.
16944 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16945 (struct regcache): New `register_status' field.
16946 (supply_register_zeroed): Declare.
16947 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16948 supply_register_zeroed, rather than passing a NULL buffer to
16949 supply_register.
16950 * tracepoint.c (fetch_traceframe_registers): Update comment.
16951
85724a0e
PA
169522011-01-28 Pedro Alves <pedro@codesourcery.com>
16953
16954 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16955 buffer explicit.
16956
d08aafef
PA
169572011-01-25 Pedro Alves <pedro@codesourcery.com>
16958
16959 * server.h (decode_xfer_write): Change prototype.
16960 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16961 and don't extract the annex here.
16962 * server.c (decode_xfer_read): Remove `annex' parameter,
16963 and don't extract the annex here.
16964 (decode_xfer): New.
16965 (struct qxfer): New.
16966 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16967 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16968 (handle_qxfer_statictrace): New functions, abstracted out from
16969 handle_query, and made to use the struct qxfer interface.
16970 (handle_threads_qxfer_proper): Rename to ...
16971 (handle_qxfer_threads_proper): ... this.
16972 (handle_threads_qxfer): Rename to ...
16973 (handle_qxfer_threads): ... this. Adjust.
16974 (qxfer_packets): New array.
16975 (handle_qxfer): New function.
16976 (handle_query): Use handle_qxfer.
16977
493e2a69
MS
169782011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16979
16980 * gdbreplay.c: Shorten lines of >= 80 columns.
16981 * linux-low.c: Ditto.
16982 * linux-ppc-low.c: Ditto.
16983 * linux-s390-low.c: Ditto.
16984 * linux-sparc-low.c: Ditto.
16985 * linux-x86-low.c: Ditto.
16986 * linux-xtensa-low.c: Ditto.
16987 * mem-break.c: Ditto.
16988 * nto-low.c: Ditto.
16989 * regcache.h: Ditto.
16990 * remote-utils.c: Ditto.
16991 * server.c: Ditto.
16992 * server.h: Ditto.
16993 * thread-db.c: Ditto.
16994 * tracepoint.c: Ditto.
16995 * utils.c: Ditto.
16996 * win32-low.h: Ditto.
16997
44944448
JB
169982011-01-05 Joel Brobecker <brobecker@adacore.com>
16999
17000 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17001 update.
17002
71ce852c
JB
170032011-01-01 Joel Brobecker <brobecker@adacore.com>
17004
17005 * server.c (gdbserver_version): Update copyright year in version
17006 output.
17007 * gdbreplay.c (gdbreplay_version): Ditto.
17008
eb826dc6
MF
170092010-12-29 Jie Zhang <jie.zhang@analog.com>
17010
17011 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17012 * linux-bfin-low.c: New file.
17013 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17014 PT_DATA_ADDR for BFIN targets.
17015 * Makefile.in (SFILES): Add linux-bfin-low.c.
17016 (clean): Remove reg-bfin.c.
17017 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17018 * README: Mention supported Blackfin targets.
17019
39ab222a
MF
170202010-12-23 Mike Frysinger <vapier@gentoo.org>
17021
17022 * .gitignore: New file.
17023
a1f2ce7d
MF
170242010-11-16 Mike Frysinger <vapier@gentoo.org>
17025
17026 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17027
f474844c
JZ
170282010-10-22 Jie Zhang <jie@codesourcery.com>
17029
17030 * Makefile.in: Add FLAGS_TO_PASS variable.
17031 (install): Remove dependency of install-only and recursively
17032 invoke make for install-only.
17033
f1048712
DE
170342010-10-04 Doug Evans <dje@google.com>
17035
17036 * Makefile.in (uninstall): Use $(DESTDIR).
17037
b53a1623
PA
170382010-09-24 Pedro Alves <pedro@codesourcery.com>
17039
e6ee044d
PA
17040 PR gdb/11842
17041
b53a1623
PA
17042 * linux-x86-low.c (compat_siginfo_from_siginfo)
17043 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17044 si_code is < 0. Check for si_code == SI_TIMER before checking for
17045 si_code < 0.
17046
fa1bd1e4
JB
170472010-09-13 Joel Brobecker <brobecker@adacore.com>
17048
17049 * lynx-i386-low.c: New file.
17050 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17051
47fac8f8
JB
170522010-09-13 Joel Brobecker <brobecker@adacore.com>
17053
17054 * lynx-low.c (ptrace_request_to_str): Remove handling for
17055 request values that have been removed in LynxOS 5.x.
17056
1adfc54d
JB
170572010-09-13 Joel Brobecker <brobecker@adacore.com>
17058
17059 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17060 <ptrace.h>
17061
c2a66c29
NS
170622010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17063
17064 * configure.ac: Add --enable-inprocess-agent option.
17065 * configure: Rebuilt.
17066
32fcada3
YQ
170672010-09-06 Yao Qi <yao@codesourcery.com>
17068
17069 * linux-low.c (linux_kill): Remove unused variable.
17070 (linux_stabilize_threads): Likewise.
17071 * server.c (start_inferior): Likewise.
17072 (queue_stop_reply_callback): Likewise.
17073 * tracepoint.c (do_action_at_tracepoint): Likewise.
17074
0cccb683
YQ
170752010-09-06 Yao Qi <yao@codesourcery.com>
17076
17077 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17078 on return.
17079
423ec54c
JK
170802010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17081
17082 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17083
12ac6819
PA
170842010-09-06 Pedro Alves <pedro@codesourcery.com>
17085
17086 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17087 "$(IPA_DEPFILES)".
17088
8ed54b31
JB
170892010-09-01 Joel Brobecker <brobecker@adacore.com>
17090
17091 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17092 gdbserver/lynx-ppc-low.c: New files.
17093 * Makefile.in (lynx_low_h): New variable.
17094 (lynx-low.o, lynx-ppc-low.o): New rules.
17095 * configure.ac: On LynxOS, link with -lnetinet.
17096 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17097 * configure: regenerate.
17098
bb0116a4
JB
170992010-09-01 Joel Brobecker <brobecker@adacore.com>
17100
17101 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17102 * configure.ac: Add check for vasprintf and vsnprintf.
17103 * configure, config.in: Regenerate.
17104 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17105
a778ab81 171062010-09-01 Joel Brobecker <brobecker@adacore.com>
17107
17108 * gdbreplay.c: Move include of alloca.h up, next to include of
17109 malloc.h.
17110 * server.h: Add include of malloc.h.
17111 * mem-break.c: Remove include of malloc.h.
17112 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17113
8b034a19 171142010-09-01 Joel Brobecker <brobecker@adacore.com>
17115
17116 * Makefile.in (memmem.o): Build with -Wno-error.
17117
171182010-09-01 Joel Brobecker <brobecker@adacore.com>
17119
17120 * utils.c (xsnprintf): Make non-static.
17121 * server.h: Add xsnprintf declaration.
17122 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17123 replace calls to snprintf by calls to xsnprintf throughout.
17124
171252010-09-01 Joel Brobecker <brobecker@adacore.com>
17126
17127 * configure.ac: Add configure check for alloca.
17128 * configure, config.in: Regenerate.
17129 * server.h: Include alloca.h if it exists.
17130 * gdbreplay.c: Include alloca.h if it exists.
17131
1a981360
PA
171322010-08-28 Pedro Alves <pedro@codesourcery.com>
17133
17134 * linux-low.c (__SIGRTMIN): Define if not already defined.
17135 (linux_create_inferior): Check for __ANDROID__ rather than
17136 __SIGRTMIN.
17137 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17138 are already deferred.
17139 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17140 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17141 stopped and already has a pending signal to report.
17142 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17143 a pending signal to report or is moving out of a jump pad.
17144 (linux_init_signals): Check for __ANDROID__ rather than
17145 __SIGRTMIN.
17146
b4d51a55
PA
171472010-08-28 Pedro Alves <pedro@codesourcery.com>
17148
17149 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17150 debug_threads check. Avoid a linear search when not doing debug
17151 output.
17152
ec48365d
PA
171532010-08-27 Pedro Alves <pedro@codesourcery.com>
17154
17155 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17156 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17157 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17158 (process_event): Change local fd's type to gdb_fildes_t.
17159 (create_file_handler): Adjust prototype.
17160 (delete_file_handler): Adjust prototype.
17161 (handle_file_event): Adjust prototype. Use pfildes.
17162 (create_file_event): Adjsut prototype.
17163 * remote-utils.c (remote_desc, listen_desc): Change type to
17164 gdb_fildes_t.
17165 * server.h: New gdb_fildes_t typedef.
17166 [USE_WIN32API]: Include winsock2.h.
17167 (delete_file_handler, add_file_handler): Adjust prototypes.
17168 (pfildes): Declare.
17169 * utils.c (pfildes): New.
17170
854d88f0
PA
171712010-08-27 Pedro Alves <pedro@codesourcery.com>
17172
17173 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17174 * configure: Regenerate.
17175
0146f85b
PA
171762010-08-27 Pedro Alves <pedro@codesourcery.com>
17177
17178 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17179 (linux_done_accessing_memory): ... this.
17180 (linux_target_ops): Adjust.
17181 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17182 * nto-low.c (nto_target_ops): Adjust comment.
17183 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17184 * spu-low.c (spu_target_ops): Adjust comment.
17185 * target.h (target_ops): Rename unprepare_to_access_memory field
17186 to done_accessing_memory.
17187 (unprepare_to_access_memory): Rename to ...
17188 (done_accessing_memory): ... this.
17189
90d74c30
PA
171902010-08-26 Pedro Alves <pedro@codesourcery.com>
17191
17192 * linux-low.c (linux_prepare_to_access_memory): New.
17193 (linux_unprepare_to_access_memory): New.
17194 (linux_target_ops): Install them.
17195 * server.c (read_memory): Rename to ...
17196 (gdb_read_memory): ... this. Use
17197 prepare_to_access_memory/prepare_to_access_memory.
17198 (write_memory): Rename to ...
17199 (gdb_write_memory): ... this. Use
17200 prepare_to_access_memory/prepare_to_access_memory.
17201 (handle_search_memory_1): Adjust.
17202 (process_serial_event): Adjust.
17203 * target.h (struct target_ops): New fields
17204 prepare_to_access_memory and unprepare_to_access_memory.
17205 (prepare_to_access_memory, unprepare_to_access_memory): New.
17206 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17207 prepare_to_access_memory/prepare_to_access_memory.
17208 * nto-low.c (nto_target_ops): Adjust.
17209 * spu-low.c (spu_target_ops): Adjust.
17210 * win32-low.c (win32_target_ops): Adjust.
17211
fd467969
PA
172122010-08-26 Pedro Alves <pedro@codesourcery.com>
17213
17214 * Makefile.in (WARN_CFLAGS): Get it from configure.
17215 (WERROR_CFLAGS): New.
17216 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17217 * configure.ac: Introduce --enable-werror, which adds -Werror to
17218 the compiler command line. Enabled by default. Disable with
17219 --disable-werror. Add -Wdeclaration-after-statement
17220 Wpointer-arith and -Wformat-nonliteral to warning flags.
17221 * configure: Regenerate.
17222
331e2f5f
PA
172232010-08-26 Pedro Alves <pedro@codesourcery.com>
17224
17225 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17226
e581f2b4
PA
172272010-08-26 Pedro Alves <pedro@codesourcery.com>
17228
17229 * gdbreplay.c (remote_error): New.
17230 (gdbchar): New.
17231 (expect): Use gdbchar. Check for error reading from GDB.
17232 Clarify sync error output.
17233 (play): Check for errors writing to GDB.
17234 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17235 * remote-utils.c (getpkt): Check for errors writing to the remote
17236 descriptor.
17237
3c11dd79
PA
172382010-08-25 Pedro Alves <pedro@codesourcery.com>
17239
17240 * linux-low.c (linux_wait_1): Move non-debugging code out of
17241 `debug_threads' control.
17242
d20a8ad9
PA
172432010-08-25 Pedro Alves <pedro@codesourcery.com>
17244
17245 * linux-low.c (linux_wait_1): Don't set last_status here.
17246 * server.c (push_event, queue_stop_reply_callback): Assert we're
17247 not pushing a TARGET_WAITKIND_IGNORE event.
17248 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17249 (myresume, handle_target_event): Set the thread's last_resume_kind
17250 and last_status from the target returned status.
17251
964e4306
PA
172522010-08-25 Pedro Alves <pedro@codesourcery.com>
17253
17254 PR threads/10729
17255
17256 * linux-x86-low.c (update_debug_registers_callback): New.
17257 (i386_dr_low_set_addr): Use it.
17258 (i386_dr_low_get_addr): New.
17259 (i386_dr_low_set_control): Use update_debug_registers_callback.
17260 (i386_dr_low_get_control): New.
17261 (i386_dr_low_get_status): Adjust.
17262 * linux-low.c (linux_stop_lwp): New.
17263 * linux-low.h (linux_stop_lwp): Declare.
17264
17265 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17266 argument instead of a i386_debug_reg_state.
17267 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17268 a i386_debug_reg_state.
17269 (i386_insert_aligned_watchpoint): Adjust.
17270 (i386_remove_aligned_watchpoint): Adjust.
17271 (i386_low_stopped_data_address): Read the debug registers from the
17272 inferior instead of from the mirrors.
17273 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17274 (i386_dr_low_get_addr): Declare.
17275 (i386_dr_low_get_control): Declare.
17276 (i386_dr_low_get_status): Change prototype.
17277
17278 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17279 (i386_dr_low_get_addr): New.
17280 (i386_dr_low_get_control): New.
17281 (i386_dr_low_get_status): Adjust prototype. Return
17282 dr_status_mirror.
17283 (i386_initial_stuff): Clear dr_status_mirror and
17284 dr_control_mirror.
17285 (i386_get_thread_context): Adjust.
17286 (i386_set_thread_context): Adjust.
17287 (i386_thread_added): Adjust.
17288
5f21a75b
PA
172892010-08-24 Pedro Alves <pedro@codesourcery.com>
17290
17291 * linux-low.h (linux_thread_area): Delete declaration.
17292
3e4c1235
TS
172932010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17294
17295 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17296 after its termination.
17297
1971b033
PA
172982010-08-09 Pedro Alves <pedro@codesourcery.com>
17299
17300 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17301 (gdb_wants_all_stopped): Delete.
17302 (linux_wait_1): Don't call them.
17303 * server.c (handle_v_cont): Tag all threads as want-stopped.
17304 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17305 stopped as "client-wants-stopped".
17306
310444ac
PA
173072010-07-31 Pedro Alves <pedro@codesourcery.com>
17308
17309 * Makefile.in (signals_h): New.
17310 (server_h): Depend on it.
17311 (server.o): Don't depend on $(signals_def).
17312 (signals.o): Depend on $(signals_def).
17313
a19cae16
JK
173142010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17315
17316 * Makefile.in (signals_def): New.
17317 (server_h): Append include/gdb/signals.h and signals_def.
17318 (server.o): Append signals_def.
17319
30d50328
JK
173202010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17321
17322 * server.c (handle_target_event): Use target_signal_to_host for
17323 resume_info.sig initialization.
17324 * target.h (struct thread_resume) <sig>: New comment.
17325
5c3216e2
OS
173262010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17327
c6f46ca0
OS
17328 * server.c (handle_query): strcpy() the returned string from paddress()
17329 instead of sprintf().
5c3216e2
OS
17330 * utils.c (paddress): Return phex_nz().
17331
6bd31874
JB
173322010-07-07 Joel Brobecker <brobecker@adacore.com>
17333
17334 * server.c (handle_v_cont): Call mourn_inferior if process
17335 just exited.
17336 (myresume): Likewise.
17337
0fb4aa4b
PA
173382010-07-01 Pedro Alves <pedro@codesourcery.com>
17339
17340 Static tracepoints, and integration with UST.
17341
17342 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17343 * mem-break.c (uninsert_all_breakpoints)
17344 (reinsert_all_breakpoints): New.
17345 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17346 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17347 (gdb_agent_ust_loaded, helper_thread_id)
17348 (gdb_agent_helper_thread_id): New macros.
17349 (struct ipa_sym_addresses): Add addr_ust_loaded,
17350 addr_helper_thread_id, addr_cmd_buf.
17351 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17352 (in_process_agent_loaded_ust): New.
17353 (write_e_ust_not_loaded): New.
17354 (maybe_write_ipa_ust_not_loaded): New.
17355 (struct collect_static_trace_data_action): New.
17356 (enum tracepoint_type) <static_tracepoint>: New.
17357 (struct tracepoint) <handle>: Mention static tracepoints.
17358 (struct static_tracepoint_ctx): New.
17359 (CMD_BUF_SIZE): New.
17360 (add_tracepoint_action): Handle static tracepoint actions.
17361 (unprobe_marker_at): New.
17362 (clear_installed_tracepoints): Handle static tracepoints.
17363 (cmd_qtdp): Handle static tracepoints.
17364 (probe_marker_at): New.
17365 (cmd_qtstart): Handle static tracepoints.
17366 (response_tracepoint): Handle static tracepoints.
17367 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17368 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17369 (get_context_regcache): Handle static tracepoints.
17370 (do_action_at_tracepoint): Handle static tracepoint actions.
17371 (traceframe_find_block_type): Handle static trace data blocks.
17372 (traceframe_read_sdata): New.
17373 (download_tracepoints): Download static tracepoint actions.
17374 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17375 (GDB_PROBE_NAME): New.
17376 (ust_ops): New.
17377 (GET_UST_SYM): New.
17378 (USTF): New.
17379 (dlsym_ust): New.
17380 (ust_marker_to_static_tracepoint): New.
17381 (gdb_probe): New.
17382 (collect_ust_data_at_tracepoint): New.
17383 (gdb_ust_probe): New.
17384 (UNIX_PATH_MAX, SOCK_DIR): New.
17385 (gdb_ust_connect_sync_socket): New.
17386 (resume_thread, stop_thread): New.
17387 (run_inferior_command): New.
17388 (init_named_socket): New.
17389 (gdb_ust_socket_init): New.
17390 (cstr_to_hexstr): New.
17391 (next_st): New.
17392 (first_marker, next_marker): New.
17393 (response_ust_marker): New.
17394 (cmd_qtfstm, cmd_qtsstm): New.
17395 (unprobe_marker_at, probe_marker_at): New.
17396 (cmd_qtstmat, gdb_ust_thread): New.
17397 (gdb_ust_init): New.
17398 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17399 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17400 (ST_REGENTRY): New.
17401 (x86_64_st_collect_regmap): New.
17402 (X86_64_NUM_ST_COLLECT_GREGS): New.
17403 (AMD64_RIP_REGNUM): New.
17404 (supply_static_tracepoint_registers): New.
17405 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17406 (ST_REGENTRY): New.
17407 (i386_st_collect_regmap): New.
17408 (i386_NUM_ST_COLLECT_GREGS): New.
17409 (supply_static_tracepoint_registers): New.
17410 * server.c (handle_query): Handle qXfer:statictrace:read.
17411 <qSupported>: Report support for StaticTracepoints, and
17412 qXfer:statictrace:read features.
17413 * server.h (traceframe_read_sdata)
17414 (supply_static_tracepoint_registers): Declare.
17415 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17416 (unpack_varlen_hex): Include in IPA build.
17417 * Makefile.in (ustlibs, ustinc): New.
17418 (IPA_OBJS): Add remote-utils-ipa.o.
17419 ($(IPA_LIB)): Link -ldl and -lpthread.
17420 (UST_CFLAGS): New.
17421 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17422 * config.in, configure: Regenerate.
17423
9e4344e5
PA
174242010-06-20 Ian Lance Taylor <iant@google.com>
17425 Pedro Alves <pedro@codesourcery.com>
17426
17427 * linux-x86-low.c (always_true): Delete.
17428 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17429 trying to fool the compiler with always_true.
17430
c6beb2cb
PA
174312010-06-20 Pedro Alves <pedro@codesourcery.com>
17432
17433 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17434 conditions in gdbserver.
17435
d2ed6730
UW
174362010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17437
17438 * spu-low.c (spu_read_memory): Wrap around local store limit.
17439 (spu_write_memory): Likewise.
17440
4e29fb54
PA
174412010-06-15 Pedro Alves <pedro@codesourcery.com>
17442
17443 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17444 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17445 LONGEST uses.
17446 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17447 uses.
17448 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17449 uses with LONGEST uses.
17450
6a271cae
PA
174512010-06-14 Stan Shebs <stan@codesourcery.com>
17452 Pedro Alves <pedro@codesourcery.com>
17453
17454 Bytecode compiler.
17455
17456 * linux-x86-low.c: Include limits.h.
17457 (add_insns): New.
17458 (always_true): New.
17459 (EMIT_ASM): New.
17460 (EMIT_ASM32): New.
17461 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17462 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17463 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17464 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17465 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17466 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17467 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17468 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17469 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17470 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17471 (amd64_emit_void_call_2): New.
17472 (amd64_emit_ops): New.
17473 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17474 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17475 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17476 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17477 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17478 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17479 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17480 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17481 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17482 (i386_emit_stack_adjust, i386_emit_int_call_1)
17483 (i386_emit_void_call_2): New.
17484 (i386_emit_ops): New.
17485 (x86_emit_ops): New.
17486 (the_low_target): Install x86_emit_ops.
17487 * server.h (struct emit_ops): New.
17488 (get_raw_reg_func_addr): Declare.
17489 (current_insn_ptr, emit_error): Declare.
17490 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17491 (set_trace_state_variable_value): New defines.
17492 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17493 addr_get_trace_state_variable_value and
17494 addr_set_trace_state_variable_value.
17495 (symbol_list): New fields for get_raw_reg,
17496 get_trace_state_variable_value and set_trace_state_variable_value.
17497 (condfn): New typedef.
17498 (struct tracepoint): New field `compiled_cond'.
17499 (do_action_at_tracepoint): Clear compiled_cond.
17500 (get_trace_state_variable_value, set_trace_state_variable_value):
17501 Export in the IPA.
17502 (condition_true_at_tracepoint): If there's a compiled condition,
17503 run that.
17504 (current_insn_ptr, emit_error): New globals.
17505 (struct bytecode_address): New.
17506 (get_raw_reg_func_addr): New.
17507 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17508 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17509 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17510 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17511 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17512 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17513 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17514 (compile_tracepoint_condition, compile_bytecodes): New.
17515 * target.h (emit_ops): Forward declare.
17516 (struct target_ops): New field emit_ops.
17517 (target_emit_ops): New.
17518 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17519 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17520 * linux-low.c (linux_emit_ops): New.
17521 (linux_target_ops): Install it.
17522 * linux-low.h (struct linux_target_ops): New field emit_ops.
17523
92b72907
UW
175242010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17525
17526 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17527 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17528
fa593d66
PA
175292010-06-01 Pedro Alves <pedro@codesourcery.com>
17530 Stan Shebs <stan@codesourcery.com>
17531
17532 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17533 (all): Depend on $(extra_libraries).
17534 (install-only): Install the IPA.
17535 (IPA_OBJS, IPA_LIB): New.
17536 (clean): Remove the IPA lib.
17537 (IPAGENT_CFLAGS): New.
17538 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17539 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17540 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17541 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17542 * configure.ac: Check for atomic builtins support in the compiler.
17543 (IPA_DEPFILES, extra_libraries): Define.
17544 * configure.srv (ipa_obj): Add description.
17545 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17546 (i[34567]86-*-linux*): Set ipa_obj.
17547 (x86_64-*-linux*): Set ipa_obj.
17548 * linux-low.c (stabilizing_threads): New.
17549 (supports_fast_tracepoints): New.
17550 (linux_detach): Stabilize threads before detaching.
17551 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17552 the lwp is either not stabilizing, or is moving out of a jump pad.
17553 (linux_fast_tracepoint_collecting): New.
17554 (maybe_move_out_of_jump_pad): New.
17555 (enqueue_one_deferred_signal): New.
17556 (dequeue_one_deferred_signal): New.
17557 (linux_wait_for_event_1): If moving out of a jump pad, defer
17558 pending signals to later.
17559 (linux_stabilize_threads): New.
17560 (linux_wait_1): Check if threads need moving out of jump pads, and
17561 do it if so.
17562 (stuck_in_jump_pad_callback): New.
17563 (move_out_of_jump_pad_callback): New.
17564 (lwp_running): New.
17565 (linux_resume_one_lwp): Handle moving out of jump pads.
17566 (linux_set_resume_request): Dequeue deferred signals.
17567 (need_step_over_p): Also step over fast tracepoint jumps.
17568 (start_step_over): Also uninsert fast tracepoint jumps.
17569 (finish_step_over): Also reinsert fast tracepoint jumps.
17570 (linux_install_fast_tracepoint_jump): New.
17571 (linux_target_ops): Install linux_stabilize_threads and
17572 linux_install_fast_tracepoint_jump_pad.
17573 * linux-low.h (linux_target_ops) <get_thread_area,
17574 install_fast_tracepoint_jump_pad>: New fields.
17575 (struct lwp_info) <collecting_fast_tracepoint,
17576 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17577 (linux_get_thread_area): Declare.
17578 * linux-x86-low.c (jump_insn): New.
17579 (x86_get_thread_area): New.
17580 (append_insns): New.
17581 (push_opcode): New.
17582 (amd64_install_fast_tracepoint_jump_pad): New.
17583 (i386_install_fast_tracepoint_jump_pad): New.
17584 (x86_install_fast_tracepoint_jump_pad): New.
17585 (the_low_target): Install x86_get_thread_area and
17586 x86_install_fast_tracepoint_jump_pad.
17587 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17588 (struct fast_tracepoint_jump): New.
17589 (fast_tracepoint_jump_insn): New.
17590 (fast_tracepoint_jump_shadow): New.
17591 (find_fast_tracepoint_jump_at): New.
17592 (fast_tracepoint_jump_here): New.
17593 (delete_fast_tracepoint_jump): New.
17594 (set_fast_tracepoint_jump): New.
17595 (uninsert_fast_tracepoint_jumps_at): New.
17596 (reinsert_fast_tracepoint_jumps_at): New.
17597 (set_breakpoint_at): Use write_inferior_memory.
17598 (uninsert_raw_breakpoint): Use write_inferior_memory.
17599 (check_mem_read): Mask out fast tracepoint jumps.
17600 (check_mem_write): Mask out fast tracepoint jumps.
17601 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17602 (set_fast_tracepoint_jump): Declare.
17603 (delete_fast_tracepoint_jump)
17604 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17605 (reinsert_fast_tracepoint_jumps_at): Declare.
17606 * regcache.c: Don't compile many functions when building the
17607 in-process agent library.
17608 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17609 the register buffer in the heap.
17610 (free_register_cache): If the register buffer isn't owned by the
17611 regcache, don't free it.
17612 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17613 pre-existing register caches.
17614 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17615 type.
17616 (convert_ascii_to_int): : Constify `from' parameter type.
17617 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17618 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17619 the needed buffer in-place.
17620 (relocate_instruction): New.
17621 * server.c (handle_query) <qSymbols>: If the target supports
17622 tracepoints, give it a chance of looking up symbols. Report
17623 support for fast tracepoints.
17624 (handle_status): Stabilize threads.
17625 (process_serial_event): Adjust.
17626 * server.h (struct fast_tracepoint_jump): Forward declare.
17627 (struct process_info) <fast_tracepoint_jumps>: New field.
17628 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17629 (decode_X_packet, decode_M_packet): Adjust.
17630 (relocate_instruction): Declare.
17631 (in_process_agent_loaded): Declare.
17632 (tracepoint_look_up_symbols): Declare.
17633 (struct fast_tpoint_collect_status): Declare.
17634 (fast_tracepoint_collecting): Declare.
17635 (force_unlock_trace_buffer): Declare.
17636 (handle_tracepoint_bkpts): Declare.
17637 (initialize_low_tracepoint)
17638 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17639 * target.h (struct target_ops) <stabilize_threads,
17640 install_fast_tracepoint_jump_pad>: New fields.
17641 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17642 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17643 [HAVE_STDINT_H]: Include stdint.h.
17644 (trace_debug_1): Rename to ...
17645 (trace_vdebug): ... this.
17646 (trace_debug): Rename to ...
17647 (trace_debug_1): ... this. Add `level' parameter.
17648 (trace_debug): New.
17649 (ATTR_USED, ATTR_NOINLINE): New.
17650 (IP_AGENT_EXPORT): New.
17651 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17652 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17653 (about_to_request_buffer_space, trace_buffer_is_full)
17654 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17655 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17656 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17657 (traceframe_write_count, traceframes_created)
17658 (trace_state_variables)
17659 New renaming defines.
17660 (struct ipa_sym_addresses): New.
17661 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17662 (symbol_list): New.
17663 (ipa_sym_addrs): New.
17664 (all_tracepoint_symbols_looked_up): New.
17665 (in_process_agent_loaded): New.
17666 (write_e_ipa_not_loaded): New.
17667 (maybe_write_ipa_not_loaded): New.
17668 (tracepoint_look_up_symbols): New.
17669 (debug_threads) [IN_PROCESS_AGENT]: New.
17670 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17671 (UNKNOWN_SIDE_EFFECTS): New.
17672 (stop_tracing): New.
17673 (flush_trace_buffer): New.
17674 (stop_tracing_bkpt): New.
17675 (flush_trace_buffer_bkpt): New.
17676 (read_inferior_integer): New.
17677 (read_inferior_uinteger): New.
17678 (read_inferior_data_pointer): New.
17679 (write_inferior_data_pointer): New.
17680 (write_inferior_integer): New.
17681 (write_inferior_uinteger): New.
17682 (struct collect_static_trace_data_action): Delete.
17683 (enum tracepoint_type): New.
17684 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17685 <actions_str, step_actions, step_actions_str>: Only include in
17686 GDBserver.
fa593d66
PA
17687 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17688 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17689 (tracepoints): Use IP_AGENT_EXPORT.
17690 (last_tracepoint): Don't include in the IPA.
17691 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17692 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17693 (alloced_trace_state_variables): New.
17694 (trace_state_variables): Use IP_AGENT_EXPORT.
17695 (traceframe_t): Delete unused variable.
17696 (circular_trace_buffer): Don't include in the IPA.
17697 (trace_buffer_start): Delete.
17698 (struct trace_buffer_control): New.
17699 (trace_buffer_free): Delete.
17700 (struct ipa_trace_buffer_control): New.
17701 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17702 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17703 New.
17704 (trace_buffer_ctrl): New.
17705 (TRACE_BUFFER_CTRL_CURR): New.
17706 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17707 Reimplement as macros.
17708 (trace_buffer_wrap): Delete.
17709 (traceframe_write_count, traceframe_read_count)
17710 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17711 (struct tracepoint_hit_ctx) <type>: New field.
17712 (struct fast_tracepoint_ctx): New.
17713 (memory_barrier): New.
17714 (cmpxchg): New.
17715 (record_tracepoint_error): Update atomically in the IPA.
17716 (clear_inferior_trace_buffer): New.
17717 (about_to_request_buffer_space): New.
17718 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17719 updating the same buffer.
17720 (add_tracepoint): Default the tracepoint's type to trap
17721 tracepoint, and orig_size to -1.
17722 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17723 internal variables.
17724 (create_trace_state_variable): New parameter `gdb'. Handle it.
17725 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17726 (cmd_qtdp): Handle fast tracepoints.
17727 (cmd_qtdv): Adjust.
17728 (max_jump_pad_size): New.
17729 (gdb_jump_pad_head): New.
17730 (get_jump_space_head): New.
17731 (claim_jump_space): New.
17732 (sort_tracepoints): New.
17733 (MAX_JUMP_SIZE): New.
17734 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17735 IPA.
17736 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17737 support. Upload fast traceframes, and delete internal IPA
17738 breakpoints.
17739 (stop_tracing_handler): New.
17740 (flush_trace_buffer_handler): New.
17741 (cmd_qtstop): Upload fast tracepoints.
17742 (response_tracepoint): Handle fast tracepoints.
17743 (tracepoint_finished_step): Upload fast traceframes. Set the
17744 tracepoint hit context's tracepoint type.
17745 (handle_tracepoint_bkpts): New.
17746 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17747 type. Add comment about fast tracepoints.
17748 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17749 non-existing action_str field.
17750 (get_context_regcache): Handle fast tracepoints.
17751 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17752 to the regcache.
17753 (fast_tracepoint_from_jump_pad_address): New.
17754 (fast_tracepoint_from_ipa_tpoint_address): New.
17755 (collecting_t): New.
17756 (force_unlock_trace_buffer): New.
17757 (fast_tracepoint_collecting): New.
17758 (collecting): New.
17759 (gdb_collect): New.
17760 (write_inferior_data_ptr): New.
17761 (target_tp_heap): New.
17762 (target_malloc): New.
17763 (download_agent_expr): New.
17764 (UALIGN): New.
17765 (download_tracepoints): New.
17766 (download_trace_state_variables): New.
17767 (upload_fast_traceframes): New.
17768 (IPA_FIRST_TRACEFRAME): New.
17769 (IPA_NEXT_TRACEFRAME_1): New.
17770 (IPA_NEXT_TRACEFRAME): New.
17771 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17772 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17773 (gdb_jump_pad_buffer_end): New.
17774 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17775 (initialize_tracepoint): Adjust.
17776 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17777 buffer. Initialize the low module.
17778 * utils.c (PREFIX, TOOLNAME): New.
17779 (malloc_failure): Use PREFIX.
17780 (error): In the IPA, an error causes an exit.
17781 (fatal, warning): Use PREFIX.
17782 (internal_error): Use TOOLNAME.
17783 (NUMCELLS): Increase to 10.
17784 * configure, config.in: Regenerate.
17785
d149dd1d
PA
177862010-06-01 Pedro Alves <pedro@codesourcery.com>
17787
17788 * server.c (handle_query) <qSupported>: Do two passes over the
17789 qSupported string to avoid nesting strtok.
17790
f6528abd
JK
177912010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17792
17793 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17794 (CDEPS): New.
17795 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17796 -Wl,--dynamic-list.
17797 * configure: Regenerate.
17798 * proc-service.list: New.
17799
ca2a87a0
JK
178002010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17801
17802 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17803 New comment.
17804
363a6e9f
OS
178052010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17806
17807 * gdbreplay.c (remote_open): Check error return from socket() call by
17808 its equality to -1 not by it being negative.
17809 * remote-utils.c (remote_open): Likewise.
17810
d23b6cb1
PA
178112010-05-23 Pedro Alves <pedro@codesourcery.com>
17812
17813 * config.h: Regenerate.
17814
28d3cf85
MK
178152010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17816
17817 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17818 doesn't provide PTRACE_GET_THREAD_AREA.
17819
fea36a59
MK
178202010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17821
17822 * linux-m68k-low.c: Include <asm/ptrace.h>
17823 (ps_get_thread_area): Implement.
17824
24b066ba
DE
178252010-05-03 Doug Evans <dje@google.com>
17826
17827 * event-loop.c (struct callback_event): New struct.
17828 (callback_list): New global.
17829 (append_callback_event, delete_callback_event): New functions.
17830 (process_callback): New function.
17831 (start_event_loop): Call it.
17832 * remote-utils.c (NOT_SCHEDULED): Define.
17833 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17834 moved out of readchar.
17835 (readchar): Rewrite. Call reschedule before returning.
17836 (reset_readchar): New function.
17837 (remote_close): Call it.
17838 (process_remaining, reschedule): New functions.
17839 * server.h (callback_handler_func): New typedef.
17840 (append_callback_event, delete_callback_event): Declare.
17841
9836d6ea
PA
178422010-05-03 Pedro Alves <pedro@codesourcery.com>
17843
17844 * proc-service.c (ps_pglobal_lookup): Use
17845 thread_db_look_up_one_symbol.
17846 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17847 parameter. Use it instead of all_symbols_looked_up.
17848 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17849 field.
17850 (all_symbols_looked_up): Don't declare.
17851 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17852 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17853 field.
17854 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17855 Set all_symbols_looked_up here.
17856 (thread_db_look_up_one_symbol): New.
17857 (thread_db_get_tls_address): Adjust.
17858 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17859 thread_db object on the heap, and tentatively set it in the
17860 process structure.
17861 (thread_db_init): Don't set all_symbols_looked_up here.
17862 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17863
7984d532
PA
178642010-05-03 Pedro Alves <pedro@codesourcery.com>
17865
17866 * linux-low.c (linux_kill, linux_detach): Adjust.
17867 (status_pending_p_callback): Remove redundant statement. Check
17868 for !TARGET_WAITIKIND_IGNORE, instead of
17869 TARGET_WAITKIND_STOPPED.
17870 (handle_tracepoints): Make sure LWP is locked. Adjust.
17871 (linux_wait_for_event_1): Adjust.
17872 (linux_cancel_breakpoints): New.
17873 (unsuspend_one_lwp): New.
17874 (unsuspend_all_lwps): New.
17875 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17876 (send_sigstop_callback): Change return type to int, add new
17877 `except' parameter and handle it.
17878 (suspend_and_send_sigstop_callback): New.
17879 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17880 pass them down. If SUSPEND, also increment the lwp's suspend
17881 count.
17882 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17883 (need_step_over_p): Don't consider suspended LWPs.
17884 (start_step_over): Adjust.
17885 (proceed_one_lwp): Change return type to int, add new `except'
17886 parameter and handle it.
17887 (unsuspend_and_proceed_one_lwp): New.
17888 (proceed_all_lwps): Use find_inferior instead of
17889 for_each_inferior.
17890 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17891 also decrement the suspend count of LWPs. Pass `except' down,
17892 instead of hacking its suspend count.
17893 (linux_pause_all): Add `freeze' parameter. Adjust.
17894 (linux_unpause_all): New.
17895 (linux_target_ops): Install linux_unpause_all.
17896 * server.c (handle_status): Adjust.
17897 * target.h (struct target_ops): New fields `unpause_all' and
17898 `cancel_breakpoints'. Add new parameter to `pause_all'.
17899 (pause_all): Add new `freeze' parameter.
17900 (unpause_all): New.
17901 (cancel_breakpoints): New.
17902 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17903 cancel breakpoints.
17904 (cmd_qtstart): Pause threads.
17905 (stop_tracing): Pause threads, and cancel breakpoints.
17906 * win32-low.c (win32_target_ops): Adjust.
17907
e471f25b
PA
179082010-05-03 Pedro Alves <pedro@codesourcery.com>
17909
17910 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17911 the inferior right away from here...
17912 (linux_wait_1): ... to here, and adjust to check the thread's
17913 last_resume_kind instead of the lwp's step or stop_expected flags.
17914
1915ef4f
PA
179152010-05-02 Pedro Alves <pedro@codesourcery.com>
17916
17917 * README: Use consistent `GDB' and `GDBserver' spellings.
17918
f9e39928
PA
179192010-05-02 Pedro Alves <pedro@codesourcery.com>
17920
17921 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17922 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17923 (linux_detach_one_lwp): Assume the lwp is stopped.
17924 (any_thread_of): Delete.
17925 (linux_detach): Stop all lwps here. Don't blindly delete all
17926 breakpoints.
17927 (delete_lwp_callback): New.
17928 (linux_mourn): Delete all lwps of the process that is gone.
17929 (linux_wait_1): Don't delete the last lwp of the process here.
17930 * mem-break.h (mark_breakpoints_out): Declare.
17931 * mem-break.c (mark_breakpoints_out): New.
17932 (free_all_breakpoints): Use it.
17933 * server.c (handle_target_event): If the process is gone, mark
17934 breakpoints out.
17935 * thread-db.c (struct thread_db) <create_bp>: New field.
17936 (thread_db_enable_reporting): Fix prototype. Store a thread event
17937 breakpoint reference in the thread_db struct.
17938 (thread_db_load_search): Clear the thread_db object.
17939 (try_thread_db_load_1): Ditto.
17940 (switch_to_process): New.
17941 (disable_thread_event_reporting): Use it.
17942 (remove_thread_event_breakpoints): New.
17943 (thread_db_detach, thread_db_mourn): Use it.
17944
1e7fc18c
PA
179452010-05-01 Pedro Alves <pedro@codesourcery.com>
17946
17947 * linux-low.c (linux_enable_event_reporting): New.
17948 (linux_wait_for_event_1, handle_extended_wait): Use it.
17949
02fc4de7
PA
179502010-04-30 Pedro Alves <pedro@codesourcery.com>
17951
17952 * linux-low.c (linux_kill_one_lwp, linux_kill)
17953 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17954 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17955 SIGSTOP even if the LWP is stopped.
17956 (send_sigstop_callback): New.
17957 (stop_all_lwps): Use send_sigstop_callback instead.
17958 (linux_resume_one_thread): Adjust.
17959 (proceed_one_lwp): Still proceed an LWP that the client has
17960 requested to stop, if we haven't reported it as stopped yet. Make
17961 sure that LWPs the client want stopped, have a pending SIGSTOP.
17962
bc3b5632
DE
179632010-04-26 Doug Evans <dje@google.com>
17964
ae1ada35
DE
17965 * server.c (handle_general_set): Make static.
17966
bc3b5632
DE
17967 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17968 Print received char after testing for error/eof instead of before.
17969 (input_interrupt): Tweak comment.
17970
65730243
DE
179712010-04-23 Doug Evans <dje@google.com>
17972
17973 * server.c (start_inferior): Print inferior argv if --debug.
17974
a8ae7dc0
AR
179752010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17976
17977 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17978 * nto-x86-low.c: Include server.h
17979
1c07cc19
PM
179802010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17981
17982 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17983 be consistent with other sources of this directory.
17984 (init_registers_amd64): Correct name of source file of this function
17985 in the comment.
17986
e0a61e09
PM
179872010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17988
17989 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17990 64-bit executables.
17991
54709339
PM
179922010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17993
17994 * win32-i386-low.c: Add 64-bit support.
17995 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17996 (init_registers_amd64): Declare.
17997 (mappings): Add 64-bit version of array.
17998 (init_windows_x86): New function.
17999 (the_low_target): Change init_arch field to init_windows_x86.
18000
e8f0053d
PM
180012010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18002
18003 * win32-low.c: Adapt to support also 64-bit architecture.
18004 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18005 (get_image_name): Use SIZE_T type for local variable `done'.
18006 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18007 (toolhelp_get_dll_name): Idem.
18008 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18009 Use uintptr_t typecast to avoid warning.
18010 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18011 (handle_exception): Use phex_nz to avoid warning.
18012 (win32_wait): Remove unused local variable `process'.
18013
c481e77e
PM
180142010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18015
18016 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18017 `amd64-avx.o'.
18018
12ea4b69
PM
180192010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18020
18021 * configure.ac: Use `ws2_32' library for srv_mingw.
18022 * configure: Regenerate.
18023 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18024 * remote-utils.c: Likewise.
18025
f6d1620c
L
180262010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18027
18028 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18029 if __x86_64__ is defined.
18030
8e642873
PM
180312010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18032
18033 * configure: Regenerate.
18034
711e434b
PM
180352010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18036
18037 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18038 * target.h (target_ops): New get_tib_address field.
18039 * win32-low.h (win32_thread_info): Add thread_local_base field.
18040 * win32-low.c (child_add_thread): Add tlb argument.
18041 Set thread_local_base field to TLB.
18042 (get_child_debug_event): Adapt to child_add_thread change.
18043 (win32_get_tib_address): New function.
18044 (win32_target_ops): Set get_tib_address field to
18045 win32_get_tib_address.
18046 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18047
505106cd
PA
180482010-04-12 Pedro Alves <pedro@codesourcery.com>
18049
505106cd
PA
18050 * linux-low.c (linux_mourn): Also remove the process.
18051 * server.c (handle_target_event): Don't remove the process here.
18052 * nto-low.c (nto_mourn): New.
18053 (nto_target_ops): Install it.
18054 * spu-low.c (spu_mourn): New.
18055 (spu_target_ops): Install it.
18056 * win32-low.c (win32_mourn): New.
18057 (win32_target_ops): Install it.
18058
e8470a06
PA
180592010-04-12 Pedro Alves <pedro@codesourcery.com>
18060
18061 * server.h (buffer_xml_printf): Remove redundant `;'.
18062
45ba0d02
PA
180632010-04-12 Pedro Alves <pedro@codesourcery.com>
18064
18065 * regcache.c (set_register_cache): Invalidate regcaches before
18066 changing the register cache layout.
18067 (regcache_invalidate_one): Allow a NULL regcache.
18068 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18069 regcaches before changing the register cache layout or the target
18070 regsets.
18071
59e04013
L
180722010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18073
18074 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18075 variable warning on Linux/x86-64.
18076
8336d594
PA
180772010-04-11 Pedro Alves <pedro@codesourcery.com>
18078
18079 GDBserver disconnected tracing support.
18080
18081 * linux-low.c (linux_remove_process): Delete.
18082 (add_lwp): Don't set last_resume_kind here.
18083 (linux_kill): Use `mourn'.
18084 (linux_detach): Use `thread_db_detach', and `mourn'.
18085 (linux_mourn): New.
18086 (linux_attach_lwp_1): Adjust comment.
18087 (linux_attach): last_resume_kind moved the thread_info; adjust.
18088 (status_pending_p_callback): Adjust.
18089 (linux_wait_for_event_1): Adjust.
18090 (count_events_callback, select_singlestep_lwp_callback)
18091 (select_event_lwp_callback, cancel_breakpoints_callback)
18092 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18093 (proceed_one_lwp): Adjust.
18094 (linux_async): Add debug output.
18095 (linux_thread_stopped): New.
18096 (linux_pause_all): New.
18097 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18098 linux_pause_all.
18099 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18100 (thread_db_free): Delete declaration.
18101 (thread_db_detach, thread_db_mourn): Declare.
18102 * thread-db.c (thread_db_init): Use thread_db_mourn.
18103 (thread_db_free): Delete, split in two.
18104 (disable_thread_event_reporting): New.
18105 (thread_db_detach): New.
18106 (thread_db_mourn): New.
18107
18108 * server.h (struct thread_info) <last_resume_kind>: New field.
18109 <attached>: Add comment.
18110 <gdb_detached>: New field.
18111 (handler_func): Change return type to int.
18112 (handle_serial_event, handle_target_event): Ditto.
18113 (gdb_connected): Declare.
18114 (tracing): Delete.
18115 (disconnected_tracing): Declare.
18116 (stop_tracing): Declare.
18117
18118 * server.c (handle_query) <qSupported>: Report support for
18119 disconnected tracing.
18120 (queue_stop_reply_callback): Account for running threads.
18121 (gdb_wants_thread_stopped): New.
18122 (gdb_wants_all_threads_stopped): New.
18123 (gdb_reattached_process): New.
18124 (handle_status): Clear the `gdb_detached' flag of all processes.
18125 In all-stop, stop all threads.
18126 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18127 (process_serial_event): If the remote connection breaks, or if an
18128 exit was forced with "monitor exit", force an event loop exit.
18129 Handle disconnected tracing on detach.
18130 (handle_serial_event): Adjust.
18131 (handle_target_event): If GDB isn't connected, forward events back
18132 to the inferior, unless the last process exited, in which case,
18133 exit gdbserver. Adjust interface.
18134
18135 * remote-utils.c (remote_open): Don't block in accept. Instead
18136 register an event loop source on the listen socket file
18137 descriptor. Refactor bits into ...
18138 (listen_desc): ... this new global.
18139 (gdb_connected): ... this new function.
18140 (enable_async_notification): ... this new function.
18141 (handle_accept_event): ... this new function.
18142 (remote_close): Clear remote_desc.
18143
18144 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18145
18146 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18147 New fields.
18148 (mourn_inferior): Define.
18149 (target_process_qsupported): Avoid the dangling else problem.
18150 (thread_stopped): Define.
18151 (pause_all): Define.
18152 (target_waitstatus_to_string): Declare.
18153 * target.c (target_waitstatus_to_string): New.
18154
18155 * tracepoint.c (tracing): Make extern.
18156 (disconnected_tracing): New.
18157 (stop_tracing): Make extern. Handle tracing stops due to GDB
18158 disconnecting.
18159 (cmd_qtdisconnected): New.
18160 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18161 (handle_tracepoint_general_set): Handle QTDisconnected.
18162
18163 * event-loop.c (event_handler_func): Change return type to int.
18164 (process_event): Bail out if the event handler wants the event
18165 loop to stop.
18166 (handle_file_event): Ditto.
18167 (start_event_loop): Bail out if the event handler wants the event
18168 loop to stop.
18169
18170 * nto-low.c (nto_target_ops): Adjust.
18171 * spu-low.c (spu_wait): Don't remove the process here.
18172 (spu_target_ops): Adjust.
18173 * win32-low.c (win32_wait): Don't remove the process here.
18174 (win32_target_ops): Adjust.
18175
5d267c4c
PA
181762010-04-11 Pedro Alves <pedro@codesourcery.com>
18177
18178 * regcache.c (realloc_register_cache): Invalidate inferior's
18179 regcache before recreating it.
18180
623ccd72
PA
181812010-04-09 Pedro Alves <pedro@codesourcery.com>
18182
18183 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18184
219f2f23
PA
181852010-04-09 Stan Shebs <stan@codesourcery.com>
18186 Pedro Alves <pedro@codesourcery.com>
18187
18188 * server.h (LONGEST): New.
18189 (struct thread_info) <while_stepping>: New field.
18190 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18191 Declare.
18192 (initialize_tracepoint, handle_tracepoint_general_set)
18193 (handle_tracepoint_query, tracepoint_finished_step)
18194 (tracepoint_was_hit, release_while_stepping_state_list):
18195 (current_traceframe): Declare.
18196 * server.c (handle_general_set): Handle tracepoint packets.
18197 (read_memory): New.
18198 (write_memory): New.
18199 (handle_search_memory_1): Use read_memory.
18200 (handle_query): Report support for conditional tracepoints, trace
18201 state variables, and tracepoint sources. Handle tracepoint
18202 queries.
18203 (main): Initialize the tracepoints module.
18204 (process_serial_event): Handle traceframe reads/writes.
18205
18206 * linux-low.c (handle_tracepoints): New.
18207 (linux_wait_1): Call it.
18208 (linux_resume_one_lwp): Handle while-stepping.
18209 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18210 (linux_target_ops): Install them.
18211 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18212 New field.
18213 * linux-x86-low.c (x86_supports_tracepoints): New.
18214 (the_low_target). Install it.
18215
18216 * mem-break.h (delete_breakpoint): Declare.
18217 * mem-break.c (delete_breakpoint): Make external.
18218
18219 * target.h (struct target_ops): Add `supports_tracepoints',
18220 `read_pc', and `write_pc' fields.
18221 (target_supports_tracepoints): Define.
18222 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18223 (phex_nz): New.
18224
18225 * regcache.h (struct regcache) <registers_owned>: New field.
18226 (init_register_cache, regcache_cpy): Declare.
18227 (regcache_read_pc, regcache_write_pc): Declare.
18228 (register_cache_size): Declare.
18229 (supply_regblock): Declare.
18230 * regcache.c (init_register_cache): New.
18231 (new_register_cache): Use it.
18232 (regcache_cpy): New.
18233 (register_cache_size): New.
18234 (supply_regblock): New.
18235 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18236
219f2f23
PA
18237 * tracepoint.c: New.
18238
18239 * Makefile.in (OBS): Add tracepoint.o.
18240 (tracepoint.o): New rule.
18241
3a13a53b
L
182422010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18243
18244 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18245 (i386-mmx.o): New.
18246 (i386-mmx.c): Likewise.
18247 (i386-mmx-linux.o): Likewise.
18248 (i386-mmx-linux.c): Likewise.
18249
18250 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18251 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18252 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18253 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18254
18255 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18256 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18257 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18258
1570b33e
L
182592010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18260
18261 * Makefile.in (clean): Updated.
18262 (i386-avx.o): New.
18263 (i386-avx.c): Likewise.
18264 (i386-avx-linux.o): Likewise.
18265 (i386-avx-linux.c): Likewise.
18266 (amd64-avx.o): Likewise.
18267 (amd64-avx.c): Likewise.
18268 (amd64-avx-linux.o): Likewise.
18269 (amd64-avx-linux.c): Likewise.
18270
18271 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18272 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18273 (srv_amd64_regobj): Add amd64-avx.o.
18274 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18275 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18276 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18277 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18278 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18279 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18280 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18281
18282 * i387-fp.c: Include "i386-xstate.h".
18283 (i387_xsave): New.
18284 (i387_cache_to_xsave): Likewise.
18285 (i387_xsave_to_cache): Likewise.
18286 (x86_xcr0): Likewise.
18287
18288 * i387-fp.h (i387_cache_to_xsave): Likewise.
18289 (i387_xsave_to_cache): Likewise.
18290 (x86_xcr0): Likewise.
18291
18292 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18293 * linux-crisv32-low.c (target_regsets): Likewise.
18294 * linux-m68k-low.c (target_regsets): Likewise.
18295 * linux-mips-low.c (target_regsets): Likewise.
18296 * linux-ppc-low.c (target_regsets): Likewise.
18297 * linux-s390-low.c (target_regsets): Likewise.
18298 * linux-sh-low.c (target_regsets): Likewise.
18299 * linux-sparc-low.c (target_regsets): Likewise.
18300 * linux-xtensa-low.c (target_regsets): Likewise.
18301
18302 * linux-low.c: Include <sys/uio.h>.
18303 (regsets_fetch_inferior_registers): Support nt_type.
18304 (regsets_store_inferior_registers): Likewise.
18305 (linux_process_qsupported): New.
18306 (linux_target_ops): Add linux_process_qsupported.
18307
18308 * linux-low.h (regset_info): Add nt_type.
18309 (linux_target_ops): Add process_qsupported.
18310
18311 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18312 and <sys/uio.h>.
18313 (init_registers_i386_avx_linux): New.
18314 (init_registers_amd64_avx_linux): Likewise.
18315 (xmltarget_i386_linux_no_xml): Likewise.
18316 (xmltarget_amd64_linux_no_xml): Likewise.
18317 (PTRACE_GETREGSET): Likewise.
18318 (PTRACE_SETREGSET): Likewise.
18319 (x86_fill_xstateregset): Likewise.
18320 (x86_store_xstateregset): Likewise.
18321 (use_xml): Likewise.
18322 (x86_linux_update_xmltarget): Likewise.
18323 (x86_linux_process_qsupported): Likewise.
18324 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18325 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18326 init_registers_i386_linux here. Call
18327 x86_linux_update_xmltarget.
18328 (the_low_target): Add x86_linux_process_qsupported.
18329
18330 * server.c (handle_query): Call target_process_qsupported.
18331
18332 * target.h (target_ops): Add process_qsupported.
18333 (target_process_qsupported): New.
18334
fc7238bb
PA
183352010-04-03 Pedro Alves <pedro@codesourcery.com>
18336
18337 * inferiors.c (add_thread): Set last_status kind to
18338 TARGET_WAITKIND_IGNORE.
18339 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18340 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18341 (linux_wait_1): Move `thread' local definition to block that uses
18342 it. Don't NULL initialize `event_child'.
18343 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18344 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18345 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18346
bdabb078
PA
183472010-04-01 Pedro Alves <pedro@codesourcery.com>
18348
18349 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18350 an extended waitstatus, or by a watchpoint.
18351 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18352 thread was stepping or has been stopped by a watchpoint.
18353
d3bbe7a0
PA
183542010-04-01 Pedro Alves <pedro@codesourcery.com>
18355
18356 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18357 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18358 of another, then delete the previous, and validate all
18359 breakpoints.
18360 (validate_inserted_breakpoint): New.
18361 (delete_disabled_breakpoints): New.
18362 (validate_breakpoints): New.
18363 (check_mem_read): Validate breakpoints before trusting their
18364 shadow. Delete disabled breakpoints.
18365 (check_mem_write): Validate breakpoints before trusting they
18366 should be inserted. Delete disabled breakpoints.
18367 * mem-break.h (validate_breakpoints):
18368 * server.c (handle_query): Validate breakpoints when we see a
18369 qSymbol query.
18370
8b07ae33
PA
183712010-04-01 Pedro Alves <pedro@codesourcery.com>
18372
18373 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18374 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18375 if we could tell there's a GDB breakpoint at stop_pc.
18376 (need_step_over_p): Don't do a step over if we find a GDB
18377 breakpoint at the resume PC.
18378
18379 * mem-break.c (struct raw_breakpoint): New.
18380 (enum bkpt_type): New type `gdb_breakpoint'.
18381 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18382 fields. New field `raw'.
18383 (find_raw_breakpoint_at): New.
18384 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18385 breakpoint instead.
18386 (set_breakpoint_at): Adjust.
18387 (delete_raw_breakpoint): New.
18388 (release_breakpoint): New.
18389 (delete_breakpoint): Rename to...
18390 (delete_breakpoint_1): ... this. Add proc parameter. Use
18391 release_breakpoint. Return ENOENT.
18392 (delete_breakpoint): Reimplement.
18393 (find_breakpoint_at): Delete.
18394 (find_gdb_breakpoint_at): New.
18395 (delete_breakpoint_at): Delete.
18396 (set_gdb_breakpoint_at): New.
18397 (delete_gdb_breakpoint_at): New.
18398 (gdb_breakpoint_here): New.
18399 (set_reinsert_breakpoint): Use release_breakpoint.
18400 (uninsert_breakpoint): Rename to ...
18401 (uninsert_raw_breakpoint): ... this.
18402 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18403 (reinsert_raw_breakpoint): Change parameter type to
18404 raw_breakpoint.
18405 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18406 instead.
18407 (check_breakpoints): Adjust. Use release_breakpoint.
18408 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18409 (breakpoint_inserted_here): Ditto.
18410 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18411 Don't trust the breakpoint's shadow if it is not inserted.
18412 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18413 (delete_all_breakpoints): Adjust.
18414 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18415 use delete_breakpoint_1.
18416
18417 * mem-break.h (breakpoints_supported): Delete declaration.
18418 (set_gdb_breakpoint_at): Declare.
18419 (gdb_breakpoint_here): Declare.
18420 (delete_breakpoint_at): Delete.
18421 (delete_gdb_breakpoint_at): Declare.
18422
18423 * server.h (struct raw_breakpoint): Forward declare.
18424 (struct process_info): New field `raw_breakpoints'.
18425
18426 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18427 breakpoints.
18428
6bf5e0ba
PA
184292010-03-24 Pedro Alves <pedro@codesourcery.com>
18430
18431 * linux-low.c (status_pending_p_callback): Fix comment.
18432 (linux_wait_for_event_1): Move most of the internal breakpoint
18433 handling from here...
18434 (linux_wait_1): ... to here.
18435 (count_events_callback): New.
18436 (select_singlestep_lwp_callback): New.
18437 (select_event_lwp_callback): New.
18438 (cancel_breakpoints_callback): New.
18439 (select_event_lwp): New.
18440 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18441 priority to all LWPs that have had events that should be reported
18442 to the client. Cancel breakpoints when about to reporting the
18443 event to the client, not while stopping lwps. No longer cancel
18444 finished single-steps here.
18445 (cancel_finished_single_step): Delete.
18446 (cancel_finished_single_steps): Delete.
18447
414a389f
PA
184482010-03-24 Pedro Alves <pedro@codesourcery.com>
18449
18450 * mem-break.c (enum bkpt_type): New.
18451 (struct breakpoint): New field `type'.
18452 (set_breakpoint_at): Change return type to struct breakpoint
18453 pointer. Set type to `other_breakpoint' by default.
18454 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18455 in the breakpoint list.
18456 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18457 (reinsert_breakpoint): Rename to ...
18458 (reinsert_raw_breakpoint): ... this.
18459 (reinsert_breakpoints_at): Adjust.
18460 * mem-break.h (struct breakpoint): Declare.
18461 (set_breakpoint_at): Change return type to struct breakpoint
18462 pointer.
18463
2280c721
PA
184642010-03-24 Pedro Alves <pedro@codesourcery.com>
18465
18466 * server.c (handle_query): Assign, not compare.
18467
d50171e4
PA
184682010-03-24 Pedro Alves <pedro@codesourcery.com>
18469
18470 Teach linux gdbserver to step-over-breakpoints.
18471
18472 * linux-low.c (can_hardware_single_step): New.
18473 (supports_breakpoints): New.
18474 (handle_extended_wait): If stopping threads, read the stop pc of
18475 the new cloned LWP.
18476 (get_pc): New.
18477 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18478 low target doesn't support retrieving the PC.
18479 (add_lwp): Set last_resume_kind to resume_continue.
18480 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18481 (linux_attach): Don't clear stop_expected. Set the lwp's
18482 last_resume_kind to resume_stop.
18483 (linux_detach_one_lwp): Don't check for removed breakpoints.
18484 (check_removed_breakpoint): Delete.
18485 (status_pending_p): Rename to ...
18486 (status_pending_p_callback): ... this. Don't check for removed
18487 breakpoints. Don't consider threads that are stopped from GDB's
18488 perspective.
18489 (linux_wait_for_lwp): Always read the stop_pc here.
18490 (cancel_breakpoint): New.
18491 (step_over_bkpt): New global.
18492 (linux_wait_for_event_1): Implement stepping over breakpoints.
18493 (gdb_wants_lwp_stopped): New.
18494 (gdb_wants_all_stopped): New.
18495 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18496 single-step traps here. Store the thread's last reported target
18497 wait status.
18498 (send_sigstop): Don't clear stop_expected. Always set it,
18499 instead.
18500 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18501 (cancel_finished_single_step): New.
18502 (cancel_finished_single_steps): New.
18503 (wait_for_sigstop): Don't cancel finished single-step traps here.
18504 (linux_resume_one_lwp): Don't check for removed breakpoints.
18505 Don't set `step' on non-hardware step archs.
18506 (linux_set_resume_request): Ignore resume_stop requests if already
18507 stopping or stopped. Set the lwp's last_resume_kind.
18508 (resume_status_pending_p): Don't check for removed breakpoints.
18509 (need_step_over_p): New.
18510 (start_step_over): New.
18511 (finish_step_over): New.
18512 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18513 requests. Clear the thread's last reported target waitstatus.
18514 Don't use the `suspended' flag. Don't consider pending breakpoints.
18515 (linux_resume): Start a step-over if necessary.
18516 (proceed_one_lwp): New.
18517 (proceed_all_lwps): New.
18518 (unstop_all_lwps): New.
18519 * linux-low.h (struct lwp_info): Rewrite comment for the
18520 `suspended' flag. Add the `stop_pc' field. Delete the
18521 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18522 Add `'last_resume_kind' and `need_step_over' fields.
18523 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18524 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18525 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18526 (set_raw_breakpoint_at): New.
18527 (set_breakpoint_at): Rewrite to use it.
18528 (reinsert_breakpoint_handler): Delete.
18529 (set_reinsert_breakpoint): New.
18530 (reinsert_breakpoint_by_bp): Delete.
18531 (delete_reinsert_breakpoints): New.
18532 (uninsert_breakpoint): Rewrite.
18533 (uninsert_breakpoints_at): New.
18534 (reinsert_breakpoint): Rewrite.
18535 (reinsert_breakpoints_at): New.
18536 (check_breakpoints): Rewrite.
18537 (breakpoint_here): New.
18538 (breakpoint_inserted_here): New.
18539 (check_mem_read): Adjust.
18540 * mem-break.h (breakpoints_supported, breakpoint_here)
18541 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18542 (reinsert_breakpoint_by_bp): Delete declaration.
18543 (delete_reinsert_breakpoints): Declare.
18544 (reinsert_breakpoint): Delete declaration.
18545 (reinsert_breakpoints_at): Declare.
18546 (uninsert_breakpoint): Delete declaration.
18547 (uninsert_breakpoints_at): Declare.
18548 (check_breakpoints): Adjust prototype.
18549 * server.h: Adjust include order.
18550 (struct thread_info): Declare here. Add a `last_status' field.
18551
30ba68cb
MS
185522010-03-23 Michael Snyder <msnyder@vmware.com>
18553
18554 * server.c (crc32): New function.
18555 (handle_query): Add handling for 'qCRC:' request.
18556
b9a881c2
PA
185572010-03-23 Pedro Alves <pedro@codesourcery.com>
18558
18559 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18560 lwp had been stopped by a watchpoint.
18561
e92d13d5
PA
185622010-03-16 Pedro Alves <pedro@codesourcery.com>
18563
18564 * server.h (internal_error): Declare.
18565 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18566 * utils.c (internal_error): New function.
18567
64daa791
AS
185682010-03-15 Andreas Schwab <schwab@redhat.com>
18569
18570 * configure.srv: Fix typo setting srv_regobj.
18571
f52cd8cd
PA
185722010-03-15 Pedro Alves <pedro@codesourcery.com>
18573
18574 * linux-low.c (fetch_register): Avoid passing a non string literal
18575 format to `error'.
18576 (usr_store_inferior_registers): Ditto.
18577
93ae6fdc
PA
185782010-03-14 Pedro Alves <pedro@codesourcery.com>
18579
18580 * linux-low.c (linux_write_memory): Bail out early if peeking
18581 memory failed.
18582
c3adc08c
PA
185832010-03-14 Pedro Alves <pedro@codesourcery.com>
18584
18585 * linux-low.h (struct lwp_info): New fields
18586 `stopped_by_watchpoint' and `stopped_data_address'.
18587 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18588 here, and cache them in the lwp object.
18589 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18590 directly.
18591 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18592 field.
18593 (linux_stopped_by_watchpoint): Rewrite.
18594 (linux_stopped_data_address): Rewrite.
18595
bce522a2
PA
185962010-03-06 Simo Melenius <simo.melenius@iki.fi>
18597
18598 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18599 switching the current inferior, not before.
18600
90884b2b
L
186012010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18602
18603 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18604 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18605 i386-linux.c and amd64-linux.c.
18606 (reg-i386.o): Removed.
18607 (reg-i386.c): Likewise.
18608 (reg-i386-linux.o): Likewise.
18609 (reg-i386-linux.c): Likewise.
18610 (reg-x86-64.o): Likewise.
18611 (reg-x86-64.c): Likewise.
18612 (reg-x86-64-linux.o): Likewise.
18613 (reg-x86-64-linux.c): Likewise.
18614 (i386.o): New.
18615 (i386.c): Likewise.
18616 (i386-linux.o): Likewise.
18617 (i386-linux.c): Likewise.
18618 (amd64.o): Likewise.
18619 (amd64.c): Likewise.
18620 (amd64-linux.o): Likewise.
18621 (amd64-linux.c): Likewise.
18622
18623 * configure.srv (srv_i386_regobj): New.
18624 (srv_i386_linux_regobj): Likewise.
18625 (srv_amd64_regobj): Likewise.
18626 (srv_amd64_linux_regobj): Likewise.
18627 (srv_i386_32bit_xmlfiles): Likewise.
18628 (srv_i386_64bit_xmlfiles): Likewise.
18629 (srv_i386_xmlfiles): Likewise.
18630 (srv_amd64_xmlfiles): Likewise.
18631 (srv_i386_linux_xmlfiles): Likewise.
18632 (srv_amd64_linux_xmlfiles): Likewise.
18633 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18634 srv_xmlfiles to $srv_i386_xmlfiles.
18635 (i[34567]86-*-mingw32ce*): Likewise.
18636 (i[34567]86-*-mingw*): Likewise.
18637 (i[34567]86-*-nto*): Likewise.
18638 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18639 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18640 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18641 (x86_64-*-linux*): Likewise.
18642
18643 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18644 (init_registers_amd64_linux): New.
18645 (x86_arch_setup): Replace init_registers_x86_64_linux with
18646 init_registers_amd64_linux.
18647
193f13e6
MK
186482010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18649
18650 * configure.ac: Check for libdl. If it is not available link against
18651 static libthread_db.
18652 * configure: Regenerate.
18653
85d721b8
PA
186542010-02-22 Pedro Alves <pedro@codesourcery.com>
18655
18656 PR9605
18657
18658 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18659 handing a read watchpoint.
18660 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18661
6076632b
DE
186622010-02-12 Doug Evans <dje@google.com>
18663
18664 * linux-low.c (linux_supports_tracefork_flag): Document.
18665 (linux_look_up_symbols): Add comment.
18666
3327ccf7
L
186672010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18668
18669 * regcache.c (supply_register): Clear regcache if buf is NULL.
18670
0718675c 186712010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18672 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18673
18674 * inferiors.c (find_inferior): Add function documentation.
18675 (unloaded_dll): Handle the case where the unloaded dll has not
18676 been previously registered in the dll list.
18677
177321bd
DJ
186782010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18679
18680 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18681 (thumb2_breakpoint): New.
18682 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18683
2b009048
DJ
186842010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18685
18686 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18687 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18688 breakpoints.
18689
3be029c7
PA
186902010-01-21 Pedro Alves <pedro@codesourcery.com>
18691
18692 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18693
18f5de3b
JK
186942010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18695
18696 * linux-s390-low.c (s390_collect_ptrace_register)
18697 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18698
3743bb4f
DE
186992010-01-21 Doug Evans <dje@google.com>
18700
14ce3065
DE
18701 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18702 (PTRACE_ARG4_TYPE): New macro.
18703 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18704 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18705 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18706 (usr_store_inferior_registers): Ditto.
18707 (linux_read_memory, linux_write_memory): Ditto.
18708 (linux_test_for_tracefork): Ditto.
18709
3743bb4f
DE
18710 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18711 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18712
8b315be5
PA
187132010-01-21 Pedro Alves <pedro@codesourcery.com>
18714
18715 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18716 target.
18717
85492558
PA
187182010-01-21 Pedro Alves <pedro@codesourcery.com>
18719
18720 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18721 prototype to take a regcache. Adjust.
18722
442ea881
PA
187232010-01-20 Pedro Alves <pedro@codesourcery.com>
18724
18725 * regcache.h (struct thread_info): Forward declare.
18726 (struct regcache): New.
18727 (new_register_cache): Adjust prototype.
18728 (get_thread_regcache): Declare.
18729 (free_register_cache): Adjust prototype.
18730 (registers_to_string, registers_from_string): Ditto.
18731 (supply_register, supply_register_by_name, collect_register)
18732 (collect_register_as_string, collect_register_by_name): Ditto.
18733 * regcache.c (struct inferior_regcache_data): Delete.
18734 (get_regcache): Rename to ...
18735 (get_thread_regcache): ... this. Adjust. Switch inferior before
18736 fetching registers.
18737 (regcache_invalidate_one): Adjust.
18738 (regcache_invalidate): Fix prototype.
18739 (new_register_cache): Return the new register cache.
18740 (free_register_cache): Change prototype.
18741 (realloc_register_cache): Adjust.
18742 (registers_to_string): Change prototype to take a regcache. Adjust.
18743 (registers_from_string): Ditto.
18744 (register_data): Ditto.
18745 (supply_register): Ditto.
18746 (supply_register_by_name): Ditto.
18747 (collect_register): Ditto.
18748 (collect_register_as_string): Ditto.
18749 (collect_register_by_name): Ditto.
18750 * server.c (process_serial_event): Adjust.
18751 * linux-low.h (regset_fill_func, regset_store_func): Change
18752 prototype.
18753 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18754 Change prototype.
18755 * linux-low.c (get_stop_pc): Adjust.
18756 (check_removed_breakpoint): Adjust.
18757 (linux_wait_for_event): Adjust.
18758 (linux_resume_one_lwp): Adjust.
18759 (fetch_register): Add regcache parameter. Adjust.
18760 (usr_store_inferior_registers): Ditto.
18761 (regsets_fetch_inferior_registers): Ditto.
18762 (regsets_store_inferior_registers): Ditto.
18763 (linux_fetch_registers, linux_store_registers): Ditto.
18764 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18765 regcache. Adjust.
43aaf8b6
PA
18766 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18767 Ditto.
442ea881
PA
18768 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18769 prototype to take a regcache.
18770 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18771 * remote-utils.c (convert_ascii_to_int, outreg)
18772 (prepare_resume_reply): Change prototype to take a regcache.
18773 Adjust.
18774 * target.h (struct target_ops) <fetch_registers, store_registers>:
18775 Change prototype to take a regcache.
18776 (fetch_inferior_registers, store_inferior_registers): Change
18777 prototype to take a regcache. Adjust.
18778 * proc-service.c (ps_lgetregs): Adjust.
18779 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18780 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18781 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18782 take a regcache. Adjust.
18783 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18784 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18785 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18786 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18787 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18788 (cris_cannot_fetch_register):
18789 (cris_breakpoint_at): Change prototype to take a regcache.
18790 Adjust.
18791 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18792 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18793 to take a regcache. Adjust.
18794 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18795 Adjust.
18796 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18797 take a regcache. Adjust.
18798 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18799 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18800 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18801 * linux-mips-low.c (mips_get_pc):
18802 (mips_set_pc): Change prototype to take a regcache. Adjust.
18803 (mips_reinsert_addr): Adjust.
18804 (mips_collect_register): Change prototype to take a regcache.
18805 Adjust.
18806 (mips_supply_register):
18807 (mips_collect_register_32bit, mips_supply_register_32bit)
18808 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18809 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18810 * linux-ppc-low.c (ppc_supply_ptrace_register)
18811 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18812 (parse_spufs_run): Adjust.
18813 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18814 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18815 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18816 take a regcache. Adjust.
18817 * linux-s390-low.c (s390_collect_ptrace_register)
18818 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18819 (s390_set_pc): Change prototype to take a regcache. Adjust.
18820 (s390_arch_setup): Adjust.
18821 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18822 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18823 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18824 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18825 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18826 regcache. Adjust.
18827 (sparc_breakpoint_at): Adjust.
18828 * linux-xtensa-low.c (xtensa_fill_gregset):
18829 (xtensa_store_gregset):
18830 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18831 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18832 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18833 prototype to take a regcache. Adjust.
18834 * win32-arm-low.c (arm_fetch_inferior_register)
18835 (arm_store_inferior_register): Change prototype to take a
18836 regcache. Adjust.
18837 * win32-i386-low.c (i386_fetch_inferior_register)
18838 (i386_store_inferior_register): Change prototype to take a
18839 regcache. Adjust.
18840 * win32-low.c (child_fetch_inferior_registers)
18841 (child_store_inferior_registers): Change prototype to take a
18842 regcache. Adjust.
18843 (win32_wait): Adjust.
18844 (win32_fetch_inferior_registers): Change prototype to take a
18845 regcache. Adjust.
18846 (win32_store_inferior_registers): Adjust.
18847 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18848 store_inferior_register>: Change prototype to take a regcache.
18849
60c3d7b0
DE
188502010-01-20 Doug Evans <dje@google.com>
18851
18852 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18853 #ifdef.
18854 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18855 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18856
dc146f7c
VP
188572010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18858
18859 * linux-low.c (linux_core_of_thread): New.
18860 (compare_ints, show_process, list_threads): New.
18861 (linux_qxfer_osdata): Report threads and cores.
18862 (linux_target_op): Register linux_core_of_thread.
18863 * remote-utils.c (prepare_resume_reply): Report the core.
18864 (buffer_xml_printf): Support %d specifier.
18865 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18866 New.
18867 (handle_query): Handle qXfer:threads. Announce availability
18868 thereof.
18869 * target.h (struct target_ops): New field core_of_thread.
18870
7803799a
UW
188712010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18872
18873 * Makefile.in (clean): Remove new generated files.
18874 (reg-s390.o, reg-s390.c): Remove rules.
18875 (reg-s390x.o, reg-s390x.c): Likewise.
18876 (s390-linux32.o, s390-linux32.c): Add rules.
18877 (s390-linux64.o, s390-linux64.c): Likewise.
18878 (s390x-linux64.o, s390x-linux64.c): Likewise.
18879 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18880 * linux-s390-low.c: Include <elf.h>.
18881 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18882 (init_registers_s390): Remove prototype.
18883 (init_registers_s390x): Likewise.
18884 (init_registers_s390_linux32): Add prototype.
18885 (init_registers_s390_linux64): Likewise.
18886 (init_registers_s390x_linux64): Likewise.
18887 (s390_num_regs_3264): New define.
18888 (s390_regmap_3264): New global variable.
18889 (s390_cannot_fetch_register): Remove obsolete check.
18890 (s390_cannot_store_register): Likewise.
18891 (s390_collect_ptrace_register): Handle upper/lower register halves.
18892 (s390_supply_ptrace_register): Likewise.
18893 (s390_fill_gregset): Update to register number changes.
18894 (s390_get_hwcap): New routine.
18895 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18896 Install appropriate regmap and register set.
18897
6e7ffa39
JB
188982010-01-01 Joel Brobecker <brobecker@adacore.com>
18899
18900 * server.c (gdbserver_version): Update copyright year to 2010.
18901 * gdbreplay.c (gdbreplay_version): Likewise.
18902
957f3f49
DE
189032009-12-28 Doug Evans <dje@google.com>
18904
18905 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18906 elf/external.h. Include <elf.h> instead but only if necessary.
18907
ca5c370d
PA
189082009-12-28 Pedro Alves <pedro@codesourcery.com>
18909
18910 * linux-low.c (linux_remove_process): Remove `detaching'
18911 parameter. Don't release/detach from thread_db here.
18912 (linux_kill): Release/detach from thread_db here, ...
18913 (linux_detach): ... and here, before actually detaching.
18914 (linux_wait_1): ... and here, when a process exits.
18915 * thread-db.c (any_thread_of): New.
18916 (thread_db_free): Switch the current inferior to a thread of the
18917 passed in process.
18918
4ee62156
DE
189192009-12-21 Doug Evans <dje@google.com>
18920
d90e6a88
DE
18921 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18922
c5f62d5f
DE
18923 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18924 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18925 warning ifndef __NR_tkill. Move setting of errno there too.
18926 Delete unnecessary resetting of errno after syscall.
18927 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18928
10e86dd7
DE
18929 * configure.ac: Check for dladdr.
18930 * config.in: Regenerate.
18931 * configure: Regenerate.
18932 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18933 (try_thread_db_load): Update.
18934
4ee62156
DE
18935 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18936
00f515da
DE
189372009-12-18 Doug Evans <dje@google.com>
18938
e9464885
DE
18939 * event-loop.c: Include unistd.h if it exists.
18940
07d4f67e
DE
18941 * linux-low.c (my_waitpid): Move definition away from being in
18942 between linux_tracefork_child/linux_test_for_tracefork.
18943
00f515da
DE
18944 * gdb_proc_service.h (psaddr_t): Fix type.
18945 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18946 signature to match glibc.
18947
1de1badb
DE
189482009-12-16 Doug Evans <dje@google.com>
18949
18950 * linux-low.c (linux_read_memory): Fix argument to read.
18951
aeeb81d1
PA
189522009-11-26 Pedro Alves <pedro@codesourcery.com>
18953
18954 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18955 events, don't leave current_inferior pointing at null.
18956
10357975
PA
189572009-11-26 Pedro Alves <pedro@codesourcery.com>
18958
18959 * win32-low.c (LOG): Delete.
18960 (OUTMSG): Output to stderr.
18961 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18962 on compile time LOG macro.
18963 (win32_wait): Fix debug output.
18964
cf6e3471
PA
189652009-11-26 Pedro Alves <pedro@codesourcery.com>
18966
18967 * win32-low.c (win32_add_one_solib): If the dll name is
18968 "ntdll.dll", prepend the system directory to the dll path.
18969
0c85e18e
MK
189702009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18971
18972 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18973
9ac544ce 189742009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18975 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18976
18977 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18978 * configure.ac: Check for __mcoldfire__ and set
18979 gdb_cv_m68k_is_coldfire.
18980 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18981 reg-cf.o and reg-m68k.o.
18982 * configure: Regenerated.
18983
fd7dd3e6
PA
189842009-11-16 Pedro Alves <pedro@codesourcery.com>
18985
18986 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18987 Pass it to thread_db_free.
18988 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18989 proper `detaching' argument to linux_remove_process.
18990 * linux-low.h (thread_db_free): Add `detaching' parameter.
18991 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18992 to thread_db_free.
18993 (thread_db_free): Add `detaching' parameter. Only
18994 call td_ta_clear_event if detaching from process.
18995
75aa492e
MK
189962009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18997
18998 * thread-db.c (thread_db_free): Fix typo.
18999
21e1bee4
PP
190002009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19001
19002 PR gdb/10838
19003 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19004
8838b45e
NS
190052009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19006
19007 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19008 with an i686 compiler.
19009 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19010 needed.
19011 * configure: Rebuilt.
19012
8a35fb51
SL
190132009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19014
19015 PR gdb/10783
19016
19017 * server.c (handle_search_memory_1): Correct read_addr initialization
19018 in loop for searching subsequent chunks.
19019
96f15937
PP
190202009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19021
19022 * configure.ac: New --with-libthread-db option.
19023 * thread-db.c: Allow direct dependence on libthread_db.
19024 (thread_db_free): Adjust.
19025 * config.in: Regenerate.
19026 * configure: Likewise.
889bf7c5 19027
5f7d1694
PP
190282009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19029
19030 PR gdb/10757
19031 * thread-db.c (attach_thread): New function.
19032 (maybe_attach_thread): Return success/failure.
19033 (find_new_threads_callback): Adjust.
889bf7c5
PA
19034 (thread_db_find_new_threads): Loop until no new threads.
19035
88e3b899
PA
190362009-10-13 Pedro Alves <pedro@codesourcery.com>
19037
19038 * proc-service.c (ps_lgetregs): Formatting.
19039
cdbfd419
PP
190402009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19041
19042 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19043 * configure.ac: Adjust.
19044 * linux-low.h (struct process_info_private): Move members to struct
19045 thread_db.
19046 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19047 * linux-low.c (linux_remove_process): Adjust.
19048 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19049 * server.c (handle_query): Move code ...
19050 (handle_monitor_command): ... here. New function.
19051 * target.h (struct target_ops): New member.
19052 * thread-db.c (struct thread_db): New.
19053 (libthread_db_search_path): New variable.
19054 (thread_db_create_event, thread_db_enable_reporting)
19055 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19056 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19057 (try_thread_db_load_1, dladdr_to_soname): New functions.
19058 (try_thread_db_load, thread_db_load_search): New functions.
19059 (thread_db_init): Search for libthread_db.
19060 (thread_db_free): New function.
19061 (thread_db_handle_monitor_command): Likewise.
19062 * config.in: Regenerate.
19063 * configure: Regenerate.
889bf7c5 19064
4168d2d6
UW
190652009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19066
19067 * spu-low.c (spu_kill): Wait for inferior to terminate.
19068 Call clear_inferiors.
19069 (spu_detach): Call clear_inferiors.
19070
81ecdfbb
RW
190712009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19072
19073 * aclocal.m4: Regenerate.
19074 * config.in: Likewise.
19075 * configure: Likewise.
19076
0b9ff2c0
UW
190772009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19078
19079 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19080 (parse_spufs_run): New function.
19081 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19082 (ppc_breakpoint_at): Handle SPU breakpoints.
19083
efcbbd14
UW
190842009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19085
19086 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19087 (SPUFS_MAGIC): Define.
19088 (spu_enumerate_spu_ids): New function.
19089 (linux_qxfer_spu): New function.
19090 (linux_target_ops): Install linux_qxfer_spu.
19091
f4d9bade
UW
190922009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19093
19094 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19095 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19096 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19097 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19098 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19099 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19100 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19101 (init_registers_powerpc_cell32l): Add prototype.
19102 (init_registers_powerpc_cell64l): Likewise.
19103 (ppc_arch_setup): Detect Cell/B.E. architecture.
19104
96e946ca
RW
191052009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19106
19107 * Makefile.in (datarootdir): New variable.
19108
58d6951d
DJ
191092009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19110
19111 * linux-low.c (linux_write_memory): Update debugging output.
19112 * Makefile.in (clean): Add new descriptions.
19113 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19114 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19115 * configure.srv: Add new files for arm*-*-linux*.
19116 * linux-arm-low.c: Add new declarations.
19117 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19118 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19119 (HWCAP_VFPv3D16): New.
19120 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19121 instead of __IWMMXT__.
19122 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19123 (arm_arch_setup): New.
19124 (target_regsets): Remove #ifdef. Add VFP regset.
19125 (the_low_target): Use arm_arch_setup.
19126
12b42a12
DJ
191272009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19128
19129 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19130 the main thread again.
19131
ac8c974e
AR
191322009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19133
19134 Adding Neutrino gdbserver.
19135 * configure: Regenerated.
19136 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19137 * configure.srv (i[34567]86-*-nto*): New target.
19138 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19139 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19140 (nto_comctrl) [__QNX__]: New function.
19141 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19142
4424e0c3 191432009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19144
19145 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19146 srv_tgtobj.
19147
912cf4ba
PA
191482009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19149 Pedro Alves <pedro@codesourcery.com>
19150
19151 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19152 don't support CONTEXT_EXTENDED_REGISTERS.
19153 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19154 (the_low_target): Install them.
19155 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19156 failing with ERROR_PIPE_NOT_CONNECTED.
19157
aa5ca48f
DE
191582009-06-30 Doug Evans <dje@google.com>
19159 Pierre Muller <muller@ics.u-strasbg.fr>
19160
19161 Add h/w watchpoint support to x86-linux, win32-i386.
19162 * Makefile.in (SFILES): Add i386-low.c
19163 (i386_low_h): Define.
19164 (i386-low.o): Add dependencies.
19165 (linux-x86-low.o): Add i386-low.h dependency.
19166 (win32-i386-low.o): Ditto.
19167 * i386-low.c: New file.
19168 * i386-low.h: New file.
19169 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19170 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19171 * linux-low.c (linux_add_process): Initialize arch_private.
19172 (linux_remove_process): Free arch_private.
19173 (add_lwp): Initialize arch_private.
19174 (delete_lwp): Free arch_private.
19175 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19176 provided.
19177 * linux-low.h (process_info_private): New member arch_private.
19178 (lwp_info): New member arch_private.
19179 (linux_target_ops): New members new_process, new_thread,
19180 prepare_to_resume.
19181 (ptid_of): New macro.
19182 * linux-x86-low.c: Include stddef.h, i386-low.h.
19183 (arch_process_info): New struct.
19184 (arch_lwp_info): New struct.
19185 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19186 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19187 (i386_dr_low_get_status): New function.
19188 (x86_insert_point, x86_remove_point): New functions.
19189 (x86_stopped_by_watchpoint): New function.
19190 (x86_stopped_data_address): New function.
19191 (x86_linux_new_process, x86_linux_new_thread): New functions.
19192 (x86_linux_prepare_to_resume): New function.
19193 (the_low_target): Add entries for insert_point, remove_point,
19194 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19195 prepare_to_resume.
19196 * server.c (debug_hw_points): New global.
19197 (monitor_show_help): Document set debug-hw-points.
19198 (handle_query): Process "set debug-hw-points".
19199 * server.h (debug_hw_points): Declare.
19200 (paddress): Declare.
19201 * utils.c (NUMCELLS, CELLSIZE): New macros.
19202 (get_sell, xsnprintf, paddress): New functions.
19203 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19204 remove_point, stopped_by_watchpoint, stopped_data_address.
19205 * win32-i386-low.c: Include i386-low.h.
19206 (debug_reg_state): Replaces dr.
19207 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19208 (i386_dr_low_get_status): New function.
19209 (i386_insert_point, i386_remove_point): New functions.
19210 (i386_stopped_by_watchpoint): New function.
19211 (i386_stopped_data_address): New function.
19212 (i386_initial_stuff): Update.
19213 (get_thread_context,set_thread_context,i386_thread_added): Update.
19214 (the_low_target): Add entries for insert_point,
19215 remove_point, stopped_by_watchpoint, stopped_data_address.
19216 * win32-low.c (win32_insert_watchpoint): New function.
19217 (win32_remove_watchpoint): New function.
19218 (win32_stopped_by_watchpoint): New function.
19219 (win32_stopped_data_address): New function.
19220 (win32_target_ops): Add entries for insert_watchpoint,
19221 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19222 * win32-low.h (win32_target_ops): New members insert_point,
19223 remove_point, stopped_by_watchpoint, stopped_data_address.
19224
d993e290
PA
192252009-06-25 Pedro Alves <pedro@codesourcery.com>
19226
19227 * server.c (process_serial_event): Re-return unsupported, not
19228 error, if the type isn't recognized. Re-allow supporting only
19229 insert or remove packets. Also call require_running for
19230 breakpoints. Add missing break statement to default case. Tidy.
19231 * target.h (struct target_ops): Rename insert_watchpoint to
19232 insert_point, and remove_watchpoint to remove_point.
19233
19234 * linux-low.h (struct linux_target_ops): Likewise.
19235 * linux-low.c (linux_insert_watchpoint): Rename to ...
19236 (linux_insert_point): ... this. Adjust.
19237 (linux_remove_watchpoint): Rename to ...
19238 (linux_remove_point): ... this. Adjust.
19239 (linux_target_ops): Adjust.
19240 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19241 (cris_insert_point): ... this.
19242 (cris_remove_watchpoint): Rename to ...
19243 (cris_remove_point): ... this.
19244 (the_low_target): Adjust.
19245
0f54c268
PM
192462009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19247
19248 * server.c (handle_v_kill): Pass signal_pid to
19249 kill_inferior if multi_process is zero.
19250
c6314022
AR
192512009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19252
19253 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19254 * target.h (target_ops): Comment for *_watchpoint to make it clear
19255 the functions can get types '0' and '1'.
19256
4463ce24
AR
192572009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19258
19259 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19260 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19261 * regcache.c (get_regcache): Likewise.
19262 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19263 * win32-low.c (child_fetch_inferior_registers): Remove check for
19264 regno 0.
19265
cf8fd78b
PA
192662009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19267 Pedro Alves <pedro@codesourcery.com>
19268
19269 * target.h (struct target_ops) <supports_multi_process>: New
19270 callback.
19271 (target_supports_multi_process): New.
19272 * server.c (handle_query): Even if GDB reports support, only
19273 enable multi-process if the target also supports it. Report
19274 multi-process support only if the target backend supports it.
19275 * linux-low.c (linux_supports_multi_process): New function.
19276 (linux_target_ops): Install it as target_supports_multi_process
19277 callback.
19278
47c0c975
DE
192792009-05-24 Doug Evans <dje@google.com>
19280
e09875d4
DE
19281 Global renaming of find_thread_pid to find_thread_ptid.
19282 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19283 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19284 All callers updated.
19285
e27d73f6
DE
19286 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19287 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19288 directly.
19289
47c0c975
DE
19290 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19291 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19292 (linux_resume_one_lwp): Ditto.
19293
2acc282a
DE
192942009-05-23 Doug Evans <dje@google.com>
19295
19296 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19297 from struct inferior_list_entry * to struct lwp_info *.
19298 All callers updated.
19299
9f1036c1
DE
193002009-05-13 Doug Evans <dje@google.com>
19301
19302 * linux-x86-low.c: Don't include assert.h.
19303 (x86_siginfo_fixup): Use fatal, not assert.
19304 (x86_arch_setup): Fix comment.
19305
d0722149
DE
193062009-05-12 Doug Evans <dje@google.com>
19307
19308 Biarch support for i386/amd64 gdbserver.
19309 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19310 Add linux-x86-low.c.
19311 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19312 (linux-x86-low.o): Add.
19313 * linux-x86-64-low.c: Delete.
19314 * linux-i386-low.c: Delete.
19315 * linux-x86-low.c: New file.
19316 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19317 linux-x86-low.o.
19318 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19319 linux-x86-low.o.
19320 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19321 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19322 (linux_child_pid_to_exec_file): New function.
19323 (elf_64_header_p, elf_64_file_p): New functions.
19324 (siginfo_fixup): New function.
19325 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19326 give target a chance to convert layout.
19327 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19328 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19329
fdeb2a12
DE
193302009-05-07 Doug Evans <dje@google.com>
19331
19332 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19333 (regsets_store_inferior_registers): Ditto.
19334
a6dbe5df
PA
193352009-05-06 Pedro Alves <pedro@codesourcery.com>
19336
19337 PR server/10048
19338
19339 * linux-low.c (must_set_ptrace_flags): Delete.
19340 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19341 of the global.
19342 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19343 `lwp->must_set_ptrace_flags' instead.
ba42693b 19344 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19345 (linux_wait_1): ... not here.
19346
5091eb23
DE
193472009-04-30 Doug Evans <dje@google.com>
19348
9f767825
DE
19349 * inferiors.c (started_inferior_callback): New function.
19350 (attached_inferior_callback): New function.
19351 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19352 * server.c (print_started_pid, print_attached_pid): New functions.
19353 (detach_or_kill_for_exit): New function.
19354 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19355 * server.h (have_started_inferiors_p): Declare.
19356 (have_attached_inferiors_p): Declare.
19357
5091eb23
DE
19358 * inferiors.c (remove_process): Fix memory leak, free process.
19359 * linux-low.c (linux_remove_process): New function.
19360 (linux_kill): Call it instead of remove_process.
19361 (linux_detach, linux_wait_1): Ditto.
19362
155c8968
PA
193632009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19364
19365 * configure.srv: Add x86 Windows CE target.
19366
7fe519cb
UW
193672009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19368
19369 * inferiors.c (get_thread_process): Make global.
19370 * server.h (get_thread_process): Add prototype.
19371 * thread-db.c (find_one_thread): Use get_thread_process
19372 instead of current_process.
19373 (thread_db_get_tls_address): Do not crash if called when
19374 thread layer is not yet initialized.
19375
5472f405
UW
193762009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19377
19378 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19379 * spu-low.c (current_tid): Rename to ...
19380 (current_ptid): ... this.
19381 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19382 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19383 ptid_get_lwp (current_ptid) instead of current_tid.
19384 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19385 instead of current_tid. Use find_process_pid to verify pid
19386 argument is valid. Pass proper argument to remove_process.
19387 (spu_thread_alive): Compare current_ptid instead of current_tid.
19388 (spu_resume): Likewise.
19389
55ac2b99
PA
193902009-04-02 Pedro Alves <pedro@codesourcery.com>
19391
19392 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19393 variable.
19394
95954743
PA
193952009-04-01 Pedro Alves <pedro@codesourcery.com>
19396
19397 Implement the multiprocess extensions, and add linux multiprocess
19398 support.
19399
19400 * server.h (ULONGEST): Declare.
19401 (struct ptid, ptid_t): New.
19402 (minus_one_ptid, null_ptid): Declare.
19403 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19404 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19405 (struct inferior_list_entry): Change `id' type from unsigned from
19406 to ptid_t.
19407 (struct sym_cache, struct breakpoint, struct
19408 process_info_private): Forward declare.
19409 (struct process_info): Declare.
19410 (current_process): Declare.
19411 (all_processes): Declare.
19412 (initialize_inferiors): Declare.
19413 (add_thread): Adjust to use ptid_t.
19414 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19415 (add_process, remove_process, find_thread_pid): Declare.
19416 (find_inferior_id): Adjust to use ptid_t.
19417 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19418 (multi_process): Declare.
19419 (push_event): Adjust to use ptid_t.
19420 (read_ptid, write_ptid): Declare.
19421 (prepare_resume_reply): Adjust to use ptid_t.
19422 (clear_symbol_cache): Declare.
19423 * inferiors.c (all_processes): New.
19424 (null_ptid, minus_one_ptid): New.
19425 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19426 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19427 (add_thread): Change unsigned long to ptid. Remove gdb_id
19428 parameter. Adjust.
19429 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19430 (gdb_id_to_thread): Rename to ...
19431 (find_thread_pid): ... this. Change unsigned long to ptid.
19432 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19433 (loaded_dll, pull_pid_from_list): Adjust.
19434 (add_process, remove_process, find_process_pid)
19435 (get_thread_process, current_process, initialize_inferiors): New.
19436 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19437 (struct target_waitstatus) <related_pid>: Ditto.
19438 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19439 return type to int.
19440 (struct target_ops) <join>: Add `pid' argument.
19441 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19442 (struct target_ops) <wait>: Add `ptid' field. Change return type
19443 to ptid.
19444 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19445 (mywait): Add `ptid' argument. Change return type to ptid_t.
19446 (target_pid_to_str): Declare.
19447 * target.c (set_desired_inferior): Adjust to use ptids.
19448 (mywait): Add new `ptid' argument. Adjust.
19449 (target_pid_to_str): New.
19450 * mem-break.h (free_all_breakpoints): Declare.
19451 * mem-break.c (breakpoints): Delelete.
19452 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19453 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19454 to use per-process breakpoint list.
19455 (free_all_breakpoints): New.
19456 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19457 (symbol_cache, all_symbols_looked_up): Delete.
19458 (hexchars): New.
19459 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19460 read_ptid): New.
19461 (prepare_resume_reply): Change ptid argument's type from unsigned
19462 long to ptid_t. Adjust. Implement W;process and X;process.
19463 (free_sym_cache, clear_symbol_cache): New.
19464 (look_up_one_symbol): Adjust to per-process symbol cache. *
19465 * server.c (cont_thread, general_thread, step_thread): Change type
19466 to ptid_t.
19467 (attached): Delete.
19468 (multi_process): New.
19469 (last_ptid): Change type to ptid_t.
19470 (struct vstop_notif) <ptid>: Change type to ptid_t.
19471 (queue_stop_reply, push_event): Change `ptid' argument's type to
19472 ptid_t.
19473 (discard_queued_stop_replies): Add `pid' argument.
19474 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19475 changes. Don't reference the `attached' global.
19476 (attach_inferior): Adjust to mywait interface changes.
19477 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19478 features. Handle and report "multiprocess+". Handle
19479 "qAttached:PID".
19480 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19481 changes.
19482 (handle_v_kill): New.
19483 (handle_v_stopped): Adjust to use target_pid_to_str.
19484 (handle_v_requests): Allow multiple attaches and runs when
19485 multiprocess extensions are in effect. Handle "vKill".
19486 (myresume): Adjust to use ptids.
19487 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19488 (handle_status): Adjust to discard_queued_stop_replies interface
19489 change.
19490 (first_thread_of, kill_inferior_callback)
19491 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19492 (main): Call initialize_inferiors. Adjust to use ptids, killing
19493 and detaching from all inferiors. Handle multiprocess packet
19494 variants.
19495 * linux-low.h: Include gdb_proc_service.h.
19496 (struct process_info_private): New.
19497 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19498 <lwpid_of>: Use ptid_get_lwp.
19499 (get_lwp_thread): Adjust.
19500 (struct lwp_info): Add `dead' member.
19501 (find_lwp_pid): Declare.
19502 * linux-low.c (thread_db_active): Delete.
19503 (new_inferior): Adjust comment.
19504 (inferior_pid): Delete.
19505 (linux_add_process): New.
19506 (handle_extended_wait): Adjust.
19507 (add_lwp): Change unsigned long to ptid.
19508 (linux_create_inferior): Add process to processes table. Adjust
19509 to use ptids. Don't set new_inferior here.
19510 (linux_attach_lwp): Rename to ...
19511 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19512 it. Adjust to use ptids.
19513 (linux_attach_lwp): New.
19514 (linux_attach): Add process to processes table. Don't set
19515 new_inferior here.
19516 (struct counter): New.
19517 (second_thread_of_pid_p, last_thread_of_process_p): New.
19518 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19519 multiple processes.
19520 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19521 processes. Remove process from process table.
19522 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19523 to multiple processes.
19524 (any_thread_of): New.
19525 (linux_detach): Add `pid' argument, and handle it. Remove process
19526 from processes table.
19527 (linux_join): Add `pid' argument. Handle it.
19528 (linux_thread_alive): Change unsighed long argument to ptid_t.
19529 Consider dead lwps as not being alive.
19530 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19531 threads we're not interested in.
19532 (same_lwp, find_lwp_pid): New.
19533 (linux_wait_for_lwp): Change `pid' argument's type from int to
19534 ptid_t. Adjust.
19535 (linux_wait_for_event): Rename to ...
19536 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19537 from int to ptid_t. Adjust.
19538 (linux_wait_for_event): New.
19539 (linux_wait_1): Add `ptid' argument. Change return type to
19540 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19541 that exit from the process table.
19542 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19543 Adjust.
19544 (mark_lwp_dead): New.
19545 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19546 stopping all threads, mark its main lwp as dead.
19547 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19548 ptids.
19549 (fetch_register, usr_store_inferior_registers)
19550 (regsets_fetch_inferior_registers)
19551 (regsets_store_inferior_registers, linux_read_memory)
19552 (linux_write_memory): Inline `inferior_pid'.
19553 (linux_look_up_symbols): Adjust to use per-process
19554 `thread_db_active'.
19555 (linux_request_interrupt): Adjust to use ptids.
19556 (linux_read_auxv): Inline `inferior_pid'.
19557 (initialize_low): Don't reference thread_db_active.
19558 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19559 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19560 (ps_getpid): Return the pid of the current inferior.
19561 * thread-db.c (proc_handle, thread_agent): Delete.
19562 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19563 per-process data.
19564 (find_one_thread): Change argument type to ptid_t. Adjust to
19565 per-process data.
19566 (maybe_attach_thread): Adjust to per-process data and ptids.
19567 (thread_db_find_new_threads): Ditto.
19568 (thread_db_init): Ditto.
19569 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19570 processes table. Adjust to use ptids.
19571 (spu_kill, spu_detach): Adjust interface. Remove process from
19572 processes table.
19573 (spu_join, spu_thread_alive): Adjust interface.
19574 (spu_wait): Adjust interface. Remove process from processes
19575 table. Adjust to use ptids.
19576 * win32-low.c (current_inferior_tid): Delete.
19577 (current_inferior_ptid): New.
19578 (debug_event_ptid): New.
19579 (thread_rec): Take a ptid. Adjust.
19580 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19581 (child_delete_thread): Ditto.
19582 (do_initial_child_stuff): Add `attached' argument. Add process to
19583 processes table.
19584 (child_fetch_inferior_registers, child_store_inferior_registers):
19585 Adjust.
19586 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19587 (win32_attach): Pass 1 to do_initial_child_stuff.
19588 (win32_kill): Adjust interface. Remove process from processes
19589 table.
19590 (win32_detach): Ditto.
19591 (win32_join): Adjust interface.
19592 (win32_thread_alive): Take a ptid.
19593 (win32_resume): Adjust to use ptids.
19594 (get_child_debug_event): Ditto.
19595 (win32_wait): Adjust interface. Remove exiting process from
19596 processes table.
19597
bd99dc85
PA
195982009-04-01 Pedro Alves <pedro@codesourcery.com>
19599
19600 Non-stop mode support.
19601
19602 * server.h (non_stop): Declare.
19603 (gdb_client_data, handler_func): Declare.
19604 (delete_file_handler, add_file_handler, start_event_loop):
19605 Declare.
19606 (handle_serial_event, handle_target_event, push_event)
19607 (putpkt_notif): Declare.
19608 * target.h (enum resume_kind): New.
19609 (struct thread_resume): Replace `step' field by `kind' field.
19610 (TARGET_WNOHANG): Define.
19611 (struct target_ops) <wait>: Add `options' argument.
19612 <supports_non_stop, async, start_non_stop>: New fields.
19613 (target_supports_non_stop, target_async): New.
19614 (start_non_stop): Declare.
19615 (mywait): Add `options' argument.
19616 * target.c (mywait): Add `options' argument. Print child exit
19617 notifications here.
19618 (start_non_stop): New.
19619 * server.c (non_stop, own_buf, mem_buf): New globals.
19620 (struct vstop_notif): New.
19621 (notif_queue): New global.
19622 (queue_stop_reply, push_event, discard_queued_stop_replies)
19623 (send_next_stop_reply): New.
19624 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19625 interface changes.
19626 (attach_inferior): In non-stop mode, don't wait for the target
19627 here.
19628 (handle_general_set): Handle QNonStop.
19629 (handle_query): When handling qC, return the current general
19630 thread, instead of the first thread of the list.
19631 (handle_query): If the backend supports non-stop mode, include
19632 QNonStop+ in the qSupported query response.
19633 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19634 and non-stop mode.
19635 (handle_v_attach, handle_v_run): Handle non-stop mode.
19636 (handle_v_stopped): New.
19637 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19638 (myresume): Adjust to use resume_kind. Handle non-stop.
19639 (queue_stop_reply_callback): New.
19640 (handle_status): Handle non-stop mode.
19641 (main): Clear non_stop flag on reconnection. Use the event-loop.
19642 Refactor serial protocol handling from here ...
19643 (process_serial_event): ... to this new function. When GDB
19644 selects any thread, select one here. In non-stop mode, wait until
19645 GDB acks all pending events before exiting.
19646 (handle_serial_event, handle_target_event): New.
19647 * remote-utils.c (remote_open): Install remote_desc in the event
19648 loop.
19649 (remote_close): Remove remote_desc from the event loop.
19650 (putpkt_binary): Rename to...
19651 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19652 (putpkt_binary): New as wrapper around putpkt_binary_1.
19653 (putpkt_notif): New.
19654 (prepare_resume_reply): In non-stop mode, don't change the
19655 general_thread.
19656 * event-loop.c: New.
19657 * Makefile.in (OBJ): Add event-loop.o.
19658 (event-loop.o): New rule.
19659
19660 * linux-low.h (pid_of): Moved here.
19661 (lwpid_of): New.
19662 (get_lwp_thread): Use lwpid_of.
19663 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19664 * linux-low.c (pid_of): Delete.
19665 (inferior_pid): Use lwpid_of.
19666 (linux_event_pipe): New.
19667 (target_is_async_p): New.
19668 (delete_lwp): New.
19669 (handle_extended_wait): Use lwpid_of.
19670 (add_lwp): Don't set lwpid field.
19671 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19672 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19673 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19674 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19675 first. Adjust to linux_wait_for_event interface changes. Use
19676 lwpid_of.
19677 (linux_detach): Don't delete the main lwp here.
19678 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19679 (status_pending_p): Don't consider explicitly suspended lwps.
19680 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19681 pointer. Add OPTIONS argument. Change return type to int. Use
19682 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19683 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19684 pointer. Add status pointer argument. Return a pid instead of a
19685 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19686 changes. In non-stop mode, don't switch to a random thread.
19687 (linux_wait): Rename to...
19688 (linux_wait_1): ... this. Add target_options argument, and handle
19689 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19690 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19691 clean exit and signal exit code. Don't stop all threads in
19692 non-stop mode. In all-stop mode, only stop all threads when
19693 reporting a stop to GDB. Handle explicit thread stop requests.
19694 (async_file_flush, async_file_mark): New.
19695 (linux_wait): New.
19696 (send_sigstop): Use lwpid_of.
19697 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19698 interface changes. In non-stop mode, don't switch to a random
19699 thread.
19700 (linux_resume_one_lwp): Use lwpid_of.
19701 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19702 (linux_resume_one_thread): ... this. Handle resume_stop. In
19703 non-stop mode, don't look for pending flag in all threads.
19704 (resume_status_pending_p): Don't consider explicitly suspended
19705 threads.
19706 (my_waitpid): Reimplement. Emulate __WALL.
19707 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19708 Use lwpid_of.
19709 (sigchld_handler, linux_supports_non_stop, linux_async)
19710 (linux_start_non_stop): New.
19711 (linux_target_ops): Register linux_supports_non_stop, linux_async
19712 and linux_start_non_stop.
19713 (initialize_low): Install SIGCHLD handler.
19714 * thread-db.c (thread_db_create_event, find_one_thread)
19715 (thread_db_get_tls_address): Use lwpid_of.
19716 * win32-low.c (win32_detach): Adjust to use resume_kind.
19717 (win32_wait): Add `options' argument.
19718 * spu-low.c (spu_resume): Adjust to use resume_kind.
19719 (spu_wait): Add `options' argument.
19720
5b1c542e
PA
197212009-04-01 Pedro Alves <pedro@codesourcery.com>
19722
19723 Decouple target code from remote protocol.
19724
19725 * target.h (enum target_waitkind): New.
19726 (struct target_waitstatus): New.
19727 (struct target_ops) <wait>: Return an unsigned long. Take a
19728 target_waitstatus pointer instead of a char pointer.
19729 (mywait): Likewise.
19730 * target.c (mywait): Change prototype to return an unsigned long.
19731 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19732 * server.h (thread_from_wait, old_thread_from_wait): Delete
19733 declarations.
19734 (prepare_resume_reply): Change prototype to take a
19735 target_waitstatus.
19736 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19737 (last_status, last_ptid): New.
19738 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19739 pid instead of a signal.
19740 (attach_inferior): Remove "status" and "signal" parameters.
19741 Adjust.
19742 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19743 not as an address.
19744 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19745 (handle_v_requests, myresume): Remove "status" and "signal"
19746 parameters. Adjust.
19747 (handle_status): New.
19748 (main): Delete local `status'. Adjust.
19749 * remote-utils.c: Include target.h.
19750 (prepare_resume_reply): Change prototype to take a
19751 target_waitstatus. Adjust.
19752
19753 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19754 interface.
19755 * spu-low.c (spu_wait): Adjust.
19756 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19757 Delete.
19758 (win32_wait): Adjust.
19759
2bd7c093
PA
197602009-04-01 Pedro Alves <pedro@codesourcery.com>
19761
19762 * target.h (struct thread_resume): Delete leave_stopped member.
19763 (struct target_ops): Add a `n' argument to the `resume' callback.
19764 * server.c (start_inferior): Adjust.
19765 (handle_v_cont, myresume): Adjust.
19766 * linux-low.c (check_removed_breakpoint): Adjust to resume
19767 interface change, and to removed leave_stopped field.
19768 (resume_ptr): Delete.
19769 (struct thread_resume_array): New.
19770 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19771 resume interface change.
19772 (linux_continue_one_thread, linux_queue_one_thread)
19773 (resume_status_pending_p): Check if the resume field is NULL
19774 instead of checking the leave_stopped member.
19775 (linux_resume): Adjust to the target resume interface change.
19776 * spu-low.c (spu_resume): Adjust to the target resume interface
19777 change.
19778 * win32-low.c (win32_detach, win32_resume): Ditto.
19779
c35fafde
PA
197802009-04-01 Pedro Alves <pedro@codesourcery.com>
19781
19782 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19783 flag.
19784 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19785 pending.
19786 (linux_continue_one_thread): Only preserve the stepping flag if
19787 there's a pending breakpoint.
19788
0a59d50b
PA
197892009-03-31 Pedro Alves <pedro@codesourcery.com>
19790
19791 * server.c (main): After the inferior having exited, call
19792 remote_close before exiting gdbserver.
19793
f04c6d38
TJB
197942009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19795
19796 Fix size of FPSCR in Power 7 processors.
19797 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19798 (PPC_FEATURE_HAS_DFP): New #define.
19799 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19800 size of the FPSCR.
19801
78e5cee6
PA
198022009-03-23 Pedro Alves <pedro@codesourcery.com>
19803
19804 * server.c (handle_query) Whitespace and formatting.
19805
1b3f6016
PA
198062009-03-22 Pedro Alves <pedro@codesourcery.com>
19807
19808 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19809 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19810 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19811 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19812 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19813 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19814 Makefile.in, configure.ac: Fix whitespace throughout.
19815 * configure: Regenerate.
19816
a07b2135
PA
198172009-03-22 Pedro Alves <pedro@codesourcery.com>
19818
19819 * inferiors.c (find_inferior): Make it safe for the callback
19820 function to delete the currently iterated inferior.
19821
67cc2626
PA
198222009-03-22 Pedro Alves <pedro@codesourcery.com>
19823
19824 * Makefile.in (linuw_low_h): Move higher.
19825 (thread-db.o): Depend on $(linux_low_h).
19826
54a0b537
PA
198272009-03-17 Pedro Alves <pedro@codesourcery.com>
19828
19829 Rename "process" to "lwp" throughout.
19830
19831 * linux-low.c (all_processes): Rename to...
19832 (all_lwps): ... this.
19833 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19834 (add_process): Rename to ...
19835 (add_lwp): ... this. Adjust.
19836 (linux_create_inferior): Adjust.
19837 (linux_attach_lwp): Adjust.
19838 (linux_attach): Adjust.
19839 (linux_kill_one_process): Rename to ...
19840 (linux_kill_one_lwp): ... this. Adjust.
19841 (linux_kill): Adjust.
19842 (linux_detach_one_process): Rename to ...
19843 (linux_detach_one_lwp): ... this. Adjust.
19844 (linux_detach): Adjust.
19845 (check_removed_breakpoint): Adjust.
19846 (status_pending_p): Adjust.
19847 (linux_wait_for_process): Rename to ...
19848 (linux_wait_for_lwp): ... this. Adjust.
19849 (linux_wait_for_event): Adjust.
19850 (send_sigstop): Adjust.
19851 (wait_for_sigstop): Adjust.
19852 (stop_all_processes): Rename to ...
19853 (stop_all_lwps): ... this.
19854 (linux_resume_one_process): Rename to ...
19855 (linux_resume_one_lwp): ... this. Adjust.
19856 (linux_set_resume_request, linux_continue_one_thread)
19857 (linux_queue_one_thread, resume_status_pending_p)
19858 (usr_store_inferior_registers, regsets_store_inferior_registers)
19859 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19860 Adjust.
19861 * linux-low.h (get_process): Rename to ...
19862 (get_lwp): ... this. Adjust.
19863 (get_thread_process): Rename to ...
19864 (get_thread_lwp): ... this. Adjust.
19865 (get_process_thread): Rename to ...
19866 (get_lwp_thread): ... this. Adjust.
19867 (struct process_info): Rename to ...
19868 (struct lwp_info): ... this.
19869 (all_processes): Rename to ...
19870 (all_lwps): ... this.
19871 * proc-service.c (ps_lgetregs): Adjust.
19872 * thread-db.c (thread_db_create_event, find_one_thread)
19873 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19874
0b16c5cf
PA
198752009-03-14 Pedro Alves <pedro@codesourcery.com>
19876
19877 * server.c (handle_query): Handle "qAttached".
19878
32de4b9d
NS
198792009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19880
19881 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19882 GPLv3, update license URL.
19883
2aecd87f
DE
198842009-03-01 Doug Evans <dje@google.com>
19885
93efd302 19886 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19887 (server_h): Add gdb_signals.h.
19888 (signals.o): Update.
19889 * server.h (target_signal_from_host,target_signal_to_host_p)
19890 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19891
86b1f9c5
PM
198922009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19893
19894 * remote-utils.c (getpkt): Also generate remote-debug
19895 information if noack_mode is set.
19896
4aa995e1
PA
198972009-02-06 Pedro Alves <pedro@codesourcery.com>
19898
19899 * server.c (handle_query): Report qXfer:siginfo:read and
19900 qXfer:siginfo:write as supported and handle them.
19901 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19902 * linux-low.c (linux_xfer_siginfo): New.
19903 (linux_target_ops): Set it.
19904
62709adf
PA
199052009-01-26 Pedro Alves <pedro@codesourcery.com>
19906
19907 * server.c (gdbserver_usage): Mention --remote-debug.
19908 (main): Accept '--remote-debug' switch.
19909
aef93bd7
DE
199102009-01-18 Doug Evans <dje@google.com>
19911
19912 * regcache.c (new_register_cache): No need to check result of xcalloc.
19913 * server.c (handle_search_memory): Back out calls to xmalloc,
19914 result is checked and error is returned to user upon failure.
19915 (handle_query): Ditto. Add more checks for result of malloc.
19916 (handle_v_cont): Check result of malloc, report error back to
19917 user upon failure.
19918 (handle_v_run): Ditto. Call freeargv.
19919 * server.h (freeargv): Declare.
19920 * utils.c (freeargv): New fn.
19921
54363045
DE
199222009-01-15 Doug Evans <dje@google.com>
19923
f626972c
DE
19924 * gdbreplay.c (perror_with_name): Make arg const char *.
19925 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19926 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19927 * utils.c (perror_with_name): Make arg const char *.
54363045 19928
18aae699
PA
199292009-01-14 Pedro Alves <pedro@codesourcery.com>
19930
19931 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19932 when handling a EXIT_PROCESS_DEBUG_EVENT.
19933
ff703abe
JB
199342009-01-06 Joel Brobecker <brobecker@adacore.com>
19935
19936 * gdbreplay.c (gdbreplay_version): Update copyright year.
19937 * server.c (gdbserver_version): Likewise.
19938
f21cc1a2 199392009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19940
19941 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19942 (handle_extended_wait): Improve comment.
0e21c1ec 19943
bca929d3
DE
199442008-12-13 Doug Evans <dje@google.com>
19945
19946 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19947 * server.h (ATTR_MALLOC): New macro.
19948 (xmalloc,xcalloc,xstrdup): Declare.
19949 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19950 * inferiors.c: Ditto.
19951 * linux-low.c: Ditto.
19952 * mem-break.c: Ditto.
19953 * regcache.c: Ditto.
19954 * remote-utils.c: Ditto.
19955 * server.c: Ditto.
19956 * target.c: Ditto.
19957 * win32-low.c: Ditto.
19958
97438e3f
DE
199592008-12-12 Doug Evans <dje@google.com>
19960
896c7fbb
DE
19961 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19962 in debugging printf.
19963
97438e3f
DE
19964 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19965
e3b886f8
DE
199662008-12-09 Doug Evans <dje@google.com>
19967
19968 * linux-low.h (struct process_info): Delete member tid, unused.
19969 * thread-db.c (find_one_thread): Update.
19970 (maybe_attach_thread): Update.
19971
07e059b5
VP
199722008-12-02 Pedro Alves <pedro@codesourcery.com>
19973
889bf7c5
PA
19974 * target.h (struct target_ops): Add qxfer_osdata member.
19975 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19976 and dirent.h.
19977 (linux_qxfer_osdata): New functions.
19978 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19979 callback.
19980 * server.c (handle_query): Handle "qXfer:osdata:read:".
19981 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19982 (buffer_xml_printf): New functions.
19983 * server.h (struct buffer): New.
19984 (buffer_grow_str, buffer_grow_str0): New macros.
19985 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19986 (buffer_xml_printf): Declare.
07e059b5 19987
4cab47ab
DE
199882008-11-24 Doug Evans <dje@google.com>
19989
19990 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19991
f142445f
DJ
199922008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19993
19994 * server.c (handle_v_run): Always use the supplied argument list.
19995
d0107bb6 199962008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 19997
d0107bb6
BW
19998 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19999 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20000
2c4ad781
TJB
200012008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20002
20003 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20004 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20005 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20006 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20007 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20008 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20009 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20010 XML target descriptions.
20011 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20012 when inferior is running on an ISA 2.05 or later processor. Add
20013 special case to return offset for full 64-bit slot of FPSCR when
20014 in 32-bits.
20015
dfb64f85
DJ
200162008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20017
20018 * Makefile.in (SFILES, clean): Added sparc64 files.
20019 (reg-sparc64.o, reg-sparc64.c): New.
20020 * configure.srv (sparc*-*-linux*): New configuration.
20021 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20022 syscall arguments for SPARC.
20023 (regsets_store_inferior_registers): Likewise.
20024 * linux-sparc-low.c: New file.
20025
66b6e1dd
DE
200262008-10-21 Doug Evans <dje@google.com>
20027
20028 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20029 (READLINE_DIR,READLINE_DEP): Delete.
20030 (INTERNAL_CFLAGS): Update.
20031 (LINTFLAGS): Update.
20032
9b710a42
PA
200332008-10-10 Pedro Alves <pedro@codesourcery.com>
20034
20035 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20036 whole argv from the last run, not just argv[0].
20037
5822d809
PA
200382008-09-08 Pedro Alves <pedro@codesourcery.com>
20039
20040 * regcache.c (new_register_cache): Return NULL if the register
20041 cache size isn't known yet.
20042 (free_register_cache): Avoid dereferencing a NULL regcache.
20043
74aac56f
DJ
200442008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20045
20046 * configure.srv: Merge MIPS and MIPS64.
20047
400b20f5
MR
200482008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20049
20050 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20051
677c5bb1
LM
200522008-08-18 Luis Machado <luisgpm@br.ibm.com>
20053
20054 * Makefile.in: Add required vsx dependencies.
20055
20056 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20057 Declare init_registers_powerpc_vsx32l.
20058 Declare init_registers_powerpc_vsx64l.
20059 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20060 (ppc_arch_setup): Check for VSX in hwcap.
20061 (ppc_fill_vsxregset): New function.
20062 (ppc_store_vsxregset): New function.
20063 Add new VSX entry in regset_info target_regsets.
20064
20065 * configure.srv: Add new VSX dependencies.
20066
a6f3e723
SL
200672008-08-12 Pedro Alves <pedro@codesourcery.com>
20068
20069 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20070 (remote_open): Set or clear transport_is_reliable.
20071 (putpkt_binary): Don't expect acks in noack mode.
20072 (getpkt): Don't send ack/nac in noack mode.
20073 * server.c (handle_general_set): Handle QStartNoAckMode.
20074 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20075 qSupported.
20076 (main): Reset noack_mode on every connection.
20077 * server.h (noack_mode): Declare.
20078
a417dc56
RW
200792008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20080
20081 * Makefile.in (GDBREPLAY_OBS): New variable.
20082 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20083
3221518c
UW
200842008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20085 Daniel Jacobowitz <dan@codesourcery.com>
20086
20087 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20088 (usr_store_inferior_registers): Likewise.
20089 (regsets_store_inferior_registers): Likewise.
20090
ec56be1b
PA
200912008-07-31 Rolf Jansen <rj@surtec.com>
20092 Pedro Alves <pedro@codesourcery.com>
20093
20094 * configure.ac: Check for memmem declaration.
20095 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20096 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20097 (disable_packet_qfThreadInfo): Unconditionally compile.
20098 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20099 * configure, config.in: Regenerate.
20100
2fe5e3ff
DE
201012008-07-28 Doug Kwan <dougkwan@google.com>
20102
20103 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20104 (linux_write_memory): Remove declaration of errno.
20105
836acd6d
UW
201062008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20107
20108 * linux-low.c (handle_extended_wait): Do not use "status"
20109 variable uninitialized.
20110
aeba519e
PA
201112008-07-07 Pedro Alves <pedro@codesourcery.com>
20112
20113 * server.c (handle_v_attach): Inhibit reporting dll changes.
20114
db42f210
PA
201152008-06-27 Pedro Alves <pedro@codesourcery.com>
20116
20117 * remote-utils.c (prepare_resume_reply): If requested, don't
20118 output "thread:TID" in the T stop reply.
20119
20120 * server.c (disable_packet_vCont, disable_packet_Tthread)
20121 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20122 (handle_query): If requested, disable support for qC, qfThreadInfo
20123 and qsThreadInfo.
20124 (handle_v_requests): If requested, disable support for vCont.
20125 (gdbserver_show_disableable): New.
20126 (main): Handle --disable-packet and --disable-packet=LIST.
20127
20128 * server.h (disable_packet_vCont, disable_packet_Tthread)
20129 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20130
8e4c5421
CD
201312008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20132
20133 * server.c (gdbserver_usage): Mention --version.
20134
6e23a804
DJ
201352008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20136
20137 * Makefile.in (gdbreplay.o): New rule.
20138
90aa6a40
JM
201392008-06-06 Joseph Myers <joseph@codesourcery.com>
20140
20141 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20142 message, not gdbserver.
20143
c16158bc 201442008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20145 Nathan Sidwell <nathan@codesourcery.com>
20146 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20147
20148 * acinclude.m4: Include ../../config/acx.m4.
20149 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20150 * configure, config.in: Regenerate.
20151 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20152 * server.c (gdbserver_version): Print PKGVERSION.
20153 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20154 (main): Adjust gdbserver_usage calls.
20155 * gdbreplay.c (version, host_name): Add declarations.
20156 (gdbreplay_version, gdbreplay_usage): New.
20157 (main): Accept --version and --help options.
20158
aeb75bf5
DJ
201592008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20160
20161 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20162 (arm_breakpoint_at): Handle Thumb.
20163 (the_low_target): Add comment.
20164
76b233dd
UW
201652008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20166
20167 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20168
08388c79
DE
201692008-05-09 Doug Evans <dje@google.com>
20170
a3c83fae
DE
20171 * server.h (decode_search_memory_packet): Declare.
20172 * remote-utils.c (decode_search_memory_packet): New fn.
20173 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20174 (handle_search_memory): New fn.
20175 (handle_query): Process qSearch:memory packets.
20176
bb9c3d36
UW
201772008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20178
20179 * regcache.c (registers_length): Remove.
20180 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20181 full register packet.
20182 * regcache.h (registers_length): Remove prototype.
20183 * server.h (PBUFSIZ): Define to 16384.
20184
7284e1be
UW
201852008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20186
20187 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20188 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20189 powerpc-64l.o, and powerpc-altivec64l.o.
20190 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20191 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20192 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20193 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20194 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20195 to srv_xmlfiles.
20196
20197 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20198 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20199 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20200 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20201 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20202 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20203 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20204 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20205 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20206 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20207 (clean): Update.
20208
20209 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20210 (init_registers_powerpc_32l): ... this new prototype.
20211 (init_registers_powerpc_32): Remove, replace by ...
20212 (init_registers_powerpc_altivec32l): ... this new prototype.
20213 (init_registers_powerpc_e500): Remove, replace by ...
20214 (init_registers_powerpc_e500l): ... this new prototype.
20215 (init_registers_ppc64): Remove, replace by ...
20216 (init_registers_powerpc_64l): ... this new prototype.
20217 (init_registers_powerpc_64): Remove, replace by ...
20218 (init_registers_powerpc_altivec64l): ... this new prototype.
20219 (ppc_num_regs): Set to 73.
20220 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20221 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20222 (ppc_cannot_store_register): Handle orig_r3 and trap.
20223 (ppc_arch_setup): Update init_registers_... calls.
20224 (ppc_fill_gregset): Handle orig_r3 and trap.
20225
20226 * inferiors.c (clear_inferiors): Reset current_inferior.
20227
fdc59709
PB
202282008-04-23 Paolo Bonzini <bonzini@gnu.org>
20229
889bf7c5
PA
20230 * acinclude.m4: Add override.m4.
20231 * configure: Regenerate.
fdc59709 20232
c9b2f845
UW
202332008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20234
20235 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20236 initial call to init_register_ppc64.
20237
550512b8
UW
202382008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20239
43aaf8b6
PA
20240 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20241 single powerpc*-*-linux* case.
550512b8
UW
20242 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20243
b6430ec3
UW
202442008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20245
20246 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20247 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20248 from reg_xmlfiles.
20249 * linux-ppc-low.c: Include <elf.h>.
20250 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20251 (ppc_hwcap): New global variable.
20252 (ppc_regmap): Remove __SPE__ #ifdef sections.
20253 (ppc_regmap_e500): New global variable.
20254 (ppc_cannot_store_register): Update __SPE__ special case.
20255 (ppc_get_hwcap): New function.
20256 (ppc_arch_setup): Use it to determine whether inferior supports
20257 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20258 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20259 Do not access registers if target does not support AltiVec.
20260 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20261 Do not access registers if target does not support SPE.
20262 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20263
52fa2412
UW
202642008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20265
20266 * linux-low.c (disabled_regsets, num_regsets): New.
20267 (use_regsets_p): Delete.
20268 (linux_wait_for_process): Clear disabled_regsets.
20269 (regsets_fetch_inferior_registers): Check and set it.
20270 (regsets_store_inferior_registers): Likewise.
20271 (linux_fetch_registers, linux_store_registers): Do not use
20272 use_regsets_p.
20273 (initialize_low): Allocate disabled_regsets.
20274
e28b3332
DJ
202752008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20276
20277 * Makefile.in (LIBOBJS): New.
20278 (OBS): Use LIBOBJS.
20279 (memmem.o): New rule.
20280 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20281 * configure: Regenerated.
20282
4536995d
UW
202832008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20284
20285 * server.c (handle_query): Never return "unsupported" for
20286 qXfer:features:read queries.
20287
221c031f
UW
202882008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20289
20290 * server.c (get_features_xml): Fix inverted condition.
20291 (handle_query): Always support qXfer:feature:read.
20292
ccd213ac
DJ
202932008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20294
20295 * server.c (wrapper_argv): New.
20296 (start_inferior): Handle wrapper_argv. If set, expect an extra
20297 trap.
20298 (gdbserver_usage): Document --wrapper.
20299 (main): Parse --wrapper.
20300
6fe305f7
UW
203012008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20302
20303 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20304 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20305 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20306 (ppc_set_pc): Likewise.
20307 (ppc_arch_setup): New function.
20308 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20309 of collect_register.
889bf7c5 20310 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20311
5b0a002e
UW
203122008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20313
20314 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20315 instead of linux-ppc64-low.o.
20316 * linux-ppc64-low.c: Remove file.
20317 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20318 (linux-ppc64-low.o): Remove rule.
20319
20320 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20321 (init_registers_powerpc_64): Likewise.
20322 (ppc_regmap): Conditionally define depending on __powerpc64__.
20323 (ppc_cannot_store_register): Do not special-case "fpscr" when
20324 compiled on __powerpc64__.
20325 (ppc_collect_ptrace_register): New function.
20326 (ppc_supply_ptrace_register): New function.
20327 (ppc_breakpoint): Change type to "unsigned int".
20328 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20329 (the_low_target): Conditionally provide initializers for the
889bf7c5 20330 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20331 collect_ptrace_register and supply_ptrace_register members.
20332
9b4b61c8
UW
203332008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20334
20335 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20336 * server.c (gdbserver_xmltarget): Define.
20337 (get_features_xml): Use it to replace "target.xml" and arch_string.
20338
20339 * configure.srv: Remove srv_xmltarget. Add XML files that were
20340 mentioned there to srv_xmlfiles instead. Remove conditional tests
20341 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20342 srv_xmlfiles and srv_regobj to include all possible choices.
20343 * configure.ac (srv_xmltarget): Remove.
20344 (srv_xmlfiles): Do not add "target.xml".
20345 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20346 checks for supplementary target information.
20347 * configure: Regenerate.
20348 * Makefile.in (XML_TARGET): Remove.
20349 (target.xml): Remove rule.
20350 (clean): Do not clean up target.xml.
20351 (.PRECIOUS): Do not mention target.xml.
20352
20353 * target.h (struct target_ops): Remove arch_string member.
20354 * linux-low.c (linux_arch_string): Remove.
20355 (linux_target_ops): Remove arch_string initializer.
20356 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20357 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20358 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20359 * spu-low.c (spu_arch_string): Remove.
20360 (spu_target_ops): Remove arch_string initializer.
20361 * win32-low.c (win32_arch_string): Remove.
20362 (win32_target_ops): Remove arch_string initializer.
20363 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20364 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20365 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20366
ee1a7ae4
UW
203672008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20368
20369 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20370 by collect_ptrace_register and supply_ptrace_register hooks.
20371 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20372 instead of checking for the_low_target.left_pad_xfer.
20373 (usr_store_inferior_registers): Use collect_ptrace_register callback
20374 instead of checking for the_low_target.left_pad_xfer.
20375
20376 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20377 (s390_supply_ptrace_register): Likewise.
20378 (s390_fill_gregset): Call s390_collect_ptrace_register.
20379 (the_low_target): Update.
20380
20381 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20382 (ppc_supply_ptrace_register): Likewise.
20383 (the_low_target): Update.
20384
20385 * linux-i386-low.c (the_low_target): Update.
20386 * linux-x86-64-low.c (the_low_target): Update.
20387
d61ddec4
UW
203882008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20389
20390 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20391 reg-s390.o and reg-s390x.o.
20392
20393 * linux-low.c (new_inferior): New global variable.
20394 (linux_create_inferior, linux_attach): Set it.
20395 (linux_wait_for_process): Call the_low_target.arch_setup after the
20396 target has stopped for the first time.
20397 (initialize_low): Do not call the_low_target.arch_setup.
20398
20399 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20400 (s390_set_pc): Likewise.
20401 (s390_arch_setup): New function.
20402 (the_low_target): Use s390_arch_setup as arch_setup routine.
20403
20404 * regcache.c (realloc_register_cache): New function.
20405 (set_register_cache): Call it for each existing regcache.
20406
d05b4ac3
UW
204072008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20408
20409 * server.h (init_registers): Remove prototype.
20410
20411 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20412 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20413 instead of init_registers ().
20414 * linux-arm-low.c (init_registers_arm): Add prototype.
20415 (init_registers_arm_with_iwmmxt): Likewise.
20416 (the_low_target): Add initializer for arch_setup field.
20417 * linux-cris-low.c (init_registers_cris): Add prototype.
20418 (the_low_target): Add initializer for arch_setup field.
20419 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20420 (the_low_target): Add initializer for arch_setup field.
20421 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20422 (the_low_target): Add initializer for arch_setup field.
20423 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20424 (the_low_target): Add initializer for arch_setup field.
20425 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20426 (the_low_target): Add initializer for arch_setup field.
20427 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20428 (the_low_target): Add initializer for arch_setup field.
20429 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20430 (init_registers_mips64_linux): Likewise.
20431 (the_low_target): Add initializer for arch_setup field.
20432 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20433 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20434 (the_low_target): Add initializer for arch_setup field.
20435 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20436 (init_registers_powerpc_64): Likewise.
20437 (the_low_target): Add initializer for arch_setup field.
20438 * linux-s390-low.c (init_registers_s390): Add prototype.
20439 (init_registers_s390x): Likewise.
20440 (the_low_target): Add initializer for arch_setup field.
20441 * linux-sh-low.c (init_registers_sh): Add prototype.
20442 (the_low_target): Add initializer for arch_setup field.
20443 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20444 (the_low_target): Add initializer for arch_setup field.
20445 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20446 (the_low_target): Add initializer for arch_setup field.
20447
20448 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20449 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20450 instead of init_registers ().
20451 * win32-arm-low.c (init_registers_arm): Add prototype.
20452 (the_low_target): Add initializer for arch_setup field.
20453 * win32-i386-low.c (init_registers_i386): Add prototype.
20454 (the_low_target): Add initializer for arch_setup field.
20455
20456 * spu-low.c (init_registers_spu): Add prototype.
20457 (initialize_low): Call initialie_registers_spu () instead of
20458 initialize_registers ().
20459
fd96d250
PA
204602008-02-19 Pedro Alves <pedro@codesourcery.com>
20461
20462 * server.c (handle_v_requests): When handling the vRun and vAttach
20463 packets, if already debugging a process, don't kill it. Return an
20464 error instead.
20465
d41b6bb4
DJ
204662008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20467
20468 * server.c (handle_query): Correct length check.
20469
5ac588cf
PA
204702008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20471
20472 * win32-low.c (do_initial_child_stuff): Add process handle
20473 parameter. Set current_process_handle and current_process_id from the
20474 parameters. Clear globals.
20475 (win32_create_inferior): Don't set current_process_handle and
20476 current_process_id here. Instead pass them on the call to
20477 do_initial_child_stuff.
20478 (win32_attach): Likewise.
20479 (win32_clear_inferiors): New.
20480 (win32_kill): Don't close the current process handle or the
20481 current thread handle here. Instead call win32_clear_inferiors.
20482 (win32_detach): Don't open a new handle to the process. Call
20483 win32_clear_inferiors.
20484 (win32_join): Don't rely on current_process_handle; open a new
20485 handle using the process id.
20486 (win32_wait): Call win32_clear_inferiors when the inferior process
20487 has exited.
20488
ecd7ecbc
DJ
204892008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20490
20491 * server.c (monitor_show_help): Add "exit".
20492
1525d545
MG
204932008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20494
ecd7ecbc 20495 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20496 (clean): Add reg-xtensa.c.
20497 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20498 * configure.srv (xtensa*-*-linux*) New target.
20499 * linux-xtensa-low.c: New.
20500 * xtensa-xtregs.c: New.
1525d545 20501
59a016f0
PA
205022008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20503
20504 * hostio.c: Don't include errno.h.
20505 (errno_to_fileio_errno): Move to hostio-errno.
20506 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20507 error number outputting to the target->hostio_last_error callback.
20508 (hostio_packet_error): Use FILEIO_EINVAL directly.
20509 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20510 calls to hostio_error.
20511 * hostio-errno.c: New.
20512 * server.h (hostio_last_error_from_errno): Declare.
20513 * target.h (target_ops): Add hostio_last_error member.
20514 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20515 as hostio_last_error handler.
889bf7c5 20516 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20517 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20518 (wince_hostio_last_error): New functions.
20519 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20520 as hostio_last_error handler.
20521 (win32_target_ops) [!_WIN32_WCE]: Register
20522 hostio_last_error_from_errno as hostio_last_error handler.
20523 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20524 (hostio-errno.o): New rule.
20525 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20526 * configure.srv (srv_hostio_err_objs): New variable. Default to
20527 hostio-errno.o.
20528 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20529 * configure: Regenerate.
20530
2d717e4f
DJ
205312008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20532
20533 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20534 (linux_kill, linux_detach): Clean up the process list.
20535 * remote-utils.c (remote_open): Improve port number parsing.
20536 (putpkt_binary, input_interrupt): Only send interrupts if the target
20537 is running.
20538 * server.c (extended_protocol): Make static.
20539 (attached): Define earlier.
20540 (exit_requested, response_needed, program_argv): New variables.
20541 (target_running): New.
20542 (start_inferior): Clear attached here.
20543 (attach_inferior): Set attached here.
20544 (require_running): Define.
20545 (handle_query): Use require_running and target_running. Implement
20546 "monitor exit".
20547 (handle_v_attach, handle_v_run): New.
20548 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20549 (gdbserver_usage): Update.
20550 (main): Redo argument parsing. Handle --debug and --multi. Handle
20551 --attach along with other options or after the port. Save
20552 program_argv. Support no initial program. Resynchronize
20553 communication with GDB after an error. Handle "monitor exit".
20554 Use require_running and target_running. Always allow the extended
20555 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20556 restart in extended mode.
20557 * README: Refer to the GDB manual. Update --attach usage.
20558
7407e2de
AS
205592007-12-20 Andreas Schwab <schwab@suse.de>
20560
20561 * linux-low.c (STACK_SIZE): Define.
20562 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20563 (linux_test_for_tracefork): Likewise.
20564
b65d95c5
DJ
205652007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20566
20567 * linux-low.c (linux_wait_for_event): Update messages. Do not
20568 reinsert auto-delete breakpoints.
20569 * mem-break.c (struct breakpoint): Change return type of handler to
20570 int.
20571 (set_breakpoint_at): Update handler type.
20572 (reinsert_breakpoint_handler): Return 1 instead of calling
20573 delete_breakpoint.
20574 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20575 setting a new one.
20576 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20577 * mem-break.h (set_breakpoint_at): Update handler type.
20578 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20579 * win32-low.c (auto_delete_breakpoint): New.
20580 (get_child_debug_event): Use it.
20581
4e799345
DJ
205822007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20583
20584 * configure.ac: Check for pread and pwrite.
20585 * hostio.c (handle_pread): Fall back to lseek and read.
20586 (handle_pwrite): Fall back to lseek and write.
20587 * config.in, configure: Regenerated.
20588
27524b67
DJ
205892007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20590
20591 * server.c (myresume): Add own_buf argument.
20592 (main): Update calls.
20593
a20d5e98
DJ
205942007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20595
20596 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20597 * remote-utils.c (remote_open): Do not call disable_async_io.
20598 (block_async_io): Delete.
20599 (unblock_async_io): Make static.
20600 (initialize_async_io): New.
20601 * server.c (handle_v_cont): Handle async I/O here.
20602 (myresume): Likewise. Move other common resume tasks here...
20603 (main): ... from here. Call initialize_async_io. Disable async
20604 I/O before the main loop.
20605 * server.h (initialize_async_io): Declare.
20606 (block_async_io, unblock_async_io): Delete prototypes.
20607 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20608
b79d787e
DJ
206092007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20610
20611 * remote-utils.c (readchar): Allow binary data in received messages.
20612
d97903b2
PA
206132007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20614
20615 * win32-low.c (attaching): New global.
20616 (win32_create_inferior): Clear the `attaching' global.
20617 (win32_attach): Set the `attaching' global.
20618 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20619 attaching. Only set a breakpoint at the entry point if not
20620 attaching.
20621
311de423
PA
206222007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20623
20624 * server.c (main): Don't report dll events on the initial
20625 connection on attaches.
20626
6c2d16d2
PA
206272007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20628
20629 * server.c (main): Relax numerical bases supported for the pid of
20630 the --attach command line argument.
20631
5ca906e6
PA
206322007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20633
20634 * win32-low.c (win32_attach): Call OpenProcess before
20635 DebugActiveProcess, not after. Add last error output to error
20636 call.
20637
9c6c8194
PA
206382007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20639
20640 * win32-low.c (win32_get_thread_context)
20641 (win32_set_thread_context): New functions.
20642 (thread_rec): Use win32_get_thread_context.
20643 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20644 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20645 field.
20646
4d5d1aaa
PA
206472007-12-03 Leo Zayas
20648 Pedro Alves <pedro_alves@portugalmail.pt>
20649
20650 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20651 global variables.
20652 (child_add_thread): Minor cleanup.
20653 (child_continue): Resume artificially suspended threads before
20654 calling ContinueDebugEvent.
20655 (suspend_one_thread): New.
20656 (fake_breakpoint_event): New.
20657 (get_child_debug_event): Change return type to int. Check here if
20658 gdb sent an interrupt request. If a soft interrupt was requested,
20659 fake a breakpoint event. Return 0 if there is no event to handle,
20660 and 1 otherwise.
20661 (win32_wait): Don't check here if gdb sent an interrupt request.
20662 Ensure there is a valid event to handle.
20663 (win32_request_interrupt): Add soft interruption method as last
20664 resort.
20665
c436e841
PA
206662007-12-03 Leo Zayas
20667 Pedro Alves <pedro_alves@portugalmail.pt>
20668
20669 * win32-low.h (win32_thread_info): Add descriptions to the
20670 structure members. Replace `suspend_count' counter by a
20671 `suspended' flag.
20672 * win32-low.c (thread_rec): Update condition of when to get the
20673 context from the inferior. Rely on ContextFlags being set if it
20674 has already been retrieved. Only suspend the inferior thread if
20675 we haven't already. Warn if that fails.
20676 (continue_one_thread): s/suspend_count/suspended/. Only call
20677 ResumeThread once. Warn if that fails.
20678
e7b5fa67
PA
206792007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20680
20681 * win32-low.c (win32_wait): Don't read from the inferior when it
20682 has already exited.
20683
a385171d
PA
206842007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20685
20686 * Makefile.in (win32_low_h): New variable.
20687 (win32-low.o): Add dependency on $(win32_low_h).
20688 (win32-arm-low.o, win32-i386-low.o): New rules.
20689
f80c84b3
DJ
206902007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20691
20692 * hostio.c: Correct copyright year.
20693
a6b151f1
DJ
206942007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20695
20696 * Makefile.in (OBS): Add hostio.o.
20697 (hostio.o): New rule.
20698 * server.h (handle_vFile): Declare.
20699 * hostio.c: New file.
20700 * server.c (handle_v_requests): Take packet_len and new_packet_len
20701 for binary packets. Call handle_vFile.
20702 (main): Update call to handle_v_requests.
20703
f9387fc3
DJ
207042007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20705
20706 * linux-low.c: Include <sched.h>.
20707
51c2684e
DJ
207082007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20709
20710 * linux-low.c (linux_tracefork_grandchild): New.
20711 (linux_tracefork_child): Use clone.
20712 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20713
75f83163
JB
207142007-10-31 Joel Brobecker <brobecker@adacore.com>
20715
20716 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20717
da5898ce
DJ
207182007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20719
20720 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20721
24a09b5f
DJ
207222007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20723
20724 * inferiors.c (change_inferior_id): Delete.
20725 (add_pid_to_list, pull_pid_from_list): New.
20726 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20727 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20728 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20729 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20730 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20731 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20732 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20733 (using_threads): Always set to 1.
20734 (handle_extended_wait): New.
20735 (add_process): Do not set TID.
20736 (linux_create_inferior): Set must_set_ptrace_flags.
20737 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20738 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20739 (linux_thread_alive): Rename TID argument to LWPID.
20740 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20741 (linux_wait_for_event): Do not use TID or check using_threads. Update
20742 call to dead_thread_notify. Call handle_extended_wait.
20743 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20744 (send_sigstop): Delete sigstop_sent.
20745 (wait_for_sigstop): Avoid TID.
20746 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20747 (linux_test_for_tracefork): New.
20748 (linux_lookup_signals): Use thread_db_active and
20749 linux_supports_tracefork_flag.
20750 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20751 * linux-low.h (get_process_thread): Avoid TID.
20752 (struct process_ifo): Move thread_known and tid to the end. Remove
20753 sigstop_sent.
20754 (linux_attach_lwp, thread_db_init): Update prototypes.
20755 * server.h (change_inferior_id): Delete prototype.
20756 (add_pid_to_list, pull_pid_from_list): New prototypes.
20757 * thread-db.c (thread_db_use_events): New.
20758 (find_first_thread): Rename to...
20759 (find_one_thread): ...this. Update callers and messages. Do not
20760 call fatal. Check thread_db_use_events. Do not call
20761 change_inferior_id or new_thread_notify.
20762 (maybe_attach_thread): Update. Do not call new_thread_notify.
20763 (thread_db_init): Set thread_db_use_events. Check use_events.
20764 * utils.c (fatal, warning): Correct message prefix.
20765
30ed0a8f
DJ
207662007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20767
20768 * Makefile.in (clean): Remove new files.
20769 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20770 (powerpc-64.o, powerpc-64.c): New rules.
20771 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20772 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20773 with SPE.
20774 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20775 SPE targets.
20776 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20777 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20778 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20779 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20780 (target_regsets): Add AltiVec and SPE register sets.
20781 * configure.ac: Check for AltiVec and SPE.
20782 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20783 (ppc_fill_vrregset, ppc_store_vrregset): New.
20784 (target_regsets): Add AltiVec register set.
20785 * configure: Regenerated.
20786
fd462a61
DJ
207872007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20788
20789 * linux-low.c (O_LARGEFILE): Define.
20790 (linux_read_memory): Use /proc/PID/mem.
20791 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20792 * configure, config.in: Regenerated.
20793
69f223ed
DJ
207942007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20795
20796 * linux-low.c (linux_wait_for_event): Do not pass signals while
20797 single-stepping.
20798
aec18585
PA
207992007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20800
20801 * win32-low.c (create_process): New.
20802 (win32_create_inferior): Use create_process instead of
20803 CreateProcess. If create_process failed retry appending an ".exe"
20804 suffix. Store the GetLastError result immediatelly after
20805 create_process calls and use it on the call to error.
20806
34d86ddd
PA
208072007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20808
20809 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20810
5a0e3bd0
JB
208112007-08-23 Joel Brobecker <brobecker@adacore.com>
20812
20813 * configure.ac: Switch license to GPLv3.
20814
f88c79e6
MS
208152007-08-01 Michael Snyder <msnyder@access-company.com>
20816
20817 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20818
6b3d9b83
PA
208192007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20820
20821 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20822 typedef.
20823 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20824 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20825 CloseToolhelp32Snapshot.
20826 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20827 CloseToolhelp32Snapshot.
20828
c588c53c
MS
208292007-07-27 Michael Snyder <michael.snyder@access-company.com>
20830
20831 * server.c (main): Check for inferior exit before main loop.
20832
aa0403d9
PA
208332007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20834
20835 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20836 instead of on tmp_desc.
20837
255e7678
DJ
208382007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20839 Daniel Jacobowitz <dan@codesourcery.com>
20840
20841 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20842 (add_thread): Minor cleanups.
20843 (clear_inferiors): Move lower in the file. Clear the DLL
20844 list.
20845 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20846 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20847 (xml_escape_text): New.
20848 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20849 for qSupported.
20850 (handle_v_cont): Report errors.
20851 (gdbserver_version): Update.
20852 (main): Correct size of own_buf. Do not report initial DLL events.
20853 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20854 (unloaded_dll, xml_escape_text): New.
20855 * win32-low.c (enum target_waitkind): Update comments.
20856 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20857 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20858 (win32_EnumProcessModules, win32_GetModuleInformation)
20859 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20860 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20861 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20862 (win32_Module32First, win32_Module32Next, load_toolhelp)
20863 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20864 (get_child_debug_event): Handle DLL events.
20865 (win32_wait): Likewise.
20866
0d37add9
DJ
208672007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20868
20869 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20870 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20871
45e2715e
PA
208722007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20873
20874 * win32-low.c (handle_output_debug_string): Ignore event if not
20875 waiting.
20876
c5674cf1
PA
208772007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20878
20879 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20880
2bbe3cc1
DJ
208812007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20882
20883 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20884
ae13219e
DJ
208852007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20886
20887 * inferiors.c (change_inferior_id): Add comment.
20888 * linux-low.c (check_removed_breakpoint): Add an early
20889 prototype. Improve debug output.
20890 (linux_attach): Doc update.
20891 (linux_detach_one_process, linux_detach): Clean up before releasing
20892 each process.
20893 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20894 * linux-low.h (struct process_info): Doc improvement.
20895 * mem-break.c (delete_all_breakpoints): New.
20896 * mem-break.h (delete_all_breakpoints): New prototype.
20897 * thread-db.c (find_first_thread): New.
20898 (thread_db_create_event): Call it instead of
20899 thread_db_find_new_threads. Clean up unused variables.
20900 (maybe_attach_thread): Remove first thread handling.
20901 (thread_db_find_new_threads): Use find_first_thread.
20902 (thread_db_get_tls_address): Likewise.
20903
4105de34
DJ
209042007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20905
20906 * thread-db.c (thread_db_find_new_threads): Add prototype.
20907 (thread_db_create_event): Check for the main thread before adding
20908 a new thread.
20909 (maybe_attach_thread): Only enable event reporting if TID == 0.
20910 (thread_db_get_tls_address): Check for new threads.
20911
2b876972
DJ
209122007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20913
20914 * linux-low.c (linux_create_inferior): Try execv before execvp.
20915 * spu-low.c (spu_create_inferior): Likewise.
20916
7a245884
DJ
209172007-06-13 Mike Frysinger <vapier@gentoo.org>
20918
20919 * linux-low.c (linux_create_inferior): Change execv to execvp.
20920 * spu-low.c (spu_create_inferior): Likewies.
20921
117ce543
DJ
209222007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20923
20924 * Makefile.in (clean): Clean new files instead of deleted ones.
20925 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20926 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20927 rules.
20928 * configure.srv: Specify XML files and new regformats for MIPS and
20929 MIPS64 GNU/Linux.
20930 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20931 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20932 an entry for the restart register.
20933 (mips_cannot_fetch_register, mips_cannot_store_register)
20934 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20935 register names to match the XML descriptions.
20936 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20937 restart register instead of $0.
20938
0e7f50da
UW
209392007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20940 Markus Deuling <deuling@de.ibm.com>
20941
20942 * remote-utils.c (decode_xfer_write): New function.
20943 * server.h (decode_xfer_write): Add prototype.
20944 * server.c (handle_query): Add PACKET_LEN argument. Support
20945 qXfer:spu:read and qXfer:spu:write packets.
20946 (main): Pass packet_len to handle_query.
20947 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20948 * target.h (target_ops): Add qxfer_spu.
20949
374c1d38
UW
209502007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20951
20952 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20953 accessing non-seekable spufs files.
20954
bb63802a
UW
209552007-05-16 Markus Deuling <deuling@de.ibm.com>
20956
889bf7c5 20957 * server.c (handle_query): Add reply for qC packet.
bb63802a 20958
7390519e
PA
209592007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20960 Leo Zayas <lerele@champenstudios@com>
20961
20962 * server.h (check_remote_input_interrupt_request): New function.
20963 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20964 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20965 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20966 (check_remote_input_interrupt_request): New function.
20967 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20968 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20969 winapi_GenerateConsoleCtrlEvent): New typedefs.
20970 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20971 to 250 ms.
20972 (win32_wait): Check for remote interrupt request
20973 with check_remote_input_interrupt_request.
20974 (win32_request_interrupt): New function.
20975 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20976
34b34921
PA
209772007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20978
20979 * win32-low.c (debug_registers_changed,
20980 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20981 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20982 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20983 (thread_rec): Get context using the low target.
20984 (child_add_thread): Call thread_added on the low target,
20985 which does the same thing.
20986 (regptr): Delete.
20987 (do_initial_child_stuff): Remove debug registers references.
20988 Set context using the low target. Resume threads after
20989 setting the contexts.
20990 (child_continue): Remove dead variable. Remove debug
20991 registers references.
20992 (child_fetch_inferior_registers): Go through the low target.
20993 (do_child_store_inferior_registers): Remove.
20994 (child_store_inferior_registers): Go through the low target.
20995 (win32_resume): Remove debug registers references.
20996 Set context using the low target.
20997 (handle_exception): Change return type to void. Don't record
20998 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20999 first chance exception.
889bf7c5 21000 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21001 goto loop. Always return after waiting for debug event.
21002 (win32_wait): Convert to switch statement. Handle spurious
21003 events.
21004
21005 * win32-i386-low.c (debug_registers_changed,
21006 debug_registers_used): New.
21007 (initial_stuff): Rename to ...
21008 (i386_initial_stuff): ... this. Clear debug registers
21009 state variables.
21010 (store_debug_registers): Delete.
21011 (i386_get_thread_context): New.
21012 (load_debug_registers): Delete.
21013 (i386_set_thread_context): New.
21014 (i386_thread_added): New.
21015 (single_step): Rename to ...
21016 (i386_single_step): ... this.
21017 (do_fetch_inferior_registers): Rename to ...
21018 (i386_fetch_inferior_register): ... this.
21019 (i386_store_inferior_register): New.
21020 (the_low_target): Adapt to new interface.
21021
21022 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21023 (arm_get_thread_context): New.
21024 (arm_set_thread_context): New.
21025 (regptr): New.
21026 (do_fetch_inferior_registers): Rename to ...
21027 (arm_fetch_inferior_register): ... this.
21028 (arm_store_inferior_register): New.
21029 (arm_wince_breakpoint): Reimplement as unsigned long.
21030 (arm_wince_breakpoint_len): Define.
21031 (the_low_target): Adapt to new interface.
21032
21033 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21034 load_debug_registers. Add get_thread_context, set_thread_context,
21035 thread_added and store_inferior_register. Rename
21036 fetch_inferior_registers to fetch_inferior_register.
21037 (regptr): Remove declaration.
21038
dd6953e1
PA
210392007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21040
21041 * linux-low.c (linux_detach): Change return type to int. Return 0.
21042 * spu-low.c (spu_detach): Likewise.
21043
444d6139
PA
210442007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21045
21046 * target.h (target_ops): Change return type of detach to int.
21047 Add join.
21048 (join_inferior): New.
21049 * server.c (main): Don't skip detach support on mingw32.
21050 If the inferior doesn't support detaching return error.
21051 Call join_inferior instead of using waitpid.
21052 * linux-low.c (linux_join): New.
21053 (linux_target_op): Add linux_join.
21054 * spu-low.c (spu_join): New.
21055 (spu_target_ops): Add spu_join.
21056 * win32-low.c (win32_detach): Adapt to new interface.
21057 Reopen current_process_handle before detaching. Issue a child
21058 resume before detaching.
21059 (win32_join): New.
21060 (win32_target_op): Add win32_join.
21061
1d5315fe
PA
210622007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21063
21064 * win32-low.c (win32-attach): Fix return value.
21065 * target.h (target_ops): Describe ATTACH return values.
21066
bf914831
PA
210672007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21068
21069 * win32-low.c (GETPROCADDRESS): Define.
21070 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21071 (winapi_DebugSetProcessKillOnExit): Likewise.
21072 (win32_create_inferior): Force usage of ansi CreateProcessA.
21073 (win32_attach): Use GETPROCADDRESS.
21074 (win32_detach): Likewise.
21075
f72f3e60
PA
210762007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21077
21078 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21079
ed50f18f
PA
210802007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21081
21082 * win32-low.c: Commit leftover changes from 2007-03-29.
21083
0c2ead7e
DJ
210842007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21085
21086 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21087 fields short instead of int. Add explicit padding.
21088 (i387_cache_to_fsave): Remove unnecessary casts.
21089 (i387_fsave_to_cache): Doc fix.
21090 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21091
73725ff3
DJ
210922007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21093
21094 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21095 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21096
d99f33d8
PA
210972007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21098
21099 * configure.srv (arm*-*-mingw32ce*): Move near the other
21100 arm targets.
21101
68070c10
PA
211022007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21103
2482afc6 21104 * configure.ac: Add errno checking.
68070c10
PA
21105 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21106 sys/file.h and malloc.h.
21107 (AC_CHECK_DECLS): Add perror.
21108 (srv_mingwce): Handle.
2482afc6 21109 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21110 win32-i386-low.o to srv_tgtobj.
21111 (i[34567]86-*-mingw*): Likewise.
21112 (arm*-*-mingw32ce*): Add case.
21113 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21114 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21115 [__MINGW32CE__] (strerror): New function.
21116 [__MINGW32CE__] (errno): Define to GetLastError.
21117 [__MINGW32CE__] (COUNTOF): New macro.
21118 (remote_open): Remove extra close call.
21119 * mem-break.c (delete_breakpoint_at): New function.
21120 * mem-break.h (delete_breakpoint_at): Declare.
21121 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21122 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21123 [USE_WIN32API] (read, write): Add char* casts.
21124 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21125 * server.h: Include wincecompat.h on Windows CE.
21126 [HAVE_ERRNO_H]: Check.
21127 (perror): Declare if not declared.
21128 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21129 (perror_with_name): Remove errno declaration.
21130 * wincecompat.h: New.
21131 * wincecompat.c: New.
21132 * win32-low.h: New.
21133 * win32-arm-low.c: New.
21134 * win32-i386-low.c: New.
21135 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21136 (OUTMSG2): Make it safe.
21137 (_T): New macro.
21138 (COUNTOF): New macro.
21139 (NUM_REGS): Get it from the low target.
21140 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21141 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21142 (thread_rec): Let low target handle debug registers.
21143 (child_add_thread): Likewise.
21144 (child_init_thread_list): Likewise.
21145 (continue_one_thread): Likewise.
21146 (regptr): New.
21147 (do_child_fetch_inferior_registers): Move to ...
21148 * win32-i386-low.c: ... here, and rename to ...
21149 (do_fetch_inferior_registers): ... this.
889bf7c5 21150 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21151 Go through the low target.
21152 (do_child_store_inferior_registers): Use regptr.
21153 (strwinerror): New function.
21154 (win32_create_inferior): Handle Windows CE.
21155 Use strwinerror instead of strerror on Windows error
21156 codes. Add program to the error output.
21157 Don't close the main thread handle on Windows CE.
21158 (win32_attach): Use coredll.dll on Windows CE.
21159 (win32_kill): Close current process and current
21160 thread handles.
21161 (win32_detach): Use coredll.dll on Windows CE.
21162 (win32_resume): Let low target handle debug registers, and
21163 step request.
21164 (handle_exception): Add/Remove initial breakpoint. Avoid
21165 non-existant WSTOPSIG on Windows CE.
21166 (win32_read_inferior_memory): Cast to remove warning.
21167 (win32_arch_string): Go through the low target.
21168 (initialize_low): Call set_breakpoint_data with the low
21169 target's breakpoint.
21170 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21171 FOP_REGNUM, mappings): Move to ...
21172 * win32-i386-low.c: ... here.
21173 * win32-low.c (win32_thread_info): Move to ...
21174 * win32-low.h: ... here.
21175 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21176 win32-arm-low.c and wincecompat.c.
21177 (all:): Add $EXEEXT.
21178 (install-only:): Likewise.
21179 (gdbserver:): Likewise.
21180 (gdbreplay:): Likewise.
21181 * config.in: Regenerate.
21182 * configure: Regenerate.
21183
41093d81
PA
211842007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21185
21186 * win32-low.c: Rename typedef thread_info to
21187 win32_thread_info throughout.
21188
544afa54
PA
211892007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21190
21191 * win32-i386-low.c: Rename to ...
21192 * win32-low.c: ... this.
21193 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21194 * Makefile.in: Likewise.
21195
bce7165d
PA
211962007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21197
21198 * remote-utils.c (monitor_output): Constify msg parameter.
21199 * server.h (monitor_output): Likewise.
21200 * win32-i386-low.c (handle_output_debug_string): New.
21201 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21202 handle_output_debug_string.
21203 (get_child_debug_event): Likewise.
21204
506c7aa0
DJ
212052007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21206
21207 * server.c (main): Correct strtoul check.
21208
42c81e2a
DJ
212092007-03-27 Jon Ringle <jon@ringle.org>
21210
21211 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21212
9453113a
DJ
212132007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21214
21215 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21216
64a69107
DJ
212172007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21218
21219 * terminal.h: Check HAVE_SGTTY_H.
21220
212212007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21222
21223 * remote-utils.c (remote_open): Print out the assigned port number.
21224
c74d0ad8
DJ
212252007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21226
21227 * remote-utils.c (monitor_output): New function.
21228 * server.c (debug_threads): Define here.
21229 (monitor_show_help): New function.
21230 (handle_query): Handle qRcmd.
21231 (main): Do not handle 'd' packet.
21232 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21233 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21234 of debug_threads.
21235
de7c3b4a
PA
212362007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21237
21238 * Makefile.in (EXEEXT): New.
21239 (clean): Use $(EXEEXT).
21240
ef57601b
PA
212412007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21242
21243 * target.h (target_ops): Rename send_signal to request_interrupt,
21244 and remove enum target_signal parameter.
21245 * linux-low.c (linux_request_interrupt): Rename from
21246 linux_send_signal, and always send SIGINT.
21247 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21248 and always send SIGINT.
21249 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21250 of send_signal.
21251 (input_interrupt): Likewise.
21252
820f2bda
PA
212532007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21254
21255 * server.c (get_features_xml): Check if target implemented
21256 arch_string.
21257 * win32-i386-low.c (win32_arch_string): New.
21258 (win32_target_ops): Add win32_arch_string as arch_string member.
21259
ab39bf24
UW
212602007-02-22 Markus Deuling <deuling@de.ibm.com>
21261
21262 * spu-low.c (spu_arch_string): New.
21263 (spu_target_ops): Add spu_arch_string.
21264
61ff6e04
DJ
212652007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21266
21267 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21268 * configure.ac: Do not check for terminal.h.
21269 * configure, config.in: Regenerated.
21270
fb1e4ffc
DJ
212712007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21272
21273 * Makefile.in (OBS): Add $(XML_BUILTIN).
21274 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21275 (clean): Update.
21276 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21277 (arm-with-iwmmxt.c): New.
21278 * config.in, configure: Regenerate.
21279 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21280 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21281 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21282 (arm*-*-linux*): Add iWMMXt and regset support.
21283 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21284 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21285 (arm_store_wmmxregset, target_regsets): New.
21286 * server.c (get_features_xml): Take annex argument. Check builtin
21287 XML documents.
21288 (handle_query): Handle multiple annexes.
21289
0f48aa01
DJ
212902007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21291
21292 * remote-utils.c [USE_WIN32API] (read, write): Define.
21293 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21294 write.
21295
23181151
DJ
212962007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21297
21298 * linux-i386-low.c (the_low_target): Set arch_string.
21299 * linux-x86-64-low.c (the_low_target): Likewise.
21300 * linux-low.c (linux_arch_string): New.
21301 (linux_target_ops): Add it.
21302 * linux-low.h (struct linux_target_ops): Add arch_string.
21303 * server.c (write_qxfer_response): Use const void * for DATA.
21304 (get_features_xml): New.
21305 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21306 * target.h (struct target_ops): Add arch_string method.
21307
9d606399
DJ
213082007-01-03 Denis Pilat <denis.pilat@st.com>
21309 Daniel Jacobowitz <dan@codesourcery.com>
21310
21311 * linux-low.c (linux_kill): Handle being called with no threads.
21312 * win32-i386-low.c (win32_kill): Likewise.
21313 (get_child_debug_event): Clear current_process_handle.
21314
213152006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21316 Daniel Jacobowitz <dan@codesourcery.com>
21317
21318 * remote-utils.c (remote_open): Check the type of specified
21319 serial port devices before opening them.
21320 * server.c (main): Kill the inferior if an error occurs during
21321 the first remote_open.
21322
a5e13d24
DJ
213232006-12-05 Markus Deuling <deuling@de.ibm.com>
21324
21325 * README: Update supported targets.
21326
186947f7
DJ
213272006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21328
21329 * Makefile.in (clean): Remove reg-mips64.c.
21330 (reg-mips64.c, reg-mips64.o): New rules.
21331 * configure.srv: Handle mips64. Include regset support for mips.
21332 * linux-mips-low.c (union mips_register): New.
21333 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21334 (mips_breakpoint, mips_breakpoint_at): Use int.
21335 (mips_collect_register, mips_supply_register)
21336 (mips_collect_register_32bit, mips_supply_register_32bit)
21337 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21338 (mips_store_fpregset, target_regsets): New.
21339 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21340
a13e2c95
UW
213412006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21342
21343 * configure.srv: Add target "spu*-*-*".
21344 * Makefile.in (clean): Remove reg-spu.c.
21345 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21346 * spu-low.c: New file.
21347
cb7283db
DJ
213482006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21349
21350 * configure.ac: Correct td_thr_tls_get_addr test.
21351 * configure: Regenerated.
21352
89be2091
DJ
213532006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21354
21355 * linux-low.c (linux_wait_for_event): Reformat. Use the
21356 pass_signals array.
21357 * remote-utils.c (decode_address_to_semicolon): New.
21358 * server.c (pass_signals, handle_general_set): New.
21359 (handle_query): Mention QPassSignals for qSupported.
21360 (main): Call handle_general_set.
21361 * server.h (pass_signals, decode_address_to_semicolon): New.
21362
000ef4f0
DJ
213632006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21364
21365 * server.c (handle_query): Correct error handling for read_auxv.
21366
b7149293
UW
213672005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21368
21369 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21370 and srv_linux_thread_db to yes.
21371 * linux-s390-low.c (s390_fill_gregset): New function.
21372 (target_regsets): Define data structure.
21373
dae5f5cf
DJ
213742006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21375
21376 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21377 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21378 * config.in, configure: Regenerated.
21379 * inferiors.c (gdb_id_to_thread): New function.
21380 (gdb_id_to_thread_id): Use it.
21381 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21382 * linux-low.h (struct process_info): Add th member.
21383 (thread_db_get_tls_address): New prototype.
21384 * remote-utils.c (decode_address): Make non-static.
21385 * server.c (handle_query): Handle qGetTLSAddr.
21386 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21387 * target.h (struct target_ops): Add get_tls_address.
21388 * thread-db.c (maybe_attach_thread): Save the thread handle.
21389 (thread_db_get_tls_address): New.
21390
32ca6d61
DJ
213912006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21392
21393 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21394 (linux_resume_one_process): Take a siginfo_t *. Update all
21395 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21396 (struct pending_signals): Add a siginfo_t.
21397 (linux_wait_for_process): Always set last_status.
21398 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21399 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21400 * linux-low.h (struct process_info): Add last_status.
21401
5ffff7c1
DJ
214022006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21403
21404 * remote-utils.c (try_rle): New function.
21405 (putpkt_binary): Use it.
21406
8695c747
DJ
214072006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21408
21409 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21410 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21411 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21412 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21413 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21414 point registers.
21415
290fadea
RS
214162006-08-08 Richard Sandiford <richard@codesourcery.com>
21417
21418 * server.c (terminal_fd): New variable.
21419 (old_foreground_pgrp): Likewise.
21420 (restore_old_foreground_pgrp): New function.
21421 (start_inferior): Record the terminal file descriptor in terminal_fd
21422 and its original foreground group in old_foreground_pgrp. Register
21423 restore_old_foreground_pgrp with atexit().
21424
9f2e1e63
DJ
214252006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21426
21427 * server.c (handle_query): Correct qPart to qXfer.
21428
b80864fb
DJ
214292006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21430
21431 * configure.ac: Check for more headers which are missing on
21432 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21433 * configure.srv: Add Cygwin and mingw32.
21434 * remote-utils.c: Don't include headers unconditionally which
21435 are missing on mingw32. Include <winsock.h> for mingw32.
21436 (remote_open): Adjust for mingw32 support. Flush
21437 standard error after writing to it.
21438 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21439 (unblock_async_io, enable_async_io, disable_async_io)
21440 (readchar, getpkt): Update for Winsock support.
21441 (prepare_resume_reply): Expect a protocol signal number.
21442 * server.c: Disable <sys/wait.h> on mingw32.
21443 (start_inferior): Adjust for mingw32 support. Flush
21444 standard error after writing to it.
21445 (attach_inferior): Likewise. Use protocol signal
21446 numbers.
21447 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21448 and names.
21449 * win32-i386-low.c: New file.
21450 * Makefile.in (XM_CLIBS): Set.
21451 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21452 (win32-i386-low.o): New dependency rule.
21453 * linux-low.c (linux_wait): Use target signal numbers.
21454 * target.h (struct target_ops): Doc fix.
21455 * server.h (target_signal_to_name): New prototype.
21456 * gdbreplay.c: Don't include headers unconditionally which
21457 are missing on mingw32. Include <winsock.h> for mingw32.
21458 (remote_close, remote_open): Adjust for Winsock support.
21459 * configure, config.in: Regenerated.
21460
0876f84a
DJ
214612006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21462
21463 * server.c (decode_xfer_read, write_qxfer_response): New.
21464 (handle_query): Take a packet length argument. Handle
21465 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21466 the qSupported response.
21467 (main): Update call to handle_query.
21468
01f9e8fa
DJ
214692006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21470
21471 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21472 (putpkt_binary): Renamed from putpkt and adjusted for binary
21473 data.
21474 (putpkt): New wrapper for putpkt_binary.
21475 (readchar): Don't mask off the high bit.
21476 (decode_X_packet): New function.
21477 * server.c (main): Call putpkt_binary if a handler sets the packet
21478 length. Save the length of the incoming packet. Handle 'X'.
21479 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21480
be2a5f71
DJ
214812006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21482
21483 * server.c (handle_query): Handle qSupported.
21484
ea025f5f
DJ
214852006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21486
21487 * remote-utils.c (all_symbols_looked_up): New variable.
21488 (look_up_one_symbol): Check it.
21489 * server.h (look_up_one_symbol): New declaration.
21490 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21491
9308fc88
DJ
214922006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21493
21494 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21495 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21496 (PTRACE_GET_THREAD_AREA): Define.
21497 (ps_get_thread_area): New function.
21498
52fb6437
NS
214992006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21500
21501 * configure.srv (m68k*-*-uclinux*): New target.
21502 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21503 (linux_resume_one_process): Remove extraneous cast.
21504 (linux_read_offsets): New.
21505 (linux_target_op): Add linux_read_offsets on mmuless systems.
21506 * server.c (handle_query): Add qOffsets logic.
21507 * target.h (struct target_ops): Add read_offsets.
21508
21b0f40c
DJ
215092006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21510
21511 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21512 (PTRACE_GET_THREAD_AREA): Define.
21513 (ps_get_thread_area): New function.
21514 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21515 (linux-x86-64-low.o): Update.
21516
0050a760
DJ
215172006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21518
21519 * configure.ac: Remove checks for prfpregset_t.
21520 * gdb_proc_service.h: New file.
21521 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21522 new "gdb_proc_service.h".
21523 * proc-service.c: Likewise.
21524 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21525 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21526 * Makefile.in (gdb_proc_service_h): Updated.
21527 * configure, config.in: Regenerated.
21528
b92a518e
DJ
215292006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21530
21531 * remote-utils.c (prepare_resume_reply): Move declaration
21532 of gdb_id_from_wait to the top of the block.
21533
545587ee
DJ
215342006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21535
21536 * linux-low.c (regsets_store_inferior_registers): Read the regset
21537 from the target before filling it.
21538
9db87ebd
DJ
215392006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21540
21541 * server.c (attach_inferior): Return SIGTRAP for a successful
21542 attach.
21543
dd24457d
DJ
215442006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21545
21546 * Makefile.in (OBS): Add version.o.
21547 (STAGESTUFF): Delete.
21548 (version.o): Add dependencies.
21549 (version.c): Replace rule.
21550 (clean): Remove version.c.
21551 * server.c (gdbserver_version): New.
21552 (gdbserver_usage): Use printf.
21553 (main): Handle --version and --help.
21554 * server.h (version, host_name): Add declarations.
21555
6f0f660e
EZ
215562005-12-23 Eli Zaretskii <eliz@gnu.org>
21557
889bf7c5
PA
21558 * linux-arm-low.c:
21559 * linux-arm-low.c:
21560 * inferiors.c:
21561 * i387-fp.h:
21562 * i387-fp.c:
21563 * gdbreplay.c:
21564 * regcache.c:
21565 * proc-service.c:
21566 * mem-break.h:
21567 * mem-break.c:
21568 * linux-x86-64-low.c:
21569 * linux-sh-low.c:
21570 * linux-s390-low.c:
21571 * linux-ppc64-low.c:
21572 * linux-ppc-low.c:
21573 * linux-mips-low.c:
21574 * linux-m68k-low.c:
21575 * linux-m32r-low.c:
21576 * linux-low.h:
21577 * linux-low.c:
21578 * linux-ia64-low.c:
21579 * linux-i386-low.c:
21580 * linux-crisv32-low.c:
21581 * thread-db.c:
21582 * terminal.h:
21583 * target.h:
21584 * target.c:
21585 * server.h:
21586 * server.c:
21587 * remote-utils.c:
21588 * regcache.h:
21589 * utils.c:
21590 * Makefile.in:
21591 * configure.ac:
6f0f660e
EZ
21592 * gdbserver.1: Add (C) after Copyright. Update the FSF
21593 address.
21594
9d1fb177
DJ
215952005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21596
21597 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21598 (arm_breakpoint_at): Recognize both breakpoints.
21599 (the_low_target): Use the correct breakpoint instruction.
21600
011a70c2
DJ
216012005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21602
21603 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21604 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21605 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21606 (the_low_target): Update.
21607
7fb85e41
AS
216082005-10-25 Andreas Schwab <schwab@suse.de>
21609
21610 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21611
21612 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21613 (ia64_num_regs): Reduce to 462.
21614
3db0444b
DJ
216152005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21616
21617 * acinclude.m4: Correct quoting.
21618 * aclocal.m4: Regenerated.
21619
21620 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21621 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21622 (thread_db_init): Call thread_db_err_str.
21623 * configure.ac: Check for TD_VERSION.
21624 * config.in, configure: Regenerated.
21625
bee0189a
DJ
216262005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21627
21628 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21629
e9d25b98
DJ
216302005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21631
21632 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21633 is not available. Define HAVE_PTRACE_GETREGS if it is.
21634 * config.in, configure: Regenerated.
21635 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21636 * linux-i386-low.c, linux-m68k-low.c: Update to use
21637 HAVE_PTRACE_GETREGS.
21638 * linux-low.c (regsets_fetch_inferior_registers)
21639 (regsets_store_inferior_registers): Only return 0 if we processed
21640 GENERAL_REGS.
21641 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21642 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21643
a06660f7
DJ
216442005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21645
21646 * inferiors.c (struct thread_info): Add gdb_id.
21647 (add_thread): Add gdb_id argument.
21648 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21649 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21650 calls to add_thread.
21651 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21652 * server.c (handle_query): Use thread_to_gdb_id.
21653 (handle_v_cont, main): Use gdb_id_to_thread_id.
21654 * server.h (add_thread): Update prototype.
21655 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21656 prototypes.
21657
5a1f5858
DJ
216582005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21659
21660 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21661 left-padded registers.
21662 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21663 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21664
e122f1f5
SE
216652005-07-01 Steve Ellcey <sje@cup.hp.com>
21666
21667 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21668 * configure: Regenerate.
21669 * config.in: Regenerate.
21670 * server.h (NEED_DECLARATION_STRERROR):
21671 Replace with !HAVE_DECL_STRERROR.
21672
d592fa2f
DJ
216732005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21674
21675 * linux-low.c (linux_wait, linux_send_signal): Don't test
21676 an unsigned long variable for > 0 if it could be MAX_ULONG.
21677 * server.c (myresume): Likewise.
21678 * target.c (set_desired_inferior): Likewise.
21679
ccbd4912
MK
216802005-06-13 Mark Kettenis <kettenis@gnu.org>
21681
21682 * configure.ac: Simplify and improve check for socklen_t.
21683 * configure, config.in: Regenerate.
21684
f450004a
DJ
216852005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21686
21687 * acconfig.h: Remove.
21688 * configure.ac: Add a test for socklen_t. Use three-argument
21689 AC_DEFINE throughout.
21690 * config.in: Regenerated using autoheader 2.59.
21691 * configure: Regenerated.
21692
21693 * gdbreplay.c (socklen_t): Provide a default.
21694 (remote_open): Use socklen_t.
21695 * remote-utils.c (socklen_t): Provide a default.
21696 (remote_open): Use socklen_t.
21697 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21698 unsigned char.
21699
21700 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21701 char for buffers.
21702 * linux-low.c (linux_read_memory, linux_write_memory)
21703 (linux_read_auxv): Likewise.
21704 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21705 (check_mem_write): Likewise.
21706 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21707 Likewise.
21708 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21709 (registers_from_string, register_data): Likewise.
21710 * server.c (handle_query, main): Likewise.
21711 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21712 (decode_M_packet): Likewise.
21713 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21714 * target.h (struct target_ops): Update read_memory, write_memory,
21715 and read_auxv.
21716 (read_inferior_memory, write_inferior_memory): Update.
21717 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21718 to unsigned char *.
21719 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21720 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21721 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21722 linux-s390-low.c, linux-sh-low.c: Update for changes in
21723 read_inferior_memory and the_low_target->breakpoint.
21724
eee84df1
DJ
217252005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21726
21727 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21728 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21729 * configure.srv: Add powerpc64-*-linux*.
21730 * linux-ppc64-low.c: New file.
21731
45b134e5
OF
217322005-05-23 Orjan Friberg <orjanf@axis.com>
21733
21734 * linux-cris-low.c: New file with support for CRIS.
21735 * linux-crisv32-low.c: Ditto for CRISv32.
21736 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21737 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21738 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21739 reg-crisv32.o, and reg-crisv32.c to make rules.
21740 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21741 recognized targets.
21742
48d93c75
UW
217432005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21744
21745 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21746 of sizeof (PTRACE_XFER_TYPE).
21747 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21748
e013ee27
OF
217492005-05-12 Orjan Friberg <orjanf@axis.com>
21750
889bf7c5 21751 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21752 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21753 pointers for hardware watchpoint support.
21754 * linux-low.h (struct linux_target_ops): Ditto.
21755 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21756 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21757 to linux_target_ops.
21758 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21759 reply packet.
21760 * server.c (main): Recognize 'Z' and 'z' packets.
21761
b0ded00b
UW
217622005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21763
21764 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21765 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21766 (the_low_target): Add new members.
21767
8643e2ad
DJ
217682005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21769
21770 * proc-service.c (ps_lgetregs): Search all_processes instead of
21771 all_threads.
21772
fc620387
DJ
217732005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21774
21775 * server.c (start_inferior): Change return type to int.
21776 (attach_inferior): Change sigptr to int *.
21777 (handle_v_cont, handle_v_requests): Change signal to int *.
21778 (main): Change signal to int.
21779
217802005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21781
21782 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21783 * configure.srv: Add m32r*-*-linux*.
21784 * linux-m32r-low.c: New file.
21785
e0e76420
DJ
217862005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21787
21788 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21789
a1928bad
DJ
217902005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21791
21792 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21793 Take unsigned long arguments for PIDs.
21794 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21795 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21796 (wait_for_sigstop, linux_resume_one_process)
21797 (regsets_fetch_inferior_registers, linux_send_signal)
21798 (linux_read_auxv): Likewise. Update the types of variables holding
21799 PIDs. Update format string specifiers.
21800 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21801 * remote-utils.c (prepare_resume_reply): Likewise.
21802 * server.c (cont_thread, general_thread, step_thread)
21803 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21804 unsigned long.
21805 (handle_query): Update format specifiers.
21806 (handle_v_cont, main): Use strtoul for thread IDs.
21807 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21808 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21809 (general_thread, step_thread, thread_from_wait)
21810 (old_thread_from_wait): Update.
21811 * target.h (struct thread_resume): Use unsigned long for THREAD.
21812 (struct target_ops): Use unsigned long for arguments to attach and
21813 thread_alive.
21814
dcdb98d2
DJ
218152005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21816
21817 * acinclude.m4: Include bfd/bfd.m4 directly.
21818 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21819 <agriffis@toolchain.org>.
21820 * aclocal.m4, configure: Regenerated.
21821
bec39cab
AC
218222005-01-07 Andrew Cagney <cagney@gnu.org>
21823
21824 * configure.ac: Rename configure.in, require autoconf 2.59.
21825 * configure: Re-generate.
21826
434c4c77
DJ
218272004-12-08 Daniel Jacobowitz <dan@debian.org>
21828
21829 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21830 LIBS when finished.
21831 * aclocal.m4: Regenerated.
21832 * configure: Regenerated.
21833
db1d3e1b
AS
218342004-11-21 Andreas Schwab <schwab@suse.de>
21835
21836 * linux-m68k-low.c (m68k_num_gregs): Define.
21837 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21838 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21839 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21840 (m68k_breakpoint_at): New. Add to the_low_target.
21841
21842 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21843 srv_linux_thread_db to yes.
21844
43360365
JB
218452004-10-20 Joel Brobecker <brobecker@gnat.com>
21846
21847 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21848 (ARCH_SET_FS): Likewise.
21849 (ARCH_GET_FS): Likewise.
21850 (ARCH_GET_GS): Likewise.
21851
fd500816
DJ
218522004-10-16 Daniel Jacobowitz <dan@debian.org>
21853
21854 * linux-i386-low.c (ps_get_thread_area): New.
21855 * linux-x86-64-low.c (ps_get_thread_area): New.
21856 * linux-low.c: Include <sys/syscall.h>.
21857 (linux_kill_one_process): Don't kill the first thread here.
21858 (linux_kill): Kill the first thread here.
21859 (kill_lwp): New function.
21860 (send_sigstop, linux_send_signal): Use it.
21861 * proc-service.c: Clean up #ifdefs.
21862 (fpregset_info): Delete.
21863 (ps_lgetregs): Update and enable implementation.
21864 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21865 implementations.
21866 * remote-utils.c (struct sym_cache, symbol_cache): New.
21867 (input_interrupt): Print a clearer message.
21868 (async_io_enabled): New variable.
21869 (enable_async_io, disable_async_io): Use it. Update comments.
21870 (look_up_one_symbol): Use the symbol cache.
21871 * thread-db.c (thread_db_look_up_symbols): New function.
21872 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21873
f6de3c42
DJ
218742004-10-16 Daniel Jacobowitz <dan@debian.org>
21875
21876 * configure.in: Test for -rdynamic.
21877 * configure: Regenerated.
21878 * Makefile (INTERNAL_LDFLAGS): New.
21879 (gdbserver, gdbreplay): Use it.
21880
2c0fc042
AC
218812004-09-02 Andrew Cagney <cagney@gnu.org>
21882
21883 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21884
075b3282
DJ
218852004-03-23 Daniel Jacobowitz <drow@mvista.com>
21886
21887 * linux-low.c (linux_wait): Clear all_processes list also.
21888
fa6a77dc
DJ
218892004-03-12 Daniel Jacobowitz <drow@mvista.com>
21890
21891 * linux-low.c: Include <errno.h>. Remove extern declaration of
21892 errno.
21893
6d782a97
DJ
218942004-03-12 Daniel Jacobowitz <drow@mvista.com>
21895
21896 * gdbreplay.c, server.h, utils.c: Update copyright years.
21897
3a7fb99b
DJ
218982004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21899
21900 * server.c (main): Print child status or termination signal from
21901 variable 'signal', not 'sig'.
21902
c3e735a6
DJ
219032004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21904
21905 * linux-low.c (linux_read_memory): Change return type to
21906 int. Check for and return error from ptrace().
21907 * target.c (read_inferior_memory): Change return type to int. Pass
21908 back return status from the_target->read_memory().
21909 * target.h (struct target_ops): Adapt *read_memory() prototype.
21910 Update comment.
21911 (read_inferior_memory): Adapt prototype.
21912 * server.c (main): Return an error packet if
21913 read_inferior_memory() returns an error.
21914
a59d1c82
DJ
219152004-03-04 Daniel Jacobowitz <drow@mvista.com>
21916
21917 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21918 Unify with other clean targets.
21919
dc3f8883
DJ
219202004-02-29 Daniel Jacobowitz <drow@mvista.com>
21921
21922 * server.c (handle_v_cont): Call set_desired_inferior.
21923
89a208da
DJ
219242004-02-29 Daniel Jacobowitz <drow@mvista.com>
21925
21926 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21927
62ea82f5
DJ
219282004-02-29 Daniel Jacobowitz <drow@mvista.com>
21929
21930 * linux-low.c (linux_wait): Unblock async I/O.
21931 (linux_resume): Block and enable async I/O.
21932 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21933 * server.h (block_async_io, unblock_async_io): Add prototypes.
21934
6910d122
DJ
219352004-02-29 Daniel Jacobowitz <drow@mvista.com>
21936
21937 * remote-utils.c (remote_open): Print a status notice after
21938 opening a TCP port.
21939 * server.c (attach_inferior): Print a status notice after
21940 attaching.
21941
219422004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21943
21944 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21945
c89dc5d4
DJ
219462004-02-26 Daniel Jacobowitz <drow@mvista.com>
21947
21948 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21949 error packet.
21950 * server.c, target.h: Update copyright years.
21951
4b8dad4a
RM
219522004-02-25 Roland McGrath <roland@redhat.com>
21953
21954 * target.h (struct target_ops): New member `read_auxv'.
21955 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21956 * linux-low.c (linux_read_auxv): New function.
21957 (linux_target_ops): Initialize `read_auxv' member to that.
21958
d7446758
JB
219592004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21960
21961 Committed by Jim Blandy <jimb@redhat.com>.
21962
21963 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21964 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21965 instead of GPR_SIZE to distiguish s390 and s390x targets.
21966
5544ad89
DJ
219672004-01-31 Daniel Jacobowitz <drow@mvista.com>
21968
21969 * linux-low.c: Update copyright year.
21970 (check_removed_breakpoint): Clear pending_is_breakpoint.
21971 (linux_set_resume_request, linux_queue_one_thread)
21972 (resume_status_pending_p): New functions.
21973 (linux_continue_one_thread): Use process->resume.
21974 (linux_resume): Only resume threads if there are no pending events.
21975 * linux-low.h (struct process_info): Add resume request
21976 pointer.
21977
2a68b70e
DJ
219782004-01-30 Daniel Jacobowitz <drow@mvista.com>
21979
21980 * regcache.c (new_register_cache): Clear the allocated register
21981 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21982
64386c31
DJ
219832003-10-13 Daniel Jacobowitz <drow@mvista.com>
21984
21985 * linux-low.c (linux_resume): Take a struct thread_resume *
21986 argument.
21987 (linux_wait): Update call.
21988 (resume_ptr): New static variable.
21989 (linux_continue_one_thread): Renamed from
21990 linux_continue_one_process. Use resume_ptr.
21991 (linux_resume): Use linux_continue_one_thread.
21992 * server.c (handle_v_cont, handle_v_requests): New functions.
21993 (myresume): New function.
21994 (main): Handle 'v' case.
21995 * target.h (struct thread_resume): New type.
21996 (struct target_ops): Change argument of "resume" to struct
21997 thread_resume *.
21998 (myresume): Delete macro.
21999
c938e9b0
L
220002003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22001
22002 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22003 (uninstall): Support DESTDIR.
22004
7f313d07
BC
22005Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22006
22007 * configure.srv: Add xscale*linux copy of arm*linux entry.
22008
3b2fc2ea
DJ
220092003-07-24 Daniel Jacobowitz <drow@mvista.com>
22010
22011 * linux-arm-low.c (arm_reinsert_addr): New function.
22012 (the_low_target): Add arm_reinsert_addr.
22013
1c0a559e
MK
220142003-07-08 Mark Kettenis <kettenis@gnu.org>
22015
22016 * mem-break.c: Remove whitespace at end of file.
22017
43d5792c
DJ
220182003-06-28 Daniel Jacobowitz <drow@mvista.com>
22019
22020 * configure.in: Check whether we need to prototype strerror.
22021 * server.h: Optionally prototype strerror.
22022 * gdbreplay.c (perror_with_name): Use strerror.
22023 * linux-low.c (linux_attach_lwp): Use strerror.
22024 * utils.c (perror_with_name): Use strerror.
22025 * config.in, configure: Regenerated.
22026
c8a86edf
DJ
220272003-06-28 Daniel Jacobowitz <drow@mvista.com>
22028
22029 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22030 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22031
73d37363
DJ
220322003-06-20 Daniel Jacobowitz <drow@mvista.com>
22033
22034 * Makefile.in (SFILES): Update.
22035 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22036 low-sun3.c: Remove files.
22037
6ad8ae5c
DJ
220382003-06-17 Daniel Jacobowitz <drow@mvista.com>
22039
22040 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22041 (linux_detach_one_process, linux_detach): New functions.
22042 (linux_target_ops): Add linux_detach.
22043 * server.c (main): Handle 'D' packet.
22044 * target.h (struct target_ops): Add "detach" member.
22045 (detach_inferior): Define.
22046
1581182a
MK
220472003-06-13 Mark Kettenis <kettenis@gnu.org>
22048
22049 From Kelley Cook <kelleycook@wideopenwest.com>:
22050 * configure.srv: Accept i[34567]86 variants.
22051
e5379b03
DJ
220522003-06-05 Daniel Jacobowitz <drow@mvista.com>
22053
22054 * linux-low.c (linux_wait_for_event): Correct comment typos.
22055 (linux_resume_one_process): Call check_removed_breakpoint.
22056 (linux_send_signal): New function.
22057 (linux_target_ops): Add linux_send_signal.
22058 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22059 of kill.
22060 * target.h (struct target_ops): Add send_signal.
22061
2ff29de4
JB
220622003-05-29 Jim Blandy <jimb@redhat.com>
22063
22064 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22065 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22066 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22067 away part of the register's value.
22068
254787d4
DJ
220692003-03-26 Daniel Jacobowitz <drow@mvista.com>
22070
22071 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22072 (linux_wait_for_event, linux_init_signals): Likewise.
22073
94e10508
DJ
220742003-03-17 Daniel Jacobowitz <drow@mvista.com>
22075
22076 * configure.in: Check for stdlib.h.
22077 * configure: Regenerated.
22078 * config.in: Regenerated.
22079
4c0711e0
DJ
220802003-01-04 Andreas Schwab <schwab@suse.de>
22081
22082 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22083
ef66e766
AC
220842003-01-02 Andrew Cagney <ac131313@redhat.com>
22085
22086 * Makefile.in: Remove obsolete code.
22087
a1358604
DJ
220882002-11-20 Daniel Jacobowitz <drow@mvista.com>
22089
22090 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22091 defined(PT_FPR0_HI).
22092
23ce3b1c
DJ
220932002-11-17 Stuart Hughes <seh@zee2.com>
22094
22095 * linux-arm-low.c (arm_num_regs): Increase.
22096 (arm_regmap): Include status register.
22097
220982002-11-17 Daniel Jacobowitz <drow@mvista.com>
22099
22100 * linux-low.c (register_addr): Remove incorrect -1 check.
22101
a9fa9f7d
DJ
221022002-08-29 Daniel Jacobowitz <drow@mvista.com>
22103
22104 * linux-low.c (linux_create_inferior): Call setpgid. Return
22105 the new PID.
22106 (unstopped_p, linux_signal_pid): Remove.
22107 (linux_target_ops): Remove linux_signal_pid.
22108 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22109 global instead of target method.
22110 * target.h (struct target_ops): Remove signal_pid. Update comment
22111 for create_inferior.
22112 * server.c (signal_pid): New variable.
22113 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22114 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22115 (attach_inferior): Set signal_pid.
22116
17574093
DJ
221172002-08-23 Daniel Jacobowitz <drow@mvista.com>
22118
22119 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22120
221212002-08-20 Jim Blandy <jimb@redhat.com>
22122
22123 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22124 default for this.
22125
221262002-08-01 Andrew Cagney <cagney@redhat.com>
22127
22128 * Makefile.in: Make chill references obsolete.
22129
221302002-07-24 Kevin Buettner <kevinb@redhat.com>
22131
22132 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22133 * configure: Regenerate.
22134 * config.in: Regenerate.
22135
221362002-07-09 David O'Brien <obrien@FreeBSD.org>
22137
22138 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22139 (perror_with_name, remote_close, remote_open, expect, play): Static.
22140
221412002-07-04 Michal Ludvig <mludvig@suse.cz>
22142
4b8dad4a 22143 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22144 byte offsets instead of an array of indexes.
22145 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22146
221472002-06-13 Daniel Jacobowitz <drow@mvista.com>
22148
22149 * regcache.c: Add comment.
22150
221512002-06-11 Daniel Jacobowitz <drow@mvista.com>
22152
22153 * thread-db.c: New file.
22154 * proc-service.c: New file.
22155 * acinclude.m4: New file.
22156 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22157 proc-service.o, and thread-db.o.
22158 (linux-low.o): Add USE_THREAD_DB.
22159 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22160 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22161 * aclocal.m4: Regenerated.
22162 * config.in: Regenerated.
22163 * configure: Regenerated.
22164 * configure.in: Check for proc_service.h, sys/procfs.h,
22165 thread_db.h, and linux/elf.h headrs.
22166 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22167 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22168 Check for -lthread_db and thread support.
22169 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22170 PowerPC, and SuperH.
22171 * i387-fp.c: Constify arguments.
22172 * i387-fp.h: Likewise.
22173 * inferiors.c: (struct thread_info): Renamed from
22174 `struct inferior_info'. Remove PID member. Use generic inferior
22175 list header. All uses updated.
22176 (inferiors, signal_pid): Removed.
22177 (all_threads): New variable.
22178 (get_thread): Define.
22179 (add_inferior_to_list): New function.
22180 (for_each_inferior): New function.
22181 (change_inferior_id): New function.
22182 (add_inferior): Removed.
22183 (remove_inferior): New function.
22184 (add_thread): New function.
22185 (free_one_thread): New function.
22186 (remove_thread): New function.
22187 (clear_inferiors): Use for_each_inferior and free_one_thread.
22188 (find_inferior): New function.
22189 (find_inferior_id): New function.
22190 (inferior_target_data): Update argument type.
22191 (set_inferior_target_data): Likewise.
22192 (inferior_regcache_data): Likewise.
22193 (set_inferior_regcache_data): Likewise.
22194 * linux-low.c (linux_bp_reinsert): Remove.
22195 (all_processes, stopping_threads, using_thrads)
22196 (struct pending_signals, debug_threads, pid_of): New.
22197 (inferior_pid): Replace with macro.
22198 (struct inferior_linux_data): Remove.
22199 (get_stop_pc, add_process): New functions.
22200 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22201 Use add_process and add_thread.
22202 (linux_attach_lwp): New function, based on old linux_attach. Use
22203 add_process and add_thread. Set stop_expected for new threads.
22204 (linux_attach): New function.
22205 (linux_kill_one_process): New function.
22206 (linux_kill): Kill all LWPs.
22207 (linux_thread_alive): Use find_inferior_id.
22208 (check_removed_breakpoints, status_pending_p): New functions.
22209 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22210 Update. Use WNOHANG. Wait for cloned processes also. Update process
22211 struct for the found process.
22212 (linux_wait_for_event): New function.
22213 (linux_wait): Use it. Support LWPs.
22214 (send_sigstop, wait_for_sigstop, stop_all_processes)
22215 (linux_resume_one_process, linux_continue_one_process): New functions.
22216 (linux_resume): Support LWPs.
22217 (REGISTER_RAW_SIZE): Remove.
22218 (fetch_register): Use register_size instead. Call supply_register.
22219 (usr_store_inferior_registers): Likewise. Call collect_register.
22220 Fix recursive case.
22221 (regsets_fetch_inferior_registers): Improve error message.
22222 (regsets_store_inferior_registers): Add debugging.
22223 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22224 (unstopped_p, linux_signal_pid): New functions.
22225 (linux_target_ops): Add linux_signal_pid.
22226 (linux_init_signals): New function.
22227 (initialize_low): Call it. Initialize using_threads.
22228 * regcache.c (inferior_regcache_data): Add valid
22229 flag.
22230 (get_regcache): Fetch registers lazily. Add fetch argument
22231 and update all callers.
22232 (regcache_invalidate_one, regcache_invalidate): New
22233 functions.
22234 (new_register_cache): Renamed from create_register_cache.
22235 Return the new regcache.
22236 (free_register_cache): Change argument to a void *.
22237 (registers_to_string, registers_from_string): Call get_regcache
22238 with fetch flag set.
22239 (register_data): Make static. Pass fetch flag to get_regcache.
22240 (supply_register): Call get_regcache with fetch flag clear.
22241 (collect_register): Call get_regcache with fetch flag set.
22242 (collect_register_as_string): New function.
22243 * regcache.h: Update.
22244 * remote-utils.c (putpkt): Flush after debug output and use
22245 stderr.
22246 Handle input interrupts while waiting for an ACK.
22247 (input_interrupt): Use signal_pid method.
22248 (getpkt): Flush after debug output and use stderr.
22249 (outreg): Use collect_register_as_string.
22250 (new_thread_notify, dead_thread_notify): New functions.
22251 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22252 and general_thread.
22253 (look_up_one_symbol): Flush after debug output.
22254 * server.c (step_thread, server_waiting): New variables.
22255 (start_inferior): Don't use signal_pid. Update call to mywait.
22256 (attach_inferior): Update call to mywait.
22257 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22258 (main): Don't fetch/store registers explicitly. Use
22259 set_desired_inferior. Support proposed ``Hs'' packet. Update
22260 calls to mywait.
22261 * server.h: Update.
22262 (struct inferior_list, struct_inferior_list_entry): New.
22263 * target.c (set_desired_inferior): New.
22264 (write_inferior_memory): Constify.
22265 (mywait): New function.
22266 * target.h: Update.
22267 (struct target_ops): New signal_pid method.
22268 (mywait): Removed macro, added prototype.
22269
22270 * linux-low.h (regset_func): Removed.
22271 (regset_fill_func, regset_store_func): New.
22272 (enum regset_type): New.
22273 (struct regset_info): Add type field. Use new operation types.
22274 (struct linux_target_ops): stop_pc renamed to get_pc.
22275 Add decr_pc_after_break and breakpoint_at.
22276 (get_process, get_thread_proess, get_process_thread)
22277 (strut process_info, all_processes, linux_attach_lwp)
22278 (thread_db_init): New.
22279
22280 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22281 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22282 (the_low_target): Add new members.
22283 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22284 (i386_store_fpxregset): Constify.
22285 (target_regsets): Add new kind identifier.
22286 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22287 (i386_set_pc): Add debugging.
22288 (i386_breakpoint_at): New function.
22289 (the_low_target): Add new members.
22290 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22291 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22292 (mips_breakpoint_at): New.
22293 (the_low_target): Add new members.
22294 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22295 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22296 (the_low_target): Add new members.
22297 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22298 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22299 (the_low_target): Add new members.
22300 * linux-x86-64-low.c (target_regsets): Add new kind
22301 identifier.
22302
223032002-05-15 Daniel Jacobowitz <drow@mvista.com>
22304
22305 From Martin Pool <mbp@samba.org>:
22306 * server.c (gdbserver_usage): New function.
22307 (main): Call it.
22308
223092002-05-14 Daniel Jacobowitz <drow@mvista.com>
22310
22311 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22312 stop_at -> stop_pc.
22313
223142002-05-04 Andrew Cagney <ac131313@redhat.com>
22315
22316 * Makefile.in: Remove obsolete code.
22317
223182002-04-24 Michal Ludvig <mludvig@suse.cz>
22319
22320 * linux-low.c (regsets_fetch_inferior_registers),
22321 (regsets_store_inferior_registers): Removed cast to int from
22322 ptrace() calls.
22323 * regcache.h: Added declaration of struct inferior_info.
22324
223252002-04-20 Daniel Jacobowitz <drow@mvista.com>
22326
22327 * inferiors.c (struct inferior_info): Add regcache_data.
22328 (add_inferior): Call create_register_cache.
22329 (clear_inferiors): Call free_register_cache.
22330 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22331 * regcache.c (struct inferior_regcache_data): New.
22332 (registers): Remove.
22333 (get_regcache): New function.
22334 (create_register_cache, free_register_cache): New functions.
22335 (set_register_cache): Don't initialize the register cache here.
22336 (registers_to_string, registers_from_string, register_data): Call
22337 get_regcache.
22338 * regcache.h: Add prototypes.
22339 * server.h: Likewise.
22340
223412002-04-20 Daniel Jacobowitz <drow@mvista.com>
22342
22343 * mem-break.c: New file.
22344 * mem-break.h: New file.
22345 * Makefile.in: Add mem-break.o rule; update server.h
22346 dependencies.
22347 * inferiors.c (struct inferior_info): Add target_data
22348 member.
22349 (clear_inferiors): Free target_data member if set.
22350 (inferior_target_data, set_inferior_target_data): New functions.
22351 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22352 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22353 * linux-low.c (linux_bp_reinsert): New variable.
22354 (struct inferior_linux_data): New.
22355 (linux_create_inferior): Use set_inferior_target_data.
22356 (linux_attach): Likewise. Call add_inferior.
22357 (linux_wait_for_one_inferior): New function.
22358 (linux_wait): Call it.
22359 (linux_write_memory): Add const.
22360 (initialize_low): Call set_breakpoint_data.
22361 * linux-low.h (struct linux_target_ops): Add breakpoint
22362 handling members.
22363 * server.c (attach_inferior): Remove extra add_inferior
22364 call.
22365 * server.h: Include mem-break.h. Update inferior.c
22366 prototypes.
22367 * target.c (read_inferior_memory)
22368 (write_inferior_memory): New functions.
22369 * target.h (read_inferior_memory)
22370 (write_inferior_memory): Change macros to prototypes.
22371 (struct target_ops): Update comments. Add const to write_memory
22372 definition.
22373
223742002-04-11 Daniel Jacobowitz <drow@mvista.com>
22375
22376 * linux-low.c (usr_store_inferior_registers): Support
22377 registers which are allowed to fail to store.
22378 * linux-low.h (linux_target_ops): Likewise.
22379 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22380 (ppc_cannot_store_register): FPSCR may not be storable.
22381
223822002-04-09 Daniel Jacobowitz <drow@mvista.com>
22383
22384 * server.h: Include <string.h> if HAVE_STRING_H.
22385 * ChangeLog: Correct paths in last ChangeLog entry.
22386
223872002-04-09 Daniel Jacobowitz <drow@mvista.com>
22388
22389 * linux-low.h: Remove obsolete prototypes.
22390 (struct linux_target_ops): New.
22391 (extern the_low_target): New.
22392 * linux-low.c (num_regs, regmap): Remove declarations.
22393 (register_addr): Use the_low_target explicitly.
22394 (fetch_register): Likewise.
22395 (usr_fetch_inferior_registers): Likewise.
22396 (usr_store_inferior_registers): Likewise.
22397 * linux-arm-low.c (num_regs): Remove.
22398 (arm_num_regs): Define.
22399 (arm_regmap): Renamed from regmap, made static.
22400 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22401 made static.
22402 (arm_cannot_store_register): Renamed from cannot_store_register,
22403 made static.
22404 (the_low_target): New.
22405 * linux-i386-low.c (num_regs): Remove.
22406 (i386_num_regs): Define.
22407 (i386_regmap): Renamed from regmap, made static.
22408 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22409 made static.
22410 (i386_cannot_store_register): Renamed from cannot_store_register,
22411 made static.
22412 (the_low_target): New.
22413 * linux-ia64-low.c (num_regs): Remove.
22414 (ia64_num_regs): Define.
22415 (ia64_regmap): Renamed from regmap, made static.
22416 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22417 made static.
22418 (ia64_cannot_store_register): Renamed from cannot_store_register,
22419 made static.
22420 (the_low_target): New.
22421 * linux-m68k-low.c (num_regs): Remove.
22422 (m68k_num_regs): Define.
22423 (m68k_regmap): Renamed from regmap, made static.
22424 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22425 made static.
22426 (m68k_cannot_store_register): Renamed from cannot_store_register,
22427 made static.
22428 (the_low_target): New.
22429 * linux-mips-low.c (num_regs): Remove.
22430 (mips_num_regs): Define.
22431 (mips_regmap): Renamed from regmap, made static.
22432 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22433 made static.
22434 (mips_cannot_store_register): Renamed from cannot_store_register,
22435 made static.
22436 (the_low_target): New.
22437 * linux-ppc-low.c (num_regs): Remove.
22438 (ppc_num_regs): Define.
22439 (ppc_regmap): Renamed from regmap, made static.
22440 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22441 made static.
22442 (ppc_cannot_store_register): Renamed from cannot_store_register,
22443 made static.
22444 (the_low_target): New.
22445 * linux-s390-low.c (num_regs): Remove.
22446 (s390_num_regs): Define.
22447 (s390_regmap): Renamed from regmap, made static.
22448 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22449 made static.
22450 (s390_cannot_store_register): Renamed from cannot_store_register,
22451 made static.
22452 (the_low_target): New.
22453 * linux-sh-low.c (num_regs): Remove.
22454 (sh_num_regs): Define.
22455 (sh_regmap): Renamed from regmap, made static.
22456 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22457 made static.
22458 (sh_cannot_store_register): Renamed from cannot_store_register,
22459 made static.
22460 (the_low_target): New.
22461 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22462 (the_low_target): New.
22463
224642002-04-09 Daniel Jacobowitz <drow@mvista.com>
22465
22466 * Makefile.in: Add stamp-h target.
22467 * configure.in: Create stamp-h.
22468 * configure: Regenerated.
22469
224702002-04-09 Daniel Jacobowitz <drow@mvista.com>
22471
22472 * inferiors.c: New file.
22473 * target.c: New file.
22474 * target.h: New file.
22475 * Makefile.in: Add target.o and inferiors.o. Update
22476 dependencies.
22477 * linux-low.c (inferior_pid): New static variable,
22478 moved from server.c.
22479 (linux_create_inferior): Renamed from create_inferior.
22480 Call add_inferior. Return 0 on success instead of a PID.
22481 (linux_attach): Renamed from myattach.
22482 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22483 (linux_thread_alive): Renamed from mythread_alive.
22484 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22485 child dies.
22486 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22487 (regsets_store_inferior_registers): Correct error message.
22488 Add missing ``return 0''.
22489 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22490 (linux_store_registers): Renamed from store_inferior_registers.
22491 (linux_read_memory): Renamed from read_inferior_memory.
22492 (linux_write_memory): Renamed from write_inferior_memory.
22493 (linux_target_ops): New structure.
22494 (initialize_low): Call set_target_ops ().
22495 * remote-utils.c (unhexify): New function.
22496 (hexify): New function.
22497 (input_interrupt): Send signals to ``signal_pid''.
22498 * server.c (inferior_pid): Remove.
22499 (start_inferior): Update create_inferior call.
22500 (attach_inferior): Call add_inferior.
22501 (handle_query): New function.
22502 (main): Call handle_query for `q' packets.
22503 * server.h: Include "target.h". Remove obsolete prototypes.
22504 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22505
225062002-04-09 Daniel Jacobowitz <drow@mvista.com>
22507
22508 * Makefile.in: Add WARN_CFLAGS. Update configury
22509 dependencies.
22510 * configure.in: Check for <string.h>
22511 * configure: Regenerate.
22512 * config.in: Regenerate.
22513 * gdbreplay.c: Include needed system headers.
22514 (remote_open): Remove strchr prototype.
22515 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22516 * regcache.c (supply_register): Change buf argument to const void *.
22517 (supply_register_by_name): Likewise.
22518 (collect_register): Change buf argument to void *.
22519 (collect_register_by_name): Likewise.
22520 * regcache.h: Add missing prototypes.
22521 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22522 * server.c (handle_query): New function.
22523 (attached): New static variable, moved out of main.
22524 (main): Quiet longjmp clobber warnings.
22525 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22526 * utils.c (error): Remove NORETURN.
22527 (fatal): Likewise.
This page took 2.493034 seconds and 4 git commands to generate.