]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
constify elfNN_bed
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
96648494
AB
12020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * Makefile.in (IPA_LIB): Include libiberty library.
4
81fdd7ac
AB
52020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
6
7 * server.cc (gdbserver_usage): Add missing option to usage text.
8 (gdbserver_show_disableable): Likewise.
9
dda83cd7
SM
102020-11-02 Simon Marchi <simon.marchi@efficios.com>
11
12 * ax.cc: Fix indentation.
13 * dll.cc: Fix indentation.
14 * inferiors.h: Fix indentation.
15 * linux-low.cc: Fix indentation.
16 * linux-nios2-low.cc: Fix indentation.
17 * linux-ppc-ipa.cc: Fix indentation.
18 * linux-ppc-low.cc: Fix indentation.
19 * linux-x86-low.cc: Fix indentation.
20 * linux-xtensa-low.cc: Fix indentation.
21 * regcache.cc: Fix indentation.
22 * server.cc: Fix indentation.
23 * tracepoint.cc: Fix indentation.
24
19dd0ae5
SM
252020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
28 AC_LANG_PROGRAM.
29 * configure: Re-generate.
30
b6fb30ed
SM
312020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
32
33 * configure: Re-generate.
864ca435
SM
34
352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
36
37 * configure: Re-generate.
b9442ec1
SM
38
392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
40
41 * configure: Re-generate.
b6fb30ed 42
5164c117
SM
432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
44
45 * configure: Re-generate.
46
7e8c7130
SM
472020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * configure.ac: Modernize.
50 * configure: Re-generate.
51
91e1a0ed
SM
522020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
53
54 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
55 AC_CANONICAL_SYSTEM.
56 * configure: Re-generate.
57
d744f0f9
PA
582020-10-26 Pedro Alves <pedro@palves.net>
59
60 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
61 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
62 explicit type.
63
006811bc
SM
642020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * acinclude.m4: Update ptrace.m4 path.
67
92a048fd
SM
682020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
69
70 * config.in: Re-generate.
71 * configure: Re-generate.
72
4dbe16c8
SM
732020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
74
75 * server.cc (handle_general_set): Don't use sprintf with
76 argument overlapping buffer.
77
a9b45cb7
TT
782020-10-20 Tom Tromey <tromey@adacore.com>
79
80 PR gdb/26742:
81 * inferiors.cc (remove_thread): Clear current_thread before
82 freeing the thread.
83
b07993f6
KR
842020-10-13 Kamil Rytarowski <n54@gmx.com>x
85
86 * netbsd-low.cc (netbsd_tdesc): Remove.
87 (netbsd_add_process): Likewise.
88 (netbsd_process_target::create_inferior): Update.
89
bbb826f5
AB
902020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
91
92 * linux-arc-low.cc (arc_linux_read_description): Release the
93 unique_ptr returned from arc_create_target_description.
94
361cb219
AB
952020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
96
97 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
98 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
99
51a948fd
AB
1002020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
101
102 * linux-low.cc (linux_process_target::handle_extended_wait):
103 Release the unique_ptr returned from allocate_target_description.
104 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
105 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
106 (tdesc_i386_linux_no_xml): Change type.
107 (x86_linux_read_description): Borrow pointer from unique_ptr
108 object.
109 (x86_target::get_ipa_tdesc_idx): Likewise.
110 (initialize_low_arch): Likewise.
111 * tdesc.cc (allocate_target_description): Update return type.
112
60b74662
TT
1132020-10-07 Tom Tromey <tromey@adacore.com>
114
115 * server.cc (handle_search_memory): Remove dead code.
116
55b10d89
TT
1172020-10-07 Tom Tromey <tromey@adacore.com>
118
119 * server.cc (handle_search_memory_1): Remove.
120 (handle_search_memory): Use simple_search_memory.
121
a038ffd8
SM
1222020-10-07 Simon Marchi <simon.marchi@efficios.com>
123
124 * Makefile.in (COMPILE): Add CXXFLAGS.
125 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
126 (gdbserver$(EXEEXT)): Add CXXFLAGS.
127 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
128 ($(IPA_LIB)): Add CXXFLAGS.
129 (IPAGENT_COMPILE): Add CXXFLAGS.
130
bbe90b5d 1312020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
132
133 * configure.srv: Support ARC architecture.
134 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
135 * linux-arc-low.cc: New file.
136
48491055
KR
1372020-10-07 Kamil Rytarowski <n54@gmx.com>
138
139 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
140 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
141 (netbsd_process_target::qxfer_libraries_svr4): Update.
142
2be01f63
KR
1432020-10-07 Kamil Rytarowski <n54@gmx.com>
144
145 * netbsd-low.cc: Fix whitespace formatting.
146 * netbsd-amd64-low.cc: Likewise.
147
91e5e8db
KR
1482020-10-07 Kamil Rytarowski <n54@gmx.com>
149
150 * netbsd-low.cc (netbsd_process_target::read_memory)
151 (netbsd_process_target::write_memory): Update.
152
9529c852
KR
1532020-10-07 Kamil Rytarowski <n54@gmx.com>
154
155 * netbsd-aarch64-low.cc: Add.
156 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
157 * configure.srv: Add aarch64*-*-netbsd*.
158
981b570a
SV
1592020-10-06 Shahab Vahedi <shahab@synopsys.com>
160
161 * regcache.cc (register_data): Remove unused "fetch" argument.
162
6b01403b
SM
1632020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
164
165 * server.cc (handle_monitor_command): Handle "set
166 debug-event-loop".
167 (captured_main): Handle "--debug-event-loop".
168 (monitor_show_help): Mention new setting.
169 (gdbserver_usage): Mention new flag.
170
2554f6f5
SM
1712020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
172
173 * linux-low.cc (linux_process_target::async): Pass name to
174 add_file_handler.
175 * remote-utils.cc (handle_accept_event): Likewise.
176 (remote_open): Likewise.
177
8b667fae
KR
1782020-10-01 Kamil Rytarowski <n54@gmx.com>
179
180 * netbsd-i386-low.cc: Add.
181 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
182 * configure.srv: Add i[34567]86-*-netbsd*.
183
15397b0e
KR
1842020-10-01 Kamil Rytarowski <n54@gmx.com>
185
186 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
187 (netbsd_target_regsets): Now const.
188 (the_low_target): Remove.
189 (class netbsd_amd64_target, the_netbsd_amd64_target)
190 (the_netbsd_target): Add.
191 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
192 low_arch_setup ().
193 (netbsd_process_target::fetch_registers)
194 (netbsd_process_target::store_registers, initialize_low): Update.
195 (the_netbsd_target): Remove.
196 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
197 (the_low_target, netbsd_tdesc): Remove.
198 (netbsd_process_target::get_regs_info)
199 (netbsd_process_target::low_arch_setup): Add.
200
99bb393f
HD
2012020-09-23 Hannes Domani <ssbssa@yahoo.de>
202
203 * win32-low.cc: Remove local wow64_process variable.
204 * win32-low.h: Remove local wow64_process variable.
205
b60cea74
TT
2062020-09-18 Tom Tromey <tromey@adacore.com>
207
208 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
209 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
210 (netbsd_process_target::wait): Change type of target_options.
211 * win32-low.h (class win32_process_target) <wait>: Update.
212 * win32-low.cc (win32_process_target::wait): Update.
213 * target.h (class process_stratum_target) <wait>: Update.
214 (mywait): Update.
215 * target.cc (mywait, target_wait): Change type of "options".
216 * linux-low.h (class linux_process_target) <wait, wait_1>:
217 Update.
218 * linux-low.cc (linux_process_target::wait)
219 (linux_process_target::wait_1): Update.
220
db92ac45
TT
2212020-09-15 Tom Tromey <tromey@adacore.com>
222
223 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
224 (xmltarget_amd64_linux_no_xml): Now arrays.
225
27087b7f
TT
2262020-09-14 Tom Tromey <tromey@adacore.com>
227
228 * tracepoint.cc (eval_result_names): Now const.
229 * ax.cc (gdb_agent_op_names): Now const.
230
62ba5048
KR
2312020-09-10 Kamil Rytarowski <n54@gmx.com>
232
233 * netbsd-low.cc: Add.
234 * netbsd-low.h: Likewise.
235 * netbsd-amd64-low.cc: Likewise.
236 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
237 "netbsd-amd64-low.cc".
238 * configure.srv: Add x86_64-*-netbsd*.
239
ece5bc8a
SM
2402020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
241
242 * server.cc (captured_main): Accept multiple `--selftest=`
243 options. Pass all `--selftest=` arguments to run_tests.
244
c8693053
RO
2452020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
246
247 * configure, config.in: Regenerate.
248
05a6b8c2
EZ
2492020-07-26 Eli Zaretskii <eliz@gnu.org>
250
251 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
252 When checking whether socklen_t type is defined, use ws2tcpip.h if
253 it is available and sys/socket.h isn't.
254 * configure: Regenerate.
255 * config.in: Regenerate.
256
028a4603
PA
2572020-07-22 Pedro Alves <pedro@palves.net>
258
259 * inferiors.cc (switch_to_process): New, moved here from
260 thread-db.cc, and made extern.
261 * inferiors.h (switch_to_process): Declare.
262 * server.cc: Include "gdbsupport/scoped_restore.h".
263 (handle_qxfer_threads_proper): Now returns bool. Prepare to
264 access memory around target calls.
265 (handle_qxfer_threads): Handle errors.
266 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
267
05c309a8
SM
2682020-07-21 Simon Marchi <simon.marchi@efficios.com>
269
270 * linux-low.cc (stopped_pids): Make static.
271
0e267416
AB
2722020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
273
274 * tdesc.cc (allocate_target_description): Add header comment.
275 (target_desc_deleter::operator()): New function.
276 * tdesc.h (struct target_desc): Declare as final.
277
b315b67d
SM
2782020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
279
280 * server.cc (handle_query): Use std::vector of
281 std::string for `qsupported` vector. Use separate
282 vector for unknowns.
283 * target.h (class process_stratum_target) <process_qsupported>:
284 Change parameters to array_view of const char *.
285 (target_process_qsupported): Remove `count` parameter.
286 * target.cc (process_stratum_target::process_qsupported): Change
287 parameters to array_view of const char *.
288 * linux-x86-low.cc (class x86_target) <process_qsupported>:
289 Likewise.
290
f638ed73
TV
2912020-06-29 Tom de Vries <tdevries@suse.de>
292
293 * ax.h: Include gdbsupport/debug_agent.h.
294
fbf42f4e
AB
2952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
296
297 * tdesc.cc (struct tdesc_compatible_info): New struct.
298 (tdesc_compatible_info_list): New function.
299 (tdesc_compatible_info_arch_name): New function.
300
013e3554
TBA
3012020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
302
303 Use std::list to stop pending signal instead of manually-created
304 linked list.
305 * linux-low.h: Include <list>.
306 (struct pending_signal): Move here from linux-low.cc.
307 (struct lwp_info) <pending_signals>
308 <pending_signals_to_report>: Update the type.
309 * linux-low.cc (struct pending_signals): Remove.
310 (linux_process_target::delete_lwp)
311 (linux_process_target::add_lwp)
312 (enqueue_one_deferred_signal)
313 (dequeue_one_deferred_signal)
314 (enqueue_pending_signal)
315 (linux_process_target::resume_one_lwp_throw)
316 (linux_process_target::thread_needs_step_over)
317 (linux_process_target::resume_one_thread)
318 (linux_process_target::proceed_one_lwp): Update the use of pending
319 signal list.
320
7d458ea5
SM
3212020-06-17 Simon Marchi <simon.marchi@efficios.com>
322
323 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
324 Remove.
325
84b300de
SM
3262020-06-12 Simon Marchi <simon.marchi@efficios.com>
327
328 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
329 * configure.srv: Remove mingw32ce cases.
330 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
331 * win32-low.h (to_back_slashes): Remove.
332 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
333
96c16e2b
SM
3342020-06-12 Simon Marchi <simon.marchi@efficios.com>
335
336 * Makefile.in (SFILES): linux-tile-low.cc.
337 * configure.srv: Remove tilegx case.
338 * linux-tile-low.cc: Remove.
339
bd1467ae
SM
3402020-06-12 Simon Marchi <simon.marchi@efficios.com>
341
342 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
343 * configure.srv: Remove m32r case.
344 * linux-m32r-low.cc: Remove.
345
7b46bf6f
SM
3462020-06-12 Simon Marchi <simon.marchi@efficios.com>
347
348 * Makefile.in (SFILES): Remove linux-cris-low.c.
349 * configure.srv: Remove cris cases.
350 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
351
1fa29f56
SM
3522020-06-12 Simon Marchi <simon.marchi@efficios.com>
353
354 * Makefile.in (SFILES): Remove linux-bfin-low.c.
355 * configure.srv: Remove bfin case.
356 * linux-bfin-low.cc: Remove.
357 * linux-low.cc: Remove BFIN-conditional code.
358
613f149a
SM
3592020-06-12 Simon Marchi <simon.marchi@efficios.com>
360
361 * configure: Re-generate.
362 * configure.ac: Remove srv_qnx test.
363 * configure.srv: Remove nto case.
364 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
365 * remote-utils.c: Remove __QNX__-guarded code.
366
fdb95bf5
SM
3672020-06-12 Simon Marchi <simon.marchi@efficios.com>
368
369 * configure: Re-generate.
370 * configure.ac: Remove srv_lynxos test.
371 * configure.srv: Remove lynxos cases.
372 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
373 Remove.
374
c00094dc
SM
3752020-06-12 Simon Marchi <simon.marchi@efficios.com>
376
377 * README: Fix a few outdated or incoherent things.
378
6479bf85
HD
3792020-05-27 Hannes Domani <ssbssa@yahoo.de>
380
381 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
382 (win32_clear_inferiors): Use open_process_used.
383 (get_child_debug_event): Likewise.
384
bea571eb
MW
3852020-05-25 Michael Weghorn <m.weghorn@posteo.de>
386
387 PR gdbserver/25893
388 * linux-low.cc (linux_process_target::create_inferior),
389 lynx-low.cc (lynx_process_target::create_inferior),
390 win32-low.cc (win32_process_target::create_inferior): Use
391 construct_inferior_arguments instead of stringify_argv
392 to get string representation which properly escapes
393 special characters.
394 * server.cc (handle_v_run): Just pass empty program arg
395 as such, since any further processing is now handled via
396 construct_inferior_arguments.
397
ace6b919
MW
3982020-05-25 Michael Weghorn <m.weghorn@posteo.de>
399
400 * nto-low.cc (nto_process_target::create_inferior): Pass
401 argv to spawnp function as char **.
402
b69ca137
MW
4032020-05-25 Michael Weghorn <m.weghorn@posteo.de>
404
405 * server.cc (captured_main), (handle_v_run): No longer
406 insert extra NULL element to args vector.
407
51e2cfa2
PA
4082020-05-23 Pedro Alves <palves@redhat.com>
409
410 * gdb-safe-ctype.h: New.
411
8bbf0394
TBA
4122020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
413
414 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
415 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
416 (ia64_target::low_breakpoint_at): Ditto.
417
01370779
HD
4182020-05-15 Hannes Domani <ssbssa@yahoo.de>
419
420 * win32-i386-low.cc (i386_supports_z_point_type): Handle
421 Z_PACKET_HW_BP z_type.
422 (i386_insert_point): Handle raw_bkpt_type type.
423 (i386_remove_point): Likewise.
424
7d186bc0
HD
4252020-04-30 Hannes Domani <ssbssa@yahoo.de>
426
427 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
428 Add arch/i386.o.
429 * win32-arm-low.cc (arm_num_regs): New function.
430 (struct win32_target_ops): Use arm_num_regs.
431 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
432 processes.
433 (i386_get_thread_context): Likewise.
434 (i386_prepare_to_resume): Likewise.
435 (i386_thread_added): Likewise.
436 (i386_single_step): Likewise.
437 (i386_fetch_inferior_register): Likewise.
438 (i386_store_inferior_register): Likewise.
439 (i386_arch_setup): Likewise.
440 (i386_win32_num_regs): New function.
441 (struct win32_target_ops): Use i386_win32_num_regs.
442 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
443 processes.
444 (win32_require_context): Likewise.
445 (child_add_thread): Likewise.
446 (do_initial_child_stuff): Likewise.
447 (continue_one_thread): Likewise.
448 (win32_process_target::resume): Likewise.
449 (load_psapi): Likewise.
450 (win32_add_all_dlls): Likewise.
451 (maybe_adjust_pc): Likewise.
452 (win32_process_target::qxfer_siginfo): Likewise.
453 (initialize_low): Likewise.
454 * win32-low.h (struct win32_target_ops): Change num_regs to
455 callback function.
456
1eb39914
SM
4572020-04-27 Simon Marchi <simon.marchi@efficios.com>
458
459 * configure.ac: Remove check for fs_base/gs_base in
460 user_regs_struct.
461 * configure: Re-generate.
462 * config.in: Re-generate.
463 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
464 x86_store_gregset): Adjust.
465
51ac8e22
HD
4662020-04-22 Hannes Domani <ssbssa@yahoo.de>
467
468 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
469 comparison.
470
a010605f
TT
4712020-04-16 Tom Tromey <tromey@adacore.com>
472
473 * win32-low.cc (windows_nat::handle_access_violation): New
474 function.
475
e2275c6e
SM
4762020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
477
478 * win32-low.cc (get_child_debug_event): Fix format string warning.
479
73944e9f
TT
4802020-04-13 Tom Tromey <tom@tromey.com>
481
482 * server.h (gdb_fildes_t): Remove typedef.
483 * remote-utils.c (remote_desc, list_desc): Now int.
484 (INVALID_DESCRIPTOR): Remove.
485 (gdb_connected, remote_close)
486 (check_remote_input_interrupt_request): Update.
487 * utils.h (pfildes): Don't declare.
488 * utils.c (pfildes): Remove.
489
55d7aec8
TT
4902020-04-13 Tom Tromey <tom@tromey.com>
491
492 * server.h (handle_serial_event, handle_target_event): Update.
493 * server.c: Don't call initialize_event_loop.
494 (keep_processing_events): New global.
495 (handle_serial_event): Return void. Set keep_processing_events.
496 (handle_target_event): Return void.
497 (start_event_loop): Move from event-loop.c. Rewrite.
498 * remote-utils.c (handle_accept_event): Return void.
499 (reset_readchar): Use delete_timer.
500 (process_remaining): Return void.
501 (reschedule): Use create_timer.
502 * event-loop.h: Remove.
503 * event-loop.cc: Remove.
504 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
505
e487f994
TT
5062020-04-13 Tom Tromey <tom@tromey.com>
507
508 * server.c (invoke_async_signal_handlers)
509 (check_async_event_handlers, flush_streams, gdb_select): New
510 functions.
511
8ae8e197
TT
5122020-04-13 Tom Tromey <tom@tromey.com>
513
514 * configure: Rebuild.
515 * config.in: Rebuild.
516
360ad8b3
TT
5172020-04-08 Tom Tromey <tromey@adacore.com>
518
519 PR gdb/22992
520 * win32-low.c (child_continue): Call matching_pending_stop.
521 (get_child_debug_event): Call fetch_pending_stop. Push pending
522 stop when needed.
523
523d4f80
TT
5242020-04-08 Tom Tromey <tromey@adacore.com>
525
526 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
527 (win32_process_target::supports_stopped_by_sw_breakpoint):
528 Declare.
529 * win32-low.c (win32_supports_z_point_type): Always handle
530 Z_PACKET_SW_BP.
531 (win32_insert_point): Call insert_memory_breakpoint when needed.
532 (win32_remove_point): Call remove_memory_breakpoint when needed.
533 (win32_process_target::stopped_by_sw_breakpoint)
534 (win32_process_target::supports_stopped_by_sw_breakpoint): New
535 methods.
536 (win32_target_ops): Update.
537 (maybe_adjust_pc): New function.
538 (win32_wait): Call maybe_adjust_pc.
539
e54e5929
TT
5402020-04-08 Tom Tromey <tromey@adacore.com>
541
542 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
543 field.
544 * win32-i386-low.c (the_low_target): Update.
545 * win32-arm-low.c (the_low_target): Update.
546
d6225aff
TT
5472020-04-08 Tom Tromey <tromey@adacore.com>
548
549 * win32-low.h (win32_process_target::read_pc)
550 (win32_process_target::write_pc): Declare.
551 * win32-low.c (win32_process_target::read_pc)
552 (win32_process_target::write_pc): New methods.
553 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
554 functions.
555 (the_low_target): Update.
556 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
557 functions.
558 (the_low_target): Update.
559
2c1d95e8
TT
5602020-04-08 Tom Tromey <tromey@adacore.com>
561
562 * win32-low.c (win32_kill, get_child_debug_event): Use
563 wait_for_debug_event.
564
e758e19c
TT
5652020-04-08 Tom Tromey <tromey@adacore.com>
566
567 * win32-low.c (child_continue): Call continue_last_debug_event.
568
8d30e395
TT
5692020-04-08 Tom Tromey <tromey@adacore.com>
570
571 * win32-low.c (handle_exception): Remove.
572 (windows_nat::handle_ms_vc_exception): New function.
573 (get_child_debug_event): Add "continue_status" parameter.
574 Update.
575 (win32_wait): Update.
576
a816ba18
TT
5772020-04-08 Tom Tromey <tromey@adacore.com>
578
579 * win32-low.c (windows_nat::handle_load_dll): Rename from
580 handle_load_dll. No longer static.
581 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
582 No longer static.
583
d41b524f
TT
5842020-04-08 Tom Tromey <tromey@adacore.com>
585
586 * win32-low.c (handle_output_debug_string): Add parameter. Change
587 return type.
588 (win32_kill, get_child_debug_event): Update.
589
3c76026d
TT
5902020-04-08 Tom Tromey <tromey@adacore.com>
591
592 * win32-low.c (current_process_handle, current_process_id)
593 (main_thread_id, last_sig, current_event, siginfo_er): Move to
594 nat/windows-nat.c.
595
9d8679cc
TT
5962020-04-08 Tom Tromey <tromey@adacore.com>
597
598 * win32-low.c (get_image_name): Remove.
599 (handle_load_dll): Update.
600
28688adf
TT
6012020-04-08 Tom Tromey <tromey@adacore.com>
602
603 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
604 No longer static. Change parameters.
605 (child_add_thread, child_fetch_inferior_registers)
606 (child_store_inferior_registers, win32_resume)
607 (win32_get_tib_address): Update.
608
4834dad0
TT
6092020-04-08 Tom Tromey <tromey@adacore.com>
610
611 * win32-low.h (struct win32_target_ops): Use qualified names where
612 needed.
613 * win32-i386-low.c: Add "using namespace".
614 * win32-low.c: Add "using namespace".
615 * win32-arm-low.c: Add "using namespace".
616
65bafd5b
TT
6172020-04-08 Tom Tromey <tromey@adacore.com>
618
619 * win32-low.c (delete_thread_info): Don't call CloseHandle.
620
98a03287
TT
6212020-04-08 Tom Tromey <tromey@adacore.com>
622
623 * win32-low.c (win32_require_context, suspend_one_thread): Use
624 windows_thread_info::suspend.
625 (continue_one_thread): Use windows_thread_info::resume.
626 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
627
62fe396b
TT
6282020-04-08 Tom Tromey <tromey@adacore.com>
629
630 * win32-i386-low.c (update_debug_registers)
631 (i386_prepare_to_resume, i386_thread_added): Update.
632
e9534bd2
TT
6332020-04-08 Tom Tromey <tromey@adacore.com>
634
635 * win32-low.c (child_add_thread): Use new.
636 (delete_thread_info): Use delete.
637
ae1f8880
TT
6382020-04-08 Tom Tromey <tromey@adacore.com>
639
640 * win32-low.h (struct windows_thread_info): Remove.
641
e56f8ccb
TT
6422020-04-08 Tom Tromey <tromey@adacore.com>
643
644 * win32-low.h (struct windows_thread_info): Rename from
645 win32_thread_info. Remove typedef.
646 (struct win32_target_ops, win32_require_context): Update.
647 * win32-low.c (win32_get_thread_context)
648 (win32_set_thread_context, win32_prepare_to_resume)
649 (win32_require_context, thread_rec, child_add_thread)
650 (delete_thread_info, continue_one_thread)
651 (child_fetch_inferior_registers, child_store_inferior_registers)
652 (win32_resume, suspend_one_thread, win32_get_tib_address):
653 Update.
654 * win32-i386-low.c (update_debug_registers)
655 (win32_get_current_dr, i386_get_thread_context)
656 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
657 (i386_fetch_inferior_register, i386_store_inferior_register):
658 Update.
659 * win32-arm-low.c (arm_get_thread_context)
660 (arm_fetch_inferior_register, arm_store_inferior_register):
661 Update.
662
0dd7b52e
TBA
6632020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
664
665 * linux-low.h (struct linux_target_ops): Remove.
666 (the_low_target): Remove.
667 * linux-x86-low.cc (the_low_target): Remove.
668 * linux-aarch64-low.cc (the_low_target): Ditto.
669 * linux-arm-low.cc (the_low_target): Ditto.
670 * linux-bfin-low.cc (the_low_target): Ditto.
671 * linux-cris-low.cc (the_low_target): Ditto.
672 * linux-crisv32-low.cc (the_low_target): Ditto.
673 * linux-ia64-low.cc (the_low_target): Ditto.
674 * linux-m32r-low.cc (the_low_target): Ditto.
675 * linux-m68k-low.cc (the_low_target): Ditto.
676 * linux-mips-low.cc (the_low_target): Ditto.
677 * linux-nios2-low.cc (the_low_target): Ditto.
678 * linux-ppc-low.cc (the_low_target): Ditto.
679 * linux-riscv-low.cc (the_low_target): Ditto.
680 * linux-s390-low.cc (the_low_target): Ditto.
681 * linux-sh-low.cc (the_low_target): Ditto.
682 * linux-sparc-low.cc (the_low_target): Ditto.
683 * linux-tic6x-low.cc (the_low_target): Ditto.
684 * linux-tile-low.cc (the_low_target): Ditto.
685 * linux-xtensa-low.cc (the_low_target): Ditto.
686
fc5ecdb6
TBA
6872020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
688
689 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
690 linux target define the op by overriding the declaration in
691 process_stratum_target.
692
693 * linux-low.h (struct linux_target_ops): Remove the op.
694 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
695 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
696 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
697 (x86_get_ipa_tdesc_idx): Turn into...
698 (x86_target::get_ipa_tdesc_idx): ...this.
699 (the_low_target): Remove the op field.
700 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
701 (ppc_get_ipa_tdesc_idx): Turn into...
702 (ppc_target::get_ipa_tdesc_idx): ...this.
703 (the_low_target): Remove the op field.
704 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
705 (s390_get_ipa_tdesc_idx): Turn into...
706 (s390_target::get_ipa_tdesc_idx): ...this.
707 (the_low_target): Remove the op field.
708
9eedd27d
TBA
7092020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
710
711 Turn the 'get_syscall_trapinfo' linux target op into a method
712 of process_stratum_target.
713
714 * linux-low.h (struct linux_target_ops): Remove the op.
715 (class linux_process_target) <get_syscall_trapinfo>
716 <gdb_catch_this_syscall>
717 <low_supports_catch_syscall>
718 <low_get_syscall_trapinfo>: Declare.
719 * linux-low.cc (get_syscall_trapinfo): Turn into...
720 (linux_process_target::get_syscall_trapinfo): ...this.
721 (linux_process_target::low_get_syscall_trapinfo): Define.
722 (gdb_catch_this_syscall_p): Turn into...
723 (linux_process_target::gdb_catch_this_syscall): ...this.
724 (linux_process_target::low_supports_catch_syscall): Define.
725
726 Update the callers below.
727
728 (linux_process_target::wait_1)
729 (linux_process_target::supports_catch_syscall)
730
731 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
732 <low_get_syscall_trapinfo>: Declare.
733 (x86_target::low_supports_catch_syscall): Define.
734 (x86_get_syscall_trapinfo): Turn into...
735 (x86_target::low_get_syscall_trapinfo): ...this.
736 (the_low_target): Remove the op field.
737 * linux-aarch64-low.cc (class aarch64_target)
738 <low_supports_catch_syscall>
739 <low_get_syscall_trapinfo>: Declare.
740 (aarch64_target::low_supports_catch_syscall): Define.
741 (aarch64_get_syscall_trapinfo): Turn into...
742 (aarch64_target::low_get_syscall_trapinfo): ...this.
743 (the_low_target): Remove the op field.
744 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
745 <low_get_syscall_trapinfo>: Declare.
746 (arm_target::low_supports_catch_syscall): Define.
747 (arm_get_syscall_trapinfo): Turn into...
748 (arm_target::low_get_syscall_trapinfo): ...this.
749 (the_low_target): Remove the op field.
750 * linux-ppc-low.cc (the_low_target): Remove the op field.
751 * linux-s390-low.cc (the_low_target): Remove the op field.
752
b31cdfa6
TBA
7532020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
754
755 Remove the 'supports_hardware_single_step' linux target op and
756 override the process_stratum_target's op definition in
757 linux_process_target to return true.
758
759 * linux-low.h (struct linux_target_ops): Remove the op.
760 (class linux_process_target) <finish_step_over>
761 <maybe_hw_step>: Declare.
762 * linux-low.cc (can_hardware_single_step): Remove.
763 (maybe_hw_step): Turn into...
764 (linux_process_target::maybe_hw_step): ...this.
765 (finish_step_over): Turn into...
766 (linux_process_target::finish_step_over): ...this.
767 (linux_process_target::supports_hardware_single_step): Update
768 to return true.
769
770 Update the callers below.
771
772 (linux_process_target::single_step)
773 (linux_process_target::resume_one_lwp_throw)
774
775 * linux-arm-low.cc (class arm_target)
776 <supports_hardware_single_step>: Declare.
777 (arm_supports_hardware_single_step): Turn into...
778 (arm_target::supports_hardware_single_step): ...this.
779 (the_low_target): Remove the op field.
780 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
781 (the_low_target): Remove the op field.
782 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
783 Remove.
784 (the_low_target): Remove the op field.
785 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
786 (the_low_target): Remove the op field.
787 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
788 (the_low_target): Remove the op field.
789 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
790 (the_low_target): Remove the op field.
791 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
792 (the_low_target): Remove the op field.
793 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
794 (the_low_target): Remove the op field.
795 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
796 (the_low_target): Remove the op field.
797 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
798 (the_low_target): Remove the op field.
799 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
800 (the_low_target): Remove the op field.
801 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
802 (the_low_target): Remove the op field.
803 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
804 Remove.
805 (the_low_target): Remove the op field.
806
9cfd8715
TBA
8072020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
808
809 Turn the 'supports_range_stepping' linux target op into a method
810 of linux_process_target.
811
812 * linux-low.h (struct linux_target_ops): Remove the op.
813 (class linux_process_target) <low_supports_range_stepping>: Declare.
814 * linux-low.cc (linux_process_target::low_supports_range_stepping):
815 Define.
816 (linux_process_target::supports_range_stepping): Update the call
817 site.
818 * linux-x86-low.cc (class x86_target)
819 <low_supports_range_stepping>: Declare.
820 (x86_supports_range_stepping): Turn into...
821 (x86_target::low_supports_range_stepping): ...this.
822 (the_low_target): Remove the op field.
823 * linux-aarch64-low.cc (class aarch64_target)
824 <low_supports_range_stepping>: Declare.
825 (aarch64_supports_range_stepping): Turn into...
826 (aarch64_target::low_supports_range_stepping): ...this.
827 (the_low_target): Remove the op field.
828 * linux-arm-low.cc (the_low_target): Remove the op field.
829 * linux-bfin-low.cc (the_low_target): Ditto.
830 * linux-crisv32-low.cc (the_low_target): Ditto.
831 * linux-m32r-low.cc (the_low_target): Ditto.
832 * linux-m68k-low.cc (the_low_target): Ditto.
833 * linux-ppc-low.cc (the_low_target): Ditto.
834 * linux-s390-low.cc (the_low_target): Ditto.
835 * linux-sh-low.cc (the_low_target): Ditto.
836 * linux-tic6x-low.cc (the_low_target): Ditto.
837 * linux-tile-low.cc (the_low_target): Ditto.
838 * linux-xtensa-low.cc (the_low_target): Ditto.
839
ab64c999
TBA
8402020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
841
842 Remove the 'emit_ops' linux target ops and let the concrete
843 linux target define the op by overriding the declaration of
844 process_stratum_target.
845
846 * linux-low.h (struct linux_target_ops): Remove the op.
847 (class linux_process_target) <emit_ops>: Remove.
848 * linux-low.cc (linux_process_target::emit_ops): Remove.
849 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
850 (x86_emit_ops): Turn into...
851 (x86_target::emit_ops): ...this.
852 (the_low_target): Remove the op field.
853 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
854 (aarch64_emit_ops): Turn into...
855 (aarch64_target::emit_ops): ...this.
856 (the_low_target): Remove the op field.
857 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
858 (ppc_emit_ops): Turn into...
859 (ppc_target::emit_ops): ...this.
860 (the_low_target): Remove the op field.
861 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
862 (s390_emit_ops): Turn into...
863 (s390_target::emit_ops): ...this.
864 (the_low_target): Remove the op field.
865 * linux-arm-low.cc (the_low_target): Remove the op field.
866 * linux-bfin-low.cc (the_low_target): Ditto.
867 * linux-crisv32-low.cc (the_low_target): Ditto.
868 * linux-m32r-low.cc (the_low_target): Ditto.
869 * linux-m68k-low.cc (the_low_target): Ditto.
870 * linux-sh-low.cc (the_low_target): Ditto.
871 * linux-tic6x-low.cc (the_low_target): Ditto.
872 * linux-tile-low.cc (the_low_target): Ditto.
873 * linux-xtensa-low.cc (the_low_target): Ditto.
874
809a0c35
TBA
8752020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
876
877 Remove the 'install_fast_tracepoint_jump_pad' and
878 'get_min_fast_tracepoint_insn_len' linux target ops to let the
879 concrete linux target define the ops by overriding the declarations
880 of process_stratum_target.
881
882 * linux-low.h (struct linux_target_ops): Remove the ops.
883 (class linux_process_target) <supports_fast_tracepoints>
884 <install_fast_tracepoint_jump_pad>
885 <get_min_fast_tracepoint_insn_len>: Remove.
886 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
887 (linux_process_target::install_fast_tracepoint_jump_pad)
888 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
889 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
890 <install_fast_tracepoint_jump_pad>
891 <get_min_fast_tracepoint_insn_len>: Declare.
892 (x86_target::supports_fast_tracepoints): Define.
893 (x86_install_fast_tracepoint_jump_pad): Turn into...
894 (x86_target::install_fast_tracepoint_jump_pad): ...this.
895 (x86_get_min_fast_tracepoint_insn_len): Turn into...
896 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
897 (the_low_target): Remove the op fields.
898 * linux-aarch64-low.cc (class aarch64_target)
899 <supports_fast_tracepoints>
900 <install_fast_tracepoint_jump_pad>
901 <get_min_fast_tracepoint_insn_len>: Declare.
902 (aarch64_target::supports_fast_tracepoints): Define.
903 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
904 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
905 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
906 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
907 (the_low_target): Remove the op fields.
908 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
909 <install_fast_tracepoint_jump_pad>
910 <get_min_fast_tracepoint_insn_len>: Declare.
911 (ppc_target::supports_fast_tracepoints): Define.
912 (ppc_install_fast_tracepoint_jump_pad): Turn into...
913 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
914 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
915 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
916 (the_low_target): Remove the op fields.
917 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
918 <install_fast_tracepoint_jump_pad>
919 <get_min_fast_tracepoint_insn_len>: Declare.
920 (s390_target::supports_fast_tracepoints): Define.
921 (s390_install_fast_tracepoint_jump_pad): Turn into...
922 (s390_target::install_fast_tracepoint_jump_pad): ...this.
923 (s390_get_min_fast_tracepoint_insn_len): Turn into...
924 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
925 (the_low_target): Remove the op fields.
926 * linux-arm-low.cc (the_low_target): Remove the op fields.
927 * linux-bfin-low.cc (the_low_target): Ditto.
928 * linux-crisv32-low.cc (the_low_target): Ditto.
929 * linux-m32r-low.cc (the_low_target): Ditto.
930 * linux-m68k-low.cc (the_low_target): Ditto.
931 * linux-sh-low.cc (the_low_target): Ditto.
932 * linux-tic6x-low.cc (the_low_target): Ditto.
933 * linux-tile-low.cc (the_low_target): Ditto.
934 * linux-xtensa-low.cc (the_low_target): Ditto.
935
13e567af
TBA
9362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
937
938 Turn the 'get_thread_area' linux target op into a method of
939 process_stratum_target.
940
941 * linux-low.h (struct linux_target_ops): Remove the op.
942 (class linux_process_target) <stuck_in_jump_pad>
943 <linux_fast_tracepoint_collecting>
944 <low_get_thread_area>: Declare.
945 * linux-low.cc (supports_fast_tracepoints): Remove.
946 (linux_fast_tracepoint_collecting): Turn into...
947 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
948 (linux_process_target::low_get_thread_area): Define.
949 (stuck_in_jump_pad_callback): Turn into...
950 (linux_process_target::stuck_in_jump_pad): ...this.
951
952 Update the caller below.
953
954 (linux_process_target::stabilize_threads)
955
956 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
957 Declare.
958 (x86_get_thread_area): Turn into...
959 (x86_target::low_get_thread_area): ...this.
960 (the_low_target): Remove the op field.
961 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
962 Declare.
963 (aarch64_get_thread_area): Turn into...
964 (aarch64_target::low_get_thread_area): ...this.
965 (the_low_target): Remove the op field.
966 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
967 Declare.
968 (ppc_get_thread_area): Turn into...
969 (ppc_target::low_get_thread_area): ...this.
970 (the_low_target): Remove the op field.
971 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
972 Declare.
973 (s390_get_thread_area): Turn into...
974 (s390_target::low_get_thread_area): ...this.
975 (the_low_target): Remove the op field.
976 * linux-arm-low.cc (the_low_target): Remove the op field.
977 * linux-bfin-low.cc (the_low_target): Ditto.
978 * linux-crisv32-low.cc (the_low_target): Ditto.
979 * linux-m32r-low.cc (the_low_target): Ditto.
980 * linux-m68k-low.cc (the_low_target): Ditto.
981 * linux-sh-low.cc (the_low_target): Ditto.
982 * linux-tic6x-low.cc (the_low_target): Ditto.
983 * linux-tile-low.cc (the_low_target): Ditto.
984 * linux-xtensa-low.cc (the_low_target): Ditto.
985
47f70aa7
TBA
9862020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
987
988 Remote the 'supports_tracepoints' linux target op and let the
989 concrete linux target define it by overriding the op declared in
990 process_stratum_target.
991
992 * linux-low.h (struct linux_target_ops): Remove the op.
993 (class linux_process_target) <supports_tracepoints>: Remove.
994 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
995 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
996 Declare.
997 (x86_supports_tracepoints): Turn into...
998 (x86_target::supports_tracepoints): ...this.
999 (the_low_target): Remove the op field.
1000 * linux-aarch64-low.cc (class aarch64_target)
1001 <supports_tracepoints>: Declare.
1002 (aarch64_supports_tracepoints): Turn into...
1003 (aarch64_target::supports_tracepoints): ...this.
1004 (the_low_target): Remove the op field.
1005 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1006 Declare.
1007 (ppc_supports_tracepoints): Turn into...
1008 (ppc_target::supports_tracepoints): ...this.
1009 (the_low_target): Remove the op field.
1010 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1011 Declare.
1012 (s390_supports_tracepoints): Turn into...
1013 (s390_target::supports_tracepoints): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-arm-low.cc (the_low_target): Remove the op field.
1016 * linux-bfin-low.cc (the_low_target): Ditto.
1017 * linux-crisv32-low.cc (the_low_target): Ditto.
1018 * linux-m32r-low.cc (the_low_target): Ditto.
1019 * linux-m68k-low.cc (the_low_target): Ditto.
1020 * linux-sh-low.cc (the_low_target): Ditto.
1021 * linux-tic6x-low.cc (the_low_target): Ditto.
1022 * linux-tile-low.cc (the_low_target): Ditto.
1023 * linux-xtensa-low.cc (the_low_target): Ditto.
1024
a5b5da92
TBA
10252020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1026
1027 Remove the 'process_qsupported' linux target op and let a concrete
1028 linux target define the op by overriding the op declaration in
1029 process_stratum_target.
1030
1031 * linux-low.h (struct linux_target_ops): Remove the op.
1032 (class linux_process_target) <process_qsupported>: Remove.
1033 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1034 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1035 (x86_linux_process_qsupported): Turn into...
1036 (x86_target::process_qsupported): ...this.
1037 (the_low_target): Remove the op field.
1038 * linux-aarch64-low.cc (the_low_target): Remove the op
1039 field.
1040 * linux-arm-low.cc (the_low_target): Ditto.
1041 * linux-bfin-low.cc (the_low_target): Ditto.
1042 * linux-crisv32-low.cc (the_low_target): Ditto.
1043 * linux-m32r-low.cc (the_low_target): Ditto.
1044 * linux-m68k-low.cc (the_low_target): Ditto.
1045 * linux-ppc-low.cc (the_low_target): Ditto.
1046 * linux-s390-low.cc (the_low_target): Ditto.
1047 * linux-sh-low.cc (the_low_target): Ditto.
1048 * linux-tic6x-low.cc (the_low_target): Ditto.
1049 * linux-tile-low.cc (the_low_target): Ditto.
1050 * linux-xtensa-low.cc (the_low_target): Ditto.
1051
d7599cc0
TBA
10522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1053
1054 Turn the 'prepare_to_resume' linux target op into a method of
1055 linux_process_target.
1056
1057 * linux-low.h (struct linux_target_ops): Remove the op.
1058 (class linux_process_target) <low_prepare_to_resume>: Declare.
1059 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1060 Define.
1061
1062 Update the callers below:
1063
1064 (linux_process_target::resume_one_lwp_throw)
1065 (linux_process_target::low_prepare_to_resume)
1066
1067 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1068 Declare.
1069 (x86_target::low_prepare_to_resume): Define.
1070 (the_low_target): Remove the op field.
1071 * linux-aarch64-low.cc (class aarch64_target)
1072 <low_prepare_to_resume>: Declare.
1073 (aarch64_target::low_prepare_to_resume): Define.
1074 (the_low_target): Remove the op field.
1075 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1076 Declare.
1077 (arm_prepare_to_resume): Turn into...
1078 (arm_target::low_prepare_to_resume): ...this.
1079 (the_low_target): Remove the op field.
1080 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1081 Declare.
1082 (mips_linux_prepare_to_resume): Turn into...
1083 (mips_target::low_prepare_to_resume): ...this.
1084 (the_low_target): Remove the op field.
1085 * linux-bfin-low.cc (the_low_target): Remove the op field.
1086 * linux-crisv32-low.cc (the_low_target): Ditto.
1087 * linux-m32r-low.cc (the_low_target): Ditto.
1088 * linux-m68k-low.cc (the_low_target): Ditto.
1089 * linux-ppc-low.cc (the_low_target): Ditto.
1090 * linux-s390-low.cc (the_low_target): Ditto.
1091 * linux-sh-low.cc (the_low_target): Ditto.
1092 * linux-tic6x-low.cc (the_low_target): Ditto.
1093 * linux-tile-low.cc (the_low_target): Ditto.
1094 * linux-xtensa-low.cc (the_low_target): Ditto.
1095
fd000fb3
TBA
10962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1097
1098 Turn the 'new_process', 'delete_process', 'new_thread',
1099 'delete_thread', and 'new_fork' linux target ops into methods
1100 of linux_process_target.
1101
1102 * linux-low.h (struct linux_target_ops): Remove the ops.
1103 (class linux_process_target) <add_linux_process>
1104 <add_lwp>
1105 <delete_lwp>
1106 <attach_lwp>
1107 <detach_one_lwp>
1108 <check_zombie_leaders>
1109 <filter_exit_event>
1110 <low_new_process>
1111 <low_delete_process>
1112 <low_new_thread>
1113 <low_delete_thread>
1114 <low_new_fork>: Declare.
1115 * linux-low.cc (delete_lwp): Turn into...
1116 (linux_process_target::delete_lwp): ...this.
1117 (linux_process_target::low_delete_thread): Define.
1118 (linux_add_process): Turn into...
1119 (linux_process_target::add_linux_process): ...this.
1120 (linux_process_target::low_new_process): Define.
1121 (linux_process_target::low_delete_process): Define.
1122 (linux_process_target::low_new_fork): Define.
1123 (add_lwp): Turn into...
1124 (linux_process_target::add_lwp): ...this.
1125 (linux_process_target::low_new_thread): Define.
1126 (linux_attach_lwp): Turn into...
1127 (linux_process_target::attach_lwp): ...this.
1128 (linux_detach_one_lwp): Turn into...
1129 (linux_process_target::detach_one_lwp): ...this.
1130 (linux_detach_lwp_callback): Remove and inline...
1131 (linux_process_target::detach): ...here.
1132 (check_zombie_leaders): Turn into...
1133 (linux_process_target::check_zombie_leaders): ...this.
1134 (filter_exit_event): Turn into...
1135 (linux_process_target::filter_exit_event): ...this.
1136
1137 Update the callers below.
1138
1139 (linux_process_target::handle_extended_wait)
1140 (linux_process_target::create_inferior)
1141 (attach_proc_task_lwp_callback)
1142 (linux_process_target::attach)
1143 (linux_process_target::detach)
1144 (linux_process_target::mourn)
1145 * thread-db.cc (attach_thread)
1146
1147 * linux-x86-low.cc (class x86_target) <low_new_process>
1148 <low_delete_process>
1149 <low_new_thread>
1150 <low_delete_thread>
1151 <low_new_fork>: Declare.
1152 (x86_linux_new_process): Turn into...
1153 (x86_target::low_new_process): ...this.
1154 (x86_linux_delete_process): Turn into...
1155 (x86_target::low_delete_process): ...this.
1156 (x86_target::low_new_thread): Define.
1157 (x86_target::low_delete_thread): Define.
1158 (x86_linux_new_fork): Turn into...
1159 (x86_target::low_new_fork): ...this.
1160 (the_low_target): Remove the op fields.
1161 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1162 <low_delete_process>
1163 <low_new_thread>
1164 <low_delete_thread>
1165 <low_new_fork>: Declare.
1166 (aarch64_linux_new_process): Turn into...
1167 (aarch64_target::low_new_process): ...this.
1168 (aarch64_linux_delete_process): Turn into...
1169 (aarch64_target::low_delete_process): ...this.
1170 (aarch64_target::low_new_thread): Define.
1171 (aarch64_target::low_delete_thread): Define.
1172 (aarch64_linux_new_fork): Turn into...
1173 (aarch64_target::low_new_fork): ...this.
1174 (the_low_target): Remove the op fields.
1175 * linux-arm-low.cc (class arm_target) <low_new_process>
1176 <low_delete_process>
1177 <low_new_thread>
1178 <low_delete_thread>
1179 <low_new_fork>: Declare.
1180 (arm_new_process): Turn into...
1181 (arm_target::low_new_process): ...this.
1182 (arm_delete_process): Turn into...
1183 (arm_target::low_delete_process): ...this.
1184 (arm_new_thread): Turn into...
1185 (arm_target::low_new_thread): ...this.
1186 (arm_delete_thread): Turn into...
1187 (arm_target::low_delete_thread): ...this.
1188 (arm_new_fork): Turn into...
1189 (arm_target::low_new_fork): ...this.
1190 (the_low_target): Remove the op fields.
1191 * linux-mips-low.cc (class mips_target) <low_new_process>
1192 <low_delete_process>
1193 <low_new_thread>
1194 <low_delete_thread>
1195 <low_new_fork>: Declare.
1196 (mips_linux_new_process): Turn into...
1197 (mips_target::low_new_process): ...this.
1198 (mips_linux_delete_process): Turn into...
1199 (mips_target::low_delete_process): ...this.
1200 (mips_linux_new_thread): Turn into...
1201 (mips_target::low_new_thread): ...this.
1202 (mips_linux_delete_thread): Turn into...
1203 (mips_target::low_delete_thread): ...this.
1204 (mips_linux_new_fork): Turn into...
1205 (mips_target::low_new_fork): ...this.
1206 (the_low_target): Remove the op fields.
1207 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1208 * linux-crisv32-low.cc (the_low_target): Ditto.
1209 * linux-m32r-low.cc (the_low_target): Ditto.
1210 * linux-m68k-low.cc (the_low_target): Ditto.
1211 * linux-ppc-low.cc (the_low_target): Ditto.
1212 * linux-s390-low.cc (the_low_target): Ditto.
1213 * linux-sh-low.cc (the_low_target): Ditto.
1214 * linux-tic6x-low.cc (the_low_target): Ditto.
1215 * linux-tile-low.cc (the_low_target): Ditto.
1216 * linux-xtensa-low.cc (the_low_target): Ditto.
1217
cb63de7c
TBA
12182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1219
1220 Turn the 'siginfo_fixup' linux target op into a method of
1221 linux_process_target.
1222
1223 * linux-low.h (struct linux_target_ops): Remove the op.
1224 (class linux_process_target) <siginfo_fixup>
1225 <low_siginfo_fixup>: Declare.
1226 * linux-low.cc (siginfo_fixup): Turn into...
1227 (linux_process_target::siginfo_fixup): ...this.
1228 (linux_process_target::low_siginfo_fixup): Define.
1229 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1230 (x86_siginfo_fixup): Turn into...
1231 (x86_target::low_siginfo_fixup): ...this.
1232 (the_low_target): Remove the op field.
1233 * linux-aarch64-low.cc (class aarch64_target):
1234 <low_siginfo_fixup>: Declare.
1235 (aarch64_linux_siginfo_fixup): Turn into...
1236 (aarch64_target::low_siginfo_fixup): ...this.
1237 (the_low_target): Remove the op field.
1238 * linux-arm-low.cc (the_low_target): Remove the op field.
1239 * linux-bfin-low.cc (the_low_target): Ditto.
1240 * linux-crisv32-low.cc (the_low_target): Ditto.
1241 * linux-m32r-low.cc (the_low_target): Ditto.
1242 * linux-m68k-low.cc (the_low_target): Ditto.
1243 * linux-mips-low.cc (the_low_target): Ditto.
1244 * linux-ppc-low.cc (the_low_target): Ditto.
1245 * linux-s390-low.cc (the_low_target): Ditto.
1246 * linux-sh-low.cc (the_low_target): Ditto.
1247 * linux-tic6x-low.cc (the_low_target): Ditto.
1248 * linux-tile-low.cc (the_low_target): Ditto.
1249 * linux-xtensa-low.cc (the_low_target): Ditto.
1250
b35db733
TBA
12512020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1252
1253 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1254 linux target ops into methods of linux_process_target.
1255
1256 * linux-low.h (struct linux_target_ops): Remove the ops.
1257 (class linux_process_target) <low_collect_ptrace_register>
1258 <low_store_ptrace_register>: Declare.
1259 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1260 (linux_process_target::low_supply_ptrace_register): Define.
1261
1262 Update the callers below.
1263
1264 (linux_process_target::fetch_register)
1265 (linux_process_target::store_register)
1266
1267 * linux-x86-low.cc (the_low_target): Remove the op fields.
1268 * linux-aarch64-low.cc (the_low_target): Ditto.
1269 * linux-arm-low.cc (the_low_target): Ditto.
1270 * linux-bfin-low.cc (the_low_target): Ditto.
1271 * linux-crisv32-low.cc (the_low_target): Ditto.
1272 * linux-m32r-low.cc (the_low_target): Ditto.
1273 * linux-m68k-low.cc (the_low_target): Ditto.
1274 * linux-sh-low.cc (the_low_target): Ditto.
1275 * linux-sparc-low.cc (the_low_target): Ditto.
1276 * linux-tic6x-low.cc (the_low_target): Ditto.
1277 * linux-tile-low.cc (the_low_target): Ditto.
1278 * linux-xtensa-low.cc (the_low_target): Ditto.
1279 * linux-mips-low.cc (class mips_target)
1280 <low_collect_ptrace_register>
1281 <low_supply_ptrace_register>: Declare.
1282 (mips_collect_ptrace_register): Turn into ...
1283 (mips_target::low_collect_ptrace_register): ...this.
1284 (mips_supply_ptrace_register): Turn into...
1285 (mips_target::low_supply_ptrace_register): ...this.
1286 (the_low_target): Remove the op fields.
1287 * linux-ppc-low.cc (class ppc_target)
1288 <low_collect_ptrace_register>
1289 <low_supply_ptrace_register>: Declare.
1290 (ppc_collect_ptrace_register): Turn into ...
1291 (ppc_target::low_collect_ptrace_register): ...this.
1292 (ppc_supply_ptrace_register): Turn into ...
1293 (ppc_target::low_supply_ptrace_register): ...this.
1294 (ppc_fill_gregset): Update for the calls to
1295 low_collect_ptrace_register.
1296 (the_low_target): Remove the op fields.
1297 * linux-s390-low.cc (class s390_target)
1298 <low_collect_ptrace_register>
1299 <low_supply_ptrace_register>: Declare.
1300 (s390_collect_ptrace_register): Turn into ...
1301 (s390_target::low_collect_ptrace_register): ...this.
1302 (s390_supply_ptrace_register): Turn into ...
1303 (s390_target::low_supply_ptrace_register): ...this.
1304 (s390_fill_gregset): Update for the calls to
1305 low_collect_ptrace_register.
1306 (the_low_target): Remove the op fields.
1307
ac1bbaca
TBA
13082020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1309
1310 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1311 target ops into methods of linux_process_target.
1312
1313 * linux-low.h (struct linux_target_ops): Remove the ops.
1314 (class linux_process_target) <check_stopped_by_watchpoint>
1315 <low_stopped_by_watchpoint>
1316 <low_stopped_data_address>: Declare.
1317 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1318 (linux_process_target::check_stopped_by_watchpoint): ...this.
1319 (linux_process_target::low_stopped_by_watchpoint): Define.
1320 (linux_process_target::low_stopped_data_address): Define.
1321 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1322 <low_stopped_data_address>: Declare.
1323 (x86_stopped_by_watchpoint): Turn into...
1324 (x86_target::low_stopped_by_watchpoint): ...this.
1325 (x86_stopped_data_address): Turn into...
1326 (x86_target::low_stopped_data_address): ...this.
1327 (the_low_target): Remove the op fields.
1328 * linux-aarch64-low.cc (class aarch64_target)
1329 <low_stopped_by_watchpoint>
1330 <low_stopped_data_address>: Declare.
1331 (aarch64_stopped_by_watchpoint): Turn into...
1332 (aarch64_target::low_stopped_by_watchpoint): ...this.
1333 (aarch64_stopped_data_address): Turn into...
1334 (aarch64_target::low_stopped_data_address): ...this.
1335 (the_low_target): Remove the op fields.
1336 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1337 <low_stopped_data_address>: Declare.
1338 (arm_stopped_by_watchpoint): Turn into...
1339 (arm_target::low_stopped_by_watchpoint): ...this.
1340 (arm_stopped_data_address): Turn into...
1341 (arm_target::low_stopped_data_address): ...this.
1342 (the_low_target): Remove the op fields.
1343 * linux-crisv32-low.cc (class crisv32_target)
1344 <low_stopped_by_watchpoint>
1345 <low_stopped_data_address>: Declare.
1346 (cris_stopped_by_watchpoint): Turn into...
1347 (crisv32_target::low_stopped_by_watchpoint): ...this.
1348 (cris_stopped_data_address): Turn into...
1349 (crisv32_target::low_stopped_data_address): ...this.
1350 (the_low_target): Remove the op fields.
1351 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1352 <low_stopped_data_address>: Declare.
1353 (mips_stopped_by_watchpoint): Turn into...
1354 (mips_target::low_stopped_by_watchpoint): ...this.
1355 (mips_stopped_data_address): Turn into...
1356 (mips_target::low_stopped_data_address): ...this.
1357 (the_low_target): Remove the op fields.
1358 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1359 * linux-m32r-low.cc (the_low_target): Ditto.
1360 * linux-m68k-low.cc (the_low_target): Ditto.
1361 * linux-ppc-low.cc (the_low_target): Ditto.
1362 * linux-s390-low.cc (the_low_target): Ditto.
1363 * linux-sh-low.cc (the_low_target): Ditto.
1364 * linux-sparc-low.cc (the_low_target): Ditto.
1365 * linux-tic6x-low.cc (the_low_target): Ditto.
1366 * linux-tile-low.cc (the_low_target): Ditto.
1367 * linux-xtensa-low.cc (the_low_target): Ditto.
1368
9db9aa23
TBA
13692020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1370
1371 Turn the 'insert_point' and 'remove_point' linux target ops into
1372 methods of linux_process_target.
1373
1374 * linux-low.h (struct linux_target_ops): Remove the ops.
1375 (class linux_process_target) <low_insert_point>
1376 <low_remove_point>: Declare.
1377 * linux-low.cc (linux_process_target::low_insert_point)
1378 (linux_process_target::low_remove_point): Define.
1379 (linux_process_target::insert_point)
1380 (linux_process_target::remove_point): Update for calls to
1381 low_insert_point and low_remove_point.
1382 * linux-x86-low.cc (class x86_target) <low_insert_point>
1383 <low_remove_point>: Declare.
1384 (x86_insert_point): Turn into...
1385 (x86_target::low_insert_point): ...this.
1386 (x86_remove_point): Turn into...
1387 (x86_target::low_remove_point): ...this.
1388 (the_low_target): Remove the op fields.
1389 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1390 <low_remove_point>: Declare.
1391 (aarch64_insert_point): Turn into...
1392 (aarch64_target::low_insert_point): ...this.
1393 (aarch64_remove_point): Turn into...
1394 (aarch64_target::low_remove_point): ...this.
1395 (the_low_target): Remove the op fields.
1396 * linux-arm-low.cc (class arm_target) <low_insert_point>
1397 <low_remove_point>: Declare.
1398 (arm_insert_point): Turn into...
1399 (arm_target::low_insert_point): ...this.
1400 (arm_remove_point): Turn into...
1401 (arm_target::low_remove_point): ...this.
1402 (the_low_target): Remove the op fields.
1403 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1404 <low_remove_point>: Declare.
1405 (crisv32_insert_point): Turn into...
1406 (crisv32_target::low_insert_point): ...this.
1407 (crisv32_remove_point): Turn into...
1408 (crisv32_target::low_remove_point): ...this.
1409 (the_low_target): Remove the op fields.
1410 * linux-mips-low.cc (class mips_target) <low_insert_point>
1411 <low_remove_point>: Declare.
1412 (mips_insert_point): Turn into...
1413 (mips_target::low_insert_point): ...this.
1414 (mips_remove_point): Turn into...
1415 (mips_target::low_remove_point): ...this.
1416 (the_low_target): Remove the op fields.
1417 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1418 <low_remove_point>: Declare.
1419 (ppc_insert_point): Turn into...
1420 (ppc_target::low_insert_point): ...this.
1421 (ppc_remove_point): Turn into...
1422 (ppc_target::low_remove_point): ...this.
1423 (the_low_target): Remove the op fields.
1424 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1425 * linux-m32r-low.cc (the_low_target): Ditto.
1426 * linux-m68k-low.cc (the_low_target): Ditto.
1427 * linux-s390-low.cc (the_low_target): Ditto.
1428 * linux-sh-low.cc (the_low_target): Ditto.
1429 * linux-sparc-low.cc (the_low_target): Ditto.
1430 * linux-tic6x-low.cc (the_low_target): Ditto.
1431 * linux-tile-low.cc (the_low_target): Ditto.
1432 * linux-xtensa-low.cc (the_low_target): Ditto.
1433
007c9b97
TBA
14342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1435
1436 Remove the 'supports_z_point_type' linux target op and let the
1437 concrete linux target define it by overriding the op declared in
1438 process_stratum_target.
1439
1440 * linux-low.cc (linux_process_target::supports_z_point_type):
1441 Remove.
1442 * linux-low.h (struct linux_target_ops): Remove the op.
1443 (class linux_process_target) <supports_z_point_type>: Remove.
1444 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1445 Declare.
1446 (x86_supports_z_point_type): Turn into...
1447 (x86_target::supports_z_point_type): ...this.
1448 (the_low_target): Remove the op field.
1449 * linux-aarch64-low.cc (class aarch64_target)
1450 <supports_z_point_type>: Declare.
1451 (aarch64_supports_z_point_type): Turn into...
1452 (aarch64_target::supports_z_point_type): ...this.
1453 (the_low_target): Remove the op field.
1454 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1455 Declare.
1456 (arm_supports_z_point_type): Turn into...
1457 (arm_target::supports_z_point_type): ...this.
1458 (the_low_target): Remove the op field.
1459 * linux-crisv32-low.cc (class crisv32_target)
1460 <supports_z_point_type>: Declare.
1461 (cris_supports_z_point_type): Turn into...
1462 (crisv32_target::supports_z_point_type): ...this.
1463 (the_low_target): Remove the op field.
1464 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1465 Declare.
1466 (mips_supports_z_point_type): Turn into...
1467 (mips_target::supports_z_point_type): ...this.
1468 (the_low_target): Remove the op field.
1469 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1470 Declare.
1471 (ppc_supports_z_point_type): Turn into...
1472 (ppc_target::supports_z_point_type): ...this.
1473 (the_low_target): Remove the op field.
1474 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1475 Declare.
1476 (s390_supports_z_point_type): Turn into...
1477 (s390_target::supports_z_point_type): ...this.
1478 (the_low_target): Remove the op field.
1479 * linux-bfin-low.cc (the_low_target): Remove the op field.
1480 * linux-m32r-low.cc (the_low_target): Ditto.
1481 * linux-m68k-low.cc (the_low_target): Ditto.
1482 * linux-sh-low.cc (the_low_target): Ditto.
1483 * linux-sparc-low.cc (the_low_target): Ditto.
1484 * linux-tic6x-low.cc (the_low_target): Ditto.
1485 * linux-tile-low.cc (the_low_target): Ditto.
1486 * linux-xtensa-low.cc (the_low_target): Ditto.
1487
d7146cda
TBA
14882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1489
1490 Turn the 'breakpoint_at' linux target op into a method of
1491 linux_process_target.
1492
1493 * linux-low.h (struct linux_target_ops): Remove the op.
1494 (class linux_process_target) <low_breakpoint_at>: Declare.
1495
1496 Update the callers below:
1497
1498 * linux-low.cc (linux_process_target::save_stop_reason)
1499 (linux_process_target::thread_still_has_status_pending)
1500 (linux_process_target::wait_1)
1501
1502 * linux-x86-low.cc (class x86_target)
1503 <low_breakpoint_at>: Declare.
1504 (x86_breakpoint_at): Turn into...
1505 (x86_target::low_breakpoint_at): ...this.
1506 (the_low_target): Remove the op field.
1507 * linux-aarch64-low.cc (class aarch64_target)
1508 <low_breakpoint_at>: Declare.
1509 (aarch64_breakpoint_at): Turn into...
1510 (aarch64_target::low_breakpoint_at): ...this.
1511 (the_low_target): Remove the op field.
1512 * linux-arm-low.cc (class arm_target)
1513 <low_breakpoint_at>: Declare.
1514 (arm_target::low_breakpoint_at): Define.
1515 (the_low_target): Remove the op field.
1516 * linux-bfin-low.cc (class bfin_target)
1517 <low_breakpoint_at>: Declare.
1518 (bfin_breakpoint_at): Turn into...
1519 (bfin_target::low_breakpoint_at): ...this.
1520 (the_low_target): Remove the op field.
1521 * linux-cris-low.cc (class cris_target)
1522 <low_breakpoint_at>: Declare.
1523 (cris_breakpoint_at): Turn into...
1524 (cris_target::low_breakpoint_at): ...this.
1525 (the_low_target): Remove the op field.
1526 * linux-crisv32-low.cc (class crisv32_target)
1527 <low_breakpoint_at>: Declare.
1528 (crisv32_breakpoint_at): Turn into...
1529 (crisv32_target::low_breakpoint_at): ...this.
1530 (the_low_target): Remove the op field.
1531 * linux-ia64-low.cc (class ia64_target)
1532 <low_breakpoint_at>: Declare.
1533 (ia64_target::low_breakpoint_at): Define.
1534 * linux-m32r-low.cc (class m32r_target)
1535 <low_breakpoint_at>: Declare.
1536 (m32r_breakpoint_at): Turn into...
1537 (m32r_target::low_breakpoint_at): ...this.
1538 (the_low_target): Remove the op field.
1539 * linux-m68k-low.cc (class m68k_target)
1540 <low_breakpoint_at>: Declare.
1541 (m68k_breakpoint_at): Turn into...
1542 (m68k_target::low_breakpoint_at): ...this.
1543 (the_low_target): Remove the op field.
1544 * linux-mips-low.cc (class mips_target)
1545 <low_breakpoint_at>: Declare.
1546 (mips_breakpoint_at): Turn into...
1547 (mips_target::low_breakpoint_at): ...this.
1548 (the_low_target): Remove the op field.
1549 * linux-nios2-low.cc (class nios2_target)
1550 <low_breakpoint_at>: Declare.
1551 (nios2_breakpoint_at): Turn into...
1552 (nios2_target::low_breakpoint_at): ...this.
1553 (the_low_target): Remove the op field.
1554 * linux-ppc-low.cc (class ppc_target)
1555 <low_breakpoint_at>: Declare.
1556 (ppc_breakpoint_at): Turn into...
1557 (ppc_target::low_breakpoint_at): ...this.
1558 (the_low_target): Remove the op field.
1559 * linux-riscv-low.cc (class riscv_target)
1560 <low_breakpoint_at>: Declare.
1561 (riscv_breakpoint_at): Turn into...
1562 (riscv_target::low_breakpoint_at): ...this.
1563 (the_low_target): Remove the op field.
1564 * linux-s390-low.cc (class s390_target)
1565 <low_breakpoint_at>: Declare.
1566 (s390_breakpoint_at): Turn into...
1567 (s390_target::low_breakpoint_at): ...this.
1568 (the_low_target): Remove the op field.
1569 * linux-sh-low.cc (class sh_target)
1570 <low_breakpoint_at>: Declare.
1571 (sh_breakpoint_at): Turn into...
1572 (sh_target::low_breakpoint_at): ...this.
1573 (the_low_target): Remove the op field.
1574 * linux-sparc-low.cc (class sparc_target)
1575 <low_breakpoint_at>: Declare.
1576 (sparc_breakpoint_at): Turn into...
1577 (sparc_target::low_breakpoint_at): ...this.
1578 (the_low_target): Remove the op field.
1579 * linux-tic6x-low.cc (class tic6x_target)
1580 <low_breakpoint_at>: Declare.
1581 (tic6x_breakpoint_at): Turn into...
1582 (tic6x_target::low_breakpoint_at): ...this.
1583 (the_low_target): Remove the op field.
1584 * linux-tile-low.cc (class tile_target)
1585 <low_breakpoint_at>: Declare.
1586 (tile_breakpoint_at): Turn into...
1587 (tile_target::low_breakpoint_at): ...this.
1588 (the_low_target): Remove the op field.
1589 * linux-xtensa-low.cc (class xtensa_target)
1590 <low_breakpoint_at>: Declare.
1591 (xtensa_breakpoint_at): Turn into...
1592 (xtensa_target::low_breakpoint_at): ...this.
1593 (the_low_target): Remove the op field.
1594
d4807ea2
TBA
15952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1596
1597 Turn the 'decr_pc_after_break' linux_target_ops field into
1598 a method of linux_process_target.
1599
1600 * linux-low.h (struct linux_target_ops)
1601 <decr_pc_after_break>: Remove.
1602 (class linux_process_target) <low_decr_pc_after_break>: New method
1603 declaration.
1604 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1605 New method implementation.
1606
1607 Update the users below.
1608
1609 (linux_process_target::save_stop_reason)
1610 (linux_process_target::wait_1)
1611 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1612 New declaration.
1613 (x86_target::low_decr_pc_after_break): New method implementation.
1614 (the_low_target): Remove the field.
1615 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1616 New declaration.
1617 (bfin_target::low_decr_pc_after_break): New method implementation.
1618 (the_low_target): Remove the field.
1619 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1620 New declaration.
1621 (m68k_target::low_decr_pc_after_break): New method implementation.
1622 (the_low_target): Remove the field.
1623 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1624 New declaration.
1625 (s390_target::low_decr_pc_after_break): New method implementation.
1626 (the_low_target): Remove the field.
1627 * linux-aarch64-low.cc (the_low_target): Remove the field.
1628 * linux-arm-low.cc (the_low_target): Remove the field.
1629 * linux-cris-low.cc (the_low_target): Remove the field.
1630 * linux-crisv32-low.cc (the_low_target): Remove the field.
1631 * linux-m32r-low.cc (the_low_target): Remove the field.
1632 * linux-mips-low.cc (the_low_target): Remove the field.
1633 * linux-nios2-low.cc (the_low_target): Remove the field.
1634 * linux-ppc-low.cc (the_low_target): Remove the field.
1635 * linux-riscv-low.cc (the_low_target): Remove the field.
1636 * linux-sh-low.cc (the_low_target): Remove the field.
1637 * linux-sparc-low.cc (the_low_target): Remove the field.
1638 * linux-tic6x-low.cc (the_low_target): Remove the field.
1639 * linux-tile-low.cc (the_low_target): Remove the field.
1640 * linux-xtensa-low.cc (the_low_target): Remove the field.
1641
7582c77c
TBA
16422020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1643
1644 Remove the 'supports_software_single_step' linux target op and let
1645 the concrete linux target define it by overriding the op in
1646 process_stratum_target.
1647 Turn the 'get_next_pcs' linux target op into a method of
1648 linux_process_target.
1649
1650 * linux-low.h (struct linux_target_ops): Remove the ops.
1651 (class linux_process_target) <supports_software_single_step>:
1652 Remove.
1653 <low_get_next_pcs>: Declare.
1654 * linux-low.cc (can_software_single_step): Remove.
1655 (linux_process_target::low_get_next_pcs): Define.
1656 (linux_process_target::supports_software_single_step): Remove.
1657
1658 Update the callers below.
1659
1660 (linux_process_target::handle_extended_wait)
1661 (linux_process_target::wait_1)
1662 (linux_process_target::install_software_single_step_breakpoints)
1663 (linux_process_target::single_step)
1664 (linux_process_target::thread_needs_step_over)
1665 (linux_process_target::proceed_one_lwp)
1666 (linux_process_target::supports_range_stepping)
1667
1668 * linux-x86-low.cc (the_low_target): Remove the op field.
1669 * linux-aarch64-low.cc (the_low_target): Ditto.
1670 * linux-bfin-low.cc (the_low_target): Ditto.
1671 * linux-cris-low.cc (the_low_target): Ditto.
1672 * linux-crisv32-low.cc (the_low_target): Ditto.
1673 * linux-m32r-low.cc (the_low_target): Ditto.
1674 * linux-m68k-low.cc (the_low_target): Ditto.
1675 * linux-mips-low.cc (the_low_target): Ditto.
1676 * linux-nios2-low.cc (the_low_target): Ditto.
1677 * linux-ppc-low.cc (the_low_target): Ditto.
1678 * linux-riscv-low.cc (the_low_target): Ditto.
1679 * linux-s390-low.cc (the_low_target): Ditto.
1680 * linux-sh-low.cc (the_low_target): Ditto.
1681 * linux-sparc-low.cc (the_low_target): Ditto.
1682 * linux-tic6x-low.cc (the_low_target): Ditto.
1683 * linux-tile-low.cc (the_low_target): Ditto.
1684 * linux-xtensa-low.cc (the_low_target): Ditto.
1685 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1686 <supports_software_single_step>: Declare.
1687 (arm_target::supports_software_single_step): Define.
1688 (arm_gdbserver_get_next_pcs): Turn into...
1689 (arm_target::low_get_next_pcs): ...this.
1690 (the_low_target): Remove the op field.
1691
3ca4edb6
TBA
16922020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1693
1694 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1695 the concrete linux target define it by overriding the op
1696 in process_stratum_target.
1697
1698 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1699 Remove.
1700 * linux-low.h (struct linux_target_ops): Remove the op.
1701 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1702 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1703 Declare.
1704 (x86_sw_breakpoint_from_kind): Turn into...
1705 (x86_target::sw_breakpoint_from_kind): ...this.
1706 (the_low_target): Remove the op field.
1707 * linux-aarch64-low.cc (class aarch64_target)
1708 <sw_breakpoint_from_kind>: Declare.
1709 (aarch64_sw_breakpoint_from_kind): Turn into...
1710 (aarch64_target::sw_breakpoint_from_kind): ...this.
1711 (the_low_target): Remove the op field.
1712 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1713 Declare.
1714 (arm_target::sw_breakpoint_from_kind): Define.
1715 (the_low_target): Remove the op field.
1716 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1717 Declare.
1718 (bfin_sw_breakpoint_from_kind): Turn into...
1719 (bfin_target::sw_breakpoint_from_kind): ...this.
1720 (the_low_target): Remove the op field.
1721 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1722 Declare.
1723 (cris_sw_breakpoint_from_kind): Turn into...
1724 (cris_target::sw_breakpoint_from_kind): ...this.
1725 (the_low_target): Remove the op field.
1726 * linux-crisv32-low.cc (class crisv32_target)
1727 <sw_breakpoint_from_kind>: Declare.
1728 (cris_sw_breakpoint_from_kind): Turn into...
1729 (crisv32_target::sw_breakpoint_from_kind): ...this.
1730 (the_low_target): Remove the op field.
1731 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1732 Declare.
1733 (ia64_target::sw_breakpoint_from_kind): Define.
1734 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1735 Declare.
1736 (m32r_sw_breakpoint_from_kind): Turn into...
1737 (m32r_target::sw_breakpoint_from_kind): ...this.
1738 (the_low_target): Remove the op field.
1739 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1740 Declare.
1741 (m68k_sw_breakpoint_from_kind): Turn into...
1742 (m68k_target::sw_breakpoint_from_kind): ...this.
1743 (the_low_target): Remove the op field.
1744 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1745 Declare.
1746 (mips_sw_breakpoint_from_kind): Turn into...
1747 (mips_target::sw_breakpoint_from_kind): ...this.
1748 (the_low_target): Remove the op field.
1749 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1750 Declare.
1751 (nios2_sw_breakpoint_from_kind): Turn into...
1752 (nios2_target::sw_breakpoint_from_kind): ...this.
1753 (the_low_target): Remove the op field.
1754 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1755 Declare.
1756 (ppc_sw_breakpoint_from_kind): Turn into...
1757 (ppc_target::sw_breakpoint_from_kind): ...this.
1758 (the_low_target): Remove the op field.
1759 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1760 Declare.
1761 (riscv_sw_breakpoint_from_kind): Turn into...
1762 (riscv_target::sw_breakpoint_from_kind): ...this.
1763 (the_low_target): Remove the op field.
1764 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1765 Declare.
1766 (s390_sw_breakpoint_from_kind): Turn into...
1767 (s390_target::sw_breakpoint_from_kind): ...this.
1768 (the_low_target): Remove the op field.
1769 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1770 Declare.
1771 (sh_sw_breakpoint_from_kind): Turn into...
1772 (sh_target::sw_breakpoint_from_kind): ...this.
1773 (the_low_target): Remove the op field.
1774 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1775 Declare.
1776 (sparc_sw_breakpoint_from_kind): Turn into...
1777 (sparc_target::sw_breakpoint_from_kind): ...this.
1778 (the_low_target): Remove the op field.
1779 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1780 Declare.
1781 (tic6x_sw_breakpoint_from_kind): Turn into...
1782 (tic6x_target::sw_breakpoint_from_kind): ...this.
1783 (the_low_target): Remove the op field.
1784 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1785 Declare.
1786 (tile_sw_breakpoint_from_kind): Turn into...
1787 (tile_target::sw_breakpoint_from_kind): ...this.
1788 (the_low_target): Remove the op field.
1789 * linux-xtensa-low.cc (class xtensa_target)
1790 <sw_breakpoint_from_kind>: Declare.
1791 (xtensa_sw_breakpoint_from_kind): Turn into...
1792 (xtensa_target::sw_breakpoint_from_kind): ...this.
1793 (the_low_target): Remove the op field.
1794
06250e4e
TBA
17952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1796
1797 Remove the 'breakpoint_kind_from_pc' and
1798 'breakpoint_kind_from_current_state' linux target ops, and let the
1799 concrete linux target define them by overriding the ops of
1800 process_stratum_target.
1801
1802 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1803 Remove.
1804 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1805 * linux-low.h (struct linux_target_ops): Remove ops.
1806 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1807 <breakpoint_kind_from_current_state>: Remove.
1808 * linux-x86-low.cc (the_low_target): Remove the op fields.
1809 * linux-bfin-low.cc (the_low_target): Ditto.
1810 * linux-cris-low.cc (the_low_target): Ditto.
1811 * linux-crisv32-low.cc (the_low_target): Ditto.
1812 * linux-m32r-low.cc (the_low_target): Ditto.
1813 * linux-m68k-low.cc (the_low_target): Ditto.
1814 * linux-mips-low.cc (the_low_target): Ditto.
1815 * linux-nios2-low.cc (the_low_target): Ditto.
1816 * linux-ppc-low.cc (the_low_target): Ditto.
1817 * linux-s390-low.cc (the_low_target): Ditto.
1818 * linux-sh-low.cc (the_low_target): Ditto.
1819 * linux-sparc-low.cc (the_low_target): Ditto.
1820 * linux-tic6x-low.cc (the_low_target): Ditto.
1821 * linux-tile-low.cc (the_low_target): Ditto.
1822 * linux-xtensa-low.cc (the_low_target): Ditto.
1823 * linux-aarch64-low.cc (class aarch64_target)
1824 <breakpoint_kind_from_pc>
1825 <breakpoint_kind_from_current_state>: Declare.
1826 (aarch64_breakpoint_kind_from_pc): Turn into...
1827 (aarch64_target::breakpoint_kind_from_pc): ...this.
1828 (aarch64_breakpoint_kind_from_current_state): Turn into...
1829 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1830 (the_low_target): Remove the op fields.
1831 * linux-arm-low.cc (class arm_target):
1832 <breakpoint_kind_from_pc>
1833 <breakpoint_kind_from_current_state>: Declare.
1834 (arm_target::breakpoint_kind_from_pc): Define.
1835 (arm_target::breakpoint_kind_from_current_state): Define.
1836 (the_low_target): Remove the op fields.
1837 * linux-riscv-low.cc (class riscv_target):
1838 <breakpoint_kind_from_pc>: Declare.
1839 (riscv_breakpoint_kind_from_pc): Turn into...
1840 (riscv_target::breakpoint_kind_from_pc): ...this.
1841 (the_low_target): Remove the op fields.
1842
bf9ae9d8
TBA
18432020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1844
1845 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1846 of linux_process_target.
1847
1848 * linux-low.h (struct linux_target_ops): Remove the ops.
1849 (class linux_process_target) <low_supports_breakpoints>
1850 <low_get_pc>
1851 <low_set_pc>: Declare.
1852 * linux-low.cc (supports_breakpoints): Turn into...
1853 (linux_process_target::low_supports_breakpoints): ...this.
1854 (linux_process_target::low_get_pc): Define.
1855 (linux_process_target::low_set_pc): Define.
1856
1857 Update the callers below.
1858
1859 (linux_process_target::get_pc)
1860 (linux_process_target::save_stop_reason)
1861 (linux_process_target::maybe_move_out_of_jump_pad)
1862 (linux_process_target::wait_1)
1863 (linux_process_target::resume_one_lwp_throw)
1864 (linux_process_target::resume)
1865 (linux_process_target::proceed_all_lwps)
1866 (linux_process_target::read_pc)
1867 (linux_process_target::write_pc)
1868
1869 * linux-x86-low.cc (class linux_process_target)
1870 <low_supports_breakpoints>
1871 <low_get_pc>
1872 <low_set_pc>: Declare.
1873 (x86_target::low_supports_breakpoints): Define.
1874 (x86_get_pc): Turn into...
1875 (x86_target::low_get_pc): ...this.
1876 (x86_set_pc): Turn into...
1877 (x86_target::low_set_pc): ...this.
1878 (the_low_target): Remove the op fields.
1879 * linux-arm-low.cc (class arm_target)
1880 <low_supports_breakpoints>
1881 <low_get_pc>
1882 <low_set_pc>: Declare.
1883 (arm_target::low_supports_breakpoints)
1884 (arm_target::low_get_pc)
1885 (arm_target::low_set_pc): Define.
1886 (the_low_target): Remove the op fields.
1887 * linux-bfin-low.cc (class bfin_target)
1888 <low_supports_breakpoints>
1889 <low_get_pc>
1890 <low_set_pc>: Declare.
1891 (bfin_target::low_supports_breakpoints)
1892 (bfin_target::low_get_pc)
1893 (bfin_target::low_set_pc): Define.
1894 (the_low_target): Remove the op fields.
1895 * linux-cris-low.cc (class cris_target)
1896 <low_supports_breakpoints>
1897 <low_get_pc>
1898 <low_set_pc>: Declare.
1899 (cris_target::low_supports_breakpoints)
1900 (cris_target::low_get_pc)
1901 (cris_target::low_set_pc): Define.
1902 (the_low_target): Remove the op fields.
1903 * linux-crisv32-low.cc (class crisv32_target)
1904 <low_supports_breakpoints>
1905 <low_get_pc>
1906 <low_set_pc>: Declare.
1907 (crisv32_target::low_supports_breakpoints)
1908 (crisv32_target::low_get_pc)
1909 (crisv32_target::low_set_pc): Define.
1910 (the_low_target): Remove the op fields.
1911 * linux-m32r-low.cc (class m32r_target)
1912 <low_supports_breakpoints>
1913 <low_get_pc>
1914 <low_set_pc>: Declare.
1915 (m32r_target::low_supports_breakpoints)
1916 (m32r_target::low_get_pc)
1917 (m32r_target::low_set_pc): Define.
1918 (the_low_target): Remove the op fields.
1919 * linux-m68k-low.cc (class m68k_target)
1920 <low_supports_breakpoints>
1921 <low_get_pc>
1922 <low_set_pc>: Declare.
1923 (m68k_target::low_supports_breakpoints)
1924 (m68k_target::low_get_pc)
1925 (m68k_target::low_set_pc): Define.
1926 (the_low_target): Remove the op fields.
1927 * linux-nios2-low.cc (class nios2_target)
1928 <low_supports_breakpoints>
1929 <low_get_pc>
1930 <low_set_pc>: Declare.
1931 (nios2_target::low_supports_breakpoints)
1932 (nios2_target::low_get_pc)
1933 (nios2_target::low_set_pc): Define.
1934 (the_low_target): Remove the op fields.
1935 * linux-sh-low.cc (class sh_target)
1936 <low_supports_breakpoints>
1937 <low_get_pc>
1938 <low_set_pc>: Declare.
1939 (sh_target::low_supports_breakpoints)
1940 (sh_target::low_get_pc)
1941 (sh_target::low_set_pc): Define.
1942 (the_low_target): Remove the op fields.
1943 * linux-xtensa-low.cc (class xtensa_target)
1944 <low_supports_breakpoints>
1945 <low_get_pc>
1946 <low_set_pc>: Declare.
1947 (xtensa_target::low_supports_breakpoints)
1948 (xtensa_target::low_get_pc)
1949 (xtensa_target::low_set_pc): Define.
1950 (the_low_target): Remove the op fields.
1951 * linux-sparc-low.cc (class sparc_target)
1952 <low_supports_breakpoints>
1953 <low_get_pc>: Declare.
1954 (sparc_target::low_supports_breakpoints)
1955 (sparc_target::low_get_pc): Define.
1956 (the_low_target): Remove the op fields.
1957 * linux-tile-low.cc (class tile_target)
1958 <low_supports_breakpoints>
1959 <low_get_pc>
1960 <low_set_pc>: Declare.
1961 (tile_target::low_supports_breakpoints)
1962 (tile_target::low_get_pc)
1963 (tile_target::low_set_pc): Define.
1964 (the_low_target): Remove the op fields.
1965 * linux-aarch64-low.cc (class aarch64_target)
1966 <low_supports_breakpoints>
1967 <low_get_pc>
1968 <low_set_pc>: Declare.
1969 (aarch64_target::low_supports_breakpoints): Define.
1970 (aarch64_get_pc): Turn into...
1971 (aarch64_target::low_get_pc): ...this.
1972 (aarch64_set_pc): Turn into...
1973 (aarch64_target::low_set_pc): ...this.
1974 (the_low_target): Remove the op fields.
1975 * linux-mips-low.cc (class mips_target)
1976 <low_supports_breakpoints>
1977 <low_get_pc>
1978 <low_set_pc>: Declare.
1979 (mips_target::low_supports_breakpoints): Define.
1980 (mips_get_pc): Turn into...
1981 (mips_target::low_get_pc): ...this.
1982 (mips_set_pc): Turn into...
1983 (mips_target::low_set_pc): ...this.
1984 (the_low_target): Remove the op fields.
1985 * linux-ppc-low.cc (class ppc_target)
1986 <low_supports_breakpoints>
1987 <low_get_pc>
1988 <low_set_pc>: Declare.
1989 (ppc_target::low_supports_breakpoints): Define.
1990 (ppc_get_pc): Turn into...
1991 (ppc_target::low_get_pc): ...this.
1992 (ppc_set_pc): Turn into...
1993 (ppc_target::low_set_pc): ...this.
1994 (the_low_target): Remove the op fields.
1995 * linux-riscv-low.cc (class riscv_target)
1996 <low_supports_breakpoints>
1997 <low_get_pc>
1998 <low_set_pc>: Declare.
1999 (riscv_target::low_supports_breakpoints): Define.
2000 (riscv_get_pc): Turn into...
2001 (riscv_target::low_get_pc): ...this.
2002 (riscv_set_pc): Turn into...
2003 (riscv_target::low_set_pc): ...this.
2004 (the_low_target): Remove the op fields.
2005 * linux-s390-low.cc (class s390_target)
2006 <low_supports_breakpoints>
2007 <low_get_pc>
2008 <low_set_pc>: Declare.
2009 (s390_target::low_supports_breakpoints): Define.
2010 (s390_get_pc): Turn into...
2011 (s390_target::low_get_pc): ...this.
2012 (s390_set_pc): Turn into...
2013 (s390_target::low_set_pc): ...this.
2014 (the_low_target): Remove the op fields.
2015 * linux-tic6x-low.cc (class tic6x_target)
2016 <low_supports_breakpoints>
2017 <low_get_pc>
2018 <low_set_pc>: Declare.
2019 (tic6x_target::low_supports_breakpoints): Define.
2020 (tic6x_get_pc): Turn into...
2021 (tic6x_target::low_get_pc): ...this.
2022 (tic6x_set_pc): Turn into...
2023 (tic6x_target::low_set_pc): ...this.
2024 (the_low_target): Remove the op fields.
2025
df95181f
TBA
20262020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2027
2028 Turn some more static methods in linux-low into private methods
2029 of linux_process_target.
2030
2031 * linux-low.cc (get_pc): Turn into...
2032 (linux_process_target::get_pc): ...this.
2033 (save_stop_reason): Turn into...
2034 (linux_process_target::save_stop_reason): ...this.
2035 (thread_still_has_status_pending_p): Turn into...
2036 (linux_process_target::thread_still_has_status_pending): ...this.
2037 (status_pending_p_callback): Turn into...
2038 (linux_process_target::status_pending_p_callback): ...this.
2039 (resume_stopped_resumed_lwps): Turn into...
2040 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2041 (install_software_single_step_breakpoints): Turn into...
2042 (linux_process_target::install_software_single_step_breakpoints):
2043 ...this.
2044 (single_step): Turn into...
2045 (linux_process_target::single_step): ...this.
2046 (linux_resume_one_lwp_throw): Turn into...
2047 (linux_process_target::resume_one_lwp_throw): ...this.
2048 (linux_resume_one_lwp): Turn into...
2049 (linux_process_target::resume_one_lwp): ...this.
2050 (resume_status_pending_p): Turn into...
2051 (linux_process_target::resume_status_pending): ...this.
2052 (need_step_over_p): Turn into...
2053 (linux_process_target::thread_needs_step_over): ...this.
2054 (linux_resume_one_thread): Turn into...
2055 (linux_process_target::resume_one_thread): ...this.
2056 (proceed_one_lwp): Turn into...
2057 (linux_process_target::proceed_one_lwp): ...this.
2058 (unsuspend_and_proceed_one_lwp): Turn into...
2059 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2060
2061 Update the calls/references to the above functions below.
2062
2063 (linux_process_target::handle_extended_wait)
2064 (linux_process_target::filter_event)
2065 (linux_process_target::wait_for_event_filtered)
2066 (linux_process_target::wait_1)
2067 (linux_process_target::move_out_of_jump_pad)
2068 (linux_process_target::start_step_over)
2069 (linux_process_target::resume)
2070 (linux_process_target::proceed_all_lwps)
2071 (regsets_store_inferior_registers)
2072 (linux_process_target::store_register)
2073
2074 * linux-low.h (class linux_process_target)
2075 <get_pc>
2076 <save_stop_reason>
2077 <thread_still_has_status_pending>
2078 <status_pending_p_callback>
2079 <resume_stopped_resumed_lwps>
2080 <install_software_single_step_breakpoints>
2081 <single_step>
2082 <resume_one_lwp_throw>
2083 <resume_one_lwp>
2084 <resume_status_pending>
2085 <thread_needs_step_over>
2086 <resume_one_thread>
2087 <proceed_one_lwp>
2088 <unsuspend_and_proceed_one_lwp>: Declare.
2089
bd70b1f2
TBA
20902020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2091
2092 Turn the 'fetch_register' linux target op into a method of
2093 linux_process_target.
2094
2095 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2096 (class linux_process_target) <low_fetch_register>: Declare.
2097 * linux-x86-low.cc (the_low_target)
2098 * linux-aarch64-low.cc (the_low_target)
2099 * linux-arm-low.cc (the_low_target)
2100 * linux-bfin-low.cc (the_low_target)
2101 * linux-cris-low.cc (the_low_target)
2102 * linux-crisv32-low.cc (the_low_target)
2103 * linux-m32r-low.cc (the_low_target)
2104 * linux-m68k-low.cc (the_low_target)
2105 * linux-nios2-low.cc (the_low_target)
2106 * linux-ppc-low.cc (the_low_target)
2107 * linux-s390-low.cc (the_low_target)
2108 * linux-sh-low.cc (the_low_target)
2109 * linux-sparc-low.cc (the_low_target)
2110 * linux-tic6x-low.cc (the_low_target)
2111 * linux-tile-low.cc (the_low_target)
2112 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2113 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2114 Declare.
2115 (ia64_fetch_register): Turn into...
2116 (ia64_target::low_fetch_register): ...this.
2117 (the_low_target): Remove the op field.
2118 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2119 Declare.
2120 (mips_fetch_register): Turn into...
2121 (mips_target::low_fetch_register): ...this.
2122 (the_low_target): Remove the op field.
2123 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2124 Declare.
2125 (riscv_fetch_register): Turn into...
2126 (riscv_target::low_fetch_register): ...this.
2127 (the_low_target): Remove the op field.
2128
2129 Update the callers below.
2130
2131 * linux-low.cc (linux_process_target::fetch_registers)
2132 (linux_process_target::low_fetch_register)
2133
daca57a7
TBA
21342020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2135
2136 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2137 linux target ops into methods of linux_process_target.
2138
2139 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2140 (class linux_process_target) <fetch_register>
2141 <store_register>
2142 <usr_fetch_inferior_registers>
2143 <usr_store_inferior_registers>
2144 <low_cannot_fetch_register>
2145 <low_cannot_fetch_register> Declare.
2146 * linux-low.cc (fetch_register): Turn into...
2147 (linux_process_target::fetch_register): ...this.
2148 (store_register): Turn into ...
2149 (linux_process_target::store_register): ...this.
2150 (usr_fetch_inferior_registers): Turn into...
2151 (linux_process_target::usr_fetch_inferior_registers): ...this.
2152 (usr_store_inferior_registers): Turn into...
2153 (linux_process_target::usr_store_inferior_registers): ...this.
2154 * linux-x86-low.cc (class x86_target)
2155 <low_cannot_fetch_register>
2156 <low_cannot_store_register>: Declare.
2157 (x86_cannot_store_register): Turn into...
2158 (x86_target::low_cannot_store_register): ...this.
2159 (x86_cannot_fetch_register): Turn into...
2160 (x86_target::low_cannot_fetch_register): ...this.
2161 (the_low_target): Remove the target op fields.
2162 * linux-aarch64-low.cc (class aarch64_target)
2163 <low_cannot_fetch_register>
2164 <low_cannot_store_register>: Declare.
2165 (aarch64_target::low_cannot_fetch_register)
2166 (aarch64_target::low_cannot_store_register): Define.
2167 (the_low_target): Remove the op fields.
2168 * linux-arm-low.cc (class arm_target)
2169 <low_cannot_fetch_register>
2170 <low_cannot_store_register>: Declare.
2171 (arm_cannot_fetch_register): Turn into...
2172 (arm_target::low_cannot_fetch_register): ...this.
2173 (arm_cannot_store_register): Turn into...
2174 (arm_target::low_cannot_store_register): ...this.
2175 (the_low_target): Remove the op fields.
2176 * linux-bfin-low.cc (class bfin_target)
2177 <low_cannot_fetch_register>
2178 <low_cannot_store_register>: Declare.
2179 (bfin_cannot_fetch_register): Turn into...
2180 (bfin_target::low_cannot_fetch_register): ...this.
2181 (bfin_cannot_store_register): Turn into...
2182 (bfin_target::low_cannot_store_register): ...this.
2183 (the_low_target): Remove the op fields.
2184 * linux-cris-low.cc (class cris_target)
2185 <low_cannot_fetch_register>
2186 <low_cannot_store_register>: Declare.
2187 (cris_cannot_fetch_register): Turn into...
2188 (cris_target::low_cannot_fetch_register): ...this.
2189 (cris_cannot_store_register): Turn into...
2190 (cris_target::low_cannot_store_register): ...this.
2191 (the_low_target): Remove the op fields.
2192 * linux-crisv32-low.cc (class crisv32_target)
2193 <low_cannot_fetch_register>
2194 <low_cannot_store_register>: Declare.
2195 (crisv32_target::low_cannot_fetch_register)
2196 (crisv32_target::low_cannot_store_register): Define.
2197 (the_low_target): Remove the op fields.
2198 * linux-ia64-low.cc (class ia64_target)
2199 <low_cannot_fetch_register>
2200 <low_cannot_store_register>: Declare.
2201 (ia64_cannot_fetch_register): Turn into...
2202 (ia64_target::low_cannot_fetch_register): ...this.
2203 (ia64_cannot_store_register): Turn into...
2204 (ia64_target::low_cannot_store_register): ...this.
2205 (the_low_target): Remove the op fields.
2206 * linux-m32r-low.cc (class m32r_target)
2207 <low_cannot_fetch_register>
2208 <low_cannot_store_register>: Declare.
2209 (m32r_cannot_fetch_register): Turn into...
2210 (m32r_target::low_cannot_fetch_register): ...this.
2211 (m32r_cannot_store_register): Turn into...
2212 (m32r_target::low_cannot_store_register): ...this.
2213 (the_low_target): Remove the op fields.
2214 * linux-m68k-low.cc (class m68k_target)
2215 <low_cannot_fetch_register>
2216 <low_cannot_store_register>: Declare.
2217 (m68k_cannot_fetch_register): Turn into...
2218 (m68k_target::low_cannot_fetch_register): ...this.
2219 (m68k_cannot_store_register): Turn into...
2220 (m68k_target::low_cannot_store_register): ...this.
2221 (the_low_target): Remove the op fields.
2222 * linux-mips-low.cc (class mips_target)
2223 <low_cannot_fetch_register>
2224 <low_cannot_store_register>: Declare.
2225 (mips_cannot_fetch_register): Turn into...
2226 (mips_target::low_cannot_fetch_register): ...this.
2227 (mips_cannot_store_register): Turn into...
2228 (mips_target::low_cannot_store_register): ...this.
2229 (get_usrregs_info): Inline at the call sites in
2230 low_cannot_fetch_register and low_cannot_store_register,
2231 and remove.
2232 (the_low_target): Remove the op fields.
2233 * linux-nios2-low.cc (class nios2_target)
2234 <low_cannot_fetch_register>
2235 <low_cannot_store_register>: Declare.
2236 (nios2_cannot_fetch_register): Turn into...
2237 (nios2_target::low_cannot_fetch_register): ...this.
2238 (nios2_cannot_store_register): Turn into...
2239 (nios2_target::low_cannot_store_register): ...this.
2240 (the_low_target): Remove the op fields.
2241 * linux-ppc-low.cc (class ppc_target)
2242 <low_cannot_fetch_register>
2243 <low_cannot_store_register>: Declare.
2244 (ppc_cannot_fetch_register): Turn into...
2245 (ppc_target::low_cannot_fetch_register): ...this.
2246 (ppc_cannot_store_register): Turn into...
2247 (ppc_target::low_cannot_store_register): ...this.
2248 (the_low_target): Remove the op fields.
2249 * linux-riscv-low.cc (class riscv_target)
2250 <low_cannot_fetch_register>
2251 <low_cannot_store_register>: Declare.
2252 (riscv_target::low_cannot_fetch_register)
2253 (riscv_target::low_cannot_store_register): Define.
2254 (the_low_target): Remove the op fields.
2255 * linux-s390-low.cc (class s390_target)
2256 <low_cannot_fetch_register>
2257 <low_cannot_store_register>: Declare.
2258 (s390_cannot_fetch_register): Turn into...
2259 (s390_target::low_cannot_fetch_register): ...this.
2260 (s390_cannot_store_register): Turn into...
2261 (s390_target::low_cannot_store_register): ...this.
2262 (the_low_target): Remove the op fields.
2263 * linux-sh-low.cc (class sh_target)
2264 <low_cannot_fetch_register>
2265 <low_cannot_store_register>: Declare.
2266 (sh_cannot_fetch_register): Turn into...
2267 (sh_target::low_cannot_fetch_register): ...this.
2268 (sh_cannot_store_register): Turn into...
2269 (sh_target::low_cannot_store_register): ...this.
2270 (the_low_target): Remove the op fields.
2271 * linux-sparc-low.cc (class sparc_target)
2272 <low_cannot_fetch_register>
2273 <low_cannot_store_register>: Declare.
2274 (sparc_cannot_fetch_register): Turn into...
2275 (sparc_target::low_cannot_fetch_register): ...this.
2276 (sparc_cannot_store_register): Turn into...
2277 (sparc_target::low_cannot_store_register): ...this.
2278 (the_low_target): Remove the op fields.
2279 * linux-tic6x-low.cc (class tic6x_target)
2280 <low_cannot_fetch_register>
2281 <low_cannot_store_register>: Declare.
2282 (tic6x_cannot_fetch_register): Turn into...
2283 (tic6x_target::low_cannot_fetch_register): ...this.
2284 (tic6x_cannot_store_register): Turn into...
2285 (tic6x_target::low_cannot_store_register): ...this.
2286 (the_low_target): Remove the op fields.
2287 * linux-tile-low.cc (class tile_target)
2288 <low_cannot_fetch_register>
2289 <low_cannot_store_register>: Declare.
2290 (tile_cannot_fetch_register): Turn into...
2291 (tile_target::low_cannot_fetch_register): ...this.
2292 (tile_cannot_store_register): Turn into...
2293 (tile_target::low_cannot_store_register): ...this.
2294 (the_low_target): Remove the op fields.
2295 * linux-xtensa-low.cc (class xtensa_target)
2296 <low_cannot_fetch_register>
2297 <low_cannot_store_register>: Declare.
2298 (xtensa_target::low_cannot_fetch_register)
2299 (xtensa_target::low_cannot_store_register): Define.
2300 (the_low_target): Remove the op fields.
2301
aa8d21c9
TBA
23022020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2303
2304 Turn the 'regs_info' linux target op into a method of
2305 linux_process_target.
2306
2307 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2308 (class linux_process_target) <get_regs_info>: Define.
2309
2310 Update the callers below.
2311
2312 * linux-low.cc (linux_process_target::fetch_registers)
2313 (linux_process_target::store_registers)
2314 * proc-service.cc (gregset_info)
2315
2316 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2317 (x86_linux_regs_info): Turn into ...
2318 (x86_target::get_regs_info): ...this.
2319 (the_low_target): Remove the op field.
2320 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2321 Declare.
2322 (aarch64_regs_info): Turn into ...
2323 (aarch64_target::get_regs_info): ...this.
2324 (the_low_target): Remove the op field.
2325 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2326 (arm_regs_info): Turn into ...
2327 (arm_target::get_regs_info): ...this.
2328 (the_low_target): Remove the op field.
2329 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2330 (bfin_regs_info): Turn into ...
2331 (bfin_target::get_regs_info): ...this.
2332 (the_low_target): Remove the op field.
2333 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2334 (cris_regs_info): Turn into ...
2335 (cris_target::get_regs_info): ...this.
2336 (the_low_target): Remove the op field.
2337 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2338 Declare.
2339 (crisv32_regs_info): Turn into ...
2340 (crisv32_target::get_regs_info): ...this.
2341 (the_low_target): Remove the op field.
2342 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2343 (ia64_regs_info): Turn into ...
2344 (ia64_target::get_regs_info): ...this.
2345 (the_low_target): Remove the op field.
2346 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2347 (m32r_regs_info): Turn into ...
2348 (m32r_target::get_regs_info): ...this.
2349 (the_low_target): Remove the op field.
2350 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2351 (m68k_regs_info): Turn into ...
2352 (m68k_target::get_regs_info): ...this.
2353 (the_low_target): Remove the op field.
2354 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2355 (mips_regs_info): Turn into ...
2356 (mips_target::get_regs_info): ...this.
2357 (the_low_target): Remove the op field.
2358 (get_usrregs_info): Update the call to the op.
2359 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2360 (nios2_regs_info): Turn into ...
2361 (nios2_target::get_regs_info): ...this.
2362 (the_low_target): Remove the op field.
2363 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2364 (ppc_regs_info): Turn into ...
2365 (ppc_target::get_regs_info): ...this.
2366 (the_low_target): Remove the op field.
2367 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2368 (riscv_regs_info): Turn into ...
2369 (riscv_target::get_regs_info): ...this.
2370 (the_low_target): Remove the op field.
2371 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2372 (s390_regs_info): Turn into ...
2373 (s390_target::get_regs_info): ...this.
2374 (the_low_target): Remove the op field.
2375 (s390_collect_ptrace_register)
2376 (s390_supply_ptrace_register)
2377 (s390_fill_gregset): Update the call to the op.
2378 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2379 (sh_regs_info): Turn into ...
2380 (sh_target::get_regs_info): ...this.
2381 (the_low_target): Remove the op field.
2382 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2383 (sparc_regs_info): Turn into ...
2384 (sparc_target::get_regs_info): ...this.
2385 (the_low_target): Remove the op field.
2386 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2387 (tic6x_regs_info): Turn into ...
2388 (tic6x_target::get_regs_info): ...this.
2389 (the_low_target): Remove the op field.
2390 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2391 (tile_regs_info): Turn into ...
2392 (tile_target::get_regs_info): ...this.
2393 (the_low_target): Remove the op field.
2394 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2395 Declare.
2396 (xtensa_regs_info): Turn into ...
2397 (xtensa_target::get_regs_info): ...this.
2398 (the_low_target): Remove the op field.
2399
797bcff5
TBA
24002020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2401
2402 Turn the 'arch_setup' linux target op into a method of
2403 linux_process_target.
2404
2405 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2406 (class linux_process_target) <arch_setup_thread>
2407 <low_arch_setup>: New declarations.
2408 * linux-low.cc (linux_arch_setup): Delete.
2409 (linux_arch_setup_thread): Turn into...
2410 (linux_process_target::arch_setup_thread): ... this.
2411
2412 Update the callers below.
2413
2414 (linux_process_target::handle_extended_wait)
2415 (linux_process_target::post_create_inferior)
2416 (linux_process_target::filter_event)
2417
2418 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2419 declaration.
2420 (x86_linux_update_xmltarget): Turn into...
2421 (x86_target::update_xmltarget): ...this.
2422 (x86_linux_process_qsupported): Update the call to
2423 x86_linux_update_xmltarget.
2424 (x86_arch_setup): Turn into ...
2425 (x86_target::low_arch_setup): ...this.
2426 (the_low_target): Remove the op field.
2427 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2428 declaration.
2429 (aarch64_arch_setup): Turn into ...
2430 (aarch64_target::low_arch_setup): ...this.
2431 (the_low_target): Remove the op field.
2432 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2433 declaration.
2434 (arm_arch_setup): Turn into ...
2435 (arm_target::low_arch_setup): ...this.
2436 (the_low_target): Remove the op field.
2437 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2438 declaration.
2439 (bfin_arch_setup): Turn into ...
2440 (bfin_target::low_arch_setup): ...this.
2441 (the_low_target): Remove the op field.
2442 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2443 declaration.
2444 (cris_arch_setup): Turn into ...
2445 (cris_target::low_arch_setup): ...this.
2446 (the_low_target): Remove the op field.
2447 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2448 declaration.
2449 (crisv32_arch_setup): Turn into ...
2450 (crisv32_target::low_arch_setup): ...this.
2451 (the_low_target): Remove the op field.
2452 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2453 declaration.
2454 (ia64_arch_setup): Turn into ...
2455 (ia64_target::low_arch_setup): ...this.
2456 (the_low_target): Remove the op field.
2457 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2458 declaration.
2459 (m32r_arch_setup): Turn into ...
2460 (m32r_target::low_arch_setup): ...this.
2461 (the_low_target): Remove the op field.
2462 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2463 declaration.
2464 (m68k_arch_setup): Turn into ...
2465 (m68k_target::low_arch_setup): ...this.
2466 (the_low_target): Remove the op field.
2467 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2468 declaration.
2469 (mips_arch_setup): Turn into ...
2470 (mips_target::low_arch_setup): ...this.
2471 (the_low_target): Remove the op field.
2472 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2473 declaration.
2474 (nios2_arch_setup): Turn into ...
2475 (nios2_target::low_arch_setup): ...this.
2476 (the_low_target): Remove the op field.
2477 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2478 declaration.
2479 (ppc_arch_setup): Turn into ...
2480 (ppc_target::low_arch_setup): ...this.
2481 (the_low_target): Remove the op field.
2482 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2483 declaration.
2484 (riscv_arch_setup): Turn into ...
2485 (riscv_target::low_arch_setup): ...this.
2486 (the_low_target): Remove the op field.
2487 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2488 declaration.
2489 (s390_arch_setup): Turn into ...
2490 (s390_target::low_arch_setup): ...this.
2491 (the_low_target): Remove the op field.
2492 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2493 declaration.
2494 (sh_arch_setup): Turn into ...
2495 (sh_target::low_arch_setup): ...this.
2496 (the_low_target): Remove the op field.
2497 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2498 declaration.
2499 (sparc_arch_setup): Turn into ...
2500 (sparc_target::low_arch_setup): ...this.
2501 (the_low_target): Remove the op field.
2502 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2503 declaration.
2504 (tic6x_arch_setup): Turn into ...
2505 (tic6x_target::low_arch_setup): ...this.
2506 (the_low_target): Remove the op field.
2507 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2508 declaration.
2509 (tile_arch_setup): Turn into ...
2510 (tile_target::low_arch_setup): ...this.
2511 (the_low_target): Remove the op field.
2512 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2513 declaration.
2514 (xtensa_arch_setup): Turn into ...
2515 (xtensa_target::low_arch_setup): ...this.
2516 (the_low_target): Remove the op field.
2517
ef0478f6
TBA
25182020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2519
2520 * linux-low.h (the_linux_target): New extern declaration.
2521 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2522 'the_target'.
2523 (the_linux_target): Remove.
2524 * linux-x86-low.cc (class x86_target): New class.
2525 (the_x86_target): New static object.
2526 (the_linux_target): Define as pointer to the_x86_target.
2527 * linux-aarch64-low.cc (class aarch64_target): New class.
2528 (the_aarch64_target): New static object.
2529 (the_linux_target): Define as pointer to the_aarch64_target.
2530 * linux-arm-low.cc (class arm_target): New class.
2531 (the_arm_target): New static object.
2532 (the_linux_target): Define as pointer to the_arm_target.
2533 * linux-bfin-low.cc (class bfin_target): New class.
2534 (the_bfin_target): New static object.
2535 (the_linux_target): Define as pointer to the_bfin_target.
2536 * linux-cris-low.cc (class cris_target): New class.
2537 (the_cris_target): New static object.
2538 (the_linux_target): Define as pointer to the_cris_target.
2539 * linux-crisv32-low.cc (class crisv32_target): New class.
2540 (the_crisv32_target): New static object.
2541 (the_linux_target): Define as pointer to the_crisv32_target.
2542 * linux-ia64-low.cc (class ia64_target): New class.
2543 (the_ia64_target): New static object.
2544 (the_linux_target): Define as pointer to the_ia64_target.
2545 * linux-m32r-low.cc (class m32r_target): New class.
2546 (the_m32r_target): New static object.
2547 (the_linux_target): Define as pointer to the_m32r_target.
2548 * linux-m68k-low.cc (class m68k_target): New class.
2549 (the_m68k_target): New static object.
2550 (the_linux_target): Define as pointer to the_m68k_target.
2551 * linux-mips-low.cc (class mips_target): New class.
2552 (the_mips_target): New static object.
2553 (the_linux_target): Define as pointer to the_mips_target.
2554 * linux-nios2-low.cc (class nios2_target): New class.
2555 (the_nios2_target): New static object.
2556 (the_linux_target): Define as pointer to the_nios2_target.
2557 * linux-ppc-low.cc (class ppc_target): New class.
2558 (the_ppc_target): New static object.
2559 (the_linux_target): Define as pointer to the_ppc_target.
2560 * linux-riscv-low.cc (class riscv_target): New class.
2561 (the_riscv_target): New static object.
2562 (the_linux_target): Define as pointer to the_riscv_target.
2563 * linux-s390-low.cc (class s390_target): New class.
2564 (the_s390_target): New static object.
2565 (the_linux_target): Define as pointer to the_s390_target.
2566 * linux-sh-low.cc (class sh_target): New class.
2567 (the_sh_target): New static object.
2568 (the_linux_target): Define as pointer to the_sh_target.
2569 * linux-sparc-low.cc (class sparc_target): New class.
2570 (the_sparc_target): New static object.
2571 (the_linux_target): Define as pointer to the_sparc_target.
2572 * linux-tic6x-low.cc (class tic6x_target): New class.
2573 (the_tic6x_target): New static object.
2574 (the_linux_target): Define as pointer to the_tic6x_target.
2575 * linux-tile-low.cc (class tile_target): New class.
2576 (the_tile_target): New static object.
2577 (the_linux_target): Define as pointer to the_tile_target.
2578 * linux-xtensa-low.cc (class xtensa_target): New class.
2579 (the_xtensa_target): New static object.
2580 (the_linux_target): Define as pointer to the_xtensa_target.
2581
d16f3f6c
TBA
25822020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2583
2584 Turn some static functions in linux-low.cc into private methods of
2585 linux_process_target.
2586
2587 * linux-low.cc (handle_extended_wait): Turn into ...
2588 (linux_process_target::handle_extended_wait): ...this. Call
2589 'mourn' on 'this' object instead of 'the_target'.
2590 (maybe_move_out_of_jump_pad): Turn into...
2591 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2592 (linux_low_filter_event): Turn into...
2593 (linux_process_target::filter_event): ...this.
2594 (linux_wait_for_event_filtered): Turn into...
2595 (linux_process_target::wait_for_event_filtered): ...this.
2596 (linux_wait_for_event): Turn into...
2597 (linux_process_target::wait_for_event): ...this.
2598 (linux_wait_1): Turn into...
2599 (linux_process_target::wait_1): ...this.
2600 (wait_for_sigstop): Turn into...
2601 (linux_process_target::wait_for_sigstop): ...this.
2602 (move_out_of_jump_pad_callback): Turn into...
2603 (linux_process_target::move_out_of_jump_pad): ...this.
2604 (stop_all_lwps): Turn into...
2605 (linux_process_target::stop_all_lwps): ...this.
2606 (start_step_over): Turn into...
2607 (linux_process_target::start_step_over): ...this.
2608 (complete_ongoing_step_over): Turn into...
2609 (linux_process_target::complete_ongoing_step_over): ...this.
2610 (proceed_all_lwps): Turn into...
2611 (linux_process_target::proceed_all_lwps): ...this.
2612 (unstop_all_lwps): Turn into...
2613 (linux_process_target::unstop_all_lwps): ...this.
2614
2615 * linux-low.h (class linux_process_target)
2616 <handle_extended_wait>
2617 <maybe_move_out_of_jump_pad>
2618 filter_event>
2619 <wait_for_event_filtered>
2620 <wait_for_event>
2621 <wait_1>
2622 <wait_for_sigstop>
2623 <move_out_of_jump_pad>
2624 <stop_all_lwps>
2625 <start_step_over>
2626 <complete_ongoing_step_over>
2627 <proceed_all_lwps>
2628 <unstop_all_lwps>: Declare.
2629
2630 Update the callers below.
2631
2632 * linux-low.cc (linux_process_target::attach): Update.
2633 (linux_process_target::stabilize_threads): Ditto.
2634 (linux_process_target::wait): Ditto.
2635
a5863204
TBA
26362020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2637
2638 * linux-low.h (struct linux_target_ops): Update the comment for
2639 'cannot_store_register' to return 0 or 1.
2640 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2641 of 2.
2642
c884cc46
SM
26432020-03-20 Simon Marchi <simon.marchi@efficios.com>
2644
2645 * config.in: Re-generate.
2646 * configure: Re-generate.
2647
5a82b8a1
KR
26482020-03-17 Kamil Rytarowski <n54@gmx.com>
2649
2650 * regcache.cc (find_register_by_number): Update.
2651 * tdesc.cc (init_target_desc): Likewise.
2652 * tdesc.h (target_desc::reg_defs): Likewise.
2653
4635ff97
TT
26542020-03-12 Tom Tromey <tom@tromey.com>
2655
2656 * configure: Rebuild.
2657 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2658 (WIN32APILIBS): New subst.
2659 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2660 gdbsupport files.
2661 (gdbsupport/%.o): Remove target.
2662 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2663 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2664 (WIN32APILIBS): New variable.
2665 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2666 (gdbreplay$(EXEEXT)): Likewise.
2667
9a665d62
TT
26682020-03-12 Tom Tromey <tom@tromey.com>
2669
2670 * config.in, configure: Rebuild.
2671 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2672 * acinclude.m4: Include gettext-sister.m4.
2673 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2674 variables.
2675 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2676 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2677
272cd5a3
SM
26782020-03-12 Simon Marchi <simon.marchi@efficios.com>
2679
2680 * acinclude.m4: Update path to selftest.m4.
2681
db6878ac
SM
26822020-03-12 Simon Marchi <simon.marchi@efficios.com>
2683
2684 * configure.ac: Don't source bfd/development.sh, move
2685 GDB_AC_COMMON higher.
2686 * configure: Re-generate.
2687
4d696a5c
SM
26882020-03-12 Simon Marchi <simon.marchi@efficios.com>
2689
2690 * configure: Re-generate.
2691
a0761e34
SM
26922020-03-11 Simon Marchi <simon.marchi@efficios.com>
2693
2694 * configure: Re-generate.
2695
20ea4a60
AB
26962020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * .dir-locals.el: New file.
2699
842806cb
TBA
27002020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2701
2702 * .gitattributes: New file.
2703
442131c1
AB
27042020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2705
2706 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2707 reply into an S reply.
2708 * server.cc (disable_packet_T): New global.
2709 (captured_main): Set new global when appropriate.
2710 * server.h (disable_packet_T): Declare.
2711
dda42c0b
TT
27122020-02-21 Tom Tromey <tom@tromey.com>
2713
2714 * Makefile.in (mostlyclean): New target.
2715
52405d85
TBA
27162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2717
2718 * target.h (struct process_stratum_target): Remove.
2719 (class process_target): Rename to ...
2720 (class process_stratum_target): ... this.
2721 * linux-low.h (class linux_process_target): Derive from
2722 'process_stratum_target'.
2723 * linux-low.cc (linux_target_ops): Remove.
2724 (initialize_low): Set the_target to the singleton instance of
2725 linux_process_target.
2726 * lynx-low.h (class lynx_process_target): Derive from
2727 'process_stratum_target'.
2728 * lynx-low.cc (lynx_target_ops): Remove.
2729 (initialize_low): Set the_target to the singleton instance of
2730 lynx_process_target.
2731 * nto-low.h (class nto_process_target): Derive from
2732 'process_stratum_target'.
2733 * nto-low.cc (nto_target_ops): Remove.
2734 (initialize_low): Set the_target to the singleton instance of
2735 nto_process_target.
2736 * win32-low.h (class win32_process_target): Derive from
2737 'process_stratum_target'.
2738 * win32-low.cc (win32_target_ops): Remove.
2739 (initialize_low): Set the_target to the singleton instance of
2740 win32_process_target.
2741
2742 Replace 'the_target->pt' with 'the_target' in the uses below.
2743
2744 * hostio.cc (hostio_error)
2745 (handle_setfs)
2746 (handle_open)
2747 (handle_unlink)
2748 (handle_readlink)
2749 * linux-aarch32-low.cc (arm_breakpoint_at)
2750 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2751 * linux-arm-low.cc (arm_sigreturn_next_pc)
2752 (arm_get_hwcap)
2753 (arm_get_syscall_trapinfo)
2754 * linux-cris-low.cc (cris_breakpoint_at)
2755 * linux-crisv32-low.cc (cris_breakpoint_at)
2756 * linux-low.cc (handle_extended_wait)
2757 (linux_wait_1)
2758 (linux_read_memory)
2759 (linux_process_target::breakpoint_kind_from_pc)
2760 (linux_get_auxv)
2761 * linux-m32r-low.cc (m32r_breakpoint_at)
2762 * linux-mips-low.cc (mips_breakpoint_at)
2763 * linux-nios2-low.cc (nios2_breakpoint_at)
2764 * linux-ppc-low.cc (ppc_breakpoint_at)
2765 * linux-s390-low.cc (s390_get_hwcap)
2766 * linux-sh-low.cc (sh_breakpoint_at)
2767 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2768 (sparc_store_gregset_from_stack)
2769 (sparc_breakpoint_at)
2770 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2771 * linux-tile-low.cc (tile_breakpoint_at)
2772 * linux-x86-low.cc (x86_breakpoint_at)
2773 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2774 * mem-break.cc (bp_size)
2775 (bp_opcode)
2776 (insert_memory_breakpoint)
2777 (set_raw_breakpoint_at)
2778 (delete_raw_breakpoint)
2779 (z_type_supported)
2780 (uninsert_raw_breakpoint)
2781 (reinsert_raw_breakpoint)
2782 (validate_inserted_breakpoint)
2783 * regcache.cc (regcache_read_pc)
2784 (regcache_write_pc)
2785 * remote-utils.cc (putpkt_binary_1)
2786 (input_interrupt)
2787 (getpkt)
2788 (prepare_resume_reply)
2789 * server.cc (handle_general_set)
2790 (handle_detach)
2791 (handle_qxfer_auxv)
2792 (handle_qxfer_exec_file)
2793 (handle_qxfer_libraries_svr4)
2794 (handle_qxfer_osdata)
2795 (handle_qxfer_siginfo)
2796 (handle_qxfer_fdpic)
2797 (handle_query)
2798 (resume)
2799 (handle_v_requests)
2800 (queue_stop_reply_callback)
2801 (captured_main)
2802 * target.cc (prepare_to_access_memory)
2803 (done_accessing_memory)
2804 (read_inferior_memory)
2805 (target_write_memory)
2806 (target_stop_and_wait)
2807 (target_wait)
2808 (target_mourn_inferior)
2809 (target_continue_no_signal)
2810 (target_continue)
2811 (target_supports_multi_process)
2812 (kill_inferior)
2813 * target.h
2814 (target_create_inferior)
2815 (target_post_create_inferior)
2816 (myattach)
2817 (target_supports_fork_events)
2818 (target_supports_vfork_events)
2819 (target_supports_exec_events)
2820 (target_handle_new_gdb_connection)
2821 (detach_inferior)
2822 (mythread_alive)
2823 (fetch_inferior_registers)
2824 (store_inferior_registers)
2825 (join_inferior)
2826 (target_supports_non_stop)
2827 (target_async)
2828 (target_process_qsupported)
2829 (target_supports_catch_syscall)
2830 (target_get_ipa_tdesc_idx)
2831 (target_supports_tracepoints)
2832 (target_supports_fast_tracepoints)
2833 (target_get_min_fast_tracepoint_insn_len)
2834 (target_thread_stopped)
2835 (target_pause_all)
2836 (target_unpause_all)
2837 (target_stabilize_threads)
2838 (target_install_fast_tracepoint_jump_pad)
2839 (target_emit_ops)
2840 (target_supports_disable_randomization)
2841 (target_supports_agent)
2842 (target_enable_btrace)
2843 (target_disable_btrace)
2844 (target_read_btrace)
2845 (target_read_btrace_conf)
2846 (target_supports_range_stepping)
2847 (target_supports_stopped_by_sw_breakpoint)
2848 (target_stopped_by_sw_breakpoint)
2849 (target_supports_stopped_by_hw_breakpoint)
2850 (target_supports_hardware_single_step)
2851 (target_stopped_by_hw_breakpoint)
2852 (target_breakpoint_kind_from_pc)
2853 (target_breakpoint_kind_from_current_state)
2854 (target_supports_software_single_step)
2855 (target_core_of_thread)
2856 (target_thread_name)
2857 (target_thread_handle)
2858 * win32-low.cc (do_initial_child_stuff)
2859
2860 Rename target op default definitions listed below.
2861
2862 * target.cc (process_target::post_create_inferior): Rename as ...
2863 (process_stratum_target::post_create_inferior): ... this.
2864 (process_target::prepare_to_access_memory): Rename as ...
2865 (process_stratum_target::prepare_to_access_memory): ... this.
2866 (process_target::done_accessing_memory): Rename as ...
2867 (process_stratum_target::done_accessing_memory): ... this.
2868 (process_target::look_up_symbols): Rename as ...
2869 (process_stratum_target::look_up_symbols): ... this.
2870 (process_target::supports_read_auxv): Rename as ...
2871 (process_stratum_target::supports_read_auxv): ... this.
2872 (process_target::read_auxv): Rename as ...
2873 (process_stratum_target::read_auxv): ... this.
2874 (process_target::supports_z_point_type): Rename as ...
2875 (process_stratum_target::supports_z_point_type): ... this.
2876 (process_target::insert_point): Rename as ...
2877 (process_stratum_target::insert_point): ... this.
2878 (process_target::remove_point): Rename as ...
2879 (process_stratum_target::remove_point): ... this.
2880 (process_target::stopped_by_sw_breakpoint): Rename as ...
2881 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2882 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2883 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2884 (process_target::stopped_by_hw_breakpoint): Rename as ...
2885 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2886 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2887 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2888 (process_target::supports_hardware_single_step): Rename as ...
2889 (process_stratum_target::supports_hardware_single_step): ... this.
2890 (process_target::stopped_by_watchpoint): Rename as ...
2891 (process_stratum_target::stopped_by_watchpoint): ... this.
2892 (process_target::stopped_data_address): Rename as ...
2893 (process_stratum_target::stopped_data_address): ... this.
2894 (process_target::supports_read_offsets): Rename as ...
2895 (process_stratum_target::supports_read_offsets): ... this.
2896 (process_target::read_offsets): Rename as ...
2897 (process_stratum_target::read_offsets): ... this.
2898 (process_target::supports_get_tls_address): Rename as ...
2899 (process_stratum_target::supports_get_tls_address): ... this.
2900 (process_target::get_tls_address): Rename as ...
2901 (process_stratum_target::get_tls_address): ... this.
2902 (process_target::hostio_last_error): Rename as ...
2903 (process_stratum_target::hostio_last_error): ... this.
2904 (process_target::supports_qxfer_osdata): Rename as ...
2905 (process_stratum_target::supports_qxfer_osdata): ... this.
2906 (process_target::qxfer_osdata): Rename as ...
2907 (process_stratum_target::qxfer_osdata): ... this.
2908 (process_target::supports_qxfer_siginfo): Rename as ...
2909 (process_stratum_target::supports_qxfer_siginfo): ... this.
2910 (process_target::qxfer_siginfo): Rename as ...
2911 (process_stratum_target::qxfer_siginfo): ... this.
2912 (process_target::supports_non_stop): Rename as ...
2913 (process_stratum_target::supports_non_stop): ... this.
2914 (process_target::async): Rename as ...
2915 (process_stratum_target::async): ... this.
2916 (process_target::start_non_stop): Rename as ...
2917 (process_stratum_target::start_non_stop): ... this.
2918 (process_target::supports_multi_process): Rename as ...
2919 (process_stratum_target::supports_multi_process): ... this.
2920 (process_target::supports_fork_events): Rename as ...
2921 (process_stratum_target::supports_fork_events): ... this.
2922 (process_target::supports_vfork_events): Rename as ...
2923 (process_stratum_target::supports_vfork_events): ... this.
2924 (process_target::supports_exec_events): Rename as ...
2925 (process_stratum_target::supports_exec_events): ... this.
2926 (process_target::handle_new_gdb_connection): Rename as ...
2927 (process_stratum_target::handle_new_gdb_connection): ... this.
2928 (process_target::handle_monitor_command): Rename as ...
2929 (process_stratum_target::handle_monitor_command): ... this.
2930 (process_target::core_of_thread): Rename as ...
2931 (process_stratum_target::core_of_thread): ... this.
2932 (process_target::supports_read_loadmap): Rename as ...
2933 (process_stratum_target::supports_read_loadmap): ... this.
2934 (process_target::read_loadmap): Rename as ...
2935 (process_stratum_target::read_loadmap): ... this.
2936 (process_target::process_qsupported): Rename as ...
2937 (process_stratum_target::process_qsupported): ... this.
2938 (process_target::supports_tracepoints): Rename as ...
2939 (process_stratum_target::supports_tracepoints): ... this.
2940 (process_target::read_pc): Rename as ...
2941 (process_stratum_target::read_pc): ... this.
2942 (process_target::write_pc): Rename as ...
2943 (process_stratum_target::write_pc): ... this.
2944 (process_target::supports_thread_stopped): Rename as ...
2945 (process_stratum_target::supports_thread_stopped): ... this.
2946 (process_target::thread_stopped): Rename as ...
2947 (process_stratum_target::thread_stopped): ... this.
2948 (process_target::supports_get_tib_address): Rename as ...
2949 (process_stratum_target::supports_get_tib_address): ... this.
2950 (process_target::get_tib_address): Rename as ...
2951 (process_stratum_target::get_tib_address): ... this.
2952 (process_target::pause_all): Rename as ...
2953 (process_stratum_target::pause_all): ... this.
2954 (process_target::unpause_all): Rename as ...
2955 (process_stratum_target::unpause_all): ... this.
2956 (process_target::stabilize_threads): Rename as ...
2957 (process_stratum_target::stabilize_threads): ... this.
2958 (process_target::supports_fast_tracepoints): Rename as ...
2959 (process_stratum_target::supports_fast_tracepoints): ... this.
2960 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2961 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2962 (process_target::emit_ops): Rename as ...
2963 (process_stratum_target::emit_ops): ... this.
2964 (process_target::supports_disable_randomization): Rename as ...
2965 (process_stratum_target::supports_disable_randomization): ... this.
2966 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2967 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2968 (process_target::qxfer_libraries_svr4): Rename as ...
2969 (process_stratum_target::qxfer_libraries_svr4): ... this.
2970 (process_target::supports_agent): Rename as ...
2971 (process_stratum_target::supports_agent): ... this.
2972 (process_target::enable_btrace): Rename as ...
2973 (process_stratum_target::enable_btrace): ... this.
2974 (process_target::disable_btrace): Rename as ...
2975 (process_stratum_target::disable_btrace): ... this.
2976 (process_target::read_btrace): Rename as ...
2977 (process_stratum_target::read_btrace): ... this.
2978 (process_target::read_btrace_conf): Rename as ...
2979 (process_stratum_target::read_btrace_conf): ... this.
2980 (process_target::supports_range_stepping): Rename as ...
2981 (process_stratum_target::supports_range_stepping): ... this.
2982 (process_target::supports_pid_to_exec_file): Rename as ...
2983 (process_stratum_target::supports_pid_to_exec_file): ... this.
2984 (process_target::pid_to_exec_file): Rename as ...
2985 (process_stratum_target::pid_to_exec_file): ... this.
2986 (process_target::supports_multifs): Rename as ...
2987 (process_stratum_target::supports_multifs): ... this.
2988 (process_target::multifs_open): Rename as ...
2989 (process_stratum_target::multifs_open): ... this.
2990 (process_target::multifs_unlink): Rename as ...
2991 (process_stratum_target::multifs_unlink): ... this.
2992 (process_target::multifs_readlink): Rename as ...
2993 (process_stratum_target::multifs_readlink): ... this.
2994 (process_target::breakpoint_kind_from_pc): Rename as ...
2995 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2996 (process_target::breakpoint_kind_from_current_state): Rename as ...
2997 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2998 (process_target::thread_name): Rename as ...
2999 (process_stratum_target::thread_name): ... this.
3000 (process_target::thread_handle): Rename as ...
3001 (process_stratum_target::thread_handle): ... this.
3002 (process_target::supports_software_single_step): Rename as ...
3003 (process_stratum_target::supports_software_single_step): ... this.
3004 (process_target::supports_catch_syscall): Rename as ...
3005 (process_stratum_target::supports_catch_syscall): ... this.
3006 (process_target::get_ipa_tdesc_idx): Rename as ...
3007 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3008
478f9adf
PA
30092020-02-20 Pedro Alves <palves@redhat.com>
3010
3011 * target.cc (set_target_ops): Simply copy the given target pointer
3012 instead of creating a copy of the pointed object.
3013
d633e831
TBA
30142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3015
3016 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3017 of process_target.
3018
3019 * target.h (struct process_stratum_target): Remove the target op.
3020 (class process_target): Add the target op.
3021 (target_get_ipa_tdesc_idx): Update the macro.
3022 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3023
3024 Update the derived classes and callers below.
3025
3026 * linux-low.cc (linux_target_ops): Update.
3027 (linux_get_ipa_tdesc_idx): Turn into ...
3028 (linux_process_target::get_ipa_tdesc_idx): ... this.
3029 * linux-low.h (class linux_process_target): Update.
3030 * lynx-low.cc (lynx_target_ops): Update.
3031 * nto-low.cc (nto_target_ops): Update.
3032 * win32-low.cc (win32_target_ops): Update.
3033
bc8d3ae4
TBA
30342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3035
3036 Turn process_stratum_target's supports_catch_syscall op into a
3037 method of process_target.
3038
3039 * target.h (struct process_stratum_target): Remove the target op.
3040 (class process_target): Add the target op.
3041 (target_supports_catch_syscall): Update the macro.
3042 * target.cc (process_target::supports_catch_syscall): Define.
3043
3044 Update the derived classes and callers below.
3045
3046 * linux-low.cc (linux_target_ops): Update.
3047 (linux_supports_catch_syscall): Turn into ...
3048 (linux_process_target::supports_catch_syscall): ... this.
3049 * linux-low.h (class linux_process_target): Update.
3050 * lynx-low.cc (lynx_target_ops): Update.
3051 * nto-low.cc (nto_target_ops): Update.
3052 * win32-low.cc (win32_target_ops): Update.
3053
5303a34f
TBA
30542020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3055
3056 Turn process_stratum_target's supports_software_single_step op
3057 into a method of process_target.
3058
3059 * target.h (struct process_stratum_target): Remove the target op.
3060 (class process_target): Add the target op.
3061 (target_supports_software_single_step): Update the macro.
3062 * target.cc (process_target::supports_software_single_step): Define.
3063
3064 Update the derived classes and callers below.
3065
3066 * linux-low.cc (linux_target_ops): Update.
3067 (linux_supports_software_single_step): Turn into ...
3068 (linux_process_target::supports_software_single_step): ... this.
3069 * linux-low.h (class linux_process_target): Update.
3070 * lynx-low.cc (lynx_target_ops): Update.
3071 * nto-low.cc (nto_target_ops): Update.
3072 * win32-low.cc (win32_target_ops): Update.
3073
7f63b89b
TBA
30742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3075
3076 Turn process_stratum_target's thread_name and thread_handle ops
3077 into methods of process_target.
3078
3079 * target.h (struct process_stratum_target): Remove the target ops.
3080 (class process_target): Add the target ops.
3081 (target_thread_name): Update the macro.
3082 (target_thread_handle): Update the macro.
3083 * target.cc (process_target::thread_name): Define.
3084 (process_target::thread_handle): Define.
3085
3086 Update the derived classes and callers below.
3087
3088 * linux-low.cc (linux_target_ops): Update.
3089 (linux_process_target::thread_name): Define.
3090 (linux_process_target::thread_handle): Define.
3091 * linux-low.h (class linux_process_target): Update.
3092 * lynx-low.cc (lynx_target_ops): Update.
3093 * nto-low.cc (nto_target_ops): Update.
3094 * win32-low.cc (win32_target_ops): Update.
3095
d367006f
TBA
30962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3097
3098 Turn process_stratum_target's breakpoint_kind_from_pc,
3099 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3100 ops into methods of process_target.
3101
3102 * target.h (struct process_stratum_target): Remove the target op.
3103 (class process_target): Add the target op.
3104 (target_breakpoint_kind_from_pc): Update the macro.
3105 (target_breakpoint_kind_from_current_state): Update the macro.
3106 (default_breakpoint_kind_from_pc): Remove declaration.
3107 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3108 (process_target::breakpoint_kind_from_pc): ... this.
3109 (process_target::breakpoint_kind_from_current_state): Define.
3110
3111 Update the derived classes and callers below.
3112
3113 * mem-break.cc (bp_size): Update.
3114 (bp_opcode): Update.
3115 * linux-low.cc (linux_target_ops): Update.
3116 (linux_wait_1): Update.
3117 (linux_breakpoint_kind_from_pc): Turn into ...
3118 (linux_process_target::breakpoint_kind_from_pc): ... this.
3119 (linux_sw_breakpoint_from_kind): Turn into ...
3120 (linux_process_target::sw_breakpoint_from_kind): ... this.
3121 (linux_breakpoint_kind_from_current_state): Turn into ...
3122 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3123 * linux-low.h (class linux_process_target): Update.
3124 * lynx-low.cc (lynx_target_ops): Update.
3125 (lynx_process_target::sw_breakpoint_from_kind): Define.
3126 * lynx-low.h (class lynx_process_target): Update.
3127 * nto-low.cc (nto_target_ops): Update.
3128 (nto_sw_breakpoint_from_kind): Turn into ...
3129 (nto_process_target::sw_breakpoint_from_kind): ... this.
3130 * nto-low.h (class nto_process_target): Update.
3131 * win32-low.cc (win32_target_ops): Update.
3132 (win32_sw_breakpoint_from_kind): Turn into ...
3133 (win32_process_target::sw_breakpoint_from_kind): ... this.
3134 * win32-low.h (class win32_process_target): Update.
3135
c9b7b804
TBA
31362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3137
3138 Turn process_stratum_target's multifs_open, multifs_readlink,
3139 multifs_unlink ops into methods of process_target.
3140
3141 * target.h (struct process_stratum_target): Remove the target ops.
3142 (class process_target): Add the target ops. Also add
3143 'supports_multifs'.
3144 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3145 "sys/stat.h".
3146 (process_target::supports_multifs): Define.
3147 (process_target::multifs_open): Define.
3148 (process_target::multifs_readlink): Define.
3149 (process_target::multifs_unlink): Define.
3150
3151 Update the derived classes and callers below.
3152
3153 * hostio.cc (handle_setfs): Update.
3154 (handle_open): Update.
3155 (handle_unlink): Update.
3156 (handle_readlink): Update.
3157 * linux-low.cc (linux_target_ops): Update.
3158 (linux_process_target::supports_multifs): Define.
3159 (linux_process_target::multifs_open): Define.
3160 (linux_process_target::multifs_readlink): Define.
3161 (linux_process_target::multifs_unlink): Define.
3162 * linux-low.h (class linux_process_target): Update.
3163 * lynx-low.cc (lynx_target_ops): Update.
3164 * nto-low.cc (nto_target_ops): Update.
3165 * win32-low.cc (win32_target_ops): Update.
3166
8247b823
TBA
31672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3168
3169 Turn process_stratum_target's pid_to_exec_file op into a method
3170 of process_target.
3171
3172 * target.h (struct process_stratum_target): Remove the target op.
3173 (class process_target): Add the target op. Also add
3174 'supports_pid_to_exec_file'.
3175 * target.cc (process_target::pid_to_exec_file): Define.
3176 (process_target::supports_pid_to_exec_file): Define.
3177
3178 Update the derived classes and callers below.
3179
3180 * server.cc (handle_qxfer_exec_file): Update.
3181 (handle_query): Update.
3182 * linux-low.cc (linux_target_ops): Update.
3183 (linux_process_target::supports_pid_to_exec_file): Define.
3184 (linux_process_target::pid_to_exec_file): Define.
3185 * linux-low.h (class linux_process_target): Update.
3186 * lynx-low.cc (lynx_target_ops): Update.
3187 * nto-low.cc (nto_target_ops): Update.
3188 * win32-low.cc (win32_target_ops): Update.
3189
2526e0cd
TBA
31902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3191
3192 Turn process_stratum_target's supports_range_stepping op into a
3193 method of process_target.
3194
3195 * target.h (struct process_stratum_target): Remove the target op.
3196 (class process_target): Add the target op.
3197 (target_supports_range_stepping): Update the macro.
3198 * target.cc (process_target::supports_range_stepping): Define.
3199
3200 Update the derived classes and callers below.
3201
3202 * linux-low.cc (linux_target_ops): Update.
3203 (linux_supports_range_stepping): Turn into ...
3204 (linux_process_target::supports_range_stepping): ... this.
3205 * linux-low.h (class linux_process_target): Update.
3206 * lynx-low.cc (lynx_target_ops): Update.
3207 * nto-low.cc (nto_target_ops): Update.
3208 * win32-low.cc (win32_target_ops): Update.
3209
79597bdd
TBA
32102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3211
3212 Turn process_stratum_target's btrace-related ops (enable_btrace,
3213 disable_btrace, read_btrace, read_btrace_conf) into methods of
3214 process_target.
3215
3216 * target.h (struct process_stratum_target): Remove the target ops.
3217 (class process_target): Add the target ops.
3218 (target_enable_btrace): Update.
3219 (target_disable_btrace): Update.
3220 (target_read_btrace): Update.
3221 (target_read_btrace_conf): Update.
3222 * target.cc (process_target::enable_btrace): Define.
3223 (process_target::disable_btrace): Define.
3224 (process_target::read_btrace): Define.
3225 (process_target::read_btrace_conf): Define.
3226
3227 Update the derived classes and callers below.
3228
3229 * linux-low.cc (linux_target_ops): Update.
3230 (linux_process_target:enable_btrace): Define as a wrapper around
3231 linux_enable_btrace.
3232 (linux_low_disable_btrace): Turn into ...
3233 (linux_process_target::disable_btrace): ... this.
3234 (linux_low_read_btrace): Turn into ...
3235 (linux_process_target::read_btrace): ... this.
3236 (linux_low_btrace_conf): Turn into ...
3237 (linux_process_target::read_btrace_conf): ... this.
3238 * linux-low.h (class linux_process_target): Update.
3239 * lynx-low.cc (lynx_target_ops): Update.
3240 * nto-low.cc (nto_target_ops): Update.
3241 * win32-low.cc (win32_target_ops): Update.
3242
c0245cb9
TBA
32432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3244
3245 Turn process_stratum_target's supports_agent op into a method of
3246 process_target.
3247
3248 * target.h (struct process_stratum_target): Remove the target op.
3249 (class process_target): Add the target op.
3250 (target_supports_agent): Update the macro.
3251 * target.cc (process_target::supports_agent): Define.
3252
3253 Update the derived classes and callers below.
3254
3255 * linux-low.cc (linux_target_ops): Update.
3256 (linux_supports_agent): Turn into ...
3257 (linux_process_target::supports_agent): ... this.
3258 * linux-low.h (class linux_process_target): Update.
3259 * lynx-low.cc (lynx_target_ops): Update.
3260 * nto-low.cc (nto_target_ops): Update.
3261 * win32-low.cc (win32_target_ops): Update.
3262
974387bb
TBA
32632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3264
3265 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3266 method of process_target.
3267
3268 * target.h (struct process_stratum_target): Remove the target op.
3269 (class process_target): Add the target op. Also add
3270 'supports_qxfer_libraries_svr4'.
3271 * target.cc (process_target::qxfer_libraries_svr4): Define.
3272 (process_target::supports_qxfer_libraries_svr4): Define.
3273
3274 Update the derived classes and callers below.
3275
3276 * server.cc (handle_qxfer_libraries_svr4): Update.
3277 (handle_query): Update.
3278 * linux-low.cc (linux_target_ops): Update.
3279 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3280 (linux_qxfer_libraries_svr4): Turn into ...
3281 (linux_process_target::qxfer_libraries_svr4): ... this.
3282 * linux-low.h (class linux_process_target): Update.
3283 * lynx-low.cc (lynx_target_ops): Update.
3284 * nto-low.cc (nto_target_ops): Update.
3285 * win32-low.cc (win32_target_ops): Update.
3286
c756403b
TBA
32872020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3288
3289 Turn process_stratum_target's supports_disable_randomization op
3290 into a method of process_target.
3291
3292 * target.h (struct process_stratum_target): Remove the target op.
3293 (class process_target): Add the target op.
3294 (target_supports_disable_randomization): Update the macro.
3295 * target.cc (process_target::supports_disable_randomization): Define.
3296
3297 Update the derived classes and callers below.
3298
3299 * linux-low.cc (linux_target_ops): Update.
3300 (linux_supports_disable_randomization): Turn into ...
3301 (linux_process_target::supports_disable_randomization): ... this.
3302 * linux-low.h (class linux_process_target): Update.
3303 * lynx-low.cc (lynx_target_ops): Update.
3304 * nto-low.cc (nto_target_ops): Update.
3305 * win32-low.cc (win32_target_ops): Update.
3306
345dafad
TBA
33072020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3308
3309 Turn process_stratum_target's emit_ops op into a method of
3310 process_target.
3311
3312 * target.h (struct process_stratum_target): Remove the target op.
3313 (class process_target): Add the target op.
3314 (target_emit_ops): Update the macro.
3315 * target.cc (process_target::emit_ops): Define.
3316
3317 Update the derived classes and callers below.
3318
3319 * linux-low.cc (linux_target_ops): Update.
3320 (linux_emit_ops): Turn into ...
3321 (linux_process_target::emit_ops): ... this.
3322 * linux-low.h (class linux_process_target): Update.
3323 * lynx-low.cc (lynx_target_ops): Update.
3324 * nto-low.cc (nto_target_ops): Update.
3325 * win32-low.cc (win32_target_ops): Update.
3326
c23c9391
TBA
33272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3328
3329 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3330 and get_min_fast_tracepoint_insn_len ops into methods of
3331 process_target.
3332
3333 * target.h (struct process_stratum_target): Remove the target ops.
3334 (class process_target): Add the target ops. Also add
3335 'supports_fast_tracepoints'.
3336 (target_supports_fast_tracepoints): Update the macro.
3337 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3338 (install_fast_tracepoint_jump_pad): Update and rename the macro
3339 to ...
3340 (target_install_fast_tracepoint_jump_pad): ... this.
3341 * target.cc (process_target::supports_fast_tracepoints): Define.
3342 (process_target::install_fast_tracepoint_jump_pad): Define.
3343 (process_target::get_min_fast_tracepoint_insn_len): Define.
3344
3345 Update the derived classes and callers below.
3346
3347 * tracepoint.cc (install_fast_tracepoint): Update.
3348 * linux-low.cc (linux_target_ops): Update.
3349 (linux_process_target::supports_fast_tracepoints): Define.
3350 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3351 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3352 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3353 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3354 * linux-low.h (class linux_process_target): Update.
3355 * lynx-low.cc (lynx_target_ops): Update.
3356 * nto-low.cc (nto_target_ops): Update.
3357 * win32-low.cc (win32_target_ops): Update.
3358
5c9eb2f2
TBA
33592020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3360
3361 Turn process_stratum_target's stabilize_threads op into a
3362 method of process_target.
3363
3364 * target.h (struct process_stratum_target): Remove the target op.
3365 (class process_target): Add the target op.
3366 (target_stabilize_threads): Update the macro.
3367 * target.cc (process_target::stabilize_threads): Define.
3368
3369 Update the derived classes and callers below.
3370
3371 * server.cc (handle_status): Update.
3372 * tracepoint.cc (cmd_qtdp): Update.
3373 (cmd_qtstart): Update.
3374 * linux-low.cc (linux_target_ops): Update.
3375 (linux_stabilize_threads): Turn into ...
3376 (linux_process_target::stabilize_threads): ... this.
3377 (linux_wait_1): Update.
3378 * linux-low.h (class linux_process_target): Update.
3379 * lynx-low.cc (lynx_target_ops): Update.
3380 * nto-low.cc (nto_target_ops): Update.
3381 * win32-low.cc (win32_target_ops): Update.
3382
29e8dc09
TBA
33832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3384
3385 Turn process_stratum_target's pause_all and unpause_all ops
3386 into methods of process_target.
3387
3388 * target.h (struct process_stratum_target): Remove the target ops.
3389 (class process_target): Add the target ops.
3390 (pause_all): Update the macro and rename to...
3391 (target_pause_all): ... this.
3392 (unpause_all): Update the macro and rename to...
3393 (target_unpause_all): ... this.
3394 * target.cc (process_target::pause_all): Define.
3395 (process_target::unpause_all): Define.
3396
3397 Update the derived classes and callers below.
3398
3399 * server.cc (handle_status): Update.
3400 * tracepoint.cc (clear_installed_tracepoints): Update.
3401 (cmd_qtdp): Update.
3402 (cmd_qtstart): Update.
3403 (stop_tracing): Update.
3404 (cmd_qtstatus): Update.
3405 (upload_fast_traceframes): Update.
3406 (run_inferior_command): Update.
3407 * linux-low.cc (linux_target_ops): Update.
3408 (linux_pause_all): Turn into ...
3409 (linux_process_target::pause_all): ... this.
3410 (linux_unpause_all): Turn into ...
3411 (linux_process_target::unpause_all): ... this.
3412 (linux_process_target::prepare_to_access_memory): Update.
3413 (linux_process_target::done_accessing_memory): Update.
3414 * linux-low.h (class linux_process_target): Update.
3415 * lynx-low.cc (lynx_target_ops): Update.
3416 * nto-low.cc (nto_target_ops): Update.
3417 * win32-low.cc (win32_target_ops): Update.
3418
4e2e869c
TBA
34192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3420
3421 Turn process_stratum_target's get_tib_address op into a method of
3422 process_target.
3423
3424 * target.h (struct process_stratum_target): Remove the target op.
3425 (class process_target): Add the target op. Also add
3426 'supports_get_tib_address'.
3427 * target.cc (process_target::get_tib_address): Define.
3428 (process_target::supports_get_tib_address): Define.
3429
3430 Update the derived classes and callers below.
3431
3432 * server.cc (handle_query): Update.
3433 * linux-low.cc (win32_target_ops): Update.
3434 * lynx-low.cc (lynx_target_ops): Update.
3435 * nto-low.cc (nto_target_ops): Update.
3436 * win32-low.cc (win32_target_ops): Update.
3437 (win32_process_target::supports_get_tib_address): Define.
3438 (win32_get_tib_address): Turn into ...
3439 (win32_process_target::get_tib_address): ... this.
3440 * win32-low.h (class win32_process_target): Update.
3441
68119632
TBA
34422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3443
3444 Turn process_stratum_target's thread_stopped op into a method of
3445 process_target.
3446
3447 * target.h (struct process_stratum_target): Remove the target op.
3448 (class process_target): Add the target op. Also add
3449 'supports_thread_stopped'.
3450 (target_thread_stopped): Update the macro.
3451 * target.cc (process_target::thread_stopped): Define.
3452 (process_target::supports_thread_stopped): Define.
3453 (prepare_to_access_memory): Update.
3454
3455 Update the derived classes and callers below.
3456
3457 * server.cc (queue_stop_reply_callback): Update.
3458 * linux-low.cc (linux_target_ops): Update.
3459 (linux_process_target::supports_thread_stopped): Define.
3460 (linux_thread_stopped): Turn into ...
3461 (linux_process_target::thread_stopped): ... this.
3462 * linux-low.h (class linux_process_target): Update.
3463 * lynx-low.cc (lynx_target_ops): Update.
3464 * nto-low.cc (nto_target_ops): Update.
3465 * win32-low.cc (win32_target_ops): Update.
3466
770d8f6a
TBA
34672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3468
3469 Turn process_stratum_target's read_pc and write_pc ops into
3470 methods of process_target.
3471
3472 * target.h (struct process_stratum_target): Remove the target ops.
3473 (class process_target): Add the target ops.
3474 * target.cc (process_target::read_pc): Define.
3475 (process_target::write_pc): Define.
3476
3477 Update the derived classes and callers below.
3478
3479 * regcache.cc (regcache_read_pc): Update.
3480 (regcache_write_pc): Update.
3481 * linux-low.cc (linux_target_ops): Update.
3482 (linux_read_pc): Turn into ...
3483 (linux_process_target::read_pc): ... this.
3484 (linux_write_pc): Turn into ...
3485 (linux_process_target::write_pc): ... this.
3486 * linux-low.h (class linux_process_target): Update.
3487 * lynx-low.cc (lynx_target_ops): Update.
3488 * nto-low.cc (nto_target_ops): Update.
3489 * win32-low.cc (win32_target_ops): Update.
3490
290732bf
TBA
34912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3492
3493 Turn process_stratum_target's supports_tracepoints op into a
3494 method of process_target.
3495
3496 * target.h (struct process_stratum_target): Remove the target op.
3497 (class process_target): Add the target op.
3498 (target_supports_tracepoints): Update the macro.
3499 * target.cc (process_target::supports_tracepoints): Define.
3500
3501 Update the derived classes and callers below.
3502
3503 * linux-low.cc (linux_target_ops): Update.
3504 (linux_supports_tracepoints): Turn into ...
3505 (linux_process_target::supports_tracepoints): ... this.
3506 * linux-low.h (class linux_process_target): Update.
3507 * lynx-low.cc (lynx_target_ops): Update.
3508 * nto-low.cc (nto_target_ops): Update.
3509 * win32-low.cc (win32_target_ops): Update.
3510
0df28b1b
TBA
35112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3512
3513 Turn process_stratum_target's process_qsupported op into a method
3514 of process_target.
3515
3516 * target.h (struct process_stratum_target): Remove the target op.
3517 (class process_target): Add the target op.
3518 (target_process_qsupported): Update the macro.
3519 * target.cc (process_target::process_qsupported): Define.
3520
3521 Update the derived classes and callers below.
3522
3523 * linux-low.cc (linux_target_ops): Update.
3524 (linux_process_qsupported): Turn into ...
3525 (linux_process_target::process_qsupported): ... this.
3526 * linux-low.h (class linux_process_target): Update.
3527 * lynx-low.cc (lynx_target_ops): Update.
3528 * nto-low.cc (nto_target_ops): Update.
3529 * win32-low.cc (win32_target_ops): Update.
3530
9da41fda
TBA
35312020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3532
3533 Turn process_stratum_target's read_loadmap op into a method of
3534 process_target.
3535
3536 * target.h (struct process_stratum_target): Remove the target op.
3537 (class process_target): Add the target op. Also add
3538 'supports_read_loadmap'.
3539 * target.cc (process_target::read_loadmap): Define.
3540 (process_target::supports_read_loadmap): Define.
3541
3542 Update the derived classes and callers below.
3543
3544 * server.cc (handle_qxfer_fdpic): Update.
3545 (handle_query): Update.
3546 * linux-low.cc (linux_target_ops): Update.
3547 (linux_process_target::supports_read_loadmap): Define.
3548 (linux_read_loadmap): Turn into ...
3549 (linux_process_target::read_loadmap): ... this.
3550 * linux-low.h (class linux_process_target): Update.
3551 * lynx-low.cc (lynx_target_ops): Update.
3552 * nto-low.cc (nto_target_ops): Update.
3553 * win32-low.cc (win32_target_ops): Update.
3554
95a45fc1
TBA
35552020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3556
3557 Turn process_stratum_target's core_of_thread op into a method of
3558 process_target.
3559
3560 * target.h (struct process_stratum_target): Remove the target op.
3561 (class process_target): Add the target op.
3562 (target_core_of_thread): Update the macro.
3563 * target.cc (process_target::core_of_thread): Define.
3564
3565 Update the derived classes and callers below.
3566
3567 * linux-low.cc (linux_target_ops): Update.
3568 (linux_process_target::core_of_thread): Define.
3569 * linux-low.h (class linux_process_target): Update.
3570 * lynx-low.cc (lynx_target_ops): Update.
3571 * nto-low.cc (nto_target_ops): Update.
3572 * win32-low.cc (win32_target_ops): Update.
3573
55cf3021
TBA
35742020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3575
3576 Turn process_stratum_target's handle_monitor_command op into a
3577 method of process_target.
3578
3579 * target.h (struct process_stratum_target): Remove the target op.
3580 (class process_target): Add the target op.
3581 (target_handle_monitor_command): Update the macro.
3582 * target.cc (process_target::handle_monitor_command): Define.
3583
3584 Update the derived classes and callers below.
3585
3586 * server.cc (handle_query): Update.
3587 * linux-low.cc (linux_target_ops): Update.
3588 (linux_process_target::handle_monitor_command): Define.
3589 * linux-low.h (class linux_process_target): Update.
3590 * lynx-low.cc (lynx_target_ops): Update.
3591 * nto-low.cc (nto_target_ops): Update.
3592 * win32-low.cc (win32_target_ops): Update.
3593
fb00dfce
TBA
35942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3595
3596 Turn process_stratum_target's handle_new_gdb_connection op into a
3597 method of process_target.
3598
3599 * target.h (struct process_stratum_target): Remove the target op.
3600 (class process_target): Add the target op.
3601 (target_handle_new_gdb_connection): Update the macro.
3602 * target.cc (process_target::handle_new_gdb_connection): Define.
3603
3604 Update the derived classes and callers below.
3605
3606 * linux-low.cc (linux_target_ops): Update.
3607 (linux_handle_new_gdb_connection): Turn into ...
3608 (linux_process_target::handle_new_gdb_connection): ... this.
3609 * linux-low.h (class linux_process_target): Update.
3610 * lynx-low.cc (lynx_target_ops): Update.
3611 * nto-low.cc (nto_target_ops): Update.
3612 * win32-low.cc (win32_target_ops): Update.
3613
9690a72a
TBA
36142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3615
3616 Turn process_stratum_target's supports_fork_events,
3617 supports_vfork_events, and supports_exec_events ops into methods
3618 of process_target.
3619
3620 * target.h (struct process_stratum_target): Remove the target ops.
3621 (class process_target): Add the target ops.
3622 (target_supports_fork_events): Update the macro.
3623 (target_supports_vfork_events): Update the macro.
3624 (target_supports_exec_events): Update the macro.
3625 * target.cc (process_target::supports_fork_events): Define.
3626 (process_target::supports_vfork_events): Define.
3627 (process_target::supports_exec_events): Define.
3628
3629 Update the derived classes and callers below.
3630
3631 * linux-low.cc (linux_target_ops): Update.
3632 (linux_supports_fork_events): Turn into ...
3633 (linux_process_target::supports_fork_events): ... this.
3634 (linux_supports_vfork_events): Turn into ...
3635 (linux_process_target::supports_vfork_events): ... this.
3636 (linux_supports_exec_events): Turn into ...
3637 (linux_process_target::supports_exec_events): ... this.
3638 * linux-low.h (class linux_process_target): Update.
3639 * lynx-low.cc (lynx_target_ops): Update.
3640 * nto-low.cc (nto_target_ops): Update.
3641 * win32-low.cc (win32_target_ops): Update.
3642
652aef77
TBA
36432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3644
3645 Turn process_stratum_target's supports_multi_process op into a
3646 method of process_target.
3647
3648 * target.h (struct process_stratum_target): Remove the target op.
3649 (class process_target): Add the target op.
3650 * target.cc (process_target::supports_multi_process): Define.
3651 (target_supports_multi_process): Update.
3652
3653 Update the derived classes and callers below.
3654
3655 * linux-low.cc (linux_target_ops): Update.
3656 (linux_supports_multi_process): Turn into ...
3657 (linux_process_target::supports_multi_process): ... this.
3658 * linux-low.h (class linux_process_target): Update.
3659 * lynx-low.cc (lynx_target_ops): Update.
3660 * nto-low.cc (nto_target_ops): Update.
3661 * win32-low.cc (win32_target_ops): Update.
3662
0dc587d4
TBA
36632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3664
3665 Turn process_stratum_target's supports_non_stop, async, and
3666 start_non_stop ops into methods of process_target.
3667
3668 * target.h (struct process_stratum_target): Remove the target ops.
3669 (class process_target): Add the target ops.
3670 (target_supports_non_stop): Update the macro.
3671 (target_async): Update the macro.
3672 (start_non_stop): Remove declaration.
3673 * target.cc (process_target::supports_non_stop): Define.
3674 (process_target::async): Define.
3675 (process_target::start_non_stop): Define.
3676 (start_non_stop): Remove.
3677
3678 Update the derived classes and callers below.
3679
3680 * server.cc (handle_qxfer_siginfo): Update.
3681 (handle_query): Update.
3682 * linux-low.cc (linux_target_ops): Update.
3683 (linux_supports_non_stop): Turn into ...
3684 (linux_process_target::supports_non_stop): ... this.
3685 (linux_async): Turn into ...
3686 (linux_process_target::async): ... this.
3687 (linux_start_non_stop): Turn into ...
3688 (linux_process_target::start_non_stop): ... this.
3689 * linux-low.h (class linux_process_target): Update.
3690 * lynx-low.cc (lynx_target_ops): Update.
3691 * nto-low.cc (nto_target_ops): Update.
3692 (nto_supports_non_stop): Remove; rely on the default behavior
3693 instead.
3694 * win32-low.cc (win32_target_ops): Update.
3695
d7abedf7
TBA
36962020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3697
3698 Turn process_stratum_target's qxfer_siginfo op into a method of
3699 process_target.
3700
3701 * target.h (struct process_stratum_target): Remove the target op.
3702 (class process_target): Add the target op. Also add
3703 'supports_qxfer_siginfo'.
3704 * target.cc (process_target::qxfer_siginfo): Define.
3705 (process_target::supports_qxfer_siginfo): Define.
3706
3707 Update the derived classes and callers below.
3708
3709 * server.cc (handle_qxfer_siginfo): Update.
3710 (handle_query): Update.
3711 * linux-low.cc (linux_target_ops): Update.
3712 (linux_process_target::supports_qxfer_siginfo): Define.
3713 (linux_xfer_siginfo): Turn into ...
3714 (linux_process_target::qxfer_siginfo): ... this.
3715 * linux-low.h (class linux_process_target): Update.
3716 * lynx-low.cc (lynx_target_ops): Update.
3717 * nto-low.cc (nto_target_ops): Update.
3718 * win32-low.cc (win32_target_ops): Update.
3719
2d0795ee
TBA
37202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3721
3722 Turn process_stratum_target's qxfer_osdata op into a method of
3723 process_target.
3724
3725 * target.h (struct process_stratum_target): Remove the target op.
3726 (class process_target): Add the target op. Also add
3727 'supports_qxfer_osdata'.
3728 * target.cc (process_target::qxfer_osdata): Define.
3729 (process_target::supports_qxfer_osdata): Define.
3730
3731 Update the derived classes and callers below.
3732
3733 * server.cc (handle_qxfer_osdata): Update.
3734 (handle_query): Update.
3735 * linux-low.cc (linux_target_ops): Update.
3736 (linux_process_target::supports_qxfer_osdata): Define.
3737 (linux_qxfer_osdata): Turn into ...
3738 (linux_process_target::qxfer_osdata): ... this.
3739 * linux-low.h (class linux_process_target): Update.
3740 * lynx-low.cc (lynx_target_ops): Update.
3741 * nto-low.cc (nto_target_ops): Update.
3742 * win32-low.cc (win32_target_ops): Update.
3743
ea06bbaa
TBA
37442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3745
3746 Turn process_stratum_target's hostio_last_error op into a
3747 method of process_target.
3748
3749 * target.h (struct process_stratum_target): Remove the target op.
3750 (class process_target): Add the target op.
3751 * target.cc: Add "hostio.h" to includes.
3752 (process_target::hostio_last_error): Define.
3753
3754 Update the derived classes and callers below.
3755
3756 * hostio.cc (hostio_error): Update.
3757 * linux-low.cc: Remove "hostio.h" from includes.
3758 (linux_target_ops): Update.
3759 * lynx-low.cc (lynx_target_ops): Update.
3760 * nto-low.cc (nto_target_ops): Update.
3761 * win32-low.h (class win32_process_target): Update.
3762 * win32-low.cc (win32_target_ops): Update.
3763 (wince_hostio_last_error): Turn into ...
3764 (win32_process_target::hostio_last_error): ... this.
3765
6e3fd7e9
TBA
37662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3767
3768 Turn process_stratum_target's get_tls_address op into a method of
3769 process_target.
3770
3771 * target.h (struct process_stratum_target): Remove the target op.
3772 (class process_target): Add the target op. Also add
3773 'supports_get_tls_address'.
3774 * target.cc (process_target::get_tls_address): Define.
3775 (process_target::supports_get_tls_address): Define.
3776
3777 Update the derived classes and callers below.
3778
3779 * server.cc (handle_query): Update.
3780 * linux-low.cc (linux_target_ops): Update.
3781 (linux_process_target::supports_get_tls_address): Define.
3782 (linux_process_target::get_tls_address): Define.
3783 * linux-low.h (class linux_process_target): Update.
3784 * lynx-low.cc (lynx_target_ops): Update.
3785 * nto-low.cc (nto_target_ops): Update.
3786 * win32-low.cc (win32_target_ops): Update.
3787
5203ae1e
TBA
37882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3789
3790 Turn process_stratum_target's read_offsets op into a method of
3791 process_target.
3792
3793 * target.h (struct process_stratum_target): Remove the target op.
3794 (class process_target): Add the target op. Also add
3795 'supports_read_offsets'.
3796 * target.cc (process_target::read_offsets): Define.
3797 (process_target::supports_read_offsets): Define.
3798
3799 Update the derived classes and callers below.
3800
3801 * server.cc (handle_query): Update.
3802 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3803 (linux_target_ops): Update.
3804 (linux_process_target::supports_read_offsets): Define.
3805 (linux_read_offsets): Turn into ...
3806 (linux_process_target::read_offsets): ... this.
3807 * linux-low.h (class linux_process_target): Update.
3808 * lynx-low.cc (lynx_target_ops): Update.
3809 * nto-low.cc (nto_target_ops): Update.
3810 * win32-low.cc (win32_target_ops): Update.
3811
6eeb5c55
TBA
38122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3813
3814 Turn process_stratum_target's stopped_by_watchpoint and
3815 stopped_data_address ops into methods of process_target.
3816
3817 * target.h (struct process_stratum_target): Remove the target ops.
3818 (class process_target): Add the target ops.
3819 * target.cc (process_target::stopped_by_watchpoint): Define.
3820 (process_target::stopped_data_address): Define.
3821
3822 Update the derived classes and callers below.
3823
3824 * remote-utils.cc (prepare_resume_reply): Update.
3825 * linux-low.cc (linux_target_ops): Update.
3826 (linux_stopped_by_watchpoint): Turn into ...
3827 (linux_process_target::stopped_by_watchpoint): ... this.
3828 (linux_stopped_data_address): Turn into ...
3829 (linux_process_target::stopped_data_address): ... this.
3830 * linux-low.h (class linux_process_target): Update.
3831 * lynx-low.cc (lynx_target_ops): Update.
3832 * nto-low.cc (nto_target_ops): Update.
3833 (nto_stopped_by_watchpoint): Turn into ...
3834 (nto_process_target::stopped_by_watchpoint): ... this.
3835 (nto_stopped_data_address): Turn into ...
3836 (nto_process_target::stopped_data_address): ... this.
3837 * nto-low.h (class nto_process_target): Update.
3838 * win32-low.cc (win32_target_ops): Update.
3839 (win32_stopped_by_watchpoint): Turn into ...
3840 (win32_process_target::stopped_by_watchpoint): ... this.
3841 (win32_stopped_data_address): Turn into ...
3842 (win32_process_target::stopped_data_address): ... this.
3843 * win32-low.h (class win32_process_target): Update.
3844
22aa6223
TBA
38452020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3846
3847 Turn process_stratum_target's supports_hardware_single_step op into
3848 a method of process_target.
3849
3850 * target.h (struct process_stratum_target): Remove the target op.
3851 (class process_target): Add the target op.
3852 (target_supports_hardware_single_step): Update the macro.
3853 (target_can_do_hardware_single_step): Remove declaration.
3854 * target.cc (process_target::supports_hardware_single_step): Define.
3855 (target_can_do_hardware_single_step): Remove.
3856
3857 Update the derived classes and callers below.
3858
3859 * linux-low.h (class linux_process_target): Update.
3860 * linux-low.cc (linux_target_ops): Update.
3861 (linux_supports_hardware_single_step): Turn into ...
3862 (linux_process_target::supports_hardware_single_step): ... this.
3863 * lynx-low.h (class lynx_process_target): Update.
3864 * lynx-low.cc (lynx_target_ops): Update.
3865 (lynx_process_target::supports_hardware_single_step): Define.
3866 * nto-low.h (class nto_process_target): Update.
3867 * nto-low.cc (nto_target_ops): Update.
3868 (nto_process_target::supports_hardware_single_step): Define.
3869 * win32-low.h (class win32_process_target): Update.
3870 * win32-low.cc (win32_target_ops): Update.
3871 (win32_process_target::supports_hardware_single_step): Define.
3872
93fe88b2
TBA
38732020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3874
3875 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3876 ops into methods of process_target.
3877
3878 * target.h (struct process_stratum_target): Remove the target ops.
3879 (class process_target): Add the target ops.
3880 (target_stopped_by_hw_breakpoint): Update the macro.
3881 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3882 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3883 (process_target::supports_stopped_by_hw_breakpoint): Define.
3884
3885 Update the derived classes and callers below.
3886
3887 * linux-low.cc (linux_target_ops): Update.
3888 (linux_stopped_by_hw_breakpoint): Turn into ...
3889 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3890 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3891 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3892 * linux-low.h (class linux_process_target): Update.
3893 * lynx-low.cc (lynx_target_ops): Update.
3894 * nto-low.cc (nto_target_ops): Update.
3895 * win32-low.cc (win32_target_ops): Update.
3896
84320c4e
TBA
38972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3898
3899 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3900 ops into methods of process_target.
3901
3902 * target.h (struct process_stratum_target): Remove the target ops.
3903 (class process_target): Add the target ops.
3904 (target_stopped_by_sw_breakpoint): Update the macro.
3905 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3906 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3907 (process_target::supports_stopped_by_sw_breakpoint): Define.
3908
3909 Update the derived classes and callers below.
3910
3911 * linux-low.cc (linux_target_ops): Update.
3912 (linux_stopped_by_sw_breakpoint): Turn into ...
3913 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3914 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3915 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3916 * linux-low.h (class linux_process_target): Update.
3917 * lynx-low.cc (lynx_target_ops): Update.
3918 * nto-low.cc (nto_target_ops): Update.
3919 * win32-low.cc (win32_target_ops): Update.
3920
7e0bde70
TBA
39212020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3922
3923 Turn process_stratum_target's insert_point and remove_point ops
3924 into methods of process_target.
3925
3926 * target.h (struct process_stratum_target): Remove the target ops.
3927 (class process_target): Add the target ops.
3928 * target.cc (process_target::insert_point): Define.
3929 (process_target::remove_point): Define.
3930
3931 Update the derived classes and callers below.
3932
3933 * mem-break.cc (set_raw_breakpoint_at): Update.
3934 (delete_raw_breakpoint): Update.
3935 (uninsert_raw_breakpoint): Update.
3936 (reinsert_raw_breakpoint): Update.
3937 * linux-low.cc (linux_target_ops): Update.
3938 (linux_insert_point): Turn into ...
3939 (linux_process_target::insert_point): ... this.
3940 (linux_remove_point): Turn into ...
3941 (linux_process_target::remove_point): ... this.
3942 * linux-low.h (class linux_process_target): Update.
3943 * lynx-low.cc (lynx_target_ops): Update.
3944 * nto-low.cc (nto_target_ops): Update.
3945 (nto_insert_point): Turn into ...
3946 (nto_process_target::insert_point): ... this.
3947 (nto_remove_point): Turn into ...
3948 (nto_process_target::remove_point): ... this.
3949 * nto-low.h (class nto_process_target): Update.
3950 * win32-low.cc (win32_target_ops): Update.
3951 (win32_insert_point): Turn into ...
3952 (win32_process_target::insert_point): ... this.
3953 (win32_remove_point): Turn into ...
3954 (win32_process_target::remove_point): ... this.
3955 * win32-low.h (class win32_process_target): Update.
3956
a2b2297a
TBA
39572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3958
3959 Turn process_stratum_target's supports_z_point_type op into a
3960 method of process_target.
3961
3962 * target.h (struct process_stratum_target): Remove the target op.
3963 (class process_target): Add the target op.
3964 * target.cc (process_target::supports_z_point_type): Define.
3965
3966 Update the derived classes and callers below.
3967
3968 * mem-break.cc (z_type_supported): Update.
3969 * linux-low.cc (linux_target_ops): Update.
3970 (linux_supports_z_point_type): Turn into ...
3971 (linux_process_target::supports_z_point_type): ... this.
3972 * linux-low.h (class linux_process_target): Update.
3973 * lynx-low.cc (lynx_target_ops): Update.
3974 * nto-low.cc (nto_target_ops): Update.
3975 (nto_supports_z_point_type): Turn into ...
3976 (nto_process_target::supports_z_point_type): ... this.
3977 * nto-low.h (class nto_process_target): Update.
3978 * win32-low.cc (win32_target_ops): Update.
3979 (win32_supports_z_point_type): Turn into ...
3980 (win32_process_target::supports_z_point_type): ... this.
3981 * win32-low.h (class win32_process_target): Update.
3982
eac215cc
TBA
39832020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3984
3985 Turn process_stratum_target's read_auxv op into a method of
3986 process_target.
3987
3988 * target.h (class process_stratum_target): Remove the target op.
3989 (struct process_target): Add the target op. Also add
3990 'supports_read_auxv'.
3991 * target.cc (process_target::read_auxv): Define.
3992 (process_target::supports_read_auxv): Define.
3993
3994 Update the derived classes and callers below.
3995
3996 * server.cc (handle_qxfer_auxv): Update.
3997 (handle_query): Update.
3998 * linux-low.cc (linux_target_ops): Update.
3999 (linux_process_target::supports_read_auxv): Define.
4000 (linux_read_auxv): Turn into ...
4001 (linux_process_target::read_auxv): ... this.
4002 * linux-low.h (class linux_process_target): Update.
4003 * lynx-low.cc (lynx_target_ops): Update.
4004 * nto-low.cc (nto_target_ops): Update.
4005 (nto_process_target::supports_read_auxv): Define.
4006 (nto_read_auxv): Turn into ...
4007 (nto_process_target::read_auxv): ... this.
4008 * nto-low.h (class nto_process_target): Update.
4009 * win32-low.cc (win32_target_ops): Update.
4010
eb497a2a
TBA
40112020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4012
4013 Turn process_stratum_target's request_interrupt op into a method of
4014 process_target.
4015
4016 * target.h (struct process_stratum_target): Remove the target op.
4017 (class process_target): Add the target op.
4018
4019 Update the derived classes and callers below.
4020
4021 * remote-utils.cc (putpkt_binary_1): Update.
4022 (input_interrupt): Update.
4023 (getpkt): Update.
4024 * server.cc (handle_v_requests): Update.
4025 * linux-low.cc (linux_target_ops): Update.
4026 (linux_request_interrupt): Turn into ...
4027 (linux_process_target::request_interrupt): ... this.
4028 * linux-low.h (class linux_process_target): Update.
4029 * lynx-low.cc (lynx_target_ops): Update.
4030 (lynx_request_interrupt): Turn into ...
4031 (lynx_process_target::request_interrupt): ... this.
4032 * lynx-low.h (class lynx_process_target): Update.
4033 * nto-low.cc (nto_target_ops): Update.
4034 (nto_request_interrupt): Turn into ...
4035 (nto_process_target::request_interrupt): ... this.
4036 * nto-low.h (class nto_process_target): Update.
4037 * win32-low.cc (win32_target_ops): Update.
4038 (win32_request_interrupt): Turn into ...
4039 (win32_process_target::request_interrupt): ... this.
4040 * win32-low.h (class win32_process_target): Update.
4041
2a31c7aa
TBA
40422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4043
4044 Turn process_stratum_target's look_up_symbols op into a method of
4045 process_target.
4046
4047 * target.h (struct process_stratum_target): Remove the target op.
4048 (class process_target): Add the target op.
4049 * target.cc (process_target::look_up_symbols): Define.
4050
4051 Update the derived classes and callers below.
4052
4053 * server.cc (handle_query): Update.
4054 * linux-low.cc (linux_target_ops): Update.
4055 (linux_look_up_symbols): Turn into ...
4056 (linux_process_target::look_up_symbols): ... this.
4057 * linux-low.h (class linux_process_target): Update.
4058 * lynx-low.cc (lynx_target_ops): Update.
4059 * nto-low.cc (nto_target_ops): Update.
4060 * win32-low.cc (win32_target_ops): Update.
4061
e2558df3
TBA
40622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4063
4064 Turn process_stratum_target's read_memory and write_memory
4065 ops into methods of process_target.
4066
4067 * target.h (struct process_stratum_target): Remove the target ops.
4068 (class process_target): Add the target ops.
4069
4070 Update the derived classes and callers below.
4071
4072 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4073 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4074 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4075 (arm_get_syscall_trapinfo): Update.
4076 * linux-cris-low.cc (cris_breakpoint_at): Update.
4077 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4078 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4079 * linux-mips-low.cc (mips_breakpoint_at): Update.
4080 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4081 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4082 * linux-sh-low.cc (sh_breakpoint_at): Update.
4083 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4084 (sparc_store_gregset_from_stack): Update.
4085 (sparc_breakpoint_at): Update.
4086 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4087 * linux-tile-low.cc (tile_breakpoint_at): Update.
4088 * linux-x86-low.cc (x86_breakpoint_at): Update.
4089 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4090 * mem-brea.cc (insert_memory_breakpoint): Update.
4091 (validate_inserted_breakpoint): Update.
4092 * target.cc (read_inferior_memory): Update.
4093 (target_write_memory): Update.
4094 * linux-low.cc (linux_target_ops): Update.
4095 (linux_read_memory): Make a wrapper around the read_memory target
4096 op call.
4097 (linux_process_target::read_memory): Rename from linux_read_memory.
4098 (linux_write_memory): Turn into ...
4099 (linux_process_target::write_memory): ... this.
4100 * linux-low.h (class linux_process_target): Update.
4101 * lynx-low.cc (lynx_target_ops): Update.
4102 (lynx_read_memory): Turn into ...
4103 (lynx_process_target::read_memory): ... this.
4104 (lynx_write_memory): Turn into ...
4105 (lynx_process_target::write_memory): ... this.
4106 * lynx-low.h (class lynx_process_target): Update.
4107 * nto-low.cc (nto_target_ops): Update.
4108 (nto_read_memory): Turn into ...
4109 (nto_process_target::read_memory): ... this.
4110 (nto_write_memory): Turn into ...
4111 (nto_process_target::write_memory): ... this.
4112 * nto-low.h (class nto_process_target): Update.
4113 * win32-low.cc (win32_target_ops): Update.
4114 (win32_read_inferior_memory): Turn into ...
4115 (win32_process_target::read_memory): ... this.
4116 (win32_write_inferior_memory): Turn into ...
4117 (win32_process_target::write_memory): ... this.
4118 * win32-low.h (class win32_process_target): Update.
4119
79b44087
TBA
41202020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4121
4122 Turn process_stratum_target's prepare_to_access_memory and
4123 done_accessing_memory ops into methods of process_target.
4124
4125 * target.h (struct process_stratum_target): Remove the target ops.
4126 (class process_target): Add the target ops.
4127 * target.cc (process_target::prepare_to_access_memory): Define.
4128 (process_target::done_accessing_memory): Define.
4129 (prepare_to_access_memory): Update.
4130 (done_accessing_memory): Update.
4131
4132 Update the derived classes and callers below.
4133
4134 * linux-low.cc (linux_target_ops): Update.
4135 (linux_prepare_to_access_memory): Turn into ...
4136 (linux_process_target::prepare_to_access_memory): ... this.
4137 (linux_done_accessing_memory): Turn into ...
4138 (linux_process_target::done_accessing_memory): ... this.
4139 * linux-low.h (class linux_process_target): Update.
4140 * lynx-low.cc (lynx_target_ops): Update.
4141 * nto-low.cc (nto_target_ops): Update.
4142 * win32-low.cc (win32_target_ops): Update.
4143
a5a4d4cd
TBA
41442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4145
4146 Turn process_stratum_target's fetch_registers and store_registers
4147 ops into methods of process_target.
4148
4149 * target.h (struct process_stratum_target): Remove the target ops.
4150 (class process_target): Add the target ops.
4151 (fetch_inferior_registers): Update the macro.
4152 (store_inferior_registers): Update the macro.
4153
4154 Update the derived classes and callers below.
4155
4156 * linux-low.cc (linux_target_ops): Update.
4157 (linux_fetch_registers): Turn into ...
4158 (linux_process_target::fetch_registers): ... this.
4159 (linux_store_registers): Turn into ...
4160 (linux_process_target::store_registers): ... this.
4161 * linux-low.h (class linux_process_target): Update.
4162 * lynx-low.cc (lynx_target_ops): Update.
4163 (lynx_fetch_registers): Turn into ...
4164 (lynx_process_target::fetch_registers): ... this.
4165 (lynx_store_registers): Turn into ...
4166 (lynx_process_target::store_registers): ... this.
4167 * lynx-low.h (class lynx_process_target): Update.
4168 * nto-low.cc (nto_target_ops): Update.
4169 (nto_fetch_registers): Turn into ...
4170 (nto_process_target::fetch_registers): ... this.
4171 (nto_store_registers): Turn into ...
4172 (nto_process_target::store_registers): ... this.
4173 * nto-low.h (class nto_process_target): Update.
4174 * win32-low.cc (win32_target_ops): Update.
4175 (win32_fetch_inferior_registers): Turn into ...
4176 (win32_process_target::fetch_registers): ... this.
4177 (win32_store_inferior_registers): Turn into ...
4178 (win32_process_target::store_registers): ... this.
4179 * win32-low.h (class win32_process_target): Update.
4180
6532e7e3
TBA
41812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4182
4183 Turn process_stratum_target's wait op into a method of
4184 process_target.
4185
4186 * target.h (struct process_stratum_target): Remove the target op.
4187 (class process_target): Add the target op.
4188
4189 Update the derived classes and callers below.
4190
4191 * target.cc (target_wait): Update.
4192 * linux-low.cc (linux_target_ops): Update.
4193 (linux_wait): Turn into ...
4194 (linux_process_target::wait): ... this.
4195 * linux-low.h (class linux_process_target): Update.
4196 * lynx-low.cc (lynx_target_ops): Update.
4197 (lynx_wait): Turn into ...
4198 (lynx_process_target::wait): ... this.
4199 * lynx-low.h (class lynx_process_target): Update.
4200 * nto-low.cc (nto_target_ops): Update.
4201 (nto_wait): Turn into ...
4202 (nto_process_target::wait): ... this.
4203 * nto-low.h (class nto_process_target): Update.
4204 * win32-low.cc (win32_target_ops): Update.
4205 (win32_wait): Turn into ...
4206 (win32_process_target::wait): ... this.
4207 (do_initial_child_stuff): Update.
4208 * win32-low.h (class win32_process_target): Update.
4209
0e4d7e35
TBA
42102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4211
4212 Turn process_stratum_target's resume op into a method of
4213 process_target.
4214
4215 * target.h (struct process_stratum_target): Remove the target op.
4216 (class process_target): Add the target op.
4217
4218 Update the derived classes and callers below.
4219
4220 * server.cc (resume): Update.
4221 * target.cc (target_stop_and_wait): Update.
4222 (target_continue_no_signal): Update.
4223 (target_continue): Update.
4224 * linux-low.cc (linux_target_ops): Update.
4225 (linux_resume): Turn into ...
4226 (linux_process_target::resume): ... this.
4227 * linux-low.h (class linux_process_target): Update.
4228 * lynx-low.cc (lynx_target_ops): Update.
4229 (lynx_resume): Turn into ...
4230 (lynx_process_target::resume): ... this.
4231 * lynx-low.h (class lynx_process_target): Update.
4232 * nto-low.cc (nto_target_ops): Update.
4233 (nto_resume): Turn into ...
4234 (nto_process_target::resume): ... this.
4235 * nto-low.h (class nto_process_target): Update.
4236 * win32-low.cc (win32_target_ops): Update.
4237 (win32_resume): Turn into ...
4238 (win32_process_target::resume): ... this.
4239 (win32_process_target::detach): Update.
4240 (do_initial_child_stuff): Update.
4241 * win32-low.h (class win32_process_target): Update.
4242
13d3d99b
TBA
42432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4244
4245 Turn process_stratum_target's thread_alive op into a method of
4246 process_target.
4247
4248 * target.h (struct process_stratum_target): Remove the target op.
4249 (class process_target): Add the target op.
4250 (mythread_alive): Update the macro.
4251
4252 Update the derived classes and callers below.
4253
4254 * linux-low.cc (linux_target_ops): Update.
4255 (linux_thread_alive): Turn into ...
4256 (linux_process_target::thread_alive): ... this.
4257 (wait_for_sigstop): Update.
4258 * linux-low.h (class linux_process_target): Update.
4259 * lynx-low.cc (lynx_target_ops): Update.
4260 (lynx_thread_alive): Turn into ...
4261 (lynx_process_target::thread_alive): ... this.
4262 * lynx-low.h (class lynx_process_target): Update.
4263 * nto-low.cc (nto_target_ops): Update.
4264 (nto_thread_alive): Turn into ...
4265 (nto_process_target::thread_alive): ... this.
4266 * nto-low.h (class nto_process_target): Update.
4267 * win32-low.cc (win32_target_ops): Update.
4268 (win32_thread_alive): Turn into ...
4269 (win32_process_target::thread_alive): ... this.
4270 * win32-low.h (class win32_process_target): Update.
4271
95a49a39
TBA
42722020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4273
4274 Turn process_stratum_target's join op into a method of
4275 process_target.
4276
4277 * target.h (struct process_stratum_target): Remove the target op.
4278 (class process_target): Add the target op.
4279 (join_inferior): Update the macro.
4280
4281 Update the derived classes and callers below.
4282
4283 * linux-low.cc (linux_target_ops): Update.
4284 (linux_join): Turn into ...
4285 (linux_process_target::join): ... this.
4286 * linux-low.h (class linux_process_target): Update.
4287 * lynx-low.cc (lynx_target_ops): Update.
4288 (lynx_join): Turn into ...
4289 (lynx_process_target::join): ... this.
4290 * lynx-low.h (class lynx_process_target): Update.
4291 * nto-low.cc (nto_target_ops): Update.
4292 (nto_process_target::join): Define.
4293 * nto-low.h (class nto_process_target): Update.
4294 * win32-low.cc (win32_target_ops): Update.
4295 (win32_join): Turn into ...
4296 (win32_process_target::join): ... this.
4297 * win32-low.h (class win32_process_target): Update.
4298
8adb37b9
TBA
42992020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4300
4301 Turn process_stratum_target's mourn op into a method of
4302 process_target.
4303
4304 * target.h (struct process_stratum_target): Remove the target op.
4305 (class process_target): Add the target op.
4306
4307 Update the derived classes and callers below.
4308
4309 * target.cc (target_mourn_inferior): Update.
4310 * linux-low.cc (linux_target_ops): Update.
4311 (linux_mourn): Turn into ...
4312 (linux_process_target::mourn): ... this.
4313 (handle_extended_wait): Update.
4314 (linux_process_target::kill): Update.
4315 (linux_process_target::detach): Update.
4316 * linux-low.h (class linux_process_target): Update.
4317 * lynx-low.cc (lynx_target_ops): Update.
4318 (lynx_mourn): Turn into ...
4319 (lynx_process_target::mourn): ... this.
4320 * lynx-low.h (class lynx_process_target): Update.
4321 * nto-low.cc (nto_target_ops): Update.
4322 (nto_mourn): Turn into ...
4323 (nto_process_target::mourn): ... this.
4324 * nto-low.h (class nto_process_target): Update.
4325 * win32-low.cc (win32_target_ops): Update.
4326 (win32_mourn): Turn into ...
4327 (win32_process_target::mourn): ... this.
4328 * win32-low.h (class win32_process_target): Update.
4329
9061c9cf
TBA
43302020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4331
4332 Turn process_stratum_target's detach op into a method of
4333 process_target.
4334
4335 * target.h (struct process_stratum_target): Remove the target op.
4336 (class process_target): Add the target op.
4337 (detach_inferior): Update the macro.
4338
4339 Update the derived classes and callers below.
4340
4341 * linux-low.cc (linux_target_ops): Update.
4342 (linux_detach): Turn into ...
4343 (linux_process_target::detach): ... this.
4344 * linux-low.h (class linux_process_target): Update.
4345 * lynx-low.cc (lynx_target_ops): Update.
4346 (lynx_detach): Turn into ...
4347 (lynx_process_target::detach): ... this.
4348 * lynx-low.h (class lynx_process_target): Update.
4349 * nto-low.cc (nto_target_ops): Update.
4350 (nto_detach): Turn into ...
4351 (nto_process_target::detach): ... this.
4352 * nto-low.h (class nto_process_target): Update.
4353 * win32-low.cc (win32_target_ops): Update.
4354 (win32_detach): Turn into ...
4355 (win32_process_target::detach): ... this.
4356 * win32-low.h (class win32_process_target): Update.
4357
c6885a57
TBA
43582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4359
4360 Turn process_stratum_target's kill op into a method of
4361 process_target.
4362
4363 * target.h (struct process_stratum_target): Remove the target op.
4364 (class process_target): Add the target op.
4365
4366 Update the derived classes and callers below.
4367
4368 * target.cc (kill_inferior): Update.
4369 * linux-low.cc (linux_target_ops): Update.
4370 (linux_kill): Turn into ...
4371 (linux_process_target::kill): ... this.
4372 * linux-low.h (class linux_process_target): Update.
4373 * lynx-low.cc (lynx_target_ops): Update.
4374 (lynx_kill): Turn into ...
4375 (lynx_process_target::kill): ... this.
4376 * lynx-low.h (class lynx_process_target): Update.
4377 * nto-low.cc (nto_target_ops): Update.
4378 (nto_kill): Turn into ...
4379 (nto_process_target::kill): ... this.
4380 * nto-low.h (class nto_process_target): Update.
4381 * win32-low.cc (win32_target_ops): Update.
4382 (win32_kill): Turn into ...
4383 (win32_process_target::kill): ... this.
4384 * win32-low.h (class win32_process_target): Update.
4385
ef03dad8
TBA
43862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4387
4388 Turn process_stratum_target's attach op into a method of
4389 process_target.
4390
4391 * target.h (struct process_stratum_target): Remove the target op.
4392 (class process_target): Add the target op.
4393 (myattach): Update the macro.
4394
4395 Update the derived classes and callers below.
4396
4397 * linux-low.cc (linux_target_ops): Update.
4398 (linux_attach): Turn into ...
4399 (linux_process_target::attach): ... this.
4400 * linux-low.h (class linux_process_target): Update.
4401 * lynx-low.cc (lynx_target_ops): Update.
4402 (lynx_attach): Turn into ...
4403 (lynx_process_target::attach): ... this.
4404 * lynx-low.h (class lynx_process_target): Update.
4405 * nto-low.cc (nto_target_ops): Update.
4406 (nto_attach): Turn into ...
4407 (nto_process_target::attach): ... this.
4408 * nto-low.h (class nto_process_target): Update.
4409 * win32-low.cc (win32_target_ops): Update.
4410 (win32_attach): Turn into ...
4411 (win32_process_target::attach): ... this.
4412 * win32-low.h (class win32_process_target): Update.
4413
6dee9afb
TBA
44142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4415
4416 Turn process_stratum_target's post_create_inferior op into a method
4417 of process_target.
4418
4419 * target.h (struct process_stratum_target): Remove the target op.
4420 (class process_target): Add the target op.
4421 (target_post_create_inferior): Update the macro.
4422 * target.cc (process_target::post_create_inferior): Define.
4423
4424 Update the derived classes and callers below.
4425
4426 * linux-low.cc (linux_target_ops): Update.
4427 (linux_post_create_inferior): Turn into ...
4428 (linux_process_target::post_create_inferior): ... this.
4429 * linux-low.h (class linux_process_target): Update.
4430 * lynx-low.cc (lynx_target_ops): Update.
4431 * nto-low.cc (nto_target_ops): Update.
4432 * win32-low.cc (win32_target_ops): Update.
4433
15295543
TBA
44342020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4435
4436 Turn process_stratum_target's create_inferior op into a method of
4437 process_target.
4438
4439 * target.h (struct process_stratum_target): Remove the target op.
4440 (class process_target): Add the target op.
4441 (create_inferior): Rename the macro to ...
4442 (target_create_inferior): ... this.
4443
4444 Update the derived classes and callers below.
4445
4446 * server.cc (handle_v_run): Update.
4447 (captured_main): Update.
4448 (process_serial_event): Update.
4449 * linux-low.cc (linux_target_ops): Update.
4450 (linux_create_inferior): Turn into ...
4451 (linux_process_target::create_inferior): ... this.
4452 * linux-low.h (class linux_process_target): Update.
4453 * lynx-low.cc (lynx_target_ops): Update.
4454 (lynx_create_inferior): Turn into ...
4455 (lynx_process_target::create_inferior): ... this.
4456 * lynx-low.h (class lynx_process_target): Update.
4457 * nto-low.cc (nto_target_ops): Update.
4458 (nto_create_inferior): Turn into ...
4459 (nto_process_target::create_inferior): ... this.
4460 * nto-low.h (class nto_process_target): Update.
4461 * win32-low.cc (win32_target_ops): Update.
4462 (win32_create_inferior): Turn into ...
4463 (win32_process_target::create_inferior): ... this.
4464 * win32-low.h (class win32_process_target): Update.
4465
5ef9273d
TBA
44662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4467
4468 * target.h (class process_target): New class definition.
4469 (struct process_stratum_target) <pt>: New field with type
4470 'process_target*'.
4471 * linux-low.h (class linux_process_target): Define as a derived
4472 class of 'process_target'.
4473 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4474 as the 'pt' field.
4475 * lynx-low.h (class lynx_process_target): Define as a derived
4476 class of 'process_target'.
4477 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4478 as the 'pt' field.
4479 * nto-low.h (class nto_process_target): Define as a derived
4480 class of 'process_target'.
4481 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4482 as the 'pt' field.
4483 * win32-low.h (class win32_process_target): Define as a derived
4484 class of 'process_target'.
4485 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4486 as the 'pt' field.
4487
9f1528a1
AB
44882020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4489
4490 * configure: Regenerate.
4491
bf84f706
MR
44922020-02-19 Maciej W. Rozycki <macro@wdc.com>
4493 Andrew Burgess <andrew.burgess@embecosm.com>
4494
4495 * linux-riscv-low.cc: New file.
4496 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4497 and nat/riscv-linux-tdesc.c.
4498 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4499 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4500 Define.
4501
1a627e7e
TT
45022020-02-14 Tom Tromey <tom@tromey.com>
4503
4504 * acinclude.m4: Don't include acx_configure_dir.m4.
4505 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4506 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4507 (all, install-only, uninstall, clean-info, clean)
4508 (maintainer-clean): Don't recurse.
4509 (subdir_do, all-lib): Remove.
4510 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4511 (GNULIB_H): Remove.
4512 (generated_files): Update.
4513 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4514 * configure: Rebuild.
4515 * configure.ac: Don't configure gnulib or libiberty.
4516 (GNULIB): Update.
4517
a9b34532
EZ
45182020-02-14 Eli Zaretskii <eliz@gnu.org>
4519
4520 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4521 preparing the command line for CreateProcess.
4522 (win32_create_inferior): Reflect the program name in debugging
4523 output that shows the process and its command line.
4524
feacfcac
SM
45252020-02-13 Simon Marchi <simon.marchi@efficios.com>
4526
4527 * Makefile.in: Rename source files from .c to .cc.
4528 * %.c: Rename to %.cc.
4529 * configure.ac: Rename server.c to server.cc.
4530 * configure: Re-generate.
4531
06b3c5bd
SM
45322020-02-13 Simon Marchi <simon.marchi@efficios.com>
4533
4534 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4535
052793ad
HD
45362020-02-12 Hannes Domani <ssbssa@yahoo.de>
4537
4538 * win32-low.c (win32_create_inferior): Set signal_pid.
4539
f20e3e82
MR
45402020-02-12 Maciej W. Rozycki <macro@wdc.com>
4541 Pedro Alves <palves@redhat.com>
4542
4543 Skip building gdbserver in a cross-configuration.
4544 * configure.srv: Set $gdbserver_host depending on whether $target
4545 is $host. Use $gdbserver_host instead of $host.
4546
8ddd8e0e
SM
45472020-02-11 Simon Marchi <simon.marchi@efficios.com>
4548
4549 * configure: Re-generate.
4550
898e7f60
SM
45512020-02-11 Simon Marchi <simon.marchi@efficios.com>
4552
4553 * configure: Re-generate.
4554
58df732b
SM
45552020-02-11 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * acinclude.m4: Update warning.m4 path.
4558
7928d571
HD
45592020-02-09 Hannes Domani <ssbssa@yahoo.de>
4560
4561 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4562 (handle_exception): Set siginfo_er.
4563 (win32_xfer_siginfo): New function.
4564
919adfe8
TT
45652020-02-07 Tom Tromey <tom@tromey.com>
4566 Pedro Alves <palves@redhat.com>
4567
4568 * README: Update build documentation.
4569 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4570 host, not target.
4571 * configure.ac: Update paths.
4572 * configure: Rebuild.
4573 * acinclude.m4: Update paths.
4574 * Makefile.in: Update include paths.
4575 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4576 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4577 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4578 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4579 (%-generated.c): Update paths.
4580 * Move entire directory from ../gdb/gdbserver.
4581
287c844a
MR
45822020-01-29 Maciej W. Rozycki <macro@wdc.com>
4583
4584 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4585
548a204f
PFC
45862020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4587
4588 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4589 assignment instead of srv_linux_obj.
4590
a2236a08
HD
45912020-01-28 Hannes Domani <ssbssa@yahoo.de>
4592
4593 * server.c (handle_qxfer_libraries): Write segment-address with
4594 paddress.
4595
bdaed379
HD
45962020-01-24 Hannes Domani <ssbssa@yahoo.de>
4597
4598 * Makefile.in (install-strip): New target.
4599 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4600 * aclocal.m4: Regenerate.
4601 * configure: Regenerate.
4602 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4603
42cd72aa
MR
46042020-01-24 Maciej W. Rozycki <macro@wdc.com>
4605
4606 * Makefile.in (SFILES): Adjust paths to point to real files.
4607 (OBS): Move waitstatus.o to target/waitstatus.o.
4608 (TAGS): Transform paths appropriately.
4609 (%.o): Rename to...
4610 (nat/%.o): ... this pattern rule.
4611 (%.o): Rename to...
4612 (target/%.o): ... this pattern rule.
4613 * configure.srv: Adjust paths throughout to include nat/ prefix
4614 with the revant files.
4615 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4616 * configure: Regenerate.
4617
42ba50ec
MR
46182020-01-24 Maciej W. Rozycki <macro@wdc.com>
4619
4620 * Makefile.in (TAGS): Remove config files from the recipe.
4621
05ea2a05
TT
46222020-01-14 Tom Tromey <tom@tromey.com>
4623
4624 * configure: Rebuild.
4625 * configure.ac: Remove any checks that were added to common.m4.
4626 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4627 lib-link.m4.
4628
01027315
TT
46292020-01-14 Tom Tromey <tom@tromey.com>
4630
4631 * server.h: Include config.h.
4632 * gdbreplay.c: Include config.h.
4633 * configure: Rebuild.
4634 * configure.ac: Don't source common.host.
4635 * acinclude.m4: Update path.
4636 * Makefile.in (INCSUPPORT): New variable.
4637 (INCLUDE_CFLAGS): Add INCSUPPORT.
4638 (SFILES): Update paths.
4639 (version-generated.c): Update path to create-version.sh.
4640 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4641
b2ceabe8
TT
46422020-01-14 Tom Tromey <tom@tromey.com>
4643
4644 * configure.ac (LIBS): Use WIN32APILIBS.
4645 (USE_WIN32API): Don't define.
4646 * configure: Rebuild.
4647
25c51f71
TT
46482020-01-14 Tom Tromey <tom@tromey.com>
4649
4650 * configure: Rebuild.
4651
c0bd321d
SM
46522020-01-13 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * Makefile.in (%-generated.c): Remove rule for files from
4655 regformats/i386.
4656
bb564c58
SM
46572020-01-13 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * configure: Re-generate.
4660
6e37c371
SM
46612020-01-13 Simon Marchi <simon.marchi@efficios.com>
4662
4663 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4664 Define to static.
4665 * tracepoint.c (stop_tracing, flush_trace_buffer,
4666 about_to_request_buffer_space, get_trace_state_variable_value,
4667 set_trace_state_variable_value, gdb_collect): Add declaration.
4668
df4a0200
SM
46692020-01-13 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4672 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4673 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4674 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4675 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4676 static.
4677
89e94ec9
SM
46782020-01-13 Simon Marchi <simon.marchi@efficios.com>
4679
4680 * inferiors.c: Include gdbsupport/common-inferior.h.
4681
2552728a
SM
46822020-01-13 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * hostio-errno.c: Include hostio.h.
4685
4025fa09
SM
46862020-01-13 Simon Marchi <simon.marchi@efficios.com>
4687
4688 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4689 prerequisite.
4690
c0b0a142
SM
46912020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4692
4693 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4694 * linux-arm-tdesc.h: Include arch/arm.h.
4695
bb1183e2
SM
46962020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4697
4698 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4699
f5df0b5f
SM
47002020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4701
4702 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4703 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4704
5b6d1e4f
PA
47052020-01-10 Pedro Alves <palves@redhat.com>
4706
4707 * fork-child.c (post_fork_inferior): Pass target down to
4708 startup_inferior.
4709 * inferiors.c (switch_to_thread): Add process_stratum_target
4710 parameter.
4711 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4712 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4713 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4714 * remote-utils.c (prepare_resume_reply): Pass the target to
4715 switch_to_thread.
4716 * target.c (the_target): Now a process_stratum_target.
4717 (done_accessing_memory): Pass the target to switch_to_thread.
4718 (set_target_ops): Ajust to use process_stratum_target.
4719 * target.h (struct target_ops): Rename to ...
4720 (struct process_stratum_target): ... this.
4721 (the_target, set_target_ops): Adjust.
4722 (prepare_to_access_memory): Adjust comment.
4723 * win32-low.c (child_xfer_memory): Adjust to use
4724 process_stratum_target.
4725 (win32_target_ops): Now a process_stratum_target.
4726
559e7e50
EZ
47272020-01-06 Eli Zaretskii <eliz@gnu.org>
4728 Pedro Alves <palves@redhat.com>
4729
4730 * win32-low.c (get_child_debug_event): Extract the fatal exception
4731 from the exit status and convert to the equivalent Posix signal
4732 number.
4733 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4734 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4735
48189bec
HD
47362020-01-01 Hannes Domani <ssbssa@yahoo.de>
4737
4738 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4739
5dd8bf88
JB
47402020-01-01 Joel Brobecker <brobecker@adacore.com>
4741
4742 * server.c (gdbserver_version): Change copyright year to 2020.
4743 * gdbreplay.c (gdbreplay_version): Likewise.
4744
0ad6b8ee
CB
47452019-12-19 Christian Biesinger <cbiesinger@google.com>
4746
4747 * configure: Regenerate.
4748 * configure.ac: Quote variable arguments of test.
4749
1ee7b812
BE
47502019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4751
4752 * Makefile.in: Fix build with GNU Make 3.81
4753
d9fa87f4
TT
47542019-12-16 Tom Tromey <tromey@adacore.com>
4755
4756 * server.c (get_exec_file): Constify result.
4757
ab7d13f0
CB
47582019-12-10 Christian Biesinger <cbiesinger@google.com>
4759
4760 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4761 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4762 * config.in: Regenerate.
4763 * configure: Regenerate.
4764 * configure.ac: Don't check for strerror.
4765 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4766 Call safe_strerror instead of strerror.
4767 * server.h (strerror): Remove this now-unnecessary declaration.
4768 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4769 strerror.
4770 (gdb_agent_helper_thread): Likewise.
4771 * utils.c (perror_with_name): Likewise.
4772
4da8c3a8
TT
47732019-11-26 Tom Tromey <tom@tromey.com>
4774
4775 * configure, config.in: Rebuild.
4776
21987b9c
TT
47772019-11-26 Tom Tromey <tom@tromey.com>
4778
4779 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4780 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4781 gdb_sigmask.
4782 * configure, config.in: Rebuild.
4783
5e030278
TT
47842019-11-26 Tom Tromey <tom@tromey.com>
4785
4786 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4787 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4788 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4789 * acinclude.m4: Include ax_pthread.m4.
4790 * config.in, configure: Rebuild.
4791
6d91ce9a
CB
47922019-11-26 Christian Biesinger <cbiesinger@google.com>
4793
4794 * debug.c (debug_set_output): Call safe_strerror instead of
4795 strerror.
4796 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4797 (linux_kill_one_lwp): Likewise.
4798 (linux_detach_one_lwp): Likewise.
4799 (linux_wait_for_event_filtered): Likewise.
4800 (store_register): Likewise.
4801 * lynx-low.c (lynx_attach): Likewise.
4802 * mem-break.c (insert_memory_breakpoint): Likewise.
4803 (remove_memory_breakpoint): Likewise.
4804 (delete_fast_tracepoint_jump): Likewise.
4805 (set_fast_tracepoint_jump): Likewise.
4806 (uninsert_fast_tracepoint_jumps_at): Likewise.
4807 (reinsert_fast_tracepoint_jumps_at): Likewise.
4808 * nto-low.c (nto_xfer_memory): Likewise.
4809 (nto_resume): Likewise.
4810
6cdd651f
LM
48112019-11-20 Luis Machado <luis.machado@linaro.org>
4812
4813 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4814 instead of register count.
4815 * tdesc.c (tdesc_contains_feature): New function.
4816 * tdesc.h (tdesc_contains_feature): New prototype.
4817
cd850b40
CB
48182019-11-15 Christian Biesinger <cbiesinger@google.com>
4819
4820 * Makefile.in: Add safe-strerror.c.
4821 * configure: Regenerate.
4822 * configure.ac: Don't source common.host.
4823
5abebf3c
CB
48242019-11-15 Christian Biesinger <cbiesinger@google.com>
4825
4826 * config.in: Regenerate.
4827 * configure: Regenerate.
4828
e06f3d6e
AB
48292019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4830
4831 * ax.c (ax_printf): Handle size_t_arg.
4832
ca3a04f6
CB
48332019-11-06 Christian Biesinger <cbiesinger@google.com>
4834
4835 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4836 * mi/mi-main.c (output_cores): Likewise.
4837 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4838 (linux_xfer_osdata_modules): Likewise.
4839 * remote.c (register_remote_support_xml): Likewise.
4840 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4841 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4842
e48f6033
CB
48432019-11-01 Christian Biesinger <cbiesinger@google.com>
4844
4845 * configure: Regenerate.
4846 * configure.ac: Remove check for strerror_r.
4847
e7e97a2e
CB
48482019-10-31 Christian Biesinger <cbiesinger@google.com>
4849
4850 * config.in: Regenerate.
4851 * configure: Regenerate.
4852 * configure.ac: Also check for strerror_r.
4853
75cafaa6
CB
48542019-10-31 Christian Biesinger <cbiesinger@google.com>
4855
4856 * ax.h (debug_agent): Remove duplicate declaration.
4857
30baf67b
TV
48582019-10-26 Tom de Vries <tdevries@suse.de>
4859
4860 * linux-aarch64-low.c: Fix typos in comments.
4861 * linux-arm-low.c: Same.
4862 * linux-low.c: Same.
4863 * linux-ppc-low.c: Same.
4864 * proc-service.c: Same.
4865 * regcache.h: Same.
4866 * server.c: Same.
4867 * tracepoint.c: Same.
4868 * win32-low.c: Same.
4869
52c64cf7
TT
48702019-10-25 Tom Tromey <tromey@adacore.com>
4871
4872 * utils.c (xstrdup): Remove.
4873
c12d372d
TT
48742019-10-23 Tom Tromey <tom@tromey.com>
4875
4876 * configure, config.in: Rebuild.
4877
4d0b984b
TT
48782019-10-23 Tom Tromey <tom@tromey.com>
4879
4880 * configure: Rebuild.
4881 * acinclude.m4: Use m4_include, not sinclude.
4882
c5adaa19
TT
48832019-10-17 Tom Tromey <tromey@adacore.com>
4884
4885 * configure: Rebuild.
4886 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4887 in AC_CONFIG_FILES invocation.
4888 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4889 invocation.
4890
fec4e896
CB
48912019-10-16 Christian Biesinger <cbiesinger@google.com>
4892
4893 * server.c: Include xml-builtin.h.
4894 (get_xml_features): Don't declare xml_builtins here.
4895
00975ff6
AB
48962019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4897
4898 * Makefile.in: Remove references to vec-ipa.o.
4899
0dc32745
AB
49002019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4901
4902 * Makefile.in: Remove references to vec.c.
4903
3e6ec53a
CB
49042019-10-02 Christian Biesinger <cbiesinger@google.com>
4905
4906 * server.c (server_waiting): Change to bool.
4907 (extended_protocol): Likewise.
4908 (response_needed): Likewise.
4909 (exit_requested): Likewise.
4910 (run_once): Likewise.
4911 (report_no_resumed): Likewise.
4912 (non_stop): Likewise.
4913 (disable_packet_vCont): Likewise.
4914 (disable_packet_Tthread): Likewise.
4915 (disable_packet_qC): Likewise.
4916 (disable_packet_qfThreadInfo): Likewise.
4917 (handle_general_set): Update.
4918 (handle_detach): Update.
4919 (handle_monitor_command): Update.
4920 (handle_query): Update.
4921 (captured_main): Update.
4922 (process_serial_event): Update.
4923 * server.h (server_waiting): Change to bool.
4924 (disable_packet_vCont): Likewise.
4925 (disable_packet_Tthread): Likewise.
4926 (disable_packet_qC): Likewise.
4927 (disable_packet_qfThreadInfo): Likewise.
4928 (run_once): Likewise.
4929 (non_stop): Likewise.
4930 * target.c (target_stop_and_wait): Update.
4931
80fd2826
TT
49322019-10-02 Tom Tromey <tromey@adacore.com>
4933
4934 * Makefile.in (SFILES): Add common-inferior.c.
4935 (OBS): Add common-inferior.o.
4936 * server.c (startup_with_shell): Don't define.
4937
46f29a9a
AB
49382019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4939
4940 * linux-low.c (linux_low_read_btrace): Update for change to
4941 std::vector.
4942
f9d949fb
CB
49432019-09-20 Christian Biesinger <cbiesinger@google.com>
4944
4945 * debug.c (debug_threads): Remove comment in favor of the header.
4946 * debug.h (using_threads): Add declaration.
4947 (debug_threads): Add comment.
4948 * linux-aarch64-low.c: Include debug.h and remove declaration of
4949 debug_threads.
4950 * nto-low.c: Likewise.
4951 * remote-utils.c: Likewise.
4952 * thread-db.c: Likewise.
4953
abf516c6
UW
49542019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4955
4956 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4957 and powerpc-cell64l-ipa.o.
4958 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4959 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4960 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4961 (spu*-*-*): Remove.
4962
4963 * spu-low.c: Remove file.
4964
4965 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4966 (parse_spufs_run): Remove.
4967 (ppc_get_pc): Remove Cell/B.E. support.
4968 (ppc_set_pc): Likewise.
4969 (ppc_breakpoint_at): Likewise.
4970 (ppc_arch_setup): Likewise.
4971 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4972 tdesc_powerpc_cell32l.
4973 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4974 or init_registers_powerpc_cell32l.
4975 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4976 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4977 or init_registers_powerpc_cell32l.
4978 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4979 (init_registers_powerpc_cell32l): Remove prototype.
4980 (init_registers_powerpc_cell64l): Likewise.
4981
4982 * target.h (struct target_ops): Remove qxfer_spu member.
4983 * server.c (handle_qxfer_spu): Remove.
4984 (qxfer_packets): Remove entry for "spu".
4985 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4986 * linux-low.c (SPUFS_MAGIC): Remove.
4987 (spu_enumerate_spu_ids): Remove.
4988 (linux_qxfer_spu): Remove.
4989 (linux_target_ops): Remove qxfer_spu member.
4990 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4991 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4992 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4993
2d41fa11
SDJ
49942019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4995
4996 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4997 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4998 * config.in: Regenerate.
4999 * configure: Regenerate.
5000
d59b55f0
TT
50012019-08-15 Tom Tromey <tromey@adacore.com>
5002
5003 * target.c (target_write_memory): Use gdb::byte_vector.
5004
4196ab2a
TT
50052019-08-15 Tom Tromey <tromey@adacore.com>
5006
5007 * tracepoint.c (write_inferior_data_pointer)
5008 (write_inferior_integer, write_inferior_int8)
5009 (write_inferior_uinteger, m_tracepoint_action_download)
5010 (r_tracepoint_action_download, x_tracepoint_action_download)
5011 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5012 (download_agent_expr, download_tracepoint_1)
5013 (download_trace_state_variables, upload_fast_traceframes): Update.
5014 * server.c (gdb_write_memory): Update.
5015 * remote-utils.c (relocate_instruction): Update.
5016 * proc-service.c (ps_pdwrite): Update.
5017 * mem-break.c (remove_memory_breakpoint)
5018 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5019 (uninsert_fast_tracepoint_jumps_at)
5020 (reinsert_fast_tracepoint_jumps_at): Update.
5021 * linux-x86-low.c (append_insns)
5022 (i386_install_fast_tracepoint_jump_pad)
5023 (amd64_write_goto_address, i386_write_goto_address): Update.
5024 * linux-s390-low.c (append_insns, s390_write_goto_address):
5025 Update.
5026 * linux-ppc-low.c (ppc_relocate_instruction)
5027 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5028 (ppc_write_goto_address): Update.
5029 * linux-aarch64-low.c (append_insns): Update.
5030 * target.h (struct target_ops): Update.
5031 (write_inferior_memory): Don't declare.
5032 * target.c (target_write_memory): Rename from
5033 write_inferior_memory. Remove old target_write_memory.
5034
c6778d00
TT
50352019-08-15 Tom Tromey <tromey@adacore.com>
5036
5037 * target.c (write_inferior_memory): Use std::vector.
5038
404f2902
FCE
50392019-08-06 Frank Ch. Eigler <fche@redhat.com>
5040
5041 PR build/24886
5042 * configure.ac: Drop enable-libmcheck support.
5043 * configure, config.in: Rebuild.
5044 * acinclude.m4: Don't include it.
5045
4c5aa8e0
AH
50462019-07-19 Alan Hayward <alan.hayward@arm.com>
5047
5048 * configure.srv: Remove Arm xml files.
5049
7cc17433
AH
50502019-07-19 Alan Hayward <alan.hayward@arm.com>
5051
5052 * configure.srv: Add new files. Remove xml generated files.
5053 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5054 registers.
5055 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5056 * linux-aarch32-tdesc.c: New file.
5057 * linux-aarch32-tdesc.h: New file.
5058 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5059 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5060 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5061 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5062 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5063 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5064 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5065 (arm_read_description): Call arm_linux_read_description.
5066 (initialize_low_arch): Don't init registers.
5067 * linux-arm-tdesc.c: New file.
5068 * linux-arm-tdesc.h: New file.
5069
166a82be
AH
50702019-07-10 Alan Hayward <alan.hayward@arm.com>
5071
5072 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5073 Move counter inside for.
5074 (arm_read_description): Check ptrace earlier.
5075 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5076
268a13a5
TT
50772019-07-09 Tom Tromey <tom@tromey.com>
5078
5079 * configure: Rebuild.
5080 * configure.ac: Change common to gdbsupport.
5081 * acinclude.m4: Change common to gdbsupport.
5082 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5083 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5084 common to gdbsupport.
5085 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5086 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5087 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5088 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5089 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5090 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5091 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5092 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5093 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5094 common to gdbsupport.
5095
350fab54
AH
50962019-07-04 Alan Hayward <alan.hayward@arm.com>
5097
5098 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5099 defines.
5100 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5101
2b40fda7
AH
51022019-07-04 Alan Hayward <alan.hayward@arm.com>
5103
5104 * configure.srv: Remove legacy xml.
5105 * linux-aarch64-low.c (initialize_low_arch): Remove
5106 initialize_low_tdesc call.
5107 * linux-aarch64-tdesc-selftest.c: Remove file.
5108 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5109 * linux-x86-low.c (initialize_low_arch): Remove
5110 initialize_low_tdesc call.
5111 * linux-x86-tdesc-selftest.c: Remove file.
5112 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5113
7d10623d
TV
51142019-06-20 Tom de Vries <tdevries@suse.de>
5115
5116 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5117 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5118
8d6a48df
TV
51192019-06-19 Tom de Vries <tdevries@suse.de>
5120
5121 * debug.h (debug_write): Change return type to ssize_t.
5122 * debug.c (debug_write): Same.
5123
73cc7272
TT
51242019-06-14 Tom Tromey <tom@tromey.com>
5125
5126 * configure.ac: Use new path to gnulib.
5127 * configure: Rebuild.
5128 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5129 to gnulib.
5130
08f10e02
TT
51312019-06-11 Tom Tromey <tom@tromey.com>
5132
5133 * Makefile.in (SFILES): Add alloc.c.
5134 (OBS): Add alloc.o.
5135 (IPA_OBJS): Add alloc-ipa.o.
5136 (alloc-ipa.o): New target.
5137 (%.o: ../%.c): New pattern rule.
5138
422186a9
TT
51392019-06-10 Tom Tromey <tromey@adacore.com>
5140
5141 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5142 end warning with a newline.
5143 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5144 newline.
5145 * thread-db.c (attach_thread): Don't end warning with a newline.
5146 (thread_db_notice_clone): Likewise.
5147 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5148 newline.
5149 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5150 end warning with a newline.
5151
b02f78f9
PA
51522019-06-04 Pedro Alves <palves@redhat.com>
5153
5154 * server.c (captured_main): Use make_unique_xstrdup.
5155
88ed7edb
TT
51562019-06-02 Tom Tromey <tom@tromey.com>
5157
5158 * gdbreplay.c (fromhex): Remove.
5159 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5160
33a6bc35
TT
51612019-05-29 Tom Tromey <tromey@adacore.com>
5162
5163 * configure: Rebuild.
5164
e90a813d
KB
51652019-05-06 Kevin Buettner <kevinb@redhat.com>
5166
5167 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5168 sign extension code on 32-bit builds.
5169
353ea2d1
EZ
51702019-05-03 Eli Zaretskii <eliz@gnu.org>
5171
5172 * remote-utils.c:
5173 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5174
b494cdff
TT
51752019-04-19 Tom Tromey <tom@tromey.com>
5176
5177 * server.c (struct vstop_notif): Derive from notif_event.
5178 <base>: Remove.
5179 (queue_stop_reply): Update.
5180 (remove_all_on_match_ptid): Change type. Rewrite.
5181 (discard_queued_stop_replies): Rewrite.
5182 (in_queued_stop_replies_ptid): Change type.
5183 (in_queued_stop_replies): Rewrite.
5184 (notif_stop): Update.
5185 (queue_stop_reply_callback): Update.
5186 (captured_main): Don't call initialize_notif.
5187 (push_stop_notification): Update.
5188 * notif.c (notif_write_event, handle_notif_ack)
5189 (notif_event_enque, notif_push): Update.
5190 (notif_event_xfree, initialize_notif): Remove.
5191 * notif.h (struct notif_event): Include <list>, not
5192 "common/queue.h".
5193 (struct notif_server) <queue>: Now a std::list.
5194 (notif_event_p): Remove typedef.
5195 (initialize_notif): Don't declare.
5196 (struct notif_event): Add virtual destructor.
5197
a7e559cc
AH
51982019-04-17 Alan Hayward <alan.hayward@arm.com>
5199
5200 * ax.c (ax_vdebug): Call debug_printf.
5201 * debug.c (debug_write): New function.
5202 * debug.h (debug_write): New declaration.
5203 * linux-low.c (sigchld_handler): Call debug_write.
5204
aeb2e706
AH
52052019-04-17 Alan Hayward <alan.hayward@arm.com>
5206
5207 * debug.c (debug_set_output): New function.
5208 (debug_vprintf): Send output to debug_file.
5209 (debug_flush): Likewise.
5210 * debug.h (debug_set_output): New declaration.
5211 * server.c (handle_monitor_command): Add debug-file option.
5212 (captured_main): Likewise.
5213
c1bc0935
AH
52142019-04-17 Alan Hayward <alan.hayward@arm.com>
5215
5216 * debug.c (remote_debug): Add definition.
5217 * debug.h (remote_debug): Add declaration.
5218 * hostio.c (remote_debug): Remove declaration.
5219 * remote-utils.c (struct ui_file): Likewise.
5220 (remote_debug): Likewise.
5221 * remote-utils.h (remote_debug): Likewise,
5222 * server.c (remote_debug): Remove definition.
5223
3f52fdbc
KB
52242019-04-10 Kevin Buettner <kevinb@redhat.com>
5225
5226 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5227 when using a 64-bit gdbserver.
5228
b0319eaa
TT
52292019-04-09 Tom Tromey <tromey@adacore.com>
5230
5231 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5232
eedc3f4f
TT
52332019-04-08 Tom Tromey <tom@tromey.com>
5234
5235 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5236 throw.
5237 (linux_resume_one_lwp): Likewise.
5238
230d2906
TT
52392019-04-08 Tom Tromey <tom@tromey.com>
5240
5241 * gdbreplay.c: Update.
5242 * linux-low.c: Update.
5243 * server.c: Update.
5244
a70b8144
TT
52452019-04-08 Tom Tromey <tom@tromey.com>
5246
5247 * server.c: Use C++ exception handling.
5248 * linux-low.c: Use C++ exception handling.
5249 * gdbreplay.c: Use C++ exception handling.
5250
3d6e9d23
TT
52512019-04-08 Tom Tromey <tom@tromey.com>
5252
5253 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5254 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5255 (captured_main, main): Update.
5256 * gdbreplay.c (main): Update.
5257
0570503d
PFC
52582019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5259
5260 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5261 value in argument pointer, return 1 if the entry is found and 0
5262 otherwise. Move comment.
5263 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5264 * linux-low.h (linux_get_auxv): Declare.
5265 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5266
227a9e65
TT
52672019-04-05 Tom Tromey <tromey@adacore.com>
5268
5269 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5270 variables.
5271
69f4c9cc
AH
52722019-03-28 Alan Hayward <alan.hayward@arm.com>
5273
5274 * linux-low.c (AT_HWCAP2): Add define if not already included.
5275
974c89e0
AH
52762019-03-26 Alan Hayward <alan.hayward@arm.com>
5277
5278 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5279 (aarch64_arch_setup): Call linux_get_hwcap.
5280 * linux-arm-low.c (arm_get_hwcap): Remove function.
5281 (arm_read_description): Call linux_get_hwcap.
5282 * linux-low.c (linux_get_auxv): New function.
5283 (linux_get_hwcap): Likewise.
5284 (linux_get_hwcap2): Likewise.
5285 * linux-low.h (linux_get_hwcap): New declaration.
5286 (linux_get_hwcap2): Likewise.
5287 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5288 (ppc_arch_setup): Call linux_get_hwcap.
5289 * linux-s390-low.c (s390_get_hwcap): Remove function.
5290 (s390_arch_setup): Call linux_get_hwcap.
5291
1ef53e6b
AH
52922019-03-22 Alan Hayward <alan.hayward@arm.com>
5293 Jiong Wang <jiong.wang@arm.com>
5294
5295 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5296 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5297 to fail.
5298 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5299
ee4fbcfa
AH
53002019-03-22 Alan Hayward <alan.hayward@arm.com>
5301 Jiong Wang <jiong.wang@arm.com>
5302
5303 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5304 (aarch64_get_hwcap): New function.
5305 (aarch64_arch_setup): Read APIA hwcap.
5306
6dc0ebde
AH
53072019-03-22 Alan Hayward <alan.hayward@arm.com>
5308 Jiong Wang <jiong.wang@arm.com>
5309
5310 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5311 (initialize_low_tracepoint): Likewise.
5312 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5313 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5314 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5315 (aarch64_linux_read_description): Likewise.
5316 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5317
1163a4b7
JB
53182019-03-12 John Baldwin <jhb@FreeBSD.org>
5319
5320 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5321 i386_create_target_description for 'segments' parameter.
5322 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5323 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5324 * win32-i386-low.c (i386_arch_setup): Likewise.
5325
d3a70e03
TT
53262019-03-12 Tom Tromey <tromey@adacore.com>
5327
5328 * linux-low.c (iterate_over_lwps): Update.
5329
37991b4f
TT
53302019-03-06 Tom Tromey <tom@tromey.com>
5331
5332 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5333 (captured_main): Use SCOPE_EXIT.
5334
45950eb6
SDJ
53352019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5336
5337 * configure.srv: Use '$enable_unittest' instead of '$development'
5338 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5339 case.
5340
43ac54fc
TT
53412019-02-27 Tom Tromey <tromey@adacore.com>
5342
5343 * gdbreplay.c (logchar): Handle \r\n.
5344
df0da8a2
AH
53452019-02-07 Alan Hayward <alan.hayward@arm.com>
5346
5347 * linux-low.c (linux_attach): Add process before lwp.
5348 * server.c (attach_inferior): Check if already attached.
5349
1a5c2598
TT
53502019-02-07 Tom Tromey <tom@tromey.com>
5351
5352 * x86-tdesc.h: Rename include guard.
5353 * x86-low.h: Add include guard.
5354 * wincecompat.h: Rename include guard.
5355 * win32-low.h: Add include guard.
5356 * utils.h: Rename include guard.
5357 * tracepoint.h: Rename include guard.
5358 * tdesc.h: Rename include guard.
5359 * target.h: Rename include guard.
5360 * server.h: Rename include guard.
5361 * remote-utils.h: Rename include guard.
5362 * regcache.h: Rename include guard.
5363 * nto-low.h: Rename include guard.
5364 * notif.h: Add include guard.
5365 * mem-break.h: Rename include guard.
5366 * lynx-low.h: Add include guard.
5367 * linux-x86-tdesc.h: Add include guard.
5368 * linux-s390-tdesc.h: Add include guard.
5369 * linux-ppc-tdesc-init.h: Add include guard.
5370 * linux-low.h: Add include guard.
5371 * linux-aarch64-tdesc.h: Add include guard.
5372 * linux-aarch32-low.h: Add include guard.
5373 * inferiors.h: Rename include guard.
5374 * i387-fp.h: Rename include guard.
5375 * hostio.h: Rename include guard.
5376 * gdbthread.h: Rename include guard.
5377 * gdb_proc_service.h: Rename include guard.
5378 * event-loop.h: Rename include guard.
5379 * dll.h: Rename include guard.
5380 * debug.h: Rename include guard.
5381 * ax.h: Rename include guard.
5382
956cc47c
SN
53832018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5384
5385 PR gdb/23985
5386 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5387 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5388
a0707f3c
TT
53892019-01-25 Tom Tromey <tom@tromey.com>
5390
5391 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5392
0747795c
TT
53932019-01-25 Tom Tromey <tom@tromey.com>
5394
5395 * win32-low.c: Fix common/ includes.
5396 * win32-i386-low.c: Fix common/ includes.
5397 * tracepoint.c: Fix common/ includes.
5398 * thread-db.c: Fix common/ includes.
5399 * target.h: Fix common/ includes.
5400 * symbol.c: Fix common/ includes.
5401 * spu-low.c: Fix common/ includes.
5402 * server.h: Fix common/ includes.
5403 * server.c: Fix common/ includes.
5404 * remote-utils.c: Fix common/ includes.
5405 * regcache.h: Fix common/ includes.
5406 * regcache.c: Fix common/ includes.
5407 * nto-x86-low.c: Fix common/ includes.
5408 * notif.h: Fix common/ includes.
5409 * mem-break.h: Fix common/ includes.
5410 * lynx-low.c: Fix common/ includes.
5411 * lynx-i386-low.c: Fix common/ includes.
5412 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5413 * linux-x86-low.c: Fix common/ includes.
5414 * linux-low.c: Fix common/ includes.
5415 * inferiors.h: Fix common/ includes.
5416 * i387-fp.c: Fix common/ includes.
5417 * hostio.c: Fix common/ includes.
5418 * hostio-errno.c: Fix common/ includes.
5419 * gdbthread.h: Fix common/ includes.
5420 * gdbreplay.c: Fix common/ includes.
5421 * fork-child.c: Fix common/ includes.
5422 * event-loop.c: Fix common/ includes.
5423 * ax.c:
5424 (enum gdb_agent_op): Fix common/ includes.
5425
be6d4f74
TT
54262019-01-21 Tom Tromey <tom@tromey.com>
5427
5428 * tracepoint.c: Fix includes.
5429 * remote-utils.c: Fix includes.
5430 * linux-x86-low.c: Fix includes.
5431
66d91b39
JB
54322019-01-01 Joel Brobecker <brobecker@adacore.com>
5433
5434 * gdbreplay.c (gdbreplay_version): Update copyright year in
5435 version message.
5436 * server.c (gdbserver_version): Likewise.
5437
754e3168
AH
54382018-12-05 Alan Hayward <alan.hayward@arm.com>
5439
5440 * linux-low.c (add_lwp): Switch ordering.
5441
d105de22
TT
54422018-11-29 Tom Tromey <tom@tromey.com>
5443
5444 * win32-low.c (win32_join): Take pid, not process.
5445 * target.h (struct target_ops) <join>: Change argument type.
5446 (join_inferior): Change argument name.
5447 * spu-low.c (spu_join): Take pid, not process.
5448 * server.c (handle_detach): Preserve pid before destroying
5449 process.
5450 * lynx-low.c (lynx_join): Take pid, not process.
5451 * linux-low.c (linux_join): Take pid, not process.
5452
50138245
AH
54532018-11-23 Alan Hayward <alan.hayward@arm.com>
5454
5455 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5456 (aarch64_cannot_fetch_register): Likewise.
5457 (struct linux_target_ops): Update references.
5458
64f57f3d
PFC
54592018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5460
5461 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5462
8d619c01
EBM
54632018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5464
5465 * configure.srv (ipa_ppc_linux_regobj): Add
5466 powerpc-isa207-htm-vsx32l-ipa.o and
5467 powerpc-isa207-htm-vsx64l-ipa.o.
5468 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5469 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5470 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5471 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5472 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5473 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5474 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5475 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5476 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5477 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5478 (init_registers_powerpc_isa207_htm_vsx32l)
5479 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5480 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5481 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5482 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5483 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5484 (ppc_store_tm_ctarregset): New functions.
5485 (ppc_regsets): Add entries for HTM regsets.
5486 (ppc_arch_setup): Set htm in features struct when needed. Set
5487 sizes for the HTM regsets.
5488 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5489 (initialize_low_arch): Call
5490 init_registers_powerpc_isa207_htm_vsx32l and
5491 init_registers_powerpc_isa207_htm_vsx64l.
5492 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5493 PPC_TDESC_ISA207_HTM_VSX.
5494 (initialize_low_tracepoint): Call
5495 init_registers_powerpc_isa207_htm_vsx32l and
5496 init_registers_powerpc_isa207_htm_vsx64l.
5497
232bfb86
EBM
54982018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5499
5500 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5501 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5502 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5503 (ppc_store_pmuregset): New functions.
5504 (ppc_regsets): Add entries for ebb and pmu regsets.
5505 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5506 pmu regsets are available. Set sizes for these regsets.
5507
f2cf6173
EBM
55082018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5509
5510 * configure.srv (ipa_ppc_linux_regobj): Add
5511 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5512 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5513 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5514 rs6000/powerpc-isa207-vsx32l.xml, and
5515 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5516 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5517 <PPC_TDESC_ISA207_VSX>: New enum value.
5518 (init_registers_powerpc_isa207_vsx32l): Declare.
5519 (init_registers_powerpc_isa207_vsx64l): Declare.
5520 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5521 (ppc_store_tarregset): New function.
5522 (ppc_regsets): Add entry for the TAR regset.
5523 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5524 size for the TAR regsets.
5525 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5526 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5527 and init_registers_powerpc_isa207_vsx64l.
5528 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5529 (initialize_low_tracepoint): Call
5530 init_registers_powerpc_isa207_vsx32l and
5531 init_registers_powerpc_isa207_vsx64l.
5532
7ca18ed6
EBM
55332018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5534 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5535
5536 * configure.srv (ipa_ppc_linux_regobj): Add
5537 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5538 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5539 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5540 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5541 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5542 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5543 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5544 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5545 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5546 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5547 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5548 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5549 (ppc_hwcap): Add comment.
5550 (ppc_hwcap2): New global.
5551 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5552 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5553 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5554 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5555 when needed. Set sizes for the the DSCR and PPR regsets.
5556 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5557 (initialize_low_arch): Call
5558 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5559 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5560 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5561 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5562 (initialize_low_tracepoint): Call
5563 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5564 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5565
5c849b22
PFC
55662018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5567
5568 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5569
8ecfd7bd
SDJ
55702018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5571 Simon Marchi <simark@simark.ca>
5572
5573 * acinclude.m4: Include "../selftest.m4".
5574 * configure: Regenerate.
5575 * configure.ac: Use "GDB_AC_SELFTEST".
5576 * configure.srv: Use "$enable_unittests" instead of
5577 "$development" when checking whether unit tests have been
5578 enabled.
5579 * server.c (captured_main): Update message informing that
5580 selftests have been disabled.
5581
96643e35
TT
55822018-10-04 Tom Tromey <tom@tromey.com>
5583
5584 * configure: Rebuild.
5585
da4ae14a
TT
55862018-10-04 Tom Tromey <tom@tromey.com>
5587
5588 * server.c (handle_status): Rename inner "thread".
5589 (process_serial_event): Declare "res" in 'm' case.
5590 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5591 (iterate_over_lwps): Rename inner "thread".
5592 (linux_qxfer_libraries_svr4): Rename inner "len".
5593 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5594
7c619dbd
GB
55952018-10-01 Gary Benson <gbenson@redhat.com>
5596
5597 * gdb_proc_service.h: Moved common code to
5598 common/gdb_proc_service.h.
5599
3795e814
GB
56002018-10-01 Gary Benson <gbenson@redhat.com>
5601
5602 * gdb_proc_service.h: Synchronize comments and whitespace with
5603 GDB's version of this file.
5604
49b036f1
TT
56052018-09-25 Tom Tromey <tom@tromey.com>
5606
5607 * configure: Rebuild.
5608 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5609
8ff03f0b
SM
56102018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5611
5612 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5613 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5614 ($(IPA_LIB)): Sort IPA_OBJS.
5615
a1cd91dc
SM
56162018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5617
5618 * Makefile.in: Remove references to $(ADD_DEPS).
5619
752312ba
TT
56202018-09-16 Tom Tromey <tom@tromey.com>
5621
5622 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5623 variables.
5624 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5625 variables.
5626
f1628857
TT
56272018-09-05 Tom Tromey <tom@tromey.com>
5628
5629 * configure: Rebuild.
5630
ad202fcc
SM
56312018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5632
5633 PR build/23399
5634 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5635
d3d8724a
TT
56362018-08-27 Tom Tromey <tom@tromey.com>
5637
5638 PR build/23087:
5639 * configure: Rebuild.
5640
b4f183d2
TT
56412018-08-27 Tom Tromey <tom@tromey.com>
5642
5643 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5644 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5645 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5646 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5647 (s390x_emit_stack_adjust): Add casts to unsigned char.
5648
4e2aa472
SM
56492018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5650
5651 PR gdb/23374
5652 PR gdb/23375
5653 * server.h (struct client_state) <disable_randomization>:
5654 Initialize to 1.
5655
cf4088a9
SM
56562018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5657
5658 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5659 variable.
5660 (mips_supply_ptrace_register): Likewise.
5661
a0de763e
TT
56622018-07-22 Tom Tromey <tom@tromey.com>
5663
5664 * configure: Rebuild.
5665
b0a7723d
TT
56662018-07-22 Tom Tromey <tom@tromey.com>
5667
5668 * win32-low.c (win32_create_inferior): Remove unused variables.
5669 * gdbreplay.c (remote_open): Remove unused variable.
5670 * remote-utils.c (remote_prepare): Remove unused variable.
5671 * x86-tdesc.h (X86_TDESC_H): Define.
5672 (amd64_expedite_regs): Define conditionally.
5673 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5674 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5675 * remote-utils.c (readchar): Remove unused variable.
5676
a780ef4f
PA
56772018-07-13 Pedro Alves <palves@redhat.com>
5678
5679 * linux-low.c (linux_kill): Change parameter to process_info
5680 pointer instead of pid. Adjust.
5681 * lynx-low.c (lynx_kill): Likewise.
5682 * nto-low.c (nto_kill): Likewise.
5683 * spu-low.c (spu_kill): Likewise.
5684 * win32-low.c (win32_kill): Likewise.
5685 * server.c (handle_v_kill, kill_inferior_callback)
5686 (detach_or_kill_for_exit): Adjust.
5687 * target.c (kill_inferior): Change parameter to process_info
5688 pointer instead of pid. Adjust.
5689 * target.h (struct target_ops) <kill>: Change parameter to
5690 process_info pointer instead of pid. Adjust all implementations
5691 and callers.
5692 (kill_inferior): Likewise.
5693
ef2ddb33
PA
56942018-07-13 Pedro Alves <palves@redhat.com>
5695
5696 * linux-low.c (linux_detach, linux_join): Change parameter to
5697 process_info pointer instead of pid. Adjust.
5698 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5699 * nto-low.c (nto_detach): Likewise.
5700 * spu-low.c (spu_detach, spu_join): Likewise.
5701 * win32-low.c (win32_detach, win32_join): Likewise.
5702 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5703 * target.h (struct target_ops) <detach, join>: Change parameter to
5704 process_info pointer instead of pid. Adjust all implementations
5705 and callers.
5706 (detach_inferior, join_inferior): Rename 'pid' parameter to
5707 'proc'.
5708
c7ab0aef
SDJ
57092018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5710 Jan Kratochvil <jan.kratochvil@redhat.com>
5711 Paul Fertser <fercerpav@gmail.com>
5712 Tsutomu Seki <sekiriki@gmail.com>
5713
5714 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5715 (OBS): Add 'common/netstuff.o'.
5716 (GDBREPLAY_OBS): Likewise.
5717 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5718 (remote_open): Implement support for IPv6
5719 connections.
5720 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5721 and 'wspiapi.h'.
5722 (handle_accept_event): Accept connections from IPv6 sources.
5723 (remote_prepare): Handle IPv6-style hostnames; implement
5724 support for IPv6 connections.
5725 (remote_open): Implement support for printing connections from
5726 IPv6 sources.
5727
31445d10
PA
57282018-07-11 Pedro Alves <palves@redhat.com>
5729
5730 PR gdb/23377
5731 * mem-break.c (any_persistent_commands): Add process_info
5732 parameter and use it instead of relying on the current process.
5733 Change return type to bool.
5734 * mem-break.h (any_persistent_commands): Add process_info
5735 parameter and change return type to bool.
5736 * server.c (handle_detach): Remove require_running_or_return call.
5737 Look up the process_info for the process we're about to detach.
5738 If not found, return back error to GDB. Adjust
5739 any_persistent_commands call to pass down a process pointer.
5740
cb197132
PA
57412018-07-11 Pedro Alves <palves@redhat.com>
5742
5743 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5744 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5745 instead of collect_register_by_name.
5746 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5747 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5748
1b919490
VB
57492018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5750 Pedro Alves <palves@redhat.com>
5751
5752 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5753
d7e15655
TT
57542018-07-03 Tom Tromey <tom@tromey.com>
5755
5756 * linux-low.c: Update.
5757 * lynx-low.c: Update.
5758 * mem-break.c: Update.
5759 * nto-low.c: Update.
5760 * remote-utils.c: Update.
5761 * server.c: Update.
5762 * spu-low.c: Update.
5763 * target.c: Update.
5764 * win32-low.c: Update.
5765
26a57c92
TT
57662018-07-03 Tom Tromey <tom@tromey.com>
5767
5768 * server.c: Update.
5769
0e998d96
TT
57702018-07-03 Tom Tromey <tom@tromey.com>
5771
5772 * linux-low.c: Update.
5773
cc6bcb54
TT
57742018-07-03 Tom Tromey <tom@tromey.com>
5775
5776 * target.c: Update.
5777
e38504b3
TT
57782018-07-03 Tom Tromey <tom@tromey.com>
5779
5780 * linux-low.c: Update.
5781 * linux-mips-low.c: Update.
5782 * lynx-low.c: Update.
5783 * nto-low.c: Update.
5784 * remote-utils.c: Update.
5785 * server.c: Update.
5786 * spu-low.c: Update.
5787 * target.c: Update.
5788 * thread-db.c: Update.
5789
e99b03dc
TT
57902018-07-03 Tom Tromey <tom@tromey.com>
5791
5792 * linux-low.c: Update.
5793 * linux-mips-low.c: Update.
5794 * lynx-low.c: Update.
5795 * mem-break.c: Update.
5796 * nto-low.c: Update.
5797 * remote-utils.c: Update.
5798 * server.c: Update.
5799 * spu-low.c: Update.
5800 * target.c: Update.
5801 * tracepoint.c: Update.
5802
f2907e49
TT
58032018-07-03 Tom Tromey <tom@tromey.com>
5804
5805 * linux-low.c: Update.
5806 * linux-ppc-low.c: Update.
5807 * linux-x86-low.c: Update.
5808 * proc-service.c: Update.
5809 * server.c: Update.
5810 * spu-low.c: Update.
5811 * thread-db.c: Update.
5812 * win32-low.c: Update.
5813
fd79271b
TT
58142018-07-03 Tom Tromey <tom@tromey.com>
5815
5816 * linux-low.c: Update.
5817 * lynx-low.c: Update.
5818 * nto-low.c: Update.
5819 * remote-utils.c: Update.
5820 * spu-low.c: Update.
5821 * thread-db.c: Update.
5822 * win32-low.c: Update.
5823
c0867626
SDJ
58242018-06-29 Joel Brobecker <brobecker@adacore.com>
5825
5826 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5827 parameter in call to 'amd64_create_target_description'.
5828
2512d7ef
JK
58292018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5830
5831 * x86-tdesc.h: Remove executable permission flag.
5832
d0ac1c44
SM
58332018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5834
5835 * configure.ac: Remove AC_PREREQ, add missing quoting.
5836 * configure: Re-generate.
5837 * config.in: Re-generate.
5838 * aclocal.m4: Re-generate.
5839
c4eb05ff
SM
58402018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5841
5842 * tracepoint.h (current_traceframe): Remove declaration.
5843
02895270
AH
58442018-06-18 Alan Hayward <alan.hayward@arm.com>
5845
5846 * linux-aarch64-low.c (is_sve_tdesc): New function.
5847 (aarch64_sve_regs_copy_to_regcache): Likewise.
5848 (aarch64_sve_regs_copy_from_regcache): Likewise.
5849 (aarch64_regs_info): Add SVE checks.
5850 (initialize_low_arch): Initialize SVE.
5851
e9902bfc
AH
58522018-06-18 Alan Hayward <alan.hayward@arm.com>
5853
5854 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5855
fefa175e
AH
58562018-06-11 Alan Hayward <alan.hayward@arm.com>
5857
5858 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5859 (initialize_low_tracepoint): Likewise
5860 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5861 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5862 param.
5863 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5864 checks.
5865 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5866
b91ad3ff
AH
58672018-06-11 Alan Hayward <alan.hayward@arm.com>
5868
5869 * server.h (PBUFSIZ): Increase size
5870
f868386e
AH
58712018-06-11 Alan Hayward <alan.hayward@arm.com>
5872
5873 * regcache.c (regcache::raw_compare): New function.
5874 * regcache.h (regcache::raw_compare): New declaration.
5875
9c861883
AH
58762018-06-11 Alan Hayward <alan.hayward@arm.com>
5877
5878 * regcache.c (new_register_cache): Use new.
5879 (free_register_cache): Use delete.
5880 (register_data): Use const.
5881 (supply_register): Move body inside regcache.
5882 (regcache::raw_supply): New override function.
5883 (collect_register): Move body inside regcache.
5884 (regcache::raw_collect): New override function.
5885 (regcache::get_register_status): New override function.
5886 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5887
40591844
TT
58882018-06-09 Tom Tromey <tom@tromey.com>
5889
5890 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5891 declare queue.
5892 (event_queue): Use std::queue.
5893 (gdb_event_xfree): Remove.
5894 (initialize_event_loop, process_event, wait_for_event): Update.
5895
6341380d
SC
58962018-06-08 Stan Cox <scox@redhat.com>
5897
5898 * win32-low.c (win32_create_inferior): last_ptid and last_status
5899 moved to client_state.
5900
03349c93
PA
59012018-06-08 Pedro Alves <palves@redhat.com>
5902
5903 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5904 common/common-exceptions.o, common/common-utils.o,
5905 common/errors.o, common/print-utils.o and utils.o.
5906 * gdbreplay.c: Include "common-defs.h" instead of the two
5907 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5908 string.h or alloca.h.
5909 (perror_with_name): Delete.
5910 (remote_open): Use xstrdup instead of strdup.
5911 (main): Rename to ...
5912 (captured_main): ... this.
5913 (main): New.
5914
8dcc53b3
TT
59152018-06-08 Tom Tromey <tom@tromey.com>
5916
5917 * linux-low.c (linux_low_read_btrace): Update.
5918
c12a5089
SC
59192018-06-04 Stan Cox <scox@redhat.com>
5920
5921 * server.h (struct client_state): New.
5922 * server.c (cont_thread, general_thread, multi_process)
5923 (report_fork_events, report_vfork_events, report_exec_events)
5924 (report_thread_events, swbreak_feature, hwbreak_feature)
5925 (vCont_supported, disable_randomization, pass_signals)
5926 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5927 Moved to client_state.
5928 * remote-utils.c (remote_debug, noack_mode)
5929 (transport_is_reliable): Moved to client_state.
5930 * tracepoint.c (current_traceframe): Moved to client_state.
5931
5932 Update all callers.
5933 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5934 linux-low.c, remote-utils.h, target.c: Use client_state.
5935
122394f1
AH
59362018-05-31 Alan Hayward <alan.hayward@arm.com>
5937
5938 * configure.srv: Add new c/h file.
5939
95228a0d
AH
59402018-05-31 Alan Hayward <alan.hayward@arm.com>
5941
5942 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5943 null VQ.
5944
d8dab6c3
MR
59452018-05-25 Maciej W. Rozycki <macro@mips.com>
5946
5947 * gdb.arch/mips-fpregset-core.exp: New test.
5948 * gdb.arch/mips-fpregset-core.c: New test source.
5949
81e25b7c
EK
59502018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5951
5952 PR server/23198
5953 * hostio.c (require_int): Do not report overflow for integers
5954 between 0xfffffff and 0x7fffffff.
5955
7e947ad3
MR
59562018-05-22 Maciej W. Rozycki <macro@mips.com>
5957
5958 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5959 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5960 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5961 functions.
5962 (the_low_target): Wire them.
5963
1d75a658
PFC
59642018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5965
5966 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5967 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5968 mode. Call collect_register_by_name with vscr using
5969 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5970 (ppc_store_vrregset): Add and set vscr_offset variable as in
5971 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5972 vscr_offset.
5973
d078308a
PFC
59742018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5975
5976 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5977 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5978 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5979
7273b5fc
PFC
59802018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5981
5982 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5983 (ppc_store_vsxregset): Likewise.
5984 (ppc_fill_vrregset): Likewise.
5985 (ppc_store_vrregset): Likewise.
5986 (ppc_fill_evrregset): Likewise.
5987 (ppc_store_evrregset): Likewise.
5988 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5989 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5990 needed.
5991
2e077f5e
PFC
59922018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5993
5994 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5995 wordsize of the inferior. Call ppc_linux_target_wordsize.
5996
bd64614e
PFC
59972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5998
5999 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6000 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6001 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6002 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6003 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6004 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6005 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6006 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6007 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6008 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6009 (tdesc_powerpc_e500l): Remove.
6010 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6011 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6012 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6013 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6014 linux-ppc-tdesc.h.
6015 (ppc_arch_setup): Remove target description matching code. Fill a
6016 ppc_linux_features struct and call ppc_linux_match_description
6017 with it.
6018
75d74cca
MR
60192018-05-22 Maciej W. Rozycki <macro@mips.com>
6020
6021 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6022 width of the requested register exceeds the width of the
6023 `ptrace' data type.
6024 (mips_cannot_store_register): Likewise.
6025
e4439e43
MR
60262018-05-21 Maciej W. Rozycki <macro@mips.com>
6027
6028 * linux-mips-low.c (mips_fetch_register): New function. Update
6029 preceding comment.
6030 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6031 (the_low_target): Wire `mips_fetch_register'.
6032
55271bf9
JB
60332018-05-10 Joel Brobecker <brobecker@adacore.com>
6034
6035 * lynx-i386-low.c (LYNXOS_178): New macro.
6036 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6037 the layout on LynxOS-178.
6038 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6039 handle floating point registers that are not supported by
6040 LynxOS-178.
6041
1a34f210
TT
60422018-05-10 Tom Tromey <tom@tromey.com>
6043
6044 * configure: Rebuild.
6045
190852c8
JB
60462018-05-10 Joel Brobecker <brobecker@adacore.com>
6047
6048 PR server/23158:
6049 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6050 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6051 Use it to set the expedite_regs field in the given tdesc.
6052 * x86-tdesc.h: New file.
6053 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6054 Adjust following the addition of the new expedite_regs parameter
6055 to init_target_desc.
6056 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6057 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6058 (i386_linux_read_description, amd64_linux_read_description):
6059 Adjust following the addition of the new expedite_regs parameter
6060 to init_target_desc.
6061 * lynx-i386-low.c: #include "x86-tdesc.h".
6062 (lynx_i386_arch_setup): Adjust following the addition of the new
6063 expedite_regs parameter to init_target_desc.
6064 * nto-x86-low.c: #include "x86-tdesc.h".
6065 (nto_x86_arch_setup): Adjust following the addition of the new
6066 expedite_regs parameter to init_target_desc.
6067 * win32-i386-low.c: #include "x86-tdesc.h".
6068 (i386_arch_setup): Adjust following the addition of the new
6069 expedite_regs parameter to init_target_desc.
6070
7dbac825
JB
60712018-05-10 Joel Brobecker <brobecker@adacore.com>
6072
6073 PR server/23158:
6074 * win32-low.c (win32_create_inferior): Add call to my_wait
6075 setting last_status global.
6076
906994d9
JB
60772018-05-10 Joel Brobecker <brobecker@adacore.com>
6078
6079 PR server/23158:
6080 * win32-low.c (create_process): Only call gdb_tilde_expand if
6081 inferior_cwd is not NULL.
6082
8ee22052
AB
60832018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6084
6085 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6086 registers to the cache if their values have changed.
6087 (i387_xsave_to_cache): Provide default values for x87 control
6088 registers when these features are available, but disabled.
6089 * regcache.c (supply_register_by_name_zeroed): New function.
6090 * regcache.h (supply_register_by_name_zeroed): Declare new
6091 function.
6092
aff689d3
TT
60932018-05-07 Tom Tromey <tom@tromey.com>
6094
6095 * configure: Rebuild.
6096
85e26832
TT
60972018-05-04 Tom Tromey <tom@tromey.com>
6098
6099 * configure: Rebuild.
6100
a3b60e45
JK
61012018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6102 Pedro Alves <palves@redhat.com>
6103
6104 * linux-aarch64-low.c (aarch64_stopped_data_address):
6105 Likewise.
6106
632e107b
TT
61072018-04-27 Tom Tromey <tom@tromey.com>
6108
6109 * configure: Rebuild.
6110
458412c3
TT
61112018-04-23 Tom Tromey <tom@tromey.com>
6112
6113 * configure: Rebuild.
6114
f31c089e
SM
61152018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6116
6117 * Makefile.in (depcomp): Add "..".
6118 (all_deps_files): New and use it.
6119
b319b098
AH
61202018-04-18 Alan Hayward <alan.hayward@arm.com>
6121
6122 * configure.srv (aarch64*-*-linux*): Don't include xml.
6123 (i[34567]86-*-cygwin*): Likewise.
6124 (i[34567]86-*-linux*): Likewise.
6125 (i[34567]86-*-lynxos*): Likewise.
6126 (i[34567]86-*-mingw32ce*): Likewise.
6127 (i[34567]86-*-mingw*): Likewise.
6128 (i[34567]86-*-nto*): Likewise.
6129 (tic6x-*-uclinux): Likewise.
6130 (x86_64-*-linux*): Likewise.
6131 (x86_64-*-mingw*): Likewise.
6132 (x86_64-*-cygwin*): Likewise.
6133
3b74854b
AH
61342018-04-18 Alan Hayward <alan.hayward@arm.com>
6135
6136 * tdesc.c: Remove xml parameter.
6137
e98577a9
AH
61382018-04-18 Alan Hayward <alan.hayward@arm.com>
6139
6140 * server.c (get_features_xml): Remove cast.
6141 * tdesc.c (void target_desc::accept): Fill in function.
6142 (tdesc_get_features_xml): Remove old xml creation.
6143 (print_xml_feature::visit_pre): Add xml vistor.
6144 * tdesc.h (struct target_desc): Make xmltarget mutable.
6145 (tdesc_get_features_xml): Remove declaration.
6146
d278f585
AH
61472018-04-18 Alan Hayward <alan.hayward@arm.com>
6148
6149 * tdesc.c (tdesc_architecture_name): Add new function.
6150 (tdesc_osabi_name): Likewise.
6151 (tdesc_get_features_xml): Use new functions.
6152
eee8a18d
AH
61532018-04-18 Alan Hayward <alan.hayward@arm.com>
6154
6155 * tdesc.c (tdesc_create_flags): Remove.
6156 (tdesc_add_flag): Likewise.
6157 (tdesc_named_type): Likewise.
6158 (tdesc_create_union): Likewise.
6159 (tdesc_create_struct): Likewise.
6160 (tdesc_create_vector): Likewise.
6161 (tdesc_add_bitfield): Likewise.
6162 (tdesc_add_field): Likewise.
6163 (tdesc_set_struct_size): Likewise.
6164
82ec9bc7
AH
61652018-04-18 Alan Hayward <alan.hayward@arm.com>
6166
6167 * tdesc.c (~target_desc): Remove implictly deleted items.
6168 (init_target_desc): Iterate all features.
6169 (tdesc_get_features_xml): Use vector.
6170 (tdesc_create_feature): Create feature.
6171 * tdesc.h (tdesc_feature) Remove
6172 (target_desc): Add features.
6173
ea3e7d71
AH
61742018-04-18 Alan Hayward <alan.hayward@arm.com>
6175
6176 * Makefile.in: Add common/tdesc.c
6177 * tdesc.c (init_target_desc): init all reg_defs from register
6178 vector.
6179 (tdesc_create_reg): Create tdesc_reg.
6180 * tdesc.h (tdesc_feature): Add register vector.
6181
17d08cd4
SM
61822018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6183
6184 * tdesc.h (struct target_desc) <features>: Change type to
6185 std::vector<std::string>.
6186 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6187 changes.
6188 (tdesc_get_features_xml): Likewise.
6189 (tdesc_create_feature): Likewise.
6190
5cd3e386
AH
61912018-03-26 Alan Hayward <alan.hayward@arm.com>
6192
6193 * regcache.c (find_register_by_number): Return a ref.
6194 (find_regno): Use references.
6195 (register_size): Likewise.
6196 (register_data): Likewise.
6197 * tdesc.c (target_desc::~target_desc): Remove free calls.
6198 (target_desc::operator==): Use std::vector compare.
6199 (init_target_desc): Use reference.
6200 (tdesc_create_reg): Use reg constructors.
6201 * tdesc.h (struct target_desc): Replace pointer with object.
6202
dff7492c
AH
62032018-03-23 Alan Hayward <alan.hayward@arm.com>
6204
6205 * regcache.c (find_register_by_number): Make static.
6206 (find_regno): Use find_register_by_number
6207 * regcache.h (struct reg): Remove declaration.
6208
d80e5242
AH
62092018-03-23 Alan Hayward <alan.hayward@arm.com>
6210
6211 * tdesc.c (target_desc::~target_desc): Move to here.
6212 (target_desc::operator==): Likewise.
6213 * tdesc.h (target_desc::~target_desc): Move from here.
6214 (target_desc::operator==): Likewise.
6215
f69c5afb
AA
62162018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6217
6218 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6219
ce29f843
AA
62202018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6221
6222 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6223 S390_TDESC_GS.
6224 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6225 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6226 and init_registers_s390_gs_linux64.
6227
c49bd90b
AA
62282018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6229
6230 * linux-s390-low.c (s390_fill_gs): Remove function.
6231 (s390_fill_gsbc): Remove function.
6232 (s390_regsets): Set fill functions for the guarded storage regsets
6233 to NULL.
6234
7edb9bd3
AA
62352018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6236
6237 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6238 the word size. Add comment.
6239 (s390_get_wordsize): New function.
6240 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6241 pswm with it. Instead, use s390_get_wordsize to determine the
6242 word size first and derive the correct tdesc from that directly.
6243
39be3c7e
SM
62442018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6245
6246 * Makefile.in: Include silent-rules.mk.
6247 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6248 (COMPILE): Add ECHO_CXX.
6249 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6250 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6251 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6252 (version-generated.c): Add ECHO_GEN.
6253 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6254 (IPAGENT_COMPILE): Add ECHO_CXX.
6255 (%-generated.c): Add ECHO_REGDAT.
6256
3ae9ce5d
TT
62572018-03-14 Tom Tromey <tom@tromey.com>
6258
6259 PR cli/14977:
6260 * ax.c (ax_printf): Special case for NULL.
6261
e6a58aa8
SM
62622018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6263
6264 * linux-low.c (linux_qxfer_libraries_svr4): Use
6265 xml_escape_text_append.
6266
f6e8a41e
SM
62672018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6268
6269 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6270
b9671caf
SM
62712018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6272
6273 * server.c (handle_general_set): Remove unnecessary xstrdup.
6274
e80aaf61
SM
62752018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6276
6277 * server.c (parse_debug_format_options): Adjust to
6278 delim_string_to_char_ptr_vec changes.
6279 * thread-db.c (thread_db_load_search): Adjust to
6280 dirnames_to_char_ptr_vec changes.
6281
b1223e78
MM
62822018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6283
6284 * target.h (target_enable_btrace, target_disable_btrace)
6285 (target_read_btrace, target_read_btrace_conf): Turn macro into
6286 inline function. Throw error if target method is not defined.
6287 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6288 check for btrace target method. Be prepared to handle exceptions
6289 from btrace target methods.
6290
81561546
SDJ
62912018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6292
6293 * server.c (captured_main): Change order of error message printed
6294 when the current working directory cannot be found.
6295
25e3c82c
SDJ
62962018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6297
6298 * server.c: Include "filenames.h" and "pathstuff.h".
6299 (program_name): Delete variable.
6300 (program_path): New anonymous class.
6301 (get_exec_wrapper): Use "program_path" instead of
6302 "program_name".
6303 (handle_v_run): Likewise.
6304 (captured_main): Likewise.
6305 (process_serial_event): Likewise.
6306
b4987c95
SDJ
63072018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6308
6309 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6310 (OBJS): Add "pathstuff.o".
6311 * server.c (current_directory): New global variable.
6312 (captured_main): Initialize "current_directory".
6313
f46cd62a
AH
63142018-02-26 Alan Hayward <alan.hayward@arm.com>
6315
6316 * tdesc.c: Use common/tdesc.h.
6317 * tdesc.h: Likewise.
6318
a543c5ca
AH
63192018-02-20 Alan Hayward <alan.hayward@arm.com>
6320 Simon Marchi <simon.marchi@ericsson.com>
6321
6322 * Makefile.in: Switch order of make rules.
6323
b5884fa7
AH
63242018-02-19 Alan Hayward <alan.hayward@arm.com>
6325
6326 * Makefile.in: Add common directory in build.
6327 * configure.ac: Add common reference.
6328 * configure: Regenerate.
6329
de6242d3
MM
63302018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6331
6332 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6333 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6334 * spu-low.c (spu_target_ops): Likewise.
6335 * win32-low.c (win32_target_ops): Likewise.
6336 * server.c (supported_btrace_packets): Report packets unconditionally.
6337 * target.h (target_ops) <supports_btrace>: Remove.
6338 (target_supports_btrace): Remove.
6339
9ee23a85
MM
63402018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6341
6342 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6343 (handle_btrace_disable): Change return type to void. Use exceptions
6344 to report errors.
6345 (handle_btrace_general_set): Catch exception and copy message to
6346 return message.
6347
8ce47547
TT
63482018-02-08 Tom Tromey <tom@tromey.com>
6349
6350 * linux-low.c (install_software_single_step_breakpoints): Use
6351 make_scoped_restore.
6352 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6353 (do_restore_current_thread_cleanup): Remove.
6354 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6355 declare.
6356
45dd3607
TT
63572018-02-08 Tom Tromey <tom@tromey.com>
6358
6359 * mem-break.c (set_raw_breakpoint_at): Use
6360 gdb::unique_xmalloc_ptr.
6361
e671cd59
PA
63622018-01-30 Pedro Alves <palves@redhat.com>
6363
6364 PR gdb/13211
6365 * target.c (target_terminal::terminal_state): Rename to ...
6366 (target_terminal::m_terminal_state): ... this.
6367
a0aad537
JC
63682018-01-19 James Clarke <jrtc27@jrtc27.com>
6369
6370 * linux-low.c (handle_extended_wait): Surround call to
6371 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6372
4d9b86e1
SM
63732018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6374
6375 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6376 linux_ptrace_attach_fail_reason_string now returning an
6377 std::string.
6378 (linux_attach): Likewise.
6379 * thread-db.c (attach_thread): Likewise.
6380
f517c180
EA
63812018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6382
6383 PR gdb/21559
6384 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6385 checking for fs_base/gs_base fields in struct user_regs_struct.
6386 * configure: Regenerate.
6387
9a70f35c
YQ
63882018-01-16 Yao Qi <yao.qi@linaro.org>
6389
6390 PR gdb/18749
6391 * linux-low.c (fetch_register): Call supply_register instead of
6392 error.
6393
605fd3c6
YQ
63942018-01-08 Yao Qi <yao.qi@linaro.org>
6395 Simon Marchi <simon.marchi@ericsson.com>
6396
6397 * Makefile.in (OBS): Remove selftest.o.
6398 * configure.ac: Set srv_selftest_objs if $development is true.
6399 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6400 * configure: Re-generated.
6401 * server.c (captured_main): Wrap variable selftest_filter with
6402 GDB_SELF_TEST.
6403
2cc05030
SM
64042018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6405
6406 * server.c (parse_debug_format_options): Return std::string.
6407 (handle_monitor_command, captured_main): Adjust.
6408
e379cee6
PA
64092018-01-05 Pedro Alves <palves@redhat.com>
6410
6411 PR gdb/18653
6412 * server.c (captured_main): Pass quiet=false to
6413 save_original_signals_state.
6414
82e1e79a
JB
64152018-01-01 Joel Brobecker <brobecker@adacore.com>
6416
6417 * gdbreplay.c (gdbreplay_version): Update copyright year in
6418 version message.
6419 * server.c (gdbserver_version): Likewise.
6420
8e481c3b
TT
64212017-12-08 Tom Tromey <tom@tromey.com>
6422
6423 * ax.c (ax_printf): Update.
6424
a8806230
YQ
64252017-12-07 Yao Qi <yao.qi@linaro.org>
6426
6427 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6428 aarch64_linux_read_description.
6429 * linux-amd64-ipa.c (idx2mask): New array.
6430 (get_ipa_tdesc): Move idx2mask out.
6431 (initialize_low_tracepoint): Initialize target descriptions.
6432 * linux-i386-ipa.c (idx2mask): New array.
6433 (get_ipa_tdesc): Move idx2mask out.
6434 (initialize_low_tracepoint): Initialize target descriptions.
6435
d4a0e8b5
SM
64362017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6437
6438 * tdesc.c (struct tdesc_type): Change return type.
6439 (tdesc_add_flag): Change parameter type.
6440 (tdesc_add_bitfield): Likewise.
6441 (tdesc_add_field): Likewise.
6442 (tdesc_set_struct_size): Likewise.
6443
798a7429
SM
64442017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6445
6446 * regcache.c (registers_to_string): Remove unused variable.
6447
c0e15c9b
SM
64482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6449
6450 * inferiors.c (for_each_inferior_with_data): Remove.
6451 * inferiors.h (for_each_inferior_with_data): Remove.
6452 * server.c (handle_qxfer_threads_worker): Change parameter type.
6453 (handle_qxfer_threads_proper): Use for_each_thread.
6454
f0045347
SM
64552017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6456
6457 * inferiors.c (for_each_inferior): Remove.
6458 (clear_inferiors): Use for_each_thread.
6459 * inferiors.h (for_each_inferior): Remove.
6460 * linux-low.c (linux_wait_for_event_filtered): Use
6461 for_each_thread.
6462 (linux_stabilize_threads): Likewise.
6463 * regcache.c (regcache_release): Likewise.
6464 * server.c (gdb_wants_all_threads_stopped): Likewise.
6465 (clear_pending_status_callback): Remove.
6466 (handle_status): Use for_each_thread.
6467 (captured_main): Likewise.
6468 * win32-low.c (child_init_thread_list): Likewise.
6469 (win32_clear_inferiors): Likewise.
6470 (fake_breakpoint_event): Likewise.
6471
9521758b
SM
64722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6473
6474 * inferiors.h (find_inferior): Remove.
6475 * inferiors.c (find_inferior): Remove.
6476
8f86d7aa
SM
64772017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6478
6479 * linux-low.c (resume_status_pending_p): Update comment.
6480 (need_step_over_p): Update comment.
6481
e2b44075
SM
64822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * linux-low.c (proceed_one_lwp): Return void, change parameter
6485 type.
6486 (unsuspend_and_proceed_one_lwp): Likewise.
6487 (proceed_all_lwps): Use for_each_thread.
6488 (unstop_all_lwps): Likewise.
6489
c80825ff
SM
64902017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6491
6492 * linux-low.c (linux_resume_one_thread): Return void, take
6493 parameter directly.
6494 (linux_resume): Use for_each_thread.
6495
df3e4dbe
SM
64962017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6497
6498 * linux-low.c (send_sigstop_callback): Return void, change
6499 parameter type. Rename to...
6500 (send_sigstop): ... this.
6501 (suspend_and_send_sigstop_callback): Return void, change parameter
6502 type. Rename to...
6503 (suspend_and_send_sigstop): ... this.
6504 (stop_all_lwps): Use for_each_thread.
6505
5a6b0a41
SM
65062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6507
6508 * linux-low.c (lwp_running): Return bool, remove unused
6509 argument.
6510 (linux_stabilize_threads): Use find_thread.
6511
39a64da5
SM
65122017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6513
6514 * linux-low.c (select_singlestep_lwp_callback): Remove.
6515 (count_events_callback): Remove.
6516 (select_event_lwp_callback): Remove.
6517 (select_event_lwp): Use find_thread/for_each_thread.
6518
a1385b7b
SM
65192017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6520
6521 * linux-low.c (not_stopped_callback): Return bool, take filter
6522 argument directly.
6523 (linux_wait_for_event_filtered): Use find_thread.
6524 (linux_wait_1): Likewise.
6525
454296a2
SM
65262017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6527
6528 * linux-low.c (same_lwp): Remove.
6529 (find_lwp_pid): Use find_thread.
6530
6b2a85da
SM
65312017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6532
6533 * linux-low.c (delete_lwp_callback): Remove.
6534 (linux_mourn): Use for_each_thread.
6535
798a38e8
SM
65362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6537
6538 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6539 args parameter, don't check for pid.
6540 (linux_detach): Use for_each_thread.
6541
e4eb0dec
SM
65422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6543
6544 * linux-low.c (struct counter): Remove.
6545 (second_thread_of_pid_p): Remove.
6546 (last_thread_of_process_p): Use find_thread.
6547
83e1b6c1
SM
65482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6549
6550 * inferiors.c (find_inferior_in_random): Remove.
6551 * inferiors.h (find_inferior_in_random): Remove.
6552 * linux-low.c (status_pending_p_callback): Return bool, accept
6553 parameter ptid directly.
6554 (linux_wait_for_event_filtered): Use find_thread_in_random.
6555 (linux_wait_1): Likewise.
6556
8dc7b443
SM
65572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6558
6559 * inferiors.c (find_inferior_id): Remove.
6560 (find_thread_ptid): Move implemention from find_inferior_id to
6561 here.
6562 * inferiors.h (find_inferior_id): Remove.
6563 * server.c (handle_status): Use find_thread_ptid.
6564 (process_serial_event): Likewise.
6565 * thread-db.c (find_one_thread): Likewise.
6566 (thread_db_thread_handle): Likewise.
6567 * win32-low.c (thread_rec): Likewise.
6568 (child_delete_thread): Likewise.
6569 (win32_thread_alive): Likewise.
6570 (get_child_debug_event): Likewise.
6571
da25033c
SM
65722017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6573
6574 * linux-mips-low.c (update_watch_registers_callback): Return
6575 void, remove pid_p parameter, don't check for pid.
6576 (mips_insert_point, mips_remove_point): Use for_each_thread.
6577
c91bb56b
SM
65782017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6579
6580 * lynx.low (lynx_delete_thread_callback): Remove.
6581 (lynx_mourn): Use for_each_thread.
6582
634a3254
SM
65832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6584
6585 * regcache.c (regcache_invalidate_one): Remove.
6586 (regcache_invalidate_pid): use for_each_thread.
6587
41272101
TT
65882017-11-26 Tom Tromey <tom@tromey.com>
6589
6590 * linux-low.c (linux_create_inferior): Update.
6591
f5291a6f
UW
65922017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6593
6594 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6595
6654d750
AH
65962017-11-24 Alan Hayward <alan.hayward@arm.com>
6597
6598 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6599 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6600 * linux-aarch64-tdesc-selftest.c: New file.
6601 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6602
66032017-11-24 Alan Hayward <alan.hayward@arm.com>
6604
6605 * configure.srv: Add new file.
6606 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6607 * linux-aarch64-tdesc-selftest.c: New file.
6608 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6609
49bdb7ee
AH
66102017-11-24 Alan Hayward <alan.hayward@arm.com>
6611
6612 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6613 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6614 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6615
d6d7ce56
AH
66162017-11-24 Alan Hayward <alan.hayward@arm.com>
6617
6618 * configure.srv: Add new files.
6619 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6620 aarch64_linux_read_description.
6621 * linux-aarch64-low.c (aarch64_linux_read_description):
6622 Merge with aarch64_arch_setup.
6623 (aarch64_arch_setup): Call aarch64_linux_read_description.
6624 * linux-aarch64-tdesc.c: New file.
6625 * linux-aarch64-tdesc.h: New file.
6626
506fe5f4
YQ
66272017-11-24 Yao Qi <yao.qi@linaro.org>
6628
6629 * configure.srv: Set $srv_regobj for tic6x-linux.
6630 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6631 (tic6x_read_description): Move some code to tic6x_arch_setup.
6632 (tic6x_tdesc_test): New function.
6633 (initialize_low_arch): Call selftests::register_test.
6634
29f9a567
YQ
66352017-11-22 Yao Qi <yao.qi@linaro.org>
6636
6637 * remote-utils.c (prepare_resume_reply): Use memcpy.
6638
578290ec
SM
66392017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6640
6641 * linux-low.c (kill_one_lwp_callback): Return void, take
6642 argument directly, don't filter on pid.
6643 (linux_kill): Use for_each_thread.
6644
eca55aec
SM
66452017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6646
6647 * linux-low.c (need_step_over_p): Return bool, remove dummy
6648 argument.
6649 (linux_resume, proceed_all_lwps): Use find_thread.
6650
25c28b4d
SM
66512017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6652
6653 * linux-low.c (resume_status_pending_p): Return bool, remove
6654 flag_p argument.
6655 (linux_resume): Use find_thread.
6656
5fdda392
SM
66572017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6658
6659 * linux-low.c (struct thread_resume_array): Remove.
6660 (linux_set_resume_request): Return void, take arguments
6661 directly.
6662 (linux_resume): Use for_each_thread.
6663
fcb056a5
SM
66642017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6665
6666 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6667 return bool, remove data argument.
6668 (linux_stabilize_threads): Use find_thread.
6669
139720c5
SM
66702017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6671
6672 * linux-low.c (unsuspend_one_lwp): Remove.
6673 (unsuspend_all_lwps): Use for_each_thread, inline code from
6674 unsuspend_one_lwp.
6675
6d1e5673
SM
66762017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6677
6678 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6679 * linux-low.c (struct iterate_over_lwps_args): Remove.
6680 (iterate_over_lwps_filter): Remove.
6681 (iterate_over_lwps): Use find_thread.
6682
bbf550d5
SM
66832017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6684
6685 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6686 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6687 code from reset_lwp_ptrace_options_callback.
6688
00192f77
SM
66892017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6690
6691 * linux-arm-low.c (struct update_registers_data): Remove.
6692 (update_registers_callback): Return void, take arguments
6693 directly, don't check thread's pid.
6694 (arm_insert_point, arm_remove_point): Use for_each_thread.
6695
2bee2b6c
SM
66962017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6697
6698 * win32-low.c (continue_one_thread): Return void, take argument
6699 directly.
6700 (child_continue): Use for_each_thread.
6701
0b360f19
SM
67022017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6703
6704 * win32-i386-low.c (update_debug_registers_callback): Rename
6705 to ...
6706 (update_debug_registers): ... this, return void, remove pid_p arg.
6707 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6708
f27866ba
SM
67092017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6710
6711 * inferiors.h (struct process_info): Add constructor, initialize
6712 fields..
6713 <syscalls_to_catch>: Change type to std::vector<int>.
6714 * inferiors.c (add_process): Allocate process_info with new.
6715 (remove_process): Free process_info with delete.
6716 * linux-low.c (handle_extended_wait): Adjust.
6717 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6718 * server.c (handle_general_set): Adjust.
6719
e849ea89
PA
67202017-11-16 Pedro Alves <palves@redhat.com>
6721
6722 * remote-utils.c (remote_close): Block SIGIO signals instead of
6723 uninstalling the SIGIO handler.
6724
1d0aa65c
AH
67252017-11-16 Alan Hayward <alan.hayward@arm.com>
6726
6727 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6728
3491a34c
YQ
67292017-11-16 Yao Qi <yao.qi@linaro.org>
6730
6731 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6732 (tic6x_store_gregset): Likewise.
6733 (tic6x_usrregs_info): Move it up.
6734
a602f924
AH
67352017-11-15 Alan Hayward <alan.hayward@arm.com>
6736
6737 * Makefile.in: Update arch rules.
6738 * configure.srv: Explicitly mark arch/ files.
6739
5616b6c3
AS
67402017-11-13 Andreas Schwab <schwab@suse.de>
6741
6742 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6743 function.
6744 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6745
d1928160
PA
67462017-11-06 Pedro Alves <palves@redhat.com>
6747
6748 * config.in, configure: Regenerate.
6749
bac608e7
SM
67502017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6751
6752 * target.c (struct thread_search): Remove.
6753 (thread_search_callback): Remove.
6754 (prepare_to_access_memory): Use for_each_thread instead of
6755 find_inferior. Inline code from thread_search_callback.
6756
eaddb425
SM
67572017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6758
6759 * server.c (struct visit_actioned_threads_data): Remove.
6760 (visit_actioned_threads): Change prototype to take arguments
6761 directly.
6762 (resume): Use find_thread instead of find_inferior.
6763
99078d34
SM
67642017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6765
6766 * server.c (queue_stop_reply_callback): Change prototype, return
6767 void.
6768 (find_status_pending_thread_callback): Remove.
6769 (handle_status): Replace find_inferior with find_thread and
6770 for_each_thread.
6771
cc628f3d
AH
67722017-10-25 Alan Hayward <alan.hayward@arm.com>
6773
6774 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6775 with REGNO.
6776 (aarch64_store_gregset): Likewise.
6777 (aarch64_fill_fpregset): Likewise.
6778 (aarch64_store_fpregset): Likewise.
6779
4d3bb80e
SM
67802017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6781
6782 * gdbthread.h (find_thread, for_each_thread): New functions.
6783 * inferiors.c (thread_of_pid): Remove.
6784 (find_any_thread_of_pid): Use find_thread.
6785 * linux-low.c (num_lwps): Use for_each_thread.
6786
7a7cdfa0
YQ
67872017-10-17 Yao Qi <yao.qi@linaro.org>
6788
6789 * Makefile.in: Remove one rule.
6790 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6791
e675d170
YQ
67922017-10-17 Yao Qi <yao.qi@linaro.org>
6793
6794 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6795 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6796
7eb4e0f9
YQ
67972017-10-17 Yao Qi <yao.qi@linaro.org>
6798
6799 * configure.srv: Rename arm.o with arch/arm.o.
6800
60d6cfc9
YQ
68012017-10-17 Yao Qi <yao.qi@linaro.org>
6802
6803 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6804 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6805 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6806 (arch-i386.o, arch-amd64.o): Remove rules.
6807 (arch/%.o): New rule.
6808 Update POSTCOMPILE and COMPILE.pre.
6809 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6810 * configure: Re-generated.
6811 * configure.srv: Replace arch-i386.o with arch/i386.o.
6812 Replace arch-amd64.o with arch/amd64.o.
6813
5bfda255
YQ
68142017-10-16 Yao Qi <yao.qi@linaro.org>
6815
6816 * configure: Regenerated.
6817
9c80ecd6
SM
68182017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6819
6820 * inferiors.h: (struct inferior_list): Remove.
6821 (struct inferior_list_entry); Remove.
6822 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6823 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6824 get_first_inferior): Remove.
6825 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6826 find_inferior_id, find_inferior_in_random): Change signature.
6827 * inferiors.c (all_threads): Change type to
6828 std::list<thread_info *>.
6829 (get_thread): Remove macro.
6830 (find_inferior, find_inferior_id): Change signature, implement
6831 using find_thread.
6832 (find_inferior_in_random): Change signature, implement using
6833 find_thread_in_random.
6834 (for_each_inferior, for_each_inferior_with_data): Change
6835 signature, implement using for_each_thread.
6836 (add_inferior_to_list, remove_inferior): Remove.
6837 (add_thread, get_first_thread, thread_of_pid,
6838 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6839 (get_first_inferior, one_inferior_p, clear_inferior_list):
6840 Remove.
6841 (clear_inferiors, get_thread_process): Update.
6842 * gdbthread.h: Include <list>.
6843 (struct thread_info) <entry>: Remove field.
6844 <id>: New field.
6845 (all_threads): Change type to std::list<thread_info *>.
6846 (get_first_inferior): Add doc.
6847 (find_thread, for_each_thread, find_thread_in_random): New
6848 functions.
6849 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6850 * linux-arm-low.c (update_registers_callback): Update.
6851 * linux-low.c (second_thread_of_pid_p): Update.
6852 (kill_one_lwp_callback, linux_detach_lwp_callback,
6853 delete_lwp_callback, status_pending_p_callback, same_lwp,
6854 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6855 iterate_over_lwps, not_stopped_callback,
6856 resume_stopped_resumed_lwps, count_events_callback,
6857 select_singlestep_lwp_callback, select_event_lwp_callback,
6858 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6859 suspend_and_send_sigstop_callback, wait_for_sigstop,
6860 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6861 lwp_running, linux_set_resume_request, resume_status_pending_p,
6862 need_step_over_p, start_step_over, linux_resume_one_thread,
6863 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6864 reset_lwp_ptrace_options_callback): Update.
6865 * linux-mips-low.c (update_watch_registers_callback): Update.
6866 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6867 Update.
6868 (free_register_cache_thread_one): Remove.
6869 (regcache_release): Update.
6870 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6871 handle_qxfer_threads_worker): Update.
6872 (handle_query): Update, use list iterator.
6873 (visit_actioned_threads, handle_pending_status,
6874 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6875 clear_pending_status_callback, set_pending_status_callback,
6876 find_status_pending_thread_callback, handle_status,
6877 process_serial_event): Update.
6878 * target.c (thread_search_callback): Update.
6879 * thread-db.c (thread_db_get_tls_address): Update.
6880 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6881 Update.
6882 * win32-i386-low.c (update_debug_registers_callback): Update.
6883 * win32-low.c (delete_thread_info, child_delete_thread,
6884 continue_one_thread, suspend_one_thread,
6885 get_child_debug_event): Adjust.
6886
9179355e
SM
68872017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6888
6889 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6890 * inferiors.h: Include <list>.
6891 (struct process_info) <entry>: Remove field.
6892 <pid>: New field.
6893 (pid_of): Change macro to function.
6894 (ptid_of, lwpid_of): Remove macro.
6895 (all_processes): Change type to std::list<process_info *>.
6896 (ALL_PROCESSES): Remove macro.
6897 (for_each_process, find_process): New function.
6898 * inferiors.c (all_processes): Change type to
6899 std::list<process_info *>.
6900 (find_thread_process): Adjust.
6901 (add_process): Likewise.
6902 (remove_process): Likewise.
6903 (find_process_pid): Likewise.
6904 (get_first_process): Likewise.
6905 (started_inferior_callback): Remove.
6906 (have_started_inferiors_p): Adjust.
6907 (attached_inferior_callback): Remove.
6908 (have_attached_inferiors_p): Adjust.
6909 * linux-low.c (check_zombie_leaders): Likewise.
6910 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6911 (x86_linux_update_xmltarget): Adjust.
6912 * server.c (handle_query): Likewise.
6913 (gdb_reattached_process): Remove.
6914 (handle_status): Adjust.
6915 (kill_inferior_callback): Likewise.
6916 (detach_or_kill_inferior): Remove.
6917 (print_started_pid): Likewise.
6918 (print_attached_pid): Likewise.
6919 (detach_or_kill_for_exit): Update.
6920 (process_serial_event): Likewise.
6921 * linux-arm-low.c (arm_new_fork): Likewise.
6922
c9cb8905
SM
69232017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6924
6925 * dll.h: Include <list>.
6926 (struct dll_info): Add constructor.
6927 <entry>: Remove field.
6928 (all_dlls): Change type to std::list<dll_info>.
6929 * dll.c: Include <algorithm>.
6930 (get_dll): Remove macro.
6931 (all_dlls): Change type to std::list<dll_info *>.
6932 (free_one_dll): Remove.
6933 (match_dll): Likewise.
6934 (loaded_dll): Adjust.
6935 (unloaded_dll): Adjust to all_dlls type change, use
6936 std::find_if. Inline code from match_dll.
6937 (clear_dlls): Adjust to all_dlls type change.
6938 * server.c (emit_dll_description): Remove.
6939 (handle_qxfer_libraries): Adjust to all_dlls type change,
6940 integrate emit_dll_description's functionality.
6941
04ec7890
SM
69422017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6943
6944 * linux-low.h (struct linux_target_ops) <delete_process>: New
6945 field.
6946 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6947 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6948 (struct linux_target_ops): Add delete_process callback.
6949 * linux-arm-low.c (arm_delete_process): New.
6950 (struct linux_target_ops): Add delete_process callback.
6951 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6952 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6953 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6954 * linux-mips-low.c (mips_linux_delete_process): New.
6955 (struct linux_target_ops): Add delete_process callback.
6956 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6957 * linux-s390-low.c (struct linux_target_ops): Likewise.
6958 * linux-sh-low.c (struct linux_target_ops): Likewise.
6959 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6960 * linux-tile-low.c (struct linux_target_ops): Likewise.
6961 * linux-x86-low.c (x86_linux_delete_process): New.
6962 (struct linux_target_ops): Add delete_process callback.
6963 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6964
466eecee
SM
69652017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6966
6967 * linux-aarch64-low.c (the_low_target): Add thread delete
6968 callback.
6969 * linux-arm-low.c (arm_delete_thread): New function.
6970 (the_low_target): Add thread delete callback.
6971 * linux-bfin-low.c (the_low_target): Likewise.
6972 * linux-crisv32-low.c (the_low_target): Likewise.
6973 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6974 set.
6975 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6976 field.
6977 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6978 * linux-mips-low.c (mips_linux_delete_thread): New function.
6979 (the_low_target): Add thread delete callback.
6980 * linux-ppc-low.c (the_low_target): Likewise.
6981 * linux-s390-low.c (the_low_target): Likewise.
6982 * linux-sh-low.c (the_low_target): Likewise.
6983 * linux-tic6x-low.c (the_low_target): Likewise.
6984 * linux-tile-low.c (the_low_target): Likewise.
6985 * linux-x86-low.c (the_low_target): Likewise.
6986 * linux-xtensa-low.c (the_low_target): Likewise.
6987
b79f7801
YZ
69882017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6989
6990 * win32-low.c: Include "common-inferior.h".
6991
bc3b087d
SDJ
69922017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6993
6994 * inferiors.c (set_inferior_cwd): New function.
6995 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6996 (handle_query): Inform that QSetWorkingDir is supported.
6997 * win32-low.c (create_process): Pass the inferior's cwd to
6998 CreateProcess.
6999
d092c5a2
SDJ
70002017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7001
7002 * inferiors.c (current_inferior_cwd): New global variable.
7003 (get_inferior_cwd): New function.
7004 * inferiors.h (struct process_info) <cwd>: New field.
7005
7da0a886
SDJ
70062017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7007
7008 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7009 (OBS): Add gdb_tilde_expand.o.
7010
289a6840
SM
70112017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7012
7013 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7014 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7015
256642e8
PA
70162017-09-29 Pedro Alves <palves@redhat.com>
7017
7018 * ax.c (gdb_parse_agent_expr): Constify.
7019 * ax.h (gdb_parse_agent_expr): Constify.
7020 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7021 Constify.
7022 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7023 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7024 * remote-utils.h (read_ptid): Constify.
7025 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7026 (process_point_options, process_serial_event): Constify.
7027 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7028 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7029 (cmd_qtbuffer): Constify.
7030
5b9ca4d4
PA
70312017-09-29 Pedro Alves <palves@redhat.com>
7032
7033 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7034 fails.
7035
94c207e0
PA
70362017-09-29 Pedro Alves <palves@redhat.com>
7037
7038 * linux-low.c (handle_extended_wait): Pass parent thread instead
7039 of process to thread_db_notice_clone.
7040 * linux-low.h (thread_db_notice_clone): Replace parent process
7041 parameter with parent thread parameter.
7042 * thread-db.c (find_one_thread): Add comment.
7043 (thread_db_notice_clone): Replace parent process parameter with
7044 parent thread parameter. Temporarily switch to the parent thread.
7045
75352e28
SDJ
70462017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7047
7048 * gdbthread.h: Include "common-gdbthread.h".
7049 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7050 "if" when validating the ptid.
7051 * remote-utils.c: Include "gdbthread.h".
7052 (prepare_resume_reply): Use "switch_to_thread".
7053 * target.c (done_accessing_memory): Likewise.
7054
ad339634
AA
70552017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7056
7057 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7058 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7059 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7060 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7061 s390x-gs-linux64-ipa.o to ipa_obj.
7062 * linux-s390-low.c (HWCAP_S390_GS): New define.
7063 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7064 New functions.
7065 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7066 (s390_arch_setup): Check for guarded-storage support and choose
7067 appropriate tdesc.
7068 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7069 init_registers_s390x_gs_linux64.
7070 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7071 enum value.
7072 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7073 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7074
cc4d742f
SM
70752017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7076
7077 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7078
f6327dcb
KB
70792017-09-21 Kevin Buettner <kevinb@redhat.com>
7080
7081 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7082 (thread_db_thread_handle): Declare.
7083 * linux-low.c (linux_target_ops): Initialize thread_handle.
7084 * server.c (handle_qxfer_threads_worker): Add support for
7085 "handle" attribute.
7086 * target.h (struct target_ops): Add new function pointer,
7087 thread_handle.
7088 (target_thread_handle): Define.
7089 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7090 field in lwp.
7091 (thread_db_thread_handle): New function.
7092
86299109
KB
70932017-09-21 Kevin Buettner <kevinb@redhat.com>
7094
7095 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7096 * linux-low.h (thread_db_notice_clone): Declare.
7097 * thread-db.c (thread_db_notice_clone): New function.
7098
f557a88a
PA
70992017-09-21 Pedro Alves <palves@redhat.com>
7100
7101 * server.c (gdb_read_memory, handle_status, process_serial_event)
7102 (handle_serial_event, handle_target_event): Adjust to
7103 set_desired_thread prototype change.
7104 * target.c (set_desired_thread): Remove 'use_general' parameter
7105 and adjust.
7106 * target.h (set_desired_thread): Remove 'use_general' parameter.
7107
223ffa71
TT
71082017-09-20 Tom Tromey <tom@tromey.com>
7109
7110 * target.c (target_terminal::terminal_state): Define.
7111 (target_terminal::init): Rename from target_terminal_init.
7112 (target_terminal::inferior): Rename from
7113 target_terminal_inferior.
7114 (target_terminal::ours): Rename from target_terminal_ours.
7115 (target_terminal::ours_for_output, target_terminal::info): New.
7116
04fd3ba9
SM
71172017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7118
7119 * server.c (accumulate_file_name_length): Remove.
7120 (emit_dll_description): Adjust to std::string change.
7121 (handle_qxfer_libraries): Use std::string to hold document.
7122
5e187554
SM
71232017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7124
7125 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7126 return type of xml_escape_text.
7127 * server.c (emit_dll_description): Likewise.
7128
1526853e
SM
71292017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7130
7131 * server.c (captured_main): Accept argument for --selftest.
7132 Update run_tests call.
7133 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7134 when registering selftests.
7135
c4dfafab
SDJ
71362017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7137
7138 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7139 instead of "VEC" for "target_desc.reg_defs".
7140 (regcache_cpy): Likewise.
7141 (registers_to_string): Likewise.
7142 (registers_from_string): Likewise.
7143 (find_regno): Likewise.
7144 (supply_regblock): Likewise.
7145 (regcache_raw_read_unsigned): Likewise.
7146 * tdesc.c (init_target_desc): Likewise.
7147 (tdesc_create_reg): Likewise.
7148 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7149 (struct target_desc) <reg_defs>: Convert to "std::vector".
7150 (target_desc): Do not initialize "reg_defs".
7151 (~target_desc): Update code to use "std::vector" instead of "VEC"
7152 for "target_desc.reg_defs".
7153 (operator==): Likewise.
7154
124aceb4
SM
71552017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7156
7157 * inferiors.h (thread_to_gdb_id): Remove.
7158 * inferiors.c (thread_to_gdb_id): Remove.
7159 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7160 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7161 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7162 Likewise.
7163 * nto-low.c (nto_fetch_registers, nto_store_registers,
7164 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7165
96cde54f
SM
71662017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7167
7168 * inferiors.h (gdb_id_to_thread_id): Remove.
7169 * inferiors.c (gdb_id_to_thread_id): Remove.
7170 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7171 removal. Move pid declaration closer to where it's used.
7172
e8ca139e
SM
71732017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7174
7175 * server.c (handle_detach): New function.
7176 (process_serial_event): Move code out, call handle_detach.
7177
f8a4e119
SM
71782017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7179
7180 * server.c (require_running): Rename to ...
7181 (require_running_or_return): ... this ...
7182 (require_running_or_break): ... and this.
7183 (handle_query, process_serial_event): Adjust.
7184
0eb0a407
SM
71852017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7186
7187 * linux-low.c (linux_set_resume_request): Remove unused
7188 variables.
7189
785922a5
SM
71902017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7191
7192 * server.c (first_thread_of): Remove.
7193 (process_serial_event): Replace usage of first_thread_of with
7194 find_any_thread_of_pid.
7195 * tracepoint.c (same_process_p): Remove.
7196 (gdb_agent_about_to_close): Replace usage of same_process_p with
7197 find_any_thread_of_pid.
7198 * linux-x86-low.c (same_process_callback): Remove.
7199 (x86_arch_setup_process_callback): Replace usage of
7200 same_process_callback with find_any_thread_of_pid.
7201 * thread-db.c (any_thread_of): Remove.
7202 (switch_to_process): Replace usage of any_thread_of with
7203 find_any_thread_of_pid.
7204 * inferiors.c (thread_pid_matches_callback): Remove.
7205 (find_thread_process): Adjust to use find_any_thread_of_pid.
7206
a059f00c
SDJ
72072017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7208
7209 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7210 with "!VEC_empty".
a059f00c 7211
cc397f3a
SDJ
72122017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7213
7214 * linux-low.c (handle_extended_wait): Use
7215 "allocate_target_description" instead of "XNEW".
7216 * linux-x86-low.c (initialize_low_arch): Likewise.
7217
22916b07
YQ
72182017-09-05 Yao Qi <yao.qi@linaro.org>
7219
7220 * configure.srv (srv_i386_regobj): Remove.
7221 (srv_amd64_regobj): Remove.
7222 (srv_regobj): Set it to "" for x86 non-linux targets.
7223 * linux-x86-tdesc.c (i386_linux_read_description):
7224 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7225 (init_registers_i386): Remove the declaration.
7226 (tdesc_i386): Remove the declaration.
7227 (lynx_i386_arch_setup): Call i386_create_target_description.
7228 * nto-x86-low.c: Likewise.
7229 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7230 [!__x86_64__]: include arch/i386.h.
7231 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7232
38602d55
YQ
72332017-09-05 Yao Qi <yao.qi@linaro.org>
7234
7235 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7236 i386/amd64-XXX-linux from it.
7237
44b886ff
YQ
72382017-09-05 Yao Qi <yao.qi@linaro.org>
7239
7240 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7241 false.
7242 (ipa_amd64_linux_regobj): Remove.
7243 (ipa_x32_linux_regobj): Remove.
7244
b4570e4b
YQ
72452017-09-05 Yao Qi <yao.qi@linaro.org>
7246
7247 * Makefile.in (arch-amd64.o): New rule.
7248 * configure.srv: Append arch-amd64.o.
7249 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7250 (get_ipa_tdesc): Call amd64_linux_read_description.
7251 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7252 and init_registers_amd64_XXX.
7253 * linux-x86-low.c (x86_linux_read_description): Call
7254 amd64_linux_read_description.
7255 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7256 (initialize_low_arch): Don't call init_registers_x32_XXX and
7257 init_registers_amd64_XXX.
7258 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7259 and tdesc_amd64_XXX.
7260 [__x86_64__] (amd64_tdesc_test): New function.
7261 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7262 and init_registers_amd64_XXX.
7263 * linux-x86-tdesc.c: Include arch/amd64.h.
7264 (xcr0_to_tdesc_idx): New function.
7265 (i386_linux_read_description): New function.
7266 (amd64_get_ipa_tdesc_idx): New function.
7267 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7268 (amd64_get_ipa_tdesc): Declare.
7269
d1f28ea2
YQ
72702017-09-05 Yao Qi <yao.qi@linaro.org>
7271
7272 * configure.srv (srv_i386_linux_xmlfiles): Remove
7273 i386/i386-XXX-linux.xml from it.
7274
25a93583
YQ
72752017-09-05 Yao Qi <yao.qi@linaro.org>
7276
7277 * configure.srv: Set srv_i386_linux_regobj empty if $development
7278 is false.
7279 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7280 initialize_low_tdesc.
7281 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7282 with #if initialize_low_tdesc.
7283 * linux-x86-tdesc-selftest.c: New file.
7284 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7285
5f035c07
YQ
72862017-09-05 Yao Qi <yao.qi@linaro.org>
7287
7288 * Makefile.in (arch-i386.o): New rule.
7289 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7290 (x86_64-*-linux*): Likewise.
7291 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7292 include arch/i386.h.
7293 (i386_linux_read_description): Remove code and call
7294 i386_create_target_description.
7295 * tdesc.c (allocate_target_description): New function.
7296 * tdesc.h (set_tdesc_architecture): Remove declaration.
7297 (set_tdesc_osabi): Likewise.
7298
0abe8a89
YQ
72992017-09-05 Yao Qi <yao.qi@linaro.org>
7300
7301 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7302 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7303 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7304 .xmltarget.
7305 * server.c (get_features_xml): Call tdesc_get_features_xml.
7306 * tdesc.c (set_tdesc_architecture): New function.
7307 (set_tdesc_osabi): New function.
7308 (tdesc_get_features_xml): New function.
7309 (tdesc_create_feature): Add an argument.
7310 * tdesc.h (struct target_desc) <features>: New field.
7311 <arch, osabi>: New field.
7312 (~target_desc): xfree features, arch, and osabi.
7313 (target_desc::oerator==): Don't compare .xmltarget.
7314 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7315 (set_tdesc_osabi): Likewise.
7316 (tdesc_get_features_xml): Likewise.
7317
0a188386
YQ
73182017-09-05 Yao Qi <yao.qi@linaro.org>
7319
7320 * linux-x86-tdesc.c: Include selftest.h.
7321 (i386_tdesc_test): New function.
7322 (initialize_low_tdesc): Call selftests::register_test.
7323 * tdesc.h: Include regdef.h.
7324 (target_desc): Override operator == and !=.
7325
f49ff000
YQ
73262017-09-05 Yao Qi <yao.qi@linaro.org>
7327
7328 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7329 (ipa_obj): Likewise.
7330 * linux-i386-ipa.c: Include common/x86-xstate.h
7331 (get_ipa_tdesc): Call i386_linux_read_description.
7332 (initialize_low_tracepoint): Don't call init_registers_XXX
7333 functions, call initialize_low_tdesc instead.
7334 * linux-x86-low.c (x86_linux_read_description): Call
7335 i386_linux_read_description.
7336 (initialize_low_arch): Don't call init_registers_i386_XXX
7337 functions, call initialize_low_tdesc.
7338 * linux-x86-tdesc.c: New file.
7339 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7340 (i386_get_ipa_tdesc_idx): Declare.
7341 (i386_get_ipa_tdesc): Declare.
7342 (initialize_low_tdesc): Declare.
7343
2b68ef2f
YQ
73442017-09-05 Yao Qi <yao.qi@linaro.org>
7345
7346 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7347 instead of 0.
7348
f7000548
YQ
73492017-09-05 Yao Qi <yao.qi@linaro.org>
7350
7351 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7352 * regcache.c (get_thread_regcache): Use VEC_length.
7353 (init_register_cache): Likewise.
7354 (regcache_cpy): Likewise.
7355 (registers_to_string): Iterate reg_defs via VEC_iterate.
7356 (find_regno): Likewise.
7357 (find_register_by_number): Use VEC_index.
7358 (register_size): Call find_register_by_number.
7359 (register_data): Call find_register_by_number.
7360 (supply_regblock): Use VEC_length.
7361 (regcache_raw_read_unsigned): Likewise.
7362 * tdesc.c (init_target_desc): Iterate reg_defs via
7363 VEC_iterate.
7364 (default_description): Update initializer.
7365 (copy_target_description): Don't update field num_registers.
7366 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7367 <num_registers>: Remove.
7368
50a421ac
SM
73692017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7370
7371 * Makefile.in (.SECONDARY): Define target.
7372
23fdd69e
SM
73732017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7374
7375 * linux-low.c (linux_wait_1): Adjust.
7376 * server.c (queue_stop_reply_callback): Adjust.
7377
0a2dde4a
SDJ
73782017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7379
7380 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7381 QEnvironmentUnset and QEnvironmentReset packets.
7382 (handle_query): Inform remote that QEnvironmentHexEncoded,
7383 QEnvironmentUnset and QEnvironmentReset are supported.
7384
6afd337d
SM
73852017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7386
7387 * inferiors.h (inferior_target_data): Rename to ...
7388 (thread_target_data): ... this.
7389 (inferior_regcache_data): Rename to ...
7390 (thread_regcache_data): ... this.
7391 (set_inferior_regcache_data): Rename to ...
7392 (set_thread_regcache_data): ... this.
7393 * inferiors.c (inferior_target_data): Rename to ...
7394 (thread_target_data): ... this.
7395 (inferior_regcache_data): Rename to ...
7396 (thread_regcache_data): ... this.
7397 (set_inferior_regcache_data): Rename to ...
7398 (set_thread_regcache_data): ... this.
7399 (free_one_thread): Update.
7400 * linux-low.h (get_thread_lwp): Update.
7401 * regcache.c (get_thread_regcache): Update.
7402 (regcache_invalidate_thread): Update.
7403 (free_register_cache_thread): Update.
7404 * win32-i386-low.c (update_debug_registers_callback): Update.
7405 (win32_get_current_dr): Update.
7406 * win32-low.c (thread_rec): Update.
7407 (delete_thread_info): Update.
7408 (continue_one_thread): Update.
7409 (suspend_one_thread): Update.
7410
a160cc46
SM
74112017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7412
7413 * inferiors.c (set_inferior_target_data): Remove.
7414 * inferiors.h (set_inferior_target_data): Remove.
7415
6d580b63
YQ
74162017-08-18 Yao Qi <yao.qi@linaro.org>
7417
7418 * Makefile.in (OBS): Add selftest.o.
7419 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7420 * configure, config.in: Re-generated.
7421 * server.c: Include common/sefltest.h.
7422 (captured_main): Handle option --selftest.
7423
f5a29eb0
YQ
74242017-08-09 Yao Qi <yao.qi@linaro.org>
7425
7426 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7427 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7428 i386-avx-mpx.o and i386-mmx.o.
7429 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7430 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7431 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7432 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7433 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7434 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7435 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7436 i386/amd64-avx-mpx.xml.
7437
57757c2f
YQ
74382017-08-09 Yao Qi <yao.qi@linaro.org>
7439
7440 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7441 and x32-avx-avx512.o.
7442 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7443 i386/x32-avx-avx512.xml.
7444
229d26fc
SM
74452017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7446
7447 * tracepoint.h (enum class fast_tpoint_collect_result): New
7448 enumeration.
7449 (fast_tracepoint_collecting): Change return type to
7450 fast_tpoint_collect_result.
7451 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7452 * linux-low.h: Include tracepoint.h.
7453 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7454 fast_tpoint_collect_result.
7455 * linux-low.c (handle_tracepoints): Adjust.
7456 (linux_fast_tracepoint_collecting): Change return type to
7457 fast_tpoint_collect_result.
7458 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7459 linux_wait_1, stuck_in_jump_pad_callback,
7460 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7461 proceed_one_lwp): Adjust to type change.
7462
2e1e43e1
YQ
74632017-07-10 Yao Qi <yao.qi@linaro.org>
7464
7465 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7466
adc764e7
YQ
74672017-06-29 Yao Qi <yao.qi@linaro.org>
7468
7469 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7470 Remove.
7471 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7472
a206891a
SM
74732017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7474
7475 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7476
9a6c7d9c
SDJ
74772017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7478
7479 * linux-low.c (linux_create_inferior): Adjust code to access the
7480 environment information via 'gdb_environ' class.
7481 * lynx-low.c (lynx_create_inferior): Likewise.
7482 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7483 (get_environ): Return a pointer to 'our_environ'.
7484 (captured_main): Initialize 'our_environ'.
7485 * server.h (get_environ): Adjust prototype.
7486 * spu-low.c (spu_create_inferior): Adjust code to access the
7487 environment information via 'gdb_environ' class.
7488
ae3e2ccf
SM
74892017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7490
7491 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7492 usage of "register" keyword.
7493
3e019bdc
SM
74942017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7495
7496 * configure: Re-generate.
7497
8465943a
SM
74982017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7499
7500 * configure: Re-generate.
7501
cf0dd6f0
SM
75022017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7503
7504 * Makefile.in (COMPILE.pre): Add "-x c++".
7505
9845682b
SDJ
75062017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7507
7508 * fork-child.c: Conditionally include <signal.h>.
7509
aefd8b33
SDJ
75102017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7511
7512 * server.c (handle_general_set): Handle new packet
7513 "QStartupWithShell".
7514 (handle_query): Add "QStartupWithShell" to the list of supported
7515 packets.
7516 (gdbserver_usage): Add help text explaining the
7517 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7518 options.
7519 (captured_main): Recognize and act upon the presence of the new
7520 CLI options.
7521
2090129c
SDJ
75222017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7523 Pedro Alves <palves@redhat.com>
7524
7525 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7526 * configure: Regenerate.
7527 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7528 "fork-inferior.o".
7529 (i[34567]86-*-lynxos*): Likewise.
7530 (spu*-*-*): Likewise.
7531 * fork-child.c: New file.
7532 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7533 and "environ.h".
7534 (linux_ptrace_fun): New function.
7535 (linux_create_inferior): Adjust function prototype to reflect
7536 change on "target.h". Adjust function code to use
7537 "fork_inferior".
7538 (linux_request_interrupt): Delete "signal_pid".
7539 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7540 (lynx_ptrace_fun): New function.
7541 (lynx_create_inferior): Adjust function prototype to reflect
7542 change on "target.h". Adjust function code to use
7543 "fork_inferior".
7544 * nto-low.c (nto_create_inferior): Adjust function prototype and
7545 code to reflect change on "target.h". Update comments.
7546 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7547 "common-terminal.h" and "environ.h".
7548 (terminal_fd): Moved to fork-child.c.
7549 (old_foreground_pgrp): Likewise.
7550 (restore_old_foreground_pgrp): Likewise.
7551 (last_status): Make it global.
7552 (last_ptid): Likewise.
7553 (our_environ): New variable.
7554 (startup_with_shell): Likewise.
7555 (program_name): Likewise.
7556 (program_argv): Rename to...
7557 (program_args): ...this.
7558 (wrapper_argv): New variable.
7559 (start_inferior): Delete function.
7560 (get_exec_wrapper): New function.
7561 (get_exec_file): Likewise.
7562 (get_environ): Likewise.
7563 (prefork_hook): Likewise.
7564 (post_fork_inferior): Likewise.
7565 (postfork_hook): Likewise.
7566 (postfork_child_hook): Likewise.
7567 (handle_v_run): Update code to deal with arguments coming from the
7568 remote host. Update calls from "start_inferior" to
7569 "create_inferior".
7570 (captured_main): Likewise. Initialize environment variable. Call
7571 "have_job_control".
7572 * server.h (post_fork_inferior): New prototype.
7573 (get_environ): Likewise.
7574 (last_status): Declare.
7575 (last_ptid): Likewise.
7576 (signal_pid): Likewise.
7577 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7578 (spu_ptrace_fun): New function.
7579 (spu_create_inferior): Adjust function prototype to reflect change
7580 on "target.h". Adjust function code to use "fork_inferior".
7581 * target.c (target_terminal_init): New function.
7582 (target_terminal_inferior): Likewise.
7583 (target_terminal_ours): Likewise.
7584 * target.h: Include <vector>.
7585 (struct target_ops) <create_inferior>: Update prototype.
7586 (create_inferior): Update macro.
7587 * utils.c (gdb_flush_out_err): New function.
7588 * win32-low.c (win32_create_inferior): Adjust function prototype
7589 and code to reflect change on "target.h".
7590
043a4934
SDJ
75912017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7592
7593 * inferiors.c (switch_to_thread): New function.
7594
15652511
SDJ
75952017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7596
7597 * Makefile.in (SFILE): Add "common/job-control.c".
7598 (OBS): Add "job-control.o".
7599
21ea5acd
SDJ
76002017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7601
7602 * Makefile: Remove "@host_makefile_frag@".
7603
e13cb306
PA
76042017-05-05 Pedro Alves <palves@redhat.com>
7605
7606 * configure: Regenerate.
7607
c94fee56
SDJ
76082017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7609
7610 * configure: Regenerate.
7611
a0ff9e1a
SM
76122017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7613
7614 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7615 software_single_step change of return type to
7616 std::vector<CORE_ADDR>.
7617 * linux-low.c (install_software_single_step_breakpoints):
7618 Likewise.
7619 * linux-low.h (install_software_single_step_breakpoints):
7620 Likewise.
7621
be628ab8
SDJ
76222017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7623
7624 * remote-utils.c: Include "gdb_termios.h" instead of
7625 "terminal.h".
7626 * terminal.h: Delete file.
7627
7c5ded6a
SDJ
76282017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7629
7630 * server.c: Include <vector>.
7631 <program_argv, wrapper_argv>: Convert to std::vector.
7632 (start_inferior): Rewrite function to use C++.
7633 (handle_v_run): Likewise. Update code that calculates the argv
7634 based on the vRun packet; use C++.
7635 (captured_main): Likewise.
7636
436252de
SM
76372017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7638
7639 * server.c (handle_v_cont): Initialize thread_resume::thread
7640 with null_ptid.
7641
9bf2a700
PA
76422017-04-05 Pedro Alves <palves@redhat.com>
7643
7644 * configure: Regenerate.
7645
a121b7c1
PA
76462017-04-05 Pedro Alves <palves@redhat.com>
7647
7648 * gdbreplay.c (sync_error): Constify.
7649 * linux-x86-low.c (push_opcode): Constify.
7650
21c8a587
PA
76512017-04-05 Pedro Alves <palves@redhat.com>
7652
7653 * win32-low.c (get_child_debug_event)
7654 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7655 Report TARGET_WAITKIND_SPURIOUS instead.
7656
fb32b4f7
PA
76572017-04-05 Pedro Alves <palves@redhat.com>
7658
e79be6e5
SM
7659 * remote-utils.c (remote_prepare, remote_open): Constify.
7660 * remote-utils.h (remote_prepare, remote_open): Constify.
7661 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7662
65dd1e59
SM
76632017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7664
7665 * Makefile.in (clean): Clear .deps.
7666
8fa5b777
SM
76672017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7668
7669 * .gitignore: Remove generated files, replace with wildcard.
7670 * (clean): Replace removal of generated files with wildcard.
7671 (version.c): Replace with...
7672 (version-generated.c): ...this.
7673 (xml-builtin.c): Replace with...
7674 (xml-builtin-generated.c): ...this.
7675 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7676 (%.c: *regformats*): Replace with...
7677 (%-generated.c: *regformats*): ...this.
7678
a12e714b
MF
76792017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7680
7681 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7682 (xtensa_fill_gregset): Call collect_register_by_name for
7683 threadptr register.
7684 (xtensa_store_gregset): Call supply_register_by_name for
7685 threadptr register.
7686
1a09b50a
MF
76872017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7688
7689 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7690 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7691 (xtensa_store_gregset): Call supply_register for all registers in
7692 a0_regnum..a0_regnum + C0_NREGS range.
7693
1a01e7c6
SM
76942017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7695
7696 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7697 (ax-ipa.o: ax.c): Remove.
7698 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7699 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7700 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7701 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7702 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7703
36bc18a8
SM
77042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7705
7706 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7707 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7708 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7709 (errors-ipa.o: ../common/errors.c): Remove.
7710 (format-ipa.o: ../common/format.c): Remove.
7711 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7712
a8ebe3d5
SM
77132017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7714
7715 * Makefile.in (%-ipa.o: %.c): New rule.
7716 (tracepoint-ipa.o: tracepoint.c): Remove.
7717 (utils-ipa.o: utils.c): Remove.
7718 (remote-utils-ipa.o: remote-utils.c): Remove.
7719 (regcache-ipa.o: regcache.c): Remove.
7720 (i386-linux-ipa.o: i386-linux.c): Remove.
7721 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7722 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7723 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7724 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7725 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7726 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7727 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7728 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7729 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7730 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7731 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7732 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7733 (aarch64-ipa.o: aarch64.c): Remove.
7734 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7735 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7736 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7737 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7738 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7739 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7740 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7741 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7742 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7743 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7744 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7745 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7746 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7747 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7748 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7749 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7750 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7751 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7752 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7753 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7754 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7755 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7756 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7757 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7758 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7759 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7760 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7761 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7762 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7763 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7764 (tdesc-ipa.o: tdesc.c): Remove.
7765 (x32-linux-ipa.o: x32-linux.c): Remove.
7766 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7767 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7768
50cfacb7
SM
77692017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7770
7771 * Makefile.in (%.o: ../arch/%.c): New rule.
7772 (arm.o: ../arch/arm.c): Remove.
7773 (arm-linux.o: ../arch/arm-linux.c): Remove.
7774 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7775 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7776
c5a22423
SM
77772017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7778
7779 * Makefile.in (%.o: ../nat/%.c): New rule.
7780 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7781 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7782 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7783 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7784 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7785 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7786 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7787 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7788 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7789 (linux-personality.o: ../nat/linux-personality.c): Remove.
7790 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7791 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7792 (x86-linux.o: ../nat/x86-linux.c): Remove.
7793 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7794 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7795
6bda016b
SM
77962017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7797
7798 * Makefile.in (%.o: ../common/%.c): New rule.
7799 (signals.o: ../common/signals.c): Remove.
7800 (print-utils.o: ../common/print-utils.c): Remove.
7801 (rsp-low.o: ../common/rsp-low.c): Remove.
7802 (common-utils.o: ../common/common-utils.c): Remove.
7803 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7804 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7805 (vec.o: ../common/vec.c): Remove.
7806 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7807 (xml-utils.o: ../common/xml-utils.c): Remove.
7808 (ptid.o: ../common/ptid.c): Remove.
7809 (buffer.o: ../common/buffer.c): Remove.
7810 (format.o: ../common/format.c): Remove.
7811 (filestuff.o: ../common/filestuff.c): Remove.
7812 (agent.o: ../common/agent.c): Remove.
7813 (errors.o: ../common/errors.c): Remove.
7814 (environ.o: ../common/environ.c): Remove.
7815 (common-debug.o: ../common/common-debug.c): Remove.
7816 (cleanups.o: ../common/cleanups.c): Remove.
7817 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7818 (fileio.o: ../common/fileio.c): Remove.
7819 (common-regcache.o: ../common/common-regcache.c): Remove.
7820 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7821 (new-op.o: ../common/new-op.c): Remove.
7822 (btrace-common.o: ../common/btrace-common.c): Remove.
7823
21122961
SM
78242017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7825
7826 * Makefile.in (%.o: ../target/%.c): New rule.
7827 (waitstatus.o: ../target/waitstatus.c): Remove.
7828
c362e621
SM
78292017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7830
7831 * Makefile.in
7832 (%.c: ../regformats/%.dat,
7833 (%.c: ../regformats/arm/%.dat,
7834 (%.c: ../regformats/i386/%.dat,
7835 (%.c: ../regformats/rs6000/%.dat): New rules.
7836 (aarch64.c): Remove.
7837 (reg-arm.c): Remove.
7838 (arm-with-iwmmxt.c): Remove.
7839 (arm-with-vfpv2.c): Remove.
7840 (arm-with-vfpv3.c): Remove.
7841 (arm-with-neon.c): Remove.
7842 (reg-bfin.c): Remove.
7843 (reg-cris.c): Remove.
7844 (reg-crisv32.c): Remove.
7845 (i386.c): Remove.
7846 (i386-linux.c): Remove.
7847 (i386-avx.c): Remove.
7848 (i386-avx-linux.c): Remove.
7849 (i386-avx-avx512.c): Remove.
7850 (i386-avx-avx512-linux.c): Remove.
7851 (i386-mpx.c): Remove.
7852 (i386-mpx-linux.c): Remove.
7853 (i386-avx-mpx-avx512-pku.c): Remove.
7854 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7855 (i386-avx-mpx.c): Remove.
7856 (i386-avx-mpx-linux.c): Remove.
7857 (i386-mmx.c): Remove.
7858 (i386-mmx-linux.c): Remove.
7859 (reg-ia64.c): Remove.
7860 (reg-m32r.c): Remove.
7861 (reg-m68k.c): Remove.
7862 (reg-cf.c): Remove.
7863 (mips-linux.c): Remove.
7864 (mips-dsp-linux.c): Remove.
7865 (mips64-linux.c): Remove.
7866 (mips64-dsp-linux.c): Remove.
7867 (nios2-linux.c): Remove.
7868 (powerpc-32.c): Remove.
7869 (powerpc-32l.c): Remove.
7870 (powerpc-altivec32l.c): Remove.
7871 (powerpc-cell32l.c): Remove.
7872 (powerpc-vsx32l.c): Remove.
7873 (powerpc-isa205-32l.c): Remove.
7874 (powerpc-isa205-altivec32l.c): Remove.
7875 (powerpc-isa205-vsx32l.c): Remove.
7876 (powerpc-e500l.c): Remove.
7877 (powerpc-64l.c): Remove.
7878 (powerpc-altivec64l.c): Remove.
7879 (powerpc-cell64l.c): Remove.
7880 (powerpc-vsx64l.c): Remove.
7881 (powerpc-isa205-64l.c): Remove.
7882 (powerpc-isa205-altivec64l.c): Remove.
7883 (powerpc-isa205-vsx64l.c): Remove.
7884 (s390-linux32.c): Remove.
7885 (s390-linux32v1.c): Remove.
7886 (s390-linux32v2.c): Remove.
7887 (s390-linux64.c): Remove.
7888 (s390-linux64v1.c): Remove.
7889 (s390-linux64v2.c): Remove.
7890 (s390-te-linux64.c): Remove.
7891 (s390-vx-linux64.c): Remove.
7892 (s390-tevx-linux64.c): Remove.
7893 (s390x-linux64.c): Remove.
7894 (s390x-linux64v1.c): Remove.
7895 (s390x-linux64v2.c): Remove.
7896 (s390x-te-linux64.c): Remove.
7897 (s390x-vx-linux64.c): Remove.
7898 (s390x-tevx-linux64.c): Remove.
7899 (tic6x-c64xp-linux.c): Remove.
7900 (tic6x-c64x-linux.c): Remove.
7901 (tic6x-c62x-linux.c): Remove.
7902 (reg-sh.c): Remove.
7903 (reg-sparc64.c): Remove.
7904 (reg-spu.c): Remove.
7905 (amd64.c): Remove.
7906 (amd64-linux.c): Remove.
7907 (amd64-avx.c): Remove.
7908 (amd64-avx-linux.c): Remove.
7909 (amd64-avx-avx512.c): Remove.
7910 (amd64-avx-avx512-linux.c): Remove.
7911 (amd64-mpx.c): Remove.
7912 (amd64-mpx-linux.c): Remove.
7913 (amd64-avx-mpx-avx512-pku.c): Remove.
7914 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7915 (amd64-avx-mpx.c): Remove.
7916 (amd64-avx-mpx-linux.c): Remove.
7917 (x32.c): Remove.
7918 (x32-linux.c): Remove.
7919 (x32-avx.c): Remove.
7920 (x32-avx-linux.c): Remove.
7921 (x32-avx-avx512.c): Remove.
7922 (x32-avx-avx512-linux.c): Remove.
7923 (reg-xtensa.c): Remove.
7924 (reg-tilegx.c): Remove.
7925 (reg-tilegx32.c): Remove.
7926
1672e0d9
SDJ
79272017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7928
7929 * Makefile.in (SFILES): Add "common/environ.c".
7930 (OBJS): Add "common/environ.h".
7931
239b6d10
WT
79322017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7933
7934 * configure.ac: Check if the fs_base and gs_base members of
7935 `struct user_regs_struct' exist.
7936 * config.in: Regenerated.
7937 * configure: Likewise.
7938
694b382c
AT
79392017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7940
7941 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7942 target_read_memory.
7943 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7944 (get_next_pcs_syscall_next_pc): Likewise.
7945
7dc53023
LM
79462016-12-23 Luis Machado <lgustavo@codesourcery.com>
7947
7948 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7949 * nto-x86-low.c: Likewise.
7950
ad02e4fe
SM
79512016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7952
7953 * Makefile.in: Include disable-implicit-rules.mk.
7954
dcb07cfa
PA
79552016-11-23 Pedro Alves <palves@redhat.com>
7956
7957 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7958 (debug_vprintf): Use std::chrono::steady_clock instead of
7959 gettimeofday. Use '.' instead of ':'.
7960 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7961 (get_timestamp): Use std::chrono::steady_clock instead of
7962 gettimeofday.
7963
8629c02c
SM
79642016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7965
7966 * Makefile.in: Fix whitespace formatting.
7967
b593ecca
SM
79682016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7969
7970 * Makefile.in (SFILES, OBS): Flatten list and order
7971 alphabetically.
7972
9986ba08
PA
79732016-11-23 Pedro Alves <palves@redhat.com>
7974
7975 * event-loop.c (handle_file_event): Use warning.
7976 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7977 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7978 Use warning.
7979
4eefa7bc
PA
79802016-11-23 Pedro Alves <palves@redhat.com>
7981
7982 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7983 output.
7984 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7985 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7986 debug_printf and debug_flush for debug output.
7987 * server.c (handle_general_set): Likewise.
7988 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7989 output.
7990
5443506e
SM
79912016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7992
7993 * Makefile.in (.c.o): Replace rule with ...
7994 (%.o: %.c): ... this one.
7995
3b165252
SM
79962016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7997
7998 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7999 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8000 make.
8001 * configure.ac: Remove checks for the make program.
8002 * configure: Re-generate.
8003
0bcda685
PA
80042016-10-28 Pedro Alves <palves@redhat.com>
8005
8006 * Makefile.in (CXX_DIALECT): Get from configure.
8007 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8008 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8009 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8010 * config.in: Regenerate.
8011 * configure: Regenerate.
8012
c3805894
YQ
80132016-10-27 Yao Qi <yao.qi@linaro.org>
8014
8015 * linux-low.c (linux_supports_range_stepping): Return true if
8016 can_software_single_step return true.
8017
89342618
YQ
80182016-10-27 Yao Qi <yao.qi@linaro.org>
8019
8020 * inferiors.c (find_inferior_in_random): New function.
8021 * inferiors.h (find_inferior_in_random): Declare.
8022 * linux-low.c (linux_wait_for_event_filtered): Call
8023 find_inferior_in_random instead of find_inferior.
8024
e3652c84
YQ
80252016-10-27 Yao Qi <yao.qi@linaro.org>
8026
8027 * linux-low.c (linux_wait_1): If single-step breakpoints are
8028 inserted, remove them.
8029
5a04c4cf
PA
80302016-10-26 Pedro Alves <palves@redhat.com>
8031
8032 * linux-low.c (handle_extended_wait): Link parent/child fork
8033 threads.
8034 (linux_wait_1): Unlink them.
8035 (linux_set_resume_request): Ignore resume requests for
8036 already-resumed and unhandled fork child threads.
8037 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8038 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8039 New functions.
8040 (handle_v_requests) <vCont>: Don't call require_running.
8041 * server.h (in_queued_stop_replies): New declaration.
8042
cb93dc7f
YQ
80432016-10-24 Yao Qi <yao.qi@linaro.org>
8044
8045 PR server/20733
8046 * linux-aarch64-low.c (append_insns): Cast the return value to
8047 'uint32_t *'.
8048
a1078bea
YQ
80492016-10-10 Yao Qi <yao.qi@linaro.org>
8050
8051 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8052
1fb77080
SDJ
80532016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8054
8055 * target.c (target_supports_multi_process): New function, moved
8056 from...
8057 * target.h (target_supports_multi_process): ... here. Remove
8058 macro.
8059
39b5a3b9
TT
80602016-10-05 Tom Tromey <tom@tromey.com>
8061
8062 PR remote/20655:
8063 * tracepoint.c (handle_tracepoint_bkpts): Check
8064 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8065
c1d0b70a
YQ
80662016-10-05 Yao Qi <yao.qi@linaro.org>
8067
8068 * configure.srv: Update the path of arm-*.xml files.
8069
0a69eedb
YQ
80702016-10-05 Terry Guo <terry.guo@arm.com>
8071 Yao Qi <yao.qi@linaro.org>
8072
8073 * Makefile.in: Adjust the path of rules.
8074 * configure.srv: Update the path of xml files.
8075 * regformats/arm-with-iwmmxt.dat: Regenerated.
8076 * regformats/arm-with-neon.dat: Likewise.
8077 * regformats/arm-with-vfpv2.dat: Likewise.
8078 * regformats/arm-with-vfpv3.dat Likewise.
8079
17e16485
YQ
80802016-09-30 Yao Qi <yao.qi@linaro.org>
8081
8082 PR gdbserver/20627
8083 * target.c (target_stop_and_wait): Don't call
8084 target_continue_no_signal, use resume_stop instead.
8085
edeeb602
YQ
80862016-09-26 Yao Qi <yao.qi@linaro.org>
8087
8088 * linux-low.c (linux_wait_1): Call debug_exit.
8089
503b1c39
PA
80902016-09-23 Pedro Alves <palves@redhat.com>
8091
8092 * Makefile.in (SFILES): Add common/new-op.c.
8093 (OBS): Add common/new-op.o.
8094 (new-op.o): New rule.
8095
74172ecf
SM
80962016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8097
8098 * .gitinore: Ignore more files.
8099
fc6cda2e
YQ
81002016-09-21 Yao Qi <yao.qi@linaro.org>
8101
8102 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8103 23.
8104
bc1e6c81
SDJ
81052016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8106
8107 * server.c (start_inferior): Call target_mourn_inferior instead of
8108 mourn_inferior; pass ptid_t argument to it.
8109 (resume): Likewise.
8110 (handle_target_event): Likewise.
8111 * target.c (target_mourn_inferior): New function.
8112 * target.h (mourn_inferior): Delete macro.
8113
0e00e962
AA
81142016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8115
8116 * linux-low.c (lwp_is_stepping): New function.
8117
1d8cb77d
CL
81182016-09-06 Carl Love <cel@us.ibm.com>
8119
8120 * server.c (start_inferior): Fixed comment, requested comment change
8121 didn't get updated correctly. Removed reference to ptrace () call as
8122 it is only true on Linux systems.
8123
7313bced
CL
81242016-09-06 Carl Love <cel@us.ibm.com>
8125
8126 * server.c (start_inferior): Do not call
8127 function target_post_create_inferior () if the
8128 inferior process has already exited.
8129
cf6de44d
PA
81302016-09-05 Pedro Alves <palves@redhat.com>
8131
8132 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8133 (COMPILE.pre, CC_LD): Use CXX directly.
8134 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8135 * acinclude.m4: Don't include build-with-cxx.m4.
8136 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8137 * configure: Regenerate.
8138
c1da6748
AT
81392016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8140
8141 PR gdb/19495
8142 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8143 call writing data to own_buf.
8144
f2b9e3df
SDJ
81452016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8146
8147 * target.c (mywait): Call target_wait instead of
8148 the_target->wait.
8149 (target_wait): New function.
8150
049a8570
SDJ
81512016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8152
8153 * server.c (start_inferior): New variable 'ptid'. Replace calls
8154 to the_target->resume by target_continue{,_no_signal}, depending
8155 on the case.
8156 * target.c (target_stop_and_wait): Call target_continue_no_signal
8157 instead of the_target->resume.
8158 (target_continue): New function.
8159
3aa5cfa0
AT
81602016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8161
8162 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8163
754653a7
AZ
81642016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8165
8166 PR server/20491
8167 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8168 ps_prochandle.
8169 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8170 * linux-arm-low.c (ps_get_thread_area): Likewise.
8171 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8172 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8173 * linux-mips-low.c (ps_get_thread_area): Likewise.
8174 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8175 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8176 * linux-x86-low.c (ps_get_thread_area): Likewise.
8177 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8178
ed036b40
PA
81792016-08-19 Pedro Alves <palves@redhat.com>
8180
8181 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8182
c8ef42ee
PA
81832016-08-19 Pedro Alves <palves@redhat.com>
8184
8185 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8186 comment. Use memcpy instead of casting through unsigned long.
8187
9c235a72
PA
81882016-08-19 Pedro Alves <palves@redhat.com>
8189
8190 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8191 allocating around 0x80000000.
8192
201506da
PA
81932016-08-19 Pedro Alves <palves@redhat.com>
8194
8195 PR gdb/20415
8196 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8197 (x32-avx512-linux-ipa.o): New rules.
8198 * configure.ac (x86_64-*-linux*): New x32 check.
8199 * configure.srv (ipa_x32_linux_regobj): New.
8200 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8201 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8202 descriptions.
8203 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8204 descriptions.
8205 * configure: Regenerate.
8206
f348d89a
PA
82072016-08-09 Pedro Alves <palves@redhat.com>
8208
8209 PR gdb/18653
8210 * Makefile.in (OBS): Add signals-state-save-restore.o.
8211 (signals-state-save-restore.o): New rule.
8212 * config.in: Regenerate.
8213 * configure: Regenerate.
8214 * linux-low.c: Include "signals-state-save-restore.h".
8215 (linux_create_inferior): Call
8216 restore_original_signals_state.
8217 * server.c: Include "dispositions-save-restore.h".
8218 (captured_main): Call save_original_signals_state.
8219
1baf5149
PA
82202016-08-05 Pedro Alves <palves@redhat.com>
8221
8222 * configure: Regenerate.
8223
fcd4a73d
YQ
82242016-08-04 Yao Qi <yao.qi@linaro.org>
8225
8226 * linux-low.c (regsets_fetch_inferior_registers): Check
8227 errno is ESRCH or not.
8228
979659d0
YQ
82292016-08-02 Yao Qi <yao.qi@linaro.org>
8230
8231 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8232 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8233 (thread_db_load_search): Update.
8234 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8235 td_ta_set_event and td_ta_event_getmsg.
8236
6598661d
PA
82372016-07-26 Pedro Alves <palves@redhat.com>
8238
8239 PR server/20414
8240 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8241 of unsigned long for 64-bit registers and use uint32_t instead of
8242 unsigned int for 32-bit registers.
8243
9cf12d57
PA
82442016-07-26 Pedro Alves <palves@redhat.com>
8245
8246 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8247 to 'ptrace'.
8248
305450ed
TT
82492016-07-21 Tom Tromey <tom@tromey.com>
8250
8251 * configure: Rebuild.
8252
2583da7c
YQ
82532016-07-21 Yao Qi <yao.qi@linaro.org>
8254
8255 * mem-break.c (find_gdb_breakpoint): Cast bp to
8256 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8257
21536b36
YQ
82582016-07-21 Yao Qi <yao.qi@linaro.org>
8259
8260 * server.c (handle_v_requests): Support s and S actions
8261 if target_supports_software_single_step return true.
8262
8901d193
YQ
82632016-07-21 Yao Qi <yao.qi@linaro.org>
8264
8265 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8266 is resume_step, call maybe_hw_step.
8267 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8268 and unstop them.
8269 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8270 breakpoints or not.
8271 (proceed_one_lwp): If resume request is resume_step, install
8272 reinsert breakpoints and call maybe_hw_step.
8273
0e9a339e
YQ
82742016-07-21 Yao Qi <yao.qi@linaro.org>
8275
8276 * linux-low.c (proceed_one_lwp): Declare.
8277 (linux_resume_one_thread): Remove local variable 'step'.
8278 Lift code enqueue signal. Call proceed_one_lwp instead of
8279 linux_resume_one_lwp.
8280
4281b351
YQ
82812016-07-21 Yao Qi <yao.qi@linaro.org>
8282
8283 * linux-low.c (linux_resume_one_thread): Call
8284 enqueue_pending_signal.
8285
984a2c04
YQ
82862016-07-21 Yao Qi <yao.qi@linaro.org>
8287
8288 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8289 * inferiors.c (do_restore_current_thread_cleanup): New function.
8290 (make_cleanup_restore_current_thread): Likewise.
8291 * linux-low.c (install_software_single_step_breakpoints): Call
8292 make_cleanup_restore_current_thread. Switch current_thread to
8293 thread.
8294
bec903c9
YQ
82952016-07-21 Yao Qi <yao.qi@linaro.org>
8296
8297 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8298 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8299 (clone_one_breakpoint): Likewise.
8300 (delete_reinsert_breakpoints): Change parameter to thread.
8301 Callers updated.
8302 (has_reinsert_breakpoints): Likewise.
8303 (uninsert_reinsert_breakpoints): Likewise.
8304 (reinsert_reinsert_breakpoints): Likewise.
8305 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8306 (delete_reinsert_breakpoints): Likewise.
8307 (reinsert_reinsert_breakpoints): Likewise.
8308 (uninsert_reinsert_breakpoints): Likewise.
8309 (has_reinsert_breakpoints): Likewise.
8310
63c40ec7
YQ
83112016-07-21 Yao Qi <yao.qi@linaro.org>
8312
8313 * inferiors.c (get_thread_process): Make parameter const.
8314 * inferiors.h (get_thread_process): Update declaration.
8315 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8316 Add new parameters child_thread and parent_thread. Callers
8317 updated.
8318 * mem-break.h (clone_all_breakpoints): Update declaration.
8319
9aa76cd0
YQ
83202016-07-21 Yao Qi <yao.qi@linaro.org>
8321
8322 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8323 <command_list, handler>: Remove.
8324 (struct gdb_breakpoint): New.
8325 (struct other_breakpoint): New.
8326 (struct reinsert_breakpoint): New.
8327 (is_gdb_breakpoint): New function.
8328 (any_persistent_commands): Update command_list if
8329 is_gdb_breakpoint returns true.
8330 (set_breakpoint): Create breakpoints according to their types.
8331 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8332 (set_gdb_breakpoint_1): Likewise.
8333 (set_gdb_breakpoint): Likewise.
8334 (clear_breakpoint_conditions): Change parameter type to
8335 'struct gdb_breakpoint *'.
8336 (clear_breakpoint_commands): Likewise.
8337 (clear_breakpoint_conditions_and_commands): Likewise.
8338 (add_condition_to_breakpoint): Likewise.
8339 (add_breakpoint_condition): Likewise.
8340 (add_commands_to_breakpoint): Likewise.
8341 (check_breakpoints): Check other_breakpoint.
8342 (clone_one_breakpoint): Clone breakpopint according to its type.
8343 * mem-break.h (struct gdb_breakpoint): Declare.
8344 (set_gdb_breakpoint): Update declaration.
8345 (clear_breakpoint_conditions_and_commands): Likewise.
8346 (add_breakpoint_condition): Likewise.
8347 (add_breakpoint_commands): Likewise.
8348 * server.c (process_point_options): Change parameter type to
8349 'struct gdb_breakpoint *'.
8350
811f8301
YQ
83512016-07-21 Yao Qi <yao.qi@linaro.org>
8352
8353 * mem-break.c (set_breakpoint_at): Rename it to ...
8354 (set_breakpoint_type_at): ... it.
8355 (set_breakpoint_at): Call set_breakpoint_type_at.
8356 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8357 * mem-break.h (set_breakpoint_at): Update comments.
8358
b1c51e36
CLT
83592016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8360
8361 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8362 to buf parameter.
8363 (nios2_store_gregset): Likewise.
8364
ced2dffb
PA
83652016-07-01 Pedro Alves <palves@redhat.com>
8366 Antoine Tremblay <antoine.tremblay@ericsson.com>
8367
8368 * linux-low.c: Change interface to take the target lwp_info
8369 pointer directly and return void. Handle detaching from a zombie
8370 thread.
8371 (linux_detach_lwp_callback): New function.
8372 (linux_detach): Detach from the leader thread after detaching from
8373 the clone threads.
8374
2ac09a5b
YQ
83752016-06-28 Yao Qi <yao.qi@linaro.org>
8376
8377 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8378 for variable new_offset.
8379 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8380 (aarch64_ftrace_insn_reloc_cb): Likewise.
8381 (aarch64_ftrace_insn_reloc_tb): Likewise.
8382 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8383 PRIx64 instead of PRIx32.
8384
79e7fd4f
YQ
83852016-06-28 Yao Qi <yao.qi@linaro.org>
8386
8387 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8388 (the_low_target): Install arm_get_syscall_trapinfo.
8389
061fc021
YQ
83902016-06-28 Yao Qi <yao.qi@linaro.org>
8391
8392 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8393 function.
8394 (the_low_target): Install aarch64_get_syscall_trapinfo.
8395
4cc32bec
YQ
83962016-06-28 Yao Qi <yao.qi@linaro.org>
8397
8398 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8399 Callers updated.
8400 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8401 Remove parameter sysno.
8402 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8403 sysret.
8404
782c1122
AA
84052016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8406
8407 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8408 (s390_emit_ne_goto): Likewise.
8409 (s390_emit_lt_goto): Likewise.
8410 (s390_emit_le_goto): Likewise.
8411 (s390_emit_gt_goto): Likewise.
8412 (s390_emit_ge_goto): Likewise.
8413 (s390x_emit_eq_goto): Likewise.
8414 (s390x_emit_ne_goto): Likewise.
8415 (s390x_emit_lt_goto): Likewise.
8416 (s390x_emit_le_goto): Likewise.
8417 (s390x_emit_gt_goto): Likewise.
8418 (s390x_emit_ge_goto): Likewise.
8419 (s390_emit_ops_impl): Mark variable static.
8420 (s390x_emit_ops): Likewise.
8421
2e7b624b
YQ
84222016-06-17 Yao Qi <yao.qi@linaro.org>
8423
8424 * linux-low.c (handle_extended_wait): Call
8425 uninsert_reinsert_breakpoints for the parent process. Remove
8426 reinsert breakpoints from the child process. Reinsert them to
8427 the parent process when vfork is done.
8428 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8429 (reinsert_reinsert_breakpoints): New function.
8430 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8431 (reinsert_reinsert_breakpoints): Declare.
8432
8a81c5d7
YQ
84332016-06-17 Yao Qi <yao.qi@linaro.org>
8434
8435 * linux-low.c (handle_extended_wait): If the parent is doing
8436 step-over, remove the reinsert breakpoints from the forked child.
8437
f50bf8e5
YQ
84382016-06-17 Yao Qi <yao.qi@linaro.org>
8439
8440 * linux-low.c (unsuspend_all_lwps): Declare.
8441 (linux_low_filter_event): If thread exited, call finish_step_over.
8442 If step-over is finished, unsuspend other threads.
8443
8376a3cb
YQ
84442016-06-17 Yao Qi <yao.qi@linaro.org>
8445
8446 * linux-low.c (linux_resume_one_lwp_throw): Assert
8447 has_reinsert_breakpoints returns false.
8448 * mem-break.c (delete_disabled_breakpoints): Assert
8449 bp type isn't reinsert_breakpoint.
8450
f79b145d
YQ
84512016-06-17 Yao Qi <yao.qi@linaro.org>
8452
8453 * linux-low.c (maybe_hw_step): New function.
8454 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8455 (finish_step_over): Switch current_thread to lwp temporarily,
8456 and assert has_reinsert_breakpoints returns true.
8457 (proceed_one_lwp): Call maybe_hw_step.
8458 * mem-break.c (has_reinsert_breakpoints): New function.
8459 * mem-break.h (has_reinsert_breakpoints): Declare.
8460
0ae534d2
JT
84612016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8462
8463 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8464
fcdad592
YQ
84652016-05-17 Yao Qi <yao.qi@linaro.org>
8466
8467 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8468 instead of find_inferior.
8469
9e784964
YQ
84702016-05-05 Yao Qi <yao.qi@linaro.org>
8471
8472 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8473 Initialize res to zero.
8474
cf2ebb6e
YQ
84752016-05-05 Yao Qi <yao.qi@linaro.org>
8476
8477 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8478 to uint32_t.
8479
c1aebf87
UW
84802016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8481
8482 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8483 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8484 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8485
35fd2deb 84862016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8487 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8488
8489 * tracepoint.c (write_inferior_int8): New function.
8490 (cmd_qtenable_disable): Write enable flag using
8491 write_inferior_int8.
8492
484b3c32
YQ
84932016-04-25 Yao Qi <yao.qi@linaro.org>
8494
8495 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8496 (need_step_over_p): Return zero if the LWP has pending signals
8497 can be delivered on software single step target.
8498
85ba7d86
YQ
84992016-04-25 Yao Qi <yao.qi@linaro.org>
8500
8501 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8502 return instead of error.
8503
3539aa13
YQ
85042016-04-22 Yao Qi <yao.qi@linaro.org>
8505
8506 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8507 to 23.
8508
5b061e98
YQ
85092016-04-22 Yao Qi <yao.qi@linaro.org>
8510
8511 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8512 signal when stepping over breakpoint with software single
8513 step.
8514
3451269c
PA
85152016-04-21 Pedro Alves <palves@redhat.com>
8516
8517 * linux-s390-low.c (s390_collect_ptrace_register)
8518 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8519 add casts.
8520 (s390_check_regset): Use void * instead of gdb_byte *.
8521
a2358508
PA
85222016-04-20 Pedro Alves <palves@redhat.com>
8523
8524 * configure: Renegerate.
8525
6885166d
YQ
85262016-04-20 Yao Qi <yao.qi@linaro.org>
8527
8528 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8529 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8530 number 16.
8531 (arm_store_gregset): Likewise.
8532
2b863f51
WT
85332016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8534
8535 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8536 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8537 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8538 (amd64-avx-mpx-linux.c): New rules.
8539 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8540 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8541 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8542 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8543 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8544 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8545 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8546 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8547 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8548 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8549 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8550 * linux-x86-low.c (x86_linux_read_description): Add case for
8551 X86_XSTATE_AVX_MPX_MASK.
8552 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8553 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8554 init_registers_i386_avx_mpx_linux.
8555 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8556 (initialize_low_tracepoint): Call
8557 init_registers_i386_avx_mpx_linux.
8558 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8559 (initialize_low_tracepoint): Call
8560 init_registers_amd64_avx_mpx_linux.
8561 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8562 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8563 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8564 declarations.
8565
9b30624b
PA
85662016-04-18 Pedro Alves <palves@redhat.com>
8567
8568 * configure: Regenerate.
8569
45e3745e
AT
85702016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8571
8572 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8573 (aarch64_emit_sub): Likewise.
8574
2afc13ff
PA
85752016-04-12 Pedro Alves <palves@redhat.com>
8576
8577 * utils.c (prepare_to_throw_exception): Delete.
8578
6e774b13
SM
85792016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8580
8581 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8582
4dca19f8
MK
85832016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8584
8585 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8586
d0a9981f
MK
85872016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8588
8589 * linux-aarch64-ipa.c: Add <elf.h> include.
8590 * linux-ppc-ipa.c: Add <elf.h> include.
8591 * linux-s390-ipa.c: Add <elf.h> include.
8592
252db07e
MK
85932016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8594
8595 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8596 (get_raw_reg_ptr): Likewise.
8597 (get_trace_state_variable_value_ptr): Likewise.
8598 (set_trace_state_variable_value_ptr): Likewise.
8599 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8600 char *.
8601
14e2b6d9
MK
86022016-03-31 Wei-cheng Wang <cole945@gmail.com>
8603 Marcin Kościelnicki <koriakin@0x04.net>
8604
8605 PR/17221
8606 * linux-ppc-low.c (emit_insns): New function.
8607 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8608 (ppc_emit_prologue): New function.
8609 (ppc_emit_epilogue): New function.
8610 (ppc_emit_add): New function.
8611 (ppc_emit_sub): New function.
8612 (ppc_emit_mul): New function.
8613 (ppc_emit_lsh): New function.
8614 (ppc_emit_rsh_signed): New function.
8615 (ppc_emit_rsh_unsigned): New function.
8616 (ppc_emit_ext): New function.
8617 (ppc_emit_zero_ext): New function.
8618 (ppc_emit_log_not): New function.
8619 (ppc_emit_bit_and): New function.
8620 (ppc_emit_bit_or): New function.
8621 (ppc_emit_bit_xor): New function.
8622 (ppc_emit_bit_not): New function.
8623 (ppc_emit_equal): New function.
8624 (ppc_emit_less_signed): New function.
8625 (ppc_emit_less_unsigned): New function.
8626 (ppc_emit_ref): New function.
8627 (ppc_emit_const): New function.
8628 (ppc_emit_reg): New function.
8629 (ppc_emit_pop): New function.
8630 (ppc_emit_stack_flush): New function.
8631 (ppc_emit_swap): New function.
8632 (ppc_emit_stack_adjust): New function.
8633 (ppc_emit_call): New function.
8634 (ppc_emit_int_call_1): New function.
8635 (ppc_emit_void_call_2): New function.
8636 (ppc_emit_if_goto): New function.
8637 (ppc_emit_goto): New function.
8638 (ppc_emit_eq_goto): New function.
8639 (ppc_emit_ne_goto): New function.
8640 (ppc_emit_lt_goto): New function.
8641 (ppc_emit_le_goto): New function.
8642 (ppc_emit_gt_goto): New function.
8643 (ppc_emit_ge_goto): New function.
8644 (ppc_write_goto_address): New function.
8645 (ppc_emit_ops_impl): New static variable.
8646 (ppc64v1_emit_prologue): New function.
8647 (ppc64v2_emit_prologue): New function.
8648 (ppc64_emit_epilogue): New function.
8649 (ppc64_emit_add): New function.
8650 (ppc64_emit_sub): New function.
8651 (ppc64_emit_mul): New function.
8652 (ppc64_emit_lsh): New function.
8653 (ppc64_emit_rsh_signed): New function.
8654 (ppc64_emit_rsh_unsigned): New function.
8655 (ppc64_emit_ext): New function.
8656 (ppc64_emit_zero_ext): New function.
8657 (ppc64_emit_log_not): New function.
8658 (ppc64_emit_bit_and): New function.
8659 (ppc64_emit_bit_or): New function.
8660 (ppc64_emit_bit_xor): New function.
8661 (ppc64_emit_bit_not): New function.
8662 (ppc64_emit_equal): New function.
8663 (ppc64_emit_less_signed): New function.
8664 (ppc64_emit_less_unsigned): New function.
8665 (ppc64_emit_ref): New function.
8666 (ppc64_emit_const): New function.
8667 (ppc64v1_emit_reg): New function.
8668 (ppc64v2_emit_reg): New function.
8669 (ppc64_emit_pop): New function.
8670 (ppc64_emit_stack_flush): New function.
8671 (ppc64_emit_swap): New function.
8672 (ppc64v1_emit_call): New function.
8673 (ppc64v2_emit_call): New function.
8674 (ppc64v1_emit_int_call_1): New function.
8675 (ppc64v2_emit_int_call_1): New function.
8676 (ppc64v1_emit_void_call_2): New function.
8677 (ppc64v2_emit_void_call_2): New function.
8678 (ppc64_emit_if_goto): New function.
8679 (ppc64_emit_eq_goto): New function.
8680 (ppc64_emit_ne_goto): New function.
8681 (ppc64_emit_lt_goto): New function.
8682 (ppc64_emit_le_goto): New function.
8683 (ppc64_emit_gt_goto): New function.
8684 (ppc64_emit_ge_goto): New function.
8685 (ppc64v1_emit_ops_impl): New static variable.
8686 (ppc64v2_emit_ops_impl): New static variable.
8687 (ppc_emit_ops): New function.
8688 (linux_low_target): Wire in ppc_emit_ops.
8689
a2174ba4
MK
86902016-03-31 Wei-cheng Wang <cole945@gmail.com>
8691 Marcin Kościelnicki <koriakin@0x04.net>
8692
8693 PR/17221
8694 * Makefile.in: Add powerpc-*-ipa.o
8695 * configure.srv: Add ipa_obj for powerpc*-linux.
8696 * linux-ppc-ipa.c: New file.
8697 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8698 includes.
8699 (PPC_FIELD): New macro.
8700 (PPC_SEXT): New macro.
8701 (PPC_OP6): New macro.
8702 (PPC_BO): New macro.
8703 (PPC_LI): New macro.
8704 (PPC_BD): New macro.
8705 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8706 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8707 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8708 (ppc_get_thread_area): New function.
8709 (is_elfv2_inferior): New function.
8710 (gen_ds_form): New function.
8711 (GEN_STD): New macro.
8712 (GEN_STDU): New macro.
8713 (GEN_LD): New macro.
8714 (GEN_LDU): New macro.
8715 (gen_d_form): New function.
8716 (GEN_ADDI): New macro.
8717 (GEN_ADDIS): New macro.
8718 (GEN_LI): New macro.
8719 (GEN_LIS): New macro.
8720 (GEN_ORI): New macro.
8721 (GEN_ORIS): New macro.
8722 (GEN_LWZ): New macro.
8723 (GEN_STW): New macro.
8724 (GEN_STWU): New macro.
8725 (gen_xfx_form): New function.
8726 (GEN_MFSPR): New macro.
8727 (GEN_MTSPR): New macro.
8728 (GEN_MFCR): New macro.
8729 (GEN_MTCR): New macro.
8730 (GEN_SYNC): New macro.
8731 (GEN_LWSYNC): New macro.
8732 (gen_x_form): New function.
8733 (GEN_OR): New macro.
8734 (GEN_MR): New macro.
8735 (GEN_LWARX): New macro.
8736 (GEN_STWCX): New macro.
8737 (GEN_CMPW): New macro.
8738 (gen_md_form): New function.
8739 (GEN_RLDICL): New macro.
8740 (GEN_RLDICR): New macro.
8741 (gen_i_form): New function.
8742 (GEN_B): New macro.
8743 (GEN_BL): New macro.
8744 (gen_b_form): New function.
8745 (GEN_BNE): New macro.
8746 (GEN_LOAD): New macro.
8747 (GEN_STORE): New macro.
8748 (gen_limm): New function.
8749 (gen_atomic_xchg): New function.
8750 (gen_call): New function.
8751 (ppc_relocate_instruction): New function.
8752 (ppc_install_fast_tracepoint_jump_pad): New function.
8753 (ppc_get_min_fast_tracepoint_insn_len): New function.
8754 (ppc_get_ipa_tdesc_idx): New function.
8755 (the_low_target): Wire in the new functions.
8756 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8757 tdescs.
8758 * linux-ppc-tdesc.h: New file.
8759
a13c4696
MK
87602016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8761
8762 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8763 (alloc_jump_pad_buffer): New function.
8764 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8765 (alloc_jump_pad_buffer): New function.
8766 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8767 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8768 (alloc_jump_pad_buffer): New function.
8769 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8770 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8771 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8772 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8773
1cda1512
MK
87742016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8775
8776 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8777 * linux-amd64-ipa.c: Likewise.
8778 * linux-i386-ipa.c: Likewise.
8779 * linux-s390-ipa.c: Likewise.
8780 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8781 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8782 set_trace_state_variable_value_ptr.
8783 (struct ipa_sym_addresses): Likewise.
8784 (symbol_list): Likewise.
8785 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8786 accessing gdb_collect directly.
8787 (gdb_collect_ptr_type): New typedef.
8788 (get_raw_reg_ptr_type): New typedef.
8789 (get_trace_state_variable_value_ptr_type): New typedef.
8790 (set_trace_state_variable_value_ptr_type): New typedef.
8791 (gdb_collect_ptr): New global.
8792 (get_raw_reg_ptr): New global.
8793 (get_trace_state_variable_value_ptr): New global.
8794 (set_trace_state_variable_value_ptr): New global.
8795 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8796 accessing get_raw_reg directly.
8797 (get_get_tsv_func_addr): Likewise for
8798 get_trace_state_variable_value_ptr.
8799 (get_set_tsv_func_addr): Likewise for
8800 set_trace_state_variable_value_ptr.
8801 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8802
72fb5488
SM
88032016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8804
8805 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8806
28170b88
MK
88072016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8808
8809 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8810 packets.
8811 (relocate_instruction): Remove own_buf.
8812 * server.c (own_buf): Make global.
8813 (handle_v_requests): Make global.
8814 * server.h (own_buf): New declaration.
8815 (handle_v_requests): New prototype.
8816
f39e8743
MK
88172016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8818
8819 PR 18377
8820 * linux-s390-low.c (add_insns): New function.
8821 (s390_emit_prologue): New function.
8822 (s390_emit_epilogue): New function.
8823 (s390_emit_add): New function.
8824 (s390_emit_sub): New function.
8825 (s390_emit_mul): New function.
8826 (s390_emit_lsh): New function.
8827 (s390_emit_rsh_signed): New function.
8828 (s390_emit_rsh_unsigned): New function.
8829 (s390_emit_ext): New function.
8830 (s390_emit_log_not): New function.
8831 (s390_emit_bit_and): New function.
8832 (s390_emit_bit_or): New function.
8833 (s390_emit_bit_xor): New function.
8834 (s390_emit_bit_not): New function.
8835 (s390_emit_equal): New function.
8836 (s390_emit_less_signed): New function.
8837 (s390_emit_less_unsigned): New function.
8838 (s390_emit_ref): New function.
8839 (s390_emit_if_goto): New function.
8840 (s390_emit_goto): New function.
8841 (s390_write_goto_address): New function.
8842 (s390_emit_litpool): New function.
8843 (s390_emit_const): New function.
8844 (s390_emit_call): New function.
8845 (s390_emit_reg): New function.
8846 (s390_emit_pop): New function.
8847 (s390_emit_stack_flush): New function.
8848 (s390_emit_zero_ext): New function.
8849 (s390_emit_swap): New function.
8850 (s390_emit_stack_adjust): New function.
8851 (s390_emit_set_r2): New function.
8852 (s390_emit_int_call_1): New function.
8853 (s390_emit_void_call_2): New function.
8854 (s390_emit_eq_goto): New function.
8855 (s390_emit_ne_goto): New function.
8856 (s390_emit_lt_goto): New function.
8857 (s390_emit_le_goto): New function.
8858 (s390_emit_gt_goto): New function.
8859 (s390_emit_ge_goto): New function.
8860 (s390x_emit_prologue): New function.
8861 (s390x_emit_epilogue): New function.
8862 (s390x_emit_add): New function.
8863 (s390x_emit_sub): New function.
8864 (s390x_emit_mul): New function.
8865 (s390x_emit_lsh): New function.
8866 (s390x_emit_rsh_signed): New function.
8867 (s390x_emit_rsh_unsigned): New function.
8868 (s390x_emit_ext): New function.
8869 (s390x_emit_log_not): New function.
8870 (s390x_emit_bit_and): New function.
8871 (s390x_emit_bit_or): New function.
8872 (s390x_emit_bit_xor): New function.
8873 (s390x_emit_bit_not): New function.
8874 (s390x_emit_equal): New function.
8875 (s390x_emit_less_signed): New function.
8876 (s390x_emit_less_unsigned): New function.
8877 (s390x_emit_ref): New function.
8878 (s390x_emit_if_goto): New function.
8879 (s390x_emit_const): New function.
8880 (s390x_emit_call): New function.
8881 (s390x_emit_reg): New function.
8882 (s390x_emit_pop): New function.
8883 (s390x_emit_stack_flush): New function.
8884 (s390x_emit_zero_ext): New function.
8885 (s390x_emit_swap): New function.
8886 (s390x_emit_stack_adjust): New function.
8887 (s390x_emit_int_call_1): New function.
8888 (s390x_emit_void_call_2): New function.
8889 (s390x_emit_eq_goto): New function.
8890 (s390x_emit_ne_goto): New function.
8891 (s390x_emit_lt_goto): New function.
8892 (s390x_emit_le_goto): New function.
8893 (s390x_emit_gt_goto): New function.
8894 (s390x_emit_ge_goto): New function.
8895 (s390_emit_ops): New function.
8896 (struct linux_target_ops): Fill in emit_ops hook.
8897
abd9baf9
MK
88982016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8899
8900 PR 18377
8901 * Makefile.in: Add s390 IPA files.
8902 * configure.srv: Build IPA for s390.
8903 * linux-s390-ipa.c: New file.
8904 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8905 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8906 (tdesc_s390_linux32): Likewise.
8907 (init_registers_s390_linux32v1): Likewise.
8908 (tdesc_s390_linux32v1): Likewise.
8909 (init_registers_s390_linux32v2): Likewise.
8910 (tdesc_s390_linux32v2): Likewise.
8911 (init_registers_s390_linux64): Likewise.
8912 (tdesc_s390_linux64): Likewise.
8913 (init_registers_s390_linux64v1): Likewise.
8914 (tdesc_s390_linux64v1): Likewise.
8915 (init_registers_s390_linux64v2): Likewise.
8916 (tdesc_s390_linux64v2): Likewise.
8917 (init_registers_s390_te_linux64): Likewise.
8918 (tdesc_s390_te_linux64): Likewise.
8919 (init_registers_s390_vx_linux64): Likewise.
8920 (tdesc_s390_vx_linux64): Likewise.
8921 (init_registers_s390_tevx_linux64): Likewise.
8922 (tdesc_s390_tevx_linux64): Likewise.
8923 (init_registers_s390x_linux64): Likewise.
8924 (tdesc_s390x_linux64): Likewise.
8925 (init_registers_s390x_linux64v1): Likewise.
8926 (tdesc_s390x_linux64v1): Likewise.
8927 (init_registers_s390x_linux64v2): Likewise.
8928 (tdesc_s390x_linux64v2): Likewise.
8929 (init_registers_s390x_te_linux64): Likewise.
8930 (tdesc_s390x_te_linux64): Likewise.
8931 (init_registers_s390x_vx_linux64): Likewise.
8932 (tdesc_s390x_vx_linux64): Likewise.
8933 (init_registers_s390x_tevx_linux64): Likewise.
8934 (tdesc_s390x_tevx_linux64): Likewise.
8935 (have_hwcap_s390_vx): New static variable.
8936 (s390_arch_setup): Fill have_hwcap_s390_vx.
8937 (s390_get_thread_area): New function.
8938 (s390_ft_entry_gpr_esa): New const.
8939 (s390_ft_entry_gpr_zarch): New const.
8940 (s390_ft_entry_misc): New const.
8941 (s390_ft_entry_fr): New const.
8942 (s390_ft_entry_vr): New const.
8943 (s390_ft_main_31): New const.
8944 (s390_ft_main_64): New const.
8945 (s390_ft_exit_fr): New const.
8946 (s390_ft_exit_vr): New const.
8947 (s390_ft_exit_misc): New const.
8948 (s390_ft_exit_gpr_esa): New const.
8949 (s390_ft_exit_gpr_zarch): New const.
8950 (append_insns): New function.
8951 (s390_relocate_instruction): New function.
8952 (s390_install_fast_tracepoint_jump_pad): New function.
8953 (s390_get_min_fast_tracepoint_insn_len): New function.
8954 (s390_get_ipa_tdesc_idx): New function.
8955 (struct linux_target_ops): Wire in the above functions.
8956 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8957 * linux-s390-tdesc.h: New file.
8958
a4105d04
MK
89592016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8960
8961 * linux-s390-low.c (s390_supports_tracepoints): New function.
8962 (struct linux_target_ops): Fill supports_tracepoints hook.
8963
35ac8b3e
YQ
89642016-03-18 Yao Qi <yao.qi@linaro.org>
8965
8966 * linux-low.c (lwp_signal_can_be_delivered): New function.
8967 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8968
94610ec4
YQ
89692016-03-18 Yao Qi <yao.qi@linaro.org>
8970
8971 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8972 0 if signal is enqueued. Remove 'signal' from one debugging
8973 message. Move one debugging message to some lines below.
8974 Remove code setting 'signal' to 0.
8975
80aea927
YQ
89762016-03-18 Yao Qi <yao.qi@linaro.org>
8977
8978 * linux-low.c (linux_low_filter_event): Remove redundant
8979 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8980
b04fd3be
MK
89812016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8982
8983 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8984 (struct linux_target_ops): Wire in the above.
8985
c40c8d4b
YQ
89862016-03-03 Yao Qi <yao.qi@linaro.org>
8987
8988 * linux-low.c: Update comments to start_step_over.
8989
0f8288ae
YQ
89902016-03-03 Yao Qi <yao.qi@linaro.org>
8991
8992 PR server/19736
8993 * linux-low.c (handle_extended_wait): Set child suspended
8994 if event_lwp->bp_reinsert isn't zero.
8995
fdbd04a8
YQ
89962016-03-02 Yao Qi <yao.qi@linaro.org>
8997
8998 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8999 enqueue_pending_signal.
9000
6896a8fa
MK
90012016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9002
9003 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9004 is actually loaded.
9005
ab503087
MK
90062016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9007
9008 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9009 (s390_regmap_3264) [!__s390x__]: New global.
9010 (s390_collect_ptrace_register): Skip map entries containing -1.
9011 (s390_supply_ptrace_register): Ditto.
9012 (s390_fill_gprs_high): New function.
9013 (s390_store_gprs_high): New function.
9014 (s390_regsets): Add NT_S390_HIGH_GPRS.
9015 (s390_get_hwcap): Enable on 31-bit.
9016 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9017 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9018 Detect NT_S390_HIGH_GPRS.
9019 (s390_usrregs_info_3264): Enable on 31-bit.
9020 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9021 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9022
ae91f625
MK
90232016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9024
9025 PR gdb/13808
9026 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9027 * configure.srv: Ditto.
9028 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9029 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9030 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9031 (init_registers_amd64_linux): Remove prototype.
9032 (tdesc_amd64_linux): Remove declaration.
9033 (get_ipa_tdesc): New function.
9034 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9035 initialize remaining tdescs.
9036 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9037 (init_registers_i386_linux): Remove prototype.
9038 (tdesc_i386_linux): Remove declaration.
9039 (get_ipa_tdesc): New function.
9040 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9041 initialize remaining tdescs.
9042 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9043 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9044 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9045 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9046 (x86_get_ipa_tdesc_idx): New function.
9047 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9048 * linux-x86-tdesc.h: New file.
9049 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9050 (target_get_ipa_tdesc_idx): New macro.
9051 * tracepoint.c (ipa_tdesc_idx): New macro.
9052 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9053 (symbol_list): Add ipa_tdesc_idx.
9054 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9055 (ipa_tdesc): Remove.
9056 (ipa_tdesc_idx): New variable.
9057 (get_context_regcache): Use get_ipa_tdesc.
9058 (gdb_collect): Ditto.
9059 (gdb_probe): Ditto.
9060 * tracepoint.h (get_ipa_tdesc): New prototype.
9061 (ipa_tdesc): Remove.
9062
e7ad2f14
PA
90632016-02-24 Pedro Alves <palves@redhat.com>
9064
9065 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9066 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9067 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9068 Factor out common code between the USE_SIGTRAP_SIGINFO and
9069 !USE_SIGTRAP_SIGINFO blocks.
9070 (linux_low_filter_event): Call save_stop_reason instead of
9071 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9072 Update comments.
9073 (linux_wait_1): Update comments.
9074
657f9cde
WW
90752016-02-24 Wei-cheng Wang <cole945@gmail.com>
9076
9077 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9078 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9079 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9080 ppc_insert_point, ppc_remove_point.
9081
b00b61e1
MK
90822016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9083
9084 * linux-s390-low.c (s390_supports_z_point_type): New function.
9085 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9086
553cb527
YQ
90872016-02-16 Yao Qi <yao.qi@linaro.org>
9088
9089 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9090 PC. Get pc from regcache_read_pc.
9091
a5652c21
YQ
90922016-02-12 Yao Qi <yao.qi@linaro.org>
9093
9094 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9095 or linux_get_pc_32bit.
9096 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9097
ed443b61
YQ
90982016-02-12 Yao Qi <yao.qi@linaro.org>
9099
9100 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9101 arm_linux_get_next_pcs_fixup.
9102
020ecd38
MK
91032016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9104
9105 * tracepoint.c (x_tracepoint_action_download): Change
9106 write_inferior_data_ptr to write_inferior_data_pointer.
9107 (cmd_qtstart): Likewise.
9108 (write_inferior_data_ptr): Remove.
9109 (download_agent_expr): Change write_inferior_data_ptr to
9110 write_inferior_data_pointer.
9111 (download_tracepoint_1): Likewise.
9112 (download_tracepoint): Likewise.
9113 (download_trace_state_variables): Likewise.
9114
7cae9051
WW
91152016-02-11 Wei-cheng Wang <cole945@gmail.com>
9116 Marcin Kościelnicki <koriakin@0x04.net>
9117
9118 * tracepoint.c (struct tracepoint_action_ops): Remove.
9119 (struct tracepoint_action): Remove ops.
9120 (m_tracepoint_action_download, r_tracepoint_action_download)
9121 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9122 size and offset accordingly.
9123 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9124 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9125 (tracepoint_action_send, tracepoint_action_download): New functions.
9126 Helpers for trace action handlers.
9127 (add_tracepoint_action): Remove setup actions ops.
9128 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9129
9f6a71b4
YQ
91302016-02-10 Yao Qi <yao.qi@linaro.org>
9131
9132 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9133
1e94266c
SM
91342016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9135
9136 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9137 to AC_OUTPUT.
9138 * configure: Regenerate.
9139
8adce034
SM
91402016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9141
9142 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9143 void * to gdb_byte *.
9144 * linux-low.c (siginfo_fixup): Likewise.
9145 (linux_xfer_siginfo): Likewise.
9146 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9147 Likewise.
9148 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9149
93813b37
WT
91502016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9151
9152 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9153 to srv_tgtobj.
9154 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9155 to srv_tgtobj.
9156 * linux-x86-low.c [__x86_64__]: Include
9157 "nat/amd64-linux-siginfo.h".
9158 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9159 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9160 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9161 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9162 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9163 (cpt_si_fd, si_timerid, si_overrun): Move from
9164 nat/amd64-linux-siginfo.c.
9165 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9166
8424cc97
SM
91672016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9168
9169 * server.c (skip_to_semicolon): Remove.
9170 (process_point_options): Use strchrnul instead of
9171 skip_to_semicolon.
9172
4d18591b
YQ
91732016-01-26 Yao Qi <yao.qi@linaro.org>
9174
9175 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9176 * linux-low.c (install_software_single_step_breakpoints): Don't
9177 call regcache_read_pc.
9178 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9179 argument pc.
9180
d8020970
YQ
91812016-01-26 Yao Qi <yao.qi@linaro.org>
9182
9183 * linux-low.c (install_software_single_step_breakpoints): Call
9184 regcache_read_pc instead of get_pc.
9185
8b207339
YQ
91862016-01-26 Yao Qi <yao.qi@linaro.org>
9187
9188 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9189 (unblock_async_io): Rename to ...
9190 (block_unblock_async_io): ... it. New function.
9191 (enable_async_io): Don't install SIGIO handler. Unblock it
9192 instead.
9193 (disable_async_io): Don't ignore SIGIO. Block it instead.
9194 (initialize_async_io): Install SIGIO handler. Don't call
9195 unblock_async_io.
9196
18879fef
YQ
91972016-01-26 Yao Qi <yao.qi@linaro.org>
9198
9199 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9200 first character is '\003', call *the_target->request_interrupt.
9201
a0f8e08a
YQ
92022016-01-25 Yao Qi <yao.qi@linaro.org>
9203
9204 * remote-utils.c (new_thread_notify): Remove.
9205 (dead_thread_notify): Likewise.
9206 * remote-utils.h (new_thread_notify): Remove declaration.
9207 (dead_thread_notify): Likewise.
9208
cc5fd9ab
MK
92092016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9210
9211 * gdb.trace/pending.exp: Fix expected message on continue.
9212
99e8eb11
MK
92132016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9214
9215 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9216 it works properly on big-endian machines where sizeof (CORE_ADDR)
9217 != sizeof (void *).
9218
a994041d
PA
92192016-01-21 Pedro Alves <palves@redhat.com>
9220
9221 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9222 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9223 * configure: Regenerate.
9224
f7a6a40d
YQ
92252016-01-21 Yao Qi <yao.qi@linaro.org>
9226
9227 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9228 is_thumb and set it according to CPSR saved on the stack.
9229 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9230 arm_sigreturn_next_pc.
9231
6f69e520
YQ
92322016-01-18 Yao Qi <yao.qi@linaro.org>
9233
9234 * linux-low.c (linux_set_pc_64bit): New function.
9235 (linux_get_pc_64bit): New function.
9236 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9237 Declare.
9238 * linux-sparc-low.c (debug_threads): Remove declaration.
9239 (sparc_get_pc): Remove.
9240 (the_low_target): Use linux_get_pc_64bit instead of
9241 sparc_get_pc.
9242 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9243 (the_low_target): Use linux_get_pc_64bit and
9244 linux_set_pc_64bit.
9245
276d4552
YQ
92462016-01-18 Yao Qi <yao.qi@linaro.org>
9247
9248 * linux-arm-low.c (debug_threads): Remove declaration.
9249 (arm_get_pc, arm_set_pc): Remove.
9250 (the_low_target): Use linux_get_pc_32bit and
9251 linux_set_pc_32bit.
9252 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9253 (the_low_target): Use linux_get_pc_32bit and
9254 linux_set_pc_32bit.
9255 * linux-cris-low.c (debug_threads): Remove declaration.
9256 (cris_get_pc, cris_set_pc,): Remove.
9257 (the_low_target): Use linux_get_pc_32bit and
9258 linux_set_pc_32bit.
9259 * linux-crisv32-low.c (debug_threads): Remove declaration.
9260 (cris_get_pc, cris_set_pc): Remove.
9261 (the_low_target): Use linux_get_pc_32bit and
9262 linux_set_pc_32bit.
9263 * linux-low.c: Include inttypes.h.
9264 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9265 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9266 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9267 (the_low_target): Use linux_get_pc_32bit and
9268 linux_set_pc_32bit.
9269 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9270 (the_low_target): Use linux_get_pc_32bit and
9271 linux_set_pc_32bit.
9272 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9273 (the_low_target): Use linux_get_pc_32bit and
9274 linux_set_pc_32bit.
9275 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9276 (the_low_target): Use linux_get_pc_32bit and
9277 linux_set_pc_32bit.
9278 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9279 (the_low_target): Use linux_get_pc_32bit and
9280 linux_set_pc_32bit.
9281
eb0edac8
GB
92822016-01-18 Gary Benson <gbenson@redhat.com>
9283
9284 * configure.ac (AC_FUNC_FORK): New check.
9285 * config.in: Regenerate.
9286 * configure: Likewise.
9287
1b451dda
YQ
92882016-01-14 Yao Qi <yao.qi@linaro.org>
9289
9290 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9291 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9292 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9293 arm_get_next_pcs_ctor.
9294
82075af2
JS
92952016-01-12 Josh Stone <jistone@redhat.com>
9296 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9297
9298 * inferiors.h: Include "gdb_vecs.h".
9299 (struct process_info): Add syscalls_to_catch.
9300 * inferiors.c (remove_process): Free syscalls_to_catch.
9301 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9302 syscall_return stops.
9303 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9304 * server.c (handle_general_set): Handle QCatchSyscalls.
9305 (handle_query): Report support for QCatchSyscalls.
9306 * target.h (struct target_ops): Add supports_catch_syscall.
9307 (target_supports_catch_syscall): New macro.
9308 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9309 (struct lwp_info): Add syscall_state.
9310 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9311 Maintain syscall_state and syscalls_to_catch across exec.
9312 (get_syscall_trapinfo): New function, proxy to the_low_target.
9313 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9314 (linux_low_filter_event): Toggle syscall_state entry/return for
9315 syscall traps, and set it ignored for all others.
9316 (gdb_catching_syscalls_p): New function.
9317 (gdb_catch_this_syscall_p): New function.
9318 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9319 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9320 (linux_supports_catch_syscall): New function.
9321 (linux_target_ops): Install it.
9322 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9323 (the_low_target): Install it.
9324
8f13a3ce
MF
93252016-01-12 Mike Frysinger <vapier@gentoo.org>
9326
9327 * acinclude.m4: Include new ../warning.m4 file.
9328 * configure: Regenerated.
9329 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9330
5b3da067
MF
93312016-01-12 Mike Frysinger <vapier@gentoo.org>
9332
9333 * ax.c (is_goto_target): Mark static.
9334 * linux-low.c (register_addr): Likewise.
9335 (linux_fetch_registers, linux_store_registers): Likewise.
9336 * mem-break.c (any_persistent_commands): Fix old prototype.
9337 (add_commands_to_breakpoint): Mark static.
9338 * regcache.c (find_register_by_name): Delete unused func.
9339 * remote-utils.c (hex_or_minus_one): Mark static.
9340 * server.c (monitor_show_help): Mark static.
9341 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9342 handle_v_requests): Likewise.
9343
bc504a31
PA
93442016-01-12 Pedro Alves <palves@redhat.com>
9345
9346 Remove use of the registered trademark symbol throughout.
9347
5a0dd67a
YQ
93482016-01-08 Yao Qi <yao.qi@linaro.org>
9349
9350 * remote-utils.c (getpkt): If c is '\003', call target hook
9351 request_interrupt.
9352
b2ca446f
YQ
93532016-01-06 Yao Qi <yao.qi@linaro.org>
9354
9355 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9356 linux-aarch32-low.c.
9357 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9358 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9359 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9360 (thumb2_breakpoint): Declare.
9361 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9362 linux-aarch32-low.h.
9363 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9364 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9365 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9366
edd88788
JB
93672016-01-01 Joel Brobecker <brobecker@adacore.com>
9368
9369 * gdbreplay.c (gdbreplay_version): Change copyright year in
9370 version message.
9371 * server.c (gdbserver_version): Likewise.
9372
65da7f14
PP
93732015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9374
9375 * server.c (crc32_table): Delete.
9376 (crc32): Use libiberty's xcrc32 function.
9377
4abd5ed2
JB
93782015-12-22 Joel Brobecker <brobecker@adacore.com>
9379
9380 * lynx-low.c (lynx_delete_thread_callback): New function.
9381 (lynx_mourn): Properly delete our process and all of its
9382 threads. Remove call to clear_inferiors.
9383
0e50fe5c
JB
93842015-12-22 Joel Brobecker <brobecker@adacore.com>
9385
9386 * target.c (thread_search_callback): Add check that
9387 the thread_stopped target callback is not NULL before
9388 calling it.
9389
35adc03f
YQ
93902015-12-21 Yao Qi <yao.qi@linaro.org>
9391
9392 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9393 arm breakpoint.
9394
bd2b2909
AT
93952015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9396
9397 * server.c (handle_query): Call target_supports_software_single_step.
9398
7fe5e27e
AT
93992015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9400
9401 * linux-low.c (single_step): New function.
9402 (linux_resume_one_lwp_throw): Call single_step.
9403 (start_step_over): Likewise.
9404
d9311bfa
AT
94052015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9406
9407 * Makefile.in (SFILES): Append arch/arm-linux.c,
9408 arch/arm-get-next-pcs.c.
9409 (arm-linux.o): New rule.
9410 (arm-get-next-pcs.o): New rule.
9411 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9412 arm-linux.o.
9413 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9414 to linux-aarch32-low.c.
9415 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9416 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9417 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9418 (thumb2_breakpoint_len): Likewise.
9419 (arm_is_thumb_mode): Make non-static.
9420 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9421 from linux-aarch32-low.c.
9422 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9423 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9424 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9425 (thumb2_breakpoint_len): Likewise.
9426 (arm_is_thumb_mode): New declaration.
9427 * linux-arm-low.c: Include arch/arm-linux.h
9428 aarch/arm-get-next-pcs.h, sys/syscall.h.
9429 (get_next_pcs_ops): New struct.
9430 (get_next_pcs_addr_bits_remove): New function.
9431 (get_next_pcs_is_thumb): New function.
9432 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9433 (arm_sigreturn_next_pc): Likewise.
9434 (get_next_pcs_syscall_next_pc): Likewise.
9435 (arm_gdbserver_get_next_pcs): Likewise.
9436 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9437 Initialize.
9438 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9439 * server.h: Include gdb_vecs.h.
9440
68ce2059
AT
94412015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9442
9443 * Makefile.in (SFILES): Append common/common-regcache.c.
9444 (OBS): Append common-regcache.o.
9445 (common-regcache.o): New rule.
9446 * regcache.c (init_register_cache): Initialize cache to
9447 REG_UNAVAILABLE.
9448 (regcache_raw_read_unsigned): New function.
9449 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9450 register_status enum.
9451
fa5308bd
AT
94522015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9453
9454 * linux-aarch64-low.c (the_low_targets): Rename
9455 breakpoint_reinsert_addr to get_next_pcs.
9456 * linux-arm-low.c (the_low_targets): Likewise.
9457 * linux-bfin-low.c (the_low_targets): Likewise.
9458 * linux-cris-low.c (the_low_targets): Likewise.
9459 * linux-crisv32-low.c (the_low_targets): Likewise.
9460 * linux-low.c (can_software_single_step): Likewise.
9461 (install_software_single_step_breakpoints): New function.
9462 (start_step_over): Use install_software_single_step_breakpoints.
9463 * linux-low.h: New CORE_ADDR vector.
9464 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9465 get_next_pcs.
9466 * linux-mips-low.c (the_low_targets): Likewise.
9467 * linux-nios2-low.c (the_low_targets): Likewise.
9468 * linux-sparc-low.c (the_low_targets): Likewise.
9469
4a6ed09b
PA
94702015-12-17 Pedro Alves <palves@redhat.com>
9471
9472 * linux-low.c (linux_kill_one_lwp): Remove references to
9473 LinuxThreads.
9474 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9475 to 'kill'.
9476 (linux_init_signals): Delete.
9477 (initialize_low): Adjust.
9478 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9479
7544db95
PA
94802015-12-16 Pedro Alves <palves@redhat.com>
9481
9482 * configure.ac (compiler warning flags): When testing a
9483 -Wno-foo option, check whether -Wfoo works instead.
9484 * configure: Regenerate.
9485
8020350c
DB
94862015-12-11 Don Breazeal <donb@codesourcery.com>
9487
9488 * server.c (process_serial_event): Don't exit from gdbserver
9489 in remote mode if there are still active inferiors.
9490
db91f502
YQ
94912015-12-11 Yao Qi <yao.qi@linaro.org>
9492
9493 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9494 arm_breakpoint_at if the process is 32-bit.
9495
b37a6290
YQ
94962015-12-11 Yao Qi <yao.qi@linaro.org>
9497
9498 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9499 arm breakpoint.
9500
17b1509a
YQ
95012015-12-07 Yao Qi <yao.qi@linaro.org>
9502
9503 * configure.srv: Append arm.o to srv_tgtobj for
9504 aarch64*-*-linux* target.
9505 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9506 from linux-arm-low.c.
9507 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9508 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9509 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9510 (thumb2_breakpoint_len): Likewise.
9511 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9512 (arm_breakpoint_kinds): Likewise.
9513 (arm_breakpoint_kind_from_pc): Likewise.
9514 (arm_sw_breakpoint_from_kind): Likewise.
9515 (arm_breakpoint_kind_from_current_state): Likewise.
9516 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9517 (arm_sw_breakpoint_from_kind): Declare.
9518 (arm_breakpoint_kind_from_current_state): Declare.
9519 (arm_breakpoint_at): Declare.
9520 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9521 arm_sw_breakpoint_from_kind if process is 32-bit.
9522 (aarch64_breakpoint_kind_from_pc): New function.
9523 (aarch64_breakpoint_kind_from_current_state): New function.
9524 (the_low_target): Initialize fields breakpoint_kind_from_pc
9525 and breakpoint_kind_from_current_state.
9526 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9527 linux-aarch32-low.c.
9528 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9529 (arm_breakpoint, arm_breakpoint_len): Likewise.
9530 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9531 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9532 (arm_is_thumb_mode): Likewise.
9533 (arm_breakpoint_at): Likewise.
9534 (arm_breakpoint_kind_from_pc): Likewise.
9535 (arm_sw_breakpoint_from_kind): Likewise.
9536 (arm_breakpoint_kind_from_current_state): Likewise.
9537
9538 Revert:
9539 2015-08-04 Yao Qi <yao.qi@linaro.org>
9540
9541 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9542 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9543 * server.c (extended_protocol): Remove "static".
9544 * server.h (extended_protocol): Declare it.
9545
ece66d65
JS
95462015-12-04 Josh Stone <jistone@redhat.com>
9547
9548 * target.h (struct target_ops) <arch_setup>: Rename to ...
9549 (struct target_ops) <post_create_inferior>: ... this.
9550 (target_arch_setup): Rename to ...
9551 (target_post_create_inferior): ... this, calling post_create_inferior.
9552 * server.c (start_inferior): Update target_arch_setup calls to
9553 target_post_create_inferior.
9554 * linux-low.c (linux_low_ptrace_options): Forward declare.
9555 (linux_arch_setup): Update its comment for general use.
9556 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9557 (struct linux_target_ops): Use linux_post_create_inferior.
9558 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9559 to post_create_inferior.
9560 * nto-low.c (struct nto_target_ops): Likewise.
9561 * spu-low.c (struct spu_target_ops): Likewise.
9562 * win32-low.c (struct win32_target_ops): Likewise.
9563
e58c48b4
AT
95642015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9565
9566 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9567
fbec8956
AT
95682015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9569
9570 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9571 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9572 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9573 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9574 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9575 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9576 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9577 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9578 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9579 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9580 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9581 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9582
9b4c5f87
AT
95832015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9584
9585 * linux-low.c (linux_look_up_symbols): Don't call
9586 linux_supports_traceclone.
9587 * linux-low.h (thread_db_init): Remove use_events argument.
9588 * thread-db.c (thread_db_use_event): Remove global variable.
9589 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9590 (struct thread_db) <td_create_bp>: Remove field.
9591 (thread_db_create_event): Remove function.
9592 (thread_db_enable_reporting): Likewise.
9593 (find_one_thread): Don't check for thread_db_use_events.
9594 (attach_thread): Likewise.
9595 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9596 (try_thread_db_load_1): Don't check for thread_db_use_events.
9597 (thread_db_init): Remove use_events argument and thread events
9598 handling.
9599 (remove_thread_event_breakpoints): Remove function.
9600 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9601
7d00775e
AT
96022015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9603
9604 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9605 New function.
9606 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9607 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9608 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9609 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9610 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9611 Initialize.
9612 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9613 New function.
9614 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9615 * linux-low.c (can_hardware_single_step): Use
9616 supports_hardware_single_step.
9617 (can_software_single_step): New function.
9618 (start_step_over): Call can_software_single_step.
9619 (linux_supports_hardware_single_step): New function.
9620 (struct target_ops) <supports_software_single_step>: Initialize.
9621 * linux-low.h (struct linux_target_ops)
9622 <supports_hardware_single_step>: Initialize.
9623 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9624 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9625 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9626 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9627 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9628 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9629 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9630 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9631 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9632 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9633 Initialize.
9634 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9635 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9636 Initialize.
9637 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9638 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9639 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9640 New function.
9641 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9642 * target.h (struct target_ops): <supports_software_single_step>:
9643 New field.
9644 (target_supports_software_single_step): New macro.
9645
2d97cd35
AT
96462015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9647
9648 * linux-low.c (linux_wait_1): Fix pc advance condition.
9649 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9650 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9651
769ef81f
AT
96522015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9653
9654 * linux-arm-low.c (arm_is_thumb_mode): New function.
9655 (arm_breakpoint_at): Use arm_is_thumb_mode.
9656 (arm_breakpoint_kind_from_current_state): New function.
9657 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9658 Initialize.
9659 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9660 (linux_breakpoint_kind_from_current_state): New function.
9661 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9662 * linux-low.h (struct linux_target_ops)
9663 <breakpoint_kind_from_current_state>: New field.
9664 * target.h (struct target_ops): Likewise.
9665 (target_breakpoint_kind_from_current_state): New macro.
9666
1bebeeca
PA
96672015-11-30 Pedro Alves <palves@redhat.com>
9668
9669 * linux-low.c (linux_resume): Wake up the event loop before
9670 returning.
9671
a67a9fae
PA
96722015-11-30 Pedro Alves <palves@redhat.com>
9673
9674 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9675 check.
9676 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9677 to -1.
9678 * target.c (struct thread_search): New structure.
9679 (thread_search_callback): New function.
9680 (prev_general_thread): New global.
9681 (prepare_to_access_memory, done_accessing_memory): New functions.
9682 * target.h (prepare_to_access_memory, done_accessing_memory):
9683 Replace macros with function declarations.
9684
f2faf941
PA
96852015-11-30 Pedro Alves <palves@redhat.com>
9686
9687 PR 14618
9688 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9689 report TARGET_WAITKIND_NO_RESUMED.
9690 * remote-utils.c (prepare_resume_reply): Handle
9691 TARGET_WAITKIND_NO_RESUMED.
9692 * server.c (report_no_resumed): New global.
9693 (handle_query) <qSupported>: Handle "no-resumed+". Report
9694 "no-resumed+" support.
9695 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9696 return error if the client doesn't support no-resumed events.
9697 (push_stop_notification): New function.
9698 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9699 events if the client supports them.
9700
a681f9c9
PA
97012015-11-30 Pedro Alves <palves@redhat.com>
9702
9703 * linux-low.c (thread_still_has_status_pending_p): Don't check
9704 vCont;t here.
9705 (lwp_resumed): New function.
9706 (status_pending_p_callback): Return early if the LWP is not
9707 supposed to be resumed.
9708
65706a29
PA
97092015-11-30 Pedro Alves <palves@redhat.com>
9710
9711 * linux-low.c (handle_extended_wait): Assert that the LWP's
9712 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9713 thread create events, leave the new child's status pending.
9714 (linux_low_filter_event): If GDB wants to hear about thread exit
9715 events, leave the LWP marked dead and don't delete it.
9716 (linux_wait_for_event_filtered): Don't check for thread exit.
9717 (filter_exit_event): New function.
9718 (linux_wait_1): Use it, when returning an exit event.
9719 (linux_resume_one_lwp_throw): Assert that the LWP's
9720 waitstatus is TARGET_WAITKIND_IGNORE.
9721 * remote-utils.c (prepare_resume_reply): Handle
9722 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9723 * server.c (report_thread_events): New global.
9724 (handle_general_set): Handle QThreadEvents.
9725 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9726 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9727 TARGET_WAITKIND_THREAD_EXITED.
9728 * server.h (report_thread_events): Declare.
9729
56cf4bed
PA
97302015-11-30 Pedro Alves <palves@redhat.com>
9731
9732 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9733 the thread's last_resume_kind was resume_stop.
9734
500c1d85
PA
97352015-11-30 Pedro Alves <palves@redhat.com>
9736
9737 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9738 before returning.
9739
de979965
PA
97402015-11-30 Pedro Alves <palves@redhat.com>
9741
9742 * server.c (handle_v_requests): Handle vCtrlC.
9743
34c65914
PA
97442015-11-30 Pedro Alves <palves@redhat.com>
9745
9746 * gdbthread.h (find_any_thread_of_pid): Declare.
9747 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9748 functions.
9749 * server.c (handle_query): If current_thread is NULL, look for
9750 another thread of the selected process.
9751
79efa585 97522015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9753 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9754
9755 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9756 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9757 name in reply.
9758 * target.h (struct target_ops) <thread_name>: New field.
9759 (target_thread_name): New macro.
9760
80d82c19
JB
97612015-11-23 Joel Brobecker <brobecker@adacore.com>
9762
9763 * regcache.h (regcache_invalidate_pid): Add declaration.
9764 * regcache.c (regcache_invalidate_pid): New function, extracted
9765 from regcache_invalidate.
9766 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9767 Add trivial documentation comment.
9768 * lynx-low.c: Use regcache_invalidate_pid instead of
9769 regcache_invalidate.
9770
64da5dd5
JB
97712015-11-23 Joel Brobecker <brobecker@adacore.com>
9772
9773 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9774 and Elf64_auxv_t if the target is Android.
9775
37ce4055
DE
97762015-11-22 Doug Evans <xdje42@gmail.com>
9777
9778 * target.h: #include <sys/types.h>.
9779
06e03fff
PA
97802015-11-19 Pedro Alves <palves@redhat.com>
9781
9782 * linux-low.c (linux_process_qsupported): Change prototype.
9783 Adjust.
9784 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9785 Change prototype.
9786 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9787 and adjust to loop over all features.
9788 * server.c (handle_query) <qSupported>: Adjust to call
9789 target_process_qsupported once, passing it a vector of unprocessed
9790 features.
9791 * target.h (struct target_ops) <process_qsupported>: Change
9792 prototype.
9793 (target_process_qsupported): Adjust.
9794
9a084706
PA
97952015-11-19 Pedro Alves <palves@redhat.com>
9796
9797 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9798 mode.
9799 * configure: Regenerate.
9800
dad44a1f
PA
98012015-11-19 Pedro Alves <palves@redhat.com>
9802
9803 * configure: Regenerate.
9804
231c0592
YQ
98052015-11-19 Yao Qi <yao.qi@linaro.org>
9806
9807 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9808 type to uint32_t.
9809
6c1c9a8b
YQ
98102015-11-19 Yao Qi <yao.qi@linaro.org>
9811
9812 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9813 (struct aarch64_operand): Move enum out.
9814
9caa3311
YQ
98152015-11-19 Yao Qi <yao.qi@linaro.org>
9816
9817 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9818 struct user_fpsimd_state *.
9819 (aarch64_store_fpregset): Likewise.
9820
6a69a054
YQ
98212015-11-19 Yao Qi <yao.qi@linaro.org>
9822
9823 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9824 struct user_pt_regs *.
9825 (aarch64_store_gregset): Likewise.
9826
1798301e
PA
98272015-11-18 Pedro Alves <palves@redhat.com>
9828
9829 * Makefile.in (all_object_files): Add $IPA_OBJS.
9830
ce7715e2
PA
98312015-11-17 Pedro Alves <palves@redhat.com>
9832
9833 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9834 GDB_SIGNAL_0 and gdb_signal_to_string.
9835
c0879059
PA
98362015-11-17 Pedro Alves <palves@redhat.com>
9837
9838 * win32-low.c (handle_output_debug_string): Remove parameter.
9839 (win32_kill): Remove our_status local and adjust call to
9840 handle_output_debug_string.
9841 (get_child_debug_event): Adjust call to
9842 handle_output_debug_string.
9843
1996e237
SM
98442015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9845
9846 * linux-mips-low.c (mips_fill_gregset): Add cast.
9847 (mips_store_gregset): Likewise.
9848 (mips_fill_fpregset): Likewise.
9849 (mips_store_fpregset): Likewise.
9850
cbec665b
SM
98512015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9852
9853 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9854 priv.
9855
eb3e3c67
SM
98562015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9857
9858 * linux-mips-low.c (mips_linux_new_thread): Change type of
9859 watch_type to enum target_hw_bp_type.
9860
171de4b8
SM
98612015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9862
9863 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9864 Change return type to arm_hwbp_type.
9865
04248ead
SM
98662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9867
9868 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9869 (arm_store_gregset): Likewise.
9870 * linux-arm-low.c (arm_get_hwcap): Likewise.
9871 (arm_read_description): Likewise.
9872
04b3479c
SM
98732015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9874
9875 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9876
2bc84e8a
SM
98772015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9878
9879 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9880 (ppc_fill_vsxregset): Likewise.
9881 (ppc_store_vsxregset): Likewise.
9882 (ppc_fill_vrregset): Likewise.
9883 (ppc_store_vrregset): Likewise.
9884 (ppc_fill_evrregset): Likewise.
9885 (ppc_store_evrregset): Likewise.
9886
e6c5bb05
SM
98872015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9888
9889 * linux-ppc-low.c (ppc_usrregs_info): Remove
9890 forward-declaration.
9891 (ppc_arch_setup): Move lower in file.
9892
7ea45d72
SM
98932015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9894
9895 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9896 (ps_pdwrite): Likewise.
9897
69291610
HW
98982015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9899
9900 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9901 to after assert checks.
9902
b42945fd
SM
99032015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9904
9905 * proc-service.c (ps_pdread): Add/adjust casts.
9906 (ps_pdwrite): Add/adjust casts.
9907
d6f85c84
SM
99082015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9909
9910 * server.c (handle_search_memory_1): Cast return value of
9911 memmem.
9912
f98cd059
SM
99132015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9914
9915 * server.c (write_qxfer_response): Change type of data to
9916 gdb_byte *.
9917
d2412fa5
PA
99182015-10-29 Pedro Alves <palves@redhat.com>
9919
9920 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9921
c17414a2
PA
99222015-10-29 Pedro Alves <palves@redhat.com>
9923
9924 * tracepoint.c (clear_installed_tracepoints): Add casts.
9925
e053fbc4
PA
99262015-10-29 Pedro Alves <palves@redhat.com>
9927
9928 * server.c (handle_v_cont, process_serial_event): Add enum
9929 gdb_signal casts to signal parsing code.
9930
add67df8
PA
99312015-10-29 Pedro Alves <palves@redhat.com>
9932
9933 * linux-low.h (NULL_REGSET): Define.
9934 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9935 * linux-arm-low.c (arm_regsets): Likewise.
9936 * linux-crisv32-low.c (cris_regsets): Likewise.
9937 * linux-m68k-low.c (m68k_regsets): Likewise.
9938 * linux-mips-low.c (mips_regsets): Likewise.
9939 * linux-nios2-low.c (nios2_regsets): Likewise.
9940 * linux-ppc-low.c (ppc_regsets): Likewise.
9941 * linux-s390-low.c (s390_regsets): Likewise.
9942 * linux-sh-low.c (sh_regsets): Likewise.
9943 * linux-sparc-low.c (sparc_regsets): Likewise.
9944 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9945 * linux-tile-low.c (tile_regsets): Likewise.
9946 * linux-x86-low.c (x86_regsets): Likewise.
9947 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9948
50bc912a
PA
99492015-10-29 Pedro Alves <palves@redhat.com>
9950
9951 * linux-low.h (NULL_REGSET): Define.
9952 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9953 * linux-arm-low.c (arm_regsets): Likewise.
9954 * linux-crisv32-low.c (cris_regsets): Likewise.
9955 * linux-m68k-low.c (m68k_regsets): Likewise.
9956 * linux-mips-low.c (mips_regsets): Likewise.
9957 * linux-nios2-low.c (nios2_regsets): Likewise.
9958 * linux-ppc-low.c (ppc_regsets): Likewise.
9959 * linux-s390-low.c (s390_regsets): Likewise.
9960 * linux-sh-low.c (sh_regsets): Likewise.
9961 * linux-sparc-low.c (sparc_regsets): Likewise.
9962 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9963 * linux-tile-low.c (tile_regsets): Likewise.
9964 * linux-x86-low.c (x86_regsets): Likewise.
9965 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9966
682b2546
DE
99672015-10-26 Doug Evans <dje@google.com>
9968
9969 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9970
963843d4
DE
99712015-10-26 Doug Evans <dje@google.com>
9972
9973 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9974
d41401ac
DE
99752015-10-26 Doug Evans <dje@google.com>
9976
9977 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9978 for debug_printf.
9979 (attach_thread, find_new_threads_callback): Ditto.
9980
3db28855
AT
99812015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9982
9983 * mem-break.h (set_breakpoint_data): Remove.
9984
fb78e89c
AT
99852015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9986
9987 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9988 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9989 (initialize_low): Remove set_breakpoint_data call.
9990 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9991 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9992 (initialize_low): Remove set_breakpoint_data call.
9993 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9994 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9995 (initialize_low): Remove set_breakpoint_data call.
9996
2e6ee069
AT
99972015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9998
9999 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10000 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10001 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10002 * target.h (target_breakpoint_kind_from_pc): New macro.
10003
1652a986
AT
100042015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10005
10006 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10007 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10008 the default breakpoint kind.
10009
abeead09
AT
100102015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10011
10012 * linux-arm-low.c (arm_supports_z_point_type): Add software
10013 breakpoint support.
10014
b0b4b501
AT
100152015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10016
10017 * linux-arm-low.c: Refactor breakpoint definitions.
10018 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10019 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10020
8689682c
AT
100212015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10022
10023 * Makefile.in: Add arm.c/o.
10024 * configure.srv: Likewise.
10025 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10026 (arm_breakpoint_kind_from_pc): New function.
10027 (arm_sw_breakpoint_from_kind): Return proper kind.
10028 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10029
27165294
AT
100302015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10031
10032 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10033 removal.
10034 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10035 (struct raw_breakpoint) <size>: Remove.
10036 (struct raw_breakpoint) <kind>: Add.
10037 (bp_size): New function.
10038 (bp_opcode): Likewise.
10039 (find_raw_breakpoint_at): Adjust for kind.
10040 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10041 (remove_memory_breakpoint): Adjust for kind call bp_size.
10042 (set_raw_breakpoint_at): Adjust for kind.
10043 (set_breakpoint): Likewise.
10044 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10045 (delete_raw_breakpoint): Adjust for kind.
10046 (delete_breakpoint): Likewise.
10047 (find_gdb_breakpoint): Likewise.
10048 (set_gdb_breakpoint_1): Likewise.
10049 (set_gdb_breakpoint): Likewise.
10050 (delete_gdb_breakpoint_1): Likewise.
10051 (delete_gdb_breakpoint): Likewise.
10052 (uninsert_raw_breakpoint): Likewise.
10053 (reinsert_raw_breakpoint): Likewise.
10054 (set_breakpoint_data): Remove.
10055 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10056 (check_mem_read): Adjust for kind call bp_size.
10057 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10058 (clone_one_breakpoint): Adjust for kind.
10059 * mem-break.h (set_gdb_breakpoint): Likewise.
10060 (delete_gdb_breakpoint): Likewise.
10061 * server.c (process_serial_event): Likewise.
10062
dd373349
AT
100632015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10064
10065 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10066 (struct linux_target_ops) <breakpoint>: Remove.
10067 (struct linux_target_ops) <breakpoint_len>: Remove.
10068 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10069 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10070 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10071 (arm_sw_breakpoint_from_kind): New function.
10072 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10073 (struct linux_target_ops) <breakpoint>: Remove.
10074 (struct linux_target_ops) <breakpoint_len>: Remove.
10075 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10076 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10077 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10078 (struct linux_target_ops) <breakpoint>: Remove.
10079 (struct linux_target_ops) <breakpoint_len>: Remove.
10080 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10081 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10082 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10083 (struct linux_target_ops) <breakpoint>: Remove.
10084 (struct linux_target_ops) <breakpoint_len>: Remove.
10085 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10086 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10087 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10088 and sw_breakpoint_from_kind to increment the pc.
10089 (linux_breakpoint_kind_from_pc): New function.
10090 (linux_sw_breakpoint_from_kind): New function.
10091 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10092 (initialize_low): Call breakpoint_kind_from_pc and
10093 sw_breakpoint_from_kind to replace breakpoint_data/len.
10094 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10095 New field.
10096 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10097 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10098 (struct linux_target_ops) <breakpoint>: Remove.
10099 (struct linux_target_ops) <breakpoint_len>: Remove.
10100 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10101 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10102 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10103 (struct linux_target_ops) <breakpoint>: Remove.
10104 (struct linux_target_ops) <breakpoint_len>: Remove.
10105 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10106 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10107 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10108 (struct linux_target_ops) <breakpoint>: Remove.
10109 (struct linux_target_ops) <breakpoint_len>: Remove.
10110 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10111 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10112 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10113 (struct linux_target_ops) <breakpoint>: Remove.
10114 (struct linux_target_ops) <breakpoint_len>: Remove.
10115 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10116 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10117 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10118 (struct linux_target_ops) <breakpoint>: Remove.
10119 (struct linux_target_ops) <breakpoint_len>: Remove.
10120 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10121 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10122 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10123 (struct linux_target_ops) <breakpoint>: Remove.
10124 (struct linux_target_ops) <breakpoint_len>: Remove.
10125 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10126 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10127 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10128 (struct linux_target_ops) <breakpoint>: Remove.
10129 (struct linux_target_ops) <breakpoint_len>: Remove.
10130 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10131 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10132 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10133 (struct linux_target_ops) <breakpoint>: Remove.
10134 (struct linux_target_ops) <breakpoint_len>: Remove.
10135 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10136 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10137 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10138 (struct linux_target_ops) <breakpoint>: Remove.
10139 (struct linux_target_ops) <breakpoint_len>: Remove.
10140 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10141 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10142 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10143 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10144 (struct linux_target_ops) <breakpoint>: Remove.
10145 (struct linux_target_ops) <breakpoint_len>: Remove.
10146 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10147 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10148 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10149 (struct linux_target_ops) <breakpoint>: Remove.
10150 (struct linux_target_ops) <breakpoint_len>: Remove.
10151 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10152 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10153
4cd98a19
AT
101542015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10155
10156 * linux-cris-low.c (cris_get_pc): Remove void arg.
10157
774ee6d2
AR
101582015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10159
10160 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10161 variable name.
10162
833dcd29
AR
101632015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10164
10165 * inferiors.c (thread_pid_matches_callback): New function.
10166 (find_thread_process): New function.
10167 (remove_thread): Reset current_thread.
10168 (remove_process): Assert threads have been removed first.
10169
8d689ee5
YQ
101702015-10-15 Yao Qi <yao.qi@linaro.org>
10171
10172 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10173 if it is 3.
10174 (aarch64_remove_point): Likewise.
10175 * regcache.c (regcache_register_size): New function.
10176
1c2e1515
YQ
101772015-10-12 Yao Qi <yao.qi@linaro.org>
10178
10179 * linux-aarch64-low.c: Update all callers as emit_load_store
10180 is renamed to aarch64_emit_load_store.
10181
e1c587c3
YQ
101822015-10-12 Yao Qi <yao.qi@linaro.org>
10183
10184 * linux-aarch64-low.c: Update all callers of function renaming
10185 from emit_insn to aarch64_emit_insn.
10186
b6542f81
YQ
101872015-10-12 Yao Qi <yao.qi@linaro.org>
10188
10189 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10190 arch/aarch64-insn.h.
10191 (struct aarch64_memory_operand): Likewise.
10192 (ENCODE): Likewise.
10193 (emit_insn): Move to arch/aarch64-insn.c.
10194 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10195 (emit_load_store): Move to arch/aarch64-insn.c.
10196 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10197 (can_encode_int32): Remove.
10198
246994ce
YQ
101992015-10-12 Yao Qi <yao.qi@linaro.org>
10200
10201 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10202 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10203 (aarch64_relocate_instruction): Likewise.
10204 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10205 (struct aarch64_insn_visitor): Likewise.
10206
0badd99f
YQ
102072015-10-12 Yao Qi <yao.qi@linaro.org>
10208
10209 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10210 (struct aarch64_insn_visitor): New.
10211 (struct aarch64_insn_relocation_data): New.
10212 (aarch64_ftrace_insn_reloc_b): New function.
10213 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10214 (aarch64_ftrace_insn_reloc_cb): Likewise.
10215 (aarch64_ftrace_insn_reloc_tb): Likewise.
10216 (aarch64_ftrace_insn_reloc_adr): Likewise.
10217 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10218 (aarch64_ftrace_insn_reloc_others): Likewise.
10219 (visitor): New.
10220 (aarch64_relocate_instruction): Use visitor.
10221
dfaffe9d
YQ
102222015-10-12 Yao Qi <yao.qi@linaro.org>
10223
10224 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10225 int. Add argument buf.
10226 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10227 aarch64_relocate_instruction.
10228
70b439f0
YQ
102292015-10-12 Yao Qi <yao.qi@linaro.org>
10230
10231 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10232 argument insn. Remove local variable insn. Don't call
10233 target_read_uint32.
10234 (aarch64_install_fast_tracepoint_jump_pad): Call
10235 target_read_uint32.
10236
7781c06f
YQ
102372015-09-30 Yao Qi <yao.qi@linaro.org>
10238
10239 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10240 (emit_load_store_pair): Likewise.
10241
9a3c8263
SM
102422015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10243
10244 * dll.c (match_dll): Add cast(s).
10245 (unloaded_dll): Likewise.
10246 * linux-low.c (second_thread_of_pid_p): Likewise.
10247 (delete_lwp_callback): Likewise.
10248 (count_events_callback): Likewise.
10249 (select_event_lwp_callback): Likewise.
10250 (linux_set_resume_request): Likewise.
10251 * server.c (accumulate_file_name_length): Likewise.
10252 (emit_dll_description): Likewise.
10253 (handle_qxfer_threads_worker): Likewise.
10254 (visit_actioned_threads): Likewise.
10255 * thread-db.c (any_thread_of): Likewise.
10256 * tracepoint.c (same_process_p): Likewise.
10257 (match_blocktype): Likewise.
10258 (build_traceframe_info_xml): Likewise.
10259
224c3ddb
SM
102602015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10261
10262 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10263 assignment.
10264 (gdb_unparse_agent_expr): Likewise.
10265 * hostio.c (require_data): Likewise.
10266 (handle_pread): Likewise.
10267 * linux-low.c (disable_regset): Likewise.
10268 (fetch_register): Likewise.
10269 (store_register): Likewise.
10270 (get_dynamic): Likewise.
10271 (linux_qxfer_libraries_svr4): Likewise.
10272 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10273 (set_fast_tracepoint_jump): Likewise.
10274 (uninsert_fast_tracepoint_jumps_at): Likewise.
10275 (reinsert_fast_tracepoint_jumps_at): Likewise.
10276 (validate_inserted_breakpoint): Likewise.
10277 (clone_agent_expr): Likewise.
10278 * regcache.c (init_register_cache): Likewise.
10279 * remote-utils.c (putpkt_binary_1): Likewise.
10280 (decode_M_packet): Likewise.
10281 (decode_X_packet): Likewise.
10282 (look_up_one_symbol): Likewise.
10283 (relocate_instruction): Likewise.
10284 (monitor_output): Likewise.
10285 * server.c (handle_search_memory): Likewise.
10286 (handle_qxfer_exec_file): Likewise.
10287 (handle_qxfer_libraries): Likewise.
10288 (handle_qxfer): Likewise.
10289 (handle_query): Likewise.
10290 (handle_v_cont): Likewise.
10291 (handle_v_run): Likewise.
10292 (captured_main): Likewise.
10293 * target.c (write_inferior_memory): Likewise.
10294 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10295 * tracepoint.c (init_trace_buffer): Likewise.
10296 (add_tracepoint_action): Likewise.
10297 (add_traceframe): Likewise.
10298 (add_traceframe_block): Likewise.
10299 (cmd_qtdpsrc): Likewise.
10300 (cmd_qtdv): Likewise.
10301 (cmd_qtstatus): Likewise.
10302 (response_source): Likewise.
10303 (response_tsv): Likewise.
10304 (cmd_qtnotes): Likewise.
10305 (gdb_collect): Likewise.
10306 (initialize_tracepoint): Likewise.
10307
afbe19f8
PL
103082015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10309
10310 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10311 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10312 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10313 <NOP>: New.
10314 (enum aarch64_condition_codes): New enum.
10315 (w0): New static global.
10316 (fp): Likewise.
10317 (lr): Likewise.
10318 (struct aarch64_memory_operand) <type>: New
10319 MEMORY_OPERAND_POSTINDEX type.
10320 (postindex_memory_operand): New helper function.
10321 (emit_ret): New function.
10322 (emit_load_store_pair): New function, factored out of emit_stp
10323 with support for MEMORY_OPERAND_POSTINDEX.
10324 (emit_stp): Rewrite using emit_load_store_pair.
10325 (emit_ldp): New function.
10326 (emit_load_store): Likewise.
10327 (emit_ldr): Mention post-index instruction in comment.
10328 (emit_ldrh): New function.
10329 (emit_ldrb): New function.
10330 (emit_ldrsw): Mention post-index instruction in comment.
10331 (emit_str): Likewise.
10332 (emit_subs): New function.
10333 (emit_cmp): Likewise.
10334 (emit_and): Likewise.
10335 (emit_orr): Likewise.
10336 (emit_orn): Likewise.
10337 (emit_eor): Likewise.
10338 (emit_mvn): Likewise.
10339 (emit_lslv): Likewise.
10340 (emit_lsrv): Likewise.
10341 (emit_asrv): Likewise.
10342 (emit_mul): Likewise.
10343 (emit_sbfm): Likewise.
10344 (emit_sbfx): Likewise.
10345 (emit_ubfm): Likewise.
10346 (emit_ubfx): Likewise.
10347 (emit_csinc): Likewise.
10348 (emit_cset): Likewise.
10349 (emit_nop): Likewise.
10350 (emit_ops_insns): New helper function.
10351 (emit_pop): Likewise.
10352 (emit_push): Likewise.
10353 (aarch64_emit_prologue): New function.
10354 (aarch64_emit_epilogue): Likewise.
10355 (aarch64_emit_add): Likewise.
10356 (aarch64_emit_sub): Likewise.
10357 (aarch64_emit_mul): Likewise.
10358 (aarch64_emit_lsh): Likewise.
10359 (aarch64_emit_rsh_signed): Likewise.
10360 (aarch64_emit_rsh_unsigned): Likewise.
10361 (aarch64_emit_ext): Likewise.
10362 (aarch64_emit_log_not): Likewise.
10363 (aarch64_emit_bit_and): Likewise.
10364 (aarch64_emit_bit_or): Likewise.
10365 (aarch64_emit_bit_xor): Likewise.
10366 (aarch64_emit_bit_not): Likewise.
10367 (aarch64_emit_equal): Likewise.
10368 (aarch64_emit_less_signed): Likewise.
10369 (aarch64_emit_less_unsigned): Likewise.
10370 (aarch64_emit_ref): Likewise.
10371 (aarch64_emit_if_goto): Likewise.
10372 (aarch64_emit_goto): Likewise.
10373 (aarch64_write_goto_address): Likewise.
10374 (aarch64_emit_const): Likewise.
10375 (aarch64_emit_call): Likewise.
10376 (aarch64_emit_reg): Likewise.
10377 (aarch64_emit_pop): Likewise.
10378 (aarch64_emit_stack_flush): Likewise.
10379 (aarch64_emit_zero_ext): Likewise.
10380 (aarch64_emit_swap): Likewise.
10381 (aarch64_emit_stack_adjust): Likewise.
10382 (aarch64_emit_int_call_1): Likewise.
10383 (aarch64_emit_void_call_2): Likewise.
10384 (aarch64_emit_eq_goto): Likewise.
10385 (aarch64_emit_ne_goto): Likewise.
10386 (aarch64_emit_lt_goto): Likewise.
10387 (aarch64_emit_le_goto): Likewise.
10388 (aarch64_emit_gt_goto): Likewise.
10389 (aarch64_emit_ge_got): Likewise.
10390 (aarch64_emit_ops_impl): New static global variable.
10391 (aarch64_emit_ops): New target function, return
10392 &aarch64_emit_ops_impl.
10393 (struct linux_target_ops): Install it.
10394
bb903df0
PL
103952015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10396
10397 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10398 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10399 aarch64-ipa.o.
10400 * linux-aarch64-ipa.c: New file.
10401 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10402 and endian.h.
10403 (aarch64_get_thread_area): New target method.
10404 (extract_signed_bitfield): New helper function.
10405 (aarch64_decode_ldr_literal): New function.
10406 (enum aarch64_opcodes): New enum.
10407 (struct aarch64_register): New struct.
10408 (struct aarch64_operand): New struct.
10409 (x0): New static global.
10410 (x1): Likewise.
10411 (x2): Likewise.
10412 (x3): Likewise.
10413 (x4): Likewise.
10414 (w2): Likewise.
10415 (ip0): Likewise.
10416 (sp): Likewise.
10417 (xzr): Likewise.
10418 (aarch64_register): New helper function.
10419 (register_operand): Likewise.
10420 (immediate_operand): Likewise.
10421 (struct aarch64_memory_operand): New struct.
10422 (offset_memory_operand): New helper function.
10423 (preindex_memory_operand): Likewise.
10424 (enum aarch64_system_control_registers): New enum.
10425 (ENCODE): New macro.
10426 (emit_insn): New helper function.
10427 (emit_b): New function.
10428 (emit_bcond): Likewise.
10429 (emit_cb): Likewise.
10430 (emit_tb): Likewise.
10431 (emit_blr): Likewise.
10432 (emit_stp): Likewise.
10433 (emit_ldp_q_offset): Likewise.
10434 (emit_stp_q_offset): Likewise.
10435 (emit_load_store): Likewise.
10436 (emit_ldr): Likewise.
10437 (emit_ldrsw): Likewise.
10438 (emit_str): Likewise.
10439 (emit_ldaxr): Likewise.
10440 (emit_stxr): Likewise.
10441 (emit_stlr): Likewise.
10442 (emit_data_processing_reg): Likewise.
10443 (emit_data_processing): Likewise.
10444 (emit_add): Likewise.
10445 (emit_sub): Likewise.
10446 (emit_mov): Likewise.
10447 (emit_movk): Likewise.
10448 (emit_mov_addr): Likewise.
10449 (emit_mrs): Likewise.
10450 (emit_msr): Likewise.
10451 (emit_sevl): Likewise.
10452 (emit_wfe): Likewise.
10453 (append_insns): Likewise.
10454 (can_encode_int32_in): New helper function.
10455 (aarch64_relocate_instruction): New function.
10456 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10457 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10458 (struct linux_target_ops): Install aarch64_get_thread_area,
10459 aarch64_install_fast_tracepoint_jump_pad and
10460 aarch64_get_min_fast_tracepoint_insn_len.
10461
787749ea
PL
104622015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10463
10464 * Makefile.in (aarch64-insn.o): New rule.
10465 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10466
9812b2e6
YQ
104672015-09-21 Yao Qi <yao.qi@linaro.org>
10468
10469 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10470
18fe412b
YQ
104712015-09-21 Yao Qi <yao.qi@linaro.org>
10472
10473 * tracepoint.c (max_jump_pad_size): Remove.
10474
a0cc84cd
YQ
104752015-09-18 Yao Qi <yao.qi@linaro.org>
10476
10477 * linux-aarch64-low.c: Don't include sys/uio.h.
10478 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10479
d78908cf
WW
104802015-09-16 Wei-cheng Wang <cole945@gmail.com>
10481
10482 * tracepoint.c (eval_result_type): Change prototype.
10483 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10484
d57e0d50
PA
104852015-09-15 Pedro Alves <palves@redhat.com>
10486
10487 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10488 Check whether to report exec events instead of checking whether
10489 multiprocess is enabled.
10490
5a676acc
PA
104912015-09-15 Pedro Alves <palves@redhat.com>
10492
10493 PR remote/18965
10494 * remote-utils.c (prepare_resume_reply): Merge
10495 TARGET_WAITKIND_VFORK_DONE switch case with the
10496 TARGET_WAITKIND_FORKED case.
10497
7c5d0fad
YQ
104982015-09-15 Yao Qi <yao.qi@linaro.org>
10499
10500 * server.c (handle_query): Check string comparison using
10501 "else if" instead of "if".
10502
750ce8d1
YQ
105032015-09-15 Yao Qi <yao.qi@linaro.org>
10504
10505 * server.c (vCont_supported): New global variable.
10506 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10507 matches. Append ";vContSupported+" to own_buf.
10508 (handle_v_requests): Append ";s;S" to own_buf if target supports
10509 hardware single step or vCont_supported is false.
10510 (capture_main): Set vCont_supported to zero.
10511
70b90b91
YQ
105122015-09-15 Yao Qi <yao.qi@linaro.org>
10513
10514 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10515 it to ...
10516 (linux_supports_hardware_single_step): ... New function.
10517 (linux_target_ops): Update.
10518 * lynx-low.c (lynx_target_ops): Set field
10519 supports_hardware_single_step to target_can_do_hardware_single_step.
10520 * nto-low.c (nto_target_ops): Likewise.
10521 * spu-low.c (spu_target_ops): Likewise.
10522 * win32-low.c (win32_target_ops): Likewise.
10523 * target.c (target_can_do_hardware_single_step): New function.
10524 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10525 Remove. <supports_hardware_single_step>: New field.
10526 (target_supports_conditional_breakpoints): Remove.
10527 (target_supports_hardware_single_step): New macro.
10528 (target_can_do_hardware_single_step): Declare.
10529 * server.c (handle_query): Use target_supports_hardware_single_step
10530 instead of target_supports_conditional_breakpoints.
10531
ade90bde
YQ
105322015-09-15 Yao Qi <yao.qi@linaro.org>
10533
10534 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10535 function.
10536 (struct linux_target_ops the_low_target): Install
10537 aarch64_linux_siginfo_fixup.
10538
94585166
DB
105392015-09-11 Don Breazeal <donb@codesourcery.com>
10540 Luis Machado <lgustavo@codesourcery.com>
10541
10542 * linux-low.c (linux_mourn): Static declaration.
10543 (linux_arch_setup): Move in front of
10544 handle_extended_wait.
10545 (linux_arch_setup_thread): New function.
10546 (handle_extended_wait): Handle exec events. Call
10547 linux_arch_setup_thread. Make event_lwp argument a
10548 pointer-to-a-pointer.
10549 (check_zombie_leaders): Do not check stopped threads.
10550 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10551 (linux_low_filter_event): Add lwp and thread for exec'ing
10552 non-leader thread if leader thread has been deleted.
10553 Refactor code into linux_arch_setup_thread and call it.
10554 Pass child lwp pointer by reference to handle_extended_wait.
10555 (linux_wait_for_event_filtered): Update comment.
10556 (linux_wait_1): Prevent clobbering exec event status.
10557 (linux_supports_exec_events): New function.
10558 (linux_target_ops) <supports_exec_events>: Initialize new member.
10559 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10560 new member.
10561 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10562 * server.c (report_exec_events): New global variable.
10563 (handle_query): Handle qSupported query for exec-events feature.
10564 (captured_main): Initialize report_exec_events.
10565 * server.h (report_exec_events): Declare new global variable.
10566 * target.h (struct target_ops) <supports_exec_events>: New
10567 member.
10568 (target_supports_exec_events): New macro.
10569 * win32-low.c (win32_target_ops) <supports_exec_events>:
10570 Initialize new member.
10571
0568462b
MM
105722015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10573
10574 * linux-low.c (linux_low_enable_btrace): Remove.
10575 (linux_target_ops): Replace linux_low_enable_btrace with
10576 linux_enable_btrace.
10577
39edd165
YQ
105782015-09-03 Yao Qi <yao.qi@linaro.org>
10579
10580 * linux-aarch64-low.c (aarch64_insert_point): Call
10581 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10582 returns true.
10583
1db33b5a
UW
105842015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10585
10586 * linux-low.c (check_stopped_by_breakpoint): Use
10587 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10588
ab290430
PA
105892015-08-27 Pedro Alves <palves@redhat.com>
10590
10591 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10592
8d749320
SM
105932015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10594
6711b7f8
SM
10595 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10596 the XNEW-family equivalent.
8d749320
SM
10597 (compile_bytecodes): Likewise.
10598 * dll.c (loaded_dll): Likewise.
10599 * event-loop.c (append_callback_event): Likewise.
10600 (create_file_handler): Likewise.
10601 (create_file_event): Likewise.
10602 * hostio.c (handle_open): Likewise.
10603 * inferiors.c (add_thread): Likewise.
10604 (add_process): Likewise.
10605 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10606 * linux-arm-low.c (arm_new_process): Likewise.
10607 (arm_new_thread): Likewise.
10608 * linux-low.c (add_to_pid_list): Likewise.
10609 (linux_add_process): Likewise.
10610 (handle_extended_wait): Likewise.
10611 (add_lwp): Likewise.
10612 (enqueue_one_deferred_signal): Likewise.
10613 (enqueue_pending_signal): Likewise.
10614 (linux_resume_one_lwp_throw): Likewise.
10615 (linux_resume_one_thread): Likewise.
10616 (linux_read_memory): Likewise.
10617 (linux_write_memory): Likewise.
10618 * linux-mips-low.c (mips_linux_new_process): Likewise.
10619 (mips_linux_new_thread): Likewise.
10620 (mips_add_watchpoint): Likewise.
10621 * linux-x86-low.c (initialize_low_arch): Likewise.
10622 * lynx-low.c (lynx_add_process): Likewise.
10623 * mem-break.c (set_raw_breakpoint_at): Likewise.
10624 (set_breakpoint): Likewise.
10625 (add_condition_to_breakpoint): Likewise.
10626 (add_commands_to_breakpoint): Likewise.
10627 (clone_agent_expr): Likewise.
10628 (clone_one_breakpoint): Likewise.
10629 * regcache.c (new_register_cache): Likewise.
10630 * remote-utils.c (look_up_one_symbol): Likewise.
10631 * server.c (queue_stop_reply): Likewise.
10632 (start_inferior): Likewise.
10633 (queue_stop_reply_callback): Likewise.
10634 (handle_target_event): Likewise.
10635 * spu-low.c (fetch_ppc_memory): Likewise.
10636 (store_ppc_memory): Likewise.
10637 * target.c (set_target_ops): Likewise.
10638 * thread-db.c (thread_db_load_search): Likewise.
10639 (try_thread_db_load_1): Likewise.
10640 * tracepoint.c (add_tracepoint): Likewise.
10641 (add_tracepoint_action): Likewise.
10642 (create_trace_state_variable): Likewise.
10643 (cmd_qtdpsrc): Likewise.
10644 (cmd_qtro): Likewise.
10645 (add_while_stepping_state): Likewise.
10646 * win32-low.c (child_add_thread): Likewise.
10647 (get_image_name): Likewise.
10648
ed8b7b42
YQ
106492015-08-25 Yao Qi <yao.qi@linaro.org>
10650
10651 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10652
db3cb7cb
YQ
106532015-08-25 Yao Qi <yao.qi@linaro.org>
10654
10655 * Makefile.in (aarch64-linux.o): New rule.
10656 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10657 srv_tgtobj.
10658 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10659 (aarch64_init_debug_reg_state): Make it extern.
10660 (aarch64_linux_prepare_to_resume): Remove.
10661
f6011a1c
YQ
106622015-08-25 Yao Qi <yao.qi@linaro.org>
10663
10664 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10665 lwp_arch_private_info and ptid_of_lwp.
10666
88e2cf7e
YQ
106672015-08-25 Yao Qi <yao.qi@linaro.org>
10668
10669 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10670 Find proc_info by find_process_pid. All callers updated.
10671
5e35436e
YQ
106722015-08-25 Yao Qi <yao.qi@linaro.org>
10673
10674 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10675 Remove.
10676 (debug_reg_change_callback): Remove.
10677 (aarch64_notify_debug_reg_change): Remove.
10678
4a8a7965
YQ
106792015-08-25 Yao Qi <yao.qi@linaro.org>
10680
10681 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10682 Call current_lwp_ptid.
10683
32a271ee
YQ
106842015-08-25 Yao Qi <yao.qi@linaro.org>
10685
10686 * linux-aarch64-low.c (debug_reg_change_callback): Use
10687 debug_printf.
10688
0d51c8d7
YQ
106892015-08-25 Yao Qi <yao.qi@linaro.org>
10690
10691 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10692
31a43dd5
YQ
106932015-08-25 Yao Qi <yao.qi@linaro.org>
10694
10695 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10696
8ee52567
YQ
106972015-08-25 Yao Qi <yao.qi@linaro.org>
10698
10699 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10700 the code.
10701
ff3f0f45
YQ
107022015-08-25 Yao Qi <yao.qi@linaro.org>
10703
10704 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10705 Remove.
10706 (debug_reg_change_callback): Remove argument entry and add argument
10707 lwp. Remove local variable thread. Don't print thread id in the
10708 debugging output. Don't check whether pid of thread equals to pid.
10709 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10710 iterate_over_lwps instead find_inferior.
10711
3d40fbb5
PA
107122015-08-24 Pedro Alves <palves@redhat.com>
10713
10714 * inferiors.c (get_first_process): New function.
10715 * inferiors.h (get_first_process): New declaration.
10716 * remote-utils.c (read_ptid): Default to the first process in the
10717 list, instead of to the current thread's process.
10718
438e1e42
PA
107192015-08-24 Pedro Alves <palves@redhat.com>
10720
10721 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10722 * event-loop.c: Likewise.
10723 * remote-utils.c: Likewise.
10724 * tracepoint.c: Likewise.
10725
a8c6d4fc
PA
107262015-08-24 Pedro Alves <palves@redhat.com>
10727
10728 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10729 ptid_get_lwp.
10730
99b0bb12
PA
107312015-08-21 Pedro Alves <palves@redhat.com>
10732
10733 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10734 instead of literal 1.
10735
f8904751
PA
107362015-08-21 Pedro Alves <palves@redhat.com>
10737
10738 * tdesc.c (default_description): Explicitly zero-initialize.
10739
465a859e
PA
107402015-08-21 Pedro Alves <palves@redhat.com>
10741
10742 PR gdb/18749
10743 * inferiors.c (remove_thread): Discard any pending stop reply for
10744 this thread.
10745 * server.c (remove_all_on_match_pid): Rename to ...
10746 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10747 instead of a pid.
10748 (discard_queued_stop_replies): Change parameter to a ptid. Now
10749 extern.
10750 (handle_v_kill, kill_inferior_callback, captured_main)
10751 (process_serial_event): Adjust.
10752 * server.h (discard_queued_stop_replies): Declare.
10753
f0db101d
PA
107542015-08-21 Pedro Alves <palves@redhat.com>
10755
10756 * linux-low.c (wait_for_sigstop): Always switch to no thread
10757 selected if the previously current thread dies.
10758 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10759 process instead of the current thread's.
10760 * remote-utils.c (input_interrupt): Don't check if there's no
10761 current thread.
10762 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10763 current thread to the general thread fails, error out.
10764 (handle_qxfer_auxv, handle_qxfer_libraries)
10765 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10766 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10767 (handle_query): Check if there's a thread selected instead of
10768 checking whether there's any thread in the thread list.
10769 (handle_qxfer_threads, handle_qxfer_btrace)
10770 (handle_qxfer_btrace_conf): Don't error out early if there's no
10771 thread in the thread list.
10772 (handle_v_cont, myresume): Don't set the current thread to the
10773 continue thread.
10774 (process_serial_event) <Hg handling>: Also set thread_id if the
10775 previous general thread is still alive.
10776 (process_serial_event) <g/G handling>: If setting the current
10777 thread to the general thread fails, error out.
10778 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10779 thread's lwp instead of the current thread's.
10780 * target.c (set_desired_thread): If the desired thread was not
10781 found, leave the current thread pointing to NULL. Return an int
10782 (boolean) indicating success.
10783 * target.h (set_desired_thread): Change return type to int.
10784
40045d91
MF
107852015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10786
10787 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10788 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10789 #includes.
10790 (ps_get_thread_area): New function.
10791
45face3b
GB
107922015-08-19 Gary Benson <gbenson@redhat.com>
10793
10794 * hostio.c (handle_pread): Do not attempt to read more data
10795 than hostio_reply_with_data can fit in a packet.
10796
16d5f642
JB
107972015-08-18 Joel Brobecker <brobecker@adacore.com>
10798
10799 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10800
a738da3a
MF
108012015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10802
10803 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10804
33ebda9d
PA
108052015-08-06 Pedro Alves <palves@redhat.com>
10806
10807 * tracepoint.c (expr_eval_result): Now an int.
10808
a44892be
PA
108092015-08-06 Pedro Alves <palves@redhat.com>
10810
10811 * gdbthread.h (struct regcache): Forward declare.
10812 (struct thread_info) <regcache_data>: Now a struct regcache
10813 pointer.
10814 * inferiors.c (inferior_regcache_data)
10815 (set_inferior_regcache_data): Now work with struct regcache
10816 pointers.
10817 * inferiors.h (struct regcache): Forward declare.
10818 (inferior_regcache_data, set_inferior_regcache_data): Now work
10819 with struct regcache pointers.
10820 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10821 (free_register_cache_thread): Remove struct regcache pointer
10822 casts.
10823
608a1e46
PA
108242015-08-06 Pedro Alves <palves@redhat.com>
10825
10826 * server.c (captured_main): On error, print the exception message
10827 to stderr, and if run_once is set, throw a quit.
10828
f0ce0d3a
PA
108292015-08-06 Pedro Alves <palves@redhat.com>
10830
10831 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10832 the current thread.
10833
bf47e248
PA
108342015-08-06 Pedro Alves <palves@redhat.com>
10835
10836 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10837 reading beyond the passed in buffer length.
10838
b6b9ffcc
PL
108392015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10840
10841 * tracepoint.c (symbol_list) <required>: Remove.
10842
863d01bd
PA
108432015-08-06 Pedro Alves <palves@redhat.com>
10844
10845 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10846 count if stopping and suspending threads.
10847 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10848 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10849 (linux_detach): Complete an ongoing step-over.
10850 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10851 throughout.
10852 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10853 (linux_wait_1): If passing a signal to the inferior after
10854 finishing a step-over, unsuspend and re-resume all lwps. If we
10855 see a single-step event but the thread should be continuing, don't
10856 pass the trap to gdb.
10857 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10858 internal_error instead of gdb_assert.
10859 (enqueue_pending_signal): New function.
10860 (check_ptrace_stopped_lwp_gone): Add debug output.
10861 (start_step_over): Use internal_error instead of gdb_assert.
10862 (complete_ongoing_step_over): New function.
10863 (linux_resume_one_thread): Don't resume a suspended thread.
10864 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10865 it stepping.
10866
00db26fa
PA
108672015-08-06 Pedro Alves <palves@redhat.com>
10868
10869 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10870 (linux_thread_alive): Use lwp_is_marked_dead.
10871 (extended_event_reported): Delete.
10872 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10873 instead of extended_event_reported.
10874 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10875 as well.
10876 (lwp_is_marked_dead): New function.
10877 (lwp_running): Use lwp_is_marked_dead.
10878 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10879 comment.
10880
ad071a30
PA
108812015-08-06 Pedro Alves <palves@redhat.com>
10882
10883 * linux-low.c (linux_wait_1): Move fork event output out of the
10884 !report_to_gdb check. Pass event_child->waitstatus to
10885 target_waitstatus_to_string instead of ourstatus.
10886
524b57e6
YQ
108872015-08-04 Yao Qi <yao.qi@linaro.org>
10888
10889 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10890 if current_thread is 32 bit.
10891
6085d6f6
YQ
108922015-08-04 Yao Qi <yao.qi@linaro.org>
10893
10894 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10895 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10896 * server.c (extended_protocol): Remove "static".
10897 * server.h (extended_protocol): Declare it.
10898
8a7e4587
YQ
108992015-08-04 Yao Qi <yao.qi@linaro.org>
10900
10901 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10902 both aarch64 and aarch32.
10903 (aarch64_set_pc): Likewise.
10904
3b53ae99
YQ
109052015-08-04 Yao Qi <yao.qi@linaro.org>
10906
10907 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10908 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10909 arm-with-neon.xml to srv_xmlfiles.
10910 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10911 (is_64bit_tdesc): New function.
10912 (aarch64_linux_read_description): New function.
10913 (aarch64_arch_setup): Call aarch64_linux_read_description.
10914 (regs_info): Rename to regs_info_aarch64.
10915 (aarch64_regs_info): Return right regs_info.
10916 (initialize_low_arch): Call initialize_low_arch_aarch32.
10917
bd9e6534
YQ
109182015-08-04 Yao Qi <yao.qi@linaro.org>
10919
10920 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10921 * linux-aarch32-low.c: New file.
10922 * linux-aarch32-low.h: New file.
10923 * linux-arm-low.c (arm_fill_gregset): Move it to
10924 linux-aarch32-low.c.
10925 (arm_store_gregset): Likewise.
10926 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10927 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10928 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10929 (regs_info): Rename to regs_info_arm.
10930 (arm_regs_info): Return regs_info_aarch32 if
10931 have_ptrace_getregset is 1 and target description is
10932 arm_with_neon or arm_with_vfpv3.
10933 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10934 Call initialize_low_arch_aarch32 instead.
10935
ded48a5e
YQ
109362015-08-04 Yao Qi <yao.qi@linaro.org>
10937
10938 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10939 * linux-low.c: ... here.
10940 * linux-low.h (have_ptrace_getregset): Declare it.
10941
96e9210f
PA
109422015-08-04 Pedro Alves <palves@redhat.com>
10943
10944 * thread-db.c (struct thread_db): Use new typedefs.
10945 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10946 CHK calls.
10947 (disable_thread_event_reporting): Cast result of dlsym to
10948 destination function pointer type.
10949 (thread_db_mourn): Use td_ta_delete_ftype.
10950
af60a1ef
SL
109512015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10952
10953 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10954 arch variant.
10955 (CDX_BREAKPOINT): Define for R2.
10956 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10957 (the_low_target): Add comments.
10958
e8b41681
YQ
109592015-07-30 Yao Qi <yao.qi@linaro.org>
10960
10961 * linux-arm-low.c (arm_hwcap): Remove it.
10962 (arm_read_description): New local variable arm_hwcap. Don't
10963 set arm_hwcap to zero.
10964
89abb039
YQ
109652015-07-30 Yao Qi <yao.qi@linaro.org>
10966
10967 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10968 Use regcache->tdesc instead.
10969 (arm_store_wmmxregset): Likewise.
10970 (arm_fill_vfpregset): Likewise.
10971 (arm_store_vfpregset): Likewise.
10972
deca266c
YQ
109732015-07-30 Yao Qi <yao.qi@linaro.org>
10974
10975 * linux-arm-low.c: Include arch/arm.h.
10976 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10977 (arm_store_gregset): Likewise.
10978
aa58a496
SM
109792015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10980
10981 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10982 ptrace's 4th parameter.
10983
50904b25
YQ
109842015-07-27 Yao Qi <yao.qi@linaro.org>
10985
10986 * configure.srv (case aarch64*-*-linux*): Don't set
10987 srv_linux_usrregs.
10988
5826e159
PA
109892015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10990
10991 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10992 sys/ptrace.h.
10993 * linux-arm-low.c: Likewise.
10994 * linux-cris-low.c: Likewise.
10995 * linux-crisv32-low.c: Likewise.
10996 * linux-low.c: Likewise.
10997 * linux-m68k-low.c: Likewise.
10998 * linux-mips-low.c: Likewise.
10999 * linux-nios2-low.c: Likewise.
11000 * linux-s390-low.c: Likewise.
11001 * linux-sparc-low.c: Likewise.
11002 * linux-tic6x-low.c: Likewise.
11003 * linux-tile-low.c: Likewise.
11004 * linux-x86-low.c: Likewise.
11005
54019719
PA
110062015-07-24 Pedro Alves <palves@redhat.com>
11007
11008 * config.in: Regenerate.
11009 * configure: Regenerate.
11010
eb7aa561
PA
110112015-07-24 Pedro Alves <palves@redhat.com>
11012
11013 * acinclude.m4: Include ../ptrace.m4.
11014 * configure.ac: Call GDB_AC_PTRACE.
11015 * config.in, configure: Regenerate.
11016
55d7b841
YQ
110172015-07-24 Yao Qi <yao.qi@linaro.org>
11018
11019 * linux-low.c (linux_create_inferior): Remove setting to
11020 proc->priv->new_inferior.
11021 (linux_attach): Likewise.
11022 (linux_low_filter_event): Likewise.
11023 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11024
c06cbd92
YQ
110252015-07-24 Yao Qi <yao.qi@linaro.org>
11026
11027 * linux-low.c (linux_arch_setup): New function.
11028 (linux_low_filter_event): If proc->tdesc is NULL and
11029 proc->attached is true, call the_low_target.arch_setup.
11030 Otherwise, keep status pending, and return.
11031 (linux_resume_one_lwp_throw): Don't call get_pc if
11032 thread->while_stepping isn't NULL. Don't call
11033 get_thread_regcache if proc->tdesc is NULL.
11034 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11035 (linux_target_ops): Install arch_setup.
11036 * server.c (start_inferior): Call the_target->arch_setup.
11037 * target.h (struct target_ops) <arch_setup>: New field.
11038 (target_arch_setup): New marco.
11039 * lynx-low.c (lynx_target_ops): Update.
11040 * nto-low.c (nto_target_ops): Update.
11041 * spu-low.c (spu_target_ops): Update.
11042 * win32-low.c (win32_target_ops): Update.
11043
5ae3ebba
YQ
110442015-07-24 Yao Qi <yao.qi@linaro.org>
11045
11046 * linux-low.c (linux_add_process): Don't set
11047 proc->priv->new_inferior.
11048 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11049 (linux_attach): Likewise.
11050
eb97750b
YQ
110512015-07-24 Yao Qi <yao.qi@linaro.org>
11052
11053 * server.c (start_inferior): Code refactor.
11054
51aee833
YQ
110552015-07-24 Yao Qi <yao.qi@linaro.org>
11056
11057 * server.c (process_serial_event): Set general_thread.
11058
af1b22f3
YQ
110592015-07-21 Yao Qi <yao.qi@linaro.org>
11060
11061 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11062 aarch64_linux_get_debug_reg_capacity.
11063
554717a3
YQ
110642015-07-17 Yao Qi <yao.qi@linaro.org>
11065
11066 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11067 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11068 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11069 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11070 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11071 (AARCH64_HWP_ALIGNMENT): Likewise.
11072 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11073 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11074 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11075 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11076 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11077 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11078 (struct aarch64_debug_reg_state): Likewise.
11079 (struct arch_lwp_info): Likewise.
11080 (aarch64_align_watchpoint): Likewise.
11081 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11082 (aarch64_watchpoint_length): Likewise.
11083 (aarch64_point_encode_ctrl_reg): Likewise
11084 (aarch64_point_is_aligned): Likewise.
11085 (aarch64_align_watchpoint): Likewise.
11086 (aarch64_linux_set_debug_regs):
11087 (aarch64_dr_state_insert_one_point): Likewise.
11088 (aarch64_dr_state_remove_one_point): Likewise.
11089 (aarch64_handle_breakpoint): Likewise.
11090 (aarch64_handle_aligned_watchpoint): Likewise.
11091 (aarch64_handle_unaligned_watchpoint): Likewise.
11092 (aarch64_handle_watchpoint): Likewise.
11093
c67ca4de
YQ
110942015-07-17 Yao Qi <yao.qi@linaro.org>
11095
11096 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11097 and don't aarch64_get_debug_reg_state. All callers update.
11098 (aarch64_handle_aligned_watchpoint): Likewise.
11099 (aarch64_handle_unaligned_watchpoint): Likewise.
11100 (aarch64_handle_watchpoint): Likewise.
11101 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11102 (aarch64_remove_point): Likewise.
11103
25abf979
YQ
111042015-07-17 Yao Qi <yao.qi@linaro.org>
11105
11106 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11107 debug_printf.
11108 (aarch64_handle_unaligned_watchpoint): Likewise.
11109
db1ff28b
JK
111102015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11111
11112 Revert the previous 3 commits:
11113 Move gdb_regex* to common/
11114 Move linux_find_memory_regions_full & co.
11115 gdbserver build-id attribute generator
11116
700ca40f
JK
111172015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11118 Jan Kratochvil <jan.kratochvil@redhat.com>
11119
11120 gdbserver build-id attribute generator.
11121 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11122 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11123 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11124 (find_phdr): New.
11125 (get_dynamic): Use find_pdhr to traverse program headers.
11126 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11127 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11128 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11129 (get_hex_build_id): New.
11130 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11131 to reply XML document.
11132
9904185c
JK
111332015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11134 Jan Kratochvil <jan.kratochvil@redhat.com>
11135
11136 * target.c: Include target/target-utils.h and fcntl.h.
11137 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11138 (target_fileio_read_stralloc): New functions.
11139
6e5b4429
JK
111402015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11141
11142 * Makefile.in (OBS): Add gdb_regex.o.
11143 (gdb_regex.o): New.
11144 * config.in: Rebuilt.
11145 * configure: Rebuilt.
11146
ddc98fbf
JK
111472015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11148 Jan Kratochvil <jan.kratochvil@redhat.com>
11149
11150 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11151 * Makefile.in (OBS): Add target-utils.o.
11152 (linux-maps.o, target-utils.o): New.
11153 * configure.srv (srv_linux_obj): Add linux-maps.o.
11154
e57bb7a0
PL
111552015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11156
11157 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11158 function, return 1.
11159 (the_low_target): Install it.
11160
586b02a9
PA
111612015-07-14 Pedro Alves <palves@redhat.com>
11162
11163 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11164 Instead, ignore ECHILD, and throw an error for other errnos.
11165
58c1b36c
PA
111662015-07-10 Pedro Alves <palves@redhat.com>
11167
11168 * event-loop.c (struct callback_event) <data>: Change type to
11169 gdb_client_data instance instead of gdb_client_data pointer.
11170 (append_callback_event): Adjust.
11171
421530db
PL
111722015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11173
11174 * linux-aarch64-low.c: Add comments for each linux_target_ops
11175 method. Remove comments already covered in target_ops and
11176 linux_target_ops definitions.
11177 (the_low_target): Add comments for each unimplemented method.
11178
c2d65f38
YQ
111792015-07-09 Yao Qi <yao.qi@linaro.org>
11180
11181 * linux-aarch64-low.c (aarch64_regmap): Remove.
11182 (aarch64_usrregs_info): Remove.
11183 (regs_info): Set field usrregs to NULL.
11184
b20a6524
MM
111852015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11186
11187 * linux-low.c: Include "rsp-low.h"
11188 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11189 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11190 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11191 (handle_btrace_enable_pt): New.
11192 (handle_btrace_general_set): Support "pt".
11193 (handle_btrace_conf_general_set): Support "pt:size".
11194
96c97461
PL
111952015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11196
11197 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11198 Z_PACKET_SW_BP.
11199
37d66942
PL
112002015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11201
11202 * linux-aarch64-low.c: Remove comment about endianness.
11203 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11204 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11205 memcmp.
11206
dc06243f
GB
112072015-06-24 Gary Benson <gbenson@redhat.com>
11208
11209 * linux-i386-ipa.c (stdint.h): Do not include.
11210 * lynx-i386-low.c (stdint.h): Likewise.
11211 * lynx-ppc-low.c (stdint.h): Likewise.
11212 * mem-break.c (stdint.h): Likewise.
11213 * thread-db.c (stdint.h): Likewise.
11214 * tracepoint.c (stdint.h): Likewise.
11215 * win32-low.c (stdint.h): Likewise.
11216
124e13d9
SM
112172015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11218
11219 * server.c (write_qxfer_response): Update call to
11220 remote_escape_output.
11221
909c2cda
JK
112222015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11223 Jan Kratochvil <jan.kratochvil@redhat.com>
11224
11225 Merge multiple hex conversions.
11226 * gdbreplay.c (tohex): Rename to 'fromhex'.
11227 (logchar): Use fromhex.
11228
24c05f46
JK
112292015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11230
11231 * server.c (handle_qxfer_libraries): Set `version' attribute for
11232 <library-list>.
11233
14d2069a
GB
112342015-06-10 Gary Benson <gbenson@redhat.com>
11235
11236 * target.h (struct target_ops) <multifs_open>: New field.
11237 <multifs_unlink>: Likewise.
11238 <multifs_readlink>: Likewise.
11239 * linux-low.c (nat/linux-namespaces.h): New include.
11240 (linux_target_ops): Initialize the_target->multifs_open,
11241 the_target->multifs_unlink and the_target->multifs_readlink.
11242 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11243 * hostio.c (hostio_fs_pid): New static variable.
11244 (hostio_handle_new_gdb_connection): New function.
11245 (handle_setfs): Likewise.
11246 (handle_open): Use the_target->multifs_open as appropriate.
11247 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11248 (handle_readlink): Use the_target->multifs_readlink as
11249 appropriate.
11250 (handle_vFile): Handle vFile:setfs packets.
11251 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11252 after target_handle_new_gdb_connection.
11253
4b8b5e72
GB
112542015-06-10 Gary Benson <gbenson@redhat.com>
11255
11256 * configure.ac (AC_CHECK_FUNCS): Add setns.
11257 * config.in: Regenerate.
11258 * configure: Likewise.
11259 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11260 (linux-namespaces.o): New rule.
11261 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11262
3ac2e371
GB
112632015-06-09 Gary Benson <gbenson@redhat.com>
11264
11265 * hostio.c (handle_open): Process mode argument with
11266 fileio_to_host_mode.
11267
ca9b78ce
YQ
112682015-06-01 Yao Qi <yao.qi@linaro.org>
11269
11270 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11271 * linux-x86-low.c: Likewise.
11272
bfacd19d
DB
112732015-05-28 Don Breazeal <donb@codesourcery.com>
11274
11275 * linux-low.c (handle_extended_wait): Initialize
11276 thread_info.last_resume_kind for new fork children.
11277
452003ef
PA
112782015-05-15 Pedro Alves <palves@redhat.com>
11279
11280 * target.h (target_handle_new_gdb_connection): Rewrite using if
11281 wrapped in do/while.
11282
1041a03c
JB
112832015-05-14 Joel Brobecker <brobecker@adacore.com>
11284
11285 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11286 * configure, config.in: Regenerate.
11287 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11288 Declare typedef.
11289
c269dbdb
DB
112902015-05-12 Don Breazeal <donb@codesourcery.com>
11291
11292 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11293 PTRACE_EVENT_VFORK_DONE.
11294 (linux_low_ptrace_options, extended_event_reported): Add vfork
11295 events.
11296 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11297 and "vforkdone" for RSP 'T' Stop Reply Packet.
11298 * server.h (report_vfork_events): Declare
11299 global variable.
11300
3a8a0396
DB
113012015-05-12 Don Breazeal <donb@codesourcery.com>
11302
11303 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11304 (the_low_target) <new_fork>: Initialize new member.
11305 * linux-arm-low.c (arm_new_fork): New function.
11306 (the_low_target) <new_fork>: Initialize new member.
11307 * linux-low.c (handle_extended_wait): Call new target function
11308 new_fork.
11309 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11310 * linux-mips-low.c (mips_add_watchpoint): New function
11311 extracted from mips_insert_point.
11312 (the_low_target) <new_fork>: Initialize new member.
11313 (mips_linux_new_fork): New function.
11314 (mips_insert_point): Call mips_add_watchpoint.
11315 * linux-x86-low.c (x86_linux_new_fork): New function.
11316 (the_low_target) <new_fork>: Initialize new member.
11317
de0d863e
DB
113182015-05-12 Don Breazeal <donb@codesourcery.com>
11319
11320 * linux-low.c (handle_extended_wait): Implement return value,
11321 rename argument 'event_child' to 'event_lwp', handle
11322 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11323 (linux_low_ptrace_options): New function.
11324 (linux_low_filter_event): Call linux_low_ptrace_options,
11325 use different argument fo linux_enable_event_reporting,
11326 use return value from handle_extended_wait.
11327 (extended_event_reported): New function.
11328 (linux_wait_1): Call extended_event_reported and set
11329 status to report fork events.
11330 (linux_write_memory): Add pid to debug message.
11331 (reset_lwp_ptrace_options_callback): New function.
11332 (linux_handle_new_gdb_connection): New function.
11333 (linux_target_ops): Initialize new structure member.
11334 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11335 * lynx-low.c: Initialize new structure member.
11336 * remote-utils.c (prepare_resume_reply): Implement stop reason
11337 "fork" for "T" stop message.
11338 * server.c (handle_query): Call handle_new_gdb_connection.
11339 * server.h (report_fork_events): Declare global flag.
11340 * target.h (struct target_ops) <handle_new_gdb_connection>:
11341 New member.
11342 (target_handle_new_gdb_connection): New macro.
11343 * win32-low.c: Initialize new structure member.
11344
ddcbc397
DB
113452015-05-12 Don Breazeal <donb@codesourcery.com>
11346
11347 * mem-break.c (APPEND_TO_LIST): Define macro.
11348 (clone_agent_expr): New function.
11349 (clone_one_breakpoint): New function.
11350 (clone_all_breakpoints): New function.
11351 * mem-break.h: Declare new functions.
11352
89245bc0
DB
113532015-05-12 Don Breazeal <donb@codesourcery.com>
11354
11355 * linux-low.c (linux_supports_fork_events): New function.
11356 (linux_supports_vfork_events): New function.
11357 (linux_target_ops): Initialize new structure members.
11358 (initialize_low): Call linux_check_ptrace_features.
11359 * lynx-low.c (lynx_target_ops): Initialize new structure
11360 members.
11361 * server.c (report_fork_events, report_vfork_events):
11362 New global flags.
11363 (handle_query): Add new features to qSupported packet and
11364 response.
11365 (captured_main): Initialize new global variables.
11366 * target.h (struct target_ops) <supports_fork_events>:
11367 New member.
11368 <supports_vfork_events>: New member.
11369 (target_supports_fork_events): New macro.
11370 (target_supports_vfork_events): New macro.
11371 * win32-low.c (win32_target_ops): Initialize new structure
11372 members.
11373
835205d0
GB
113742015-05-12 Gary Benson <gbenson@redhat.com>
11375
11376 * server.c (handle_qxfer_exec_file): Use current process
11377 if annex is empty.
11378
21e94bd9
SL
113792015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11380
11381 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11382 Remove HAVE_PTRACE_GETREGS conditionals.
11383 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11384 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11385
45614f15
YQ
113862015-05-08 Yao Qi <yao.qi@linaro.org>
11387
11388 * linux-low.c (linux_supports_conditional_breakpoints): New
11389 function.
11390 (linux_target_ops): Install new target method.
11391 * lynx-low.c (lynx_target_ops): Install NULL hook for
11392 supports_conditional_breakpoints.
11393 * nto-low.c (nto_target_ops): Likewise.
11394 * spu-low.c (spu_target_ops): Likewise.
11395 * win32-low.c (win32_target_ops): Likewise.
11396 * server.c (handle_query): Check
11397 target_supports_conditional_breakpoints.
11398 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11399 New field.
11400 (target_supports_conditional_breakpoints): New macro.
11401
80ad801e
PA
114022015-05-06 Pedro Alves <palves@redhat.com>
11403
11404 PR server/18081
11405 * server.c (start_inferior): If the process exits, mourn it.
11406
819843c7
GB
114072015-04-21 Gary Benson <gbenson@redhat.com>
11408
11409 * hostio.c (fileio_open_flags_to_host): Factored out to
11410 fileio_to_host_openflags in common/fileio.c. Single use
11411 updated.
11412
a2d5a9d7
MF
114132015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11414
11415 * linux-xtensa-low.c (xtensa_fill_gregset)
11416 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11417 XCHAL_HAVE_LOOP.
11418
deb44829
MF
114192015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11420
11421 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11422 (regs_info): Replace usrregs pointer with NULL.
11423
e57f1de3
GB
114242015-04-17 Gary Benson <gbenson@redhat.com>
11425
11426 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11427 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11428 * server.c (handle_qxfer_exec_file): New function.
11429 (qxfer_packets): Add exec-file entry.
11430 (handle_query): Report qXfer:exec-file:read as supported packet.
11431
62828379
RN
114322015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11433
11434 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11435
b88bb450
GB
114362015-04-09 Gary Benson <gbenson@redhat.com>
11437
11438 * hostio-errno.c (errno_to_fileio_error): Remove function.
11439 Update caller to use remote_fileio_to_fio_error.
11440
c8f4bfdd
YQ
114412015-04-09 Yao Qi <yao.qi@linaro.org>
11442
11443 * linux-low.c (linux_insert_point): Call
11444 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11445 (linux_remove_point): Call remove_memory_breakpoint if type is
11446 raw_bkpt_type_sw.
11447 * linux-x86-low.c (x86_insert_point): Don't call
11448 insert_memory_breakpoint.
11449 (x86_remove_point): Don't call remove_memory_breakpoint.
11450
41f98f02
PA
114512015-04-01 Pedro Alves <palves@redhat.com>
11452 Cleber Rosa <crosa@redhat.com>
11453
11454 * server.c (gdbserver_usage): Reorganize and extend the usage
11455 message.
11456
2bf6fb9d
PA
114572015-03-24 Pedro Alves <palves@redhat.com>
11458
11459 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11460 output. Also dump TRAP_TRACE.
11461 (linux_low_filter_event): In debug output, distinguish a
11462 resume_stop SIGSTOP from a delayed SIGSTOP.
11463
369f6daa
GB
114642015-03-24 Gary Benson <gbenson@redhat.com>
11465
11466 * linux-x86-low.c (x86_linux_new_thread): Moved to
11467 nat/x86-linux.c.
11468 (x86_linux_prepare_to_resume): Likewise.
11469
8e5d4070
GB
114702015-03-24 Gary Benson <gbenson@redhat.com>
11471
11472 * Makefile.in (x86-linux-dregs.o): New rule.
11473 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11474 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11475 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11476 (x86_linux_dr_get): Likewise.
11477 (x86_linux_dr_set): Likewise.
11478 (update_debug_registers_callback): Likewise.
11479 (x86_linux_dr_set_addr): Likewise.
11480 (x86_linux_dr_get_addr): Likewise.
11481 (x86_linux_dr_set_control): Likewise.
11482 (x86_linux_dr_get_control): Likewise.
11483 (x86_linux_dr_get_status): Likewise.
11484 (x86_linux_update_debug_registers): Likewise.
11485
2b95d440
GB
114862015-03-24 Gary Benson <gbenson@redhat.com>
11487
11488 * linux-x86-low.c (x86_linux_update_debug_registers):
11489 New function, factored out from...
11490 (x86_linux_prepare_to_resume): ...this.
11491
14b0bc68
GB
114922015-03-24 Gary Benson <gbenson@redhat.com>
11493
11494 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11495 (x86_linux_dr_set): Likewise.
11496 (update_debug_registers_callback): Likewise.
11497 (x86_linux_dr_set_addr): Likewise.
11498 (x86_linux_dr_get_addr): Likewise.
11499 (x86_linux_dr_set_control): Likewise.
11500 (x86_linux_dr_get_control): Likewise.
11501 (x86_linux_dr_get_status): Likewise.
11502 (x86_linux_prepare_to_resume): Likewise.
11503
5dfe6ca8
GB
115042015-03-24 Gary Benson <gbenson@redhat.com>
11505
11506 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11507 Use perror_with_name. Pass string through gettext.
11508 (x86_linux_dr_set): Likewise.
11509
d33472ad
GB
115102015-03-24 Gary Benson <gbenson@redhat.com>
11511
11512 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11513 (x86_linux_dr_set_addr): ...this.
11514 (x86_dr_low_get_addr): Rename to...
11515 (x86_linux_dr_get_addr): ...this.
11516 (x86_dr_low_set_control): Rename to...
11517 (x86_linux_dr_set_control): ...this.
11518 (x86_dr_low_get_control): Rename to...
11519 (x86_linux_dr_get_control): ...this.
11520 (x86_dr_low_get_status): Rename to...
11521 (x86_linux_dr_get_status): ...this.
11522 (x86_dr_low): Update with new function names.
11523
4b134ca1
GB
115242015-03-24 Gary Benson <gbenson@redhat.com>
11525
11526 * Makefile.in (x86-linux.o): New rule.
11527 * configure.srv: Add x86-linux.o to relevant targets.
11528 * linux-low.c (lwp_set_arch_private_info): New function.
11529 (lwp_arch_private_info): Likewise.
11530 * linux-x86-low.c: Include nat/x86-linux.h.
11531 (arch_lwp_info): Removed structure.
11532 (update_debug_registers_callback):
11533 Use lwp_set_debug_registers_changed.
11534 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11535 and lwp_set_debug_registers_changed.
11536 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11537
34c703da
GB
115382015-03-24 Gary Benson <gbenson@redhat.com>
11539
11540 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11541 * linux-arm-low.c (arm_new_thread): Likewise.
11542 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11543 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11544 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11545 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11546
cff068da
GB
115472015-03-24 Gary Benson <gbenson@redhat.com>
11548
11549 * linux-low.c (ptid_of_lwp): New function.
11550 (lwp_is_stopped): Likewise.
11551 (lwp_stop_reason): Likewise.
11552 * linux-x86-low.c (update_debug_registers_callback):
11553 Use lwp_is_stopped.
11554 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11555 lwp_stop_reason.
11556
b2f7c7e8
GB
115572015-03-24 Gary Benson <gbenson@redhat.com>
11558
11559 * linux-low.h (linux_stop_lwp): Remove declaration.
11560
6d4ee8c6
GB
115612015-03-24 Gary Benson <gbenson@redhat.com>
11562
11563 * linux-low.h: Include nat/linux-nat.h.
11564 * linux-low.c (iterate_over_lwps_args): New structure.
11565 (iterate_over_lwps_filter): New function.
11566 (iterate_over_lwps): Likewise.
11567 * linux-x86-low.c (update_debug_registers_callback):
11568 Update signature to what iterate_over_lwps expects.
11569 Remove PID check that iterate_over_lwps now performs.
11570 (x86_dr_low_set_addr): Use iterate_over_lwps.
11571 (x86_dr_low_set_control): Likewise.
11572
70a0bb6b
GB
115732015-03-24 Gary Benson <gbenson@redhat.com>
11574
11575 * linux-x86-low.c (x86_debug_reg_state): New function.
11576 (x86_linux_prepare_to_resume): Use the above.
11577
7b669087
GB
115782015-03-24 Gary Benson <gbenson@redhat.com>
11579
11580 * linux-low.c (current_lwp_ptid): New function.
11581 * linux-x86-low.c: Include nat/linux-nat.h.
11582 (x86_dr_low_get_addr): Use current_lwp_ptid.
11583 (x86_dr_low_get_control): Likewise.
11584 (x86_dr_low_get_status): Likewise.
11585
eef49a3d
PA
115862015-03-20 Pedro Alves <palves@redhat.com>
11587
11588 * tracepoint.c (cmd_qtstatus): Make "str" const.
11589
b2333d22
PA
115902015-03-20 Pedro Alves <palves@redhat.com>
11591
11592 * server.c (handle_general_set): Make "req_str" const.
11593
23f238d3
PA
115942015-03-19 Pedro Alves <palves@redhat.com>
11595
11596 * linux-low.c (linux_resume_one_lwp): Rename to ...
11597 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11598 instead call perror_with_name.
11599 (check_ptrace_stopped_lwp_gone): New function.
11600 (linux_resume_one_lwp): Reimplement as wrapper around
11601 linux_resume_one_lwp_throw that swallows errors if the LWP is
11602 gone.
11603
91baf43f
PA
116042015-03-19 Pedro Alves <palves@redhat.com>
11605
11606 * linux-low.c (count_events_callback, select_event_lwp_callback):
11607 No longer check whether the thread has resume_stop as last resume
11608 kind.
11609
8bf3b159
PA
116102015-03-19 Pedro Alves <palves@redhat.com>
11611
11612 * linux-low.c (count_events_callback, select_event_lwp_callback):
11613 Use the lwp's status_pending_p field, not the thread's.
11614
b90fc188
PA
116152015-03-19 Pedro Alves <palves@redhat.com>
11616
11617 * linux-low.c (select_event_lwp_callback): Update comments to
11618 no longer mention SIGTRAP.
11619
464b0089
GB
116202015-03-18 Gary Benson <gbenson@redhat.com>
11621
11622 * server.c (handle_query): Do not report vFile:fstat as supported.
11623
aa9e327f
GB
116242015-03-11 Gary Benson <gbenson@redhat.com>
11625
11626 * hostio.c (sys/types.h): New include.
11627 (sys/stat.h): Likewise.
11628 (common-remote-fileio.h): Likewise.
11629 (handle_fstat): New function.
11630 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11631
791c0056
GB
116322015-03-11 Gary Benson <gbenson@redhat.com>
11633
11634 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11635 struct stat.st_blocks and struct stat.st_blksize.
11636 * configure: Regenerate.
11637 * config.in: Likewise.
11638 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11639 (OBS): Add common-remote-fileio.o.
11640 (common-remote-fileio.o): New rule.
11641
9a9df970
PA
116422015-03-09 Pedro Alves <palves@redhat.com>
11643
11644 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11645 'struct sockaddr' pointer in 'accept' call.
11646
9eb1356e
PA
116472015-03-09 Pedro Alves <palves@redhat.com>
11648
11649 Revert:
11650 2015-03-07 Pedro Alves <palves@redhat.com>
11651 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11652 or <winsock2.h> here. Instead include "gdb_socket.h".
11653 (remote_open): Use union gdb_sockaddr_u.
11654 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11655 or <winsock2.h> here. Instead include "gdb_socket.h".
11656 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11657 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11658 or <sys/un.h>.
11659 (init_named_socket, gdb_agent_helper_thread): Use union
11660 gdb_sockaddr_u.
11661
aac331e4
PA
116622015-03-07 Pedro Alves <palves@redhat.com>
11663
11664 * configure.ac (build_warnings): Move
11665 -Wdeclaration-after-statement to the C-specific set.
11666 * configure: Regenerate.
11667
366c75fc
PA
116682015-03-07 Pedro Alves <palves@redhat.com>
11669
11670 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11671 or <winsock2.h> here. Instead include "gdb_socket.h".
11672 (remote_open): Use union gdb_sockaddr_u.
11673 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11674 or <winsock2.h> here. Instead include "gdb_socket.h".
11675 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11676 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11677 or <sys/un.h>.
11678 (init_named_socket, gdb_agent_helper_thread): Use union
11679 gdb_sockaddr_u.
11680
492d29ea
PA
116812015-03-07 Pedro Alves <palves@redhat.com>
11682
11683 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11684 instead.
11685
60a191ed
YQ
116862015-03-06 Yao Qi <yao.qi@linaro.org>
11687
11688 * linux-aarch64-low.c (aarch64_insert_point): Use
11689 show_debug_regs as a boolean.
11690 (aarch64_remove_point): Likewise.
11691
f5771b1d
PA
116922015-03-05 Pedro Alves <palves@redhat.com>
11693
11694 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11695 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11696 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11697 * nto-low.c (nto_target_ops): Likewise.
11698 * spu-low.c (spu_target_ops): Likewise.
11699 * win32-low.c (win32_target_ops): Likewise.
11700
3e572f71
PA
117012015-03-04 Pedro Alves <palves@redhat.com>
11702
72f4393d 11703 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11704 Decide whether a breakpoint triggered based on the SIGTRAP's
11705 siginfo.si_code.
72f4393d
L
11706 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11707 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11708 (linux_low_filter_event): Check for breakpoints before checking
11709 watchpoints.
11710 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11711 siginfo.si_code.
72f4393d
L
11712 (linux_stopped_by_sw_breakpoint)
11713 (linux_supports_stopped_by_sw_breakpoint)
11714 (linux_stopped_by_hw_breakpoint)
11715 (linux_supports_stopped_by_hw_breakpoint): New functions.
11716 (linux_target_ops): Install new target methods.
3e572f71 11717
1ec68e26
PA
117182015-03-04 Pedro Alves <palves@redhat.com>
11719
11720 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11721 * server.c (swbreak_feature, hwbreak_feature): New globals.
11722 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11723 (captured_main): Clear swbreak_feature and hwbreak_feature.
11724 * server.h (swbreak_feature, hwbreak_feature): Declare.
11725 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11726 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11727 supports_stopped_by_hw_breakpoint>: New fields.
11728 (target_supports_stopped_by_sw_breakpoint)
11729 (target_stopped_by_sw_breakpoint)
11730 (target_supports_stopped_by_hw_breakpoint)
11731 (target_stopped_by_hw_breakpoint): Declare.
11732
15c66dd6
PA
117332015-03-04 Pedro Alves <palves@redhat.com>
11734
11735 enum lwp_stop_reason -> enum target_stop_reason
11736 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11737 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11738 (linux_wait_1, stuck_in_jump_pad_callback)
11739 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11740 (linux_stopped_by_watchpoint):
11741 * linux-low.h (enum lwp_stop_reason): Delete.
11742 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11743 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11744
98fc70d6
YQ
117452015-03-04 Yao Qi <yao.qi@linaro.org>
11746
11747 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11748
dd2ac174
GB
117492015-03-03 Gary Benson <gbenson@redhat.com>
11750
11751 * hostio.c (handle_vFile): Fix prefix lengths.
11752
d68e53f4
MM
117532015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11754
11755 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11756 ptr_bits.
11757
bf2d68ab
AA
117582015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11759
11760 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11761 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11762 (clean): Add "rm -f" for above C files.
11763 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11764 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11765 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11766 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11767 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11768 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11769 (init_registers_s390x_vx_linux64)
11770 (init_registers_s390x_tevx_linux64)
11771 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11772 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11773 declarations.
11774 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11775 (s390_store_vxrs_high): New functions.
11776 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11777 NT_S390_VXRS_HIGH.
11778 (s390_arch_setup): Add logic for selecting one of the new target
11779 descriptions. Activate the new vector regsets if applicable.
11780 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11781 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11782 and init_registers_s390x_tevx_linux64.
11783
c966a859
PA
117842015-03-01 Pedro Alves <palves@redhat.com>
11785
11786 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11787 parameter.
11788
4180215b
PA
117892015-02-27 Pedro Alves <palves@redhat.com>
11790
11791 * linux-x86-low.c (u_debugreg_offset): New function.
11792 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11793
749bab01
PA
117942015-02-27 Pedro Alves <palves@redhat.com>
11795
11796 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11797 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11798 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11799 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11800 (ps_lsetfpregs, ps_getpid)
11801 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11802 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11803 (ps_lsetxregs, ps_plog): Declare.
11804
3c14e5a3
PA
118052015-02-27 Pedro Alves <palves@redhat.com>
11806
11807 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11808 IP_AGENT_EXPORT_FUNC.
11809 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11810 IP_AGENT_EXPORT_FUNC.
11811 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11812 (IP_AGENT_EXPORT): Delete.
11813 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11814 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11815 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11816 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11817 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11818 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11819 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11820 (traceframe_read_count, traceframe_write_count)
11821 (traceframes_created, trace_state_variables, get_raw_reg)
11822 (get_trace_state_variable_value, set_trace_state_variable_value)
11823 (ust_loaded, helper_thread_id, cmd_buf): Use
11824 IPA_SYM_EXPORTED_NAME.
11825 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11826 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11827 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11828 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11829 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11830 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11831 EXTERN_C_PUSH/EXTERN_C_POP.
11832 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11833 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11834 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11835 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11836 (traceframe_write_count, traceframe_read_count)
11837 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11838 (about_to_request_buffer_space, get_trace_state_variable_value)
11839 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11840 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11841 EXTERN_C_PUSH/EXTERN_C_POP.
11842 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11843 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11844 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11845 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11846 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11847 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11848 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11849 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11850 Define.
11851 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11852 (IP_AGENT_EXPORT_VAR_DECL): Define.
11853 (tracing): Declare.
11854 (gdb_agent_get_raw_reg): Declare.
11855
fe978cb0
PA
118562015-02-27 Tom Tromey <tromey@redhat.com>
11857 Pedro Alves <palves@redhat.com>
11858
11859 Rename symbols whose names are reserved C++ keywords throughout.
11860
3bc3d82a
PA
118612015-02-27 Pedro Alves <palves@redhat.com>
11862
11863 * Makefile.in (COMPILER): New, get it from autoconf.
11864 (CXX): Get from autoconf instead.
11865 (COMPILE.pre): Use COMPILER.
11866 (CC-LD): Rename to ...
11867 (CC_LD): ... this. Use COMPILER.
11868 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11869 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11870 * acinclude.m4: Include build-with-cxx.m4.
11871 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11872 Disable -Werror by default if building in C++ mode.
11873 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11874 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11875 the C++ compiler. Save/restore CXXFLAGS too.
11876 * configure: Regenerate.
11877
07697489
PA
118782015-02-27 Pedro Alves <palves@redhat.com>
11879
11880 * acinclude.m4: Include libiberty.m4.
11881 * configure.ac: Call libiberty_INIT.
11882 * config.in, configure: Regenerate.
11883
9beb7c4e
PA
118842015-02-26 Pedro Alves <palves@redhat.com>
11885
11886 * linux-low.c (linux_wait_1): When incrementing the PC past a
11887 program breakpoint always use the_low_target.breakpoint_len as
11888 increment, rather than the maximum between that and
11889 the_low_target.decr_pc_after_break.
11890
8090aef2
PA
118912015-02-23 Pedro Alves <palves@redhat.com>
11892
11893 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11894 thread was doing a step-over; always adjust the PC if
11895 we stepped over a permanent breakpoint.
11896 (linux_wait_1): If we stepped over breakpoint that was on top of a
11897 permanent breakpoint, manually advance the PC past it.
11898
bc9540e8
PA
118992015-02-23 Pedro Alves <palves@redhat.com>
11900
11901 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11902 modes.
11903 (x86_fill_gregset, x86_store_gregset): Use it when handling
11904 $orig_eax.
11905
2db9a427
PA
119062015-02-20 Pedro Alves <palves@redhat.com>
11907
11908 * thread-db.c: Include "nat/linux-procfs.h".
11909 (thread_db_init): Skip listing new threads if the kernel supports
11910 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11911
afa8d396
PA
119122015-02-20 Pedro Alves <palves@redhat.com>
11913
11914 * linux-low.c (status_pending_p_callback): Use ptid_match.
11915
c9587f88
AT
119162015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11917
11918 PR breakpoints/16812
11919 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11920 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11921 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11922
b05ec7a5
AT
119232015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11924
11925 PR breakpoints/15956
11926 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11927
d33501a5
MM
119282015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11929
11930 * linux-low.c (linux_low_btrace_conf): Print size.
11931 * server.c (handle_btrace_conf_general_set): New.
11932 (hanle_general_set): Call handle_btrace_conf_general_set.
11933 (handle_query): Report Qbtrace-conf:bts:size as supported.
11934
f4abbc16
MM
119352015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11936
11937 * linux-low.c (linux_low_enable_btrace): Update parameters.
11938 (linux_low_btrace_conf): New.
11939 (linux_target_ops)<to_btrace_conf>: Initialize.
11940 * server.c (current_btrace_conf): New.
11941 (handle_btrace_enable): Rename to ...
11942 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11943 to target_enable_btrace. Update comment. Update users.
11944 (handle_qxfer_btrace_conf): New.
11945 (qxfer_packets): Add btrace-conf entry.
11946 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11947 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11948 (target_ops)<read_btrace_conf>: New.
11949 (target_enable_btrace): Update parameters.
11950 (target_read_btrace_conf): New.
11951
043c3577
MM
119522015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11953
11954 * server.c (handle_btrace_general_set): Remove call to
11955 target_supports_btrace.
11956 (supported_btrace_packets): New.
11957 (handle_query): Call supported_btrace_packets.
11958 * target.h: include btrace-common.h.
11959 (btrace_target_info): Removed.
11960 (supports_btrace, target_supports_btrace): Update parameters.
11961
734b0e4b
MM
119622015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11963
11964 * Makefile.in (SFILES): Add common/btrace-common.c.
11965 (OBS): Add common/btrace-common.o.
11966 (btrace-common.o): Add build rules.
11967 * linux-low: Include btrace-common.h.
11968 (linux_low_read_btrace): Use struct btrace_data. Call
11969 btrace_data_init and btrace_data_fini.
11970
d6c146e9
PA
119712015-02-06 Pedro Alves <palves@redhat.com>
11972
11973 * thread-db.c (find_new_threads_callback): Add debug output.
11974
20ba1ce6
PA
119752015-02-04 Pedro Alves <palves@redhat.com>
11976
11977 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11978 (resume_stopped_resumed_lwps): New function.
11979 (linux_wait_for_event_filtered): Use it.
11980
8cc73a39
SDJ
119812015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11982
11983 * Makefile.in (SFILES): Add linux-personality.c.
11984 (linux-personality.o): New rule.
11985 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11986 list of objects to be built.
11987 * linux-low.c: Include nat/linux-personality.h.
11988 (linux_create_inferior): Remove code to disable address space
11989 randomization (moved to ../nat/linux-personality.c). Create
11990 cleanup to disable address space randomization.
11991
fb23d554
SDJ
119922015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11993
11994 * Makefile.in (posix-strerror.o): New rule.
11995 (mingw-strerror.o): Likewise.
11996 * configure: Regenerated.
11997 * configure.ac: Source file ../common/common.host. Initialize new
11998 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11999
cdf43629
YQ
120002015-01-14 Yao Qi <yao@codesourcery.com>
12001
12002 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12003 (ppc-linux.o): New rule.
12004 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12005 * configure.ac: AC_CHECK_FUNCS(getauxval).
12006 * config.in: Re-generated.
12007 * configure: Re-generated.
12008 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12009 ppc64_64bit_inferior_p
12010
514c5338
YQ
120112015-01-14 Yao Qi <yao@codesourcery.com>
12012
12013 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12014 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12015 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12016 (PT_ORIG_R3, PT_TRAP): Likewise.
12017 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12018 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12019 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12020
3368c1e5
JB
120212015-01-10 Joel Brobecker <brobecker@adacore.com>
12022
12023 * i387-fp.c (i387_cache_to_xsave): In look over
12024 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12025 zmmh_low_space field by use of zmmh_high_space.
12026
582511be
PA
120272015-01-09 Pedro Alves <palves@redhat.com>
12028
12029 * linux-low.c (step_over_bkpt): Move higher up in the file.
12030 (handle_extended_wait): Don't store the stop_pc here.
12031 (get_stop_pc): Adjust comments and rename to ...
12032 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12033 stopped for a software breakpoint or hardware breakpoint.
12034 (thread_still_has_status_pending_p): New function.
12035 (status_pending_p_callback): Use
12036 thread_still_has_status_pending_p. If the event is no longer
12037 interesting, resume the LWP.
12038 (handle_tracepoints): Add assert.
12039 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12040 (wstatus_maybe_breakpoint): New function.
12041 (cancel_breakpoint): Delete function.
12042 (check_stopped_by_watchpoint): New function, factored out from
12043 linux_low_filter_event.
12044 (lp_status_maybe_breakpoint): Delete function.
12045 (linux_low_filter_event): Remove filter_ptid argument.
12046 Leave thread group exits pending here. Store the LWP's stop PC.
12047 Always leave events pending.
12048 (linux_wait_for_event_filtered): Pull all events out of the
12049 kernel, and leave them all pending.
12050 (count_events_callback, select_event_lwp_callback): Consider all
12051 events.
12052 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12053 (select_event_lwp): Only give preference to the stepping LWP in
12054 all-stop mode. Adjust comments.
12055 (ignore_event): New function.
12056 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12057 references to cancel_breakpoints. Adjust to renames. Also give
12058 equal priority to all LWPs that have had events in non-stop mode.
12059 If reporting a software breakpoint event, unadjust the LWP's PC.
12060 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12061 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12062 Adjust.
12063 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12064 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12065 (linux_stopped_by_watchpoint): Adjust.
12066 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12067 * linux-low.h (enum lwp_stop_reason): New.
12068 (struct lwp_info) <stop_pc>: Adjust comment.
12069 <stopped_by_watchpoint>: Delete field.
12070 <stop_reason>: New field.
12071 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12072 * mem-break.c (software_breakpoint_inserted_here)
12073 (hardware_breakpoint_inserted_here): New function.
12074 * mem-break.h (software_breakpoint_inserted_here)
12075 (hardware_breakpoint_inserted_here): Declare.
12076 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12077 (cancel_breakpoints): Delete.
12078 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12079 (upload_fast_traceframes): Remove references to
12080 cancel_breakpoints.
12081
a33e3959
PA
120822015-01-09 Pedro Alves <palves@redhat.com>
12083
12084 * thread-db.c (find_new_threads_callback): Ignore thread if the
12085 kernel thread ID is -1.
12086
8784d563
PA
120872015-01-09 Pedro Alves <palves@redhat.com>
12088
12089 * linux-low.c (linux_attach_fail_reason_string): Move to
12090 nat/linux-ptrace.c, and rename.
12091 (linux_attach_lwp): Update comment.
12092 (attach_proc_task_lwp_callback): New function.
12093 (linux_attach): Adjust to rename and use
12094 linux_proc_attach_tgid_threads.
12095 (linux_attach_fail_reason_string): Delete declaration.
12096
76f2b779
JB
120972015-01-01 Joel Brobecker <brobecker@adacore.com>
12098
12099 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12100 * server.c (gdbserver_version): Likewise.
12101
fafcc06a
SDJ
121022014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12103
12104 * remote-utils.c: Include ctype.h.
12105 (input_interrupt): Explicitly handle the case when the char
12106 received is the NUL byte. Improve the printing of non-ASCII
12107 characters.
12108
beed38b8
JB
121092014-12-16 Joel Brobecker <brobecker@adacore.com>
12110
12111 * linux-low.c (linux_low_filter_event): Update call to
12112 linux_enable_event_reporting following the addition of
12113 a new parameter to that function.
12114
bf330350
CU
121152014-12-16 Catalin Udma <catalin.udma@freescale.com>
12116
12117 PR server/17457
12118 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12119 (AARCH64_FPCR_REGNO): Likewise.
12120 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12121 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12122 (aarch64_store_fpregset): Likewise.
12123
5227d625
JB
121242014-12-15 Joel Brobecker <brobecker@adacore.com>
12125
12126 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12127 Remove FIXME comment about assumption about N.
12128
f93b65a0
JB
121292014-12-13 Joel Brobecker <brobecker@adacore.com>
12130
12131 * configure.ac: If large-file support is disabled in GDBserver,
12132 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12133 * configure: Regenerate.
12134
e5a9158d
AA
121352014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12136
12137 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12138 warning upon ENODATA from ptrace.
12139 * linux-s390-low.c (s390_store_tdb): New.
12140 (s390_regsets): Add regset for NT_S390_TDB.
12141
feea5f36
AA
121422014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12143
12144 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12145 without a fill_function.
12146 * linux-s390-low.c (s390_fill_last_break): Remove.
12147 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12148 (s390_arch_setup): Use regset's size instead of fill_function for
12149 loop end condition.
12150
098dbe61
AA
121512014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12152
12153 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12154 the regset's store function when ptrace returned an error.
12155 * regcache.c (get_thread_regcache): Invalidate register cache
12156 before fetching inferior's registers.
12157
28eef672
AA
121582014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12159
12160 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12161 while-loop as for-loop.
12162 (regsets_store_inferior_registers): Likewise.
12163
bdca27a2
YQ
121642014-11-28 Yao Qi <yao@codesourcery.com>
12165
12166 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12167 * config.in, configure: Re-generate.
12168 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12169 is defined.
12170
9c232dda
YQ
121712014-11-21 Yao Qi <yao@codesourcery.com>
12172
12173 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12174 (AC_CHECK_HEADERS): Remove malloc.h.
12175 * configure: Re-generated.
12176 * config.in: Re-generated.
12177 * server.h: Don't include alloca.h and malloc.h.
12178 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12179 Don't include malloc.h.
12180
43968415
JB
121812014-11-17 Joel Brobecker <brobecker@adacore.com>
12182
12183 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12184 corresponding ERRNO check in same block.
12185
40e91bc7
PA
121862014-11-12 Pedro Alves <palves@redhat.com>
12187
12188 * server.c (cont_thread): Update comment.
12189 (start_inferior, attach_inferior): No longer clear cont_thread.
12190 (handle_v_cont): No longer set cont_thread.
12191 (captured_main): Clear cont_thread each time a GDB connects.
12192
c2c118cf
PA
121932014-11-12 Pedro Alves <palves@redhat.com>
12194
12195 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12196 thread, and don't resume all threads if the Hc thread has exited.
12197
78708b7c
PA
121982014-11-12 Pedro Alves <palves@redhat.com>
12199
12200 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12201 the process group instead of to a specific LWP.
12202
a2abc7de
PA
122032014-10-15 Pedro Alves <palves@redhat.com>
12204
12205 PR server/17487
12206 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12207 parameter.
12208 (arm_set_thread_context): Delete.
12209 (the_low_target): Adjust.
12210 * win32-i386-low.c (debug_registers_changed)
12211 (debug_registers_used): Delete.
12212 (update_debug_registers_callback): New function.
12213 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12214 needing to update their debug registers.
12215 (win32_get_current_dr): New function.
12216 (x86_dr_low_get_addr, x86_dr_low_get_control)
12217 (x86_dr_low_get_status): Fetch the debug register from the thread
12218 record's context.
12219 (i386_initial_stuff): Adjust.
12220 (i386_get_thread_context): Remove current_event parameter. Don't
12221 clear debug_registers_changed nor copy DR values to
12222 debug_reg_state.
12223 (i386_set_thread_context): Delete.
12224 (i386_prepare_to_resume): New function.
12225 (i386_thread_added): Mark the thread as needing to update irs
12226 debug registers.
12227 (the_low_target): Remove i386_set_thread_context and install
12228 i386_prepare_to_resume.
12229 * win32-low.c (win32_get_thread_context): Adjust.
12230 (win32_set_thread_context): Use SetThreadContext
12231 directly.
12232 (win32_prepare_to_resume): New function.
12233 (win32_require_context): New function, factored out from ...
12234 (thread_rec): ... this.
12235 (continue_one_thread): Call win32_prepare_to_resume on each thread
12236 we're about to continue.
12237 (win32_resume): Call win32_prepare_to_resume on the event thread.
12238 * win32-low.h (struct win32_thread_info)
12239 <debug_registers_changed>: New field.
12240 (struct win32_target_ops): Change prototype of set_thread_context,
12241 delete set_thread_context and add prepare_to_resume.
12242 (win32_require_context): New declaration.
12243
a442d071
GB
122442014-10-08 Gary Benson <gbenson@redhat.com>
12245
12246 * server.h: Do not include common-exceptions.h.
12247
6f1947e8
GB
122482014-10-08 Gary Benson <gbenson@redhat.com>
12249
12250 * server.h: Do not include cleanups.h.
12251
63b434a4
JH
122522014-09-30 James Hogan <james.hogan@imgtec.com>
12253
12254 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12255 mips64-dsp-linux.c.
12256
c4d9ceb6
YQ
122572014-09-23 Yao Qi <yao@codesourcery.com>
12258
12259 * linux-low.c (lp_status_maybe_breakpoint): New function.
12260 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12261 (count_events_callback): Likewise.
12262 (select_event_lwp_callback): Likewise.
12263 (cancel_breakpoints_callback): Likewise.
12264
89a5711c
DB
122652014-09-19 Don Breazeal <donb@codesourcery.com>
12266
12267 * linux-low.c (handle_extended_wait): Call
12268 linux_ptrace_get_extended_event.
12269 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12270 linux_is_extended_waitstatus.
12271
bffc0964
JB
122722014-09-16 Joel Brobecker <brobecker@adacore.com>
12273
12274 * Makefile.in (CPPFLAGS): Define.
12275 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12276 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12277
0bfdf32f
GB
122782014-09-16 Gary Benson <gbenson@redhat.com>
12279
12280 * inferiors.h (current_inferior): Renamed as...
12281 (current_thread): New variable. All uses updated.
12282 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12283 (maybe_move_out_of_jump_pad): Likewise.
12284 (cancel_breakpoint): Likewise.
12285 (linux_low_filter_event): Likewise.
12286 (wait_for_sigstop): Likewise.
12287 (linux_resume_one_lwp): Likewise.
12288 (need_step_over_p): Likewise.
12289 (start_step_over): Likewise.
12290 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12291 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12292 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12293 and save_inferior as saved_thread.
12294 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12295 saved_thread.
12296 (regcache_invalidate_thread): Likewise.
12297 * remote-utils.c (prepare_resume_reply): Likewise.
12298 * thread-db.c (thread_db_get_tls_address): Likewise.
12299 (disable_thread_event_reporting): Likewise.
12300 (remove_thread_event_breakpoints): Likewise.
12301 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12302 as saved_thread.
12303 * target.h (set_desired_inferior): Renamed as...
12304 (set_desired_thread): New declaration. All uses updated.
12305 * server.c (myresume): Updated comment to reference thread instead
12306 of inferior.
12307 (handle_serial_event): Likewise.
12308 (handle_target_event): Likewise.
12309
361c8ade
GB
123102014-09-12 Tom Tromey <tromey@redhat.com>
12311 Gary Benson <gbenson@redhat.com>
12312
12313 * regcache.h: Include common-regcache.h.
12314 (regcache_read_pc): Don't declare.
12315 * regcache.c (get_thread_regcache_for_ptid): New function.
12316
bd9269f7
GB
123172014-09-11 Tom Tromey <tromey@redhat.com>
12318 Gary Benson <gbenson@redhat.com>
12319
12320 * symbol.c: New file.
12321 * Makefile.in (SFILES): Add symbol.c.
12322 (OBS): Add symbol.o.
12323
f8c1d06b
GB
123242014-09-11 Gary Benson <gbenson@redhat.com>
12325
12326 * target.c (target_stop_ptid, target_continue_ptid): New
12327 functions.
12328
721ec300
GB
123292014-09-11 Tom Tromey <tromey@redhat.com>
12330 Gary Benson <gbenson@redhat.com>
12331
12332 * target.h: Include target/target.h.
12333 * target.c (target_read_memory, target_read_uint32)
12334 (target_write_memory): New functions.
12335
c5e92cca
GB
123362014-09-11 Gary Benson <gbenson@redhat.com>
12337
12338 * server.h (debug_hw_points): Don't declare.
12339 * server.c (debug_hw_points): Don't define. Replace all uses
12340 with show_debug_regs.
12341 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12342 all uses with show_debug_regs.
12343
2e4bb98a
EBM
123442014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12345
12346 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12347 endianness into account.
12348 (ppc_supply_ptrace_register): Likewise.
12349
ac740bc7
JH
123502014-09-03 James Hogan <james.hogan@imgtec.com>
12351
12352 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12353 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12354
97ea6506
GB
123552014-09-03 Gary Benson <gbenson@redhat.com>
12356
12357 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12358 ALL_DEBUG_ADDRESS_REGISTERS.
12359
df7e5265
GB
123602014-09-02 Gary Benson <gbenson@redhat.com>
12361
12362 * i386-low.h: Renamed as...
12363 * x86-low.h: New file. All type, function and variable name
12364 prefixes changed from "i386_" to "x86_". All references updated.
12365 * i386-low.c: Renamed as...
12366 * x86-low.c: New file. All type, function and variable name
12367 prefixes changed from "i386_" to "x86_". All references updated.
12368
ed859da7
GB
123692014-09-02 Gary Benson <gbenson@redhat.com>
12370
12371 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12372 (x86_linux_new_thread): Likewise.
12373
860789c7
GB
123742014-08-29 Gary Benson <gbenson@redhat.com>
12375
12376 * server.h (setjmp.h): Do not include.
12377 (toplevel): Do not declare.
12378 (common-exceptions.h): Include.
12379 (cleanups.h): Likewise.
12380 * server.c (toplevel): Do not define.
12381 (exit_code): New static global.
12382 (detach_or_kill_for_exit_cleanup): New function.
12383 (main): New function. Original main renamed to...
12384 (captured_main): New function.
12385 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12386
ff55e1b5
GB
123872014-08-29 Gary Benson <gbenson@redhat.com>
12388
12389 * Makefile.in (SFILES): Add common/common-exceptions.c.
12390 (OBS): Add common-exceptions.o.
12391 (common-exceptions.o): New rule.
12392 * utils.c (prepare_to_throw_exception): New function.
12393
e9bcb658
GB
123942014-08-29 Gary Benson <gbenson@redhat.com>
12395
12396 * config.in: Regenerate.
12397 * configure: Likewise.
12398
e3180625
GB
123992014-08-29 Gary Benson <gbenson@redhat.com>
12400
12401 * Makefile.in (SFILES): Add common/cleanups.c.
12402 (OBS): cleanups.o.
12403 (cleanups.o): New rule.
12404
e3d6ba5d
GB
124052014-08-29 Gary Benson <gbenson@redhat.com>
12406
12407 * utils.c (internal_vwarning): New function.
12408
7096e886
GB
124092014-08-28 Gary Benson <gbenson@redhat.com>
12410
12411 * utils.h (fatal): Remove declaration.
12412 * utils.c (fatal): Remove function.
12413
14ce3192
GB
124142014-08-28 Gary Benson <gbenson@redhat.com>
12415
12416 * tracepoint.c (gdb_agent_init): Replace fatal with
12417 perror_with_name.
12418 (initialize_tracepoint): Likewise.
12419
50278d59
GB
124202014-08-28 Gary Benson <gbenson@redhat.com>
12421
12422 * remote-utils.c (remote_prepare): Replace fatal with error.
12423
aa96c426
GB
124242014-08-28 Gary Benson <gbenson@redhat.com>
12425
12426 * linux-low.c (linux_async): Replace fatal with warning.
12427 Tidy up and return.
12428 (linux_start_non_stop): Return -1 if linux_async failed.
12429
f7160e97
GB
124302014-08-28 Gary Benson <gbenson@redhat.com>
12431
12432 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12433 gdb_assert.
12434 (i386_dr_low_get_addr): Remove vague comment.
12435 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12436 gdb_assert.
12437
38e08fca
GB
124382014-08-28 Gary Benson <gbenson@redhat.com>
12439
12440 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12441 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12442 internal_error.
12443 (linux_resume_one_lwp): Likewise.
12444 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12445 gdb_assert.
12446 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12447 with internal_error.
12448 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12449 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12450 (find_register_by_name): Replace fatal with internal_error.
12451 (find_regno): Likewise.
12452 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12453 * thread-db.c (thread_db_create_event): Likewise.
12454 (thread_db_load_search): Likewise.
12455 (try_thread_db_load_1): Likewise.
12456 * tracepoint.c (get_jump_space_head): Replace fatal with
12457 internal_error.
12458 (claim_trampoline_space): Likewise.
12459 (have_fast_tracepoint_trampoline_buffer): Likewise.
12460 (cmd_qtstart): Likewise.
12461 (stop_tracing): Likewise.
12462 (fast_tracepoint_collecting): Likewise.
12463 (target_malloc): Likewise.
12464 (download_tracepoint): Likewise.
12465 (download_trace_state_variables): Replace check with gdb_assert.
12466 (upload_fast_traceframes): Replace fatal with internal_error.
12467
34abf635
GB
124682014-08-19 Tom Tromey <tromey@redhat.com>
12469 Gary Benson <gbenson@redhat.com>
12470
12471 * Makefile.in (SFILES): Add common/common-debug.c.
12472 (OBS): Add common-debug.o.
12473 (common-debug.o): New rule.
12474 * debug.h (debug_printf): Don't declare.
12475 * debug.c (debug_printf): Renamed and rewritten as...
12476 (debug_vprintf): New function.
12477
f6e94d78
GB
124782014-08-19 Gary Benson <gbenson@redhat.com>
12479
12480 * utils.h: Do not include print-utils.h.
12481
9239eeab
GB
124822014-08-19 Tom Tromey <tromey@redhat.com>
12483 Gary Benson <gbenson@redhat.com>
12484
12485 * server.h: Add static assertion.
12486 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12487
ef87c8bb
GB
124882014-08-19 Tom Tromey <tromey@redhat.com>
12489 Gary Benson <gbenson@redhat.com>
12490
12491 * Makefile.in (SFILES): Add common/errors.c.
12492 (OBS): Add errors.o.
12493 (IPA_OBS): Add errors-ipa.o.
12494 (errors.o): New rule.
12495 (errors-ipa.o): Likewise.
12496 * utils.h (perror_with_name, error, warning): Don't declare.
12497 * utils.c (warning): Renamed and rewritten as...
12498 (vwarning): New function.
12499 (error): Renamed and rewritten as...
12500 (verror): New function.
12501 (internal_error): Renamed and rewritten as...
12502 (internal_verror): New function.
12503
bb974a24
GB
125042014-08-07 Gary Benson <gbenson@redhat.com>
12505
12506 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12507 * configure: Regenerate.
12508 * config.in: Likewise.
12509 * server.h: Do not include errno.h.
12510 * event-loop.c: Likewise.
12511 * hostio-errno.c: Likewise.
12512 * linux-low.c: Likewise.
12513 * remote-utils.c: Likewise.
12514 * spu-low.c: Likewise.
12515 * utils.c: Likewise.
12516 * gdbreplay.c: Unconditionally include errno.h.
12517
6d3d12eb
GB
125182014-08-07 Gary Benson <gbenson@redhat.com>
12519
12520 * server.h: Do not include string.h.
12521 * event-loop.c: Likewise.
12522 * linux-low.c: Likewise.
12523 * regcache.c: Likewise.
12524 * remote-utils.c: Likewise.
12525 * spu-low.c: Likewise.
12526 * utils.c: Likewise.
12527
dccbb609
GB
125282014-08-07 Gary Benson <gbenson@redhat.com>
12529
12530 * server.h: Do not include gdb_assert.h.
12531
e76df0d0
GB
125322014-08-07 Gary Benson <gbenson@redhat.com>
12533
12534 * server.h: Do not include common-utils.h.
12535
4cb9c816
GB
125362014-08-07 Gary Benson <gbenson@redhat.com>
12537
12538 * server.h: Do not include ptid.h.
12539 * notif.h: Likewise.
12540
3995eeee
GB
125412014-08-07 Gary Benson <gbenson@redhat.com>
12542
12543 * server.h: Do not include gdb_locale.h.
12544
cb9f1a9b
GB
125452014-08-07 Gary Benson <gbenson@redhat.com>
12546
12547 * server.h: Do not include gdb/signals.h.
12548 * win32-low.c: Likewise.
12549
a5fceff8
GB
125502014-08-07 Gary Benson <gbenson@redhat.com>
12551
12552 * server.h: Do not include pathmax.h.
12553
b9391142
GB
125542014-08-07 Gary Benson <gbenson@redhat.com>
12555
12556 * server.h: Do not include libiberty.h.
12557 * linux-bfin-low.c: Likewise.
12558
0e443c87
GB
125592014-08-07 Gary Benson <gbenson@redhat.com>
12560
12561 * server.h: Do not include ansidecl.h.
12562
8ebb3f56
GB
125632014-08-07 Gary Benson <gbenson@redhat.com>
12564
12565 * linux-x86-low.c: Do not include stddef.h.
12566 * lynx-ppc-low.c: Likewise.
12567 * tracepoint.c: Likewise.
12568
8980bdf6
GB
125692014-08-07 Gary Benson <gbenson@redhat.com>
12570
12571 * server.h: Do not include stdarg.h.
12572 * nto-low.c: Likewise.
12573
d7096f71
GB
125742014-08-07 Gary Benson <gbenson@redhat.com>
12575
12576 * server.h: Do not include stdlib.h.
12577 * inferiors.c: Likewise.
12578 * linux-low.c: Likewise.
12579 * regcache.c: Likewise.
12580 * spu-low.c: Likewise.
12581 * tracepoint.c: Likewise.
12582 * utils.c: Likewise.
12583
d02f550d
GB
125842014-08-07 Gary Benson <gbenson@redhat.com>
12585
12586 * server.h: Do not include stdio.h.
12587 * linux-low.c: Likewise.
12588 * remote-utils.c: Likewise.
12589 * spu-low.c: Likewise.
12590 * utils.c: Likewise.
12591 * wincecompat.c: Likewise.
12592
87f6c4e3
GB
125932014-08-06 Gary Benson <gbenson@redhat.com>
12594
12595 * regcache.c (init_register_cache): Move conditionals inside if.
12596
7089dca4
GB
125972014-08-06 Gary Benson <gbenson@redhat.com>
12598
12599 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12600
462f517e
GB
126012014-07-31 Gary Benson <gbenson@redhat.com>
12602
12603 * ax.h: Do not include server.h.
12604 * gdbthread.h: Likewise.
12605 * lynx-low.h: Likewise.
12606 * notif.h: Likewise.
12607
976411d6
GB
126082014-07-30 Gary Benson <gbenson@redhat.com>
12609
12610 * server.h: Include common-defs.h.
12611 Do not include config.h or build-gnulib-gdbserver/config.h.
12612
d41f6d8e
GB
126132014-07-30 Gary Benson <gbenson@redhat.com>
12614
12615 * hostio-errno.c: Move server.h to top of includes list.
12616 * inferiors.c: Likewise.
12617 * linux-x86-low.c: Likewise.
12618 * notif.c: Include server.h.
12619
314c6a35
TT
126202014-07-24 Tom Tromey <tromey@redhat.com>
12621 Gary Benson <gbenson@redhat.com>
12622
12623 * server.h (CORE_ADDR): Now unsigned.
12624
69ff6be5
PA
126252014-07-16 Pedro Alves <palves@redhat.com>
12626
12627 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12628
ce9e3fe7
PA
126292014-07-15 Pedro Alves <palves@redhat.com>
12630
12631 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12632 copy.
12633
e76126e8
PA
126342014-07-11 Pedro Alves <palves@redhat.com>
12635
12636 * linux-low.c (kill_wait_lwp): New function, based on
12637 kill_one_lwp_callback, but use my_waitpid directly.
12638 (kill_one_lwp_callback, linux_kill): Use it.
12639
8e9db26e
PA
126402014-06-23 Pedro Alves <palves@redhat.com>
12641
12642 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12643 before setting DR0..DR3.
12644
698b3e08
GB
126452014-06-20 Gary Benson <gbenson@redhat.com>
12646
12647 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12648 * configure: Regenerated.
12649 * config.in: Likewise.
12650
125f8a3d
GB
126512014-06-20 Gary Benson <gbenson@redhat.com>
12652
12653 * Makefile.in (SFILES): Update locations for files moved
12654 from common to nat.
12655 (object file files): Reordered.
12656
42995dbd
GB
126572014-06-20 Gary Benson <gbenson@redhat.com>
12658
12659 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12660 (i386_dr_low_set_addr): Likewise.
12661 (i386_dr_low_get_addr): Likewise.
12662 (i386_dr_low_can_set_control): Likewise.
12663 (i386_dr_low_set_control): Likewise.
12664 (i386_dr_low_get_control): Likewise.
12665 (i386_dr_low_get_status): Likewise.
12666 (i386_get_debug_register_length): Likewise.
12667 * linux-x86-low.c (i386_dr_low_set_addr):
12668 Changed signature. Made static.
12669 (i386_dr_low_get_addr): Likewise.
12670 (i386_dr_low_set_control): Likewise.
12671 (i386_dr_low_get_control): Likewise.
12672 (i386_dr_low_get_status): Likewise.
12673 (i386_dr_low): New global variable.
12674 * win32-i386-low.c (i386_dr_low_set_addr):
12675 Changed signature. Made static.
12676 (i386_dr_low_get_addr): Likewise.
12677 (i386_dr_low_set_control): Likewise.
12678 (i386_dr_low_get_control): Likewise.
12679 (i386_dr_low_get_status): Likewise.
12680 (i386_dr_low): New global variable.
12681
e1d2394b
MS
126822014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12683
12684 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12685 * Makefile.in (AR, AR_FLAGS): Define.
12686 * configure: Regenerate.
12687
3a8ee006
GB
126882014-06-19 Gary Benson <gbenson@redhat.com>
12689
12690 * Makefile.in (i386-dregs.o): New rule.
12691 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12692 * i386-low.c (target.h): Remove include.
12693 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12694 (DR_CONTROL_SHIFT): Likewise.
12695 (DR_CONTROL_SIZE): Likewise.
12696 (DR_RW_EXECUTE): Likewise.
12697 (DR_RW_WRITE): Likewise.
12698 (DR_RW_READ): Likewise.
12699 (DR_RW_IORW): Likewise.
12700 (DR_LEN_1): Likewise.
12701 (DR_LEN_2): Likewise.
12702 (DR_LEN_4): Likewise.
12703 (DR_LEN_8): Likewise.
12704 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12705 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12706 (DR_ENABLE_SIZE): Likewise.
12707 (DR_LOCAL_SLOWDOWN): Likewise.
12708 (DR_GLOBAL_SLOWDOWN): Likewise.
12709 (DR_CONTROL_RESERVED): Likewise.
12710 (I386_DR_CONTROL_MASK): Likewise.
12711 (I386_DR_VACANT): Likewise.
12712 (I386_DR_LOCAL_ENABLE): Likewise.
12713 (I386_DR_GLOBAL_ENABLE): Likewise.
12714 (I386_DR_DISABLE): Likewise.
12715 (I386_DR_SET_RW_LEN): Likewise.
12716 (I386_DR_GET_RW_LEN): Likewise.
12717 (I386_DR_WATCH_HIT): Likewise.
12718 (i386_wp_op_t): Likewise.
12719 (i386_show_dr): Likewise.
12720 (i386_length_and_rw_bits): Likewise.
12721 (i386_insert_aligned_watchpoint): Likewise.
12722 (i386_remove_aligned_watchpoint): Likewise.
12723 (i386_handle_nonaligned_watchpoint): Likewise.
12724 i386_update_inferior_debug_regs(): Likewise.
12725 (i386_dr_insert_watchpoint): Likewise.
12726 (i386_dr_remove_watchpoint): Likewise.
12727 (i386_dr_region_ok_for_watchpoint): Likewise.
12728 (i386_dr_stopped_data_address): Likewise.
12729 (i386_dr_stopped_by_watchpoint): Likewise.
12730
8f26655c
GB
127312014-06-19 Gary Benson <gbenson@redhat.com>
12732
12733 * i386-low.c (i386_dr_show): Renamed to
12734 i386_show_dr and made static. All uses updated.
12735 (i386_dr_length_and_rw_bits): Renamed to
12736 i386_length_and_rw_bits and made static.
12737 All uses updated.
12738 (i386_dr_insert_aligned_watchpoint): Renamed to
12739 i386_insert_aligned_watchpoint and made static.
12740 All uses updated.
12741 (i386_dr_remove_aligned_watchpoint): Renamed to
12742 i386_remove_aligned_watchpoint and made static.
12743 All uses updated.
12744 (i386_dr_update_inferior_debug_regs): Renamed to
12745 i386_update_inferior_debug_regs and made static.
12746 All uses updated.
12747
b9228891
GB
127482014-06-18 Gary Benson <gbenson@redhat.com>
12749
5171def3
GB
12750 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12751 (i386_dr_low_can_set_control): Likewise.
12752 (i386_get_debug_register_length): Likewise.
12753 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12754 (i386_dr_low_can_set_control): Likewise.
12755 (i386_get_debug_register_length): Likewise.
12756
127572014-06-17 Gary Benson <gbenson@redhat.com>
12758
b9228891
GB
12759 * i386-low.h (i386-dregs.h): New include.
12760 (DR_FIRSTADDR): Now in i386-dregs.h.
12761 (DR_LASTADDR): Likewise.
12762 (DR_NADDR): Likewise.
12763 (DR_STATUS): Likewise.
12764 (DR_CONTROL): Likewise.
12765 (i386_debug_reg_state): Likewise.
12766 (i386_dr_insert_watchpoint): Likewise.
12767 (i386_dr_remove_watchpoint): Likewise.
12768 (i386_dr_region_ok_for_watchpoint): Likewise.
12769 (i386_dr_stopped_data_address): Likewise.
12770 (i386_dr_stopped_by_watchpoint): Likewise.
12771 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12772
4be83cc2
GB
127732014-06-18 Gary Benson <gbenson@redhat.com>
12774
12775 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12776 i386_dr_insert_watchpoint.
12777 (i386_low_remove_watchpoint): Renamed to
12778 i386_dr_remove_watchpoint.
12779 (i386_low_region_ok_for_watchpoint): Renamed to
12780 i386_dr_region_ok_for_watchpoint.
12781 (i386_low_stopped_data_address): Renamed to
12782 i386_dr_stopped_data_address.
12783 (i386_low_stopped_by_watchpoint): Renamed to
12784 i386_dr_stopped_by_watchpoint.
12785 * i386-low.c (i386_show_dr): Renamed to
12786 i386_dr_show and made nonstatic. All uses updated.
12787 (i386_length_and_rw_bits): Renamed to
12788 i386_dr_length_and_rw_bits and made nonstatic.
12789 All uses updated.
12790 (i386_insert_aligned_watchpoint): Renamed to
12791 i386_dr_insert_aligned_watchpoint and made nonstatic.
12792 All uses updated.
12793 (i386_remove_aligned_watchpoint): Renamed to
12794 i386_dr_remove_aligned_watchpoint and made nonstatic.
12795 All uses updated.
12796 (i386_update_inferior_debug_regs): Renamed to
12797 i386_dr_update_inferior_debug_regs and made nonstatic.
12798 All uses updated.
12799 (i386_low_insert_watchpoint): Renamed to
12800 i386_dr_insert_watchpoint. All uses updated.
12801 (i386_low_remove_watchpoint): Renamed to
12802 i386_dr_remove_watchpoint. All uses updated.
12803 (i386_low_region_ok_for_watchpoint): Renamed to
12804 i386_dr_region_ok_for_watchpoint. All uses updated.
12805 (i386_low_stopped_data_address): Renamed to
12806 i386_dr_stopped_data_address. All uses updated.
12807 (i386_low_stopped_by_watchpoint): Renamed to
12808 i386_dr_stopped_by_watchpoint. All uses updated.
12809
131aa0d4
GB
128102014-06-18 Gary Benson <gbenson@redhat.com>
12811
12812 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12813 (i386_dr_low_can_set_control): Likewise.
12814 (i386_insert_aligned_watchpoint): New check.
12815
d9305f7f
GB
128162014-06-18 Gary Benson <gbenson@redhat.com>
12817
12818 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12819 Renamed to state.
12820
e927c9fc
GB
128212014-06-18 Gary Benson <gbenson@redhat.com>
12822
12823 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12824 instead of fatal and error.
12825 (i386_handle_nonaligned_watchpoint): Likewise.
12826
1b6d4134
GB
128272014-06-18 Gary Benson <gbenson@redhat.com>
12828
12829 * i386-low.c (i386_get_debug_register_length): New macro.
12830 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12831 (i386_show_dr): Use debug_printf instead of fprintf. Use
12832 phex to format values.
12833
6e62758f
GB
128342014-06-18 Gary Benson <gbenson@redhat.com>
12835
12836 * i386-low.h: Comment changes.
12837 * i386-low.c: Likewise.
12838
fc6e2f03
GB
128392014-06-18 Gary Benson <gbenson@redhat.com>
12840
12841 * i386-low.c: Whitespace changes.
12842
f9d1eeed
TT
128432014-06-12 Tom Tromey <tromey@redhat.com>
12844
12845 * utils.c (freeargv): Remove.
12846
0b04e523
TT
128472014-06-12 Tom Tromey <tromey@redhat.com>
12848
12849 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12850 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12851 (parse_debug_format_options): Likewise.
12852 (gdbserver_usage): Likewise.
12853 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12854 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12855 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12856 against libiberty.
12857 ($(LIBGNU)): Depend on libiberty.
12858 (all-lib): Recurse into all subdirs.
12859 (install-only): Invoke "install" target in subdirs.
12860 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12861 targets.
12862 * configure: Rebuild.
12863 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12864 for vasprintf, vsnprintf, or gettimeofday.
12865 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12866 srv_tgtobj.
12867
270c9937
JB
128682014-06-05 Joel Brobecker <brobecker@adacore.com>
12869
12870 * development.sh: Delete.
12871 * Makefile.in (config.status): Adjust dependency on development.sh.
12872 * configure.ac: Adjust development.sh source call.
12873 * configure: Regenerate.
12874
0a261ed8
PA
128752014-06-02 Pedro Alves <palves@redhat.com>
12876
12877 * ax.c (gdb_free_agent_expr): New function.
12878 * ax.h (gdb_free_agent_expr): New declaration.
12879 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12880 list.
12881 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12882 static.
12883 (clear_breakpoint_conditions_and_commands): New function.
12884 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12885 (clear_breakpoint_conditions_and_commands): New declaration.
12886
e9dae05e
RR
128872014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12888
12889 * linux-aarch64-low.c (asm/ptrace.h): Include.
12890
5876f503
JK
128912014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12892
12893 Fix TLS access for -static -pthread.
12894 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12895 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12896 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12897
802e8e6d
PA
128982014-05-20 Pedro Alves <palves@redhat.com>
12899
12900 * linux-aarch64-low.c (aarch64_insert_point)
12901 (aarch64_remove_point): No longer check whether the type is
12902 supported here. Adjust to new interface.
12903 (the_low_target): Install aarch64_supports_z_point_type as
12904 supports_z_point_type method.
12905 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12906 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12907 instead of a Z packet char. Adjust.
12908 (arm_supports_z_point_type): New function.
12909 (arm_insert_point, arm_remove_point): Adjust to new interface.
12910 (the_low_target): Install arm_supports_z_point_type.
12911 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12912 (cris_insert_point, cris_remove_point): Adjust to new interface.
12913 Don't check whether the type is supported here.
12914 (the_low_target): Install cris_supports_z_point_type.
12915 * linux-low.c (linux_supports_z_point_type): New function.
12916 (linux_insert_point, linux_remove_point): Adjust to new interface.
12917 * linux-low.h (struct linux_target_ops) <insert_point,
12918 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12919 raw_breakpoint pointer parameter.
12920 <supports_z_point_type>: New method.
12921 * linux-mips-low.c (mips_supports_z_point_type): New function.
12922 (mips_insert_point, mips_remove_point): Adjust to new interface.
12923 Use mips_supports_z_point_type.
12924 (the_low_target): Install mips_supports_z_point_type.
12925 * linux-ppc-low.c (the_low_target): Install NULL as
12926 supports_z_point_type method.
12927 * linux-s390-low.c (the_low_target): Install NULL as
12928 supports_z_point_type method.
12929 * linux-sparc-low.c (the_low_target): Install NULL as
12930 supports_z_point_type method.
12931 * linux-x86-low.c (x86_supports_z_point_type): New function.
12932 (x86_insert_point): Adjust to new insert_point interface. Use
12933 insert_memory_breakpoint. Adjust to new
12934 i386_low_insert_watchpoint interface.
12935 (x86_remove_point): Adjust to remove_point interface. Use
12936 remove_memory_breakpoint. Adjust to new
12937 i386_low_remove_watchpoint interface.
12938 (the_low_target): Install x86_supports_z_point_type.
12939 * lynx-low.c (lynx_target_ops): Install NULL as
12940 supports_z_point_type callback.
12941 * nto-low.c (nto_supports_z_point_type): New.
12942 (nto_insert_point, nto_remove_point): Adjust to new interface.
12943 (nto_target_ops): Install nto_supports_z_point_type.
12944 * mem-break.c: Adjust intro comment.
12945 (struct raw_breakpoint) <raw_type, size>: New fields.
12946 <inserted>: Update comment.
12947 <shlib_disabled>: Delete field.
12948 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12949 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12950 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12951 (raw_bkpt_type_to_target_hw_bp_type): New function.
12952 (find_enabled_raw_code_breakpoint_at): New function.
12953 (find_raw_breakpoint_at): New type and size parameters. Use them.
12954 (insert_memory_breakpoint): New function, based off
12955 set_raw_breakpoint_at.
12956 (remove_memory_breakpoint): New function.
12957 (set_raw_breakpoint_at): Reimplement.
12958 (set_breakpoint): New, based on set_breakpoint_at.
12959 (set_breakpoint_at): Reimplement.
12960 (delete_raw_breakpoint): Go through the_target->remove_point
12961 instead of assuming memory breakpoints.
12962 (find_gdb_breakpoint_at): Delete.
12963 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12964 (find_gdb_breakpoint): New function.
12965 (set_gdb_breakpoint_at): Delete.
12966 (z_type_supported): New function.
12967 (set_gdb_breakpoint_1): New function, loosely based off
12968 set_gdb_breakpoint_at.
12969 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12970 (delete_gdb_breakpoint_at): Delete.
12971 (delete_gdb_breakpoint_1): New function, loosely based off
12972 delete_gdb_breakpoint_at.
12973 (delete_gdb_breakpoint): New function.
12974 (clear_gdb_breakpoint_conditions): Rename to ...
12975 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12976 breakpoint.
12977 (add_condition_to_breakpoint): Make static.
12978 (add_breakpoint_condition): Take a struct breakpoint pointer
12979 instead of an address. Adjust.
12980 (gdb_condition_true_at_breakpoint): Rename to ...
12981 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12982 z_type parameter.
12983 (gdb_condition_true_at_breakpoint): Reimplement.
12984 (add_breakpoint_commands): Take a struct breakpoint pointer
12985 instead of an address. Adjust.
12986 (gdb_no_commands_at_breakpoint): Rename to ...
12987 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12988 parameter. Return true if no breakpoint was found. Change debug
12989 output.
12990 (gdb_no_commands_at_breakpoint): Reimplement.
12991 (run_breakpoint_commands): Rename to ...
12992 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12993 and change return type to boolean.
12994 (run_breakpoint_commands): New function.
12995 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12996 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12997 breakpoint. Go through the_target->remove_point instead of
12998 assuming memory breakpoint.
12999 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13000 software and hardware breakpoints.
13001 (reinsert_raw_breakpoint): Go through the_target->insert_point
13002 instead of assuming memory breakpoint.
13003 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13004 software and hardware breakpoints.
13005 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13006 Check both software and hardware breakpoints.
13007 (validate_inserted_breakpoint): Assert the breakpoint is a
13008 software breakpoint. Set the inserted flag to -1 instead of
13009 setting shlib_disabled.
13010 (delete_disabled_breakpoints): Adjust.
13011 (validate_breakpoints): Only validate software breakpoints.
13012 Adjust to inserted flag change.
13013 (check_mem_read, check_mem_write): Skip breakpoint types other
13014 than software breakpoints. Adjust to inserted flag change.
13015 * mem-break.h (enum raw_bkpt_type): New enum.
13016 (raw_breakpoint, struct process_info): Forward declare.
13017 (Z_packet_to_target_hw_bp_type): Delete declaration.
13018 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13019 (set_gdb_breakpoint, delete_gdb_breakpoint)
13020 (clear_breakpoint_conditions): New declarations.
13021 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13022 (breakpoint_inserted_here): Update comment.
13023 (add_breakpoint_condition, add_breakpoint_commands): Replace
13024 address parameter with a breakpoint pointer parameter.
13025 (gdb_breakpoint_here): Update comment.
13026 (delete_gdb_breakpoint_at): Delete.
13027 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13028 * server.c (process_point_options): Take a struct breakpoint
13029 pointer instead of an address. Adjust.
13030 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13031 delete_gdb_breakpoint.
13032 * spu-low.c (spu_target_ops): Install NULL as
13033 supports_z_point_type method.
13034 * target.h: Include mem-break.h.
13035 (struct target_ops) <prepare_to_access_memory>: Update comment.
13036 <supports_z_point_type>: New field.
13037 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13038 instead of a char. Also take a raw breakpoint pointer.
13039 * win32-arm-low.c (the_low_target): Install NULL as
13040 supports_z_point_type.
13041 * win32-i386-low.c (i386_supports_z_point_type): New function.
13042 (i386_insert_point, i386_remove_point): Adjust to new interface.
13043 (the_low_target): Install i386_supports_z_point_type.
13044 * win32-low.c (win32_supports_z_point_type): New function.
13045 (win32_insert_point, win32_remove_point): Adjust to new interface.
13046 (win32_target_ops): Install win32_supports_z_point_type.
13047 * win32-low.h (struct win32_target_ops):
13048 <supports_z_point_type>: New method.
13049 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13050 instead of a char. Also take a raw breakpoint pointer.
13051
932539e3
PA
130522014-05-20 Pedro Alves <palves@redhat.com>
13053
13054 * mem-break.h: Include break-common.h.
13055 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13056 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13057 (Z_packet_to_target_hw_bp_type): New declaration.
13058 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13059 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13060 (Z_PACKET_ACCESS_WP): Delete macros.
13061 (Z_packet_to_hw_type): Delete function.
13062 * i386-low.h: Don't include break-common.h here.
13063 (Z_packet_to_hw_type): Delete declaration.
13064 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13065 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13066 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13067 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13068 * linux-aarch64-low.c: Don't include break-common.h here.
13069 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13070 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13071 (Z_packet_to_target_hw_bp_type): Delete function.
13072 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13073 function.
13074 (mips_insert_point, mips_remove_point): Use
13075 Z_packet_to_target_hw_bp_type.
13076
4ff0d3d8
PA
130772014-05-20 Pedro Alves <palves@redhat.com>
13078
13079 * linux-aarch64-low.c: Include break-common.h.
13080 (enum target_point_type): Delete.
13081 (Z_packet_to_point_type): Rename to ...
13082 (Z_packet_to_target_hw_bp_type): ... this, and return a
13083 target_hw_bp_type instead.
13084 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13085 instead of an enum target_point_type.
13086 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13087 breakpoint type.
13088 (aarch64_dr_state_insert_one_point)
13089 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13090 (aarch64_handle_aligned_watchpoint)
13091 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13092 Take an enum target_hw_bp_type instead of an enum
13093 target_point_type.
13094 (aarch64_supports_z_point_type): New function.
13095 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13096 use Z_packet_to_target_hw_bp_type.
13097
786dc519
JB
130982014-05-20 Joel Brobecker <brobecker@adacore.com>
13099
13100 * configure.ac: Only use -Werror by default when DEVELOPMENT
13101 is true.
13102 * configure: Regenerate.
13103
9e0aa64f
JK
131042014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13105
13106 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13107 * linux-x86-low.c (X86_64_USER_REGS): New.
13108 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13109
2b577b92
YQ
131102014-04-28 Yao Qi <yao@codesourcery.com>
13111
13112 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13113 name.
13114
94611da2
PA
131152014-04-25 Pedro Alves <palves@redhat.com>
13116
13117 PR server/16255
13118 * linux-low.c (linux_attach_fail_reason_string): New function.
13119 (linux_attach_lwp): Delete.
13120 (linux_attach_lwp_1): Rename to ...
13121 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13122 argument. Remove "initial" parameter. Return int instead of
13123 void. Don't error or warn here.
13124 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13125 failure to attach to the tgid. Call warning when failing to
13126 attach to an lwp.
13127 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13128 argument. Remove "initial" parameter. Return int instead of
13129 void. Don't error or warn here.
13130 (linux_attach_fail_reason_string): New declaration.
13131 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13132 interface change. Use linux_attach_fail_reason_string.
13133
01f9f808
MS
131342014-04-24 Michael Sturm <michael.sturm@mintel.com>
13135 Walfred Tedeschi <walfred.tedeschi@intel.com>
13136
13137 * Makefile.in: Added rules to handle new files
13138 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13139 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13140 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13141 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13142 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13143 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13144 x32-avx512-linux.o.
13145 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13146 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13147 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13148 i386/x32-avx512.xml.
13149 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13150 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13151 i386/x32-avx512-linux.xml.
13152 * i387-fp.c (num_avx512_k_registers): New constant for number
13153 of K registers.
13154 (num_avx512_zmmh_low_registers): New constant for number of
13155 lower ZMM registers (0-15).
13156 (num_avx512_zmmh_high_registers): New constant for number of
13157 higher ZMM registers (16-31).
13158 (num_avx512_ymmh_registers): New contant for number of higher
13159 YMM registers (ymm16-31 added by avx521 on x86_64).
13160 (num_avx512_xmm_registers): New constant for number of higher
13161 XMM registers (xmm16-31 added by AVX512 on x86_64).
13162 (struct i387_xsave): Add space for AVX512 registers.
13163 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13164 Add code to handle AVX512 registers.
13165 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13166 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13167 prototypei from generated file.
13168 (tdesc_amd64_avx512_linux): Likewise.
13169 (init_registers_x32_avx512_linux): Likewise.
13170 (tdesc_x32_avx512_linux): Likewise.
13171 (init_registers_i386_avx512_linux): Likewise.
13172 (tdesc_i386_avx512_linux): Likewise.
13173 (x86_64_regmap): Add AVX512 registers.
13174 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13175 mask.
13176 (initialize_low_arch): Add code to initialize AVX512 registers.
13177
51aa91f9
PA
131782014-04-23 Pedro Alves <palves@redhat.com>
13179
13180 * mem-break.c (find_gdb_breakpoint_at): Make static.
13181 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13182
a4165e94
PA
131832014-04-23 Pedro Alves <palves@redhat.com>
13184
13185 * i386-low.c: Don't include break-common.h here.
13186 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13187 prototype to take target_hw_bp_type as argument instead of a Z
13188 packet char.
13189 * i386-low.h: Include break-common.h here.
13190 (Z_packet_to_hw_type): Declare.
13191 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13192 prototypes.
13193 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13194 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13195 (x86_remove_point): Convert the packet number to a
13196 target_hw_bp_type before calling i386_low_remove_watchpoint.
13197 * win32-i386-low.c (i386_insert_point): Convert the packet number
13198 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13199 (i386_remove_point): Convert the packet number to a
13200 target_hw_bp_type before calling i386_low_remove_watchpoint.
13201
b8acf843
PA
132022014-04-23 Pedro Alves <palves@redhat.com>
13203
13204 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13205
d708bcd1
PA
132062014-04-10 Pedro Alves <palves@redhat.com>
13207
13208 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13209 Check if the condition or command is NULL before checking if the
13210 breakpoint is known. On success, return true.
13211 * mem-break.h (add_breakpoint_condition): Document return.
13212 (add_breakpoint_commands): Add describing comment.
13213 * server.c (skip_to_semicolon): New function.
13214 (process_point_options): Use it.
13215
2eec7d5b
PA
132162014-04-09 Pedro Alves <palves@redhat.com>
13217
13218 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13219 to lwpid_of.
13220
fa96cb38
PA
132212014-02-27 Pedro Alves <palves@redhat.com>
13222
13223 PR 12702
13224 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13225 macros.
13226 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13227 output.
13228 (last_thread_of_process_p): Take a PID argument instead of a
13229 thread pointer.
13230 (linux_wait_for_lwp): Delete.
13231 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13232 functions.
13233 (linux_low_filter_event): New function, party factored out from
13234 linux_wait_for_event.
13235 (linux_wait_for_event): Rename to ...
13236 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13237 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13238 sigsuspend. Check for zombie leaders.
13239 (linux_wait_for_event): Reimplement as wrapper around
13240 linux_wait_for_event_filtered.
13241 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13242 a normal or signal exit is seen, it's the whole process exiting.
13243 (wait_for_sigstop): No longer a for_each_inferior callback.
13244 Rewrite on top of linux_wait_for_event_filtered.
13245 (stop_all_lwps): Call wait_for_sigstop directly.
13246 * server.c (resume, handle_target_event): Handle
13247 TARGET_WAITKIND_NO_RESUMED.
13248
d763de10
JB
132492014-02-26 Joel Brobecker <brobecker@adacore.com>
13250
13251 * win32-low.c (psapi_get_dll_name,
13252 * win32_CreateToolhelp32Snapshot): Delete.
13253 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13254 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13255 Delete.
13256 (handle_load_dll): Add function description.
13257 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13258
850a0f76
JB
132592014-02-26 Joel Brobecker <brobecker@adacore.com>
13260
13261 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13262 Add comment.
13263 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13264 base address when calling win32_add_one_solib.
13265 (handle_load_dll): Delete local variable load_addr.
13266 Remove 0x1000 offset applied to DLL base address when calling
13267 win32_add_one_solib.
13268 (handle_unload_dll): Add comment.
13269
f25b3fc3
JB
132702014-02-26 Joel Brobecker <brobecker@adacore.com>
13271
13272 * win32-low.c (win32_add_all_dlls): Renames
13273 win32_ensure_ntdll_loaded. Rewrite function documentation.
13274 Adjust implementation to always load all DLLs.
13275 Add 0x1000 offset to DLL base address when calling
13276 win32_add_one_solib.
13277 (child_initialization_done): New static global.
13278 (do_initial_child_stuff): Set child_initialization_done to
13279 zero during child initialization, and 1 after. Replace call
13280 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13281 Add comment.
13282 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13283 (handle_unload_dll): Add function documentation.
13284 (get_child_debug_event): Ignore load and unload DLL events
13285 during child initialization.
13286
d86d4aaf
DE
132872014-02-20 Doug Evans <dje@google.com>
13288
3bc32da3 13289 Remove global all_lwps.
d86d4aaf
DE
13290 * inferiors.h (ptid_of): Move here from linux-low.h.
13291 (pid_of, lwpid_of): Ditto.
13292 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13293 parameter is a struct thread_info * now.
13294 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13295 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13296 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13297 directly.
13298 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13299 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13300 * linux-arm-low.c (update_registers_callback): Update, "entry"
13301 parameter is a struct thread_info * now.
13302 Fetch lwpid from current_inferior directly.
13303 (arm_insert_point): Pass &all_threads to find_inferior instead of
13304 &all_lwps.
13305 (arm_remove_point): Ditto.
13306 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13307 (arm_prepare_to_resume): Fetch pid from thread.
13308 (arm_read_description): Fetch lwpid from current_inferior directly.
13309 * linux-low.c (all_lwps): Delete.
13310 (delete_lwp): Delete call to remove_inferior.
13311 (handle_extended_wait): Fetch lwpid from thread.
13312 (add_lwp): Don't set lwp->entry.id. Remove call to
13313 add_inferior_to_list.
13314 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13315 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13316 (kill_one_lwp_callback): Ditto.
13317 (linux_kill): Don't dereference NULL pointer.
13318 Fetch ptid,lwpid from thread.
13319 (get_detach_signal): Fetch ptid from thread.
13320 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13321 Simplify call to regcache_invalidate_thread.
13322 (delete_lwp_callback): Update, "entry" parameter is a
13323 struct thread_info * now. Fetch pid from thread.
13324 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13325 (status_pending_p_callback): Update, "entry" parameter is a
13326 struct thread_info * now. Fetch ptid from thread.
13327 (find_lwp_pid): Update, "entry" parameter is a
13328 struct thread_info * now.
13329 (linux_wait_for_lwp): Fetch pid from thread.
13330 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13331 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13332 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13333 (dequeue_one_deferred_signal): Ditto.
13334 (cancel_breakpoint): Fetch ptid from current_inferior.
13335 (linux_wait_for_event): Pass &all_threads to find_inferior,
13336 not &all_lwps. Fetch ptid, lwpid from thread.
13337 (count_events_callback): Update, "entry" parameter is a
13338 struct thread_info * now.
13339 (select_singlestep_lwp_callback): Ditto.
13340 (select_event_lwp_callback): Ditto.
13341 (cancel_breakpoints_callback): Ditto.
13342 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13343 not &all_lwps.
13344 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13345 (unsuspend_one_lwp): Update, "entry" parameter is a
13346 struct thread_info * now.
13347 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13348 not &all_lwps.
13349 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13350 Fetch lwpid from thread, not lwp.
13351 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13352 Pass &all_threads to find_inferior, not &all_lwps.
13353 (send_sigstop): Fetch lwpid from thread, not lwp.
13354 (send_sigstop_callback): Update, "entry" parameter is a
13355 struct thread_info * now.
13356 (suspend_and_send_sigstop_callback): Ditto.
13357 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13358 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13359 struct thread_info * now.
13360 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13361 from thread, lwp.
13362 (lwp_running): Update, "entry" parameter is a
13363 struct thread_info * now.
13364 (stop_all_lwps): Fetch ptid from thread.
13365 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13366 (linux_resume_one_lwp): Fetch lwpid from thread.
13367 (linux_set_resume_request): Update, "entry" parameter is a
13368 struct thread_info * now. Fetch pid, lwpid from thread.
13369 (resume_status_pending_p): Update, "entry" parameter is a
13370 struct thread_info * now.
13371 (need_step_over_p): Ditto. Fetch lwpid from thread.
13372 (start_step_over): Fetch lwpid from thread.
13373 (linux_resume_one_thread): Update, "entry" parameter is a
13374 struct thread_info * now. Fetch lwpid from thread.
13375 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13376 (proceed_one_lwp): Update, "entry" parameter is a
13377 struct thread_info * now. Fetch lwpid from thread.
13378 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13379 struct thread_info * now.
13380 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13381 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13382 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13383 directly.
13384 (regsets_store_inferior_registers): Ditto.
13385 (fetch_register, store_register): Ditto.
13386 (linux_read_memory, linux_write_memory): Ditto.
13387 (linux_request_interrupt): Ditto.
13388 (linux_read_auxv): Ditto.
13389 (linux_xfer_siginfo): Ditto.
13390 (linux_qxfer_spu): Ditto.
13391 (linux_qxfer_libraries_svr4): Ditto.
13392 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13393 moved to inferiors.h.
13394 (get_lwp): Delete.
13395 (get_thread_lwp): Update.
13396 (struct lwp_info): Delete member "entry". Simplify comment for
13397 member "thread".
13398 (all_lwps): Delete.
13399 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13400 current_inferior directly.
13401 (update_watch_registers_callback): Update, "entry" parameter is a
13402 struct thread_info * now. Fetch pid from thread.
13403 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13404 (mips_insert_point): Fetch lwpid from current_inferior.
13405 Pass &all_threads to find_inferior, not &all_lwps.
13406 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13407 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13408 directly.
13409 (mips_stopped_data_address): Ditto.
13410 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13411 directly.
13412 * linux-tile-low.c (tile_arch_setup): Ditto.
13413 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13414 (update_debug_registers_callback): Update, "entry" parameter is a
13415 struct thread_info * now. Fetch pid from thread.
13416 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13417 Pass &all_threads to find_inferior, not &all_lwps.
13418 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13419 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13420 Pass &all_threads to find_inferior, not &all_lwps.
13421 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13422 (i386_dr_low_get_status): Ditto.
13423 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13424 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13425 (x86_linux_read_description): Ditto.
13426 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13427
3b8361aa
DE
134282014-02-20 Doug Evans <dje@google.com>
13429
13430 * inferiors.c (get_first_inferior): Fix buglet.
13431
f7667f0d
DE
134322014-02-19 Doug Evans <dje@google.com>
13433
13434 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13435 * inferiors.c (add_thread): Change result type to struct thread_info *.
13436 All callers updated.
13437 (add_lwp): Call add_thread here instead of in callers.
13438 All callers updated.
13439 * linux-low.h (get_lwp_thread): Rewrite.
13440 (struct lwp_info): New member "thread".
13441
b3312d80
DE
134422014-02-19 Doug Evans <dje@google.com>
13443
13444 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13445 All callers updated.
13446
ecc6f45c
DE
134472014-02-19 Doug Evans <dje@google.com>
13448
13449 * inferiors.c (add_thread): Fix whitespace.
13450
649ebbca
DE
134512014-02-19 Doug Evans <dje@google.com>
13452
13453 * dll.c (clear_dlls): Replace accessing list implemention details
13454 with API function.
13455 * gdbthread.h (get_first_thread): Declare.
13456 * inferiors.c (for_each_inferior_with_data): New function.
13457 (get_first_thread): New function.
13458 (find_thread_ptid): Simplify.
13459 (get_first_inferior): New function.
13460 (clear_list): Delete.
13461 (one_inferior_p): New function.
13462 (clear_inferior_list): New function.
13463 (clear_inferiors): Update.
13464 * inferiors.h (for_each_inferior_with_data): Declare.
13465 (clear_inferior_list): Declare.
13466 (one_inferior_p): Declare.
13467 (get_first_inferior): Declare.
13468 * linux-low.c (linux_wait_for_event): Replace accessing list
13469 implemention details with API function.
13470 * server.c (target_running): Ditto.
13471 (accumulate_file_name_length): New function.
13472 (emit_dll_description): New function.
13473 (handle_qxfer_libraries): Replace accessing list implemention
13474 details with API function.
13475 (handle_qxfer_threads_worker): New function.
13476 (handle_qxfer_threads_proper): Replace accessing list implemention
13477 details with API function.
13478 (handle_query): Ditto.
13479 (visit_actioned_threads_callback_ftype): New typedef.
13480 (visit_actioned_threads_data): New struct.
13481 (visit_actioned_threads): Rewrite to be find_inferior callback.
13482 (resume): Call find_inferior.
13483 (handle_status): Replace accessing list implemention
13484 details with API function.
13485 (process_serial_event): Replace accessing list implemention details
13486 with API function.
13487 * target.c (set_desired_inferior): Replace accessing list implemention
13488 details with API function.
13489 * tracepoint.c (same_process_p): New function.
13490 (gdb_agent_about_to_close): Replace accessing list implemention
13491 details with API function.
13492 * win32-low.c (child_delete_thread): Replace accessing list
13493 implemention details with API function.
13494 (match_dll_by_basename): New function.
13495 (dll_is_loaded_by_basename): New function.
13496 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13497 details call to dll_is_loaded_by_basename.
13498
80894984
DE
134992014-02-19 Doug Evans <dje@google.com>
13500
13501 * dll.h (struct dll_info): Add comment.
13502 * gdbthread.h (struct thread_info): Add comment.
13503 (current_ptid): Simplify.
13504 * inferiors.c (add_process): Update.
13505 (remove_process): Update.
13506 * inferiors.h (struct process_info): Rename member "head" to "entry".
13507 * linux-low.c (delete_lwp): Update.
13508 (add_lwp): Update.
13509 (last_thread_of_process_p): Update.
13510 (kill_one_lwp_callback, linux_kill): Update.
13511 (status_pending_p_callback): Update.
13512 (wait_for_sigstop): Update. Simplify read of ptid.
13513 (start_step_over): Update.
13514 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13515 (get_lwp_thread): Update.
13516 (struct lwp_info): Rename member "head" to "entry".
13517 * regcache.h (inferior_list_entry): Delete.
13518 * server.c (kill_inferior_callback): Update.
13519 (detach_or_kill_inferior_callback): Update.
13520 (print_started_pid): Update.
13521 (print_attached_pid): Update.
13522 (process_serial_event): Simplify read of ptid.
13523 * thread-db.c (thread_db_create_event): Update.
13524 (thread_db_get_tls_address): Update.
13525 * win32-low.c (current_inferior_ptid): Simplify.
13526
46917d26
TT
135272014-02-19 Tom Tromey <tromey@redhat.com>
13528
13529 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13530 argument.
13531 (target_supports_btrace): Update.
13532
0759a81e
YQ
135332014-02-14 Yao Qi <yao@codesourcery.com>
13534
13535 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13536 (rsp-low-ipa.o): New target.
13537
a7191e8b
TT
135382014-02-12 Tom Tromey <tromey@redhat.com>
13539
13540 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13541 convert_ascii_to_int.
13542 * regcache.c (registers_to_string): Likewise.
13543 * remote-utils.c (decode_M_packet): Likewise.
13544 * server.c (process_serial_event): Likewise.
13545
ff0e980e
TT
135462014-02-12 Tom Tromey <tromey@redhat.com>
13547
13548 * server.c (handle_query, handle_v_run): Use hex2bin, not
13549 unhexify.
13550 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13551
e9371aff
TT
135522014-02-12 Tom Tromey <tromey@redhat.com>
13553
13554 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13555 convert_int_to_ascii.
13556 * regcache.c (registers_to_string, collect_register_as_string):
13557 Likewise.
13558 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13559 Likewise.
13560 * server.c (process_serial_event): Likewise.
13561 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13562 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13563
971dc0b8
TT
135642014-02-12 Tom Tromey <tromey@redhat.com>
13565
13566 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13567 bin2hex, not hexify.
13568 * tracepoint.c (cmd_qtstatus): Likewise.
13569
0a822afb
TT
135702014-02-12 Tom Tromey <tromey@redhat.com>
13571
13572 * remote-utils.c (monitor_output): Pass explicit length to
13573 hexify.
13574
9c3d6531
TT
135752014-02-12 Tom Tromey <tromey@redhat.com>
13576
13577 * tracepoint.c: Include rsp-low.h.
13578 * server.c: Include rsp-low.h.
13579 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13580 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13581 declare.
13582 * remote-utils.c: Include rsp-low.h.
13583 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13584 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13585 (convert_int_to_ascii, convert_ascii_to_int): Move to
13586 common/rsp-low.c.
13587 * regcache.c: Include rsp-low.h.
13588 * ax.c: Include rsp-low.h.
13589 * Makefile.in (SFILES): Add common/rsp-low.c.
13590 (OBS): Add rsp-low.o.
13591 (rsp-low.o): New target.
13592
01fd3ea5
TT
135932014-02-12 Tom Tromey <tromey@redhat.com>
13594
13595 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13596 Include print-utils.h.
13597 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13598 (plongest, thirty_two, phex_nz): Remove.
13599 * Makefile.in (SFILES): Add common/print-utils.c.
13600 (OBS): Add print-utils.o.
13601 (print-utils-ipa.o): New target.
13602 (print-utils.o): New target.
13603 (IPA_OBJS): Add print-utils-ipa.o.
13604
e99dc820
TT
136052014-02-06 Tom Tromey <tromey@redhat.com>
13606
13607 * Makefile.in (SFILES): Fix indentation.
13608
ee1e2d4f
DE
136092014-02-05 Doug Evans <dje@google.com>
13610
13611 * linux-low.c (linux_wait_for_event): Improve comment.
13612 (linux_wait_1): Keep current_inferior in sync with event_child.
13613
f5a02773
DE
136142014-01-22 Doug Evans <dje@google.com>
13615
13616 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13617
87ce2a04
DE
136182014-01-22 Doug Evans <dje@google.com>
13619
13620 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13621 * configure: Regenerate.
13622 * config.in: Regenerate.
13623 * Makefile.in (SFILES): Add debug.c.
13624 (OBS): Add debug.o.
13625 * debug.c: New file.
13626 * debug.h: New file.
13627 * linux-aarch64-low.c (*): Update all debugging printfs to use
13628 debug_printf instead of fprintf.
13629 * linux-arm-low.c (*): Ditto.
13630 * linux-cris-low.c (*): Ditto.
13631 * linux-crisv32-low.c (*): Ditto.
13632 * linux-m32r-low.c (*): Ditto.
13633 * linux-sparc-low.c (*): Ditto.
13634 * linux-x86.c (*): Ditto.
13635 * linux-low.c (*): Ditto.
13636 (linux_wait_1): Add calls to debug_enter, debug_exit.
13637 (linux_wait): Remove redundant debugging printf.
13638 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13639 (linux_resume, unstop_all_lwps): Ditto.
13640 * mem-break.c (*): Update all debugging printfs to use
13641 debug_printf instead of fprintf.
13642 * remote-utils.c (*): Ditto.
13643 * thread-db.c (*): Ditto.
13644 * server.c #include <ctype.h>, "gdb_vecs.h".
13645 (debug_threads): Moved to debug.c.
13646 (*): Update all debugging printfs to use debug_printf instead of
13647 fprintf.
13648 (start_inferior): Replace call to fflush with call to debug_flush.
13649 (monitor_show_help): Mention set debug-format.
13650 (parse_debug_format_options): New function.
13651 (handle_monitor_command): Handle "monitor set debug-format".
13652 (gdbserver_usage): Mention --debug-format.
13653 (main): Parse --debug-format.
13654 * server.h (debug_threads): Declaration moved to debug.h.
13655 #include "debug.h".
13656 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13657 trace_debug_1 that uses debug_printf.
13658 (tracepoint_look_up_symbols): Update all debugging printfs to use
13659 debug_printf instead of fprintf.
13660
e671835b
BS
136612014-01-20 Baruch Siach <baruch@tkos.co.il>
13662
13663 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13664 sys/ptrace.h.
13665
b5737fa9
PA
136662014-01-17 Pedro Alves <palves@redhat.com>
13667
ea38d2a9 13668 PR build/16445
c7faa97a
PA
13669 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13670 defined after including gdb_proc_service.h.
b5737fa9 13671
40ed484e
DE
136722014-01-16 Doug Evans <dje@google.com>
13673
13674 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13675 (match_dll): Use it.
13676
969c39fb
MM
136772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13678
13679 * target.h (target_ops) <read_btrace>: Change parameters and
13680 return type to allow error reporting.
13681 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13682 trace reading errors on.
13683 * linux-low.c (linux_low_read_btrace): Pass trace reading
13684 errors on.
13685 (linux_low_disable_btrace): New.
13686
ab7f45ba
DE
136872014-01-15 Doug Evans <dje@google.com>
13688
13689 * inferiors.c (thread_id_to_gdb_id): Delete.
13690 * inferiors.h (thread_id_to_gdb_id): Delete.
13691
66af0f44
EZ
136922014-01-13 Eli Zaretskii <eliz@gnu.org>
13693
13694 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13695 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13696 versions.
13697
9939e131
PA
136982014-01-08 Pedro Alves <palves@redhat.com>
13699
13700 * server.c (handle_status): Don't discard previous queued stop
13701 replies or thread's pending status here.
13702 (main) <disconnection>: Do it here instead.
13703
b7ea362b
PA
137042014-01-08 Pedro Alves <palves@redhat.com>
13705
13706 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13707 * server.c (visit_actioned_threads, handle_pending_status): New
13708 function.
13709 (handle_v_cont): Factor out parts to ...
13710 (resume): ... this new function. If in all-stop, and a thread
13711 being resumed has a pending status, report it without actually
13712 resuming.
13713 (myresume): Adjust to use the new 'resume' function.
13714 (clear_pending_status_callback, set_pending_status_callback)
13715 (find_status_pending_thread_callback): New functions.
13716 (handle_status): Handle the case of multiple threads having
13717 interesting statuses to report. Report threads' real last signal
13718 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13719 with an interesting thread to report the status for, instead of
13720 always reporting the status of the first thread.
13721
28498c42
JB
137222014-01-01 Joel Brobecker <brobecker@adacore.com>
13723
13724 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13725 * gdbreplay.c (gdbreplay_version): Likewise.
13726
f45c82da
YZ
137272013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13728
13729 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13730 iov.iov_len with the real length in use.
13731
379a5e2d
JB
137322013-12-13 Joel Brobecker <brobecker@adacore.com>
13733
13734 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13735 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13736 for all targets that use win32-low.c.
13737 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13738 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13739
4210d83e
PA
137402013-12-13 Pedro Alves <palves@redhat.com>
13741
13742 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13743 if equal to TARGET_WAITKIND_LOADED.
13744 * win32-low.c (cached_status): New static global.
13745 (win32_wait): Add declaration.
13746 (do_initial_child_stuff): Flush all initial pending debug events
13747 up to the initial breakpoint.
13748 (win32_wait): If CACHED_STATUS was set, return that instead
13749 of doing a real wait. Remove the code resuming the execution
13750 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13751 during the initial phase. Also remove the code changing
13752 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13753 TARGET_WAITKIND_STOPPED.
13754
e7f0d979
YQ
137552013-12-11 Yao Qi <yao@codesourcery.com>
13756
13757 * notif.c (handle_notif_ack): Return 0 if no notification
13758 matches.
13759
ebcf782c
DE
137602013-11-20 Doug Evans <dje@google.com>
13761
13762 * linux-low.c (linux_set_resume_request): Fix comment.
13763
20ad9378
DE
137642013-11-20 Doug Evans <dje@google.com>
13765
13766 * linux-low.c (resume_status_pending_p): Tweak comment.
13767
a196ebeb
WT
137682013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13769
13770 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13771 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13772 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13773 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13774 (srv_amd64_regobj): Add amd64-mpx.o.
13775 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13776 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13777 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13778 * i387-fp.c (num_pl_bnd_register) Added constant.
13779 (num_pl_bnd_cfg_registers) Added constant.
13780 (struct i387_xsave) Added reserved area and MPX fields.
13781 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13782 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13783 function.
13784 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13785 (init_registers_amd64_mpx_linux): Declare new function.
13786 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13787 (x86_64_regmap): Add MPX registers.
13788 (x86_linux_read_description): Add MPX case.
13789 (initialize_low_arch): Initialize MPX targets.
13790
0080a2f6
TT
137912013-11-18 Tom Tromey <tromey@redhat.com>
13792
13793 * configure: Rebuild.
13794 * configure.ac: Don't check for stdlib.h.
13795 * gdbreplay.c: Unconditionally include stdlib.h.
13796
2978b111
TT
137972013-11-18 Tom Tromey <tromey@redhat.com>
13798
13799 * config.in: Rebuild.
13800 * configure: Rebuild.
13801 * configure.ac: Don't use AC_HEADER_DIRENT.
13802
a3d08894
TT
138032013-11-18 Tom Tromey <tromey@redhat.com>
13804
13805 * server.h: Don't check HAVE_STRING_H.
13806 * gdbreplay.c: Don't check HAVE_STRING_H.
13807 * configure: Rebuild.
13808
0a5dd17d
TT
138092013-11-18 Tom Tromey <tromey@redhat.com>
13810
13811 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13812 LIBGNU.
13813
1bd2f0ba
TT
138142013-11-08 Tom Tromey <tromey@redhat.com>
13815
13816 * configure, config.in: Rebuild.
13817 * configure.ac: Remove unused configury.
13818
3266f10b
TT
138192013-11-08 Tom Tromey <tromey@redhat.com>
13820
13821 * acinclude.m4: Include common.m4, codeset.m4.
13822 * configure, config.in: Rebuild.
13823 * configure.ac: Use GDB_AC_COMMON.
13824
6682d959
AA
138252013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13826
13827 * linux-s390-low.c (HWCAP_S390_TE): New define.
13828 (s390_arch_setup): Consider the TE field in the HWCAP for
13829 determining 'have_regset_tdb'.
13830
fd0a4d76
SDJ
138312013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13832
13833 PR gdb/16014
13834 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13835 call to sizeof.
13836
1a3d890b
PA
138372013-10-02 Pedro Alves <palves@redhat.com>
13838
13839 * server.c (process_serial_event): Don't output "GDBserver
13840 exiting" if GDB is connected through stdio.
13841 * target.c (mywait): Likewise, be silent if GDB is connected
13842 through stdio.
13843
97ad4581
JB
138442013-10-01 Joel Brobecker <brobecker@adacore.com>
13845
13846 * lynx-low.c (lynx_add_threads_after_attach): New function.
13847 (lynx_attach): Remove call to add_thread. Add call to
13848 lynx_add_threads_after_attach instead.
13849
5b4e221c
MF
138502013-09-28 Mike Frysinger <vapier@gentoo.org>
13851
13852 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13853 * config.in, configure: Regenerated.
13854
ee47b2f8
YQ
138552013-09-18 Yao Qi <yao@codesourcery.com>
13856
13857 PR server/15959
13858 * server.c (start_inferior): Clear 'resume_info'.
13859
d6707650 138602013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13861
d6707650
JW
13862 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13863 for each register.
13864
9243dd0e 138652013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13866
9243dd0e
JW
13867 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13868 linux-tile-low.o to srv_tgtobj.
13869
c623a6ef
WN
138702013-09-16 Will Newton <will.newton@linaro.org>
13871
13872 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13873 out regs.
13874
fb71d39e
PA
138752013-09-06 Pedro Alves <palves@redhat.com>
13876
13877 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13878 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13879 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13880 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13881 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13882 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13883
8e7e9910
PA
138842013-09-06 Pedro Alves <palves@redhat.com>
13885
13886 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13887 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13888
7c3a12ca
PA
138892013-09-06 Pedro Alves <palves@redhat.com>
13890
13891 * linux-amd64-ipa.c: Include tracepoint.h.
13892 * linux-i386-ipa.c: Include tracepoint.h.
13893
8eb3d7b6
RW
138942013-09-06 Ricard Wanderlof <ricardw@axis.com>
13895
13896 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13897 (ps_get_thread_area): New function.
13898
eddddb9d
RW
138992013-09-06 Ricard Wanderlof <ricardw@axis.com>
13900
13901 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13902 (initialize_low_arch): Call init_registers_crisv32 rather than
13903 init_register_crisv32.
13904
533b0600
PA
139052013-09-05 Pedro Alves <palves@redhat.com>
13906
13907 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13908 to ...
13909 * hostio.h: ... this new file.
13910 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13911 win32-low.c: Include hostio.h.
13912
0ce3d3b5
PA
139132013-09-05 Pedro Alves <palves@redhat.com>
13914
13915 * server.h (gdb_client_data, handler_func, callback_handler_func)
13916 (delete_file_handler, add_file_handler, append_callback_event)
13917 (delete_callback_event, start_event_loop, initialize_event_loop):
13918 Move to event-loop.h and include it.
13919 * event-loop.h: New file.
13920
799cdc37
PA
139212013-09-05 Pedro Alves <palves@redhat.com>
13922
13923 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13924 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13925 (loaded_dll, unloaded_dll): Move to ...
13926 * dll.h: ... this new file.
13927 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13928
6a6bbd9d
PA
139292013-09-05 Pedro Alves <palves@redhat.com>
13930
13931 * server.h (current_process, get_thread_process, all_processes)
13932 (add_inferior_to_list, for_each_inferior, current_inferior)
13933 (remove_inferior, add_process, remove_process, find_process_pid)
13934 (have_started_inferiors_p, have_attached_inferiors_p)
13935 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13936 (clear_inferiors, find_inferior, find_inferior_id)
13937 (inferior_target_data, set_inferior_target_data)
13938 (inferior_regcache_data, set_inferior_regcache_data): Move to
13939 inferiors.h, and include it.
13940 * inferiors.h: New file.
13941
f699aaba
PA
139422013-09-05 Pedro Alves <palves@redhat.com>
13943
13944 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13945 Move ...
72f4393d 13946 * ax.h: ... here.
f699aaba 13947
c144c7a0
PA
139482013-09-05 Pedro Alves <palves@redhat.com>
13949
13950 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13951 tracepoint.h.
13952 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13953 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13954 (handle_tracepoint_general_set, handle_tracepoint_query)
13955 (tracepoint_finished_step, tracepoint_was_hit)
13956 (release_while_stepping_state_list, current_traceframe)
13957 (in_readonly_region, traceframe_read_mem)
13958 (fetch_traceframe_registers, traceframe_read_sdata)
13959 (traceframe_read_info, struct fast_tpoint_collect_status)
13960 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13961 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13962 (supply_fast_tracepoint_registers)
13963 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13964 (ipa_tdesc, claim_trampoline_space)
13965 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13966 (agent_mem_read, agent_get_trace_state_variable_value)
13967 (agent_set_trace_state_variable_value, agent_tsv_read)
13968 (agent_mem_read_string, get_raw_reg_func_addr)
13969 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13970 * tracepoint.h: ... this new file.
13971
ff42e6ab
PA
139722013-09-05 Pedro Alves <palves@redhat.com>
13973
13974 * server.h (perror_with_name, error, fatal, warning, paddress)
13975 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13976 include it.
13977 * utils.h: New file.
13978
541af0f4
PA
139792013-09-05 Pedro Alves <palves@redhat.com>
13980
13981 * server.h (remote_debug, noack_mode, transport_is_reliable)
13982 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13983 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13984 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13985 (write_enn, initialize_async_io, enable_async_io)
13986 (disable_async_io, check_remote_input_interrupt_request)
13987 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13988 (dead_thread_notify, prepare_resume_reply)
13989 (decode_address_to_semicolon, decode_address, decode_m_packet)
13990 (decode_M_packet, decode_X_packet, decode_xfer_write)
13991 (decode_search_memory_packet, unhexify, hexify)
13992 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13993 (look_up_one_symbol, relocate_instruction)
13994 (monitor_output): Move to remote-utils.h, and include it.
13995 * remote-utils.h: New file.
13996
eebdf26b
PA
139972013-09-05 Pedro Alves <palves@redhat.com>
13998
13999 * server.h (_): Delete.
14000
3aafd2ff
PA
140012013-09-02 Pedro Alves <palves@redhat.com>
14002
14003 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14004 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14005 allocated.
14006 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14007
cee83bcb
PM
140082013-09-02 Pierre Muller <muller@sourceware.org>
14009
14010 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14011 or WriteProcessMemory complete successfully and handle
14012 ERROR_PARTIAL_COPY error.
14013
9a13b2fa
PA
140142013-09-02 Pedro Alves <palves@redhat.com>
14015
14016 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14017 error instead of EIO.
14018
602e3198
JK
140192013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14020
14021 PR server/15604
14022 * linux-low.c: Include filestuff.h.
14023 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14024 * lynx-low.c: Include filestuff.h.
14025 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14026 * server.c: Include filestuff.h.
14027 (main): Call notice_open_fds.
14028 * spu-low.c: Include filestuff.h.
14029 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14030
96d7229d
LM
140312013-08-22 Luis Machado <lgustavo@codesourcery.com>
14032
14033 * Makefile.in: Explain why ../target and ../nat are not
14034 listed as include file search paths.
14035 (linux-waitpid.o): New object file rule.
14036 * configure.srv (srv_native_linux_obj): New variable.
14037 Replace all occurrences of linux native object files with
14038 $srv_native_linux_obj.
14039 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14040 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14041 (linux_enable_event_reporting): Remove declaration.
14042 (my_waitpid): Moved to common/linux-waitpid.c.
14043 (linux_wait_for_event): Pass ptid when calling
14044 linux_enable_event_reporting.
14045 (linux_supports_tracefork_flag): Remove.
14046 (linux_enable_event_reporting): Likewise.
14047 (linux_tracefork_grandchild): Remove.
14048 (STACK_SIZE): Moved to common/linux-ptrace.c.
14049 (linux_tracefork_child): Remove.
14050 (linux_test_for_tracefork): Remove.
14051 (linux_look_up_symbols): Call linux_supports_traceclone.
14052 (initialize_low): Remove call to linux_test_for_tracefork.
14053 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14054 common/linux-ptrace.h.
14055 (PTRACE_TYPE_ARG4): Likewise.
14056 Include linux-ptrace.h.
14057
32940073
PA
140582013-08-21 Pedro Alves <palves@redhat.com>
14059
14060 * config.in: Renegerate.
14061
33b60d58 140622013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14063
33b60d58
LM
14064 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14065 (SFILES): Remove $(srcdir)/common/target-common.c and
14066 add $(srcdir)/target/waitstatus.c.
14067 (OBS): Remove target-common.o and add waitstatus.o.
14068 (server_h): Remove $(srcdir)/../common/target-common.h and
14069 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14070 and $(srcdir)/../target/waitstatus.h.
14071 (target-common.o): Remove.
14072 (waitstatus.o): New target object file.
14073 * target.h: Do not include target-common.h and
14074 include target/resume.h, target/wait.h and
14075 target/waitstatus.h.
14076
b8e1b30e
LM
140772013-08-13 Luis Machado <lgustavo@codesourcery.com>
14078
14079 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14080 to PTRACE_TYPE_ARG3.
14081 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14082 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14083 PTRACE_TYPE_ARG4.
14084 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14085 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14086
7a60ad40
YQ
140872013-07-27 Jie Zhang <jie@codesourcery.com>
14088 Daniel Jacobowitz <dan@codesourcery.com>
14089 Yao Qi <yao@codesourcery.com>
14090
14091 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14092 (mips-linux-watch.o): New rule.
14093 (mips_linux_watch_h): New variable.
14094 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14095 srv_tgtobj.
14096 * linux-mips-low.c: Include mips-linux-watch.h.
14097 (struct arch_process_info, struct arch_lwp_info): New.
14098 (update_watch_registers_callback): New function.
14099 (mips_linux_new_process, mips_linux_new_thread) New functions.
14100 (mips_linux_prepare_to_resume, mips_insert_point): New
14101 functions.
14102 (mips_remove_point, mips_stopped_by_watchpoint): New
14103 functions.
14104 (rsp_bp_type_to_target_hw_bp_type): New function.
14105 (mips_stopped_data_address): New function.
14106 (the_low_target): Add watchpoint support functions.
14107
de6f69ad
YQ
141082013-07-27 Yao Qi <yao@codesourcery.com>
14109
14110 * i386-low.c: Include break-common.h.
14111 (enum target_hw_bp_type): Remove.
14112
3360c0bf
LM
141132013-07-24 Luis Machado <lgustavo@codesourcery.com>
14114
14115 * Makefile.in (SFILES): /common/target-common.c.
14116 (OBS): Add target-common.o.
14117 (server_h): Add $(srcdir)/../common/target-common.h.
14118 (target-common.o): New target.
14119 * server.c (queue_stop_reply_callback): Free
14120 status string after use.
14121 * target.c (target_waitstatus_to_string): Remove.
14122 * target.h: Include target-common.h.
14123 (resume_kind): Likewise.
14124 (target_waitkind): Likewise.
14125 (target_waitstatus): Likewise.
14126 (TARGET_WNOHANG): Likewise.
14127
bd885420
YQ
141282013-07-04 Yao Qi <yao@codesourcery.com>
14129
14130 * Makefile.in (host_alias): Use @host_noncanonical@.
14131 (target_alias): Use @target_noncanonical@.
14132 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14133 ACX_NONCANONICAL_HOST.
14134 * configure: Regenerated.
14135
14136 Revert:
14137 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14138
14139 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14140 * configure: Rebuild.
14141 * Makefile.in (version_host, version_target): Get from configure.
14142 (version.c): Use $(version_host) and $(version_target).
14143
17ef446e
PA
141442013-07-03 Pedro Alves <palves@redhat.com>
14145
14146 * Makefile.in (config.status): Depend on development.sh.
14147 * acinclude.m4: Include libmcheck.m4.
14148 * configure: Regenerate.
14149
7a9a7487
MG
141502013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14151
14152 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14153 attribute inside the parentheses.
14154 (winapi_DebugSetProcessKillOnExit): Ditto.
14155 (winapi_DebugBreakProcess): Ditto.
14156 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14157
49b64de6
MG
141582013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14159
14160 * notif.h (notif_event): Add a dummy member to avoid compiler
14161 errors.
14162
d5749ee7
PA
141632013-07-01 Pedro Alves <palves@redhat.com>
14164
14165 * hostio.c (HOSTIO_PATH_MAX): Define.
14166 (require_filename, handle_open, handle_unlink, handle_readlink):
14167 Use it.
14168
d8d2a3ee
PA
141692013-07-01 Pedro Alves <palves@redhat.com>
14170
14171 * server.h: Include "pathmax.h".
14172 * linux-low.c: Don't include sys/param.h.
14173 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14174 MAXPATHLEN.
14175 * win32-low.c: Don't include sys/param.h.
14176 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14177
bc7dea8d
PA
141782013-07-01 Pedro Alves <palves@redhat.com>
14179
14180 * event-loop.c: Don't check HAVE_UNISTD_H before including
14181 <unistd.h>.
14182 * gdbreplay.c: Likewise.
14183 * remote-utils.c: Likewise.
14184 * server.c: Likewise.
14185 * configure.ac: Don't check for unistd.h.
14186 * configure: Regenerate.
14187
d6c2da54
TT
141882013-06-28 Tom Tromey <tromey@redhat.com>
14189
14190 * Makefile.in (version.c): Use version.in, not
14191 common/version.in.
14192
257b6bec
MG
141932013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14194
14195 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14196 * configure: Rebuild.
14197 * Makefile.in (version_host, version_target): Get from configure.
14198 (version.c): Use $(version_host) and $(version_target).
14199
86ebe149
DK
142002013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14201
14202 Fix trace-status to output user name without trailing colon.
14203 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14204
f30aa5af
DK
142052013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14206
14207 Fix trace-status to output proper start-time and stop-time.
14208 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14209 output start time and stop time in hex as gdb expects.
14210
28a93511
YQ
142112013-06-26 Pedro Alves <pedro@codesourcery.com>
14212
14213 * tracepoint.c (build_traceframe_info_xml): Output trace state
14214 variables present in the trace buffer.
14215
01208463
TT
142162013-06-24 Tom Tromey <tromey@redhat.com>
14217
14218 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14219 create-version.sh.
14220 (version.o): Remove.
14221 * gdbreplay.c: Include version.h.
14222 (version, host_name): Don't declare.
14223 * server.h: Include version.h.
14224 (version, host_name): Don't declare.
14225
760256f9
PA
142262013-06-12 Pedro Alves <palves@redhat.com>
14227
14228 * linux-x86-low.c (linux_is_elf64): Delete global.
14229 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14230 with local linux_pid_exe_is_elf_64_file use.
14231
030031ee
PA
142322013-06-11 Pedro Alves <palves@redhat.com>
14233
14234 * linux-low.c (regset_disabled, disable_regset): New functions.
14235 (regsets_fetch_inferior_registers)
14236 (regsets_store_inferior_registers): Use them.
14237 (initialize_regsets_info); Don't allocate the disabled_regsets
14238 array here.
14239 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14240 comment.
14241
5da6eb0a
PA
142422013-06-11 Pedro Alves <palves@redhat.com>
14243
14244 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14245 xmalloc.
14246
7e5aaa09
PA
142472013-06-11 Pedro Alves <palves@redhat.com>
14248
14249 * linux-x86-low.c (initialize_low_arch): Call
14250 init_registers_x32_avx_linux.
14251
d878444c
JK
142522013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14253
14254 Fix compatibility with Android Bionic.
14255 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14256 it is not empty.
14257
3aee8918
PA
142582013-06-07 Pedro Alves <palves@redhat.com>
14259
5f2b57b5 14260 PR server/14823
3aee8918
PA
14261 * Makefile.in (OBS): Add tdesc.o.
14262 (IPA_OBJS): Add tdesc-ipa.o.
14263 (tdesc-ipa.o): New rule.
14264 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14265 interface.
14266 * linux-low.c (new_inferior): Delete.
14267 (disabled_regsets, num_regsets): Delete.
14268 (linux_add_process): Adjust to set the new per-process
14269 new_inferior flag.
14270 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14271 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14272 was a stop. When calling arch_setup, switch the current inferior
14273 to the thread that got an event.
14274 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14275 (regsets_fetch_inferior_registers)
14276 (regsets_store_inferior_registers): New regsets_info parameter.
14277 Adjust to use it.
14278 (linux_register_in_regsets): New regs_info parameter. Adjust to
14279 use it.
14280 (register_addr, fetch_register, store_register): New usrregs_info
14281 parameter. Adjust to use it.
14282 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14283 parameter regs_info. Adjust to use it.
14284 (linux_fetch_registers): Get the current inferior's regs_info, and
14285 adjust to use it.
14286 (linux_store_registers): Ditto.
14287 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14288 (initialize_low): Don't initialize the target_regsets here. Call
14289 initialize_low_arch.
14290 * linux-low.h (target_regsets): Delete declaration.
14291 (struct regsets_info): New.
14292 (struct usrregs_info): New.
14293 (struct regs_info): New.
14294 (struct process_info_private) <new_inferior>: New field.
14295 (struct linux_target_ops): Delete the num_regs, regmap, and
14296 regset_bitmap fields. New field regs_info.
14297 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14298 * i387-fp.c (num_xmm_registers): Delete.
14299 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14300 calls to new interface.
14301 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14302 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14303 Infer the number of xmm registers from the regcache's target
14304 description.
14305 * i387-fp.h (num_xmm_registers): Delete.
14306 * inferiors.c (add_thread): Don't install the thread's regcache
14307 here.
14308 * proc-service.c (gregset_info): Fetch the current inferior's
14309 regs_info. Adjust to use it.
14310 * regcache.c: Include tdesc.h.
14311 (register_bytes, reg_defs, num_registers)
14312 (gdbserver_expedite_regs): Delete.
14313 (get_thread_regcache): If the thread doesn't have a regcache yet,
14314 create one, instead of aborting gdbserver.
14315 (regcache_invalidate_one): Rename to ...
14316 (regcache_invalidate_thread): ... this.
14317 (regcache_invalidate_one): New.
14318 (regcache_invalidate): Only invalidate registers of the current
14319 process.
14320 (init_register_cache): Add target_desc parameter, and use it.
14321 (new_register_cache): Ditto. Assert the target description has a
14322 non zero registers_size.
14323 (regcache_cpy): Add assertions. Adjust.
14324 (realloc_register_cache, set_register_cache): Delete.
14325 (registers_to_string, registers_from_string): Adjust.
14326 (find_register_by_name, find_regno, find_register_by_number)
14327 (register_cache_size): Add target_desc parameter, and use it.
14328 (free_register_cache_thread, free_register_cache_thread_one)
14329 (regcache_release, register_cache_size): New.
14330 (register_size): Add target_desc parameter, and use it.
14331 (register_data, supply_register, supply_register_zeroed)
14332 (supply_regblock, supply_register_by_name, collect_register)
14333 (collect_register_as_string, collect_register_by_name): Adjust.
14334 * regcache.h (struct target_desc): Forward declare.
14335 (struct regcache) <tdesc>: New field.
14336 (init_register_cache, new_register_cache): Add target_desc
14337 parameter.
14338 (regcache_invalidate_thread): Declare.
14339 (regcache_invalidate_one): Delete declaration.
14340 (regcache_release): Declare.
14341 (find_register_by_number, register_cache_size, register_size)
14342 (find_regno): Add target_desc parameter.
14343 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14344 declarations.
14345 * remote-utils.c: Include tdesc.h.
14346 (outreg, prepare_resume_reply): Adjust.
14347 * server.c: Include tdesc.h.
14348 (gdbserver_xmltarget): Delete declaration.
14349 (get_features_xml, process_serial_event): Adjust.
14350 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14351 declare.
14352 (struct process_info) <tdesc>: New field.
14353 (ipa_tdesc): Declare.
14354 * tdesc.c: New file.
14355 * tdesc.h: New file.
14356 * tracepoint.c: Include tdesc.h.
14357 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14358 (get_context_regcache): Adjust to pass ipa_tdesc down.
14359 (do_action_at_tracepoint): Adjust to get the register cache size
14360 from the context regcache's description.
14361 (traceframe_walk_blocks): Adjust to get the register cache size
14362 from the current trace frame's description.
14363 (traceframe_get_pc): Adjust to get current trace frame's
14364 description and pass it down.
14365 (gdb_collect): Adjust to get the register cache size from the
14366 IPA's description.
14367 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14368 (gdbserver_xmltarget): Delete.
14369 (initialize_low_tracepoint): Set the ipa's target description.
14370 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14371 (initialize_low_tracepoint): Set the ipa's target description.
14372 * linux-x86-low.c: Include tdesc.h.
14373 [__x86_64__] (is_64bit_tdesc): New.
14374 (ps_get_thread_area, x86_get_thread_area): Use it.
14375 (i386_cannot_store_register): Rename to ...
14376 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14377 (i386_cannot_fetch_register): Rename to ...
14378 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14379 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14380 to new interface.
14381 (target_regsets): Rename to ...
14382 (x86_regsets): ... this.
14383 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14384 interface.
14385 (x86_siginfo_fixup): Use is_64bit_tdesc.
14386 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14387 (tdesc_x32_avx_linux, tdesc_x32_linux)
14388 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14389 Declare.
14390 (x86_linux_update_xmltarget): Delete.
14391 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14392 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14393 (AMD64_LINUX_USER64_CS): New.
14394 (x86_linux_read_description): New, based on
14395 x86_linux_update_xmltarget.
14396 (same_process_callback): New.
14397 (x86_arch_setup_process_callback): New.
14398 (x86_linux_update_xmltarget): New.
14399 (x86_regsets_info): New.
14400 (amd64_linux_regs_info): New.
14401 (i386_linux_usrregs_info): New.
14402 (i386_linux_regs_info): New.
14403 (x86_linux_regs_info): New.
14404 (x86_arch_setup): Reimplement.
14405 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14406 (x86_emit_ops): Ditto.
14407 (the_low_target): Adjust. Install x86_linux_regs_info,
14408 x86_cannot_fetch_register, and x86_cannot_store_register.
14409 (initialize_low_arch): New.
14410 * linux-ia64-low.c (tdesc_ia64): Declare.
14411 (ia64_fetch_register): Adjust.
14412 (ia64_usrregs_info, regs_info): New globals.
14413 (ia64_regs_info): New function.
14414 (the_low_target): Adjust.
14415 (initialize_low_arch): New function.
14416 * linux-sparc-low.c (tdesc_sparc64): Declare.
14417 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14418 Adjust.
14419 (sparc_arch_setup): New function.
14420 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14421 (the_low_target): Adjust.
14422 (initialize_low_arch): New function.
14423 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14424 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14425 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14426 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14427 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14428 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14429 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14430 (tdesc_powerpc_isa205_vsx64l): Declare.
14431 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14432 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14433 (ppc_set_pc, ppc_get_hwcap): Adjust.
14434 (ppc_usrregs_info): Forward declare.
14435 (!__powerpc64__) ppc_regmap_adjusted: New global.
14436 (ppc_arch_setup): Adjust to the current process'es target
14437 description.
14438 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14439 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14440 (ppc_store_evrregset): Adjust.
14441 (target_regsets): Rename to ...
14442 (ppc_regsets): ... this, and make static.
14443 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14444 (ppc_regs_info): New function.
14445 (the_low_target): Adjust.
14446 (initialize_low_arch): New function.
14447 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14448 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14449 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14450 (tdesc_s390x_linux64v2): Declare.
14451 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14452 (s390_fill_gregset, s390_store_last_break): Adjust.
14453 (target_regsets): Rename to ...
14454 (s390_regsets): ... this, and make static.
14455 (s390_get_pc, s390_set_pc): Adjust.
14456 (s390_get_hwcap): New target_desc parameter, and use it.
14457 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14458 (s390_arch_setup): Adjust to set the current process'es target
14459 description. Don't adjust the regmap.
14460 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14461 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14462 (regs_info_3264): New globals.
14463 (s390_regs_info): New function.
14464 (the_low_target): Adjust.
14465 (initialize_low_arch): New function.
14466 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14467 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14468 [__mips64] (init_registers_mips_linux)
14469 (init_registers_mips_dsp_linux): Delete defines.
14470 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14471 (have_dsp): New global.
14472 (mips_read_description): New, based on mips_arch_setup.
14473 (mips_arch_setup): Reimplement.
14474 (get_usrregs_info): New function.
14475 (mips_cannot_fetch_register, mips_cannot_store_register)
14476 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14477 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14478 (target_regsets): Rename to ...
14479 (mips_regsets): ... this, and make static.
14480 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14481 (dsp_regs_info, regs_info): New globals.
14482 (mips_regs_info): New function.
14483 (the_low_target): Adjust.
14484 (initialize_low_arch): New function.
14485 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14486 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14487 Declare.
14488 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14489 (arm_read_description): New, with bits factored from
14490 arm_arch_setup.
14491 (arm_arch_setup): Reimplement.
14492 (target_regsets): Rename to ...
14493 (arm_regsets): ... this, and make static.
14494 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14495 (arm_regs_info): New function.
14496 (the_low_target): Adjust.
14497 (initialize_low_arch): New function.
14498 * linux-m68k-low.c (tdesc_m68k): Declare.
14499 (target_regsets): Rename to ...
14500 (m68k_regsets): ... this, and make static.
14501 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14502 (m68k_regs_info): New function.
14503 (m68k_arch_setup): New function.
14504 (the_low_target): Adjust.
14505 (initialize_low_arch): New function.
14506 * linux-sh-low.c (tdesc_sharch): Declare.
14507 (target_regsets): Rename to ...
14508 (sh_regsets): ... this, and make static.
14509 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14510 (sh_regs_info, sh_arch_setup): New functions.
14511 (the_low_target): Adjust.
14512 (initialize_low_arch): New function.
14513 * linux-bfin-low.c (tdesc_bfin): Declare.
14514 (bfin_arch_setup): New function.
14515 (bfin_usrregs_info, regs_info): New globals.
14516 (bfin_regs_info): New function.
14517 (the_low_target): Adjust.
14518 (initialize_low_arch): New function.
14519 * linux-cris-low.c (tdesc_cris): Declare.
14520 (cris_arch_setup): New function.
14521 (cris_usrregs_info, regs_info): New globals.
14522 (cris_regs_info): New function.
14523 (the_low_target): Adjust.
14524 (initialize_low_arch): New function.
14525 * linux-cris-low.c (tdesc_crisv32): Declare.
14526 (cris_arch_setup): New function.
14527 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14528 (cris_regs_info): New function.
14529 (the_low_target): Adjust.
14530 (initialize_low_arch): New function.
14531 * linux-m32r-low.c (tdesc_m32r): Declare.
14532 (m32r_arch_setup): New function.
14533 (m32r_usrregs_info, regs_info): New globals.
14534 (m32r_regs_info): Adjust.
14535 (initialize_low_arch): New function.
14536 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14537 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14538 (tic6x_usrregs_info): Forward declare.
14539 (tic6x_read_description): New function, based on ...
14540 (tic6x_arch_setup): ... this. Reimplement.
14541 (target_regsets): Rename to ...
14542 (tic6x_regsets): ... this, and make static.
14543 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14544 (tic6x_regs_info): New function.
14545 (the_low_target): Adjust.
14546 (initialize_low_arch): New function.
14547 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14548 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14549 (target_regsets): Rename to ...
14550 (xtensa_regsets): ... this, and make static.
14551 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14552 globals.
14553 (xtensa_arch_setup, xtensa_regs_info): New functions.
14554 (the_low_target): Adjust.
14555 (initialize_low_arch): New function.
14556 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14557 (nios2_arch_setup): Set the current process'es tdesc.
14558 (target_regsets): Rename to ...
14559 (nios2_regsets): ... this.
14560 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14561 (nios2_regs_info): New function.
14562 (the_low_target): Adjust.
14563 (initialize_low_arch): New function.
a261b8f5
PA
14564 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14565 (aarch64_arch_setup): Set the current process'es tdesc.
14566 (target_regsets): Rename to ...
14567 (aarch64_regsets): ... this.
14568 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14569 (aarch64_regs_info): New function.
14570 (the_low_target): Adjust.
14571 (initialize_low_arch): New function.
3aee8918
PA
14572 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14573 globals.
14574 (target_regsets): Rename to ...
14575 (tile_regsets): ... this.
14576 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14577 (tile_regs_info): New function.
14578 (tile_arch_setup): Set the current process'es tdesc.
14579 (the_low_target): Adjust.
14580 (initialize_low_arch): New function.
14581 * spu-low.c (tdesc_spu): Declare.
14582 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14583 * win32-arm-low.c (tdesc_arm): Declare.
14584 (arm_arch_setup): New function.
14585 (the_low_target): Install arm_arch_setup instead of
14586 init_registers_arm.
14587 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14588 (init_windows_x86): Rename to ...
14589 (i386_arch_setup): ... this. Set `win32_tdesc'.
14590 (the_low_target): Adjust.
14591 * win32-low.c (win32_tdesc): New global.
14592 (child_add_thread): Don't create the thread cache here.
14593 (do_initial_child_stuff): Set the new process'es tdesc.
14594 * win32-low.h (struct target_desc): Forward declare.
14595 (win32_tdesc): Declare.
14596 * lynx-i386-low.c (tdesc_i386): Declare global.
14597 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14598 * lynx-low.c (lynx_tdesc): New global.
14599 (lynx_add_process): Set the new process'es tdesc.
14600 * lynx-low.h (struct target_desc): Forward declare.
14601 (lynx_tdesc): Declare global.
14602 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14603 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14604 * nto-low.c (nto_tdesc): New global.
14605 (do_attach): Set the new process'es tdesc.
14606 * nto-low.h (struct target_desc): Forward declare.
14607 (nto_tdesc): Declare.
14608 * nto-x86-low.c (tdesc_i386): Declare.
14609 (nto_x86_arch_setup): Set `nto_tdesc'.
14610
b1fbec62
GB
146112013-06-04 Gary Benson <gbenson@redhat.com>
14612
14613 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14614 to qSupported response when appropriate.
14615 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14616 with nonzero-length annex.
14617 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14618 arguments supplied in annex.
14619
d1ec4ce7
DE
146202013-05-31 Doug Evans <dje@google.com>
14621
ac44adcb 14622 PR server/15594
d1ec4ce7
DE
14623 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14624 64 bits in 64-cross-32 environment.
14625
9b25f2d3
PA
146262013-05-28 Pedro Alves <palves@redhat.com>
14627
14628 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14629 (aarch64-without-fpu.c): Delete rule.
14630 * configure.srv (aarch64*-*-linux*): Remove references to
14631 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14632 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14633 declaration.
14634
6740dc9c
PA
146352013-05-24 Pedro Alves <palves@redhat.com>
14636
14637 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14638 instead of strchr/decode_address. Error if the range isn't split
14639 with a ','. Don't assume there's be a ':' in the action.
14640
c2d6af84
PA
146412013-05-23 Yao Qi <yao@codesourcery.com>
14642 Pedro Alves <palves@redhat.com>
14643
14644 * linux-low.c (lwp_in_step_range): New function.
14645 (linux_wait_1): If the thread was range stepping and stopped
14646 outside the stepping range, report the stop to GDB. Otherwise,
14647 continue stepping. Add range stepping debug output.
14648 (linux_set_resume_request): Copy the step range from the resume
14649 request to the lwp.
14650 (linux_supports_range_stepping): New.
14651 (linux_target_ops) <supports_range_stepping>: Set to
14652 linux_supports_range_stepping.
14653 * linux-low.h (struct linux_target_ops)
14654 <supports_range_stepping>: New field.
14655 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14656 * linux-x86-low.c (x86_supports_range_stepping): New.
14657 (the_low_target) <supports_range_stepping>: Set to
14658 x86_supports_range_stepping.
14659 * server.c (handle_v_cont): Handle 'r' action.
14660 (handle_v_requests): Append ";r" if the target supports range
14661 stepping.
14662 * target.h (struct thread_resume) <step_range_start,
14663 step_range_end>: New fields.
14664 (struct target_ops) <supports_range_stepping>:
14665 New field.
14666 (target_supports_range_stepping): New macro.
14667
58794e1a
JB
146682013-05-17 Joel Brobecker <brobecker@adacore.com>
14669
14670 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14671 confusion in comment.
14672
d631c5a7
JB
146732013-05-17 Joel Brobecker <brobecker@adacore.com>
14674
14675 * lynx-low.c (struct process_info_private): New type.
14676 (lynx_add_process): New function.
14677 (lynx_create_inferior, lynx_attach): Replace calls to
14678 add_process by calls to lynx_add_process.
14679 (lynx_resume): If PTID is null, then try using
14680 current_process()->private->last_wait_event_ptid.
14681 Add comments.
14682 (lynx_clear_inferiors): Delete. The contents of that function
14683 has been inlined in lynx_mourn;
14684 (lynx_wait_1): Save the ptid in the process's private data.
14685 (lynx_mourn): Free the process' private data. Replace call
14686 to lynx_clear_inferiors by call to clear_inferiors.
14687
96f7a20f
YQ
146882013-05-17 Yao Qi <yao@codesourcery.com>
14689
14690 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14691 the right place.
14692
db0dfaa0
LM
146932013-05-16 Luis Machado <lgustavo@codesourcery.com>
14694
14695 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14696 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14697 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14698 PT_TEXT_END_ADDR guards. Update comments.
14699 (linux_target_op) <read_offsets>: Conditionally define to
14700 linux_read_offsets if the target is UCLIBC and if it defines
14701 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14702
68f5f838
SL
147032013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14704 Andrew Jenner <andrew@codesourcery.com>
14705
14706 * Makefile.in (SFILES): Add linux-nios2-low.c.
14707 (clean): Add action to delete nios2-linux.c.
14708 (nios2-linux.c): New rule.
14709 * configure.srv: Add nios2*-*-linux*.
14710 * linux-nios2-low.c: New.
14711
1ebff1fd
HAQ
147122013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14713
14714 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14715
f6150862
HZ
147162013-04-25 Hui Zhu <hui@codesourcery.com>
14717
14718 PR gdb/15186
f6150862
HZ
14719 * ax.c (ax_printf): Add fflush.
14720
614c279d
TT
147212013-04-22 Tom Tromey <tromey@redhat.com>
14722
14723 * Makefile.in (SFILES): Add filestuff.c.
14724 (OBS): Add filestuff.o.
14725 (filestuff.o): New target.
14726 * config.in, configure: Rebuild.
14727 * configure.ac: Check for fdwalk, pipe2.
14728
7d4e5717
PA
147292013-04-17 Pedro Alves <palves@redhat.com>
14730
14731 * configure.ac (USE_THREAD_DB): Delete variable.
14732 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14733 Don't AC_SUBST USE_THREAD_DB.
14734 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14735 * config.in, configure: Regenerate.
14736
d5c93e41
PA
147372013-04-16 Pedro Alves <palves@redhat.com>
14738
14739 * linux-low.h (struct lwp_info) <thread_known>: Move under
14740 the USE_THREAD_DB #ifdef.
14741
04f5fe89
PA
147422013-04-16 Pedro Alves <palves@redhat.com>
14743
14744 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14745 (linux-low.o): Delete rule.
14746 * linux-low.h: Always include "gdb_thread_db.h" instead of
14747 conditionally including thread_db.h.
14748 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14749 HAVE_THREAD_DB_H.
14750
480b27bf
JK
147512013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14752
14753 * Makefile.in (install-only): Fix make install regression.
14754
43662968
JK
147552013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14756
14757 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14758 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14759 installation.
14760 * gdbserver.1: Remove.
14761
3e74e146
PA
147622013-03-22 Pedro Alves <palves@redhat.com>
14763
14764 * linux-low.c (handle_extended_wait): Don't call
14765 linux_enable_event_reporting.
14766
a8347a2a
TT
147672013-03-15 Tony Theodore <tonyt@logyst.com>
14768
14769 PR build/9098:
14770 * Makefile.in (SHELL): Use @SHELL@.
14771
eeb56fa7
SDJ
147722013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14773
14774 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14775 compiler warning.
14776
4fa7e2ff
JB
147772013-03-13 Joel Brobecker <brobecker@adacore.com>
14778
14779 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14780 Remove extraneous NULL element.
14781
8ddb1965
YQ
147822013-03-13 Yao Qi <yao@codesourcery.com>
14783
14784 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14785 'V' block in trace frame.
14786
9accd112
MM
147872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14788
14789 * target.h (struct target_ops): Add btrace ops.
14790 (target_supports_btrace): New macro.
14791 (target_enable_btrace): New macro.
14792 (target_disable_btrace): New macro.
14793 (target_read_btrace): New macro.
14794 * gdbthread.h (struct thread_info): Add btrace field.
14795 * server.c: Include btrace-common.h.
14796 (handle_btrace_general_set): New function.
14797 (handle_btrace_enable): New function.
14798 (handle_btrace_disable): New function.
14799 (handle_general_set): Call handle_btrace_general_set.
14800 (handle_qxfer_btrace): New function.
14801 (struct qxfer qxfer_packets[]): Add btrace entry.
14802 * inferiors.c (remove_thread): Disable btrace.
14803 * linux-low: Include linux-btrace.h.
14804 (linux_low_enable_btrace): New function.
14805 (linux_low_read_btrace): New function.
14806 (linux_target_ops): Add btrace ops.
14807 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14808 Add srv_linux_btrace=yes.
14809 (x86_64-*-linux*): Add linux-btrace.o.
14810 Add srv_linux_btrace=yes.
14811 * configure.ac: Define HAVE_LINUX_BTRACE.
14812 * config.in: Regenerated.
14813 * configure: Regenerated.
14814
5cc22e4c
MM
148152013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14816
14817 * server.c (handle_qxfer): Preserve error message if -3 is
14818 returned.
14819 (qxfer): Document the -3 return value.
14820
7c97f91e
MM
148212013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14822
14823 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14824 (linux_btrace_h): New variable.
14825 (linux-btrace.o): New rule.
14826
be9a119c 148272013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14828 Hafiz Abid Qadeer <abidh@codesourcery.com>
14829
14830 * tracepoint.c (trace_buffer_size): New global.
14831 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14832 (init_trace_buffer): Change to one-argument function. Allocate
14833 trace buffer memory.
14834 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14835 handle QTBuffer:size packet.
14836 (cmd_bigqtbuffer_size): New function.
14837 (initialize_tracepoint): Call init_trace_buffer with
14838 DEFAULT_TRACE_BUFFER_SIZE.
14839 * server.c (handle_query): Add QTBuffer:size in the
14840 supported packets.
14841
e64f7499
YQ
148422013-03-07 Yao Qi <yao@codesourcery.com>
14843
14844 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14845 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14846 of -1.
14847 (cmd_qtsp): Adjust condition. Do post increment.
14848 Set cur_action and cur_step_action back to 0.
14849
f0ae6fc3
PA
148502013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14851
14852 PR server/15236
14853 * linux-low.c (linux_write_memory): Return early success if LEN is
14854 zero.
14855
b5b0b0af
CV
148562013-03-05 Corinna Vinschen <vinschen@redhat.de>
14857
334ad4a8 14858 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14859
589bc927
TT
148602013-02-28 Tom Tromey <tromey@redhat.com>
14861
14862 * configure.ac: Invoke AC_SYS_LARGEFILE.
14863 * configure, config.in: Rebuild.
14864
dfe07582
CV
148652013-02-28 Corinna Vinschen <vinschen@redhat.com>
14866
14867 * win32-low.c: Throughout, fix format strings and casts of
14868 printf-like functions to avoid type related warnings on all
14869 platforms.
14870 (get_child_debug_event): Print dwDebugEventCode as hex since
14871 that's how it's usually documented.
14872
736cd585
YQ
148732013-02-28 Yao Qi <yao@codesourcery.com>
14874
14875 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14876 pulongest.
14877
e1f58301
JW
148782013-02-27 Jiong Wang <jiwang@tilera.com>
14879
14880 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14881 (reg-tilegx32.c): New rule.
14882 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14883 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14884 different register info initializer according to elf class.
14885 (init_registers_tilgx32): New function. The tilegx32 register info
14886 initializer.
14887 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14888 (tile_store_gregset): Likewise.
14889
d171ca78
YQ
148902013-02-27 Yao Qi <yao@codesourcery.com>
14891
14892 * server.c (process_point_options): Print debug message when
14893 debug_threads is true.
14894
282bbdf3
YQ
148952013-02-26 Yao Qi <yao@codesourcery.com>
14896
14897 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14898
aca22551
PA
148992013-02-19 Pedro Alves <palves@redhat.com>
14900 Kai Tietz <ktietz@redhat.com>
14901
14902 PR gdb/15161
14903
14904 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14905 instead of strtoul to extract address from packet.
14906 (process_serial_event) <'z'>: Likewise.
14907
4f3cee1c
YQ
149082013-02-18 Yao Qi <yao@codesourcery.com>
14909
14910 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14911
8e1d55a3
PA
149122013-02-14 Pedro Alves <palves@redhat.com>
14913
14914 Plug memory leak.
14915
14916 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14917 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14918
458820da
PA
149192013-02-14 Pedro Alves <palves@redhat.com>
14920
14921 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14922
baea0dae
PA
149232013-02-14 Pedro Alves <palves@redhat.com>
14924
14925 * tracepoint.c (save_string): Delete.
14926 (add_tracepoint_action): Use savestring instead of save_string.
14927
0b1afbb3
PA
149282013-02-12 Pedro Alves <palves@redhat.com>
14929
14930 * linux-xtensa-low.c: Ditto.
14931 * xtensa-xtregs.c: Ditto.
14932
8a4ac37e
PA
149332013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14934
14935 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14936 thread_db.
14937
148de6bb
MS
149382013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14939
14940 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14941 aarch64_num_wp_regs and aarch64_num_bp_regs to
14942 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14943
55fac6e0
MS
149442013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14945
14946 * linux-aarch64-low.c (ps_get_thread_area): Replace
14947 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14948
176eb98c
MS
149492013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14950 Marcus Shawcroft <marcus.shawcroft@arm.com>
14951 Nigel Stephens <nigel.stephens@arm.com>
14952 Yufeng Zhang <yufeng.zhang@arm.com>
14953
14954 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14955 (aarch64.c, aarch64-without-fpu.c): New targets.
14956 * configure.srv (aarch64*-*-linux*): New.
14957 * linux-aarch64-low.c: New file.
14958
56f7af9c
MS
149592013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14960
43aaf8b6 14961 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14962 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14963 (dequeue_one_deferred_signal, linux_resume_one_thread)
14964 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14965 (linux_tracefork_grandchild, linux_test_for_tracefork)
14966 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14967 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14968 where the argument is 0.
14969
60f662b0
YQ
149702013-01-25 Yao Qi <yao@codesourcery.com>
14971
14972 * event-loop.c: Include "queue.h".
14973 (gdb_event_p): New typedef.
14974 (struct gdb_event) <next_event>: Remove.
14975 (event_queue): Change to QUEUE(gdb_event_p).
14976 (async_queue_event): Remove.
14977 (gdb_event_xfree): New.
14978 (initialize_event_loop): New.
14979 (process_event): Use API from QUEUE.
14980 (wait_for_event): Likewise.
14981 * server.c (main): Call initialize_event_loop.
14982 * server.h (initialize_event_loop): Declare.
14983
5ae4861a
YQ
149842013-01-18 Yao Qi <yao@codesourcery.com>
14985
14986 * ax.h (struct eval_agent_expr_context): New.
14987 (gdb_eval_agent_expr): Update declaration.
14988 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14989 TFRAME. Add new argument CTX.
14990 * server.h (struct eval_agent_expr_context): Declare.
14991 (agent_mem_read, agent_tsv_read): Update declaration.
14992 (agent_mem_read_string): Likewise.
14993 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14994 (add_traceframe_block): Add new argument TPOINT.
14995 Increase TPOINT->traceframe_usage.
14996 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14997 eval_tracepoint_agent_expr.
14998 (condition_true_at_tracepoint): Likewise.
14999 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15000 (agent_mem_read_string, agent_tsv_read): Likewise.
15001
85e00e85
YQ
150022013-01-16 Yao Qi <yao@codesourcery.com>
15003
15004 * linux-low.c (linux_resume_one_lwp): Don't check
15005 'lwp->bp_reinsert != 0'.
15006
4039cf45
JB
150072013-01-07 Joel Brobecker <brobecker@adacore.com>
15008 Pedro Alves <palves@redhat.com>
15009
15010 * lynx-low.c (ptrace_request_to_str): Define a temporary
15011 macro and use it to simplify this function's implementation.
15012
9044dee2
JB
150132013-01-07 Joel Brobecker <brobecker@adacore.com>
15014
15015 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15016 sets errno.
15017
e6352c8f
JB
150182013-01-07 Joel Brobecker <brobecker@adacore.com>
15019
15020 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15021
50681a27
JB
150222013-01-07 Joel Brobecker <brobecker@adacore.com>
15023
15024 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15025
3f6e77ef
JB
150262013-01-07 Joel Brobecker <brobecker@adacore.com>
15027
15028 * lynx-low.c (lynx_resume): Use the resume_info parameter
15029 to determine the ptid for the lynx_ptrace call, unless
15030 it is equal to minus_one_ptid, in which case we use the
15031 ptid of the current_inferior.
15032 (lynx_wait_1): After having received a thread create/exit
15033 event, resume the inferior's execution using the signaling
15034 thread's ptid, rather than the old ptid.
15035
7fda33ae
JB
150362013-01-07 Joel Brobecker <brobecker@adacore.com>
15037
15038 * lynx-low.c (lynx_resume): Delete variable ret.
15039
b9786c74
JB
150402013-01-01 Joel Brobecker <brobecker@adacore.com>
15041
15042 * gdbreplay.c (gdbreplay_version): Update copyright year.
15043 * server.c (gdbserver_version): Likewise.
15044
8b93d60f
JB
150452012-12-17 Joel Brobecker <brobecker@adacore.com>
15046
15047 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15048 new thread.
15049
037335a7
JB
150502012-12-17 Joel Brobecker <brobecker@adacore.com>
15051
15052 * lynx-low.c (ptrace_request_to_str): Add handling for
15053 PTRACE_GETTRACESIG.
15054
52d4cbd8
JB
150552012-12-17 Joel Brobecker <brobecker@adacore.com>
15056
15057 * lynx-low.c (lynx_attach): Delete variable new_process.
15058
ab8f6ca9
JB
150592012-12-17 Joel Brobecker <brobecker@adacore.com>
15060
15061 * lynx-low.c (lynx_create_inferior): Delete variable
15062 new_process.
15063
78cbc024
JB
150642012-12-17 Joel Brobecker <brobecker@adacore.com>
15065
15066 * lynx-low.c (ptrace_request_to_str): Do not handle
15067 PTRACE_GETTHREADLIST if this macro does not exist.
15068
14a00470
YQ
150692012-12-15 Yao Qi <yao@codesourcery.com>
15070
15071 * Makefile.in (OBS): Add notif.o.
15072 * notif.c, notif.h: New.
15073 * server.c: Include "notif.h".
15074 (struct vstop_notif) <next>: Remove.
15075 <base>: New field.
15076 (queue_stop_reply): Update.
15077 (push_event, send_next_stop_reply): Remove.
15078 (discard_queued_stop_replies): Update.
15079 (notif_stop): New variable.
15080 (handle_v_stopped): Remove.
15081 (handle_v_requests): Don't call handle_v_stopped. Call
15082 handle_ack_notif instead.
15083 (queue_stop_reply_callback): Call notif_event_enque instead
15084 of queue_stop_reply.
15085 (handle_status): Don't call send_next_stop_reply, call
15086 notif_write_event instead.
15087 (kill_inferior_callback): Likewise.
15088 (detach_or_kill_inferior_callback): Likewise.
15089 (main): Call initialize_notif.
15090 (process_serial_event): Call QUEUE_is_empty.
15091 (handle_target_event): Call notif_push instead of push event.
15092 * server.h (push_event): Remove declaration.
15093
61c125b9
TT
150942012-12-10 Tom Tromey <tromey@redhat.com>
15095
15096 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15097 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15098 macros.
15099 (.c.o): Rewrite.
15100 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15101 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15102 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15103 (amd64-linux-ipa.o, ax.o): Rewrite.
15104 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15105 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15106 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15107 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15108 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15109 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15110 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15111 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15112 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15113 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15114 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15115 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15116 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15117 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15118 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15119 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15120 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15121 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15122 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15123 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15124 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15125 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15126 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15127 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15128 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15129 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15130 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15131 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15132 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15133 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15134 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15135 (reg-tilegx.o): Remove.
15136 (all_object_files): New macro.
15137 Include .deps files.
15138 * aclocal.m4, configure: Rebuild.
15139 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15140 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15141 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15142
e90e9ad9
TT
151432012-12-05 Tom Tromey <tromey@redhat.com>
15144
15145 PR gdb/14917:
15146 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15147
02d403bf 151482012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15149
15150 * configure.ac: Check for linux/perf_event.h.
15151 * config.in: Regenerated.
15152 * configure: Regenerated.
15153
0270a750
PA
151542012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15155
15156 * hostio.c (handle_readlink): Decrease buffer size
15157 parameter passed to readlink by one byte.
15158
8c29b58e
YQ
151592012-11-26 Yao Qi <yao@codesourcery.com>
15160
15161 * configure.ac (build_warnings): Append '-Wempty-body'.
15162 * configure: Regenerated.
15163 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15164 body.
15165
8bdce1ff
PM
151662012-11-15 Pierre Muller <muller@sourceware.org>
15167
15168 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15169 * config.in: Regenerate.
15170 * configure: Regenerate.
15171 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15172 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15173 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15174 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15175 header.
15176 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15177 instead of <sys/wait.h> header.
15178 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15179
02d403bf 151802012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15181
15182 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15183 (various make rules): Remove -DGDBSERVER
15184
fbd5db48
YQ
151852012-11-09 Yao Qi <yao@codesourcery.com>
15186
15187 * spu-low.c (current_ptid): Move it to ..
15188 * gdbthread.h: ... here. New.
15189 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15190 * server.c (myresume, process_serial_event): Likewise.
15191 * thread-db.c (thread_db_find_new_threads): Likewise.
15192 * tracepoint.c (run_inferior_command): Likewise.
15193
b3dc46ff
AB
151942012-10-01 Andrew Burgess <aburgess@broadcom.com>
15195
15196 * server.c (handle_search_memory_1): Include access length in
15197 warning message.
15198
07c04788
HPN
151992012-09-05 Michael Brandt <michael.brandt@axis.com>
15200
15201 * linux-crisv32-low.c: Fix compile errors.
15202
918d227b
YQ
152032012-09-04 Yao Qi <yao@codesourcery.com>
15204
15205 * tracepoint.c (cmd_qtsv): Adjust debug message.
15206 Don't check CUR_TPOINT.
15207
18c1b81a
YQ
152082012-08-28 Yao Qi <yao@codesourcery.com>
15209
15210 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15211 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15212 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15213 Remove declarations of xmalloc, xreallloc, xstrdup and
15214 freeargv.
15215 * Makefile.in (libiberty_h): New.
15216 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15217 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15218
dc82f37b
YQ
152192012-08-23 Yao Qi <yao@codesourcery.com>
15220
15221 * server.h: Remove declaration of 'xsnprintf'.
15222
406b1477
KS
152232012-08-22 Keith Seitz <keiths@redhat.com>
15224
15225 * server.h: Include build-gnulib-gbserver/config.h.
15226 * gdbreplay.c: Likewise.
15227
e6712ff1
DE
152282012-08-08 Doug Evans <dje@google.com>
15229
15230 * Makefile.in (SFILES): Add gdb_vecs.c.
15231 (OBS): Add gdb_vecs.o.
15232 (gdb_vecs_h, host_defs_h): New variables.
15233 (thread-db.o): Add $(gdb_vecs_h) dependency.
15234 (gdb_vecs.o): New rule.
15235 * thread-db.c: #include "gdb_vecs.h".
15236 (thread_db_load_search): Use a vector to iterate over path elements.
15237 Handle text appearing after "$pdir".
15238
15239 * configure.ac: Add check for strstr.
15240 * config.in: Regenerate.
15241 * configure: Regenerate.
15242
7c3270ae
UW
152432012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15244
15245 * hostio.c (handle_pread): If pread fails, fall back to attempting
15246 lseek/read.
15247 (handle_pwrite): Likewise for pwrite.
15248
b62e2b27
UW
152492012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15250
15251 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15252 between unsupported TYPE and unimplementable ADDR/LEN combination.
15253 (arm_insert_point): Act on new return value.
15254
78a99e91
PA
152552012-07-31 Pedro Alves <palves@redhat.com>
15256
15257 * server.c (process_point_options): Only skip tokens if we find
15258 one that is unrecognized. Don't treat 'X' specially while
15259 skipping unrecognized tokens.
15260
fcf303ab
UW
152612012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15262
15263 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15264 to 4-byte-align HW breakpoint addresses for Thumb.
15265
7255706c
YQ
152662012-07-27 Yao Qi <yao@codesourcery.com>
15267
15268 PR remote/14161.
15269
15270 * server.h: Declare gdb_agent_about_to_close.
15271 * target.c (kill_inferior): Include "agent.h".
15272 New. Send command 'kill'.
15273 * target.h (kill_inferior): Removed macro.
15274 * tracepoint.c (gdb_agent_about_to_close): New.
15275 (gdb_agent_helper_thread): Handle command 'close'.
15276 Wait endlessly until the inferior stops.
15277 Install gdb_agent_remove_socket to atexit hook.
15278 (agent_socket_name): New static variable.
15279 (gdb_agent_socket_init): Replace local variable 'name' with
15280 'agent_socket_name'.
15281 (gdb_agent_remove_socket): New.
15282
5a3f286f
YQ
152832012-07-27 Yao Qi <yao@codesourcery.com>
15284
15285 * server.c (process_point_options): Stop at 'X' when parsing.
15286
961bd387
ME
152872012-07-19 Michael Eager <eager@eagercon.com>
15288
a261b8f5 15289 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15290 to hw_execute.
15291 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15292 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15293 hardware breakpoint.
15294
aa7c7447
JK
152952012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15296
15297 * gdbserver/linux-low.c (initialize_low): Call
15298 linux_ptrace_init_warnings.
15299
7f216e7c
DE
153002012-07-02 Doug Evans <dje@google.com>
15301
15302 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15303 pointer to int.
15304
d3ce09f5
SS
153052012-07-02 Stan Shebs <stan@codesourcery.com>
15306
15307 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15308 (ax.o): Add it to build rule.
15309 (ax-ipa.o): Ditto.
15310 (OBS): Add format.o.
15311 (IPA_OBS): Add format.o.
15312 * server.c (handle_query): Claim support for breakpoint commands.
15313 (process_point_options): Add command case.
15314 (process_serial_event): Leave running if there are printfs in
15315 effect.
15316 * mem-break.h (any_persistent_commands): Declare.
15317 (add_breakpoint_commands): Declare.
15318 (gdb_no_commands_at_breakpoint): Declare.
15319 (run_breakpoint_commands): Declare.
15320 * mem-break.c (struct point_command_list): New struct.
15321 (struct breakpoint): New field command_list.
15322 (any_persistent_commands): New function.
15323 (add_commands_to_breakpoint): New function.
15324 (add_breakpoint_commands): New function.
15325 (gdb_no_commands_at_breakpoint): New function.
15326 (run_breakpoint_commands): New function.
15327 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15328 locally.
15329 * ax.c: Include format.h.
15330 (ax_printf): New function.
15331 (gdb_eval_agent_expr): Add printf opcode.
15332
2f8f6aed
YQ
153332012-06-13 Yao Qi <yao@codesourcery.com>
15334
15335 * server.c (start_inferior): Remove duplicated writes to fields
15336 'last_resume_kind' and 'last_status' of 'current_inferior'.
15337
0c9070b3
YQ
153382012-06-12 Yao Qi <yao@codesourcery.com>
15339 Pedro Alves <palves@redhat.com>
15340
15341 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15342 comment.
15343 * server.c (handle_v_cont): Extend comment.
15344
c52daf70
YQ
153452012-06-11 Yao Qi <yao@codesourcery.com>
15346
15347 * linux-low.c (linux_attach): Add 'static'.
15348
d38bbb0a
YQ
153492012-06-06 Yao Qi <yao@codesourcery.com>
15350
15351 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15352
89dc0afd
JK
153532012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15354
15355 Fix gcc -flto compilation warning.
15356 * server.c (main): Make variable multi_mode and attach volatile.
15357
75f62ce7
TJB
153582012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15359
15360 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15361 if the platform doesn't know about it.
15362
65f479b6
PA
153632012-05-30 Jeff Kenton <jkenton@tilera.com>
15364
15365 * Makefile.in (SFILES): Add linux-tile-low.c.
15366 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15367 * configure.srv: Handle tilegx-*-linux*.
15368 * linux-tile-low.c: New file.
15369
0c5bf5a9
JK
153702012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15371
15372 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15373
a493e3e2
PA
153742012-05-24 Pedro Alves <palves@redhat.com>
15375
15376 PR gdb/7205
15377
43aaf8b6 15378 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15379
2ea28649
PA
153802012-05-24 Pedro Alves <palves@redhat.com>
15381
15382 PR gdb/7205
15383
15384 Replace target_signal with gdb_signal throughout.
15385
8d409d16
MR
153862012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15387
15388 * linux-low.c (linux_store_registers): Avoid the copying sequence
15389 when no data has been retrieved by ptrace.
15390
23512c01
MGD
153912012-05-22 Will Deacon <will.deacon@arm.com>
15392
15393 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15394 Include asm/ptrace.h.
15395 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15396 already defined.
15397
4934b29e
MR
153982012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15399
15400 * linux-low.c (linux_store_registers): Don't re-retrieve data
15401 with ptrace that has already been obtained from /proc. Always
15402 copy any data retrieved with ptrace to the buffer supplied.
15403
bde24c0a
PA
154042012-05-11 Yao Qi <yao@codesourcery.com>
15405 Pedro Alves <palves@redhat.com>
15406
15407 * linux-low.c (enum stopping_threads_kind): New.
15408 (stopping_threads): Change type to `enum stopping_threads_kind'.
15409 (handle_extended_wait): If stopping and suspending threads, leave
15410 the new_lwp suspended too.
15411 (linux_wait_for_event): Adjust.
15412 (stop_all_lwps): Set `stopping_threads' to
15413 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15414 whether we're suspending threads or just stopping them. Assert no
15415 recursion happens.
15416
623b6bdf
YQ
154172012-04-29 Yao Qi <yao@codesourcery.com>
15418
15419 * server.h: Move some code to ...
15420 * gdbthread.h: ... here. New.
15421 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15422 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15423 (nto-low.o, win32-low.o): Likewise.
15424 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15425 * regcache.c, remote-utils.c, server.c: Likewise.
15426 * target.c, tracepoint.c, win32-low.c: Likewise.
15427
f15f9948
TJB
154282012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15429
15430 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15431 (PTRACE_ARG4_TYPE): Likewise.
15432 (PTRACE_XFER_TYPE): Likewise.
15433 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15434 ptrace to PTRACE_ARG3_TYPE.
15435 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15436 (PTRACE_ARG4_TYPE): Likewise.
15437 (PTRACE_XFER_TYPE): Likewise.
15438 (linux_detach_one_lwp): Cast fourth argument of
15439 ptrace to long then PTRACE_ARG4_TYPE.
15440 (regsets_fetch_inferior_registers): Cast third argument of
15441 ptrace to long then PTRACE_ARG3_TYPE.
15442 (regsets_store_inferior_registers): Likewise.
15443
38ea300a
PA
154442012-04-20 Pedro Alves <palves@redhat.com>
15445
15446 * configure: Regenerate.
15447
c971b7fa
PA
154482012-04-19 Pedro Alves <palves@redhat.com>
15449
43aaf8b6 15450 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15451 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15452 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15453 (all, install-only, uninstall, clean-info, all-lib, clean): No
15454 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15455 (maintainer-clean realclean distclean): Use subdir_do.
15456 (subdir_do): New.
15457 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15458 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15459 * acinclude.m4: Include acx_configure_dir.m4.
15460 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15461 calls. Call AC_PROG_RANLIB. Configure gnulib using
15462 ACX_CONFIGURE_DIR.
15463 (GNULIB): New.
15464 (GNULIB_STDINT_H): Adjust.
15465 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15466 * gdbreplay.c: Include build-gnulib/config.h.
15467 * server.h: Likewise.
15468 * aclocal.m4: Regenerate.
15469 * config.in: Regenerate.
15470 * configure: Regenerate.
c971b7fa 15471
809277f8
PA
154722012-04-19 Pedro Alves <palves@redhat.com>
15473
15474 * Makefile.in (LIBGNU, INCGNU): Adjust.
15475 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15476 (all, install-only, uninstall, clean-info, all-lib, clean)
15477 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15478 * configure.ac: Adjust AC_OUTPUT output.
15479 * aclocal.m4: Regenerate.
15480 * configure: Regenerate.
15481
fd9bb8b8
PA
154822012-04-19 Pedro Alves <palves@redhat.com>
15483
15484 * Makefile.in (generated_files): New.
15485 (server_h): Remove the explicit dependency on config.h, and depend
15486 on $generated_files.
15487
1c298c66
PA
154882012-04-19 Pedro Alves <palves@redhat.com>
15489
15490 * Makefile.in (INCGNU): Add -Ignulib.
15491
57c4b50b
PA
154922012-04-19 Pedro Alves <palves@redhat.com>
15493
15494 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15495 (INCGNU): ... this, and spell out -I here.
15496 (GNULIB_LIB): Rename to ...
15497 (LIBGNU): ... this.
15498 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15499
1030e047
PA
155002012-04-19 Pedro Alves <palves@redhat.com>
15501
15502 * config.in: Regenerate.
15503
447d4319
PA
155042012-04-19 Pedro Alves <palves@redhat.com>
15505
15506 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15507 * server.h (memmem): Remove declaration.
15508 * config.in: Regenerate.
15509 * configure: Regenerate.
15510
aad9eab9
YQ
155112012-04-19 Yao Qi <yao@codesourcery.com>
15512
15513 * Makefile.in (SFILES): Add common/vec.c.
15514 (OBS): Add vec.o.
15515 (vec.o): New rule.
15516
3e10640f
YQ
155172012-04-19 Yao Qi <yao@codesourcery.com>
15518
15519 * remote-utils.c (prepare_resume_reply): Replace with macro
15520 target_core_of_thread.
15521 * server.c (handle_qxfer_threads_proper): Likewise.
15522 * target.h (traget_core_of_thread): New macro.
15523
71622373
PA
155242012-04-18 Pedro Alves <palves@redhat.com>
15525
15526 * aclocal.m4: Regenerate.
15527 * configure: Regenerate.
15528
80d26939
YQ
155292012-04-16 Yao Qi <yao@codesourcery.com>
15530
15531 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15532 duplicated on address.
15533
42476b70
YQ
155342012-04-16 Yao Qi <yao@codesourcery.com>
15535
15536 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15537 (struct tracepoint_action_ops) <send>: New field.
15538 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15539 (agent_expr_send, x_tracepoint_action_send): New.
15540 (l_tracepoint_action_send): New.
15541 (cmd_qtdp): Download and install tracepoint
15542 according to `use_agent'.
15543 (run_inferior_command): Add one more parameter `len'.
15544 Update callers.
15545 (tracepoint_send_agent): New.
15546 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15547
7bc83639
YQ
155482012-04-16 Yao Qi <yao@codesourcery.com>
15549
15550 * tracepoint.c (download_tracepoints): Moved to ...
15551 (cmd_qtstart): ... here.
15552
5f18041e
YQ
155532012-04-14 Yao Qi <yao@codesourcery.com>
15554
15555 * tracepoint.c: Include inttypes.h.
15556 (struct collect_memory_action): Use sized types.
15557 (struct tracepoint): Likewise.
15558 (cmd_qtdp, stop_tracing): Update print specifiers.
15559 (cmd_qtp, response_tracepoint): Likewise.
15560 (collect_data_at_tracepoint): Likewise.
15561 (collect_data_at_step): Likewise.
15562
55a8c076
YQ
155632012-04-14 Yao Qi <yao@codesourcery.com>
15564
15565 Import gnulib module inttypes.
15566 * aclocal.m4, config.in, configure: Regenerated.
15567
dc750257
YQ
155682012-04-14 Yao Qi <yao@codesourcery.com>
15569
15570 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15571 Makefile and config.status at last.
15572
0ab5faf9
YQ
155732012-04-13 Yao Qi <yao@codesourcery.com>
15574
15575 * tracepoint.c: Include stdint.h unconditionally.
15576
18f5fd81
TJB
155772012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15578
15579 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15580 on BFD_HAVE_SYS_PROCFS_TYPE.
15581 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15582 * configure: Regenerate.
15583 * config.in: Likewise.
15584
4d47af5c
L
155852012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15586
15587 * Makefile.in (clean): Also remove x32.c x32-linux.c
15588 x32-avx.c x32-avx-linux.c.
15589 (x32.o): New target.
15590 (x32.c): Likewise.
15591 (x32-linux.o): Likewise.
15592 (x32-linux.c): Likewise.
15593 (x32-avx.o): Likewise.
15594 (x32-avx.c): Likewise.
15595 (x32-avx-linux.o): Likewise.
15596 (x32-avx-linux.c): Likewise.
15597
15598 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15599 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15600 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15601 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15602 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15603 i386/x32-avx-linux.xml.
15604
15605 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15606 (init_registers_x32_avx_linux): Likwise.
15607 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15608 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15609
ecedbe58
PA
156102012-04-13 Pedro Alves <palves@redhat.com>
15611
15612 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15613 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15614 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15615 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15616 the sub-make.
15617
c92b5177
L
156182012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15619
15620 * linux-x86-low.c (compat_x32_clock_t): New.
15621 (compat_x32_siginfo_t): Likewise.
15622 (compat_x32_siginfo_from_siginfo): Likewise.
15623 (siginfo_from_compat_x32_siginfo): Likewise.
15624 (linux_is_elf64): Likewise.
15625 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15626 and siginfo_from_compat_x32_siginfo for x32.
15627 (x86_arch_setup): Set linux_is_elf64.
15628
214d508e
L
156292012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15630
15631 PR gdb/13969
15632 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15633 e_machine field.
15634 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15635 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15636 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15637 compatible with process.
15638
c9a1864a
YQ
156392012-04-12 Yao Qi <yao@codesourcery.com>
15640
15641 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15642 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15643 (install-only, install-info, clean): Handle sub dir gnulib.
15644 (all-lib, am--refresh): New targets.
15645 (memmem.o): Remove target.
15646 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15647 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15648 (AC_REPLACE_FUNCS): Remove memmem.
15649 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15650 (AC_OUTPUT): Generate Makefile in gnulib/.
15651 * aclocal.m4, config.in, configure: Regenerated.
15652
367ba2c2
MR
156532012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15654
15655 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15656
9d236627
PA
156572012-04-05 Pedro Alves <palves@redhat.com>
15658
15659 -Werror=strict-aliasing
15660
15661 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15662 pointer.
15663
111217b3
PA
156642012-04-04 Pedro Alves <palves@redhat.com>
15665
15666 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15667 (sparc_store_gregset_from_stack, sparc_store_gregset)
15668 (sparc_breakpoint_at): Fix formatting.
15669
8365dcf5
TJB
156702012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15671
15672 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15673 are available.
15674 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15675 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15676 * config.in: Regenerate.
15677 * configure: Likewise.
15678
689cc2ae
PA
156792012-03-29 Pedro Alves <palves@redhat.com>
15680
15681 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15682 Correct ptrace arguments.
15683
c14dfd32
PA
156842012-03-28 Pedro Alves <palves@redhat.com>
15685
15686 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15687 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15688 (IA64_FR1_REGNUM): New defines.
15689 (ia64_fetch_register): New.
15690 (the_low_target): Install it.
15691 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15692 field.
15693 * linux-low.c (linux_fetch_registers): Try the
15694 the_low_target.fetch_register hook first.
15695
15696 * linux-arm-low.c (the_low_target): Adjust.
15697 * linux-bfin-low.c (the_low_target): Adjust.
15698 * linux-cris-low.c (the_low_target): Adjust.
15699 * linux-crisv32-low.c (the_low_target): Adjust.
15700 * linux-m32r-low.c (the_low_target): Adjust.
15701 * linux-m68k-low.c (the_low_target): Adjust.
15702 * linux-mips-low.c (the_low_target): Adjust.
15703 * linux-ppc-low.c (the_low_target): Adjust.
15704 * linux-s390-low.c (the_low_target): Adjust.
15705 * linux-sh-low.c (the_low_target): Adjust.
15706 * linux-sparc-low.c (the_low_target): Adjust.
15707 * linux-tic6x-low.c (the_low_target): Adjust.
15708 * linux-x86-low.c (the_low_target): Adjust.
15709 * linux-xtensa-low.c (the_low_target): Adjust.
15710
63c88e13
PA
157112012-03-26 Pedro Alves <palves@redhat.com>
15712
15713 * server.c (handle_qxfer_libraries): Don't bail early if
15714 the_target->qxfer_libraries_svr4 is not NULL.
15715
fb723180
PA
157162012-03-26 Pedro Alves <palves@redhat.com>
15717
15718 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15719
0afae3cf
PA
157202012-03-23 Pedro Alves <palves@redhat.com>
15721
15722 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15723 "library-list-svr4" element's start tag when the the DSO list is
15724 empty.
15725
485f1ee4
PA
157262012-03-23 Pedro Alves <palves@redhat.com>
15727
15728 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15729 a variable whose type size is the same as the inferior's pointer
15730 size.
15731
a5362b9a
TS
157322012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15733
15734 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15735 struct siginfo.
15736 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15737 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15738 * linux-low.h: Include <signal.h>.
15739 (struct siginfo): Remove forward declaration.
15740 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15741 struct siginfo.
15742
d226c142
MF
157432012-03-21 Mike Frysinger <vapier@gentoo.org>
15744
15745 * .gitignore: Ignore more files.
15746
122f36ef
PA
157472012-03-19 Pedro Alves <palves@redhat.com>
15748 Jan Kratochvil <jan.kratochvil@redhat.com>
15749
15750 * server.c (cont_thread, general_thread): Add describing comments.
15751 (start_inferior): Clear `cont_thread'.
15752 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15753 of a process.
15754
fc3e5175
YQ
157552012-03-15 Yao Qi <yao@codesourcery.com>
15756
15757 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15758 handling to ...
15759 (cmd_qtdp): ... here.
15760
8d0d92cd
YQ
157612012-03-15 Yao Qi <yao@codesourcery.com>
15762
15763 * tracepoint.c (struct tracepoint_action_ops): New.
15764 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15765 (m_tracepoint_action_download): New.
15766 (r_tracepoint_action_download): New.
15767 (x_tracepoint_action_download): New.
15768 (l_tracepoint_action_download): New.
15769 (add_tracepoint_action): Install `action->ops' according type.
15770 (download_tracepoint_1): Move code `download' function pointer
15771 of various tracepoint_action_ops.
15772
87b0bb13
JK
157732012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15774
15775 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15776 linux_ptrace_attach_warnings.
15777
5f572dec
JK
157782012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15779
15780 * Makefile.in (linux-ptrace.o): New.
15781 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15782 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15783 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15784 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15785 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15786 of these targets.
15787 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15788
f4647387
YQ
157892012-03-08 Yao Qi <yao@codesourcery.com>
15790 Pedro Alves <palves@redhat.com>
15791
15792 Fix PR server/13392.
15793 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15794 offset of JMP insn.
15795 * tracepoint.c (remove_tracepoint): New.
15796 (cmd_qtdp): Call remove_tracepoint when failed to install.
15797
9b224c5e
PA
157982012-03-07 Pedro Alves <palves@redhat.com>
15799
15800 * linux-low.c (get_detach_signal): New.
15801 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15802 Pass on pending signals to PTRACE_DETACH. Check the result of the
15803 ptrace call.
15804 * server.c (program_signals, program_signals_p): New.
15805 (handle_general_set): Handle QProgramSignals.
15806 * server.h (program_signals, program_signals_p): Declare.
15807
e237a7e2
JK
158082012-03-05 Pedro Alves <palves@redhat.com>
15809 Jan Kratochvil <jan.kratochvil@redhat.com>
15810
15811 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15812 New comment why.
15813
5808517f
YQ
158142012-03-03 Yao Qi <yao@codesourcery.com>
15815
15816 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15817 agent_look_up_symbols.
15818
58b4daa5
YQ
158192012-03-03 Yao Qi <yao@codesourcery.com>
15820
15821 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15822 (linux-x86-low.o): Likewise.
15823 * server.h: Remove in_process_agent_loaded.
15824 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15825 common/agent.c.
15826 Update callers.
15827
8ffcbaaf
YQ
158282012-03-03 Yao Qi <yao@codesourcery.com>
15829
15830 * tracepoint.c (gdb_agent_capability): New global.
15831 (in_process_agent_loaded_ust): Renamed to
15832 `in_process_agent_supports_ust'.
15833 Update callers.
15834 (in_process_agent_supports_ust): Call agent_capability_check.
15835 (clear_installed_tracepoints): Assert that agent supports
15836 agent.
15837
d1feda86
YQ
158382012-03-03 Yao Qi <yao@codesourcery.com>
15839
15840 * linux-low.c (linux_supports_agent): New.
15841 (linux_target_ops): Initialize field `supports_agent' with
15842 linux_supports_agent.
15843 * target.h (struct target_ops) <supports_agent>: New.
15844 (target_supports_agent): New macro.
15845 * server.c (handle_general_set): Handle packet 'QAgent'.
15846 (handle_query): Send `QAgent+'.
15847 * Makefile.in (server.o): Depends on agent.h.
15848
2fa291ac
YQ
158492012-03-03 Yao Qi <yao@codesourcery.com>
15850
15851 * Makefile.in (OBS): Add agent.o.
15852 Add new rule for agent.o.
15853 Track dependence of tracepoint.c on agent.h.
15854 * tracepoint.c (run_inferior_command_1):
15855 (run_inferior_command): Call agent_run_command.
15856 (gdb_ust_connect_sync_socket): Deleted. Move it to
15857 common/agent.c.
15858 (resume_thread, stop_thread): Likewise.
15859 (gdb_ust_socket_init): Renamed to ...
15860 (gdb_agent_socket_init): ... New.
15861 (gdb_ust_thread): Renamed to ...
15862 (gdb_agent_helper_thread): ... New.
15863 (gdb_ust_init): Move some code to ...
15864 (gdb_agent_init): ... here. New.
15865 [HAVE_UST]: Call gdb_ust_init.
15866 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15867 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15868 * config.in, configure: Regenerated.
15869
05044653
PA
158702012-03-02 Pedro Alves <palves@redhat.com>
15871
15872 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15873 * linux-low.c (struct simple_pid_list): New.
15874 (stopped_pids): New a struct simple_pid_list pointer.
15875 (add_to_pid_list, pull_pid_from_list): New.
15876 (handle_extended_wait): Don't assume the first signal new children
15877 report is SIGSTOP. Adjust call to pull_pid_from_list.
15878 (linux_wait_for_lwp): Adjust.
15879
8d00225b
YQ
158802012-03-02 Yao Qi <yao@codesourcery.com>
15881
15882 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15883 debug log.
15884
19560ba5
YQ
158852012-03-02 Yao Qi <yao@codesourcery.com>
15886
15887 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15888 `stop_pc' and `tpoint'. Update caller.
15889
1faeff08
MR
158902012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15891
15892 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15893 * linux-low.c (use_linux_regsets): New macro.
15894 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15895 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15896 (linux_register_in_regsets): New function.
15897 (usr_fetch_inferior_registers): Skip registers covered by
15898 regsets.
15899 (usr_store_inferior_registers): Likewise.
15900 (usr_fetch_inferior_registers): New macro.
15901 (usr_store_inferior_registers): Likewise.
15902 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15903 (linux_store_registers): Likewise.
15904 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15905 prototype.
15906 (init_registers_mips64_dsp_linux): Likewise.
15907 (init_registers_mips_linux): New macro.
15908 (init_registers_mips_dsp_linux): Likewise.
15909 (mips_dsp_num_regs): Likewise.
15910 (DSP_BASE, DSP_CONTROL): New fallback macros.
15911 (mips_base_regs): New macro.
15912 (mips_regmap): Use it. Fix the size.
15913 (mips_dsp_regmap): New variable.
15914 (mips_dsp_regset_bitmap): Likewise.
15915 (mips_arch_setup): New function.
15916 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15917 than mips_regmap.
15918 (mips_cannot_store_register): Likewise.
15919 (the_low_target): Update .arch_setup, .num_regs and .regmap
15920 initializers. Add .regset_bitmap initializer.
15921 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15922 initializer.
15923 * linux-bfin-low.c (the_low_target): Likewise.
15924 * linux-cris-low.c (the_low_target): Likewise.
15925 * linux-crisv32-low.c (the_low_target): Likewise.
15926 * linux-ia64-low.c (the_low_target): Likewise.
15927 * linux-m32r-low.c (the_low_target): Likewise.
15928 * linux-m68k-low.c (the_low_target): Likewise.
15929 * linux-ppc-low.c (the_low_target): Likewise.
15930 * linux-s390-low.c (the_low_target): Likewise.
15931 * linux-sh-low.c (the_low_target): Likewise.
15932 * linux-sparc-low.c (the_low_target): Likewise.
15933 * linux-tic6x-low.c (the_low_target): Likewise.
15934 * linux-x86-low.c (the_low_target): Likewise.
15935 * linux-xtensa-low.c (the_low_target): Likewise.
15936 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15937 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15938 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15939 srv_xmlfiles.
15940 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15941 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15942
c03e6ccc
YQ
159432012-02-29 Yao Qi <yao@codesourcery.com>
15944 Pedro Alves <palves@redhat.com>
15945
15946 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15947 `step_over_finished' is true.
15948
644cebc9
PA
159492012-02-27 Pedro Alves <palves@redhat.com>
15950
15951 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15952 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15953
c14d7ab2
PA
159542012-02-27 Pedro Alves <palves@redhat.com>
15955
15956 PR server/9684
15957 * linux-low.c (pid_is_stopped): New.
15958 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15959
412c89dd
LM
159602012-02-25 Luis Machado <lgustavo@codesourcery.com>
15961
15962 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15963 of conditions.
15964
b745defe
MR
159652012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15966
15967 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15968
9f3a5c85
LM
159692012-02-24 Luis Machado <lgustavo@codesourcery>
15970
15971 * server.c (handle_query): Advertise support for target-side
15972 breakpoint condition evaluation.
15973 (process_point_options): New function.
15974 (process_serial_event): When inserting a breakpoint, check for
15975 a target-side condition that should be evaluated.
15976
15977 * mem-break.c: Include regcache.h and ax.h.
15978 (point_cond_list_t): New data structure.
15979 (breakpoint) <cond_list>: New field.
15980 (find_gdb_breakpoint_at): Make non-static.
15981 (delete_gdb_breakpoint_at): Clear any target-side
15982 conditions.
15983 (clear_gdb_breakpoint_conditions): New function.
15984 (add_condition_to_breakpoint): Likewise.
15985 (add_breakpoint_condition): Likewise.
15986 (gdb_condition_true_at_breakpoint): Likewise.
15987 (gdb_breakpoint_here): Return result directly instead
15988 of going through a local variable.
15989
15990 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15991 (clear_gdb_breakpoint_conditions): Likewise.
15992 (add_breakpoint_condition): Likewise.
15993 (gdb_condition_true_at_breakpoint): Likewise.
15994
15995 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15996 (need_step_over_p): Take target-side breakpoint condition into
15997 consideration.
15998
5e1dc496
LM
159992012-02-24 Luis Machado <lgustavo@codesourcery>
16000
16001 * server.h: Include tracepoint.h.
16002 (agent_mem_read, agent_get_trace_state_variable_value,
16003 agent_set_trace_state_variable_value,
16004 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16005 get_set_tsv_func_addr): New prototypes.
16006
16007 * ax.h: New include file.
16008 * ax.c: New source file.
16009
16010 * tracepoint.c: Include ax.h.
16011 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16012 agent_expr, eval_result_type): Move to ax.h.
16013 (parse_agent_expr): Rename to ...
16014 (gdb_parse_agent_expr): ... this, make it non-static and move
16015 to ax.h.
16016 (unparse_agent_expr) Rename to ...
16017 (gdb_unparse_agent_expr): ... this, make it non-static and move
16018 to ax.h.
16019 (eval_agent_expr): Rename to ...
16020 (eval_tracepoint_agent_expr): ... this.
16021 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16022 forward declarations.
16023 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16024 (agent_get_trace_state_variable_value): New function.
16025 (agent_set_trace_state_variable_value): New function.
16026 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16027 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16028 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16029 (condition_true_at_tracepoint): Likewise.
16030 (parse_agent_expr): Rename to ...
16031 (gdb_parse_agent_expr): ... this and move to ax.c.
16032 (unparse_agent_expr): Rename to ...
16033 (gdb_unparse_agent_expr): ... this and move to ax.c.
16034 (gdb_agent_op_name): Move to ax.c.
16035 (eval_agent_expr): Rename to ...
16036 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16037 and move to ax.c.
16038 (eval_tracepoint_agent_expr): New function.
16039 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16040 non-static.
5e1dc496
LM
16041 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16042 ax.c.
16043 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16044 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16045 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16046 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16047 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16048 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16049 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16050 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16051 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16052 (compile_bytecodes): Remove forward declaration.
16053 (is_goto_target): Move to ax.c.
16054 (compile_bytecodes): Move to ax.c and call
16055 agent_get_trace_state_variable_value (...) and
16056 agent_set_trace_state_variable_value (...).
16057
16058 * Makefile.in: Update ax.c and IPA dependencies.
16059
277e4e52
PA
160602012-02-24 Pedro Alves <palves@redhat.com>
16061
16062 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16063 (cmd_bigqtbuffer_circular): ... this. Only handle
16064 'QTBuffer:circular:'.
16065 (handle_tracepoint_general_set): Adjust.
16066
bf4c19f7
YQ
160672012-02-16 Yao Qi <yao@codesourcery.com>
16068
16069 * inferiors.c: Move code to ...
16070 * dll.c: .... here. New.
16071 * server.h: Declare clear_dlls.
16072 * Makefile.in (SFILES): Add dll.c.
16073 (OBS): Add dll.o
16074 (dll.o): New rule.
16075
d73f2619
YQ
160762012-02-11 Yao Qi <yao@codesourcery.com>
16077
16078 * server.c: (handle_monitor_command): Add a new parameter
16079 `own_buf'.
16080 (handle_query): Update caller.
16081
f8255c2a
JB
160822012-02-09 Joel Brobecker <brobecker@adacore.com>
16083
16084 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16085 * configure, config.in: Regenerate.
16086 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16087 is not defined.
16088
da84f473
PA
160892012-02-02 Pedro Alves <palves@redhat.com>
16090
16091 Try SIGKILL first, then PTRACE_KILL.
16092 * linux-low.c (linux_kill_one_lwp): New.
16093 (linux_kill_one_lwp): Rename to ...
16094 (kill_one_lwp_callback): ... this. Use the new
16095 linux_kill_one_lwp.
16096
e886a173
PA
160972012-02-02 Pedro Alves <palves@redhat.com>
16098
16099 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16100 inferior.
16101
be07f1a2
PA
161022012-01-27 Pedro Alves <palves@redhat.com>
16103
16104 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16105 (elf_64_file_p): Make static.
16106 (linux_pid_exe_is_elf_64_file): New.
16107 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16108 Delete declarations.
16109 (linux_pid_exe_is_elf_64_file): Declare.
16110 * linux-x86-low.c (x86_arch_setup): Use
16111 linux_pid_exe_is_elf_64_file.
16112
d8301ad1
JK
161132012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16114
16115 * linux-low.c (linux_wait_for_event_1): Rename to ...
16116 (linux_wait_for_event): ... here and merge it with former
16117 linux_wait_for_event - new variable wait_ptid, use it.
16118 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16119
01b17894
PA
161202012-01-23 Pedro Alves <palves@redhat.com>
16121
16122 * server.c (main): Avoid yet another case of infinite loop while
16123 detaching/killing after a longjmp.
16124
e825046f
JK
161252012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16126
16127 Code cleanup.
16128 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16129
b9e7b9c3
UW
161302012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16131
16132 * hostio.c (handle_readlink): New function.
16133 (handle_vFile): Call it to handle "vFile:readlink" packets.
16134
901f9912
UW
161352012-01-20 Pedro Alves <palves@redhat.com>
16136 Ulrich Weigand <ulrich.weigand@linaro.org>
16137
16138 * server.c (handle_v_requests): Only support vAttach and vRun to
16139 start multiple processes when in extended protocol mode.
16140
fc1ab1a0
PA
161412012-01-17 Pedro Alves <palves@redhat.com>
16142
16143 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16144 memalign plus mprotect to allocate the scratch buffer.
16145
7d5d4e98
PA
161462012-01-13 Pedro Alves <palves@redhat.com>
16147
16148 * server.c (attach_inferior): Clear `cont_thread'.
16149
f128d5e9
PA
161502012-01-13 Pedro Alves <palves@redhat.com>
16151
16152 * server.c (main): Avoid infinite loop while detaching/killing
16153 after a longjmp.
16154
06db92f0
DE
161552012-01-09 Doug Evans <dje@google.com>
16156
16157 * server.c (start_inferior): Set last_ptid in --wrapper case.
16158
32d92999
YQ
161592012-01-06 Yao Qi <yao@codesourcery.com>
16160
16161 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16162 defined.
16163 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16164
5e0a92a9
YQ
161652012-01-04 Yao Qi <yao@codesourcery.com>
16166
16167 * tracepoint.c (cmd_qtdp): Print debug message
16168 for static tracepoint.
16169
ae639e8c
YQ
161702012-01-04 Yao Qi <yao@codesourcery.com>
16171
16172 * tracepoint.c (trace_vdebug): Differentiate debug message
16173 between gdbserver and IPA.
16174
f72429c5
YQ
161752012-01-03 Yao Qi <yao@codesourcery.com>
16176
16177 * tracepoint.c (tracepoint_was_hit): Don't collect for
16178 static tracepoint.
16179
12c3e59c
JB
161802012-01-02 Joel Brobecker <brobecker@adacore.com>
16181
16182 * terminal.h: Reformat copyright header.
16183
67827812
JB
161842012-01-02 Joel Brobecker <brobecker@adacore.com>
16185
16186 * server.c (gdbserver_version): Update copyright year.
16187 * gdbreplay.c (gdbreplay_version): Likewise.
16188
3e52c33d
JK
161892011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16190
16191 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16192
16193 Revert:
16194 2011-12-18 Hui Zhu <teawater@gmail.com>
16195 * linux-low.c (linux_create_inferior): Save return value to ret.
16196
66f1260e
HZ
161972011-12-18 Hui Zhu <teawater@gmail.com>
16198
16199 * linux-low.c (linux_create_inferior): Save return value to ret.
16200
e77616d7
DE
162012011-12-16 Doug Evans <dje@google.com>
16202
e7b06c57
DE
16203 * linux-low.c (linux_create_inferior): If stdio connection,
16204 redirect stdin from /dev/null, stdout to stderr.
16205 * remote-utils.c (remote_is_stdio): New static global.
16206 (remote_connection_is_stdio): New function.
16207 (remote_prepare): Handle stdio connection.
16208 (remote_open): Ditto.
16209 (remote_close): Don't close stdin for stdio connections.
16210 (read_prim,write_prim): New functions. Replace all calls to
16211 read/write to these.
16212 * server.c (main): Watch for "-" argument. Move call to
16213 remote_prepare before start_inferior.
16214 * server.h (STDIO_CONNECTION_NAME): New macro.
16215 (remote_connection_is_stdio): Declare.
16216
e77616d7
DE
16217 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16218 in debugging output.
16219
82067193
YQ
162202011-12-15 Yao Qi <yao@codesourcery.com>
16221
16222 * tracepoint.c: Include sys/syscall.h.
16223 (gdb_ust_thread): Remove preprocessor conditional.
16224
82bfbe7e
PA
162252011-12-14 Pedro Alves <pedro@codesourcery.com>
16226
16227 * linux-low.c (linux_detach_one_lwp): Call
16228 the_low_target.prepare_to_resume before detaching.
16229
712c6575
YQ
162302011-12-14 Yao Qi <yao@codesourcery.com>
16231
16232 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16233 of write.
16234
d54d1edf
YQ
162352011-12-14 Yao Qi <yao@codesourcery.com>
16236
16237 * i386-low.c (i386_low_stopped_data_address): Initialize local
16238 variable `control'.
16239
6210a125
PA
162402011-12-13 Pedro Alves <pedro@codesourcery.com>
16241
16242 PR remote/13492
16243
16244 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16245 DR_CONTROL unless necessary. Extend comments.
16246 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16247 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16248
2ece8244
YQ
162492011-12-13 Yao Qi <yao@codesourcery.com>
16250
16251 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16252 macros.
16253 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16254
784867a5
JK
162552011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16256
16257 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16258 Print new debug message for such case.
16259
6bf36717
JK
162602011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16261
16262 Fix overlapping memcpy.
16263 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16264 the read_inferior_memory transfer.
16265 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16266 write_inferior_memory transfer.
16267 (set_fast_tracepoint_jump): New variable buf. Use it for the
16268 read_inferior_memory and write_inferior_memory transfers.
16269 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16270 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16271 Use it for the write_inferior_memory transfer.
16272 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16273 buffers.
16274
50275556
MR
162752011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16276
16277 * linux-low.c (fetch_register, store_register): Make code
16278 consistent, fix formatting.
16279
7325beb4
MR
162802011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16281
16282 * linux-low.c (usr_store_inferior_registers): Factor out code
16283 to handle individual registers into...
16284 (store_register): ... this new function.
16285
c642a434
UW
162862011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16287
16288 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16289 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16290 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16291 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16292 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16293 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16294 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16295 (srv_xmlfiles): Add new XML files.
16296
16297 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16298 and <sys/uio.h>.
16299 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16300 (init_registers_s390_linux32v1): Add prototype.
16301 (init_registers_s390_linux32v2): Likewise.
16302 (init_registers_s390_linux64v1): Likewise.
16303 (init_registers_s390_linux64v2): Likewise.
16304 (init_registers_s390x_linux64v1): Likewise.
16305 (init_registers_s390x_linux64v2): Likewise.
16306 (s390_num_regs): Increment to 52.
16307 (s390_regmap): Add orig_r2 register.
16308 (s390_num_regs_3264): Increment to 68.
16309 (s390_regmap_3264): Add orig_r2 register.
16310 (s390_collect_ptrace_register): Handle orig_r2 register.
16311 (s390_supply_ptrace_register): Likewise.
16312 (s390_fill_last_break): New function.
16313 (s390_store_last_break): Likewise.
16314 (s390_fill_system_call): New function.
16315 (s390_store_system_call): Likewise.
16316 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16317 register sets.
16318 (s390_check_regset): New function.
16319 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16320 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16321 Update target_regsets for available register sets.
16322
2268b414
JK
163232011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16324 Jan Kratochvil <jan.kratochvil@redhat.com>
16325
16326 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16327 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16328 New.
16329 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16330 * linux-low.h (struct process_info_private): New member r_debug.
16331 * server.c (handle_qxfer_libraries): Call
16332 the_target->qxfer_libraries_svr4.
16333 (handle_qxfer_libraries_svr4): New function.
16334 (qxfer_packets): New entry "libraries-svr4".
16335 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16336 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16337 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16338 PACKET_qXfer_libraries_svr4.
16339
d6db1fab
UW
163402011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16341
16342 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16343 PSW address/mask between 8-byte and 16-byte formats.
16344 (s390_supply_ptrace_register): Likewise.
16345 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16346 basic addressing mode bit.
16347
242f5f1c
SS
163482011-11-24 Stan Shebs <stan@codesourcery.com>
16349
16350 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16351
f196051f
SS
163522011-11-17 Stan Shebs <stan@codesourcery.com>
16353
16354 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16355 (tracing_start_time): New global.
16356 (tracing_stop_time): New global.
16357 (tracing_user_name): New global.
16358 (tracing_notes): New global.
16359 (tracing_stop_note): New global.
16360 (cmd_qtstart): Set traceframe_usage, start_time.
16361 (stop_tracing): Set stop_time.
16362 (cmd_qtstatus): Report additional status.
16363 (cmd_qtp): New function.
16364 (handle_tracepoint_query): Call it.
16365 (cmd_qtnotes): New function.
16366 (handle_tracepoint_general_set): Call it.
16367 (get_timestamp): Rename from tsv_get_timestamp.
16368
405f8e94
SS
163692011-11-14 Stan Shebs <stan@codesourcery.com>
16370 Kwok Cheung Yeung <kcy@codesourcery.com>
16371
16372 * linux-x86-low.c (small_jump_insn): New.
16373 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16374 trampoline and error message, build a trampoline and issue a small
16375 jump instruction to it.
16376 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16377 trampoline and error message.
16378 (x86_get_min_fast_tracepoint_insn_len): New.
16379 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16380 * linux-low.h (struct linux_target_ops): Add arguments to
16381 install_fast_tracepoint_jump_pad operation, add new operation.
16382 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16383 arguments.
16384 (linux_get_min_fast_tracepoint_insn_len): New function.
16385 (linux_target_op): Add new operation.
16386 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16387 (gdb_trampoline_buffer_end): Ditto.
16388 (gdb_trampoline_buffer_error): Ditto.
16389 (struct ipa_sym_addresses): Add fields for new IPA variables.
16390 (symbol_list): Add entries for new IPA variables.
16391 (struct tracepoint): Add fields to hold the address range of the
16392 trampoline used by the tracepoint.
16393 (trampoline_buffer_head): New static variable.
16394 (trampoline_buffer_tail): Ditto.
16395 (claim_trampoline_space): New function.
16396 (have_fast_tracepoint_trampoline_buffer): New function.
16397 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16398 structure.
16399 (install_fast_tracepoint): Ditto, also add error buffer argument.
16400 (cmd_qtminftpilen): New function.
16401 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16402 (fast_tracepoint_from_trampoline_address): New function.
16403 (fast_tracepoint_collecting): Handle trampoline as part of jump
16404 pad space.
16405 (set_trampoline_buffer_space): New function.
16406 (initialize_tracepoint): Initialize new IPA variables.
16407 * target.h (struct target_ops): Add arguments to
16408 install_fast_tracepoint_jump_pad operation, add new
16409 get_min_fast_tracepoint_insn_len operation.
16410 (target_get_min_fast_tracepoint_insn_len): New.
16411 (install_fast_tracepoint_jump_pad): Add arguments.
16412 * server.h (IPA_BUFSIZ): Define.
16413 * linux-i386-ipa.c: Include extra header files.
16414 (initialize_fast_tracepoint_trampoline_buffer): New function.
16415 (initialize_low_tracepoint): Call it.
16416 * server.h (set_trampoline_buffer_space): Declare.
16417 (claim_trampoline_space): Ditto.
16418 (have_fast_tracepoint_trampoline_buffer): Ditto.
16419
1e4d1764
YQ
164202011-11-14 Yao Qi <yao@codesourcery.com>
16421
16422 * server.c (handle_query): Handle InstallInTrace for qSupported.
16423 * tracepoint.c (add_tracepoint): Sort list.
16424 (install_tracepoint, download_tracepoint): New.
16425 (cmd_qtdp): Call them to install and download tracepoints.
16426 (sort_tracepoints): Removed.
16427 (cmd_qtstart): Update.
16428
5c73ff4e
YQ
164292011-11-14 Yao Qi <yao@codesourcery.com>
16430
16431 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16432 * mem-break.h: Declare.
16433 * tracepoint.c (cmd_qtstart): Move some code to ...
16434 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16435 New.
16436 (download_tracepoints): Move some code to ...
16437 (download_tracepoint_1): ... here. New.
16438
86a30030
YQ
164392011-11-08 Yao Qi <yao@codesourcery.com>
16440
16441 * remote-utils.c (relocate_instruction): A comment fix.
16442
8d26e50c
JB
164432011-11-07 Joel Brobecker <brobecker@adacore.com>
16444
16445 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16446 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16447 dr_status_mirror and dr_control_mirror from debug_reg_state.
16448 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16449 (i386_initial_stuff): Remove use of deleted globals.
16450 (i386_get_thread_context, i386_set_thread_context,
16451 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16452 from debug_reg_state.
16453
a59306a3
YQ
164542011-11-05 Yao Qi <yao@codesourcery.com>
16455
16456 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16457 address as TPOINT's.
16458
3065dfb6
SS
164592011-11-02 Stan Shebs <stan@codesourcery.com>
16460
16461 * tracepoint.c (agent_mem_read_string): New function.
16462 (eval_agent_expr): Call it for tracenz.
16463 * server.c (handle_query): Report support for tracenz.
16464
fd0d8c7c
YQ
164652011-11-02 Yao Qi <yao@codesourcery.com>
16466
16467 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16468
609086b1
YQ
164692011-11-02 Yao Qi <yao@codesourcery.com>
16470
16471 * target.h: Fix a typo in comment.
16472
b9fd1791
PA
164732011-10-31 Pedro Alves <pedro@codesourcery.com>
16474
16475 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16476 clobber the breakpoints' shadows with fast tracepoint jumps.
16477 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16478 * target.c (write_inferior_memory): Also pass MYADDR down to
16479 check_mem_write.
16480
03583c20
UW
164812011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16482
16483 * configure.ac: Check support for personality routine.
16484 * configure: Regenerate.
16485 * config.in: Likewise.
16486 * linux-low.c: Include <sys/personality.h>.
16487 Define ADDR_NO_RANDOMIZE if necessary.
16488 (linux_create_inferior): Disable address space randomization when
16489 forking inferior, if requested.
16490 (linux_supports_disable_randomization): New function.
16491 (linux_target_ops): Install it.
16492 * server.h (disable_randomization): Declare.
16493 * server.c (disable_randomization): New global variable.
16494 (handle_general_set): Handle QDisableRandomization.
16495 (handle_query): Likewise for qSupported.
16496 (main): Support --disable-randomization and --no-disable-randomization
16497 command line arguments.
16498 * target.h (struct target_ops): Add supports_disable_randomization.
16499 (target_supports_disable_randomization): New macro.
16500
723b724b
MF
165012011-09-29 Mike Frysinger <vapier@gentoo.org>
16502
16503 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16504 ifdef check.
16505 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16506 [!PT_GETDSBT] (target_loadmap): New definition.
16507 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16508 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16509 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16510 and PT_GETDSBT to LINUX_LOADMAP.
16511 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16512 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16513
55329a5c 165142011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16515
16516 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16517 (arm_linux_hwbp_cap): New static variable.
16518 (arm_linux_get_hwbp_cap): Replace by ...
16519 (arm_linux_init_hwbp_cap): ... this new function.
16520 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16521 (arm_linux_get_hw_watchpoint_count): Likewise.
16522 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16523 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16524 (arm_prepare_to_resume): Use perror_with_name instead of error.
16525
55329a5c 165262011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16527
16528 * linux-arm-low.c: Include <signal.h>.
16529 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16530 (struct arm_linux_hwbp_cap): New data type.
16531 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16532 (struct arm_linux_hw_breakpoint): New data type.
16533 (MAX_BPTS, MAX_WPTS): Define.
16534 (struct arch_process_info, struct arch_lwp_info): New data types.
16535 (arm_linux_get_hwbp_cap): New function.
16536 (arm_linux_get_hw_breakpoint_count): Likewise.
16537 (arm_linux_get_hw_watchpoint_count): Likewise.
16538 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16539 (arm_hwbp_control_initialize): Likewise.
16540 (arm_hwbp_control_is_enabled): Likewise.
16541 (arm_hwbp_control_is_initialized): Likewise.
16542 (arm_hwbp_control_disable): Likewise.
16543 (arm_linux_hw_breakpoint_equal): Likewise.
16544 (arm_linux_hw_point_initialize): Likewise.
16545 (struct update_registers_data): New data structure.
16546 (update_registers_callback: New function.
16547 (arm_insert_point): Likewise.
16548 (arm_remove_point): Likewise.
16549 (arm_stopped_by_watchpoint): Likewise.
16550 (arm_stopped_data_address): Likewise.
16551 (arm_new_process): Likewise.
16552 (arm_new_thread): Likewise.
16553 (arm_prepare_to_resume): Likewise.
16554 (the_low_target): Register arm_insert_point, arm_remove_point,
16555 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16556 arm_new_thread, and arm_prepare_to_resume.
16557
6b9801d4
SS
165582011-09-15 Stan Shebs <stan@codesourcery.com>
16559
16560 * server.h (struct emit_ops): Add compare-goto fields.
16561 * tracepoint.c (gdb_agent_op_sizes): New table.
16562 (emit_eq_goto): New function.
16563 (emit_ne_goto): New function.
16564 (emit_lt_goto): New function.
16565 (emit_le_goto): New function.
16566 (emit_gt_goto): New function.
16567 (emit_ge_goto): New function.
16568 (is_goto_target): New function.
16569 (compile_bytecodes): Recognize special cases of compare-goto
16570 combinations and call specialized emitters for them.
16571 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16572 (amd64_emit_ne_goto): New function.
16573 (amd64_emit_lt_goto): New function.
16574 (amd64_emit_le_goto): New function.
16575 (amd64_emit_gt_goto): New function.
16576 (amd64_emit_ge_goto): New function.
16577 (amd64_emit_ops): Add the new functions.
16578 (i386_emit_eq_goto): New function.
16579 (i386_emit_ne_goto): New function.
16580 (i386_emit_lt_goto): New function.
16581 (i386_emit_le_goto): New function.
16582 (i386_emit_gt_goto): New function.
16583 (i386_emit_ge_goto): New function.
16584 (i386_emit_ops): Add the new functions.
16585
bf15cbda
SS
165862011-09-08 Stan Shebs <stan@codesourcery.com>
16587
16588 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16589 (i386_emit_epilogue): Restore %ebx.
16590
943ca1dd
JZ
165912011-08-31 Jie Zhang <jzhang918@gmail.com>
16592
16593 * server.c (step_thread): Remove definition.
16594 (process_serial_event): Don't handle Hs.
16595 * server.h (step_thread): Remove declaration.
16596 * target.c (set_desired_inferior): Remove use of step_thread.
16597
e3deef73
LM
165982011-08-24 Luis Machado <lgustavo@codesourcery.com>
16599
16600 * linux-low.c: Include linux-procfs.h.
16601 (linux_attach_lwp_1): Update comments.
16602 (linux_attach): Scan for existing threads when attaching to a
16603 process that is the tgid.
16604 * Makefile.in: Update dependencies.
16605
13da1c97
LM
166062011-08-24 Luis Machado <lgustavo@codesourcery.com>
16607
16608 * configure.srv: Add linux-procfs.o dependencies.
16609
881127c9
YQ
166102011-08-14 Yao Qi <yao@codesourcery.com>
16611
16612 * target.h (struct target_ops): Fix indent.
16613 * win32-low.c (win32_target_ops): Fix comment.
16614
58dbd541
YQ
166152011-08-14 Andrew Jenner <andrew@codesourcery.com>
16616 Yao Qi <yao@codesourcery.com>
16617
16618 * Makefile.in (clean): Remove tic6x-*.c files.
16619 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16620 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16621 (tic6x-c64xp-linux.c): Likewise.
16622 * configure.srv: Add support for tic6x-*-uclinux.
16623 * linux-tic6x-low.c: New.
16624 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16625
78d85199
YQ
166262011-08-14 Andrew Stubbs <ams@codesourcery.com>
16627 Yao Qi <yao@codesourcery.com>
16628
16629 * target.h (struct target_ops): Add read_loadmap.
16630 * linux-low.c (struct target_loadseg): New type.
16631 (struct target_loadmap): New type.
16632 (linux_read_loadmap): New function.
16633 (linux_target_ops): Add linux_read_loadmap.
16634 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16635 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16636 to NULL.
78d85199 16637
a959a88d
EZ
166382011-08-05 Eli Zaretskii <eliz@gnu.org>
16639
16640 * win32-low.c: Include <stdint.h>.
16641
1ced966e
PA
166422011-07-22 Pedro Alves <pedro@codesourcery.com>
16643
16644 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16645 to the inferior here.
16646 (i386_remove_aligned_watchpoint): Ditto.
16647 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16648 fit part of the watchpoint in the debug registers.
16649 (i386_update_inferior_debug_regs): New.
16650 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16651 registers, and only update the inferior on success.
16652 (i386_low_remove_watchpoint): Ditto.
16653
d26e3629
KY
166542011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16655
16656 * linux-low.c (compare_ints, unique, list_threads, show_process,
16657 linux_core_of_thread): Delete.
16658 (linux_target_ops): Change linux_core_of_thread to
16659 linux_common_core_of_thread.
16660 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16661 * utils.c (malloc_failure): Change type of argument.
16662 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16663 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16664 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16665 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16666 (IPA_OBJS): Add common-utils-ipa.o.
16667 (ptid_h, linux_osdata_h): New macros.
16668 (server_h): Add common/common-utils.h, common/xml-utils.h,
16669 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16670 common/ptid.h.
16671 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16672 ptid.o, buffer.o): New rules.
16673 (linux-low.o): Add common/linux-osdata.h as a dependency.
16674 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16675 * configure.ac: Add AC_HEADER_DIRENT check.
16676 * config.in: Regenerate.
16677 * configure: Regenerate.
16678 * remote-utils.c (xml_escape_text): Delete.
16679 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16680 buffer_xml_printf): Move to common/buffer.c.
16681 * server.c (main): Remove call to initialize_inferiors.
16682 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16683 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16684 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16685 internal_error, gdb_assert, gdb_assert_fail): Delete.
16686 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16687 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16688 common/buffer.h.
16689 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16690 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16691 initialize_inferiors): Delete.
16692
2275a1a7
PA
166932011-07-20 Pedro Alves <pedro@codesourcery.com>
16694
16695 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16696 symbol error.
16697
0a5b1e09
PA
166982011-05-31 Pedro Alves <pedro@codesourcery.com>
16699
16700 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16701 assertion.
16702 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16703
6938fd34
YQ
167042011-05-26 Yao Qi <yao@codesourcery.com>
16705
16706 * Makefile.in (thread-db.o): Track dependence to
16707 common/gdb_thread_db.h.
16708 * thread-db.c: include gdb_thread_db.h from right place.
16709
b481f9e0
TT
167102011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16711
16712 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16713 __FILE__ and __LINE__ to internal_error.
16714
98a5dd13
DE
167152011-05-13 Doug Evans <dje@google.com>
16716
16717 * thread-db.c (try_thread_db_load_from_sdir): New function.
16718 (try_thread_db_load_from_dir): New function.
16719 (thread_db_load_search): Handle $sdir, ignore $pdir.
16720 Remove trying of system directories if search of
16721 libthread-db-search-path fails, that is now done via $sdir.
16722
d248b706
KY
167232011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16724
16725 * server.c (handle_query): Add EnableDisableTracepoints to the list
16726 of supported features.
43aaf8b6 16727 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16728 tracepoints.
43aaf8b6
PA
16729 (cmd_qtenable_disable): New.
16730 (cmd_qtstart): Install tracepoints even if disabled.
16731 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16732 receiving a QTEnable or QTDisable packet.
16733 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16734 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16735 tracepoints.
16736 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16737
84e578fb
DE
167382011-05-10 Doug Evans <dje@google.com>
16739
16740 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16741
71f55dd8
DE
167422011-05-04 Doug Evans <dje@google.com>
16743
16744 * linux-low.c (linux_join): Skip process lookup.
16745 * spu-low.c (spu_join): Ditto.
16746 * server.c (join_inferiors_callback): Delete.
16747 (process_serial_event): For 'D' packet (detach) call join_inferior
16748 directly.
16749
4d393d60
JM
167502011-05-04 Joseph Myers <joseph@codesourcery.com>
16751
16752 * README: Don't mention xscale*-*-linux*.
16753 * configure.srv (xscale*-*-linux*): Don't handle target.
16754
b00ad6ff
NF
167552011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16756
16757 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16758 casting pointers.
16759 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16760 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16761 (i386_emit_void_call_2): Likewise.
16762
af96c192
YQ
167632011-04-26 Yao Qi <yao@codesourcery.com>
16764
43aaf8b6
PA
16765 * linux-low.c: Move common macros to linux-ptrace.h.
16766 Include linux-ptrace.h.
af96c192
YQ
16767 * Makefile.in (linux_ptrace_h): New.
16768 (linux-low.o): Depends on linux-ptrace.h.
16769
03f2bd59
JK
167702011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16771
16772 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16773 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16774 (remote_prepare): New function with most of the TCP code from ...
16775 (remote_open): ... here. Detect PORT here unconditionally. Move also
16776 setting transport_is_reliable.
16777 * server.c (run_once): New variable.
16778 (gdbserver_usage): Document it.
16779 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16780 the first run if RUN_ONCE.
16781 * server.h (run_once, remote_prepare): New declarations.
16782
7a9dd1b2
TT
167832011-04-19 Tom Tromey <tromey@redhat.com>
16784
16785 * win32-low.c (handle_load_dll): Remove duplicate "the".
16786
81239425
PM
167872011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16788
16789 Remove support for old Cygwin 1.5 versions.
16790 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16791 function to avoid warning.
16792 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16793 warning.
16794
9e0627f1
PM
167952011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16796
16797 * gdbserver/server.h (Macro _): Define it if not available.
16798
588eebee
MS
167992011-03-14 Michael Snyder <msnyder@vmware.com>
16800
348af9f7 16801 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16802
43f70d4c
JB
168032011-03-10 Joel Brobecker <brobecker@adacore.com>
16804
16805 * Makefile.in (maintainer-clean realclean distclean): Remove
16806 "make ... subdir_do" command.
16807
348af9f7
MS
168082011-03-10 Michael Snyder <msnyder@vmware.com>
16809
16810 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16811
16812 * server.c (handle_v_run): Free alloced buffer on early return.
16813
e637a4f5
YQ
168142011-03-09 Yao Qi <yao@codesourcery.com>
16815
16816 Revert:
16817 2011-03-04 Yao Qi <yao@codesourcery.com>
16818
16819 * Makefile.in: Remove GNU make feature --directory.
16820
16821 2011-03-05 Yao Qi <yao@codesourcery.com>
16822
16823 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16824 (subdir_do): New make target. Copied from gdb/Makefile.
16825 (maintainer-clean, realclean, distclean, clean): Call corresponding
16826 make targets in common/Makefile.
16827
16828 2011-02-11 Yao Qi <yao@codesourcery.com>
16829
16830 * configure.ac: Call AC_PROG_RANLIB.
16831 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16832 * configure: Regenerate.
16833
e6edda56
JK
168342011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16835
16836 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16837
e5141119
JB
168382011-03-06 Yao Qi <yao@codesourcery.com>
16839
16840 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16841
64794aa4
JB
168422011-03-05 Yao Qi <yao@codesourcery.com>
16843
16844 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16845 (subdir_do): New make target. Copied from gdb/Makefile.
16846 (maintainer-clean, realclean, distclean, clean): Call corresponding
16847 make targets in common/Makefile.
16848
7a762829
YQ
168492011-03-04 Yao Qi <yao@codesourcery.com>
16850
16851 * Makefile.in: Remove GNU make feature --directory.
16852
348af9f7
MS
168532011-03-04 Michael Snyder <msnyder@vmware.com>
16854
16855 * server.c (queue_stop_reply): Call xmalloc not malloc.
16856
168572011-03-02 Michael Snyder <msnyder@vmware.com>
16858
16859 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16860
9f72fee2
MS
168612011-02-28 Michael Snyder <msnyder@vmware.com>
16862
588eebee
MS
16863 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16864 (cmd_qtframe): Ditto.
16865 (cmd_qtbuffer): Ditto.
16866 (cmd_bigqtbuffer): Ditto.
16867
9f72fee2
MS
16868 * utils.c (decimal2str): Initialize 'width' to nine, then
16869 don't mess with it.
16870
8040bd49
UW
168712011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16872
16873 * hostio.c (require_data): Free *data, not data.
16874
7e52cbd0
JK
168752011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16876
16877 * hostio.c (require_data): Use free, not xfree.
16878
9130f83e
MS
168792011-02-27 Michael Snyder <msnyder@vmware.com>
16880
4b812f4e
MS
16881 * server.c (handle_query): Discard unused value.
16882
9130f83e
MS
16883 * hostio.c (require_data): Free malloc memory before returning
16884 error.
16885
69d37113
MS
168862011-02-26 Michael Snyder <msnyder@vmware.com>
16887
16888 * linux-low.c (list_threads): Call closedir for dirent.
16889
35f5825a
MS
168902011-02-27 Michael Snyder <msnyder@vmware.com>
16891
2a589cef
MS
16892 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16893 a case statement falls through.
16894
0adea5f7
MS
16895 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16896
35f5825a
MS
16897 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16898 in comparison.
16899
238f1c74
MS
169002011-02-26 Michael Snyder <msnyder@vmware.com>
16901
16902 * utils.c (decimal2str): Eliminate dead code and dead param.
16903 (pulongest): Drop dead param from call to decimal2str.
16904 (plongest): Ditto.
16905
633ff500
JB
169062011-02-24 Joel Brobecker <brobecker@adacore.com>
16907
16908 Revert the following patch (not approved yet):
16909 2011-02-21 Hui Zhu <teawater@gmail.com>
16910 * tracepoint.c (tp_printf): New function.
16911 (eval_agent_expr): Handle gdb_agent_op_printf.
16912
f9c6ff72
HZ
169132011-02-21 Hui Zhu <teawater@gmail.com>
16914
16915 * tracepoint.c (tp_printf): New function.
16916 (eval_agent_expr): Handle gdb_agent_op_printf.
16917
94d5e490
TT
169182011-02-18 Tom Tromey <tromey@redhat.com>
16919
16920 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16921 (tracepoint.o): Likewise.
16922 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16923 (gdb_agent_op_names): Likewise.
16924
c7f96d2b
TT
169252011-02-18 Tom Tromey <tromey@redhat.com>
16926
16927 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16928 gdb_agent_op_rot>: New constants.
16929 (gdb_agent_op_names): Add pick and roll.
16930 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16931 cases.
16932
0feedb2c
JK
169332011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16934
16935 * aclocal.m4: Regenerated with aclocal-1.11.1.
16936
b3b9301e
PA
169372011-02-14 Pedro Alves <pedro@codesourcery.com>
16938
16939 * server.c (handle_qxfer_traceframe_info): New.
16940 (qxfer_packets): Register "traceframe-info".
16941 (handle_query): Report support for qXfer:traceframe-info:read+.
16942 * tracepoint.c (match_blocktype): New.
16943 (traceframe_find_block_type): Rename to ...
16944 (traceframe_walk_blocks): ... this. Add callback filter argument,
16945 and use it.
16946 (traceframe_find_block_type): New, reimplemented on top of
16947 traceframe_walk_blocks.
16948 (build_traceframe_info_xml): New.
16949 (traceframe_read_info): New.
16950 * server.h (traceframe_read_info): Declare.
16951
4f3e6fb7
YQ
169522011-02-11 Yao Qi <yao@codesourcery.com>
16953
16954 * configure.ac: Call AC_PROG_RANLIB.
16955 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16956 * configure: Regenerate.
16957
764880b7
PA
169582011-02-07 Pedro Alves <pedro@codesourcery.com>
16959
16960 * server.c (gdb_read_memory): Change return semantics to allow
16961 partial transfers.
16962 (handle_search_memory_1): Adjust.
16963 (process_serial_event) <'m' packet>: Handle partial transfers.
16964 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16965
1c79eb8a
PA
169662011-01-28 Pedro Alves <pedro@codesourcery.com>
16967
16968 * regcache.c (init_register_cache): Initialize
16969 regcache->register_status.
16970 (free_register_cache): Release regcache->register_status.
16971 (regcache_cpy): Copy register_status.
16972 (registers_to_string): Print 'x's for unavailable registers.
16973 (supply_register): Mark the register's status valid or
16974 unavailable, depending on whether a buffer was passed in or not.
16975 (supply_register_zeroed): New.
16976 (supply_regblock): Mark the registers' status valid or
16977 unavailable, depending on whether a buffer was passed in or not.
16978 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16979 (struct regcache): New `register_status' field.
16980 (supply_register_zeroed): Declare.
16981 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16982 supply_register_zeroed, rather than passing a NULL buffer to
16983 supply_register.
16984 * tracepoint.c (fetch_traceframe_registers): Update comment.
16985
85724a0e
PA
169862011-01-28 Pedro Alves <pedro@codesourcery.com>
16987
16988 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16989 buffer explicit.
16990
d08aafef
PA
169912011-01-25 Pedro Alves <pedro@codesourcery.com>
16992
16993 * server.h (decode_xfer_write): Change prototype.
16994 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16995 and don't extract the annex here.
16996 * server.c (decode_xfer_read): Remove `annex' parameter,
16997 and don't extract the annex here.
16998 (decode_xfer): New.
16999 (struct qxfer): New.
17000 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17001 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17002 (handle_qxfer_statictrace): New functions, abstracted out from
17003 handle_query, and made to use the struct qxfer interface.
17004 (handle_threads_qxfer_proper): Rename to ...
17005 (handle_qxfer_threads_proper): ... this.
17006 (handle_threads_qxfer): Rename to ...
17007 (handle_qxfer_threads): ... this. Adjust.
17008 (qxfer_packets): New array.
17009 (handle_qxfer): New function.
17010 (handle_query): Use handle_qxfer.
17011
493e2a69
MS
170122011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17013
17014 * gdbreplay.c: Shorten lines of >= 80 columns.
17015 * linux-low.c: Ditto.
17016 * linux-ppc-low.c: Ditto.
17017 * linux-s390-low.c: Ditto.
17018 * linux-sparc-low.c: Ditto.
17019 * linux-x86-low.c: Ditto.
17020 * linux-xtensa-low.c: Ditto.
17021 * mem-break.c: Ditto.
17022 * nto-low.c: Ditto.
17023 * regcache.h: Ditto.
17024 * remote-utils.c: Ditto.
17025 * server.c: Ditto.
17026 * server.h: Ditto.
17027 * thread-db.c: Ditto.
17028 * tracepoint.c: Ditto.
17029 * utils.c: Ditto.
17030 * win32-low.h: Ditto.
17031
44944448
JB
170322011-01-05 Joel Brobecker <brobecker@adacore.com>
17033
17034 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17035 update.
17036
71ce852c
JB
170372011-01-01 Joel Brobecker <brobecker@adacore.com>
17038
17039 * server.c (gdbserver_version): Update copyright year in version
17040 output.
17041 * gdbreplay.c (gdbreplay_version): Ditto.
17042
eb826dc6
MF
170432010-12-29 Jie Zhang <jie.zhang@analog.com>
17044
17045 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17046 * linux-bfin-low.c: New file.
17047 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17048 PT_DATA_ADDR for BFIN targets.
17049 * Makefile.in (SFILES): Add linux-bfin-low.c.
17050 (clean): Remove reg-bfin.c.
17051 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17052 * README: Mention supported Blackfin targets.
17053
39ab222a
MF
170542010-12-23 Mike Frysinger <vapier@gentoo.org>
17055
17056 * .gitignore: New file.
17057
a1f2ce7d
MF
170582010-11-16 Mike Frysinger <vapier@gentoo.org>
17059
17060 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17061
f474844c
JZ
170622010-10-22 Jie Zhang <jie@codesourcery.com>
17063
17064 * Makefile.in: Add FLAGS_TO_PASS variable.
17065 (install): Remove dependency of install-only and recursively
17066 invoke make for install-only.
17067
f1048712
DE
170682010-10-04 Doug Evans <dje@google.com>
17069
17070 * Makefile.in (uninstall): Use $(DESTDIR).
17071
b53a1623
PA
170722010-09-24 Pedro Alves <pedro@codesourcery.com>
17073
e6ee044d
PA
17074 PR gdb/11842
17075
b53a1623
PA
17076 * linux-x86-low.c (compat_siginfo_from_siginfo)
17077 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17078 si_code is < 0. Check for si_code == SI_TIMER before checking for
17079 si_code < 0.
17080
fa1bd1e4
JB
170812010-09-13 Joel Brobecker <brobecker@adacore.com>
17082
17083 * lynx-i386-low.c: New file.
17084 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17085
47fac8f8
JB
170862010-09-13 Joel Brobecker <brobecker@adacore.com>
17087
17088 * lynx-low.c (ptrace_request_to_str): Remove handling for
17089 request values that have been removed in LynxOS 5.x.
17090
1adfc54d
JB
170912010-09-13 Joel Brobecker <brobecker@adacore.com>
17092
17093 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17094 <ptrace.h>
17095
c2a66c29
NS
170962010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17097
17098 * configure.ac: Add --enable-inprocess-agent option.
17099 * configure: Rebuilt.
17100
32fcada3
YQ
171012010-09-06 Yao Qi <yao@codesourcery.com>
17102
17103 * linux-low.c (linux_kill): Remove unused variable.
17104 (linux_stabilize_threads): Likewise.
17105 * server.c (start_inferior): Likewise.
17106 (queue_stop_reply_callback): Likewise.
17107 * tracepoint.c (do_action_at_tracepoint): Likewise.
17108
0cccb683
YQ
171092010-09-06 Yao Qi <yao@codesourcery.com>
17110
17111 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17112 on return.
17113
423ec54c
JK
171142010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17115
17116 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17117
12ac6819
PA
171182010-09-06 Pedro Alves <pedro@codesourcery.com>
17119
17120 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17121 "$(IPA_DEPFILES)".
17122
8ed54b31
JB
171232010-09-01 Joel Brobecker <brobecker@adacore.com>
17124
17125 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17126 gdbserver/lynx-ppc-low.c: New files.
17127 * Makefile.in (lynx_low_h): New variable.
17128 (lynx-low.o, lynx-ppc-low.o): New rules.
17129 * configure.ac: On LynxOS, link with -lnetinet.
17130 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17131 * configure: regenerate.
17132
bb0116a4
JB
171332010-09-01 Joel Brobecker <brobecker@adacore.com>
17134
17135 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17136 * configure.ac: Add check for vasprintf and vsnprintf.
17137 * configure, config.in: Regenerate.
17138 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17139
a778ab81 171402010-09-01 Joel Brobecker <brobecker@adacore.com>
17141
17142 * gdbreplay.c: Move include of alloca.h up, next to include of
17143 malloc.h.
17144 * server.h: Add include of malloc.h.
17145 * mem-break.c: Remove include of malloc.h.
17146 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17147
8b034a19 171482010-09-01 Joel Brobecker <brobecker@adacore.com>
17149
17150 * Makefile.in (memmem.o): Build with -Wno-error.
17151
171522010-09-01 Joel Brobecker <brobecker@adacore.com>
17153
17154 * utils.c (xsnprintf): Make non-static.
17155 * server.h: Add xsnprintf declaration.
17156 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17157 replace calls to snprintf by calls to xsnprintf throughout.
17158
171592010-09-01 Joel Brobecker <brobecker@adacore.com>
17160
17161 * configure.ac: Add configure check for alloca.
17162 * configure, config.in: Regenerate.
17163 * server.h: Include alloca.h if it exists.
17164 * gdbreplay.c: Include alloca.h if it exists.
17165
1a981360
PA
171662010-08-28 Pedro Alves <pedro@codesourcery.com>
17167
17168 * linux-low.c (__SIGRTMIN): Define if not already defined.
17169 (linux_create_inferior): Check for __ANDROID__ rather than
17170 __SIGRTMIN.
17171 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17172 are already deferred.
17173 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17174 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17175 stopped and already has a pending signal to report.
17176 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17177 a pending signal to report or is moving out of a jump pad.
17178 (linux_init_signals): Check for __ANDROID__ rather than
17179 __SIGRTMIN.
17180
b4d51a55
PA
171812010-08-28 Pedro Alves <pedro@codesourcery.com>
17182
17183 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17184 debug_threads check. Avoid a linear search when not doing debug
17185 output.
17186
ec48365d
PA
171872010-08-27 Pedro Alves <pedro@codesourcery.com>
17188
17189 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17190 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17191 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17192 (process_event): Change local fd's type to gdb_fildes_t.
17193 (create_file_handler): Adjust prototype.
17194 (delete_file_handler): Adjust prototype.
17195 (handle_file_event): Adjust prototype. Use pfildes.
17196 (create_file_event): Adjsut prototype.
17197 * remote-utils.c (remote_desc, listen_desc): Change type to
17198 gdb_fildes_t.
17199 * server.h: New gdb_fildes_t typedef.
17200 [USE_WIN32API]: Include winsock2.h.
17201 (delete_file_handler, add_file_handler): Adjust prototypes.
17202 (pfildes): Declare.
17203 * utils.c (pfildes): New.
17204
854d88f0
PA
172052010-08-27 Pedro Alves <pedro@codesourcery.com>
17206
17207 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17208 * configure: Regenerate.
17209
0146f85b
PA
172102010-08-27 Pedro Alves <pedro@codesourcery.com>
17211
17212 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17213 (linux_done_accessing_memory): ... this.
17214 (linux_target_ops): Adjust.
17215 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17216 * nto-low.c (nto_target_ops): Adjust comment.
17217 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17218 * spu-low.c (spu_target_ops): Adjust comment.
17219 * target.h (target_ops): Rename unprepare_to_access_memory field
17220 to done_accessing_memory.
17221 (unprepare_to_access_memory): Rename to ...
17222 (done_accessing_memory): ... this.
17223
90d74c30
PA
172242010-08-26 Pedro Alves <pedro@codesourcery.com>
17225
17226 * linux-low.c (linux_prepare_to_access_memory): New.
17227 (linux_unprepare_to_access_memory): New.
17228 (linux_target_ops): Install them.
17229 * server.c (read_memory): Rename to ...
17230 (gdb_read_memory): ... this. Use
17231 prepare_to_access_memory/prepare_to_access_memory.
17232 (write_memory): Rename to ...
17233 (gdb_write_memory): ... this. Use
17234 prepare_to_access_memory/prepare_to_access_memory.
17235 (handle_search_memory_1): Adjust.
17236 (process_serial_event): Adjust.
17237 * target.h (struct target_ops): New fields
17238 prepare_to_access_memory and unprepare_to_access_memory.
17239 (prepare_to_access_memory, unprepare_to_access_memory): New.
17240 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17241 prepare_to_access_memory/prepare_to_access_memory.
17242 * nto-low.c (nto_target_ops): Adjust.
17243 * spu-low.c (spu_target_ops): Adjust.
17244 * win32-low.c (win32_target_ops): Adjust.
17245
fd467969
PA
172462010-08-26 Pedro Alves <pedro@codesourcery.com>
17247
17248 * Makefile.in (WARN_CFLAGS): Get it from configure.
17249 (WERROR_CFLAGS): New.
17250 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17251 * configure.ac: Introduce --enable-werror, which adds -Werror to
17252 the compiler command line. Enabled by default. Disable with
17253 --disable-werror. Add -Wdeclaration-after-statement
17254 Wpointer-arith and -Wformat-nonliteral to warning flags.
17255 * configure: Regenerate.
17256
331e2f5f
PA
172572010-08-26 Pedro Alves <pedro@codesourcery.com>
17258
17259 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17260
e581f2b4
PA
172612010-08-26 Pedro Alves <pedro@codesourcery.com>
17262
17263 * gdbreplay.c (remote_error): New.
17264 (gdbchar): New.
17265 (expect): Use gdbchar. Check for error reading from GDB.
17266 Clarify sync error output.
17267 (play): Check for errors writing to GDB.
17268 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17269 * remote-utils.c (getpkt): Check for errors writing to the remote
17270 descriptor.
17271
3c11dd79
PA
172722010-08-25 Pedro Alves <pedro@codesourcery.com>
17273
17274 * linux-low.c (linux_wait_1): Move non-debugging code out of
17275 `debug_threads' control.
17276
d20a8ad9
PA
172772010-08-25 Pedro Alves <pedro@codesourcery.com>
17278
17279 * linux-low.c (linux_wait_1): Don't set last_status here.
17280 * server.c (push_event, queue_stop_reply_callback): Assert we're
17281 not pushing a TARGET_WAITKIND_IGNORE event.
17282 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17283 (myresume, handle_target_event): Set the thread's last_resume_kind
17284 and last_status from the target returned status.
17285
964e4306
PA
172862010-08-25 Pedro Alves <pedro@codesourcery.com>
17287
17288 PR threads/10729
17289
17290 * linux-x86-low.c (update_debug_registers_callback): New.
17291 (i386_dr_low_set_addr): Use it.
17292 (i386_dr_low_get_addr): New.
17293 (i386_dr_low_set_control): Use update_debug_registers_callback.
17294 (i386_dr_low_get_control): New.
17295 (i386_dr_low_get_status): Adjust.
17296 * linux-low.c (linux_stop_lwp): New.
17297 * linux-low.h (linux_stop_lwp): Declare.
17298
17299 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17300 argument instead of a i386_debug_reg_state.
17301 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17302 a i386_debug_reg_state.
17303 (i386_insert_aligned_watchpoint): Adjust.
17304 (i386_remove_aligned_watchpoint): Adjust.
17305 (i386_low_stopped_data_address): Read the debug registers from the
17306 inferior instead of from the mirrors.
17307 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17308 (i386_dr_low_get_addr): Declare.
17309 (i386_dr_low_get_control): Declare.
17310 (i386_dr_low_get_status): Change prototype.
17311
17312 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17313 (i386_dr_low_get_addr): New.
17314 (i386_dr_low_get_control): New.
17315 (i386_dr_low_get_status): Adjust prototype. Return
17316 dr_status_mirror.
17317 (i386_initial_stuff): Clear dr_status_mirror and
17318 dr_control_mirror.
17319 (i386_get_thread_context): Adjust.
17320 (i386_set_thread_context): Adjust.
17321 (i386_thread_added): Adjust.
17322
5f21a75b
PA
173232010-08-24 Pedro Alves <pedro@codesourcery.com>
17324
17325 * linux-low.h (linux_thread_area): Delete declaration.
17326
3e4c1235
TS
173272010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17328
17329 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17330 after its termination.
17331
1971b033
PA
173322010-08-09 Pedro Alves <pedro@codesourcery.com>
17333
17334 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17335 (gdb_wants_all_stopped): Delete.
17336 (linux_wait_1): Don't call them.
17337 * server.c (handle_v_cont): Tag all threads as want-stopped.
17338 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17339 stopped as "client-wants-stopped".
17340
310444ac
PA
173412010-07-31 Pedro Alves <pedro@codesourcery.com>
17342
17343 * Makefile.in (signals_h): New.
17344 (server_h): Depend on it.
17345 (server.o): Don't depend on $(signals_def).
17346 (signals.o): Depend on $(signals_def).
17347
a19cae16
JK
173482010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17349
17350 * Makefile.in (signals_def): New.
17351 (server_h): Append include/gdb/signals.h and signals_def.
17352 (server.o): Append signals_def.
17353
30d50328
JK
173542010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17355
17356 * server.c (handle_target_event): Use target_signal_to_host for
17357 resume_info.sig initialization.
17358 * target.h (struct thread_resume) <sig>: New comment.
17359
5c3216e2
OS
173602010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17361
c6f46ca0
OS
17362 * server.c (handle_query): strcpy() the returned string from paddress()
17363 instead of sprintf().
5c3216e2
OS
17364 * utils.c (paddress): Return phex_nz().
17365
6bd31874
JB
173662010-07-07 Joel Brobecker <brobecker@adacore.com>
17367
17368 * server.c (handle_v_cont): Call mourn_inferior if process
17369 just exited.
17370 (myresume): Likewise.
17371
0fb4aa4b
PA
173722010-07-01 Pedro Alves <pedro@codesourcery.com>
17373
17374 Static tracepoints, and integration with UST.
17375
17376 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17377 * mem-break.c (uninsert_all_breakpoints)
17378 (reinsert_all_breakpoints): New.
17379 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17380 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17381 (gdb_agent_ust_loaded, helper_thread_id)
17382 (gdb_agent_helper_thread_id): New macros.
17383 (struct ipa_sym_addresses): Add addr_ust_loaded,
17384 addr_helper_thread_id, addr_cmd_buf.
17385 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17386 (in_process_agent_loaded_ust): New.
17387 (write_e_ust_not_loaded): New.
17388 (maybe_write_ipa_ust_not_loaded): New.
17389 (struct collect_static_trace_data_action): New.
17390 (enum tracepoint_type) <static_tracepoint>: New.
17391 (struct tracepoint) <handle>: Mention static tracepoints.
17392 (struct static_tracepoint_ctx): New.
17393 (CMD_BUF_SIZE): New.
17394 (add_tracepoint_action): Handle static tracepoint actions.
17395 (unprobe_marker_at): New.
17396 (clear_installed_tracepoints): Handle static tracepoints.
17397 (cmd_qtdp): Handle static tracepoints.
17398 (probe_marker_at): New.
17399 (cmd_qtstart): Handle static tracepoints.
17400 (response_tracepoint): Handle static tracepoints.
17401 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17402 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17403 (get_context_regcache): Handle static tracepoints.
17404 (do_action_at_tracepoint): Handle static tracepoint actions.
17405 (traceframe_find_block_type): Handle static trace data blocks.
17406 (traceframe_read_sdata): New.
17407 (download_tracepoints): Download static tracepoint actions.
17408 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17409 (GDB_PROBE_NAME): New.
17410 (ust_ops): New.
17411 (GET_UST_SYM): New.
17412 (USTF): New.
17413 (dlsym_ust): New.
17414 (ust_marker_to_static_tracepoint): New.
17415 (gdb_probe): New.
17416 (collect_ust_data_at_tracepoint): New.
17417 (gdb_ust_probe): New.
17418 (UNIX_PATH_MAX, SOCK_DIR): New.
17419 (gdb_ust_connect_sync_socket): New.
17420 (resume_thread, stop_thread): New.
17421 (run_inferior_command): New.
17422 (init_named_socket): New.
17423 (gdb_ust_socket_init): New.
17424 (cstr_to_hexstr): New.
17425 (next_st): New.
17426 (first_marker, next_marker): New.
17427 (response_ust_marker): New.
17428 (cmd_qtfstm, cmd_qtsstm): New.
17429 (unprobe_marker_at, probe_marker_at): New.
17430 (cmd_qtstmat, gdb_ust_thread): New.
17431 (gdb_ust_init): New.
17432 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17433 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17434 (ST_REGENTRY): New.
17435 (x86_64_st_collect_regmap): New.
17436 (X86_64_NUM_ST_COLLECT_GREGS): New.
17437 (AMD64_RIP_REGNUM): New.
17438 (supply_static_tracepoint_registers): New.
17439 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17440 (ST_REGENTRY): New.
17441 (i386_st_collect_regmap): New.
17442 (i386_NUM_ST_COLLECT_GREGS): New.
17443 (supply_static_tracepoint_registers): New.
17444 * server.c (handle_query): Handle qXfer:statictrace:read.
17445 <qSupported>: Report support for StaticTracepoints, and
17446 qXfer:statictrace:read features.
17447 * server.h (traceframe_read_sdata)
17448 (supply_static_tracepoint_registers): Declare.
17449 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17450 (unpack_varlen_hex): Include in IPA build.
17451 * Makefile.in (ustlibs, ustinc): New.
17452 (IPA_OBJS): Add remote-utils-ipa.o.
17453 ($(IPA_LIB)): Link -ldl and -lpthread.
17454 (UST_CFLAGS): New.
17455 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17456 * config.in, configure: Regenerate.
17457
9e4344e5
PA
174582010-06-20 Ian Lance Taylor <iant@google.com>
17459 Pedro Alves <pedro@codesourcery.com>
17460
17461 * linux-x86-low.c (always_true): Delete.
17462 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17463 trying to fool the compiler with always_true.
17464
c6beb2cb
PA
174652010-06-20 Pedro Alves <pedro@codesourcery.com>
17466
17467 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17468 conditions in gdbserver.
17469
d2ed6730
UW
174702010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17471
17472 * spu-low.c (spu_read_memory): Wrap around local store limit.
17473 (spu_write_memory): Likewise.
17474
4e29fb54
PA
174752010-06-15 Pedro Alves <pedro@codesourcery.com>
17476
17477 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17478 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17479 LONGEST uses.
17480 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17481 uses.
17482 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17483 uses with LONGEST uses.
17484
6a271cae
PA
174852010-06-14 Stan Shebs <stan@codesourcery.com>
17486 Pedro Alves <pedro@codesourcery.com>
17487
17488 Bytecode compiler.
17489
17490 * linux-x86-low.c: Include limits.h.
17491 (add_insns): New.
17492 (always_true): New.
17493 (EMIT_ASM): New.
17494 (EMIT_ASM32): New.
17495 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17496 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17497 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17498 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17499 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17500 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17501 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17502 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17503 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17504 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17505 (amd64_emit_void_call_2): New.
17506 (amd64_emit_ops): New.
17507 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17508 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17509 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17510 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17511 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17512 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17513 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17514 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17515 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17516 (i386_emit_stack_adjust, i386_emit_int_call_1)
17517 (i386_emit_void_call_2): New.
17518 (i386_emit_ops): New.
17519 (x86_emit_ops): New.
17520 (the_low_target): Install x86_emit_ops.
17521 * server.h (struct emit_ops): New.
17522 (get_raw_reg_func_addr): Declare.
17523 (current_insn_ptr, emit_error): Declare.
17524 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17525 (set_trace_state_variable_value): New defines.
17526 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17527 addr_get_trace_state_variable_value and
17528 addr_set_trace_state_variable_value.
17529 (symbol_list): New fields for get_raw_reg,
17530 get_trace_state_variable_value and set_trace_state_variable_value.
17531 (condfn): New typedef.
17532 (struct tracepoint): New field `compiled_cond'.
17533 (do_action_at_tracepoint): Clear compiled_cond.
17534 (get_trace_state_variable_value, set_trace_state_variable_value):
17535 Export in the IPA.
17536 (condition_true_at_tracepoint): If there's a compiled condition,
17537 run that.
17538 (current_insn_ptr, emit_error): New globals.
17539 (struct bytecode_address): New.
17540 (get_raw_reg_func_addr): New.
17541 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17542 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17543 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17544 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17545 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17546 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17547 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17548 (compile_tracepoint_condition, compile_bytecodes): New.
17549 * target.h (emit_ops): Forward declare.
17550 (struct target_ops): New field emit_ops.
17551 (target_emit_ops): New.
17552 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17553 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17554 * linux-low.c (linux_emit_ops): New.
17555 (linux_target_ops): Install it.
17556 * linux-low.h (struct linux_target_ops): New field emit_ops.
17557
92b72907
UW
175582010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17559
17560 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17561 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17562
fa593d66
PA
175632010-06-01 Pedro Alves <pedro@codesourcery.com>
17564 Stan Shebs <stan@codesourcery.com>
17565
17566 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17567 (all): Depend on $(extra_libraries).
17568 (install-only): Install the IPA.
17569 (IPA_OBJS, IPA_LIB): New.
17570 (clean): Remove the IPA lib.
17571 (IPAGENT_CFLAGS): New.
17572 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17573 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17574 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17575 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17576 * configure.ac: Check for atomic builtins support in the compiler.
17577 (IPA_DEPFILES, extra_libraries): Define.
17578 * configure.srv (ipa_obj): Add description.
17579 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17580 (i[34567]86-*-linux*): Set ipa_obj.
17581 (x86_64-*-linux*): Set ipa_obj.
17582 * linux-low.c (stabilizing_threads): New.
17583 (supports_fast_tracepoints): New.
17584 (linux_detach): Stabilize threads before detaching.
17585 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17586 the lwp is either not stabilizing, or is moving out of a jump pad.
17587 (linux_fast_tracepoint_collecting): New.
17588 (maybe_move_out_of_jump_pad): New.
17589 (enqueue_one_deferred_signal): New.
17590 (dequeue_one_deferred_signal): New.
17591 (linux_wait_for_event_1): If moving out of a jump pad, defer
17592 pending signals to later.
17593 (linux_stabilize_threads): New.
17594 (linux_wait_1): Check if threads need moving out of jump pads, and
17595 do it if so.
17596 (stuck_in_jump_pad_callback): New.
17597 (move_out_of_jump_pad_callback): New.
17598 (lwp_running): New.
17599 (linux_resume_one_lwp): Handle moving out of jump pads.
17600 (linux_set_resume_request): Dequeue deferred signals.
17601 (need_step_over_p): Also step over fast tracepoint jumps.
17602 (start_step_over): Also uninsert fast tracepoint jumps.
17603 (finish_step_over): Also reinsert fast tracepoint jumps.
17604 (linux_install_fast_tracepoint_jump): New.
17605 (linux_target_ops): Install linux_stabilize_threads and
17606 linux_install_fast_tracepoint_jump_pad.
17607 * linux-low.h (linux_target_ops) <get_thread_area,
17608 install_fast_tracepoint_jump_pad>: New fields.
17609 (struct lwp_info) <collecting_fast_tracepoint,
17610 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17611 (linux_get_thread_area): Declare.
17612 * linux-x86-low.c (jump_insn): New.
17613 (x86_get_thread_area): New.
17614 (append_insns): New.
17615 (push_opcode): New.
17616 (amd64_install_fast_tracepoint_jump_pad): New.
17617 (i386_install_fast_tracepoint_jump_pad): New.
17618 (x86_install_fast_tracepoint_jump_pad): New.
17619 (the_low_target): Install x86_get_thread_area and
17620 x86_install_fast_tracepoint_jump_pad.
17621 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17622 (struct fast_tracepoint_jump): New.
17623 (fast_tracepoint_jump_insn): New.
17624 (fast_tracepoint_jump_shadow): New.
17625 (find_fast_tracepoint_jump_at): New.
17626 (fast_tracepoint_jump_here): New.
17627 (delete_fast_tracepoint_jump): New.
17628 (set_fast_tracepoint_jump): New.
17629 (uninsert_fast_tracepoint_jumps_at): New.
17630 (reinsert_fast_tracepoint_jumps_at): New.
17631 (set_breakpoint_at): Use write_inferior_memory.
17632 (uninsert_raw_breakpoint): Use write_inferior_memory.
17633 (check_mem_read): Mask out fast tracepoint jumps.
17634 (check_mem_write): Mask out fast tracepoint jumps.
17635 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17636 (set_fast_tracepoint_jump): Declare.
17637 (delete_fast_tracepoint_jump)
17638 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17639 (reinsert_fast_tracepoint_jumps_at): Declare.
17640 * regcache.c: Don't compile many functions when building the
17641 in-process agent library.
17642 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17643 the register buffer in the heap.
17644 (free_register_cache): If the register buffer isn't owned by the
17645 regcache, don't free it.
17646 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17647 pre-existing register caches.
17648 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17649 type.
17650 (convert_ascii_to_int): : Constify `from' parameter type.
17651 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17652 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17653 the needed buffer in-place.
17654 (relocate_instruction): New.
17655 * server.c (handle_query) <qSymbols>: If the target supports
17656 tracepoints, give it a chance of looking up symbols. Report
17657 support for fast tracepoints.
17658 (handle_status): Stabilize threads.
17659 (process_serial_event): Adjust.
17660 * server.h (struct fast_tracepoint_jump): Forward declare.
17661 (struct process_info) <fast_tracepoint_jumps>: New field.
17662 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17663 (decode_X_packet, decode_M_packet): Adjust.
17664 (relocate_instruction): Declare.
17665 (in_process_agent_loaded): Declare.
17666 (tracepoint_look_up_symbols): Declare.
17667 (struct fast_tpoint_collect_status): Declare.
17668 (fast_tracepoint_collecting): Declare.
17669 (force_unlock_trace_buffer): Declare.
17670 (handle_tracepoint_bkpts): Declare.
17671 (initialize_low_tracepoint)
17672 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17673 * target.h (struct target_ops) <stabilize_threads,
17674 install_fast_tracepoint_jump_pad>: New fields.
17675 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17676 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17677 [HAVE_STDINT_H]: Include stdint.h.
17678 (trace_debug_1): Rename to ...
17679 (trace_vdebug): ... this.
17680 (trace_debug): Rename to ...
17681 (trace_debug_1): ... this. Add `level' parameter.
17682 (trace_debug): New.
17683 (ATTR_USED, ATTR_NOINLINE): New.
17684 (IP_AGENT_EXPORT): New.
17685 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17686 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17687 (about_to_request_buffer_space, trace_buffer_is_full)
17688 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17689 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17690 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17691 (traceframe_write_count, traceframes_created)
17692 (trace_state_variables)
17693 New renaming defines.
17694 (struct ipa_sym_addresses): New.
17695 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17696 (symbol_list): New.
17697 (ipa_sym_addrs): New.
17698 (all_tracepoint_symbols_looked_up): New.
17699 (in_process_agent_loaded): New.
17700 (write_e_ipa_not_loaded): New.
17701 (maybe_write_ipa_not_loaded): New.
17702 (tracepoint_look_up_symbols): New.
17703 (debug_threads) [IN_PROCESS_AGENT]: New.
17704 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17705 (UNKNOWN_SIDE_EFFECTS): New.
17706 (stop_tracing): New.
17707 (flush_trace_buffer): New.
17708 (stop_tracing_bkpt): New.
17709 (flush_trace_buffer_bkpt): New.
17710 (read_inferior_integer): New.
17711 (read_inferior_uinteger): New.
17712 (read_inferior_data_pointer): New.
17713 (write_inferior_data_pointer): New.
17714 (write_inferior_integer): New.
17715 (write_inferior_uinteger): New.
17716 (struct collect_static_trace_data_action): Delete.
17717 (enum tracepoint_type): New.
17718 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17719 <actions_str, step_actions, step_actions_str>: Only include in
17720 GDBserver.
fa593d66
PA
17721 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17722 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17723 (tracepoints): Use IP_AGENT_EXPORT.
17724 (last_tracepoint): Don't include in the IPA.
17725 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17726 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17727 (alloced_trace_state_variables): New.
17728 (trace_state_variables): Use IP_AGENT_EXPORT.
17729 (traceframe_t): Delete unused variable.
17730 (circular_trace_buffer): Don't include in the IPA.
17731 (trace_buffer_start): Delete.
17732 (struct trace_buffer_control): New.
17733 (trace_buffer_free): Delete.
17734 (struct ipa_trace_buffer_control): New.
17735 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17736 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17737 New.
17738 (trace_buffer_ctrl): New.
17739 (TRACE_BUFFER_CTRL_CURR): New.
17740 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17741 Reimplement as macros.
17742 (trace_buffer_wrap): Delete.
17743 (traceframe_write_count, traceframe_read_count)
17744 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17745 (struct tracepoint_hit_ctx) <type>: New field.
17746 (struct fast_tracepoint_ctx): New.
17747 (memory_barrier): New.
17748 (cmpxchg): New.
17749 (record_tracepoint_error): Update atomically in the IPA.
17750 (clear_inferior_trace_buffer): New.
17751 (about_to_request_buffer_space): New.
17752 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17753 updating the same buffer.
17754 (add_tracepoint): Default the tracepoint's type to trap
17755 tracepoint, and orig_size to -1.
17756 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17757 internal variables.
17758 (create_trace_state_variable): New parameter `gdb'. Handle it.
17759 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17760 (cmd_qtdp): Handle fast tracepoints.
17761 (cmd_qtdv): Adjust.
17762 (max_jump_pad_size): New.
17763 (gdb_jump_pad_head): New.
17764 (get_jump_space_head): New.
17765 (claim_jump_space): New.
17766 (sort_tracepoints): New.
17767 (MAX_JUMP_SIZE): New.
17768 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17769 IPA.
17770 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17771 support. Upload fast traceframes, and delete internal IPA
17772 breakpoints.
17773 (stop_tracing_handler): New.
17774 (flush_trace_buffer_handler): New.
17775 (cmd_qtstop): Upload fast tracepoints.
17776 (response_tracepoint): Handle fast tracepoints.
17777 (tracepoint_finished_step): Upload fast traceframes. Set the
17778 tracepoint hit context's tracepoint type.
17779 (handle_tracepoint_bkpts): New.
17780 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17781 type. Add comment about fast tracepoints.
17782 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17783 non-existing action_str field.
17784 (get_context_regcache): Handle fast tracepoints.
17785 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17786 to the regcache.
17787 (fast_tracepoint_from_jump_pad_address): New.
17788 (fast_tracepoint_from_ipa_tpoint_address): New.
17789 (collecting_t): New.
17790 (force_unlock_trace_buffer): New.
17791 (fast_tracepoint_collecting): New.
17792 (collecting): New.
17793 (gdb_collect): New.
17794 (write_inferior_data_ptr): New.
17795 (target_tp_heap): New.
17796 (target_malloc): New.
17797 (download_agent_expr): New.
17798 (UALIGN): New.
17799 (download_tracepoints): New.
17800 (download_trace_state_variables): New.
17801 (upload_fast_traceframes): New.
17802 (IPA_FIRST_TRACEFRAME): New.
17803 (IPA_NEXT_TRACEFRAME_1): New.
17804 (IPA_NEXT_TRACEFRAME): New.
17805 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17806 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17807 (gdb_jump_pad_buffer_end): New.
17808 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17809 (initialize_tracepoint): Adjust.
17810 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17811 buffer. Initialize the low module.
17812 * utils.c (PREFIX, TOOLNAME): New.
17813 (malloc_failure): Use PREFIX.
17814 (error): In the IPA, an error causes an exit.
17815 (fatal, warning): Use PREFIX.
17816 (internal_error): Use TOOLNAME.
17817 (NUMCELLS): Increase to 10.
17818 * configure, config.in: Regenerate.
17819
d149dd1d
PA
178202010-06-01 Pedro Alves <pedro@codesourcery.com>
17821
17822 * server.c (handle_query) <qSupported>: Do two passes over the
17823 qSupported string to avoid nesting strtok.
17824
f6528abd
JK
178252010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17826
17827 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17828 (CDEPS): New.
17829 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17830 -Wl,--dynamic-list.
17831 * configure: Regenerate.
17832 * proc-service.list: New.
17833
ca2a87a0
JK
178342010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17835
17836 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17837 New comment.
17838
363a6e9f
OS
178392010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17840
17841 * gdbreplay.c (remote_open): Check error return from socket() call by
17842 its equality to -1 not by it being negative.
17843 * remote-utils.c (remote_open): Likewise.
17844
d23b6cb1
PA
178452010-05-23 Pedro Alves <pedro@codesourcery.com>
17846
17847 * config.h: Regenerate.
17848
28d3cf85
MK
178492010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17850
17851 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17852 doesn't provide PTRACE_GET_THREAD_AREA.
17853
fea36a59
MK
178542010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17855
17856 * linux-m68k-low.c: Include <asm/ptrace.h>
17857 (ps_get_thread_area): Implement.
17858
24b066ba
DE
178592010-05-03 Doug Evans <dje@google.com>
17860
17861 * event-loop.c (struct callback_event): New struct.
17862 (callback_list): New global.
17863 (append_callback_event, delete_callback_event): New functions.
17864 (process_callback): New function.
17865 (start_event_loop): Call it.
17866 * remote-utils.c (NOT_SCHEDULED): Define.
17867 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17868 moved out of readchar.
17869 (readchar): Rewrite. Call reschedule before returning.
17870 (reset_readchar): New function.
17871 (remote_close): Call it.
17872 (process_remaining, reschedule): New functions.
17873 * server.h (callback_handler_func): New typedef.
17874 (append_callback_event, delete_callback_event): Declare.
17875
9836d6ea
PA
178762010-05-03 Pedro Alves <pedro@codesourcery.com>
17877
17878 * proc-service.c (ps_pglobal_lookup): Use
17879 thread_db_look_up_one_symbol.
17880 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17881 parameter. Use it instead of all_symbols_looked_up.
17882 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17883 field.
17884 (all_symbols_looked_up): Don't declare.
17885 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17886 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17887 field.
17888 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17889 Set all_symbols_looked_up here.
17890 (thread_db_look_up_one_symbol): New.
17891 (thread_db_get_tls_address): Adjust.
17892 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17893 thread_db object on the heap, and tentatively set it in the
17894 process structure.
17895 (thread_db_init): Don't set all_symbols_looked_up here.
17896 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17897
7984d532
PA
178982010-05-03 Pedro Alves <pedro@codesourcery.com>
17899
17900 * linux-low.c (linux_kill, linux_detach): Adjust.
17901 (status_pending_p_callback): Remove redundant statement. Check
17902 for !TARGET_WAITIKIND_IGNORE, instead of
17903 TARGET_WAITKIND_STOPPED.
17904 (handle_tracepoints): Make sure LWP is locked. Adjust.
17905 (linux_wait_for_event_1): Adjust.
17906 (linux_cancel_breakpoints): New.
17907 (unsuspend_one_lwp): New.
17908 (unsuspend_all_lwps): New.
17909 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17910 (send_sigstop_callback): Change return type to int, add new
17911 `except' parameter and handle it.
17912 (suspend_and_send_sigstop_callback): New.
17913 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17914 pass them down. If SUSPEND, also increment the lwp's suspend
17915 count.
17916 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17917 (need_step_over_p): Don't consider suspended LWPs.
17918 (start_step_over): Adjust.
17919 (proceed_one_lwp): Change return type to int, add new `except'
17920 parameter and handle it.
17921 (unsuspend_and_proceed_one_lwp): New.
17922 (proceed_all_lwps): Use find_inferior instead of
17923 for_each_inferior.
17924 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17925 also decrement the suspend count of LWPs. Pass `except' down,
17926 instead of hacking its suspend count.
17927 (linux_pause_all): Add `freeze' parameter. Adjust.
17928 (linux_unpause_all): New.
17929 (linux_target_ops): Install linux_unpause_all.
17930 * server.c (handle_status): Adjust.
17931 * target.h (struct target_ops): New fields `unpause_all' and
17932 `cancel_breakpoints'. Add new parameter to `pause_all'.
17933 (pause_all): Add new `freeze' parameter.
17934 (unpause_all): New.
17935 (cancel_breakpoints): New.
17936 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17937 cancel breakpoints.
17938 (cmd_qtstart): Pause threads.
17939 (stop_tracing): Pause threads, and cancel breakpoints.
17940 * win32-low.c (win32_target_ops): Adjust.
17941
e471f25b
PA
179422010-05-03 Pedro Alves <pedro@codesourcery.com>
17943
17944 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17945 the inferior right away from here...
17946 (linux_wait_1): ... to here, and adjust to check the thread's
17947 last_resume_kind instead of the lwp's step or stop_expected flags.
17948
1915ef4f
PA
179492010-05-02 Pedro Alves <pedro@codesourcery.com>
17950
17951 * README: Use consistent `GDB' and `GDBserver' spellings.
17952
f9e39928
PA
179532010-05-02 Pedro Alves <pedro@codesourcery.com>
17954
17955 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17956 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17957 (linux_detach_one_lwp): Assume the lwp is stopped.
17958 (any_thread_of): Delete.
17959 (linux_detach): Stop all lwps here. Don't blindly delete all
17960 breakpoints.
17961 (delete_lwp_callback): New.
17962 (linux_mourn): Delete all lwps of the process that is gone.
17963 (linux_wait_1): Don't delete the last lwp of the process here.
17964 * mem-break.h (mark_breakpoints_out): Declare.
17965 * mem-break.c (mark_breakpoints_out): New.
17966 (free_all_breakpoints): Use it.
17967 * server.c (handle_target_event): If the process is gone, mark
17968 breakpoints out.
17969 * thread-db.c (struct thread_db) <create_bp>: New field.
17970 (thread_db_enable_reporting): Fix prototype. Store a thread event
17971 breakpoint reference in the thread_db struct.
17972 (thread_db_load_search): Clear the thread_db object.
17973 (try_thread_db_load_1): Ditto.
17974 (switch_to_process): New.
17975 (disable_thread_event_reporting): Use it.
17976 (remove_thread_event_breakpoints): New.
17977 (thread_db_detach, thread_db_mourn): Use it.
17978
1e7fc18c
PA
179792010-05-01 Pedro Alves <pedro@codesourcery.com>
17980
17981 * linux-low.c (linux_enable_event_reporting): New.
17982 (linux_wait_for_event_1, handle_extended_wait): Use it.
17983
02fc4de7
PA
179842010-04-30 Pedro Alves <pedro@codesourcery.com>
17985
17986 * linux-low.c (linux_kill_one_lwp, linux_kill)
17987 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17988 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17989 SIGSTOP even if the LWP is stopped.
17990 (send_sigstop_callback): New.
17991 (stop_all_lwps): Use send_sigstop_callback instead.
17992 (linux_resume_one_thread): Adjust.
17993 (proceed_one_lwp): Still proceed an LWP that the client has
17994 requested to stop, if we haven't reported it as stopped yet. Make
17995 sure that LWPs the client want stopped, have a pending SIGSTOP.
17996
bc3b5632
DE
179972010-04-26 Doug Evans <dje@google.com>
17998
ae1ada35
DE
17999 * server.c (handle_general_set): Make static.
18000
bc3b5632
DE
18001 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18002 Print received char after testing for error/eof instead of before.
18003 (input_interrupt): Tweak comment.
18004
65730243
DE
180052010-04-23 Doug Evans <dje@google.com>
18006
18007 * server.c (start_inferior): Print inferior argv if --debug.
18008
a8ae7dc0
AR
180092010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18010
18011 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18012 * nto-x86-low.c: Include server.h
18013
1c07cc19
PM
180142010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18015
18016 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18017 be consistent with other sources of this directory.
18018 (init_registers_amd64): Correct name of source file of this function
18019 in the comment.
18020
e0a61e09
PM
180212010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18022
18023 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18024 64-bit executables.
18025
54709339
PM
180262010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18027
18028 * win32-i386-low.c: Add 64-bit support.
18029 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18030 (init_registers_amd64): Declare.
18031 (mappings): Add 64-bit version of array.
18032 (init_windows_x86): New function.
18033 (the_low_target): Change init_arch field to init_windows_x86.
18034
e8f0053d
PM
180352010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18036
18037 * win32-low.c: Adapt to support also 64-bit architecture.
18038 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18039 (get_image_name): Use SIZE_T type for local variable `done'.
18040 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18041 (toolhelp_get_dll_name): Idem.
18042 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18043 Use uintptr_t typecast to avoid warning.
18044 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18045 (handle_exception): Use phex_nz to avoid warning.
18046 (win32_wait): Remove unused local variable `process'.
18047
c481e77e
PM
180482010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18049
18050 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18051 `amd64-avx.o'.
18052
12ea4b69
PM
180532010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18054
18055 * configure.ac: Use `ws2_32' library for srv_mingw.
18056 * configure: Regenerate.
18057 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18058 * remote-utils.c: Likewise.
18059
f6d1620c
L
180602010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18061
18062 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18063 if __x86_64__ is defined.
18064
8e642873
PM
180652010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18066
18067 * configure: Regenerate.
18068
711e434b
PM
180692010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18070
18071 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18072 * target.h (target_ops): New get_tib_address field.
18073 * win32-low.h (win32_thread_info): Add thread_local_base field.
18074 * win32-low.c (child_add_thread): Add tlb argument.
18075 Set thread_local_base field to TLB.
18076 (get_child_debug_event): Adapt to child_add_thread change.
18077 (win32_get_tib_address): New function.
18078 (win32_target_ops): Set get_tib_address field to
18079 win32_get_tib_address.
18080 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18081
505106cd
PA
180822010-04-12 Pedro Alves <pedro@codesourcery.com>
18083
505106cd
PA
18084 * linux-low.c (linux_mourn): Also remove the process.
18085 * server.c (handle_target_event): Don't remove the process here.
18086 * nto-low.c (nto_mourn): New.
18087 (nto_target_ops): Install it.
18088 * spu-low.c (spu_mourn): New.
18089 (spu_target_ops): Install it.
18090 * win32-low.c (win32_mourn): New.
18091 (win32_target_ops): Install it.
18092
e8470a06
PA
180932010-04-12 Pedro Alves <pedro@codesourcery.com>
18094
18095 * server.h (buffer_xml_printf): Remove redundant `;'.
18096
45ba0d02
PA
180972010-04-12 Pedro Alves <pedro@codesourcery.com>
18098
18099 * regcache.c (set_register_cache): Invalidate regcaches before
18100 changing the register cache layout.
18101 (regcache_invalidate_one): Allow a NULL regcache.
18102 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18103 regcaches before changing the register cache layout or the target
18104 regsets.
18105
59e04013
L
181062010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18107
18108 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18109 variable warning on Linux/x86-64.
18110
8336d594
PA
181112010-04-11 Pedro Alves <pedro@codesourcery.com>
18112
18113 GDBserver disconnected tracing support.
18114
18115 * linux-low.c (linux_remove_process): Delete.
18116 (add_lwp): Don't set last_resume_kind here.
18117 (linux_kill): Use `mourn'.
18118 (linux_detach): Use `thread_db_detach', and `mourn'.
18119 (linux_mourn): New.
18120 (linux_attach_lwp_1): Adjust comment.
18121 (linux_attach): last_resume_kind moved the thread_info; adjust.
18122 (status_pending_p_callback): Adjust.
18123 (linux_wait_for_event_1): Adjust.
18124 (count_events_callback, select_singlestep_lwp_callback)
18125 (select_event_lwp_callback, cancel_breakpoints_callback)
18126 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18127 (proceed_one_lwp): Adjust.
18128 (linux_async): Add debug output.
18129 (linux_thread_stopped): New.
18130 (linux_pause_all): New.
18131 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18132 linux_pause_all.
18133 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18134 (thread_db_free): Delete declaration.
18135 (thread_db_detach, thread_db_mourn): Declare.
18136 * thread-db.c (thread_db_init): Use thread_db_mourn.
18137 (thread_db_free): Delete, split in two.
18138 (disable_thread_event_reporting): New.
18139 (thread_db_detach): New.
18140 (thread_db_mourn): New.
18141
18142 * server.h (struct thread_info) <last_resume_kind>: New field.
18143 <attached>: Add comment.
18144 <gdb_detached>: New field.
18145 (handler_func): Change return type to int.
18146 (handle_serial_event, handle_target_event): Ditto.
18147 (gdb_connected): Declare.
18148 (tracing): Delete.
18149 (disconnected_tracing): Declare.
18150 (stop_tracing): Declare.
18151
18152 * server.c (handle_query) <qSupported>: Report support for
18153 disconnected tracing.
18154 (queue_stop_reply_callback): Account for running threads.
18155 (gdb_wants_thread_stopped): New.
18156 (gdb_wants_all_threads_stopped): New.
18157 (gdb_reattached_process): New.
18158 (handle_status): Clear the `gdb_detached' flag of all processes.
18159 In all-stop, stop all threads.
18160 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18161 (process_serial_event): If the remote connection breaks, or if an
18162 exit was forced with "monitor exit", force an event loop exit.
18163 Handle disconnected tracing on detach.
18164 (handle_serial_event): Adjust.
18165 (handle_target_event): If GDB isn't connected, forward events back
18166 to the inferior, unless the last process exited, in which case,
18167 exit gdbserver. Adjust interface.
18168
18169 * remote-utils.c (remote_open): Don't block in accept. Instead
18170 register an event loop source on the listen socket file
18171 descriptor. Refactor bits into ...
18172 (listen_desc): ... this new global.
18173 (gdb_connected): ... this new function.
18174 (enable_async_notification): ... this new function.
18175 (handle_accept_event): ... this new function.
18176 (remote_close): Clear remote_desc.
18177
18178 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18179
18180 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18181 New fields.
18182 (mourn_inferior): Define.
18183 (target_process_qsupported): Avoid the dangling else problem.
18184 (thread_stopped): Define.
18185 (pause_all): Define.
18186 (target_waitstatus_to_string): Declare.
18187 * target.c (target_waitstatus_to_string): New.
18188
18189 * tracepoint.c (tracing): Make extern.
18190 (disconnected_tracing): New.
18191 (stop_tracing): Make extern. Handle tracing stops due to GDB
18192 disconnecting.
18193 (cmd_qtdisconnected): New.
18194 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18195 (handle_tracepoint_general_set): Handle QTDisconnected.
18196
18197 * event-loop.c (event_handler_func): Change return type to int.
18198 (process_event): Bail out if the event handler wants the event
18199 loop to stop.
18200 (handle_file_event): Ditto.
18201 (start_event_loop): Bail out if the event handler wants the event
18202 loop to stop.
18203
18204 * nto-low.c (nto_target_ops): Adjust.
18205 * spu-low.c (spu_wait): Don't remove the process here.
18206 (spu_target_ops): Adjust.
18207 * win32-low.c (win32_wait): Don't remove the process here.
18208 (win32_target_ops): Adjust.
18209
5d267c4c
PA
182102010-04-11 Pedro Alves <pedro@codesourcery.com>
18211
18212 * regcache.c (realloc_register_cache): Invalidate inferior's
18213 regcache before recreating it.
18214
623ccd72
PA
182152010-04-09 Pedro Alves <pedro@codesourcery.com>
18216
18217 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18218
219f2f23
PA
182192010-04-09 Stan Shebs <stan@codesourcery.com>
18220 Pedro Alves <pedro@codesourcery.com>
18221
18222 * server.h (LONGEST): New.
18223 (struct thread_info) <while_stepping>: New field.
18224 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18225 Declare.
18226 (initialize_tracepoint, handle_tracepoint_general_set)
18227 (handle_tracepoint_query, tracepoint_finished_step)
18228 (tracepoint_was_hit, release_while_stepping_state_list):
18229 (current_traceframe): Declare.
18230 * server.c (handle_general_set): Handle tracepoint packets.
18231 (read_memory): New.
18232 (write_memory): New.
18233 (handle_search_memory_1): Use read_memory.
18234 (handle_query): Report support for conditional tracepoints, trace
18235 state variables, and tracepoint sources. Handle tracepoint
18236 queries.
18237 (main): Initialize the tracepoints module.
18238 (process_serial_event): Handle traceframe reads/writes.
18239
18240 * linux-low.c (handle_tracepoints): New.
18241 (linux_wait_1): Call it.
18242 (linux_resume_one_lwp): Handle while-stepping.
18243 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18244 (linux_target_ops): Install them.
18245 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18246 New field.
18247 * linux-x86-low.c (x86_supports_tracepoints): New.
18248 (the_low_target). Install it.
18249
18250 * mem-break.h (delete_breakpoint): Declare.
18251 * mem-break.c (delete_breakpoint): Make external.
18252
18253 * target.h (struct target_ops): Add `supports_tracepoints',
18254 `read_pc', and `write_pc' fields.
18255 (target_supports_tracepoints): Define.
18256 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18257 (phex_nz): New.
18258
18259 * regcache.h (struct regcache) <registers_owned>: New field.
18260 (init_register_cache, regcache_cpy): Declare.
18261 (regcache_read_pc, regcache_write_pc): Declare.
18262 (register_cache_size): Declare.
18263 (supply_regblock): Declare.
18264 * regcache.c (init_register_cache): New.
18265 (new_register_cache): Use it.
18266 (regcache_cpy): New.
18267 (register_cache_size): New.
18268 (supply_regblock): New.
18269 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18270
219f2f23
PA
18271 * tracepoint.c: New.
18272
18273 * Makefile.in (OBS): Add tracepoint.o.
18274 (tracepoint.o): New rule.
18275
3a13a53b
L
182762010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18277
18278 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18279 (i386-mmx.o): New.
18280 (i386-mmx.c): Likewise.
18281 (i386-mmx-linux.o): Likewise.
18282 (i386-mmx-linux.c): Likewise.
18283
18284 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18285 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18286 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18287 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18288
18289 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18290 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18291 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18292
1570b33e
L
182932010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18294
18295 * Makefile.in (clean): Updated.
18296 (i386-avx.o): New.
18297 (i386-avx.c): Likewise.
18298 (i386-avx-linux.o): Likewise.
18299 (i386-avx-linux.c): Likewise.
18300 (amd64-avx.o): Likewise.
18301 (amd64-avx.c): Likewise.
18302 (amd64-avx-linux.o): Likewise.
18303 (amd64-avx-linux.c): Likewise.
18304
18305 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18306 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18307 (srv_amd64_regobj): Add amd64-avx.o.
18308 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18309 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18310 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18311 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18312 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18313 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18314 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18315
18316 * i387-fp.c: Include "i386-xstate.h".
18317 (i387_xsave): New.
18318 (i387_cache_to_xsave): Likewise.
18319 (i387_xsave_to_cache): Likewise.
18320 (x86_xcr0): Likewise.
18321
18322 * i387-fp.h (i387_cache_to_xsave): Likewise.
18323 (i387_xsave_to_cache): Likewise.
18324 (x86_xcr0): Likewise.
18325
18326 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18327 * linux-crisv32-low.c (target_regsets): Likewise.
18328 * linux-m68k-low.c (target_regsets): Likewise.
18329 * linux-mips-low.c (target_regsets): Likewise.
18330 * linux-ppc-low.c (target_regsets): Likewise.
18331 * linux-s390-low.c (target_regsets): Likewise.
18332 * linux-sh-low.c (target_regsets): Likewise.
18333 * linux-sparc-low.c (target_regsets): Likewise.
18334 * linux-xtensa-low.c (target_regsets): Likewise.
18335
18336 * linux-low.c: Include <sys/uio.h>.
18337 (regsets_fetch_inferior_registers): Support nt_type.
18338 (regsets_store_inferior_registers): Likewise.
18339 (linux_process_qsupported): New.
18340 (linux_target_ops): Add linux_process_qsupported.
18341
18342 * linux-low.h (regset_info): Add nt_type.
18343 (linux_target_ops): Add process_qsupported.
18344
18345 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18346 and <sys/uio.h>.
18347 (init_registers_i386_avx_linux): New.
18348 (init_registers_amd64_avx_linux): Likewise.
18349 (xmltarget_i386_linux_no_xml): Likewise.
18350 (xmltarget_amd64_linux_no_xml): Likewise.
18351 (PTRACE_GETREGSET): Likewise.
18352 (PTRACE_SETREGSET): Likewise.
18353 (x86_fill_xstateregset): Likewise.
18354 (x86_store_xstateregset): Likewise.
18355 (use_xml): Likewise.
18356 (x86_linux_update_xmltarget): Likewise.
18357 (x86_linux_process_qsupported): Likewise.
18358 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18359 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18360 init_registers_i386_linux here. Call
18361 x86_linux_update_xmltarget.
18362 (the_low_target): Add x86_linux_process_qsupported.
18363
18364 * server.c (handle_query): Call target_process_qsupported.
18365
18366 * target.h (target_ops): Add process_qsupported.
18367 (target_process_qsupported): New.
18368
fc7238bb
PA
183692010-04-03 Pedro Alves <pedro@codesourcery.com>
18370
18371 * inferiors.c (add_thread): Set last_status kind to
18372 TARGET_WAITKIND_IGNORE.
18373 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18374 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18375 (linux_wait_1): Move `thread' local definition to block that uses
18376 it. Don't NULL initialize `event_child'.
18377 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18378 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18379 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18380
bdabb078
PA
183812010-04-01 Pedro Alves <pedro@codesourcery.com>
18382
18383 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18384 an extended waitstatus, or by a watchpoint.
18385 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18386 thread was stepping or has been stopped by a watchpoint.
18387
d3bbe7a0
PA
183882010-04-01 Pedro Alves <pedro@codesourcery.com>
18389
18390 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18391 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18392 of another, then delete the previous, and validate all
18393 breakpoints.
18394 (validate_inserted_breakpoint): New.
18395 (delete_disabled_breakpoints): New.
18396 (validate_breakpoints): New.
18397 (check_mem_read): Validate breakpoints before trusting their
18398 shadow. Delete disabled breakpoints.
18399 (check_mem_write): Validate breakpoints before trusting they
18400 should be inserted. Delete disabled breakpoints.
18401 * mem-break.h (validate_breakpoints):
18402 * server.c (handle_query): Validate breakpoints when we see a
18403 qSymbol query.
18404
8b07ae33
PA
184052010-04-01 Pedro Alves <pedro@codesourcery.com>
18406
18407 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18408 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18409 if we could tell there's a GDB breakpoint at stop_pc.
18410 (need_step_over_p): Don't do a step over if we find a GDB
18411 breakpoint at the resume PC.
18412
18413 * mem-break.c (struct raw_breakpoint): New.
18414 (enum bkpt_type): New type `gdb_breakpoint'.
18415 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18416 fields. New field `raw'.
18417 (find_raw_breakpoint_at): New.
18418 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18419 breakpoint instead.
18420 (set_breakpoint_at): Adjust.
18421 (delete_raw_breakpoint): New.
18422 (release_breakpoint): New.
18423 (delete_breakpoint): Rename to...
18424 (delete_breakpoint_1): ... this. Add proc parameter. Use
18425 release_breakpoint. Return ENOENT.
18426 (delete_breakpoint): Reimplement.
18427 (find_breakpoint_at): Delete.
18428 (find_gdb_breakpoint_at): New.
18429 (delete_breakpoint_at): Delete.
18430 (set_gdb_breakpoint_at): New.
18431 (delete_gdb_breakpoint_at): New.
18432 (gdb_breakpoint_here): New.
18433 (set_reinsert_breakpoint): Use release_breakpoint.
18434 (uninsert_breakpoint): Rename to ...
18435 (uninsert_raw_breakpoint): ... this.
18436 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18437 (reinsert_raw_breakpoint): Change parameter type to
18438 raw_breakpoint.
18439 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18440 instead.
18441 (check_breakpoints): Adjust. Use release_breakpoint.
18442 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18443 (breakpoint_inserted_here): Ditto.
18444 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18445 Don't trust the breakpoint's shadow if it is not inserted.
18446 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18447 (delete_all_breakpoints): Adjust.
18448 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18449 use delete_breakpoint_1.
18450
18451 * mem-break.h (breakpoints_supported): Delete declaration.
18452 (set_gdb_breakpoint_at): Declare.
18453 (gdb_breakpoint_here): Declare.
18454 (delete_breakpoint_at): Delete.
18455 (delete_gdb_breakpoint_at): Declare.
18456
18457 * server.h (struct raw_breakpoint): Forward declare.
18458 (struct process_info): New field `raw_breakpoints'.
18459
18460 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18461 breakpoints.
18462
6bf5e0ba
PA
184632010-03-24 Pedro Alves <pedro@codesourcery.com>
18464
18465 * linux-low.c (status_pending_p_callback): Fix comment.
18466 (linux_wait_for_event_1): Move most of the internal breakpoint
18467 handling from here...
18468 (linux_wait_1): ... to here.
18469 (count_events_callback): New.
18470 (select_singlestep_lwp_callback): New.
18471 (select_event_lwp_callback): New.
18472 (cancel_breakpoints_callback): New.
18473 (select_event_lwp): New.
18474 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18475 priority to all LWPs that have had events that should be reported
18476 to the client. Cancel breakpoints when about to reporting the
18477 event to the client, not while stopping lwps. No longer cancel
18478 finished single-steps here.
18479 (cancel_finished_single_step): Delete.
18480 (cancel_finished_single_steps): Delete.
18481
414a389f
PA
184822010-03-24 Pedro Alves <pedro@codesourcery.com>
18483
18484 * mem-break.c (enum bkpt_type): New.
18485 (struct breakpoint): New field `type'.
18486 (set_breakpoint_at): Change return type to struct breakpoint
18487 pointer. Set type to `other_breakpoint' by default.
18488 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18489 in the breakpoint list.
18490 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18491 (reinsert_breakpoint): Rename to ...
18492 (reinsert_raw_breakpoint): ... this.
18493 (reinsert_breakpoints_at): Adjust.
18494 * mem-break.h (struct breakpoint): Declare.
18495 (set_breakpoint_at): Change return type to struct breakpoint
18496 pointer.
18497
2280c721
PA
184982010-03-24 Pedro Alves <pedro@codesourcery.com>
18499
18500 * server.c (handle_query): Assign, not compare.
18501
d50171e4
PA
185022010-03-24 Pedro Alves <pedro@codesourcery.com>
18503
18504 Teach linux gdbserver to step-over-breakpoints.
18505
18506 * linux-low.c (can_hardware_single_step): New.
18507 (supports_breakpoints): New.
18508 (handle_extended_wait): If stopping threads, read the stop pc of
18509 the new cloned LWP.
18510 (get_pc): New.
18511 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18512 low target doesn't support retrieving the PC.
18513 (add_lwp): Set last_resume_kind to resume_continue.
18514 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18515 (linux_attach): Don't clear stop_expected. Set the lwp's
18516 last_resume_kind to resume_stop.
18517 (linux_detach_one_lwp): Don't check for removed breakpoints.
18518 (check_removed_breakpoint): Delete.
18519 (status_pending_p): Rename to ...
18520 (status_pending_p_callback): ... this. Don't check for removed
18521 breakpoints. Don't consider threads that are stopped from GDB's
18522 perspective.
18523 (linux_wait_for_lwp): Always read the stop_pc here.
18524 (cancel_breakpoint): New.
18525 (step_over_bkpt): New global.
18526 (linux_wait_for_event_1): Implement stepping over breakpoints.
18527 (gdb_wants_lwp_stopped): New.
18528 (gdb_wants_all_stopped): New.
18529 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18530 single-step traps here. Store the thread's last reported target
18531 wait status.
18532 (send_sigstop): Don't clear stop_expected. Always set it,
18533 instead.
18534 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18535 (cancel_finished_single_step): New.
18536 (cancel_finished_single_steps): New.
18537 (wait_for_sigstop): Don't cancel finished single-step traps here.
18538 (linux_resume_one_lwp): Don't check for removed breakpoints.
18539 Don't set `step' on non-hardware step archs.
18540 (linux_set_resume_request): Ignore resume_stop requests if already
18541 stopping or stopped. Set the lwp's last_resume_kind.
18542 (resume_status_pending_p): Don't check for removed breakpoints.
18543 (need_step_over_p): New.
18544 (start_step_over): New.
18545 (finish_step_over): New.
18546 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18547 requests. Clear the thread's last reported target waitstatus.
18548 Don't use the `suspended' flag. Don't consider pending breakpoints.
18549 (linux_resume): Start a step-over if necessary.
18550 (proceed_one_lwp): New.
18551 (proceed_all_lwps): New.
18552 (unstop_all_lwps): New.
18553 * linux-low.h (struct lwp_info): Rewrite comment for the
18554 `suspended' flag. Add the `stop_pc' field. Delete the
18555 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18556 Add `'last_resume_kind' and `need_step_over' fields.
18557 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18558 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18559 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18560 (set_raw_breakpoint_at): New.
18561 (set_breakpoint_at): Rewrite to use it.
18562 (reinsert_breakpoint_handler): Delete.
18563 (set_reinsert_breakpoint): New.
18564 (reinsert_breakpoint_by_bp): Delete.
18565 (delete_reinsert_breakpoints): New.
18566 (uninsert_breakpoint): Rewrite.
18567 (uninsert_breakpoints_at): New.
18568 (reinsert_breakpoint): Rewrite.
18569 (reinsert_breakpoints_at): New.
18570 (check_breakpoints): Rewrite.
18571 (breakpoint_here): New.
18572 (breakpoint_inserted_here): New.
18573 (check_mem_read): Adjust.
18574 * mem-break.h (breakpoints_supported, breakpoint_here)
18575 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18576 (reinsert_breakpoint_by_bp): Delete declaration.
18577 (delete_reinsert_breakpoints): Declare.
18578 (reinsert_breakpoint): Delete declaration.
18579 (reinsert_breakpoints_at): Declare.
18580 (uninsert_breakpoint): Delete declaration.
18581 (uninsert_breakpoints_at): Declare.
18582 (check_breakpoints): Adjust prototype.
18583 * server.h: Adjust include order.
18584 (struct thread_info): Declare here. Add a `last_status' field.
18585
30ba68cb
MS
185862010-03-23 Michael Snyder <msnyder@vmware.com>
18587
18588 * server.c (crc32): New function.
18589 (handle_query): Add handling for 'qCRC:' request.
18590
b9a881c2
PA
185912010-03-23 Pedro Alves <pedro@codesourcery.com>
18592
18593 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18594 lwp had been stopped by a watchpoint.
18595
e92d13d5
PA
185962010-03-16 Pedro Alves <pedro@codesourcery.com>
18597
18598 * server.h (internal_error): Declare.
18599 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18600 * utils.c (internal_error): New function.
18601
64daa791
AS
186022010-03-15 Andreas Schwab <schwab@redhat.com>
18603
18604 * configure.srv: Fix typo setting srv_regobj.
18605
f52cd8cd
PA
186062010-03-15 Pedro Alves <pedro@codesourcery.com>
18607
18608 * linux-low.c (fetch_register): Avoid passing a non string literal
18609 format to `error'.
18610 (usr_store_inferior_registers): Ditto.
18611
93ae6fdc
PA
186122010-03-14 Pedro Alves <pedro@codesourcery.com>
18613
18614 * linux-low.c (linux_write_memory): Bail out early if peeking
18615 memory failed.
18616
c3adc08c
PA
186172010-03-14 Pedro Alves <pedro@codesourcery.com>
18618
18619 * linux-low.h (struct lwp_info): New fields
18620 `stopped_by_watchpoint' and `stopped_data_address'.
18621 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18622 here, and cache them in the lwp object.
18623 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18624 directly.
18625 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18626 field.
18627 (linux_stopped_by_watchpoint): Rewrite.
18628 (linux_stopped_data_address): Rewrite.
18629
bce522a2
PA
186302010-03-06 Simo Melenius <simo.melenius@iki.fi>
18631
18632 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18633 switching the current inferior, not before.
18634
90884b2b
L
186352010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18636
18637 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18638 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18639 i386-linux.c and amd64-linux.c.
18640 (reg-i386.o): Removed.
18641 (reg-i386.c): Likewise.
18642 (reg-i386-linux.o): Likewise.
18643 (reg-i386-linux.c): Likewise.
18644 (reg-x86-64.o): Likewise.
18645 (reg-x86-64.c): Likewise.
18646 (reg-x86-64-linux.o): Likewise.
18647 (reg-x86-64-linux.c): Likewise.
18648 (i386.o): New.
18649 (i386.c): Likewise.
18650 (i386-linux.o): Likewise.
18651 (i386-linux.c): Likewise.
18652 (amd64.o): Likewise.
18653 (amd64.c): Likewise.
18654 (amd64-linux.o): Likewise.
18655 (amd64-linux.c): Likewise.
18656
18657 * configure.srv (srv_i386_regobj): New.
18658 (srv_i386_linux_regobj): Likewise.
18659 (srv_amd64_regobj): Likewise.
18660 (srv_amd64_linux_regobj): Likewise.
18661 (srv_i386_32bit_xmlfiles): Likewise.
18662 (srv_i386_64bit_xmlfiles): Likewise.
18663 (srv_i386_xmlfiles): Likewise.
18664 (srv_amd64_xmlfiles): Likewise.
18665 (srv_i386_linux_xmlfiles): Likewise.
18666 (srv_amd64_linux_xmlfiles): Likewise.
18667 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18668 srv_xmlfiles to $srv_i386_xmlfiles.
18669 (i[34567]86-*-mingw32ce*): Likewise.
18670 (i[34567]86-*-mingw*): Likewise.
18671 (i[34567]86-*-nto*): Likewise.
18672 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18673 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18674 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18675 (x86_64-*-linux*): Likewise.
18676
18677 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18678 (init_registers_amd64_linux): New.
18679 (x86_arch_setup): Replace init_registers_x86_64_linux with
18680 init_registers_amd64_linux.
18681
193f13e6
MK
186822010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18683
18684 * configure.ac: Check for libdl. If it is not available link against
18685 static libthread_db.
18686 * configure: Regenerate.
18687
85d721b8
PA
186882010-02-22 Pedro Alves <pedro@codesourcery.com>
18689
18690 PR9605
18691
18692 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18693 handing a read watchpoint.
18694 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18695
6076632b
DE
186962010-02-12 Doug Evans <dje@google.com>
18697
18698 * linux-low.c (linux_supports_tracefork_flag): Document.
18699 (linux_look_up_symbols): Add comment.
18700
3327ccf7
L
187012010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18702
18703 * regcache.c (supply_register): Clear regcache if buf is NULL.
18704
0718675c 187052010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18706 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18707
18708 * inferiors.c (find_inferior): Add function documentation.
18709 (unloaded_dll): Handle the case where the unloaded dll has not
18710 been previously registered in the dll list.
18711
177321bd
DJ
187122010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18713
18714 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18715 (thumb2_breakpoint): New.
18716 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18717
2b009048
DJ
187182010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18719
18720 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18721 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18722 breakpoints.
18723
3be029c7
PA
187242010-01-21 Pedro Alves <pedro@codesourcery.com>
18725
18726 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18727
18f5de3b
JK
187282010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18729
18730 * linux-s390-low.c (s390_collect_ptrace_register)
18731 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18732
3743bb4f
DE
187332010-01-21 Doug Evans <dje@google.com>
18734
14ce3065
DE
18735 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18736 (PTRACE_ARG4_TYPE): New macro.
18737 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18738 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18739 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18740 (usr_store_inferior_registers): Ditto.
18741 (linux_read_memory, linux_write_memory): Ditto.
18742 (linux_test_for_tracefork): Ditto.
18743
3743bb4f
DE
18744 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18745 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18746
8b315be5
PA
187472010-01-21 Pedro Alves <pedro@codesourcery.com>
18748
18749 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18750 target.
18751
85492558
PA
187522010-01-21 Pedro Alves <pedro@codesourcery.com>
18753
18754 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18755 prototype to take a regcache. Adjust.
18756
442ea881
PA
187572010-01-20 Pedro Alves <pedro@codesourcery.com>
18758
18759 * regcache.h (struct thread_info): Forward declare.
18760 (struct regcache): New.
18761 (new_register_cache): Adjust prototype.
18762 (get_thread_regcache): Declare.
18763 (free_register_cache): Adjust prototype.
18764 (registers_to_string, registers_from_string): Ditto.
18765 (supply_register, supply_register_by_name, collect_register)
18766 (collect_register_as_string, collect_register_by_name): Ditto.
18767 * regcache.c (struct inferior_regcache_data): Delete.
18768 (get_regcache): Rename to ...
18769 (get_thread_regcache): ... this. Adjust. Switch inferior before
18770 fetching registers.
18771 (regcache_invalidate_one): Adjust.
18772 (regcache_invalidate): Fix prototype.
18773 (new_register_cache): Return the new register cache.
18774 (free_register_cache): Change prototype.
18775 (realloc_register_cache): Adjust.
18776 (registers_to_string): Change prototype to take a regcache. Adjust.
18777 (registers_from_string): Ditto.
18778 (register_data): Ditto.
18779 (supply_register): Ditto.
18780 (supply_register_by_name): Ditto.
18781 (collect_register): Ditto.
18782 (collect_register_as_string): Ditto.
18783 (collect_register_by_name): Ditto.
18784 * server.c (process_serial_event): Adjust.
18785 * linux-low.h (regset_fill_func, regset_store_func): Change
18786 prototype.
18787 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18788 Change prototype.
18789 * linux-low.c (get_stop_pc): Adjust.
18790 (check_removed_breakpoint): Adjust.
18791 (linux_wait_for_event): Adjust.
18792 (linux_resume_one_lwp): Adjust.
18793 (fetch_register): Add regcache parameter. Adjust.
18794 (usr_store_inferior_registers): Ditto.
18795 (regsets_fetch_inferior_registers): Ditto.
18796 (regsets_store_inferior_registers): Ditto.
18797 (linux_fetch_registers, linux_store_registers): Ditto.
18798 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18799 regcache. Adjust.
43aaf8b6
PA
18800 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18801 Ditto.
442ea881
PA
18802 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18803 prototype to take a regcache.
18804 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18805 * remote-utils.c (convert_ascii_to_int, outreg)
18806 (prepare_resume_reply): Change prototype to take a regcache.
18807 Adjust.
18808 * target.h (struct target_ops) <fetch_registers, store_registers>:
18809 Change prototype to take a regcache.
18810 (fetch_inferior_registers, store_inferior_registers): Change
18811 prototype to take a regcache. Adjust.
18812 * proc-service.c (ps_lgetregs): Adjust.
18813 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18814 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18815 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18816 take a regcache. Adjust.
18817 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18818 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18819 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18820 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18821 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18822 (cris_cannot_fetch_register):
18823 (cris_breakpoint_at): Change prototype to take a regcache.
18824 Adjust.
18825 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18826 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18827 to take a regcache. Adjust.
18828 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18829 Adjust.
18830 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18831 take a regcache. Adjust.
18832 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18833 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18834 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18835 * linux-mips-low.c (mips_get_pc):
18836 (mips_set_pc): Change prototype to take a regcache. Adjust.
18837 (mips_reinsert_addr): Adjust.
18838 (mips_collect_register): Change prototype to take a regcache.
18839 Adjust.
18840 (mips_supply_register):
18841 (mips_collect_register_32bit, mips_supply_register_32bit)
18842 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18843 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18844 * linux-ppc-low.c (ppc_supply_ptrace_register)
18845 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18846 (parse_spufs_run): Adjust.
18847 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18848 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18849 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18850 take a regcache. Adjust.
18851 * linux-s390-low.c (s390_collect_ptrace_register)
18852 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18853 (s390_set_pc): Change prototype to take a regcache. Adjust.
18854 (s390_arch_setup): Adjust.
18855 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18856 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18857 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18858 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18859 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18860 regcache. Adjust.
18861 (sparc_breakpoint_at): Adjust.
18862 * linux-xtensa-low.c (xtensa_fill_gregset):
18863 (xtensa_store_gregset):
18864 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18865 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18866 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18867 prototype to take a regcache. Adjust.
18868 * win32-arm-low.c (arm_fetch_inferior_register)
18869 (arm_store_inferior_register): Change prototype to take a
18870 regcache. Adjust.
18871 * win32-i386-low.c (i386_fetch_inferior_register)
18872 (i386_store_inferior_register): Change prototype to take a
18873 regcache. Adjust.
18874 * win32-low.c (child_fetch_inferior_registers)
18875 (child_store_inferior_registers): Change prototype to take a
18876 regcache. Adjust.
18877 (win32_wait): Adjust.
18878 (win32_fetch_inferior_registers): Change prototype to take a
18879 regcache. Adjust.
18880 (win32_store_inferior_registers): Adjust.
18881 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18882 store_inferior_register>: Change prototype to take a regcache.
18883
60c3d7b0
DE
188842010-01-20 Doug Evans <dje@google.com>
18885
18886 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18887 #ifdef.
18888 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18889 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18890
dc146f7c
VP
188912010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18892
18893 * linux-low.c (linux_core_of_thread): New.
18894 (compare_ints, show_process, list_threads): New.
18895 (linux_qxfer_osdata): Report threads and cores.
18896 (linux_target_op): Register linux_core_of_thread.
18897 * remote-utils.c (prepare_resume_reply): Report the core.
18898 (buffer_xml_printf): Support %d specifier.
18899 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18900 New.
18901 (handle_query): Handle qXfer:threads. Announce availability
18902 thereof.
18903 * target.h (struct target_ops): New field core_of_thread.
18904
7803799a
UW
189052010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18906
18907 * Makefile.in (clean): Remove new generated files.
18908 (reg-s390.o, reg-s390.c): Remove rules.
18909 (reg-s390x.o, reg-s390x.c): Likewise.
18910 (s390-linux32.o, s390-linux32.c): Add rules.
18911 (s390-linux64.o, s390-linux64.c): Likewise.
18912 (s390x-linux64.o, s390x-linux64.c): Likewise.
18913 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18914 * linux-s390-low.c: Include <elf.h>.
18915 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18916 (init_registers_s390): Remove prototype.
18917 (init_registers_s390x): Likewise.
18918 (init_registers_s390_linux32): Add prototype.
18919 (init_registers_s390_linux64): Likewise.
18920 (init_registers_s390x_linux64): Likewise.
18921 (s390_num_regs_3264): New define.
18922 (s390_regmap_3264): New global variable.
18923 (s390_cannot_fetch_register): Remove obsolete check.
18924 (s390_cannot_store_register): Likewise.
18925 (s390_collect_ptrace_register): Handle upper/lower register halves.
18926 (s390_supply_ptrace_register): Likewise.
18927 (s390_fill_gregset): Update to register number changes.
18928 (s390_get_hwcap): New routine.
18929 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18930 Install appropriate regmap and register set.
18931
6e7ffa39
JB
189322010-01-01 Joel Brobecker <brobecker@adacore.com>
18933
18934 * server.c (gdbserver_version): Update copyright year to 2010.
18935 * gdbreplay.c (gdbreplay_version): Likewise.
18936
957f3f49
DE
189372009-12-28 Doug Evans <dje@google.com>
18938
18939 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18940 elf/external.h. Include <elf.h> instead but only if necessary.
18941
ca5c370d
PA
189422009-12-28 Pedro Alves <pedro@codesourcery.com>
18943
18944 * linux-low.c (linux_remove_process): Remove `detaching'
18945 parameter. Don't release/detach from thread_db here.
18946 (linux_kill): Release/detach from thread_db here, ...
18947 (linux_detach): ... and here, before actually detaching.
18948 (linux_wait_1): ... and here, when a process exits.
18949 * thread-db.c (any_thread_of): New.
18950 (thread_db_free): Switch the current inferior to a thread of the
18951 passed in process.
18952
4ee62156
DE
189532009-12-21 Doug Evans <dje@google.com>
18954
d90e6a88
DE
18955 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18956
c5f62d5f
DE
18957 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18958 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18959 warning ifndef __NR_tkill. Move setting of errno there too.
18960 Delete unnecessary resetting of errno after syscall.
18961 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18962
10e86dd7
DE
18963 * configure.ac: Check for dladdr.
18964 * config.in: Regenerate.
18965 * configure: Regenerate.
18966 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18967 (try_thread_db_load): Update.
18968
4ee62156
DE
18969 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18970
00f515da
DE
189712009-12-18 Doug Evans <dje@google.com>
18972
e9464885
DE
18973 * event-loop.c: Include unistd.h if it exists.
18974
07d4f67e
DE
18975 * linux-low.c (my_waitpid): Move definition away from being in
18976 between linux_tracefork_child/linux_test_for_tracefork.
18977
00f515da
DE
18978 * gdb_proc_service.h (psaddr_t): Fix type.
18979 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18980 signature to match glibc.
18981
1de1badb
DE
189822009-12-16 Doug Evans <dje@google.com>
18983
18984 * linux-low.c (linux_read_memory): Fix argument to read.
18985
aeeb81d1
PA
189862009-11-26 Pedro Alves <pedro@codesourcery.com>
18987
18988 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18989 events, don't leave current_inferior pointing at null.
18990
10357975
PA
189912009-11-26 Pedro Alves <pedro@codesourcery.com>
18992
18993 * win32-low.c (LOG): Delete.
18994 (OUTMSG): Output to stderr.
18995 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18996 on compile time LOG macro.
18997 (win32_wait): Fix debug output.
18998
cf6e3471
PA
189992009-11-26 Pedro Alves <pedro@codesourcery.com>
19000
19001 * win32-low.c (win32_add_one_solib): If the dll name is
19002 "ntdll.dll", prepend the system directory to the dll path.
19003
0c85e18e
MK
190042009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19005
19006 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19007
9ac544ce 190082009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 19009 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
19010
19011 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19012 * configure.ac: Check for __mcoldfire__ and set
19013 gdb_cv_m68k_is_coldfire.
19014 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19015 reg-cf.o and reg-m68k.o.
19016 * configure: Regenerated.
19017
fd7dd3e6
PA
190182009-11-16 Pedro Alves <pedro@codesourcery.com>
19019
19020 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19021 Pass it to thread_db_free.
19022 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19023 proper `detaching' argument to linux_remove_process.
19024 * linux-low.h (thread_db_free): Add `detaching' parameter.
19025 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19026 to thread_db_free.
19027 (thread_db_free): Add `detaching' parameter. Only
19028 call td_ta_clear_event if detaching from process.
19029
75aa492e
MK
190302009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19031
19032 * thread-db.c (thread_db_free): Fix typo.
19033
21e1bee4
PP
190342009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19035
19036 PR gdb/10838
19037 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19038
8838b45e
NS
190392009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19040
19041 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19042 with an i686 compiler.
19043 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19044 needed.
19045 * configure: Rebuilt.
19046
8a35fb51
SL
190472009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19048
19049 PR gdb/10783
19050
19051 * server.c (handle_search_memory_1): Correct read_addr initialization
19052 in loop for searching subsequent chunks.
19053
96f15937
PP
190542009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19055
19056 * configure.ac: New --with-libthread-db option.
19057 * thread-db.c: Allow direct dependence on libthread_db.
19058 (thread_db_free): Adjust.
19059 * config.in: Regenerate.
19060 * configure: Likewise.
889bf7c5 19061
5f7d1694
PP
190622009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19063
19064 PR gdb/10757
19065 * thread-db.c (attach_thread): New function.
19066 (maybe_attach_thread): Return success/failure.
19067 (find_new_threads_callback): Adjust.
889bf7c5
PA
19068 (thread_db_find_new_threads): Loop until no new threads.
19069
88e3b899
PA
190702009-10-13 Pedro Alves <pedro@codesourcery.com>
19071
19072 * proc-service.c (ps_lgetregs): Formatting.
19073
cdbfd419
PP
190742009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19075
19076 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19077 * configure.ac: Adjust.
19078 * linux-low.h (struct process_info_private): Move members to struct
19079 thread_db.
19080 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19081 * linux-low.c (linux_remove_process): Adjust.
19082 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19083 * server.c (handle_query): Move code ...
19084 (handle_monitor_command): ... here. New function.
19085 * target.h (struct target_ops): New member.
19086 * thread-db.c (struct thread_db): New.
19087 (libthread_db_search_path): New variable.
19088 (thread_db_create_event, thread_db_enable_reporting)
19089 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19090 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19091 (try_thread_db_load_1, dladdr_to_soname): New functions.
19092 (try_thread_db_load, thread_db_load_search): New functions.
19093 (thread_db_init): Search for libthread_db.
19094 (thread_db_free): New function.
19095 (thread_db_handle_monitor_command): Likewise.
19096 * config.in: Regenerate.
19097 * configure: Regenerate.
889bf7c5 19098
4168d2d6
UW
190992009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19100
19101 * spu-low.c (spu_kill): Wait for inferior to terminate.
19102 Call clear_inferiors.
19103 (spu_detach): Call clear_inferiors.
19104
81ecdfbb
RW
191052009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19106
19107 * aclocal.m4: Regenerate.
19108 * config.in: Likewise.
19109 * configure: Likewise.
19110
0b9ff2c0
UW
191112009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19112
19113 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19114 (parse_spufs_run): New function.
19115 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19116 (ppc_breakpoint_at): Handle SPU breakpoints.
19117
efcbbd14
UW
191182009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19119
19120 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19121 (SPUFS_MAGIC): Define.
19122 (spu_enumerate_spu_ids): New function.
19123 (linux_qxfer_spu): New function.
19124 (linux_target_ops): Install linux_qxfer_spu.
19125
f4d9bade
UW
191262009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19127
19128 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19129 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19130 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19131 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19132 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19133 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19134 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19135 (init_registers_powerpc_cell32l): Add prototype.
19136 (init_registers_powerpc_cell64l): Likewise.
19137 (ppc_arch_setup): Detect Cell/B.E. architecture.
19138
96e946ca
RW
191392009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19140
19141 * Makefile.in (datarootdir): New variable.
19142
58d6951d
DJ
191432009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19144
19145 * linux-low.c (linux_write_memory): Update debugging output.
19146 * Makefile.in (clean): Add new descriptions.
19147 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19148 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19149 * configure.srv: Add new files for arm*-*-linux*.
19150 * linux-arm-low.c: Add new declarations.
19151 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19152 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19153 (HWCAP_VFPv3D16): New.
19154 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19155 instead of __IWMMXT__.
19156 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19157 (arm_arch_setup): New.
19158 (target_regsets): Remove #ifdef. Add VFP regset.
19159 (the_low_target): Use arm_arch_setup.
19160
12b42a12
DJ
191612009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19162
19163 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19164 the main thread again.
19165
ac8c974e
AR
191662009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19167
19168 Adding Neutrino gdbserver.
19169 * configure: Regenerated.
19170 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19171 * configure.srv (i[34567]86-*-nto*): New target.
19172 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19173 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19174 (nto_comctrl) [__QNX__]: New function.
19175 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19176
4424e0c3 191772009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19178
19179 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19180 srv_tgtobj.
19181
912cf4ba
PA
191822009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19183 Pedro Alves <pedro@codesourcery.com>
19184
19185 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19186 don't support CONTEXT_EXTENDED_REGISTERS.
19187 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19188 (the_low_target): Install them.
19189 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19190 failing with ERROR_PIPE_NOT_CONNECTED.
19191
aa5ca48f
DE
191922009-06-30 Doug Evans <dje@google.com>
19193 Pierre Muller <muller@ics.u-strasbg.fr>
19194
19195 Add h/w watchpoint support to x86-linux, win32-i386.
19196 * Makefile.in (SFILES): Add i386-low.c
19197 (i386_low_h): Define.
19198 (i386-low.o): Add dependencies.
19199 (linux-x86-low.o): Add i386-low.h dependency.
19200 (win32-i386-low.o): Ditto.
19201 * i386-low.c: New file.
19202 * i386-low.h: New file.
19203 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19204 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19205 * linux-low.c (linux_add_process): Initialize arch_private.
19206 (linux_remove_process): Free arch_private.
19207 (add_lwp): Initialize arch_private.
19208 (delete_lwp): Free arch_private.
19209 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19210 provided.
19211 * linux-low.h (process_info_private): New member arch_private.
19212 (lwp_info): New member arch_private.
19213 (linux_target_ops): New members new_process, new_thread,
19214 prepare_to_resume.
19215 (ptid_of): New macro.
19216 * linux-x86-low.c: Include stddef.h, i386-low.h.
19217 (arch_process_info): New struct.
19218 (arch_lwp_info): New struct.
19219 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19220 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19221 (i386_dr_low_get_status): New function.
19222 (x86_insert_point, x86_remove_point): New functions.
19223 (x86_stopped_by_watchpoint): New function.
19224 (x86_stopped_data_address): New function.
19225 (x86_linux_new_process, x86_linux_new_thread): New functions.
19226 (x86_linux_prepare_to_resume): New function.
19227 (the_low_target): Add entries for insert_point, remove_point,
19228 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19229 prepare_to_resume.
19230 * server.c (debug_hw_points): New global.
19231 (monitor_show_help): Document set debug-hw-points.
19232 (handle_query): Process "set debug-hw-points".
19233 * server.h (debug_hw_points): Declare.
19234 (paddress): Declare.
19235 * utils.c (NUMCELLS, CELLSIZE): New macros.
19236 (get_sell, xsnprintf, paddress): New functions.
19237 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19238 remove_point, stopped_by_watchpoint, stopped_data_address.
19239 * win32-i386-low.c: Include i386-low.h.
19240 (debug_reg_state): Replaces dr.
19241 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19242 (i386_dr_low_get_status): New function.
19243 (i386_insert_point, i386_remove_point): New functions.
19244 (i386_stopped_by_watchpoint): New function.
19245 (i386_stopped_data_address): New function.
19246 (i386_initial_stuff): Update.
19247 (get_thread_context,set_thread_context,i386_thread_added): Update.
19248 (the_low_target): Add entries for insert_point,
19249 remove_point, stopped_by_watchpoint, stopped_data_address.
19250 * win32-low.c (win32_insert_watchpoint): New function.
19251 (win32_remove_watchpoint): New function.
19252 (win32_stopped_by_watchpoint): New function.
19253 (win32_stopped_data_address): New function.
19254 (win32_target_ops): Add entries for insert_watchpoint,
19255 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19256 * win32-low.h (win32_target_ops): New members insert_point,
19257 remove_point, stopped_by_watchpoint, stopped_data_address.
19258
d993e290
PA
192592009-06-25 Pedro Alves <pedro@codesourcery.com>
19260
19261 * server.c (process_serial_event): Re-return unsupported, not
19262 error, if the type isn't recognized. Re-allow supporting only
19263 insert or remove packets. Also call require_running for
19264 breakpoints. Add missing break statement to default case. Tidy.
19265 * target.h (struct target_ops): Rename insert_watchpoint to
19266 insert_point, and remove_watchpoint to remove_point.
19267
19268 * linux-low.h (struct linux_target_ops): Likewise.
19269 * linux-low.c (linux_insert_watchpoint): Rename to ...
19270 (linux_insert_point): ... this. Adjust.
19271 (linux_remove_watchpoint): Rename to ...
19272 (linux_remove_point): ... this. Adjust.
19273 (linux_target_ops): Adjust.
19274 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19275 (cris_insert_point): ... this.
19276 (cris_remove_watchpoint): Rename to ...
19277 (cris_remove_point): ... this.
19278 (the_low_target): Adjust.
19279
0f54c268
PM
192802009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19281
19282 * server.c (handle_v_kill): Pass signal_pid to
19283 kill_inferior if multi_process is zero.
19284
c6314022
AR
192852009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19286
19287 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19288 * target.h (target_ops): Comment for *_watchpoint to make it clear
19289 the functions can get types '0' and '1'.
19290
4463ce24
AR
192912009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19292
19293 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19294 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19295 * regcache.c (get_regcache): Likewise.
19296 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19297 * win32-low.c (child_fetch_inferior_registers): Remove check for
19298 regno 0.
19299
cf8fd78b
PA
193002009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19301 Pedro Alves <pedro@codesourcery.com>
19302
19303 * target.h (struct target_ops) <supports_multi_process>: New
19304 callback.
19305 (target_supports_multi_process): New.
19306 * server.c (handle_query): Even if GDB reports support, only
19307 enable multi-process if the target also supports it. Report
19308 multi-process support only if the target backend supports it.
19309 * linux-low.c (linux_supports_multi_process): New function.
19310 (linux_target_ops): Install it as target_supports_multi_process
19311 callback.
19312
47c0c975
DE
193132009-05-24 Doug Evans <dje@google.com>
19314
e09875d4
DE
19315 Global renaming of find_thread_pid to find_thread_ptid.
19316 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19317 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19318 All callers updated.
19319
e27d73f6
DE
19320 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19321 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19322 directly.
19323
47c0c975
DE
19324 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19325 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19326 (linux_resume_one_lwp): Ditto.
19327
2acc282a
DE
193282009-05-23 Doug Evans <dje@google.com>
19329
19330 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19331 from struct inferior_list_entry * to struct lwp_info *.
19332 All callers updated.
19333
9f1036c1
DE
193342009-05-13 Doug Evans <dje@google.com>
19335
19336 * linux-x86-low.c: Don't include assert.h.
19337 (x86_siginfo_fixup): Use fatal, not assert.
19338 (x86_arch_setup): Fix comment.
19339
d0722149
DE
193402009-05-12 Doug Evans <dje@google.com>
19341
19342 Biarch support for i386/amd64 gdbserver.
19343 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19344 Add linux-x86-low.c.
19345 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19346 (linux-x86-low.o): Add.
19347 * linux-x86-64-low.c: Delete.
19348 * linux-i386-low.c: Delete.
19349 * linux-x86-low.c: New file.
19350 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19351 linux-x86-low.o.
19352 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19353 linux-x86-low.o.
19354 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19355 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19356 (linux_child_pid_to_exec_file): New function.
19357 (elf_64_header_p, elf_64_file_p): New functions.
19358 (siginfo_fixup): New function.
19359 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19360 give target a chance to convert layout.
19361 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19362 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19363
fdeb2a12
DE
193642009-05-07 Doug Evans <dje@google.com>
19365
19366 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19367 (regsets_store_inferior_registers): Ditto.
19368
a6dbe5df
PA
193692009-05-06 Pedro Alves <pedro@codesourcery.com>
19370
19371 PR server/10048
19372
19373 * linux-low.c (must_set_ptrace_flags): Delete.
19374 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19375 of the global.
19376 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19377 `lwp->must_set_ptrace_flags' instead.
ba42693b 19378 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19379 (linux_wait_1): ... not here.
19380
5091eb23
DE
193812009-04-30 Doug Evans <dje@google.com>
19382
9f767825
DE
19383 * inferiors.c (started_inferior_callback): New function.
19384 (attached_inferior_callback): New function.
19385 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19386 * server.c (print_started_pid, print_attached_pid): New functions.
19387 (detach_or_kill_for_exit): New function.
19388 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19389 * server.h (have_started_inferiors_p): Declare.
19390 (have_attached_inferiors_p): Declare.
19391
5091eb23
DE
19392 * inferiors.c (remove_process): Fix memory leak, free process.
19393 * linux-low.c (linux_remove_process): New function.
19394 (linux_kill): Call it instead of remove_process.
19395 (linux_detach, linux_wait_1): Ditto.
19396
155c8968
PA
193972009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19398
19399 * configure.srv: Add x86 Windows CE target.
19400
7fe519cb
UW
194012009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19402
19403 * inferiors.c (get_thread_process): Make global.
19404 * server.h (get_thread_process): Add prototype.
19405 * thread-db.c (find_one_thread): Use get_thread_process
19406 instead of current_process.
19407 (thread_db_get_tls_address): Do not crash if called when
19408 thread layer is not yet initialized.
19409
5472f405
UW
194102009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19411
19412 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19413 * spu-low.c (current_tid): Rename to ...
19414 (current_ptid): ... this.
19415 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19416 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19417 ptid_get_lwp (current_ptid) instead of current_tid.
19418 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19419 instead of current_tid. Use find_process_pid to verify pid
19420 argument is valid. Pass proper argument to remove_process.
19421 (spu_thread_alive): Compare current_ptid instead of current_tid.
19422 (spu_resume): Likewise.
19423
55ac2b99
PA
194242009-04-02 Pedro Alves <pedro@codesourcery.com>
19425
19426 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19427 variable.
19428
95954743
PA
194292009-04-01 Pedro Alves <pedro@codesourcery.com>
19430
19431 Implement the multiprocess extensions, and add linux multiprocess
19432 support.
19433
19434 * server.h (ULONGEST): Declare.
19435 (struct ptid, ptid_t): New.
19436 (minus_one_ptid, null_ptid): Declare.
19437 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19438 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19439 (struct inferior_list_entry): Change `id' type from unsigned from
19440 to ptid_t.
19441 (struct sym_cache, struct breakpoint, struct
19442 process_info_private): Forward declare.
19443 (struct process_info): Declare.
19444 (current_process): Declare.
19445 (all_processes): Declare.
19446 (initialize_inferiors): Declare.
19447 (add_thread): Adjust to use ptid_t.
19448 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19449 (add_process, remove_process, find_thread_pid): Declare.
19450 (find_inferior_id): Adjust to use ptid_t.
19451 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19452 (multi_process): Declare.
19453 (push_event): Adjust to use ptid_t.
19454 (read_ptid, write_ptid): Declare.
19455 (prepare_resume_reply): Adjust to use ptid_t.
19456 (clear_symbol_cache): Declare.
19457 * inferiors.c (all_processes): New.
19458 (null_ptid, minus_one_ptid): New.
19459 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19460 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19461 (add_thread): Change unsigned long to ptid. Remove gdb_id
19462 parameter. Adjust.
19463 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19464 (gdb_id_to_thread): Rename to ...
19465 (find_thread_pid): ... this. Change unsigned long to ptid.
19466 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19467 (loaded_dll, pull_pid_from_list): Adjust.
19468 (add_process, remove_process, find_process_pid)
19469 (get_thread_process, current_process, initialize_inferiors): New.
19470 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19471 (struct target_waitstatus) <related_pid>: Ditto.
19472 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19473 return type to int.
19474 (struct target_ops) <join>: Add `pid' argument.
19475 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19476 (struct target_ops) <wait>: Add `ptid' field. Change return type
19477 to ptid.
19478 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19479 (mywait): Add `ptid' argument. Change return type to ptid_t.
19480 (target_pid_to_str): Declare.
19481 * target.c (set_desired_inferior): Adjust to use ptids.
19482 (mywait): Add new `ptid' argument. Adjust.
19483 (target_pid_to_str): New.
19484 * mem-break.h (free_all_breakpoints): Declare.
19485 * mem-break.c (breakpoints): Delelete.
19486 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19487 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19488 to use per-process breakpoint list.
19489 (free_all_breakpoints): New.
19490 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19491 (symbol_cache, all_symbols_looked_up): Delete.
19492 (hexchars): New.
19493 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19494 read_ptid): New.
19495 (prepare_resume_reply): Change ptid argument's type from unsigned
19496 long to ptid_t. Adjust. Implement W;process and X;process.
19497 (free_sym_cache, clear_symbol_cache): New.
19498 (look_up_one_symbol): Adjust to per-process symbol cache. *
19499 * server.c (cont_thread, general_thread, step_thread): Change type
19500 to ptid_t.
19501 (attached): Delete.
19502 (multi_process): New.
19503 (last_ptid): Change type to ptid_t.
19504 (struct vstop_notif) <ptid>: Change type to ptid_t.
19505 (queue_stop_reply, push_event): Change `ptid' argument's type to
19506 ptid_t.
19507 (discard_queued_stop_replies): Add `pid' argument.
19508 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19509 changes. Don't reference the `attached' global.
19510 (attach_inferior): Adjust to mywait interface changes.
19511 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19512 features. Handle and report "multiprocess+". Handle
19513 "qAttached:PID".
19514 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19515 changes.
19516 (handle_v_kill): New.
19517 (handle_v_stopped): Adjust to use target_pid_to_str.
19518 (handle_v_requests): Allow multiple attaches and runs when
19519 multiprocess extensions are in effect. Handle "vKill".
19520 (myresume): Adjust to use ptids.
19521 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19522 (handle_status): Adjust to discard_queued_stop_replies interface
19523 change.
19524 (first_thread_of, kill_inferior_callback)
19525 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19526 (main): Call initialize_inferiors. Adjust to use ptids, killing
19527 and detaching from all inferiors. Handle multiprocess packet
19528 variants.
19529 * linux-low.h: Include gdb_proc_service.h.
19530 (struct process_info_private): New.
19531 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19532 <lwpid_of>: Use ptid_get_lwp.
19533 (get_lwp_thread): Adjust.
19534 (struct lwp_info): Add `dead' member.
19535 (find_lwp_pid): Declare.
19536 * linux-low.c (thread_db_active): Delete.
19537 (new_inferior): Adjust comment.
19538 (inferior_pid): Delete.
19539 (linux_add_process): New.
19540 (handle_extended_wait): Adjust.
19541 (add_lwp): Change unsigned long to ptid.
19542 (linux_create_inferior): Add process to processes table. Adjust
19543 to use ptids. Don't set new_inferior here.
19544 (linux_attach_lwp): Rename to ...
19545 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19546 it. Adjust to use ptids.
19547 (linux_attach_lwp): New.
19548 (linux_attach): Add process to processes table. Don't set
19549 new_inferior here.
19550 (struct counter): New.
19551 (second_thread_of_pid_p, last_thread_of_process_p): New.
19552 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19553 multiple processes.
19554 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19555 processes. Remove process from process table.
19556 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19557 to multiple processes.
19558 (any_thread_of): New.
19559 (linux_detach): Add `pid' argument, and handle it. Remove process
19560 from processes table.
19561 (linux_join): Add `pid' argument. Handle it.
19562 (linux_thread_alive): Change unsighed long argument to ptid_t.
19563 Consider dead lwps as not being alive.
19564 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19565 threads we're not interested in.
19566 (same_lwp, find_lwp_pid): New.
19567 (linux_wait_for_lwp): Change `pid' argument's type from int to
19568 ptid_t. Adjust.
19569 (linux_wait_for_event): Rename to ...
19570 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19571 from int to ptid_t. Adjust.
19572 (linux_wait_for_event): New.
19573 (linux_wait_1): Add `ptid' argument. Change return type to
19574 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19575 that exit from the process table.
19576 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19577 Adjust.
19578 (mark_lwp_dead): New.
19579 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19580 stopping all threads, mark its main lwp as dead.
19581 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19582 ptids.
19583 (fetch_register, usr_store_inferior_registers)
19584 (regsets_fetch_inferior_registers)
19585 (regsets_store_inferior_registers, linux_read_memory)
19586 (linux_write_memory): Inline `inferior_pid'.
19587 (linux_look_up_symbols): Adjust to use per-process
19588 `thread_db_active'.
19589 (linux_request_interrupt): Adjust to use ptids.
19590 (linux_read_auxv): Inline `inferior_pid'.
19591 (initialize_low): Don't reference thread_db_active.
19592 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19593 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19594 (ps_getpid): Return the pid of the current inferior.
19595 * thread-db.c (proc_handle, thread_agent): Delete.
19596 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19597 per-process data.
19598 (find_one_thread): Change argument type to ptid_t. Adjust to
19599 per-process data.
19600 (maybe_attach_thread): Adjust to per-process data and ptids.
19601 (thread_db_find_new_threads): Ditto.
19602 (thread_db_init): Ditto.
19603 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19604 processes table. Adjust to use ptids.
19605 (spu_kill, spu_detach): Adjust interface. Remove process from
19606 processes table.
19607 (spu_join, spu_thread_alive): Adjust interface.
19608 (spu_wait): Adjust interface. Remove process from processes
19609 table. Adjust to use ptids.
19610 * win32-low.c (current_inferior_tid): Delete.
19611 (current_inferior_ptid): New.
19612 (debug_event_ptid): New.
19613 (thread_rec): Take a ptid. Adjust.
19614 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19615 (child_delete_thread): Ditto.
19616 (do_initial_child_stuff): Add `attached' argument. Add process to
19617 processes table.
19618 (child_fetch_inferior_registers, child_store_inferior_registers):
19619 Adjust.
19620 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19621 (win32_attach): Pass 1 to do_initial_child_stuff.
19622 (win32_kill): Adjust interface. Remove process from processes
19623 table.
19624 (win32_detach): Ditto.
19625 (win32_join): Adjust interface.
19626 (win32_thread_alive): Take a ptid.
19627 (win32_resume): Adjust to use ptids.
19628 (get_child_debug_event): Ditto.
19629 (win32_wait): Adjust interface. Remove exiting process from
19630 processes table.
19631
bd99dc85
PA
196322009-04-01 Pedro Alves <pedro@codesourcery.com>
19633
19634 Non-stop mode support.
19635
19636 * server.h (non_stop): Declare.
19637 (gdb_client_data, handler_func): Declare.
19638 (delete_file_handler, add_file_handler, start_event_loop):
19639 Declare.
19640 (handle_serial_event, handle_target_event, push_event)
19641 (putpkt_notif): Declare.
19642 * target.h (enum resume_kind): New.
19643 (struct thread_resume): Replace `step' field by `kind' field.
19644 (TARGET_WNOHANG): Define.
19645 (struct target_ops) <wait>: Add `options' argument.
19646 <supports_non_stop, async, start_non_stop>: New fields.
19647 (target_supports_non_stop, target_async): New.
19648 (start_non_stop): Declare.
19649 (mywait): Add `options' argument.
19650 * target.c (mywait): Add `options' argument. Print child exit
19651 notifications here.
19652 (start_non_stop): New.
19653 * server.c (non_stop, own_buf, mem_buf): New globals.
19654 (struct vstop_notif): New.
19655 (notif_queue): New global.
19656 (queue_stop_reply, push_event, discard_queued_stop_replies)
19657 (send_next_stop_reply): New.
19658 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19659 interface changes.
19660 (attach_inferior): In non-stop mode, don't wait for the target
19661 here.
19662 (handle_general_set): Handle QNonStop.
19663 (handle_query): When handling qC, return the current general
19664 thread, instead of the first thread of the list.
19665 (handle_query): If the backend supports non-stop mode, include
19666 QNonStop+ in the qSupported query response.
19667 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19668 and non-stop mode.
19669 (handle_v_attach, handle_v_run): Handle non-stop mode.
19670 (handle_v_stopped): New.
19671 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19672 (myresume): Adjust to use resume_kind. Handle non-stop.
19673 (queue_stop_reply_callback): New.
19674 (handle_status): Handle non-stop mode.
19675 (main): Clear non_stop flag on reconnection. Use the event-loop.
19676 Refactor serial protocol handling from here ...
19677 (process_serial_event): ... to this new function. When GDB
19678 selects any thread, select one here. In non-stop mode, wait until
19679 GDB acks all pending events before exiting.
19680 (handle_serial_event, handle_target_event): New.
19681 * remote-utils.c (remote_open): Install remote_desc in the event
19682 loop.
19683 (remote_close): Remove remote_desc from the event loop.
19684 (putpkt_binary): Rename to...
19685 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19686 (putpkt_binary): New as wrapper around putpkt_binary_1.
19687 (putpkt_notif): New.
19688 (prepare_resume_reply): In non-stop mode, don't change the
19689 general_thread.
19690 * event-loop.c: New.
19691 * Makefile.in (OBJ): Add event-loop.o.
19692 (event-loop.o): New rule.
19693
19694 * linux-low.h (pid_of): Moved here.
19695 (lwpid_of): New.
19696 (get_lwp_thread): Use lwpid_of.
19697 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19698 * linux-low.c (pid_of): Delete.
19699 (inferior_pid): Use lwpid_of.
19700 (linux_event_pipe): New.
19701 (target_is_async_p): New.
19702 (delete_lwp): New.
19703 (handle_extended_wait): Use lwpid_of.
19704 (add_lwp): Don't set lwpid field.
19705 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19706 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19707 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19708 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19709 first. Adjust to linux_wait_for_event interface changes. Use
19710 lwpid_of.
19711 (linux_detach): Don't delete the main lwp here.
19712 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19713 (status_pending_p): Don't consider explicitly suspended lwps.
19714 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19715 pointer. Add OPTIONS argument. Change return type to int. Use
19716 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19717 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19718 pointer. Add status pointer argument. Return a pid instead of a
19719 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19720 changes. In non-stop mode, don't switch to a random thread.
19721 (linux_wait): Rename to...
19722 (linux_wait_1): ... this. Add target_options argument, and handle
19723 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19724 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19725 clean exit and signal exit code. Don't stop all threads in
19726 non-stop mode. In all-stop mode, only stop all threads when
19727 reporting a stop to GDB. Handle explicit thread stop requests.
19728 (async_file_flush, async_file_mark): New.
19729 (linux_wait): New.
19730 (send_sigstop): Use lwpid_of.
19731 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19732 interface changes. In non-stop mode, don't switch to a random
19733 thread.
19734 (linux_resume_one_lwp): Use lwpid_of.
19735 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19736 (linux_resume_one_thread): ... this. Handle resume_stop. In
19737 non-stop mode, don't look for pending flag in all threads.
19738 (resume_status_pending_p): Don't consider explicitly suspended
19739 threads.
19740 (my_waitpid): Reimplement. Emulate __WALL.
19741 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19742 Use lwpid_of.
19743 (sigchld_handler, linux_supports_non_stop, linux_async)
19744 (linux_start_non_stop): New.
19745 (linux_target_ops): Register linux_supports_non_stop, linux_async
19746 and linux_start_non_stop.
19747 (initialize_low): Install SIGCHLD handler.
19748 * thread-db.c (thread_db_create_event, find_one_thread)
19749 (thread_db_get_tls_address): Use lwpid_of.
19750 * win32-low.c (win32_detach): Adjust to use resume_kind.
19751 (win32_wait): Add `options' argument.
19752 * spu-low.c (spu_resume): Adjust to use resume_kind.
19753 (spu_wait): Add `options' argument.
19754
5b1c542e
PA
197552009-04-01 Pedro Alves <pedro@codesourcery.com>
19756
19757 Decouple target code from remote protocol.
19758
19759 * target.h (enum target_waitkind): New.
19760 (struct target_waitstatus): New.
19761 (struct target_ops) <wait>: Return an unsigned long. Take a
19762 target_waitstatus pointer instead of a char pointer.
19763 (mywait): Likewise.
19764 * target.c (mywait): Change prototype to return an unsigned long.
19765 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19766 * server.h (thread_from_wait, old_thread_from_wait): Delete
19767 declarations.
19768 (prepare_resume_reply): Change prototype to take a
19769 target_waitstatus.
19770 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19771 (last_status, last_ptid): New.
19772 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19773 pid instead of a signal.
19774 (attach_inferior): Remove "status" and "signal" parameters.
19775 Adjust.
19776 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19777 not as an address.
19778 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19779 (handle_v_requests, myresume): Remove "status" and "signal"
19780 parameters. Adjust.
19781 (handle_status): New.
19782 (main): Delete local `status'. Adjust.
19783 * remote-utils.c: Include target.h.
19784 (prepare_resume_reply): Change prototype to take a
19785 target_waitstatus. Adjust.
19786
19787 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19788 interface.
19789 * spu-low.c (spu_wait): Adjust.
19790 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19791 Delete.
19792 (win32_wait): Adjust.
19793
2bd7c093
PA
197942009-04-01 Pedro Alves <pedro@codesourcery.com>
19795
19796 * target.h (struct thread_resume): Delete leave_stopped member.
19797 (struct target_ops): Add a `n' argument to the `resume' callback.
19798 * server.c (start_inferior): Adjust.
19799 (handle_v_cont, myresume): Adjust.
19800 * linux-low.c (check_removed_breakpoint): Adjust to resume
19801 interface change, and to removed leave_stopped field.
19802 (resume_ptr): Delete.
19803 (struct thread_resume_array): New.
19804 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19805 resume interface change.
19806 (linux_continue_one_thread, linux_queue_one_thread)
19807 (resume_status_pending_p): Check if the resume field is NULL
19808 instead of checking the leave_stopped member.
19809 (linux_resume): Adjust to the target resume interface change.
19810 * spu-low.c (spu_resume): Adjust to the target resume interface
19811 change.
19812 * win32-low.c (win32_detach, win32_resume): Ditto.
19813
c35fafde
PA
198142009-04-01 Pedro Alves <pedro@codesourcery.com>
19815
19816 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19817 flag.
19818 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19819 pending.
19820 (linux_continue_one_thread): Only preserve the stepping flag if
19821 there's a pending breakpoint.
19822
0a59d50b
PA
198232009-03-31 Pedro Alves <pedro@codesourcery.com>
19824
19825 * server.c (main): After the inferior having exited, call
19826 remote_close before exiting gdbserver.
19827
f04c6d38
TJB
198282009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19829
19830 Fix size of FPSCR in Power 7 processors.
19831 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19832 (PPC_FEATURE_HAS_DFP): New #define.
19833 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19834 size of the FPSCR.
19835
78e5cee6
PA
198362009-03-23 Pedro Alves <pedro@codesourcery.com>
19837
19838 * server.c (handle_query) Whitespace and formatting.
19839
1b3f6016
PA
198402009-03-22 Pedro Alves <pedro@codesourcery.com>
19841
19842 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19843 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19844 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19845 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19846 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19847 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19848 Makefile.in, configure.ac: Fix whitespace throughout.
19849 * configure: Regenerate.
19850
a07b2135
PA
198512009-03-22 Pedro Alves <pedro@codesourcery.com>
19852
19853 * inferiors.c (find_inferior): Make it safe for the callback
19854 function to delete the currently iterated inferior.
19855
67cc2626
PA
198562009-03-22 Pedro Alves <pedro@codesourcery.com>
19857
19858 * Makefile.in (linuw_low_h): Move higher.
19859 (thread-db.o): Depend on $(linux_low_h).
19860
54a0b537
PA
198612009-03-17 Pedro Alves <pedro@codesourcery.com>
19862
19863 Rename "process" to "lwp" throughout.
19864
19865 * linux-low.c (all_processes): Rename to...
19866 (all_lwps): ... this.
19867 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19868 (add_process): Rename to ...
19869 (add_lwp): ... this. Adjust.
19870 (linux_create_inferior): Adjust.
19871 (linux_attach_lwp): Adjust.
19872 (linux_attach): Adjust.
19873 (linux_kill_one_process): Rename to ...
19874 (linux_kill_one_lwp): ... this. Adjust.
19875 (linux_kill): Adjust.
19876 (linux_detach_one_process): Rename to ...
19877 (linux_detach_one_lwp): ... this. Adjust.
19878 (linux_detach): Adjust.
19879 (check_removed_breakpoint): Adjust.
19880 (status_pending_p): Adjust.
19881 (linux_wait_for_process): Rename to ...
19882 (linux_wait_for_lwp): ... this. Adjust.
19883 (linux_wait_for_event): Adjust.
19884 (send_sigstop): Adjust.
19885 (wait_for_sigstop): Adjust.
19886 (stop_all_processes): Rename to ...
19887 (stop_all_lwps): ... this.
19888 (linux_resume_one_process): Rename to ...
19889 (linux_resume_one_lwp): ... this. Adjust.
19890 (linux_set_resume_request, linux_continue_one_thread)
19891 (linux_queue_one_thread, resume_status_pending_p)
19892 (usr_store_inferior_registers, regsets_store_inferior_registers)
19893 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19894 Adjust.
19895 * linux-low.h (get_process): Rename to ...
19896 (get_lwp): ... this. Adjust.
19897 (get_thread_process): Rename to ...
19898 (get_thread_lwp): ... this. Adjust.
19899 (get_process_thread): Rename to ...
19900 (get_lwp_thread): ... this. Adjust.
19901 (struct process_info): Rename to ...
19902 (struct lwp_info): ... this.
19903 (all_processes): Rename to ...
19904 (all_lwps): ... this.
19905 * proc-service.c (ps_lgetregs): Adjust.
19906 * thread-db.c (thread_db_create_event, find_one_thread)
19907 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19908
0b16c5cf
PA
199092009-03-14 Pedro Alves <pedro@codesourcery.com>
19910
19911 * server.c (handle_query): Handle "qAttached".
19912
32de4b9d
NS
199132009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19914
19915 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19916 GPLv3, update license URL.
19917
2aecd87f
DE
199182009-03-01 Doug Evans <dje@google.com>
19919
93efd302 19920 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19921 (server_h): Add gdb_signals.h.
19922 (signals.o): Update.
19923 * server.h (target_signal_from_host,target_signal_to_host_p)
19924 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19925
86b1f9c5
PM
199262009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19927
19928 * remote-utils.c (getpkt): Also generate remote-debug
19929 information if noack_mode is set.
19930
4aa995e1
PA
199312009-02-06 Pedro Alves <pedro@codesourcery.com>
19932
19933 * server.c (handle_query): Report qXfer:siginfo:read and
19934 qXfer:siginfo:write as supported and handle them.
19935 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19936 * linux-low.c (linux_xfer_siginfo): New.
19937 (linux_target_ops): Set it.
19938
62709adf
PA
199392009-01-26 Pedro Alves <pedro@codesourcery.com>
19940
19941 * server.c (gdbserver_usage): Mention --remote-debug.
19942 (main): Accept '--remote-debug' switch.
19943
aef93bd7
DE
199442009-01-18 Doug Evans <dje@google.com>
19945
19946 * regcache.c (new_register_cache): No need to check result of xcalloc.
19947 * server.c (handle_search_memory): Back out calls to xmalloc,
19948 result is checked and error is returned to user upon failure.
19949 (handle_query): Ditto. Add more checks for result of malloc.
19950 (handle_v_cont): Check result of malloc, report error back to
19951 user upon failure.
19952 (handle_v_run): Ditto. Call freeargv.
19953 * server.h (freeargv): Declare.
19954 * utils.c (freeargv): New fn.
19955
54363045
DE
199562009-01-15 Doug Evans <dje@google.com>
19957
f626972c
DE
19958 * gdbreplay.c (perror_with_name): Make arg const char *.
19959 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19960 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19961 * utils.c (perror_with_name): Make arg const char *.
54363045 19962
18aae699
PA
199632009-01-14 Pedro Alves <pedro@codesourcery.com>
19964
19965 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19966 when handling a EXIT_PROCESS_DEBUG_EVENT.
19967
ff703abe
JB
199682009-01-06 Joel Brobecker <brobecker@adacore.com>
19969
19970 * gdbreplay.c (gdbreplay_version): Update copyright year.
19971 * server.c (gdbserver_version): Likewise.
19972
f21cc1a2 199732009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19974
19975 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19976 (handle_extended_wait): Improve comment.
0e21c1ec 19977
bca929d3
DE
199782008-12-13 Doug Evans <dje@google.com>
19979
19980 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19981 * server.h (ATTR_MALLOC): New macro.
19982 (xmalloc,xcalloc,xstrdup): Declare.
19983 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19984 * inferiors.c: Ditto.
19985 * linux-low.c: Ditto.
19986 * mem-break.c: Ditto.
19987 * regcache.c: Ditto.
19988 * remote-utils.c: Ditto.
19989 * server.c: Ditto.
19990 * target.c: Ditto.
19991 * win32-low.c: Ditto.
19992
97438e3f
DE
199932008-12-12 Doug Evans <dje@google.com>
19994
896c7fbb
DE
19995 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19996 in debugging printf.
19997
97438e3f
DE
19998 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19999
e3b886f8
DE
200002008-12-09 Doug Evans <dje@google.com>
20001
20002 * linux-low.h (struct process_info): Delete member tid, unused.
20003 * thread-db.c (find_one_thread): Update.
20004 (maybe_attach_thread): Update.
20005
07e059b5
VP
200062008-12-02 Pedro Alves <pedro@codesourcery.com>
20007
889bf7c5
PA
20008 * target.h (struct target_ops): Add qxfer_osdata member.
20009 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20010 and dirent.h.
20011 (linux_qxfer_osdata): New functions.
20012 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20013 callback.
20014 * server.c (handle_query): Handle "qXfer:osdata:read:".
20015 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20016 (buffer_xml_printf): New functions.
20017 * server.h (struct buffer): New.
20018 (buffer_grow_str, buffer_grow_str0): New macros.
20019 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20020 (buffer_xml_printf): Declare.
07e059b5 20021
4cab47ab
DE
200222008-11-24 Doug Evans <dje@google.com>
20023
20024 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20025
f142445f
DJ
200262008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20027
20028 * server.c (handle_v_run): Always use the supplied argument list.
20029
d0107bb6 200302008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 20031
d0107bb6
BW
20032 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20033 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20034
2c4ad781
TJB
200352008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20036
20037 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20038 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20039 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20040 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20041 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20042 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20043 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20044 XML target descriptions.
20045 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20046 when inferior is running on an ISA 2.05 or later processor. Add
20047 special case to return offset for full 64-bit slot of FPSCR when
20048 in 32-bits.
20049
dfb64f85
DJ
200502008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20051
20052 * Makefile.in (SFILES, clean): Added sparc64 files.
20053 (reg-sparc64.o, reg-sparc64.c): New.
20054 * configure.srv (sparc*-*-linux*): New configuration.
20055 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20056 syscall arguments for SPARC.
20057 (regsets_store_inferior_registers): Likewise.
20058 * linux-sparc-low.c: New file.
20059
66b6e1dd
DE
200602008-10-21 Doug Evans <dje@google.com>
20061
20062 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20063 (READLINE_DIR,READLINE_DEP): Delete.
20064 (INTERNAL_CFLAGS): Update.
20065 (LINTFLAGS): Update.
20066
9b710a42
PA
200672008-10-10 Pedro Alves <pedro@codesourcery.com>
20068
20069 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20070 whole argv from the last run, not just argv[0].
20071
5822d809
PA
200722008-09-08 Pedro Alves <pedro@codesourcery.com>
20073
20074 * regcache.c (new_register_cache): Return NULL if the register
20075 cache size isn't known yet.
20076 (free_register_cache): Avoid dereferencing a NULL regcache.
20077
74aac56f
DJ
200782008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20079
20080 * configure.srv: Merge MIPS and MIPS64.
20081
400b20f5
MR
200822008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20083
20084 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20085
677c5bb1
LM
200862008-08-18 Luis Machado <luisgpm@br.ibm.com>
20087
20088 * Makefile.in: Add required vsx dependencies.
20089
20090 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20091 Declare init_registers_powerpc_vsx32l.
20092 Declare init_registers_powerpc_vsx64l.
20093 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20094 (ppc_arch_setup): Check for VSX in hwcap.
20095 (ppc_fill_vsxregset): New function.
20096 (ppc_store_vsxregset): New function.
20097 Add new VSX entry in regset_info target_regsets.
20098
20099 * configure.srv: Add new VSX dependencies.
20100
a6f3e723
SL
201012008-08-12 Pedro Alves <pedro@codesourcery.com>
20102
20103 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20104 (remote_open): Set or clear transport_is_reliable.
20105 (putpkt_binary): Don't expect acks in noack mode.
20106 (getpkt): Don't send ack/nac in noack mode.
20107 * server.c (handle_general_set): Handle QStartNoAckMode.
20108 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20109 qSupported.
20110 (main): Reset noack_mode on every connection.
20111 * server.h (noack_mode): Declare.
20112
a417dc56
RW
201132008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20114
20115 * Makefile.in (GDBREPLAY_OBS): New variable.
20116 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20117
3221518c
UW
201182008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20119 Daniel Jacobowitz <dan@codesourcery.com>
20120
20121 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20122 (usr_store_inferior_registers): Likewise.
20123 (regsets_store_inferior_registers): Likewise.
20124
ec56be1b
PA
201252008-07-31 Rolf Jansen <rj@surtec.com>
20126 Pedro Alves <pedro@codesourcery.com>
20127
20128 * configure.ac: Check for memmem declaration.
20129 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20130 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20131 (disable_packet_qfThreadInfo): Unconditionally compile.
20132 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20133 * configure, config.in: Regenerate.
20134
2fe5e3ff
DE
201352008-07-28 Doug Kwan <dougkwan@google.com>
20136
20137 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20138 (linux_write_memory): Remove declaration of errno.
20139
836acd6d
UW
201402008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20141
20142 * linux-low.c (handle_extended_wait): Do not use "status"
20143 variable uninitialized.
20144
aeba519e
PA
201452008-07-07 Pedro Alves <pedro@codesourcery.com>
20146
20147 * server.c (handle_v_attach): Inhibit reporting dll changes.
20148
db42f210
PA
201492008-06-27 Pedro Alves <pedro@codesourcery.com>
20150
20151 * remote-utils.c (prepare_resume_reply): If requested, don't
20152 output "thread:TID" in the T stop reply.
20153
20154 * server.c (disable_packet_vCont, disable_packet_Tthread)
20155 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20156 (handle_query): If requested, disable support for qC, qfThreadInfo
20157 and qsThreadInfo.
20158 (handle_v_requests): If requested, disable support for vCont.
20159 (gdbserver_show_disableable): New.
20160 (main): Handle --disable-packet and --disable-packet=LIST.
20161
20162 * server.h (disable_packet_vCont, disable_packet_Tthread)
20163 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20164
8e4c5421
CD
201652008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20166
20167 * server.c (gdbserver_usage): Mention --version.
20168
6e23a804
DJ
201692008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20170
20171 * Makefile.in (gdbreplay.o): New rule.
20172
90aa6a40
JM
201732008-06-06 Joseph Myers <joseph@codesourcery.com>
20174
20175 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20176 message, not gdbserver.
20177
c16158bc 201782008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20179 Nathan Sidwell <nathan@codesourcery.com>
20180 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20181
20182 * acinclude.m4: Include ../../config/acx.m4.
20183 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20184 * configure, config.in: Regenerate.
20185 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20186 * server.c (gdbserver_version): Print PKGVERSION.
20187 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20188 (main): Adjust gdbserver_usage calls.
20189 * gdbreplay.c (version, host_name): Add declarations.
20190 (gdbreplay_version, gdbreplay_usage): New.
20191 (main): Accept --version and --help options.
20192
aeb75bf5
DJ
201932008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20194
20195 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20196 (arm_breakpoint_at): Handle Thumb.
20197 (the_low_target): Add comment.
20198
76b233dd
UW
201992008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20200
20201 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20202
08388c79
DE
202032008-05-09 Doug Evans <dje@google.com>
20204
a3c83fae
DE
20205 * server.h (decode_search_memory_packet): Declare.
20206 * remote-utils.c (decode_search_memory_packet): New fn.
20207 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20208 (handle_search_memory): New fn.
20209 (handle_query): Process qSearch:memory packets.
20210
bb9c3d36
UW
202112008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20212
20213 * regcache.c (registers_length): Remove.
20214 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20215 full register packet.
20216 * regcache.h (registers_length): Remove prototype.
20217 * server.h (PBUFSIZ): Define to 16384.
20218
7284e1be
UW
202192008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20220
20221 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20222 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20223 powerpc-64l.o, and powerpc-altivec64l.o.
20224 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20225 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20226 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20227 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20228 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20229 to srv_xmlfiles.
20230
20231 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20232 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20233 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20234 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20235 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20236 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20237 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20238 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20239 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20240 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20241 (clean): Update.
20242
20243 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20244 (init_registers_powerpc_32l): ... this new prototype.
20245 (init_registers_powerpc_32): Remove, replace by ...
20246 (init_registers_powerpc_altivec32l): ... this new prototype.
20247 (init_registers_powerpc_e500): Remove, replace by ...
20248 (init_registers_powerpc_e500l): ... this new prototype.
20249 (init_registers_ppc64): Remove, replace by ...
20250 (init_registers_powerpc_64l): ... this new prototype.
20251 (init_registers_powerpc_64): Remove, replace by ...
20252 (init_registers_powerpc_altivec64l): ... this new prototype.
20253 (ppc_num_regs): Set to 73.
20254 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20255 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20256 (ppc_cannot_store_register): Handle orig_r3 and trap.
20257 (ppc_arch_setup): Update init_registers_... calls.
20258 (ppc_fill_gregset): Handle orig_r3 and trap.
20259
20260 * inferiors.c (clear_inferiors): Reset current_inferior.
20261
fdc59709
PB
202622008-04-23 Paolo Bonzini <bonzini@gnu.org>
20263
889bf7c5
PA
20264 * acinclude.m4: Add override.m4.
20265 * configure: Regenerate.
fdc59709 20266
c9b2f845
UW
202672008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20268
20269 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20270 initial call to init_register_ppc64.
20271
550512b8
UW
202722008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20273
43aaf8b6
PA
20274 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20275 single powerpc*-*-linux* case.
550512b8
UW
20276 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20277
b6430ec3
UW
202782008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20279
20280 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20281 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20282 from reg_xmlfiles.
20283 * linux-ppc-low.c: Include <elf.h>.
20284 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20285 (ppc_hwcap): New global variable.
20286 (ppc_regmap): Remove __SPE__ #ifdef sections.
20287 (ppc_regmap_e500): New global variable.
20288 (ppc_cannot_store_register): Update __SPE__ special case.
20289 (ppc_get_hwcap): New function.
20290 (ppc_arch_setup): Use it to determine whether inferior supports
20291 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20292 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20293 Do not access registers if target does not support AltiVec.
20294 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20295 Do not access registers if target does not support SPE.
20296 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20297
52fa2412
UW
202982008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20299
20300 * linux-low.c (disabled_regsets, num_regsets): New.
20301 (use_regsets_p): Delete.
20302 (linux_wait_for_process): Clear disabled_regsets.
20303 (regsets_fetch_inferior_registers): Check and set it.
20304 (regsets_store_inferior_registers): Likewise.
20305 (linux_fetch_registers, linux_store_registers): Do not use
20306 use_regsets_p.
20307 (initialize_low): Allocate disabled_regsets.
20308
e28b3332
DJ
203092008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20310
20311 * Makefile.in (LIBOBJS): New.
20312 (OBS): Use LIBOBJS.
20313 (memmem.o): New rule.
20314 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20315 * configure: Regenerated.
20316
4536995d
UW
203172008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20318
20319 * server.c (handle_query): Never return "unsupported" for
20320 qXfer:features:read queries.
20321
221c031f
UW
203222008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20323
20324 * server.c (get_features_xml): Fix inverted condition.
20325 (handle_query): Always support qXfer:feature:read.
20326
ccd213ac
DJ
203272008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20328
20329 * server.c (wrapper_argv): New.
20330 (start_inferior): Handle wrapper_argv. If set, expect an extra
20331 trap.
20332 (gdbserver_usage): Document --wrapper.
20333 (main): Parse --wrapper.
20334
6fe305f7
UW
203352008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20336
20337 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20338 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20339 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20340 (ppc_set_pc): Likewise.
20341 (ppc_arch_setup): New function.
20342 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20343 of collect_register.
889bf7c5 20344 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20345
5b0a002e
UW
203462008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20347
20348 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20349 instead of linux-ppc64-low.o.
20350 * linux-ppc64-low.c: Remove file.
20351 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20352 (linux-ppc64-low.o): Remove rule.
20353
20354 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20355 (init_registers_powerpc_64): Likewise.
20356 (ppc_regmap): Conditionally define depending on __powerpc64__.
20357 (ppc_cannot_store_register): Do not special-case "fpscr" when
20358 compiled on __powerpc64__.
20359 (ppc_collect_ptrace_register): New function.
20360 (ppc_supply_ptrace_register): New function.
20361 (ppc_breakpoint): Change type to "unsigned int".
20362 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20363 (the_low_target): Conditionally provide initializers for the
889bf7c5 20364 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20365 collect_ptrace_register and supply_ptrace_register members.
20366
9b4b61c8
UW
203672008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20368
20369 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20370 * server.c (gdbserver_xmltarget): Define.
20371 (get_features_xml): Use it to replace "target.xml" and arch_string.
20372
20373 * configure.srv: Remove srv_xmltarget. Add XML files that were
20374 mentioned there to srv_xmlfiles instead. Remove conditional tests
20375 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20376 srv_xmlfiles and srv_regobj to include all possible choices.
20377 * configure.ac (srv_xmltarget): Remove.
20378 (srv_xmlfiles): Do not add "target.xml".
20379 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20380 checks for supplementary target information.
20381 * configure: Regenerate.
20382 * Makefile.in (XML_TARGET): Remove.
20383 (target.xml): Remove rule.
20384 (clean): Do not clean up target.xml.
20385 (.PRECIOUS): Do not mention target.xml.
20386
20387 * target.h (struct target_ops): Remove arch_string member.
20388 * linux-low.c (linux_arch_string): Remove.
20389 (linux_target_ops): Remove arch_string initializer.
20390 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20391 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20392 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20393 * spu-low.c (spu_arch_string): Remove.
20394 (spu_target_ops): Remove arch_string initializer.
20395 * win32-low.c (win32_arch_string): Remove.
20396 (win32_target_ops): Remove arch_string initializer.
20397 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20398 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20399 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20400
ee1a7ae4
UW
204012008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20402
20403 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20404 by collect_ptrace_register and supply_ptrace_register hooks.
20405 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20406 instead of checking for the_low_target.left_pad_xfer.
20407 (usr_store_inferior_registers): Use collect_ptrace_register callback
20408 instead of checking for the_low_target.left_pad_xfer.
20409
20410 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20411 (s390_supply_ptrace_register): Likewise.
20412 (s390_fill_gregset): Call s390_collect_ptrace_register.
20413 (the_low_target): Update.
20414
20415 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20416 (ppc_supply_ptrace_register): Likewise.
20417 (the_low_target): Update.
20418
20419 * linux-i386-low.c (the_low_target): Update.
20420 * linux-x86-64-low.c (the_low_target): Update.
20421
d61ddec4
UW
204222008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20423
20424 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20425 reg-s390.o and reg-s390x.o.
20426
20427 * linux-low.c (new_inferior): New global variable.
20428 (linux_create_inferior, linux_attach): Set it.
20429 (linux_wait_for_process): Call the_low_target.arch_setup after the
20430 target has stopped for the first time.
20431 (initialize_low): Do not call the_low_target.arch_setup.
20432
20433 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20434 (s390_set_pc): Likewise.
20435 (s390_arch_setup): New function.
20436 (the_low_target): Use s390_arch_setup as arch_setup routine.
20437
20438 * regcache.c (realloc_register_cache): New function.
20439 (set_register_cache): Call it for each existing regcache.
20440
d05b4ac3
UW
204412008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20442
20443 * server.h (init_registers): Remove prototype.
20444
20445 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20446 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20447 instead of init_registers ().
20448 * linux-arm-low.c (init_registers_arm): Add prototype.
20449 (init_registers_arm_with_iwmmxt): Likewise.
20450 (the_low_target): Add initializer for arch_setup field.
20451 * linux-cris-low.c (init_registers_cris): Add prototype.
20452 (the_low_target): Add initializer for arch_setup field.
20453 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20454 (the_low_target): Add initializer for arch_setup field.
20455 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20456 (the_low_target): Add initializer for arch_setup field.
20457 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20458 (the_low_target): Add initializer for arch_setup field.
20459 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20460 (the_low_target): Add initializer for arch_setup field.
20461 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20462 (the_low_target): Add initializer for arch_setup field.
20463 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20464 (init_registers_mips64_linux): Likewise.
20465 (the_low_target): Add initializer for arch_setup field.
20466 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20467 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20468 (the_low_target): Add initializer for arch_setup field.
20469 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20470 (init_registers_powerpc_64): Likewise.
20471 (the_low_target): Add initializer for arch_setup field.
20472 * linux-s390-low.c (init_registers_s390): Add prototype.
20473 (init_registers_s390x): Likewise.
20474 (the_low_target): Add initializer for arch_setup field.
20475 * linux-sh-low.c (init_registers_sh): Add prototype.
20476 (the_low_target): Add initializer for arch_setup field.
20477 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20478 (the_low_target): Add initializer for arch_setup field.
20479 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20480 (the_low_target): Add initializer for arch_setup field.
20481
20482 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20483 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20484 instead of init_registers ().
20485 * win32-arm-low.c (init_registers_arm): Add prototype.
20486 (the_low_target): Add initializer for arch_setup field.
20487 * win32-i386-low.c (init_registers_i386): Add prototype.
20488 (the_low_target): Add initializer for arch_setup field.
20489
20490 * spu-low.c (init_registers_spu): Add prototype.
20491 (initialize_low): Call initialie_registers_spu () instead of
20492 initialize_registers ().
20493
fd96d250
PA
204942008-02-19 Pedro Alves <pedro@codesourcery.com>
20495
20496 * server.c (handle_v_requests): When handling the vRun and vAttach
20497 packets, if already debugging a process, don't kill it. Return an
20498 error instead.
20499
d41b6bb4
DJ
205002008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20501
20502 * server.c (handle_query): Correct length check.
20503
5ac588cf
PA
205042008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20505
20506 * win32-low.c (do_initial_child_stuff): Add process handle
20507 parameter. Set current_process_handle and current_process_id from the
20508 parameters. Clear globals.
20509 (win32_create_inferior): Don't set current_process_handle and
20510 current_process_id here. Instead pass them on the call to
20511 do_initial_child_stuff.
20512 (win32_attach): Likewise.
20513 (win32_clear_inferiors): New.
20514 (win32_kill): Don't close the current process handle or the
20515 current thread handle here. Instead call win32_clear_inferiors.
20516 (win32_detach): Don't open a new handle to the process. Call
20517 win32_clear_inferiors.
20518 (win32_join): Don't rely on current_process_handle; open a new
20519 handle using the process id.
20520 (win32_wait): Call win32_clear_inferiors when the inferior process
20521 has exited.
20522
ecd7ecbc
DJ
205232008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20524
20525 * server.c (monitor_show_help): Add "exit".
20526
1525d545
MG
205272008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20528
ecd7ecbc 20529 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20530 (clean): Add reg-xtensa.c.
20531 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20532 * configure.srv (xtensa*-*-linux*) New target.
20533 * linux-xtensa-low.c: New.
20534 * xtensa-xtregs.c: New.
1525d545 20535
59a016f0
PA
205362008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20537
20538 * hostio.c: Don't include errno.h.
20539 (errno_to_fileio_errno): Move to hostio-errno.
20540 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20541 error number outputting to the target->hostio_last_error callback.
20542 (hostio_packet_error): Use FILEIO_EINVAL directly.
20543 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20544 calls to hostio_error.
20545 * hostio-errno.c: New.
20546 * server.h (hostio_last_error_from_errno): Declare.
20547 * target.h (target_ops): Add hostio_last_error member.
20548 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20549 as hostio_last_error handler.
889bf7c5 20550 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20551 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20552 (wince_hostio_last_error): New functions.
20553 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20554 as hostio_last_error handler.
20555 (win32_target_ops) [!_WIN32_WCE]: Register
20556 hostio_last_error_from_errno as hostio_last_error handler.
20557 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20558 (hostio-errno.o): New rule.
20559 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20560 * configure.srv (srv_hostio_err_objs): New variable. Default to
20561 hostio-errno.o.
20562 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20563 * configure: Regenerate.
20564
2d717e4f
DJ
205652008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20566
20567 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20568 (linux_kill, linux_detach): Clean up the process list.
20569 * remote-utils.c (remote_open): Improve port number parsing.
20570 (putpkt_binary, input_interrupt): Only send interrupts if the target
20571 is running.
20572 * server.c (extended_protocol): Make static.
20573 (attached): Define earlier.
20574 (exit_requested, response_needed, program_argv): New variables.
20575 (target_running): New.
20576 (start_inferior): Clear attached here.
20577 (attach_inferior): Set attached here.
20578 (require_running): Define.
20579 (handle_query): Use require_running and target_running. Implement
20580 "monitor exit".
20581 (handle_v_attach, handle_v_run): New.
20582 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20583 (gdbserver_usage): Update.
20584 (main): Redo argument parsing. Handle --debug and --multi. Handle
20585 --attach along with other options or after the port. Save
20586 program_argv. Support no initial program. Resynchronize
20587 communication with GDB after an error. Handle "monitor exit".
20588 Use require_running and target_running. Always allow the extended
20589 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20590 restart in extended mode.
20591 * README: Refer to the GDB manual. Update --attach usage.
20592
7407e2de
AS
205932007-12-20 Andreas Schwab <schwab@suse.de>
20594
20595 * linux-low.c (STACK_SIZE): Define.
20596 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20597 (linux_test_for_tracefork): Likewise.
20598
b65d95c5
DJ
205992007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20600
20601 * linux-low.c (linux_wait_for_event): Update messages. Do not
20602 reinsert auto-delete breakpoints.
20603 * mem-break.c (struct breakpoint): Change return type of handler to
20604 int.
20605 (set_breakpoint_at): Update handler type.
20606 (reinsert_breakpoint_handler): Return 1 instead of calling
20607 delete_breakpoint.
20608 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20609 setting a new one.
20610 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20611 * mem-break.h (set_breakpoint_at): Update handler type.
20612 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20613 * win32-low.c (auto_delete_breakpoint): New.
20614 (get_child_debug_event): Use it.
20615
4e799345
DJ
206162007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20617
20618 * configure.ac: Check for pread and pwrite.
20619 * hostio.c (handle_pread): Fall back to lseek and read.
20620 (handle_pwrite): Fall back to lseek and write.
20621 * config.in, configure: Regenerated.
20622
27524b67
DJ
206232007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20624
20625 * server.c (myresume): Add own_buf argument.
20626 (main): Update calls.
20627
a20d5e98
DJ
206282007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20629
20630 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20631 * remote-utils.c (remote_open): Do not call disable_async_io.
20632 (block_async_io): Delete.
20633 (unblock_async_io): Make static.
20634 (initialize_async_io): New.
20635 * server.c (handle_v_cont): Handle async I/O here.
20636 (myresume): Likewise. Move other common resume tasks here...
20637 (main): ... from here. Call initialize_async_io. Disable async
20638 I/O before the main loop.
20639 * server.h (initialize_async_io): Declare.
20640 (block_async_io, unblock_async_io): Delete prototypes.
20641 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20642
b79d787e
DJ
206432007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20644
20645 * remote-utils.c (readchar): Allow binary data in received messages.
20646
d97903b2
PA
206472007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20648
20649 * win32-low.c (attaching): New global.
20650 (win32_create_inferior): Clear the `attaching' global.
20651 (win32_attach): Set the `attaching' global.
20652 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20653 attaching. Only set a breakpoint at the entry point if not
20654 attaching.
20655
311de423
PA
206562007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20657
20658 * server.c (main): Don't report dll events on the initial
20659 connection on attaches.
20660
6c2d16d2
PA
206612007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20662
20663 * server.c (main): Relax numerical bases supported for the pid of
20664 the --attach command line argument.
20665
5ca906e6
PA
206662007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20667
20668 * win32-low.c (win32_attach): Call OpenProcess before
20669 DebugActiveProcess, not after. Add last error output to error
20670 call.
20671
9c6c8194
PA
206722007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20673
20674 * win32-low.c (win32_get_thread_context)
20675 (win32_set_thread_context): New functions.
20676 (thread_rec): Use win32_get_thread_context.
20677 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20678 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20679 field.
20680
4d5d1aaa
PA
206812007-12-03 Leo Zayas
20682 Pedro Alves <pedro_alves@portugalmail.pt>
20683
20684 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20685 global variables.
20686 (child_add_thread): Minor cleanup.
20687 (child_continue): Resume artificially suspended threads before
20688 calling ContinueDebugEvent.
20689 (suspend_one_thread): New.
20690 (fake_breakpoint_event): New.
20691 (get_child_debug_event): Change return type to int. Check here if
20692 gdb sent an interrupt request. If a soft interrupt was requested,
20693 fake a breakpoint event. Return 0 if there is no event to handle,
20694 and 1 otherwise.
20695 (win32_wait): Don't check here if gdb sent an interrupt request.
20696 Ensure there is a valid event to handle.
20697 (win32_request_interrupt): Add soft interruption method as last
20698 resort.
20699
c436e841
PA
207002007-12-03 Leo Zayas
20701 Pedro Alves <pedro_alves@portugalmail.pt>
20702
20703 * win32-low.h (win32_thread_info): Add descriptions to the
20704 structure members. Replace `suspend_count' counter by a
20705 `suspended' flag.
20706 * win32-low.c (thread_rec): Update condition of when to get the
20707 context from the inferior. Rely on ContextFlags being set if it
20708 has already been retrieved. Only suspend the inferior thread if
20709 we haven't already. Warn if that fails.
20710 (continue_one_thread): s/suspend_count/suspended/. Only call
20711 ResumeThread once. Warn if that fails.
20712
e7b5fa67
PA
207132007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20714
20715 * win32-low.c (win32_wait): Don't read from the inferior when it
20716 has already exited.
20717
a385171d
PA
207182007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20719
20720 * Makefile.in (win32_low_h): New variable.
20721 (win32-low.o): Add dependency on $(win32_low_h).
20722 (win32-arm-low.o, win32-i386-low.o): New rules.
20723
f80c84b3
DJ
207242007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20725
20726 * hostio.c: Correct copyright year.
20727
a6b151f1
DJ
207282007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20729
20730 * Makefile.in (OBS): Add hostio.o.
20731 (hostio.o): New rule.
20732 * server.h (handle_vFile): Declare.
20733 * hostio.c: New file.
20734 * server.c (handle_v_requests): Take packet_len and new_packet_len
20735 for binary packets. Call handle_vFile.
20736 (main): Update call to handle_v_requests.
20737
f9387fc3
DJ
207382007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20739
20740 * linux-low.c: Include <sched.h>.
20741
51c2684e
DJ
207422007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20743
20744 * linux-low.c (linux_tracefork_grandchild): New.
20745 (linux_tracefork_child): Use clone.
20746 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20747
75f83163
JB
207482007-10-31 Joel Brobecker <brobecker@adacore.com>
20749
20750 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20751
da5898ce
DJ
207522007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20753
20754 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20755
24a09b5f
DJ
207562007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20757
20758 * inferiors.c (change_inferior_id): Delete.
20759 (add_pid_to_list, pull_pid_from_list): New.
20760 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20761 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20762 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20763 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20764 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20765 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20766 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20767 (using_threads): Always set to 1.
20768 (handle_extended_wait): New.
20769 (add_process): Do not set TID.
20770 (linux_create_inferior): Set must_set_ptrace_flags.
20771 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20772 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20773 (linux_thread_alive): Rename TID argument to LWPID.
20774 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20775 (linux_wait_for_event): Do not use TID or check using_threads. Update
20776 call to dead_thread_notify. Call handle_extended_wait.
20777 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20778 (send_sigstop): Delete sigstop_sent.
20779 (wait_for_sigstop): Avoid TID.
20780 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20781 (linux_test_for_tracefork): New.
20782 (linux_lookup_signals): Use thread_db_active and
20783 linux_supports_tracefork_flag.
20784 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20785 * linux-low.h (get_process_thread): Avoid TID.
20786 (struct process_ifo): Move thread_known and tid to the end. Remove
20787 sigstop_sent.
20788 (linux_attach_lwp, thread_db_init): Update prototypes.
20789 * server.h (change_inferior_id): Delete prototype.
20790 (add_pid_to_list, pull_pid_from_list): New prototypes.
20791 * thread-db.c (thread_db_use_events): New.
20792 (find_first_thread): Rename to...
20793 (find_one_thread): ...this. Update callers and messages. Do not
20794 call fatal. Check thread_db_use_events. Do not call
20795 change_inferior_id or new_thread_notify.
20796 (maybe_attach_thread): Update. Do not call new_thread_notify.
20797 (thread_db_init): Set thread_db_use_events. Check use_events.
20798 * utils.c (fatal, warning): Correct message prefix.
20799
30ed0a8f
DJ
208002007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20801
20802 * Makefile.in (clean): Remove new files.
20803 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20804 (powerpc-64.o, powerpc-64.c): New rules.
20805 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20806 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20807 with SPE.
20808 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20809 SPE targets.
20810 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20811 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20812 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20813 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20814 (target_regsets): Add AltiVec and SPE register sets.
20815 * configure.ac: Check for AltiVec and SPE.
20816 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20817 (ppc_fill_vrregset, ppc_store_vrregset): New.
20818 (target_regsets): Add AltiVec register set.
20819 * configure: Regenerated.
20820
fd462a61
DJ
208212007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20822
20823 * linux-low.c (O_LARGEFILE): Define.
20824 (linux_read_memory): Use /proc/PID/mem.
20825 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20826 * configure, config.in: Regenerated.
20827
69f223ed
DJ
208282007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20829
20830 * linux-low.c (linux_wait_for_event): Do not pass signals while
20831 single-stepping.
20832
aec18585
PA
208332007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20834
20835 * win32-low.c (create_process): New.
20836 (win32_create_inferior): Use create_process instead of
20837 CreateProcess. If create_process failed retry appending an ".exe"
20838 suffix. Store the GetLastError result immediatelly after
20839 create_process calls and use it on the call to error.
20840
34d86ddd
PA
208412007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20842
20843 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20844
5a0e3bd0
JB
208452007-08-23 Joel Brobecker <brobecker@adacore.com>
20846
20847 * configure.ac: Switch license to GPLv3.
20848
f88c79e6
MS
208492007-08-01 Michael Snyder <msnyder@access-company.com>
20850
20851 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20852
6b3d9b83
PA
208532007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20854
20855 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20856 typedef.
20857 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20858 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20859 CloseToolhelp32Snapshot.
20860 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20861 CloseToolhelp32Snapshot.
20862
c588c53c
MS
208632007-07-27 Michael Snyder <michael.snyder@access-company.com>
20864
20865 * server.c (main): Check for inferior exit before main loop.
20866
aa0403d9
PA
208672007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20868
20869 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20870 instead of on tmp_desc.
20871
255e7678
DJ
208722007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20873 Daniel Jacobowitz <dan@codesourcery.com>
20874
20875 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20876 (add_thread): Minor cleanups.
20877 (clear_inferiors): Move lower in the file. Clear the DLL
20878 list.
20879 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20880 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20881 (xml_escape_text): New.
20882 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20883 for qSupported.
20884 (handle_v_cont): Report errors.
20885 (gdbserver_version): Update.
20886 (main): Correct size of own_buf. Do not report initial DLL events.
20887 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20888 (unloaded_dll, xml_escape_text): New.
20889 * win32-low.c (enum target_waitkind): Update comments.
20890 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20891 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20892 (win32_EnumProcessModules, win32_GetModuleInformation)
20893 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20894 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20895 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20896 (win32_Module32First, win32_Module32Next, load_toolhelp)
20897 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20898 (get_child_debug_event): Handle DLL events.
20899 (win32_wait): Likewise.
20900
0d37add9
DJ
209012007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20902
20903 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20904 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20905
45e2715e
PA
209062007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20907
20908 * win32-low.c (handle_output_debug_string): Ignore event if not
20909 waiting.
20910
c5674cf1
PA
209112007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20912
20913 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20914
2bbe3cc1
DJ
209152007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20916
20917 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20918
ae13219e
DJ
209192007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20920
20921 * inferiors.c (change_inferior_id): Add comment.
20922 * linux-low.c (check_removed_breakpoint): Add an early
20923 prototype. Improve debug output.
20924 (linux_attach): Doc update.
20925 (linux_detach_one_process, linux_detach): Clean up before releasing
20926 each process.
20927 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20928 * linux-low.h (struct process_info): Doc improvement.
20929 * mem-break.c (delete_all_breakpoints): New.
20930 * mem-break.h (delete_all_breakpoints): New prototype.
20931 * thread-db.c (find_first_thread): New.
20932 (thread_db_create_event): Call it instead of
20933 thread_db_find_new_threads. Clean up unused variables.
20934 (maybe_attach_thread): Remove first thread handling.
20935 (thread_db_find_new_threads): Use find_first_thread.
20936 (thread_db_get_tls_address): Likewise.
20937
4105de34
DJ
209382007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20939
20940 * thread-db.c (thread_db_find_new_threads): Add prototype.
20941 (thread_db_create_event): Check for the main thread before adding
20942 a new thread.
20943 (maybe_attach_thread): Only enable event reporting if TID == 0.
20944 (thread_db_get_tls_address): Check for new threads.
20945
2b876972
DJ
209462007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20947
20948 * linux-low.c (linux_create_inferior): Try execv before execvp.
20949 * spu-low.c (spu_create_inferior): Likewise.
20950
7a245884
DJ
209512007-06-13 Mike Frysinger <vapier@gentoo.org>
20952
20953 * linux-low.c (linux_create_inferior): Change execv to execvp.
20954 * spu-low.c (spu_create_inferior): Likewies.
20955
117ce543
DJ
209562007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20957
20958 * Makefile.in (clean): Clean new files instead of deleted ones.
20959 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20960 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20961 rules.
20962 * configure.srv: Specify XML files and new regformats for MIPS and
20963 MIPS64 GNU/Linux.
20964 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20965 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20966 an entry for the restart register.
20967 (mips_cannot_fetch_register, mips_cannot_store_register)
20968 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20969 register names to match the XML descriptions.
20970 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20971 restart register instead of $0.
20972
0e7f50da
UW
209732007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20974 Markus Deuling <deuling@de.ibm.com>
20975
20976 * remote-utils.c (decode_xfer_write): New function.
20977 * server.h (decode_xfer_write): Add prototype.
20978 * server.c (handle_query): Add PACKET_LEN argument. Support
20979 qXfer:spu:read and qXfer:spu:write packets.
20980 (main): Pass packet_len to handle_query.
20981 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20982 * target.h (target_ops): Add qxfer_spu.
20983
374c1d38
UW
209842007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20985
20986 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20987 accessing non-seekable spufs files.
20988
bb63802a
UW
209892007-05-16 Markus Deuling <deuling@de.ibm.com>
20990
889bf7c5 20991 * server.c (handle_query): Add reply for qC packet.
bb63802a 20992
7390519e
PA
209932007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20994 Leo Zayas <lerele@champenstudios@com>
20995
20996 * server.h (check_remote_input_interrupt_request): New function.
20997 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20998 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20999 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21000 (check_remote_input_interrupt_request): New function.
21001 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 21002 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
21003 winapi_GenerateConsoleCtrlEvent): New typedefs.
21004 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21005 to 250 ms.
21006 (win32_wait): Check for remote interrupt request
21007 with check_remote_input_interrupt_request.
21008 (win32_request_interrupt): New function.
21009 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21010
34b34921
PA
210112007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21012
21013 * win32-low.c (debug_registers_changed,
21014 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21015 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21016 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21017 (thread_rec): Get context using the low target.
21018 (child_add_thread): Call thread_added on the low target,
21019 which does the same thing.
21020 (regptr): Delete.
21021 (do_initial_child_stuff): Remove debug registers references.
21022 Set context using the low target. Resume threads after
21023 setting the contexts.
21024 (child_continue): Remove dead variable. Remove debug
21025 registers references.
21026 (child_fetch_inferior_registers): Go through the low target.
21027 (do_child_store_inferior_registers): Remove.
21028 (child_store_inferior_registers): Go through the low target.
21029 (win32_resume): Remove debug registers references.
21030 Set context using the low target.
21031 (handle_exception): Change return type to void. Don't record
21032 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21033 first chance exception.
889bf7c5 21034 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21035 goto loop. Always return after waiting for debug event.
21036 (win32_wait): Convert to switch statement. Handle spurious
21037 events.
21038
21039 * win32-i386-low.c (debug_registers_changed,
21040 debug_registers_used): New.
21041 (initial_stuff): Rename to ...
21042 (i386_initial_stuff): ... this. Clear debug registers
21043 state variables.
21044 (store_debug_registers): Delete.
21045 (i386_get_thread_context): New.
21046 (load_debug_registers): Delete.
21047 (i386_set_thread_context): New.
21048 (i386_thread_added): New.
21049 (single_step): Rename to ...
21050 (i386_single_step): ... this.
21051 (do_fetch_inferior_registers): Rename to ...
21052 (i386_fetch_inferior_register): ... this.
21053 (i386_store_inferior_register): New.
21054 (the_low_target): Adapt to new interface.
21055
21056 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21057 (arm_get_thread_context): New.
21058 (arm_set_thread_context): New.
21059 (regptr): New.
21060 (do_fetch_inferior_registers): Rename to ...
21061 (arm_fetch_inferior_register): ... this.
21062 (arm_store_inferior_register): New.
21063 (arm_wince_breakpoint): Reimplement as unsigned long.
21064 (arm_wince_breakpoint_len): Define.
21065 (the_low_target): Adapt to new interface.
21066
21067 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21068 load_debug_registers. Add get_thread_context, set_thread_context,
21069 thread_added and store_inferior_register. Rename
21070 fetch_inferior_registers to fetch_inferior_register.
21071 (regptr): Remove declaration.
21072
dd6953e1
PA
210732007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21074
21075 * linux-low.c (linux_detach): Change return type to int. Return 0.
21076 * spu-low.c (spu_detach): Likewise.
21077
444d6139
PA
210782007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21079
21080 * target.h (target_ops): Change return type of detach to int.
21081 Add join.
21082 (join_inferior): New.
21083 * server.c (main): Don't skip detach support on mingw32.
21084 If the inferior doesn't support detaching return error.
21085 Call join_inferior instead of using waitpid.
21086 * linux-low.c (linux_join): New.
21087 (linux_target_op): Add linux_join.
21088 * spu-low.c (spu_join): New.
21089 (spu_target_ops): Add spu_join.
21090 * win32-low.c (win32_detach): Adapt to new interface.
21091 Reopen current_process_handle before detaching. Issue a child
21092 resume before detaching.
21093 (win32_join): New.
21094 (win32_target_op): Add win32_join.
21095
1d5315fe
PA
210962007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21097
21098 * win32-low.c (win32-attach): Fix return value.
21099 * target.h (target_ops): Describe ATTACH return values.
21100
bf914831
PA
211012007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21102
21103 * win32-low.c (GETPROCADDRESS): Define.
21104 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21105 (winapi_DebugSetProcessKillOnExit): Likewise.
21106 (win32_create_inferior): Force usage of ansi CreateProcessA.
21107 (win32_attach): Use GETPROCADDRESS.
21108 (win32_detach): Likewise.
21109
f72f3e60
PA
211102007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21111
21112 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21113
ed50f18f
PA
211142007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21115
21116 * win32-low.c: Commit leftover changes from 2007-03-29.
21117
0c2ead7e
DJ
211182007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21119
21120 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21121 fields short instead of int. Add explicit padding.
21122 (i387_cache_to_fsave): Remove unnecessary casts.
21123 (i387_fsave_to_cache): Doc fix.
21124 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21125
73725ff3
DJ
211262007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21127
21128 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21129 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21130
d99f33d8
PA
211312007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21132
21133 * configure.srv (arm*-*-mingw32ce*): Move near the other
21134 arm targets.
21135
68070c10
PA
211362007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21137
2482afc6 21138 * configure.ac: Add errno checking.
68070c10
PA
21139 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21140 sys/file.h and malloc.h.
21141 (AC_CHECK_DECLS): Add perror.
21142 (srv_mingwce): Handle.
2482afc6 21143 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21144 win32-i386-low.o to srv_tgtobj.
21145 (i[34567]86-*-mingw*): Likewise.
21146 (arm*-*-mingw32ce*): Add case.
21147 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21148 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21149 [__MINGW32CE__] (strerror): New function.
21150 [__MINGW32CE__] (errno): Define to GetLastError.
21151 [__MINGW32CE__] (COUNTOF): New macro.
21152 (remote_open): Remove extra close call.
21153 * mem-break.c (delete_breakpoint_at): New function.
21154 * mem-break.h (delete_breakpoint_at): Declare.
21155 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21156 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21157 [USE_WIN32API] (read, write): Add char* casts.
21158 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21159 * server.h: Include wincecompat.h on Windows CE.
21160 [HAVE_ERRNO_H]: Check.
21161 (perror): Declare if not declared.
21162 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21163 (perror_with_name): Remove errno declaration.
21164 * wincecompat.h: New.
21165 * wincecompat.c: New.
21166 * win32-low.h: New.
21167 * win32-arm-low.c: New.
21168 * win32-i386-low.c: New.
21169 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21170 (OUTMSG2): Make it safe.
21171 (_T): New macro.
21172 (COUNTOF): New macro.
21173 (NUM_REGS): Get it from the low target.
21174 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21175 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21176 (thread_rec): Let low target handle debug registers.
21177 (child_add_thread): Likewise.
21178 (child_init_thread_list): Likewise.
21179 (continue_one_thread): Likewise.
21180 (regptr): New.
21181 (do_child_fetch_inferior_registers): Move to ...
21182 * win32-i386-low.c: ... here, and rename to ...
21183 (do_fetch_inferior_registers): ... this.
889bf7c5 21184 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21185 Go through the low target.
21186 (do_child_store_inferior_registers): Use regptr.
21187 (strwinerror): New function.
21188 (win32_create_inferior): Handle Windows CE.
21189 Use strwinerror instead of strerror on Windows error
21190 codes. Add program to the error output.
21191 Don't close the main thread handle on Windows CE.
21192 (win32_attach): Use coredll.dll on Windows CE.
21193 (win32_kill): Close current process and current
21194 thread handles.
21195 (win32_detach): Use coredll.dll on Windows CE.
21196 (win32_resume): Let low target handle debug registers, and
21197 step request.
21198 (handle_exception): Add/Remove initial breakpoint. Avoid
21199 non-existant WSTOPSIG on Windows CE.
21200 (win32_read_inferior_memory): Cast to remove warning.
21201 (win32_arch_string): Go through the low target.
21202 (initialize_low): Call set_breakpoint_data with the low
21203 target's breakpoint.
21204 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21205 FOP_REGNUM, mappings): Move to ...
21206 * win32-i386-low.c: ... here.
21207 * win32-low.c (win32_thread_info): Move to ...
21208 * win32-low.h: ... here.
21209 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21210 win32-arm-low.c and wincecompat.c.
21211 (all:): Add $EXEEXT.
21212 (install-only:): Likewise.
21213 (gdbserver:): Likewise.
21214 (gdbreplay:): Likewise.
21215 * config.in: Regenerate.
21216 * configure: Regenerate.
21217
41093d81
PA
212182007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21219
21220 * win32-low.c: Rename typedef thread_info to
21221 win32_thread_info throughout.
21222
544afa54
PA
212232007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21224
21225 * win32-i386-low.c: Rename to ...
21226 * win32-low.c: ... this.
21227 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21228 * Makefile.in: Likewise.
21229
bce7165d
PA
212302007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21231
21232 * remote-utils.c (monitor_output): Constify msg parameter.
21233 * server.h (monitor_output): Likewise.
21234 * win32-i386-low.c (handle_output_debug_string): New.
21235 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21236 handle_output_debug_string.
21237 (get_child_debug_event): Likewise.
21238
506c7aa0
DJ
212392007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21240
21241 * server.c (main): Correct strtoul check.
21242
42c81e2a
DJ
212432007-03-27 Jon Ringle <jon@ringle.org>
21244
21245 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21246
9453113a
DJ
212472007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21248
21249 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21250
64a69107
DJ
212512007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21252
21253 * terminal.h: Check HAVE_SGTTY_H.
21254
212552007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21256
21257 * remote-utils.c (remote_open): Print out the assigned port number.
21258
c74d0ad8
DJ
212592007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21260
21261 * remote-utils.c (monitor_output): New function.
21262 * server.c (debug_threads): Define here.
21263 (monitor_show_help): New function.
21264 (handle_query): Handle qRcmd.
21265 (main): Do not handle 'd' packet.
21266 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21267 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21268 of debug_threads.
21269
de7c3b4a
PA
212702007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21271
21272 * Makefile.in (EXEEXT): New.
21273 (clean): Use $(EXEEXT).
21274
ef57601b
PA
212752007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21276
21277 * target.h (target_ops): Rename send_signal to request_interrupt,
21278 and remove enum target_signal parameter.
21279 * linux-low.c (linux_request_interrupt): Rename from
21280 linux_send_signal, and always send SIGINT.
21281 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21282 and always send SIGINT.
21283 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21284 of send_signal.
21285 (input_interrupt): Likewise.
21286
820f2bda
PA
212872007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21288
21289 * server.c (get_features_xml): Check if target implemented
21290 arch_string.
21291 * win32-i386-low.c (win32_arch_string): New.
21292 (win32_target_ops): Add win32_arch_string as arch_string member.
21293
ab39bf24
UW
212942007-02-22 Markus Deuling <deuling@de.ibm.com>
21295
21296 * spu-low.c (spu_arch_string): New.
21297 (spu_target_ops): Add spu_arch_string.
21298
61ff6e04
DJ
212992007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21300
21301 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21302 * configure.ac: Do not check for terminal.h.
21303 * configure, config.in: Regenerated.
21304
fb1e4ffc
DJ
213052007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21306
21307 * Makefile.in (OBS): Add $(XML_BUILTIN).
21308 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21309 (clean): Update.
21310 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21311 (arm-with-iwmmxt.c): New.
21312 * config.in, configure: Regenerate.
21313 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21314 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21315 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21316 (arm*-*-linux*): Add iWMMXt and regset support.
21317 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21318 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21319 (arm_store_wmmxregset, target_regsets): New.
21320 * server.c (get_features_xml): Take annex argument. Check builtin
21321 XML documents.
21322 (handle_query): Handle multiple annexes.
21323
0f48aa01
DJ
213242007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21325
21326 * remote-utils.c [USE_WIN32API] (read, write): Define.
21327 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21328 write.
21329
23181151
DJ
213302007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21331
21332 * linux-i386-low.c (the_low_target): Set arch_string.
21333 * linux-x86-64-low.c (the_low_target): Likewise.
21334 * linux-low.c (linux_arch_string): New.
21335 (linux_target_ops): Add it.
21336 * linux-low.h (struct linux_target_ops): Add arch_string.
21337 * server.c (write_qxfer_response): Use const void * for DATA.
21338 (get_features_xml): New.
21339 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21340 * target.h (struct target_ops): Add arch_string method.
21341
9d606399
DJ
213422007-01-03 Denis Pilat <denis.pilat@st.com>
21343 Daniel Jacobowitz <dan@codesourcery.com>
21344
21345 * linux-low.c (linux_kill): Handle being called with no threads.
21346 * win32-i386-low.c (win32_kill): Likewise.
21347 (get_child_debug_event): Clear current_process_handle.
21348
213492006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21350 Daniel Jacobowitz <dan@codesourcery.com>
21351
21352 * remote-utils.c (remote_open): Check the type of specified
21353 serial port devices before opening them.
21354 * server.c (main): Kill the inferior if an error occurs during
21355 the first remote_open.
21356
a5e13d24
DJ
213572006-12-05 Markus Deuling <deuling@de.ibm.com>
21358
21359 * README: Update supported targets.
21360
186947f7
DJ
213612006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21362
21363 * Makefile.in (clean): Remove reg-mips64.c.
21364 (reg-mips64.c, reg-mips64.o): New rules.
21365 * configure.srv: Handle mips64. Include regset support for mips.
21366 * linux-mips-low.c (union mips_register): New.
21367 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21368 (mips_breakpoint, mips_breakpoint_at): Use int.
21369 (mips_collect_register, mips_supply_register)
21370 (mips_collect_register_32bit, mips_supply_register_32bit)
21371 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21372 (mips_store_fpregset, target_regsets): New.
21373 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21374
a13e2c95
UW
213752006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21376
21377 * configure.srv: Add target "spu*-*-*".
21378 * Makefile.in (clean): Remove reg-spu.c.
21379 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21380 * spu-low.c: New file.
21381
cb7283db
DJ
213822006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21383
21384 * configure.ac: Correct td_thr_tls_get_addr test.
21385 * configure: Regenerated.
21386
89be2091
DJ
213872006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21388
21389 * linux-low.c (linux_wait_for_event): Reformat. Use the
21390 pass_signals array.
21391 * remote-utils.c (decode_address_to_semicolon): New.
21392 * server.c (pass_signals, handle_general_set): New.
21393 (handle_query): Mention QPassSignals for qSupported.
21394 (main): Call handle_general_set.
21395 * server.h (pass_signals, decode_address_to_semicolon): New.
21396
000ef4f0
DJ
213972006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21398
21399 * server.c (handle_query): Correct error handling for read_auxv.
21400
b7149293
UW
214012005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21402
21403 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21404 and srv_linux_thread_db to yes.
21405 * linux-s390-low.c (s390_fill_gregset): New function.
21406 (target_regsets): Define data structure.
21407
dae5f5cf
DJ
214082006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21409
21410 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21411 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21412 * config.in, configure: Regenerated.
21413 * inferiors.c (gdb_id_to_thread): New function.
21414 (gdb_id_to_thread_id): Use it.
21415 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21416 * linux-low.h (struct process_info): Add th member.
21417 (thread_db_get_tls_address): New prototype.
21418 * remote-utils.c (decode_address): Make non-static.
21419 * server.c (handle_query): Handle qGetTLSAddr.
21420 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21421 * target.h (struct target_ops): Add get_tls_address.
21422 * thread-db.c (maybe_attach_thread): Save the thread handle.
21423 (thread_db_get_tls_address): New.
21424
32ca6d61
DJ
214252006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21426
21427 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21428 (linux_resume_one_process): Take a siginfo_t *. Update all
21429 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21430 (struct pending_signals): Add a siginfo_t.
21431 (linux_wait_for_process): Always set last_status.
21432 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21433 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21434 * linux-low.h (struct process_info): Add last_status.
21435
5ffff7c1
DJ
214362006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21437
21438 * remote-utils.c (try_rle): New function.
21439 (putpkt_binary): Use it.
21440
8695c747
DJ
214412006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21442
21443 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21444 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21445 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21446 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21447 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21448 point registers.
21449
290fadea
RS
214502006-08-08 Richard Sandiford <richard@codesourcery.com>
21451
21452 * server.c (terminal_fd): New variable.
21453 (old_foreground_pgrp): Likewise.
21454 (restore_old_foreground_pgrp): New function.
21455 (start_inferior): Record the terminal file descriptor in terminal_fd
21456 and its original foreground group in old_foreground_pgrp. Register
21457 restore_old_foreground_pgrp with atexit().
21458
9f2e1e63
DJ
214592006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21460
21461 * server.c (handle_query): Correct qPart to qXfer.
21462
b80864fb
DJ
214632006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21464
21465 * configure.ac: Check for more headers which are missing on
21466 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21467 * configure.srv: Add Cygwin and mingw32.
21468 * remote-utils.c: Don't include headers unconditionally which
21469 are missing on mingw32. Include <winsock.h> for mingw32.
21470 (remote_open): Adjust for mingw32 support. Flush
21471 standard error after writing to it.
21472 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21473 (unblock_async_io, enable_async_io, disable_async_io)
21474 (readchar, getpkt): Update for Winsock support.
21475 (prepare_resume_reply): Expect a protocol signal number.
21476 * server.c: Disable <sys/wait.h> on mingw32.
21477 (start_inferior): Adjust for mingw32 support. Flush
21478 standard error after writing to it.
21479 (attach_inferior): Likewise. Use protocol signal
21480 numbers.
21481 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21482 and names.
21483 * win32-i386-low.c: New file.
21484 * Makefile.in (XM_CLIBS): Set.
21485 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21486 (win32-i386-low.o): New dependency rule.
21487 * linux-low.c (linux_wait): Use target signal numbers.
21488 * target.h (struct target_ops): Doc fix.
21489 * server.h (target_signal_to_name): New prototype.
21490 * gdbreplay.c: Don't include headers unconditionally which
21491 are missing on mingw32. Include <winsock.h> for mingw32.
21492 (remote_close, remote_open): Adjust for Winsock support.
21493 * configure, config.in: Regenerated.
21494
0876f84a
DJ
214952006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21496
21497 * server.c (decode_xfer_read, write_qxfer_response): New.
21498 (handle_query): Take a packet length argument. Handle
21499 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21500 the qSupported response.
21501 (main): Update call to handle_query.
21502
01f9e8fa
DJ
215032006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21504
21505 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21506 (putpkt_binary): Renamed from putpkt and adjusted for binary
21507 data.
21508 (putpkt): New wrapper for putpkt_binary.
21509 (readchar): Don't mask off the high bit.
21510 (decode_X_packet): New function.
21511 * server.c (main): Call putpkt_binary if a handler sets the packet
21512 length. Save the length of the incoming packet. Handle 'X'.
21513 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21514
be2a5f71
DJ
215152006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21516
21517 * server.c (handle_query): Handle qSupported.
21518
ea025f5f
DJ
215192006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21520
21521 * remote-utils.c (all_symbols_looked_up): New variable.
21522 (look_up_one_symbol): Check it.
21523 * server.h (look_up_one_symbol): New declaration.
21524 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21525
9308fc88
DJ
215262006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21527
21528 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21529 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21530 (PTRACE_GET_THREAD_AREA): Define.
21531 (ps_get_thread_area): New function.
21532
52fb6437
NS
215332006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21534
21535 * configure.srv (m68k*-*-uclinux*): New target.
21536 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21537 (linux_resume_one_process): Remove extraneous cast.
21538 (linux_read_offsets): New.
21539 (linux_target_op): Add linux_read_offsets on mmuless systems.
21540 * server.c (handle_query): Add qOffsets logic.
21541 * target.h (struct target_ops): Add read_offsets.
21542
21b0f40c
DJ
215432006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21544
21545 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21546 (PTRACE_GET_THREAD_AREA): Define.
21547 (ps_get_thread_area): New function.
21548 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21549 (linux-x86-64-low.o): Update.
21550
0050a760
DJ
215512006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21552
21553 * configure.ac: Remove checks for prfpregset_t.
21554 * gdb_proc_service.h: New file.
21555 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21556 new "gdb_proc_service.h".
21557 * proc-service.c: Likewise.
21558 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21559 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21560 * Makefile.in (gdb_proc_service_h): Updated.
21561 * configure, config.in: Regenerated.
21562
b92a518e
DJ
215632006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21564
21565 * remote-utils.c (prepare_resume_reply): Move declaration
21566 of gdb_id_from_wait to the top of the block.
21567
545587ee
DJ
215682006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21569
21570 * linux-low.c (regsets_store_inferior_registers): Read the regset
21571 from the target before filling it.
21572
9db87ebd
DJ
215732006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21574
21575 * server.c (attach_inferior): Return SIGTRAP for a successful
21576 attach.
21577
dd24457d
DJ
215782006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21579
21580 * Makefile.in (OBS): Add version.o.
21581 (STAGESTUFF): Delete.
21582 (version.o): Add dependencies.
21583 (version.c): Replace rule.
21584 (clean): Remove version.c.
21585 * server.c (gdbserver_version): New.
21586 (gdbserver_usage): Use printf.
21587 (main): Handle --version and --help.
21588 * server.h (version, host_name): Add declarations.
21589
6f0f660e
EZ
215902005-12-23 Eli Zaretskii <eliz@gnu.org>
21591
889bf7c5
PA
21592 * linux-arm-low.c:
21593 * linux-arm-low.c:
21594 * inferiors.c:
21595 * i387-fp.h:
21596 * i387-fp.c:
21597 * gdbreplay.c:
21598 * regcache.c:
21599 * proc-service.c:
21600 * mem-break.h:
21601 * mem-break.c:
21602 * linux-x86-64-low.c:
21603 * linux-sh-low.c:
21604 * linux-s390-low.c:
21605 * linux-ppc64-low.c:
21606 * linux-ppc-low.c:
21607 * linux-mips-low.c:
21608 * linux-m68k-low.c:
21609 * linux-m32r-low.c:
21610 * linux-low.h:
21611 * linux-low.c:
21612 * linux-ia64-low.c:
21613 * linux-i386-low.c:
21614 * linux-crisv32-low.c:
21615 * thread-db.c:
21616 * terminal.h:
21617 * target.h:
21618 * target.c:
21619 * server.h:
21620 * server.c:
21621 * remote-utils.c:
21622 * regcache.h:
21623 * utils.c:
21624 * Makefile.in:
21625 * configure.ac:
6f0f660e
EZ
21626 * gdbserver.1: Add (C) after Copyright. Update the FSF
21627 address.
21628
9d1fb177
DJ
216292005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21630
21631 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21632 (arm_breakpoint_at): Recognize both breakpoints.
21633 (the_low_target): Use the correct breakpoint instruction.
21634
011a70c2
DJ
216352005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21636
21637 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21638 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21639 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21640 (the_low_target): Update.
21641
7fb85e41
AS
216422005-10-25 Andreas Schwab <schwab@suse.de>
21643
21644 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21645
21646 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21647 (ia64_num_regs): Reduce to 462.
21648
3db0444b
DJ
216492005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21650
21651 * acinclude.m4: Correct quoting.
21652 * aclocal.m4: Regenerated.
21653
21654 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21655 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21656 (thread_db_init): Call thread_db_err_str.
21657 * configure.ac: Check for TD_VERSION.
21658 * config.in, configure: Regenerated.
21659
bee0189a
DJ
216602005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21661
21662 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21663
e9d25b98
DJ
216642005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21665
21666 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21667 is not available. Define HAVE_PTRACE_GETREGS if it is.
21668 * config.in, configure: Regenerated.
21669 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21670 * linux-i386-low.c, linux-m68k-low.c: Update to use
21671 HAVE_PTRACE_GETREGS.
21672 * linux-low.c (regsets_fetch_inferior_registers)
21673 (regsets_store_inferior_registers): Only return 0 if we processed
21674 GENERAL_REGS.
21675 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21676 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21677
a06660f7
DJ
216782005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21679
21680 * inferiors.c (struct thread_info): Add gdb_id.
21681 (add_thread): Add gdb_id argument.
21682 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21683 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21684 calls to add_thread.
21685 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21686 * server.c (handle_query): Use thread_to_gdb_id.
21687 (handle_v_cont, main): Use gdb_id_to_thread_id.
21688 * server.h (add_thread): Update prototype.
21689 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21690 prototypes.
21691
5a1f5858
DJ
216922005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21693
21694 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21695 left-padded registers.
21696 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21697 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21698
e122f1f5
SE
216992005-07-01 Steve Ellcey <sje@cup.hp.com>
21700
21701 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21702 * configure: Regenerate.
21703 * config.in: Regenerate.
21704 * server.h (NEED_DECLARATION_STRERROR):
21705 Replace with !HAVE_DECL_STRERROR.
21706
d592fa2f
DJ
217072005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21708
21709 * linux-low.c (linux_wait, linux_send_signal): Don't test
21710 an unsigned long variable for > 0 if it could be MAX_ULONG.
21711 * server.c (myresume): Likewise.
21712 * target.c (set_desired_inferior): Likewise.
21713
ccbd4912
MK
217142005-06-13 Mark Kettenis <kettenis@gnu.org>
21715
21716 * configure.ac: Simplify and improve check for socklen_t.
21717 * configure, config.in: Regenerate.
21718
f450004a
DJ
217192005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21720
21721 * acconfig.h: Remove.
21722 * configure.ac: Add a test for socklen_t. Use three-argument
21723 AC_DEFINE throughout.
21724 * config.in: Regenerated using autoheader 2.59.
21725 * configure: Regenerated.
21726
21727 * gdbreplay.c (socklen_t): Provide a default.
21728 (remote_open): Use socklen_t.
21729 * remote-utils.c (socklen_t): Provide a default.
21730 (remote_open): Use socklen_t.
21731 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21732 unsigned char.
21733
21734 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21735 char for buffers.
21736 * linux-low.c (linux_read_memory, linux_write_memory)
21737 (linux_read_auxv): Likewise.
21738 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21739 (check_mem_write): Likewise.
21740 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21741 Likewise.
21742 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21743 (registers_from_string, register_data): Likewise.
21744 * server.c (handle_query, main): Likewise.
21745 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21746 (decode_M_packet): Likewise.
21747 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21748 * target.h (struct target_ops): Update read_memory, write_memory,
21749 and read_auxv.
21750 (read_inferior_memory, write_inferior_memory): Update.
21751 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21752 to unsigned char *.
21753 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21754 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21755 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21756 linux-s390-low.c, linux-sh-low.c: Update for changes in
21757 read_inferior_memory and the_low_target->breakpoint.
21758
eee84df1
DJ
217592005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21760
21761 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21762 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21763 * configure.srv: Add powerpc64-*-linux*.
21764 * linux-ppc64-low.c: New file.
21765
45b134e5
OF
217662005-05-23 Orjan Friberg <orjanf@axis.com>
21767
21768 * linux-cris-low.c: New file with support for CRIS.
21769 * linux-crisv32-low.c: Ditto for CRISv32.
21770 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21771 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21772 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21773 reg-crisv32.o, and reg-crisv32.c to make rules.
21774 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21775 recognized targets.
21776
48d93c75
UW
217772005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21778
21779 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21780 of sizeof (PTRACE_XFER_TYPE).
21781 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21782
e013ee27
OF
217832005-05-12 Orjan Friberg <orjanf@axis.com>
21784
889bf7c5 21785 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21786 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21787 pointers for hardware watchpoint support.
21788 * linux-low.h (struct linux_target_ops): Ditto.
21789 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21790 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21791 to linux_target_ops.
21792 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21793 reply packet.
21794 * server.c (main): Recognize 'Z' and 'z' packets.
21795
b0ded00b
UW
217962005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21797
21798 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21799 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21800 (the_low_target): Add new members.
21801
8643e2ad
DJ
218022005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21803
21804 * proc-service.c (ps_lgetregs): Search all_processes instead of
21805 all_threads.
21806
fc620387
DJ
218072005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21808
21809 * server.c (start_inferior): Change return type to int.
21810 (attach_inferior): Change sigptr to int *.
21811 (handle_v_cont, handle_v_requests): Change signal to int *.
21812 (main): Change signal to int.
21813
218142005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21815
21816 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21817 * configure.srv: Add m32r*-*-linux*.
21818 * linux-m32r-low.c: New file.
21819
e0e76420
DJ
218202005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21821
21822 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21823
a1928bad
DJ
218242005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21825
21826 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21827 Take unsigned long arguments for PIDs.
21828 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21829 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21830 (wait_for_sigstop, linux_resume_one_process)
21831 (regsets_fetch_inferior_registers, linux_send_signal)
21832 (linux_read_auxv): Likewise. Update the types of variables holding
21833 PIDs. Update format string specifiers.
21834 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21835 * remote-utils.c (prepare_resume_reply): Likewise.
21836 * server.c (cont_thread, general_thread, step_thread)
21837 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21838 unsigned long.
21839 (handle_query): Update format specifiers.
21840 (handle_v_cont, main): Use strtoul for thread IDs.
21841 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21842 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21843 (general_thread, step_thread, thread_from_wait)
21844 (old_thread_from_wait): Update.
21845 * target.h (struct thread_resume): Use unsigned long for THREAD.
21846 (struct target_ops): Use unsigned long for arguments to attach and
21847 thread_alive.
21848
dcdb98d2
DJ
218492005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21850
21851 * acinclude.m4: Include bfd/bfd.m4 directly.
21852 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21853 <agriffis@toolchain.org>.
21854 * aclocal.m4, configure: Regenerated.
21855
bec39cab
AC
218562005-01-07 Andrew Cagney <cagney@gnu.org>
21857
21858 * configure.ac: Rename configure.in, require autoconf 2.59.
21859 * configure: Re-generate.
21860
434c4c77
DJ
218612004-12-08 Daniel Jacobowitz <dan@debian.org>
21862
21863 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21864 LIBS when finished.
21865 * aclocal.m4: Regenerated.
21866 * configure: Regenerated.
21867
db1d3e1b
AS
218682004-11-21 Andreas Schwab <schwab@suse.de>
21869
21870 * linux-m68k-low.c (m68k_num_gregs): Define.
21871 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21872 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21873 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21874 (m68k_breakpoint_at): New. Add to the_low_target.
21875
21876 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21877 srv_linux_thread_db to yes.
21878
43360365
JB
218792004-10-20 Joel Brobecker <brobecker@gnat.com>
21880
21881 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21882 (ARCH_SET_FS): Likewise.
21883 (ARCH_GET_FS): Likewise.
21884 (ARCH_GET_GS): Likewise.
21885
fd500816
DJ
218862004-10-16 Daniel Jacobowitz <dan@debian.org>
21887
21888 * linux-i386-low.c (ps_get_thread_area): New.
21889 * linux-x86-64-low.c (ps_get_thread_area): New.
21890 * linux-low.c: Include <sys/syscall.h>.
21891 (linux_kill_one_process): Don't kill the first thread here.
21892 (linux_kill): Kill the first thread here.
21893 (kill_lwp): New function.
21894 (send_sigstop, linux_send_signal): Use it.
21895 * proc-service.c: Clean up #ifdefs.
21896 (fpregset_info): Delete.
21897 (ps_lgetregs): Update and enable implementation.
21898 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21899 implementations.
21900 * remote-utils.c (struct sym_cache, symbol_cache): New.
21901 (input_interrupt): Print a clearer message.
21902 (async_io_enabled): New variable.
21903 (enable_async_io, disable_async_io): Use it. Update comments.
21904 (look_up_one_symbol): Use the symbol cache.
21905 * thread-db.c (thread_db_look_up_symbols): New function.
21906 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21907
f6de3c42
DJ
219082004-10-16 Daniel Jacobowitz <dan@debian.org>
21909
21910 * configure.in: Test for -rdynamic.
21911 * configure: Regenerated.
21912 * Makefile (INTERNAL_LDFLAGS): New.
21913 (gdbserver, gdbreplay): Use it.
21914
2c0fc042
AC
219152004-09-02 Andrew Cagney <cagney@gnu.org>
21916
21917 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21918
075b3282
DJ
219192004-03-23 Daniel Jacobowitz <drow@mvista.com>
21920
21921 * linux-low.c (linux_wait): Clear all_processes list also.
21922
fa6a77dc
DJ
219232004-03-12 Daniel Jacobowitz <drow@mvista.com>
21924
21925 * linux-low.c: Include <errno.h>. Remove extern declaration of
21926 errno.
21927
6d782a97
DJ
219282004-03-12 Daniel Jacobowitz <drow@mvista.com>
21929
21930 * gdbreplay.c, server.h, utils.c: Update copyright years.
21931
3a7fb99b
DJ
219322004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21933
21934 * server.c (main): Print child status or termination signal from
21935 variable 'signal', not 'sig'.
21936
c3e735a6
DJ
219372004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21938
21939 * linux-low.c (linux_read_memory): Change return type to
21940 int. Check for and return error from ptrace().
21941 * target.c (read_inferior_memory): Change return type to int. Pass
21942 back return status from the_target->read_memory().
21943 * target.h (struct target_ops): Adapt *read_memory() prototype.
21944 Update comment.
21945 (read_inferior_memory): Adapt prototype.
21946 * server.c (main): Return an error packet if
21947 read_inferior_memory() returns an error.
21948
a59d1c82
DJ
219492004-03-04 Daniel Jacobowitz <drow@mvista.com>
21950
21951 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21952 Unify with other clean targets.
21953
dc3f8883
DJ
219542004-02-29 Daniel Jacobowitz <drow@mvista.com>
21955
21956 * server.c (handle_v_cont): Call set_desired_inferior.
21957
89a208da
DJ
219582004-02-29 Daniel Jacobowitz <drow@mvista.com>
21959
21960 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21961
62ea82f5
DJ
219622004-02-29 Daniel Jacobowitz <drow@mvista.com>
21963
21964 * linux-low.c (linux_wait): Unblock async I/O.
21965 (linux_resume): Block and enable async I/O.
21966 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21967 * server.h (block_async_io, unblock_async_io): Add prototypes.
21968
6910d122
DJ
219692004-02-29 Daniel Jacobowitz <drow@mvista.com>
21970
21971 * remote-utils.c (remote_open): Print a status notice after
21972 opening a TCP port.
21973 * server.c (attach_inferior): Print a status notice after
21974 attaching.
21975
219762004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21977
21978 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21979
c89dc5d4
DJ
219802004-02-26 Daniel Jacobowitz <drow@mvista.com>
21981
21982 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21983 error packet.
21984 * server.c, target.h: Update copyright years.
21985
4b8dad4a
RM
219862004-02-25 Roland McGrath <roland@redhat.com>
21987
21988 * target.h (struct target_ops): New member `read_auxv'.
21989 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21990 * linux-low.c (linux_read_auxv): New function.
21991 (linux_target_ops): Initialize `read_auxv' member to that.
21992
d7446758
JB
219932004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21994
21995 Committed by Jim Blandy <jimb@redhat.com>.
21996
21997 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21998 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21999 instead of GPR_SIZE to distiguish s390 and s390x targets.
22000
5544ad89
DJ
220012004-01-31 Daniel Jacobowitz <drow@mvista.com>
22002
22003 * linux-low.c: Update copyright year.
22004 (check_removed_breakpoint): Clear pending_is_breakpoint.
22005 (linux_set_resume_request, linux_queue_one_thread)
22006 (resume_status_pending_p): New functions.
22007 (linux_continue_one_thread): Use process->resume.
22008 (linux_resume): Only resume threads if there are no pending events.
22009 * linux-low.h (struct process_info): Add resume request
22010 pointer.
22011
2a68b70e
DJ
220122004-01-30 Daniel Jacobowitz <drow@mvista.com>
22013
22014 * regcache.c (new_register_cache): Clear the allocated register
22015 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22016
64386c31
DJ
220172003-10-13 Daniel Jacobowitz <drow@mvista.com>
22018
22019 * linux-low.c (linux_resume): Take a struct thread_resume *
22020 argument.
22021 (linux_wait): Update call.
22022 (resume_ptr): New static variable.
22023 (linux_continue_one_thread): Renamed from
22024 linux_continue_one_process. Use resume_ptr.
22025 (linux_resume): Use linux_continue_one_thread.
22026 * server.c (handle_v_cont, handle_v_requests): New functions.
22027 (myresume): New function.
22028 (main): Handle 'v' case.
22029 * target.h (struct thread_resume): New type.
22030 (struct target_ops): Change argument of "resume" to struct
22031 thread_resume *.
22032 (myresume): Delete macro.
22033
c938e9b0
L
220342003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22035
22036 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22037 (uninstall): Support DESTDIR.
22038
7f313d07
BC
22039Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22040
22041 * configure.srv: Add xscale*linux copy of arm*linux entry.
22042
3b2fc2ea
DJ
220432003-07-24 Daniel Jacobowitz <drow@mvista.com>
22044
22045 * linux-arm-low.c (arm_reinsert_addr): New function.
22046 (the_low_target): Add arm_reinsert_addr.
22047
1c0a559e
MK
220482003-07-08 Mark Kettenis <kettenis@gnu.org>
22049
22050 * mem-break.c: Remove whitespace at end of file.
22051
43d5792c
DJ
220522003-06-28 Daniel Jacobowitz <drow@mvista.com>
22053
22054 * configure.in: Check whether we need to prototype strerror.
22055 * server.h: Optionally prototype strerror.
22056 * gdbreplay.c (perror_with_name): Use strerror.
22057 * linux-low.c (linux_attach_lwp): Use strerror.
22058 * utils.c (perror_with_name): Use strerror.
22059 * config.in, configure: Regenerated.
22060
c8a86edf
DJ
220612003-06-28 Daniel Jacobowitz <drow@mvista.com>
22062
22063 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22064 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22065
73d37363
DJ
220662003-06-20 Daniel Jacobowitz <drow@mvista.com>
22067
22068 * Makefile.in (SFILES): Update.
22069 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22070 low-sun3.c: Remove files.
22071
6ad8ae5c
DJ
220722003-06-17 Daniel Jacobowitz <drow@mvista.com>
22073
22074 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22075 (linux_detach_one_process, linux_detach): New functions.
22076 (linux_target_ops): Add linux_detach.
22077 * server.c (main): Handle 'D' packet.
22078 * target.h (struct target_ops): Add "detach" member.
22079 (detach_inferior): Define.
22080
1581182a
MK
220812003-06-13 Mark Kettenis <kettenis@gnu.org>
22082
22083 From Kelley Cook <kelleycook@wideopenwest.com>:
22084 * configure.srv: Accept i[34567]86 variants.
22085
e5379b03
DJ
220862003-06-05 Daniel Jacobowitz <drow@mvista.com>
22087
22088 * linux-low.c (linux_wait_for_event): Correct comment typos.
22089 (linux_resume_one_process): Call check_removed_breakpoint.
22090 (linux_send_signal): New function.
22091 (linux_target_ops): Add linux_send_signal.
22092 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22093 of kill.
22094 * target.h (struct target_ops): Add send_signal.
22095
2ff29de4
JB
220962003-05-29 Jim Blandy <jimb@redhat.com>
22097
22098 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22099 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22100 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22101 away part of the register's value.
22102
254787d4
DJ
221032003-03-26 Daniel Jacobowitz <drow@mvista.com>
22104
22105 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22106 (linux_wait_for_event, linux_init_signals): Likewise.
22107
94e10508
DJ
221082003-03-17 Daniel Jacobowitz <drow@mvista.com>
22109
22110 * configure.in: Check for stdlib.h.
22111 * configure: Regenerated.
22112 * config.in: Regenerated.
22113
4c0711e0
DJ
221142003-01-04 Andreas Schwab <schwab@suse.de>
22115
22116 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22117
ef66e766
AC
221182003-01-02 Andrew Cagney <ac131313@redhat.com>
22119
22120 * Makefile.in: Remove obsolete code.
22121
a1358604
DJ
221222002-11-20 Daniel Jacobowitz <drow@mvista.com>
22123
22124 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22125 defined(PT_FPR0_HI).
22126
23ce3b1c
DJ
221272002-11-17 Stuart Hughes <seh@zee2.com>
22128
22129 * linux-arm-low.c (arm_num_regs): Increase.
22130 (arm_regmap): Include status register.
22131
221322002-11-17 Daniel Jacobowitz <drow@mvista.com>
22133
22134 * linux-low.c (register_addr): Remove incorrect -1 check.
22135
a9fa9f7d
DJ
221362002-08-29 Daniel Jacobowitz <drow@mvista.com>
22137
22138 * linux-low.c (linux_create_inferior): Call setpgid. Return
22139 the new PID.
22140 (unstopped_p, linux_signal_pid): Remove.
22141 (linux_target_ops): Remove linux_signal_pid.
22142 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22143 global instead of target method.
22144 * target.h (struct target_ops): Remove signal_pid. Update comment
22145 for create_inferior.
22146 * server.c (signal_pid): New variable.
22147 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22148 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22149 (attach_inferior): Set signal_pid.
22150
17574093
DJ
221512002-08-23 Daniel Jacobowitz <drow@mvista.com>
22152
22153 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22154
221552002-08-20 Jim Blandy <jimb@redhat.com>
22156
22157 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22158 default for this.
22159
221602002-08-01 Andrew Cagney <cagney@redhat.com>
22161
22162 * Makefile.in: Make chill references obsolete.
22163
221642002-07-24 Kevin Buettner <kevinb@redhat.com>
22165
22166 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22167 * configure: Regenerate.
22168 * config.in: Regenerate.
22169
221702002-07-09 David O'Brien <obrien@FreeBSD.org>
22171
22172 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22173 (perror_with_name, remote_close, remote_open, expect, play): Static.
22174
221752002-07-04 Michal Ludvig <mludvig@suse.cz>
22176
4b8dad4a 22177 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22178 byte offsets instead of an array of indexes.
22179 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22180
221812002-06-13 Daniel Jacobowitz <drow@mvista.com>
22182
22183 * regcache.c: Add comment.
22184
221852002-06-11 Daniel Jacobowitz <drow@mvista.com>
22186
22187 * thread-db.c: New file.
22188 * proc-service.c: New file.
22189 * acinclude.m4: New file.
22190 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22191 proc-service.o, and thread-db.o.
22192 (linux-low.o): Add USE_THREAD_DB.
22193 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22194 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22195 * aclocal.m4: Regenerated.
22196 * config.in: Regenerated.
22197 * configure: Regenerated.
22198 * configure.in: Check for proc_service.h, sys/procfs.h,
22199 thread_db.h, and linux/elf.h headrs.
22200 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22201 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22202 Check for -lthread_db and thread support.
22203 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22204 PowerPC, and SuperH.
22205 * i387-fp.c: Constify arguments.
22206 * i387-fp.h: Likewise.
22207 * inferiors.c: (struct thread_info): Renamed from
22208 `struct inferior_info'. Remove PID member. Use generic inferior
22209 list header. All uses updated.
22210 (inferiors, signal_pid): Removed.
22211 (all_threads): New variable.
22212 (get_thread): Define.
22213 (add_inferior_to_list): New function.
22214 (for_each_inferior): New function.
22215 (change_inferior_id): New function.
22216 (add_inferior): Removed.
22217 (remove_inferior): New function.
22218 (add_thread): New function.
22219 (free_one_thread): New function.
22220 (remove_thread): New function.
22221 (clear_inferiors): Use for_each_inferior and free_one_thread.
22222 (find_inferior): New function.
22223 (find_inferior_id): New function.
22224 (inferior_target_data): Update argument type.
22225 (set_inferior_target_data): Likewise.
22226 (inferior_regcache_data): Likewise.
22227 (set_inferior_regcache_data): Likewise.
22228 * linux-low.c (linux_bp_reinsert): Remove.
22229 (all_processes, stopping_threads, using_thrads)
22230 (struct pending_signals, debug_threads, pid_of): New.
22231 (inferior_pid): Replace with macro.
22232 (struct inferior_linux_data): Remove.
22233 (get_stop_pc, add_process): New functions.
22234 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22235 Use add_process and add_thread.
22236 (linux_attach_lwp): New function, based on old linux_attach. Use
22237 add_process and add_thread. Set stop_expected for new threads.
22238 (linux_attach): New function.
22239 (linux_kill_one_process): New function.
22240 (linux_kill): Kill all LWPs.
22241 (linux_thread_alive): Use find_inferior_id.
22242 (check_removed_breakpoints, status_pending_p): New functions.
22243 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22244 Update. Use WNOHANG. Wait for cloned processes also. Update process
22245 struct for the found process.
22246 (linux_wait_for_event): New function.
22247 (linux_wait): Use it. Support LWPs.
22248 (send_sigstop, wait_for_sigstop, stop_all_processes)
22249 (linux_resume_one_process, linux_continue_one_process): New functions.
22250 (linux_resume): Support LWPs.
22251 (REGISTER_RAW_SIZE): Remove.
22252 (fetch_register): Use register_size instead. Call supply_register.
22253 (usr_store_inferior_registers): Likewise. Call collect_register.
22254 Fix recursive case.
22255 (regsets_fetch_inferior_registers): Improve error message.
22256 (regsets_store_inferior_registers): Add debugging.
22257 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22258 (unstopped_p, linux_signal_pid): New functions.
22259 (linux_target_ops): Add linux_signal_pid.
22260 (linux_init_signals): New function.
22261 (initialize_low): Call it. Initialize using_threads.
22262 * regcache.c (inferior_regcache_data): Add valid
22263 flag.
22264 (get_regcache): Fetch registers lazily. Add fetch argument
22265 and update all callers.
22266 (regcache_invalidate_one, regcache_invalidate): New
22267 functions.
22268 (new_register_cache): Renamed from create_register_cache.
22269 Return the new regcache.
22270 (free_register_cache): Change argument to a void *.
22271 (registers_to_string, registers_from_string): Call get_regcache
22272 with fetch flag set.
22273 (register_data): Make static. Pass fetch flag to get_regcache.
22274 (supply_register): Call get_regcache with fetch flag clear.
22275 (collect_register): Call get_regcache with fetch flag set.
22276 (collect_register_as_string): New function.
22277 * regcache.h: Update.
22278 * remote-utils.c (putpkt): Flush after debug output and use
22279 stderr.
22280 Handle input interrupts while waiting for an ACK.
22281 (input_interrupt): Use signal_pid method.
22282 (getpkt): Flush after debug output and use stderr.
22283 (outreg): Use collect_register_as_string.
22284 (new_thread_notify, dead_thread_notify): New functions.
22285 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22286 and general_thread.
22287 (look_up_one_symbol): Flush after debug output.
22288 * server.c (step_thread, server_waiting): New variables.
22289 (start_inferior): Don't use signal_pid. Update call to mywait.
22290 (attach_inferior): Update call to mywait.
22291 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22292 (main): Don't fetch/store registers explicitly. Use
22293 set_desired_inferior. Support proposed ``Hs'' packet. Update
22294 calls to mywait.
22295 * server.h: Update.
22296 (struct inferior_list, struct_inferior_list_entry): New.
22297 * target.c (set_desired_inferior): New.
22298 (write_inferior_memory): Constify.
22299 (mywait): New function.
22300 * target.h: Update.
22301 (struct target_ops): New signal_pid method.
22302 (mywait): Removed macro, added prototype.
22303
22304 * linux-low.h (regset_func): Removed.
22305 (regset_fill_func, regset_store_func): New.
22306 (enum regset_type): New.
22307 (struct regset_info): Add type field. Use new operation types.
22308 (struct linux_target_ops): stop_pc renamed to get_pc.
22309 Add decr_pc_after_break and breakpoint_at.
22310 (get_process, get_thread_proess, get_process_thread)
22311 (strut process_info, all_processes, linux_attach_lwp)
22312 (thread_db_init): New.
22313
22314 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22315 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22316 (the_low_target): Add new members.
22317 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22318 (i386_store_fpxregset): Constify.
22319 (target_regsets): Add new kind identifier.
22320 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22321 (i386_set_pc): Add debugging.
22322 (i386_breakpoint_at): New function.
22323 (the_low_target): Add new members.
22324 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22325 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22326 (mips_breakpoint_at): New.
22327 (the_low_target): Add new members.
22328 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22329 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22330 (the_low_target): Add new members.
22331 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22332 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22333 (the_low_target): Add new members.
22334 * linux-x86-64-low.c (target_regsets): Add new kind
22335 identifier.
22336
223372002-05-15 Daniel Jacobowitz <drow@mvista.com>
22338
22339 From Martin Pool <mbp@samba.org>:
22340 * server.c (gdbserver_usage): New function.
22341 (main): Call it.
22342
223432002-05-14 Daniel Jacobowitz <drow@mvista.com>
22344
22345 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22346 stop_at -> stop_pc.
22347
223482002-05-04 Andrew Cagney <ac131313@redhat.com>
22349
22350 * Makefile.in: Remove obsolete code.
22351
223522002-04-24 Michal Ludvig <mludvig@suse.cz>
22353
22354 * linux-low.c (regsets_fetch_inferior_registers),
22355 (regsets_store_inferior_registers): Removed cast to int from
22356 ptrace() calls.
22357 * regcache.h: Added declaration of struct inferior_info.
22358
223592002-04-20 Daniel Jacobowitz <drow@mvista.com>
22360
22361 * inferiors.c (struct inferior_info): Add regcache_data.
22362 (add_inferior): Call create_register_cache.
22363 (clear_inferiors): Call free_register_cache.
22364 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22365 * regcache.c (struct inferior_regcache_data): New.
22366 (registers): Remove.
22367 (get_regcache): New function.
22368 (create_register_cache, free_register_cache): New functions.
22369 (set_register_cache): Don't initialize the register cache here.
22370 (registers_to_string, registers_from_string, register_data): Call
22371 get_regcache.
22372 * regcache.h: Add prototypes.
22373 * server.h: Likewise.
22374
223752002-04-20 Daniel Jacobowitz <drow@mvista.com>
22376
22377 * mem-break.c: New file.
22378 * mem-break.h: New file.
22379 * Makefile.in: Add mem-break.o rule; update server.h
22380 dependencies.
22381 * inferiors.c (struct inferior_info): Add target_data
22382 member.
22383 (clear_inferiors): Free target_data member if set.
22384 (inferior_target_data, set_inferior_target_data): New functions.
22385 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22386 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22387 * linux-low.c (linux_bp_reinsert): New variable.
22388 (struct inferior_linux_data): New.
22389 (linux_create_inferior): Use set_inferior_target_data.
22390 (linux_attach): Likewise. Call add_inferior.
22391 (linux_wait_for_one_inferior): New function.
22392 (linux_wait): Call it.
22393 (linux_write_memory): Add const.
22394 (initialize_low): Call set_breakpoint_data.
22395 * linux-low.h (struct linux_target_ops): Add breakpoint
22396 handling members.
22397 * server.c (attach_inferior): Remove extra add_inferior
22398 call.
22399 * server.h: Include mem-break.h. Update inferior.c
22400 prototypes.
22401 * target.c (read_inferior_memory)
22402 (write_inferior_memory): New functions.
22403 * target.h (read_inferior_memory)
22404 (write_inferior_memory): Change macros to prototypes.
22405 (struct target_ops): Update comments. Add const to write_memory
22406 definition.
22407
224082002-04-11 Daniel Jacobowitz <drow@mvista.com>
22409
22410 * linux-low.c (usr_store_inferior_registers): Support
22411 registers which are allowed to fail to store.
22412 * linux-low.h (linux_target_ops): Likewise.
22413 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22414 (ppc_cannot_store_register): FPSCR may not be storable.
22415
224162002-04-09 Daniel Jacobowitz <drow@mvista.com>
22417
22418 * server.h: Include <string.h> if HAVE_STRING_H.
22419 * ChangeLog: Correct paths in last ChangeLog entry.
22420
224212002-04-09 Daniel Jacobowitz <drow@mvista.com>
22422
22423 * linux-low.h: Remove obsolete prototypes.
22424 (struct linux_target_ops): New.
22425 (extern the_low_target): New.
22426 * linux-low.c (num_regs, regmap): Remove declarations.
22427 (register_addr): Use the_low_target explicitly.
22428 (fetch_register): Likewise.
22429 (usr_fetch_inferior_registers): Likewise.
22430 (usr_store_inferior_registers): Likewise.
22431 * linux-arm-low.c (num_regs): Remove.
22432 (arm_num_regs): Define.
22433 (arm_regmap): Renamed from regmap, made static.
22434 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22435 made static.
22436 (arm_cannot_store_register): Renamed from cannot_store_register,
22437 made static.
22438 (the_low_target): New.
22439 * linux-i386-low.c (num_regs): Remove.
22440 (i386_num_regs): Define.
22441 (i386_regmap): Renamed from regmap, made static.
22442 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22443 made static.
22444 (i386_cannot_store_register): Renamed from cannot_store_register,
22445 made static.
22446 (the_low_target): New.
22447 * linux-ia64-low.c (num_regs): Remove.
22448 (ia64_num_regs): Define.
22449 (ia64_regmap): Renamed from regmap, made static.
22450 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22451 made static.
22452 (ia64_cannot_store_register): Renamed from cannot_store_register,
22453 made static.
22454 (the_low_target): New.
22455 * linux-m68k-low.c (num_regs): Remove.
22456 (m68k_num_regs): Define.
22457 (m68k_regmap): Renamed from regmap, made static.
22458 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22459 made static.
22460 (m68k_cannot_store_register): Renamed from cannot_store_register,
22461 made static.
22462 (the_low_target): New.
22463 * linux-mips-low.c (num_regs): Remove.
22464 (mips_num_regs): Define.
22465 (mips_regmap): Renamed from regmap, made static.
22466 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22467 made static.
22468 (mips_cannot_store_register): Renamed from cannot_store_register,
22469 made static.
22470 (the_low_target): New.
22471 * linux-ppc-low.c (num_regs): Remove.
22472 (ppc_num_regs): Define.
22473 (ppc_regmap): Renamed from regmap, made static.
22474 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22475 made static.
22476 (ppc_cannot_store_register): Renamed from cannot_store_register,
22477 made static.
22478 (the_low_target): New.
22479 * linux-s390-low.c (num_regs): Remove.
22480 (s390_num_regs): Define.
22481 (s390_regmap): Renamed from regmap, made static.
22482 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22483 made static.
22484 (s390_cannot_store_register): Renamed from cannot_store_register,
22485 made static.
22486 (the_low_target): New.
22487 * linux-sh-low.c (num_regs): Remove.
22488 (sh_num_regs): Define.
22489 (sh_regmap): Renamed from regmap, made static.
22490 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22491 made static.
22492 (sh_cannot_store_register): Renamed from cannot_store_register,
22493 made static.
22494 (the_low_target): New.
22495 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22496 (the_low_target): New.
22497
224982002-04-09 Daniel Jacobowitz <drow@mvista.com>
22499
22500 * Makefile.in: Add stamp-h target.
22501 * configure.in: Create stamp-h.
22502 * configure: Regenerated.
22503
225042002-04-09 Daniel Jacobowitz <drow@mvista.com>
22505
22506 * inferiors.c: New file.
22507 * target.c: New file.
22508 * target.h: New file.
22509 * Makefile.in: Add target.o and inferiors.o. Update
22510 dependencies.
22511 * linux-low.c (inferior_pid): New static variable,
22512 moved from server.c.
22513 (linux_create_inferior): Renamed from create_inferior.
22514 Call add_inferior. Return 0 on success instead of a PID.
22515 (linux_attach): Renamed from myattach.
22516 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22517 (linux_thread_alive): Renamed from mythread_alive.
22518 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22519 child dies.
22520 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22521 (regsets_store_inferior_registers): Correct error message.
22522 Add missing ``return 0''.
22523 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22524 (linux_store_registers): Renamed from store_inferior_registers.
22525 (linux_read_memory): Renamed from read_inferior_memory.
22526 (linux_write_memory): Renamed from write_inferior_memory.
22527 (linux_target_ops): New structure.
22528 (initialize_low): Call set_target_ops ().
22529 * remote-utils.c (unhexify): New function.
22530 (hexify): New function.
22531 (input_interrupt): Send signals to ``signal_pid''.
22532 * server.c (inferior_pid): Remove.
22533 (start_inferior): Update create_inferior call.
22534 (attach_inferior): Call add_inferior.
22535 (handle_query): New function.
22536 (main): Call handle_query for `q' packets.
22537 * server.h: Include "target.h". Remove obsolete prototypes.
22538 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22539
225402002-04-09 Daniel Jacobowitz <drow@mvista.com>
22541
22542 * Makefile.in: Add WARN_CFLAGS. Update configury
22543 dependencies.
22544 * configure.in: Check for <string.h>
22545 * configure: Regenerate.
22546 * config.in: Regenerate.
22547 * gdbreplay.c: Include needed system headers.
22548 (remote_open): Remove strchr prototype.
22549 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22550 * regcache.c (supply_register): Change buf argument to const void *.
22551 (supply_register_by_name): Likewise.
22552 (collect_register): Change buf argument to void *.
22553 (collect_register_by_name): Likewise.
22554 * regcache.h: Add missing prototypes.
22555 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22556 * server.c (handle_query): New function.
22557 (attached): New static variable, moved out of main.
22558 (main): Quiet longjmp clobber warnings.
22559 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22560 * utils.c (error): Remove NORETURN.
22561 (fatal): Likewise.