gdb: replace AC_TRY_LINK in sanitize.m4
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
b6fb30ed
SM
12020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * configure: Re-generate.
864ca435
SM
4
52020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * configure: Re-generate.
b9442ec1
SM
8
92020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * configure: Re-generate.
b6fb30ed 12
5164c117
SM
132020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
14
15 * configure: Re-generate.
16
7e8c7130
SM
172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
18
19 * configure.ac: Modernize.
20 * configure: Re-generate.
21
91e1a0ed
SM
222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
25 AC_CANONICAL_SYSTEM.
26 * configure: Re-generate.
27
d744f0f9
PA
282020-10-26 Pedro Alves <pedro@palves.net>
29
30 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
31 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
32 explicit type.
33
006811bc
SM
342020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * acinclude.m4: Update ptrace.m4 path.
37
92a048fd
SM
382020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
39
40 * config.in: Re-generate.
41 * configure: Re-generate.
42
4dbe16c8
SM
432020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
44
45 * server.cc (handle_general_set): Don't use sprintf with
46 argument overlapping buffer.
47
a9b45cb7
TT
482020-10-20 Tom Tromey <tromey@adacore.com>
49
50 PR gdb/26742:
51 * inferiors.cc (remove_thread): Clear current_thread before
52 freeing the thread.
53
b07993f6
KR
542020-10-13 Kamil Rytarowski <n54@gmx.com>x
55
56 * netbsd-low.cc (netbsd_tdesc): Remove.
57 (netbsd_add_process): Likewise.
58 (netbsd_process_target::create_inferior): Update.
59
bbb826f5
AB
602020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
61
62 * linux-arc-low.cc (arc_linux_read_description): Release the
63 unique_ptr returned from arc_create_target_description.
64
361cb219
AB
652020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
66
67 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
68 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
69
51a948fd
AB
702020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
71
72 * linux-low.cc (linux_process_target::handle_extended_wait):
73 Release the unique_ptr returned from allocate_target_description.
74 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
75 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
76 (tdesc_i386_linux_no_xml): Change type.
77 (x86_linux_read_description): Borrow pointer from unique_ptr
78 object.
79 (x86_target::get_ipa_tdesc_idx): Likewise.
80 (initialize_low_arch): Likewise.
81 * tdesc.cc (allocate_target_description): Update return type.
82
60b74662
TT
832020-10-07 Tom Tromey <tromey@adacore.com>
84
85 * server.cc (handle_search_memory): Remove dead code.
86
55b10d89
TT
872020-10-07 Tom Tromey <tromey@adacore.com>
88
89 * server.cc (handle_search_memory_1): Remove.
90 (handle_search_memory): Use simple_search_memory.
91
a038ffd8
SM
922020-10-07 Simon Marchi <simon.marchi@efficios.com>
93
94 * Makefile.in (COMPILE): Add CXXFLAGS.
95 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
96 (gdbserver$(EXEEXT)): Add CXXFLAGS.
97 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
98 ($(IPA_LIB)): Add CXXFLAGS.
99 (IPAGENT_COMPILE): Add CXXFLAGS.
100
bbe90b5d 1012020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
6d2d7c56
AK
102
103 * configure.srv: Support ARC architecture.
104 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
105 * linux-arc-low.cc: New file.
106
48491055
KR
1072020-10-07 Kamil Rytarowski <n54@gmx.com>
108
109 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
110 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
111 (netbsd_process_target::qxfer_libraries_svr4): Update.
112
2be01f63
KR
1132020-10-07 Kamil Rytarowski <n54@gmx.com>
114
115 * netbsd-low.cc: Fix whitespace formatting.
116 * netbsd-amd64-low.cc: Likewise.
117
91e5e8db
KR
1182020-10-07 Kamil Rytarowski <n54@gmx.com>
119
120 * netbsd-low.cc (netbsd_process_target::read_memory)
121 (netbsd_process_target::write_memory): Update.
122
9529c852
KR
1232020-10-07 Kamil Rytarowski <n54@gmx.com>
124
125 * netbsd-aarch64-low.cc: Add.
126 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
127 * configure.srv: Add aarch64*-*-netbsd*.
128
981b570a
SV
1292020-10-06 Shahab Vahedi <shahab@synopsys.com>
130
131 * regcache.cc (register_data): Remove unused "fetch" argument.
132
6b01403b
SM
1332020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
134
135 * server.cc (handle_monitor_command): Handle "set
136 debug-event-loop".
137 (captured_main): Handle "--debug-event-loop".
138 (monitor_show_help): Mention new setting.
139 (gdbserver_usage): Mention new flag.
140
2554f6f5
SM
1412020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
142
143 * linux-low.cc (linux_process_target::async): Pass name to
144 add_file_handler.
145 * remote-utils.cc (handle_accept_event): Likewise.
146 (remote_open): Likewise.
147
8b667fae
KR
1482020-10-01 Kamil Rytarowski <n54@gmx.com>
149
150 * netbsd-i386-low.cc: Add.
151 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
152 * configure.srv: Add i[34567]86-*-netbsd*.
153
15397b0e
KR
1542020-10-01 Kamil Rytarowski <n54@gmx.com>
155
156 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
157 (netbsd_target_regsets): Now const.
158 (the_low_target): Remove.
159 (class netbsd_amd64_target, the_netbsd_amd64_target)
160 (the_netbsd_target): Add.
161 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
162 low_arch_setup ().
163 (netbsd_process_target::fetch_registers)
164 (netbsd_process_target::store_registers, initialize_low): Update.
165 (the_netbsd_target): Remove.
166 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
167 (the_low_target, netbsd_tdesc): Remove.
168 (netbsd_process_target::get_regs_info)
169 (netbsd_process_target::low_arch_setup): Add.
170
99bb393f
HD
1712020-09-23 Hannes Domani <ssbssa@yahoo.de>
172
173 * win32-low.cc: Remove local wow64_process variable.
174 * win32-low.h: Remove local wow64_process variable.
175
b60cea74
TT
1762020-09-18 Tom Tromey <tromey@adacore.com>
177
178 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
179 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
180 (netbsd_process_target::wait): Change type of target_options.
181 * win32-low.h (class win32_process_target) <wait>: Update.
182 * win32-low.cc (win32_process_target::wait): Update.
183 * target.h (class process_stratum_target) <wait>: Update.
184 (mywait): Update.
185 * target.cc (mywait, target_wait): Change type of "options".
186 * linux-low.h (class linux_process_target) <wait, wait_1>:
187 Update.
188 * linux-low.cc (linux_process_target::wait)
189 (linux_process_target::wait_1): Update.
190
db92ac45
TT
1912020-09-15 Tom Tromey <tromey@adacore.com>
192
193 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
194 (xmltarget_amd64_linux_no_xml): Now arrays.
195
27087b7f
TT
1962020-09-14 Tom Tromey <tromey@adacore.com>
197
198 * tracepoint.cc (eval_result_names): Now const.
199 * ax.cc (gdb_agent_op_names): Now const.
200
62ba5048
KR
2012020-09-10 Kamil Rytarowski <n54@gmx.com>
202
203 * netbsd-low.cc: Add.
204 * netbsd-low.h: Likewise.
205 * netbsd-amd64-low.cc: Likewise.
206 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
207 "netbsd-amd64-low.cc".
208 * configure.srv: Add x86_64-*-netbsd*.
209
ece5bc8a
SM
2102020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
211
212 * server.cc (captured_main): Accept multiple `--selftest=`
213 options. Pass all `--selftest=` arguments to run_tests.
214
c8693053
RO
2152020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
216
217 * configure, config.in: Regenerate.
218
05a6b8c2
EZ
2192020-07-26 Eli Zaretskii <eliz@gnu.org>
220
221 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
222 When checking whether socklen_t type is defined, use ws2tcpip.h if
223 it is available and sys/socket.h isn't.
224 * configure: Regenerate.
225 * config.in: Regenerate.
226
028a4603
PA
2272020-07-22 Pedro Alves <pedro@palves.net>
228
229 * inferiors.cc (switch_to_process): New, moved here from
230 thread-db.cc, and made extern.
231 * inferiors.h (switch_to_process): Declare.
232 * server.cc: Include "gdbsupport/scoped_restore.h".
233 (handle_qxfer_threads_proper): Now returns bool. Prepare to
234 access memory around target calls.
235 (handle_qxfer_threads): Handle errors.
236 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
237
05c309a8
SM
2382020-07-21 Simon Marchi <simon.marchi@efficios.com>
239
240 * linux-low.cc (stopped_pids): Make static.
241
0e267416
AB
2422020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
243
244 * tdesc.cc (allocate_target_description): Add header comment.
245 (target_desc_deleter::operator()): New function.
246 * tdesc.h (struct target_desc): Declare as final.
247
b315b67d
SM
2482020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * server.cc (handle_query): Use std::vector of
251 std::string for `qsupported` vector. Use separate
252 vector for unknowns.
253 * target.h (class process_stratum_target) <process_qsupported>:
254 Change parameters to array_view of const char *.
255 (target_process_qsupported): Remove `count` parameter.
256 * target.cc (process_stratum_target::process_qsupported): Change
257 parameters to array_view of const char *.
258 * linux-x86-low.cc (class x86_target) <process_qsupported>:
259 Likewise.
260
f638ed73
TV
2612020-06-29 Tom de Vries <tdevries@suse.de>
262
263 * ax.h: Include gdbsupport/debug_agent.h.
264
fbf42f4e
AB
2652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * tdesc.cc (struct tdesc_compatible_info): New struct.
268 (tdesc_compatible_info_list): New function.
269 (tdesc_compatible_info_arch_name): New function.
270
013e3554
TBA
2712020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
272
273 Use std::list to stop pending signal instead of manually-created
274 linked list.
275 * linux-low.h: Include <list>.
276 (struct pending_signal): Move here from linux-low.cc.
277 (struct lwp_info) <pending_signals>
278 <pending_signals_to_report>: Update the type.
279 * linux-low.cc (struct pending_signals): Remove.
280 (linux_process_target::delete_lwp)
281 (linux_process_target::add_lwp)
282 (enqueue_one_deferred_signal)
283 (dequeue_one_deferred_signal)
284 (enqueue_pending_signal)
285 (linux_process_target::resume_one_lwp_throw)
286 (linux_process_target::thread_needs_step_over)
287 (linux_process_target::resume_one_thread)
288 (linux_process_target::proceed_one_lwp): Update the use of pending
289 signal list.
290
7d458ea5
SM
2912020-06-17 Simon Marchi <simon.marchi@efficios.com>
292
293 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
294 Remove.
295
84b300de
SM
2962020-06-12 Simon Marchi <simon.marchi@efficios.com>
297
298 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
299 * configure.srv: Remove mingw32ce cases.
300 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
301 * win32-low.h (to_back_slashes): Remove.
302 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
303
96c16e2b
SM
3042020-06-12 Simon Marchi <simon.marchi@efficios.com>
305
306 * Makefile.in (SFILES): linux-tile-low.cc.
307 * configure.srv: Remove tilegx case.
308 * linux-tile-low.cc: Remove.
309
bd1467ae
SM
3102020-06-12 Simon Marchi <simon.marchi@efficios.com>
311
312 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
313 * configure.srv: Remove m32r case.
314 * linux-m32r-low.cc: Remove.
315
7b46bf6f
SM
3162020-06-12 Simon Marchi <simon.marchi@efficios.com>
317
318 * Makefile.in (SFILES): Remove linux-cris-low.c.
319 * configure.srv: Remove cris cases.
320 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
321
1fa29f56
SM
3222020-06-12 Simon Marchi <simon.marchi@efficios.com>
323
324 * Makefile.in (SFILES): Remove linux-bfin-low.c.
325 * configure.srv: Remove bfin case.
326 * linux-bfin-low.cc: Remove.
327 * linux-low.cc: Remove BFIN-conditional code.
328
613f149a
SM
3292020-06-12 Simon Marchi <simon.marchi@efficios.com>
330
331 * configure: Re-generate.
332 * configure.ac: Remove srv_qnx test.
333 * configure.srv: Remove nto case.
334 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
335 * remote-utils.c: Remove __QNX__-guarded code.
336
fdb95bf5
SM
3372020-06-12 Simon Marchi <simon.marchi@efficios.com>
338
339 * configure: Re-generate.
340 * configure.ac: Remove srv_lynxos test.
341 * configure.srv: Remove lynxos cases.
342 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
343 Remove.
344
c00094dc
SM
3452020-06-12 Simon Marchi <simon.marchi@efficios.com>
346
347 * README: Fix a few outdated or incoherent things.
348
6479bf85
HD
3492020-05-27 Hannes Domani <ssbssa@yahoo.de>
350
351 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
352 (win32_clear_inferiors): Use open_process_used.
353 (get_child_debug_event): Likewise.
354
bea571eb
MW
3552020-05-25 Michael Weghorn <m.weghorn@posteo.de>
356
357 PR gdbserver/25893
358 * linux-low.cc (linux_process_target::create_inferior),
359 lynx-low.cc (lynx_process_target::create_inferior),
360 win32-low.cc (win32_process_target::create_inferior): Use
361 construct_inferior_arguments instead of stringify_argv
362 to get string representation which properly escapes
363 special characters.
364 * server.cc (handle_v_run): Just pass empty program arg
365 as such, since any further processing is now handled via
366 construct_inferior_arguments.
367
ace6b919
MW
3682020-05-25 Michael Weghorn <m.weghorn@posteo.de>
369
370 * nto-low.cc (nto_process_target::create_inferior): Pass
371 argv to spawnp function as char **.
372
b69ca137
MW
3732020-05-25 Michael Weghorn <m.weghorn@posteo.de>
374
375 * server.cc (captured_main), (handle_v_run): No longer
376 insert extra NULL element to args vector.
377
51e2cfa2
PA
3782020-05-23 Pedro Alves <palves@redhat.com>
379
380 * gdb-safe-ctype.h: New.
381
8bbf0394
TBA
3822020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
383
384 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
385 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
386 (ia64_target::low_breakpoint_at): Ditto.
387
01370779
HD
3882020-05-15 Hannes Domani <ssbssa@yahoo.de>
389
390 * win32-i386-low.cc (i386_supports_z_point_type): Handle
391 Z_PACKET_HW_BP z_type.
392 (i386_insert_point): Handle raw_bkpt_type type.
393 (i386_remove_point): Likewise.
394
7d186bc0
HD
3952020-04-30 Hannes Domani <ssbssa@yahoo.de>
396
397 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
398 Add arch/i386.o.
399 * win32-arm-low.cc (arm_num_regs): New function.
400 (struct win32_target_ops): Use arm_num_regs.
401 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
402 processes.
403 (i386_get_thread_context): Likewise.
404 (i386_prepare_to_resume): Likewise.
405 (i386_thread_added): Likewise.
406 (i386_single_step): Likewise.
407 (i386_fetch_inferior_register): Likewise.
408 (i386_store_inferior_register): Likewise.
409 (i386_arch_setup): Likewise.
410 (i386_win32_num_regs): New function.
411 (struct win32_target_ops): Use i386_win32_num_regs.
412 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
413 processes.
414 (win32_require_context): Likewise.
415 (child_add_thread): Likewise.
416 (do_initial_child_stuff): Likewise.
417 (continue_one_thread): Likewise.
418 (win32_process_target::resume): Likewise.
419 (load_psapi): Likewise.
420 (win32_add_all_dlls): Likewise.
421 (maybe_adjust_pc): Likewise.
422 (win32_process_target::qxfer_siginfo): Likewise.
423 (initialize_low): Likewise.
424 * win32-low.h (struct win32_target_ops): Change num_regs to
425 callback function.
426
1eb39914
SM
4272020-04-27 Simon Marchi <simon.marchi@efficios.com>
428
429 * configure.ac: Remove check for fs_base/gs_base in
430 user_regs_struct.
431 * configure: Re-generate.
432 * config.in: Re-generate.
433 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
434 x86_store_gregset): Adjust.
435
51ac8e22
HD
4362020-04-22 Hannes Domani <ssbssa@yahoo.de>
437
438 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
439 comparison.
440
a010605f
TT
4412020-04-16 Tom Tromey <tromey@adacore.com>
442
443 * win32-low.cc (windows_nat::handle_access_violation): New
444 function.
445
e2275c6e
SM
4462020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
447
448 * win32-low.cc (get_child_debug_event): Fix format string warning.
449
73944e9f
TT
4502020-04-13 Tom Tromey <tom@tromey.com>
451
452 * server.h (gdb_fildes_t): Remove typedef.
453 * remote-utils.c (remote_desc, list_desc): Now int.
454 (INVALID_DESCRIPTOR): Remove.
455 (gdb_connected, remote_close)
456 (check_remote_input_interrupt_request): Update.
457 * utils.h (pfildes): Don't declare.
458 * utils.c (pfildes): Remove.
459
55d7aec8
TT
4602020-04-13 Tom Tromey <tom@tromey.com>
461
462 * server.h (handle_serial_event, handle_target_event): Update.
463 * server.c: Don't call initialize_event_loop.
464 (keep_processing_events): New global.
465 (handle_serial_event): Return void. Set keep_processing_events.
466 (handle_target_event): Return void.
467 (start_event_loop): Move from event-loop.c. Rewrite.
468 * remote-utils.c (handle_accept_event): Return void.
469 (reset_readchar): Use delete_timer.
470 (process_remaining): Return void.
471 (reschedule): Use create_timer.
472 * event-loop.h: Remove.
473 * event-loop.cc: Remove.
474 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
475
e487f994
TT
4762020-04-13 Tom Tromey <tom@tromey.com>
477
478 * server.c (invoke_async_signal_handlers)
479 (check_async_event_handlers, flush_streams, gdb_select): New
480 functions.
481
8ae8e197
TT
4822020-04-13 Tom Tromey <tom@tromey.com>
483
484 * configure: Rebuild.
485 * config.in: Rebuild.
486
360ad8b3
TT
4872020-04-08 Tom Tromey <tromey@adacore.com>
488
489 PR gdb/22992
490 * win32-low.c (child_continue): Call matching_pending_stop.
491 (get_child_debug_event): Call fetch_pending_stop. Push pending
492 stop when needed.
493
523d4f80
TT
4942020-04-08 Tom Tromey <tromey@adacore.com>
495
496 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
497 (win32_process_target::supports_stopped_by_sw_breakpoint):
498 Declare.
499 * win32-low.c (win32_supports_z_point_type): Always handle
500 Z_PACKET_SW_BP.
501 (win32_insert_point): Call insert_memory_breakpoint when needed.
502 (win32_remove_point): Call remove_memory_breakpoint when needed.
503 (win32_process_target::stopped_by_sw_breakpoint)
504 (win32_process_target::supports_stopped_by_sw_breakpoint): New
505 methods.
506 (win32_target_ops): Update.
507 (maybe_adjust_pc): New function.
508 (win32_wait): Call maybe_adjust_pc.
509
e54e5929
TT
5102020-04-08 Tom Tromey <tromey@adacore.com>
511
512 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
513 field.
514 * win32-i386-low.c (the_low_target): Update.
515 * win32-arm-low.c (the_low_target): Update.
516
d6225aff
TT
5172020-04-08 Tom Tromey <tromey@adacore.com>
518
519 * win32-low.h (win32_process_target::read_pc)
520 (win32_process_target::write_pc): Declare.
521 * win32-low.c (win32_process_target::read_pc)
522 (win32_process_target::write_pc): New methods.
523 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
524 functions.
525 (the_low_target): Update.
526 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
527 functions.
528 (the_low_target): Update.
529
2c1d95e8
TT
5302020-04-08 Tom Tromey <tromey@adacore.com>
531
532 * win32-low.c (win32_kill, get_child_debug_event): Use
533 wait_for_debug_event.
534
e758e19c
TT
5352020-04-08 Tom Tromey <tromey@adacore.com>
536
537 * win32-low.c (child_continue): Call continue_last_debug_event.
538
8d30e395
TT
5392020-04-08 Tom Tromey <tromey@adacore.com>
540
541 * win32-low.c (handle_exception): Remove.
542 (windows_nat::handle_ms_vc_exception): New function.
543 (get_child_debug_event): Add "continue_status" parameter.
544 Update.
545 (win32_wait): Update.
546
a816ba18
TT
5472020-04-08 Tom Tromey <tromey@adacore.com>
548
549 * win32-low.c (windows_nat::handle_load_dll): Rename from
550 handle_load_dll. No longer static.
551 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
552 No longer static.
553
d41b524f
TT
5542020-04-08 Tom Tromey <tromey@adacore.com>
555
556 * win32-low.c (handle_output_debug_string): Add parameter. Change
557 return type.
558 (win32_kill, get_child_debug_event): Update.
559
3c76026d
TT
5602020-04-08 Tom Tromey <tromey@adacore.com>
561
562 * win32-low.c (current_process_handle, current_process_id)
563 (main_thread_id, last_sig, current_event, siginfo_er): Move to
564 nat/windows-nat.c.
565
9d8679cc
TT
5662020-04-08 Tom Tromey <tromey@adacore.com>
567
568 * win32-low.c (get_image_name): Remove.
569 (handle_load_dll): Update.
570
28688adf
TT
5712020-04-08 Tom Tromey <tromey@adacore.com>
572
573 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
574 No longer static. Change parameters.
575 (child_add_thread, child_fetch_inferior_registers)
576 (child_store_inferior_registers, win32_resume)
577 (win32_get_tib_address): Update.
578
4834dad0
TT
5792020-04-08 Tom Tromey <tromey@adacore.com>
580
581 * win32-low.h (struct win32_target_ops): Use qualified names where
582 needed.
583 * win32-i386-low.c: Add "using namespace".
584 * win32-low.c: Add "using namespace".
585 * win32-arm-low.c: Add "using namespace".
586
65bafd5b
TT
5872020-04-08 Tom Tromey <tromey@adacore.com>
588
589 * win32-low.c (delete_thread_info): Don't call CloseHandle.
590
98a03287
TT
5912020-04-08 Tom Tromey <tromey@adacore.com>
592
593 * win32-low.c (win32_require_context, suspend_one_thread): Use
594 windows_thread_info::suspend.
595 (continue_one_thread): Use windows_thread_info::resume.
596 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
597
62fe396b
TT
5982020-04-08 Tom Tromey <tromey@adacore.com>
599
600 * win32-i386-low.c (update_debug_registers)
601 (i386_prepare_to_resume, i386_thread_added): Update.
602
e9534bd2
TT
6032020-04-08 Tom Tromey <tromey@adacore.com>
604
605 * win32-low.c (child_add_thread): Use new.
606 (delete_thread_info): Use delete.
607
ae1f8880
TT
6082020-04-08 Tom Tromey <tromey@adacore.com>
609
610 * win32-low.h (struct windows_thread_info): Remove.
611
e56f8ccb
TT
6122020-04-08 Tom Tromey <tromey@adacore.com>
613
614 * win32-low.h (struct windows_thread_info): Rename from
615 win32_thread_info. Remove typedef.
616 (struct win32_target_ops, win32_require_context): Update.
617 * win32-low.c (win32_get_thread_context)
618 (win32_set_thread_context, win32_prepare_to_resume)
619 (win32_require_context, thread_rec, child_add_thread)
620 (delete_thread_info, continue_one_thread)
621 (child_fetch_inferior_registers, child_store_inferior_registers)
622 (win32_resume, suspend_one_thread, win32_get_tib_address):
623 Update.
624 * win32-i386-low.c (update_debug_registers)
625 (win32_get_current_dr, i386_get_thread_context)
626 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
627 (i386_fetch_inferior_register, i386_store_inferior_register):
628 Update.
629 * win32-arm-low.c (arm_get_thread_context)
630 (arm_fetch_inferior_register, arm_store_inferior_register):
631 Update.
632
0dd7b52e
TBA
6332020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
634
635 * linux-low.h (struct linux_target_ops): Remove.
636 (the_low_target): Remove.
637 * linux-x86-low.cc (the_low_target): Remove.
638 * linux-aarch64-low.cc (the_low_target): Ditto.
639 * linux-arm-low.cc (the_low_target): Ditto.
640 * linux-bfin-low.cc (the_low_target): Ditto.
641 * linux-cris-low.cc (the_low_target): Ditto.
642 * linux-crisv32-low.cc (the_low_target): Ditto.
643 * linux-ia64-low.cc (the_low_target): Ditto.
644 * linux-m32r-low.cc (the_low_target): Ditto.
645 * linux-m68k-low.cc (the_low_target): Ditto.
646 * linux-mips-low.cc (the_low_target): Ditto.
647 * linux-nios2-low.cc (the_low_target): Ditto.
648 * linux-ppc-low.cc (the_low_target): Ditto.
649 * linux-riscv-low.cc (the_low_target): Ditto.
650 * linux-s390-low.cc (the_low_target): Ditto.
651 * linux-sh-low.cc (the_low_target): Ditto.
652 * linux-sparc-low.cc (the_low_target): Ditto.
653 * linux-tic6x-low.cc (the_low_target): Ditto.
654 * linux-tile-low.cc (the_low_target): Ditto.
655 * linux-xtensa-low.cc (the_low_target): Ditto.
656
fc5ecdb6
TBA
6572020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
658
659 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
660 linux target define the op by overriding the declaration in
661 process_stratum_target.
662
663 * linux-low.h (struct linux_target_ops): Remove the op.
664 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
665 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
666 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
667 (x86_get_ipa_tdesc_idx): Turn into...
668 (x86_target::get_ipa_tdesc_idx): ...this.
669 (the_low_target): Remove the op field.
670 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
671 (ppc_get_ipa_tdesc_idx): Turn into...
672 (ppc_target::get_ipa_tdesc_idx): ...this.
673 (the_low_target): Remove the op field.
674 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
675 (s390_get_ipa_tdesc_idx): Turn into...
676 (s390_target::get_ipa_tdesc_idx): ...this.
677 (the_low_target): Remove the op field.
678
9eedd27d
TBA
6792020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
680
681 Turn the 'get_syscall_trapinfo' linux target op into a method
682 of process_stratum_target.
683
684 * linux-low.h (struct linux_target_ops): Remove the op.
685 (class linux_process_target) <get_syscall_trapinfo>
686 <gdb_catch_this_syscall>
687 <low_supports_catch_syscall>
688 <low_get_syscall_trapinfo>: Declare.
689 * linux-low.cc (get_syscall_trapinfo): Turn into...
690 (linux_process_target::get_syscall_trapinfo): ...this.
691 (linux_process_target::low_get_syscall_trapinfo): Define.
692 (gdb_catch_this_syscall_p): Turn into...
693 (linux_process_target::gdb_catch_this_syscall): ...this.
694 (linux_process_target::low_supports_catch_syscall): Define.
695
696 Update the callers below.
697
698 (linux_process_target::wait_1)
699 (linux_process_target::supports_catch_syscall)
700
701 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
702 <low_get_syscall_trapinfo>: Declare.
703 (x86_target::low_supports_catch_syscall): Define.
704 (x86_get_syscall_trapinfo): Turn into...
705 (x86_target::low_get_syscall_trapinfo): ...this.
706 (the_low_target): Remove the op field.
707 * linux-aarch64-low.cc (class aarch64_target)
708 <low_supports_catch_syscall>
709 <low_get_syscall_trapinfo>: Declare.
710 (aarch64_target::low_supports_catch_syscall): Define.
711 (aarch64_get_syscall_trapinfo): Turn into...
712 (aarch64_target::low_get_syscall_trapinfo): ...this.
713 (the_low_target): Remove the op field.
714 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
715 <low_get_syscall_trapinfo>: Declare.
716 (arm_target::low_supports_catch_syscall): Define.
717 (arm_get_syscall_trapinfo): Turn into...
718 (arm_target::low_get_syscall_trapinfo): ...this.
719 (the_low_target): Remove the op field.
720 * linux-ppc-low.cc (the_low_target): Remove the op field.
721 * linux-s390-low.cc (the_low_target): Remove the op field.
722
b31cdfa6
TBA
7232020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
724
725 Remove the 'supports_hardware_single_step' linux target op and
726 override the process_stratum_target's op definition in
727 linux_process_target to return true.
728
729 * linux-low.h (struct linux_target_ops): Remove the op.
730 (class linux_process_target) <finish_step_over>
731 <maybe_hw_step>: Declare.
732 * linux-low.cc (can_hardware_single_step): Remove.
733 (maybe_hw_step): Turn into...
734 (linux_process_target::maybe_hw_step): ...this.
735 (finish_step_over): Turn into...
736 (linux_process_target::finish_step_over): ...this.
737 (linux_process_target::supports_hardware_single_step): Update
738 to return true.
739
740 Update the callers below.
741
742 (linux_process_target::single_step)
743 (linux_process_target::resume_one_lwp_throw)
744
745 * linux-arm-low.cc (class arm_target)
746 <supports_hardware_single_step>: Declare.
747 (arm_supports_hardware_single_step): Turn into...
748 (arm_target::supports_hardware_single_step): ...this.
749 (the_low_target): Remove the op field.
750 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
751 (the_low_target): Remove the op field.
752 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
753 Remove.
754 (the_low_target): Remove the op field.
755 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
756 (the_low_target): Remove the op field.
757 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
758 (the_low_target): Remove the op field.
759 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
760 (the_low_target): Remove the op field.
761 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
762 (the_low_target): Remove the op field.
763 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
764 (the_low_target): Remove the op field.
765 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
766 (the_low_target): Remove the op field.
767 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
768 (the_low_target): Remove the op field.
769 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
770 (the_low_target): Remove the op field.
771 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
772 (the_low_target): Remove the op field.
773 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
774 Remove.
775 (the_low_target): Remove the op field.
776
9cfd8715
TBA
7772020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
778
779 Turn the 'supports_range_stepping' linux target op into a method
780 of linux_process_target.
781
782 * linux-low.h (struct linux_target_ops): Remove the op.
783 (class linux_process_target) <low_supports_range_stepping>: Declare.
784 * linux-low.cc (linux_process_target::low_supports_range_stepping):
785 Define.
786 (linux_process_target::supports_range_stepping): Update the call
787 site.
788 * linux-x86-low.cc (class x86_target)
789 <low_supports_range_stepping>: Declare.
790 (x86_supports_range_stepping): Turn into...
791 (x86_target::low_supports_range_stepping): ...this.
792 (the_low_target): Remove the op field.
793 * linux-aarch64-low.cc (class aarch64_target)
794 <low_supports_range_stepping>: Declare.
795 (aarch64_supports_range_stepping): Turn into...
796 (aarch64_target::low_supports_range_stepping): ...this.
797 (the_low_target): Remove the op field.
798 * linux-arm-low.cc (the_low_target): Remove the op field.
799 * linux-bfin-low.cc (the_low_target): Ditto.
800 * linux-crisv32-low.cc (the_low_target): Ditto.
801 * linux-m32r-low.cc (the_low_target): Ditto.
802 * linux-m68k-low.cc (the_low_target): Ditto.
803 * linux-ppc-low.cc (the_low_target): Ditto.
804 * linux-s390-low.cc (the_low_target): Ditto.
805 * linux-sh-low.cc (the_low_target): Ditto.
806 * linux-tic6x-low.cc (the_low_target): Ditto.
807 * linux-tile-low.cc (the_low_target): Ditto.
808 * linux-xtensa-low.cc (the_low_target): Ditto.
809
ab64c999
TBA
8102020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
811
812 Remove the 'emit_ops' linux target ops and let the concrete
813 linux target define the op by overriding the declaration of
814 process_stratum_target.
815
816 * linux-low.h (struct linux_target_ops): Remove the op.
817 (class linux_process_target) <emit_ops>: Remove.
818 * linux-low.cc (linux_process_target::emit_ops): Remove.
819 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
820 (x86_emit_ops): Turn into...
821 (x86_target::emit_ops): ...this.
822 (the_low_target): Remove the op field.
823 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
824 (aarch64_emit_ops): Turn into...
825 (aarch64_target::emit_ops): ...this.
826 (the_low_target): Remove the op field.
827 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
828 (ppc_emit_ops): Turn into...
829 (ppc_target::emit_ops): ...this.
830 (the_low_target): Remove the op field.
831 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
832 (s390_emit_ops): Turn into...
833 (s390_target::emit_ops): ...this.
834 (the_low_target): Remove the op field.
835 * linux-arm-low.cc (the_low_target): Remove the op field.
836 * linux-bfin-low.cc (the_low_target): Ditto.
837 * linux-crisv32-low.cc (the_low_target): Ditto.
838 * linux-m32r-low.cc (the_low_target): Ditto.
839 * linux-m68k-low.cc (the_low_target): Ditto.
840 * linux-sh-low.cc (the_low_target): Ditto.
841 * linux-tic6x-low.cc (the_low_target): Ditto.
842 * linux-tile-low.cc (the_low_target): Ditto.
843 * linux-xtensa-low.cc (the_low_target): Ditto.
844
809a0c35
TBA
8452020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
846
847 Remove the 'install_fast_tracepoint_jump_pad' and
848 'get_min_fast_tracepoint_insn_len' linux target ops to let the
849 concrete linux target define the ops by overriding the declarations
850 of process_stratum_target.
851
852 * linux-low.h (struct linux_target_ops): Remove the ops.
853 (class linux_process_target) <supports_fast_tracepoints>
854 <install_fast_tracepoint_jump_pad>
855 <get_min_fast_tracepoint_insn_len>: Remove.
856 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
857 (linux_process_target::install_fast_tracepoint_jump_pad)
858 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
859 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
860 <install_fast_tracepoint_jump_pad>
861 <get_min_fast_tracepoint_insn_len>: Declare.
862 (x86_target::supports_fast_tracepoints): Define.
863 (x86_install_fast_tracepoint_jump_pad): Turn into...
864 (x86_target::install_fast_tracepoint_jump_pad): ...this.
865 (x86_get_min_fast_tracepoint_insn_len): Turn into...
866 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
867 (the_low_target): Remove the op fields.
868 * linux-aarch64-low.cc (class aarch64_target)
869 <supports_fast_tracepoints>
870 <install_fast_tracepoint_jump_pad>
871 <get_min_fast_tracepoint_insn_len>: Declare.
872 (aarch64_target::supports_fast_tracepoints): Define.
873 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
874 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
875 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
876 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
877 (the_low_target): Remove the op fields.
878 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
879 <install_fast_tracepoint_jump_pad>
880 <get_min_fast_tracepoint_insn_len>: Declare.
881 (ppc_target::supports_fast_tracepoints): Define.
882 (ppc_install_fast_tracepoint_jump_pad): Turn into...
883 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
884 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
885 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
886 (the_low_target): Remove the op fields.
887 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
888 <install_fast_tracepoint_jump_pad>
889 <get_min_fast_tracepoint_insn_len>: Declare.
890 (s390_target::supports_fast_tracepoints): Define.
891 (s390_install_fast_tracepoint_jump_pad): Turn into...
892 (s390_target::install_fast_tracepoint_jump_pad): ...this.
893 (s390_get_min_fast_tracepoint_insn_len): Turn into...
894 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
895 (the_low_target): Remove the op fields.
896 * linux-arm-low.cc (the_low_target): Remove the op fields.
897 * linux-bfin-low.cc (the_low_target): Ditto.
898 * linux-crisv32-low.cc (the_low_target): Ditto.
899 * linux-m32r-low.cc (the_low_target): Ditto.
900 * linux-m68k-low.cc (the_low_target): Ditto.
901 * linux-sh-low.cc (the_low_target): Ditto.
902 * linux-tic6x-low.cc (the_low_target): Ditto.
903 * linux-tile-low.cc (the_low_target): Ditto.
904 * linux-xtensa-low.cc (the_low_target): Ditto.
905
13e567af
TBA
9062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
907
908 Turn the 'get_thread_area' linux target op into a method of
909 process_stratum_target.
910
911 * linux-low.h (struct linux_target_ops): Remove the op.
912 (class linux_process_target) <stuck_in_jump_pad>
913 <linux_fast_tracepoint_collecting>
914 <low_get_thread_area>: Declare.
915 * linux-low.cc (supports_fast_tracepoints): Remove.
916 (linux_fast_tracepoint_collecting): Turn into...
917 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
918 (linux_process_target::low_get_thread_area): Define.
919 (stuck_in_jump_pad_callback): Turn into...
920 (linux_process_target::stuck_in_jump_pad): ...this.
921
922 Update the caller below.
923
924 (linux_process_target::stabilize_threads)
925
926 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
927 Declare.
928 (x86_get_thread_area): Turn into...
929 (x86_target::low_get_thread_area): ...this.
930 (the_low_target): Remove the op field.
931 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
932 Declare.
933 (aarch64_get_thread_area): Turn into...
934 (aarch64_target::low_get_thread_area): ...this.
935 (the_low_target): Remove the op field.
936 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
937 Declare.
938 (ppc_get_thread_area): Turn into...
939 (ppc_target::low_get_thread_area): ...this.
940 (the_low_target): Remove the op field.
941 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
942 Declare.
943 (s390_get_thread_area): Turn into...
944 (s390_target::low_get_thread_area): ...this.
945 (the_low_target): Remove the op field.
946 * linux-arm-low.cc (the_low_target): Remove the op field.
947 * linux-bfin-low.cc (the_low_target): Ditto.
948 * linux-crisv32-low.cc (the_low_target): Ditto.
949 * linux-m32r-low.cc (the_low_target): Ditto.
950 * linux-m68k-low.cc (the_low_target): Ditto.
951 * linux-sh-low.cc (the_low_target): Ditto.
952 * linux-tic6x-low.cc (the_low_target): Ditto.
953 * linux-tile-low.cc (the_low_target): Ditto.
954 * linux-xtensa-low.cc (the_low_target): Ditto.
955
47f70aa7
TBA
9562020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
957
958 Remote the 'supports_tracepoints' linux target op and let the
959 concrete linux target define it by overriding the op declared in
960 process_stratum_target.
961
962 * linux-low.h (struct linux_target_ops): Remove the op.
963 (class linux_process_target) <supports_tracepoints>: Remove.
964 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
965 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
966 Declare.
967 (x86_supports_tracepoints): Turn into...
968 (x86_target::supports_tracepoints): ...this.
969 (the_low_target): Remove the op field.
970 * linux-aarch64-low.cc (class aarch64_target)
971 <supports_tracepoints>: Declare.
972 (aarch64_supports_tracepoints): Turn into...
973 (aarch64_target::supports_tracepoints): ...this.
974 (the_low_target): Remove the op field.
975 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
976 Declare.
977 (ppc_supports_tracepoints): Turn into...
978 (ppc_target::supports_tracepoints): ...this.
979 (the_low_target): Remove the op field.
980 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
981 Declare.
982 (s390_supports_tracepoints): Turn into...
983 (s390_target::supports_tracepoints): ...this.
984 (the_low_target): Remove the op field.
985 * linux-arm-low.cc (the_low_target): Remove the op field.
986 * linux-bfin-low.cc (the_low_target): Ditto.
987 * linux-crisv32-low.cc (the_low_target): Ditto.
988 * linux-m32r-low.cc (the_low_target): Ditto.
989 * linux-m68k-low.cc (the_low_target): Ditto.
990 * linux-sh-low.cc (the_low_target): Ditto.
991 * linux-tic6x-low.cc (the_low_target): Ditto.
992 * linux-tile-low.cc (the_low_target): Ditto.
993 * linux-xtensa-low.cc (the_low_target): Ditto.
994
a5b5da92
TBA
9952020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
996
997 Remove the 'process_qsupported' linux target op and let a concrete
998 linux target define the op by overriding the op declaration in
999 process_stratum_target.
1000
1001 * linux-low.h (struct linux_target_ops): Remove the op.
1002 (class linux_process_target) <process_qsupported>: Remove.
1003 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1004 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1005 (x86_linux_process_qsupported): Turn into...
1006 (x86_target::process_qsupported): ...this.
1007 (the_low_target): Remove the op field.
1008 * linux-aarch64-low.cc (the_low_target): Remove the op
1009 field.
1010 * linux-arm-low.cc (the_low_target): Ditto.
1011 * linux-bfin-low.cc (the_low_target): Ditto.
1012 * linux-crisv32-low.cc (the_low_target): Ditto.
1013 * linux-m32r-low.cc (the_low_target): Ditto.
1014 * linux-m68k-low.cc (the_low_target): Ditto.
1015 * linux-ppc-low.cc (the_low_target): Ditto.
1016 * linux-s390-low.cc (the_low_target): Ditto.
1017 * linux-sh-low.cc (the_low_target): Ditto.
1018 * linux-tic6x-low.cc (the_low_target): Ditto.
1019 * linux-tile-low.cc (the_low_target): Ditto.
1020 * linux-xtensa-low.cc (the_low_target): Ditto.
1021
d7599cc0
TBA
10222020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1023
1024 Turn the 'prepare_to_resume' linux target op into a method of
1025 linux_process_target.
1026
1027 * linux-low.h (struct linux_target_ops): Remove the op.
1028 (class linux_process_target) <low_prepare_to_resume>: Declare.
1029 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1030 Define.
1031
1032 Update the callers below:
1033
1034 (linux_process_target::resume_one_lwp_throw)
1035 (linux_process_target::low_prepare_to_resume)
1036
1037 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1038 Declare.
1039 (x86_target::low_prepare_to_resume): Define.
1040 (the_low_target): Remove the op field.
1041 * linux-aarch64-low.cc (class aarch64_target)
1042 <low_prepare_to_resume>: Declare.
1043 (aarch64_target::low_prepare_to_resume): Define.
1044 (the_low_target): Remove the op field.
1045 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1046 Declare.
1047 (arm_prepare_to_resume): Turn into...
1048 (arm_target::low_prepare_to_resume): ...this.
1049 (the_low_target): Remove the op field.
1050 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1051 Declare.
1052 (mips_linux_prepare_to_resume): Turn into...
1053 (mips_target::low_prepare_to_resume): ...this.
1054 (the_low_target): Remove the op field.
1055 * linux-bfin-low.cc (the_low_target): Remove the op field.
1056 * linux-crisv32-low.cc (the_low_target): Ditto.
1057 * linux-m32r-low.cc (the_low_target): Ditto.
1058 * linux-m68k-low.cc (the_low_target): Ditto.
1059 * linux-ppc-low.cc (the_low_target): Ditto.
1060 * linux-s390-low.cc (the_low_target): Ditto.
1061 * linux-sh-low.cc (the_low_target): Ditto.
1062 * linux-tic6x-low.cc (the_low_target): Ditto.
1063 * linux-tile-low.cc (the_low_target): Ditto.
1064 * linux-xtensa-low.cc (the_low_target): Ditto.
1065
fd000fb3
TBA
10662020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1067
1068 Turn the 'new_process', 'delete_process', 'new_thread',
1069 'delete_thread', and 'new_fork' linux target ops into methods
1070 of linux_process_target.
1071
1072 * linux-low.h (struct linux_target_ops): Remove the ops.
1073 (class linux_process_target) <add_linux_process>
1074 <add_lwp>
1075 <delete_lwp>
1076 <attach_lwp>
1077 <detach_one_lwp>
1078 <check_zombie_leaders>
1079 <filter_exit_event>
1080 <low_new_process>
1081 <low_delete_process>
1082 <low_new_thread>
1083 <low_delete_thread>
1084 <low_new_fork>: Declare.
1085 * linux-low.cc (delete_lwp): Turn into...
1086 (linux_process_target::delete_lwp): ...this.
1087 (linux_process_target::low_delete_thread): Define.
1088 (linux_add_process): Turn into...
1089 (linux_process_target::add_linux_process): ...this.
1090 (linux_process_target::low_new_process): Define.
1091 (linux_process_target::low_delete_process): Define.
1092 (linux_process_target::low_new_fork): Define.
1093 (add_lwp): Turn into...
1094 (linux_process_target::add_lwp): ...this.
1095 (linux_process_target::low_new_thread): Define.
1096 (linux_attach_lwp): Turn into...
1097 (linux_process_target::attach_lwp): ...this.
1098 (linux_detach_one_lwp): Turn into...
1099 (linux_process_target::detach_one_lwp): ...this.
1100 (linux_detach_lwp_callback): Remove and inline...
1101 (linux_process_target::detach): ...here.
1102 (check_zombie_leaders): Turn into...
1103 (linux_process_target::check_zombie_leaders): ...this.
1104 (filter_exit_event): Turn into...
1105 (linux_process_target::filter_exit_event): ...this.
1106
1107 Update the callers below.
1108
1109 (linux_process_target::handle_extended_wait)
1110 (linux_process_target::create_inferior)
1111 (attach_proc_task_lwp_callback)
1112 (linux_process_target::attach)
1113 (linux_process_target::detach)
1114 (linux_process_target::mourn)
1115 * thread-db.cc (attach_thread)
1116
1117 * linux-x86-low.cc (class x86_target) <low_new_process>
1118 <low_delete_process>
1119 <low_new_thread>
1120 <low_delete_thread>
1121 <low_new_fork>: Declare.
1122 (x86_linux_new_process): Turn into...
1123 (x86_target::low_new_process): ...this.
1124 (x86_linux_delete_process): Turn into...
1125 (x86_target::low_delete_process): ...this.
1126 (x86_target::low_new_thread): Define.
1127 (x86_target::low_delete_thread): Define.
1128 (x86_linux_new_fork): Turn into...
1129 (x86_target::low_new_fork): ...this.
1130 (the_low_target): Remove the op fields.
1131 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1132 <low_delete_process>
1133 <low_new_thread>
1134 <low_delete_thread>
1135 <low_new_fork>: Declare.
1136 (aarch64_linux_new_process): Turn into...
1137 (aarch64_target::low_new_process): ...this.
1138 (aarch64_linux_delete_process): Turn into...
1139 (aarch64_target::low_delete_process): ...this.
1140 (aarch64_target::low_new_thread): Define.
1141 (aarch64_target::low_delete_thread): Define.
1142 (aarch64_linux_new_fork): Turn into...
1143 (aarch64_target::low_new_fork): ...this.
1144 (the_low_target): Remove the op fields.
1145 * linux-arm-low.cc (class arm_target) <low_new_process>
1146 <low_delete_process>
1147 <low_new_thread>
1148 <low_delete_thread>
1149 <low_new_fork>: Declare.
1150 (arm_new_process): Turn into...
1151 (arm_target::low_new_process): ...this.
1152 (arm_delete_process): Turn into...
1153 (arm_target::low_delete_process): ...this.
1154 (arm_new_thread): Turn into...
1155 (arm_target::low_new_thread): ...this.
1156 (arm_delete_thread): Turn into...
1157 (arm_target::low_delete_thread): ...this.
1158 (arm_new_fork): Turn into...
1159 (arm_target::low_new_fork): ...this.
1160 (the_low_target): Remove the op fields.
1161 * linux-mips-low.cc (class mips_target) <low_new_process>
1162 <low_delete_process>
1163 <low_new_thread>
1164 <low_delete_thread>
1165 <low_new_fork>: Declare.
1166 (mips_linux_new_process): Turn into...
1167 (mips_target::low_new_process): ...this.
1168 (mips_linux_delete_process): Turn into...
1169 (mips_target::low_delete_process): ...this.
1170 (mips_linux_new_thread): Turn into...
1171 (mips_target::low_new_thread): ...this.
1172 (mips_linux_delete_thread): Turn into...
1173 (mips_target::low_delete_thread): ...this.
1174 (mips_linux_new_fork): Turn into...
1175 (mips_target::low_new_fork): ...this.
1176 (the_low_target): Remove the op fields.
1177 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1178 * linux-crisv32-low.cc (the_low_target): Ditto.
1179 * linux-m32r-low.cc (the_low_target): Ditto.
1180 * linux-m68k-low.cc (the_low_target): Ditto.
1181 * linux-ppc-low.cc (the_low_target): Ditto.
1182 * linux-s390-low.cc (the_low_target): Ditto.
1183 * linux-sh-low.cc (the_low_target): Ditto.
1184 * linux-tic6x-low.cc (the_low_target): Ditto.
1185 * linux-tile-low.cc (the_low_target): Ditto.
1186 * linux-xtensa-low.cc (the_low_target): Ditto.
1187
cb63de7c
TBA
11882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1189
1190 Turn the 'siginfo_fixup' linux target op into a method of
1191 linux_process_target.
1192
1193 * linux-low.h (struct linux_target_ops): Remove the op.
1194 (class linux_process_target) <siginfo_fixup>
1195 <low_siginfo_fixup>: Declare.
1196 * linux-low.cc (siginfo_fixup): Turn into...
1197 (linux_process_target::siginfo_fixup): ...this.
1198 (linux_process_target::low_siginfo_fixup): Define.
1199 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1200 (x86_siginfo_fixup): Turn into...
1201 (x86_target::low_siginfo_fixup): ...this.
1202 (the_low_target): Remove the op field.
1203 * linux-aarch64-low.cc (class aarch64_target):
1204 <low_siginfo_fixup>: Declare.
1205 (aarch64_linux_siginfo_fixup): Turn into...
1206 (aarch64_target::low_siginfo_fixup): ...this.
1207 (the_low_target): Remove the op field.
1208 * linux-arm-low.cc (the_low_target): Remove the op field.
1209 * linux-bfin-low.cc (the_low_target): Ditto.
1210 * linux-crisv32-low.cc (the_low_target): Ditto.
1211 * linux-m32r-low.cc (the_low_target): Ditto.
1212 * linux-m68k-low.cc (the_low_target): Ditto.
1213 * linux-mips-low.cc (the_low_target): Ditto.
1214 * linux-ppc-low.cc (the_low_target): Ditto.
1215 * linux-s390-low.cc (the_low_target): Ditto.
1216 * linux-sh-low.cc (the_low_target): Ditto.
1217 * linux-tic6x-low.cc (the_low_target): Ditto.
1218 * linux-tile-low.cc (the_low_target): Ditto.
1219 * linux-xtensa-low.cc (the_low_target): Ditto.
1220
b35db733
TBA
12212020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1222
1223 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1224 linux target ops into methods of linux_process_target.
1225
1226 * linux-low.h (struct linux_target_ops): Remove the ops.
1227 (class linux_process_target) <low_collect_ptrace_register>
1228 <low_store_ptrace_register>: Declare.
1229 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1230 (linux_process_target::low_supply_ptrace_register): Define.
1231
1232 Update the callers below.
1233
1234 (linux_process_target::fetch_register)
1235 (linux_process_target::store_register)
1236
1237 * linux-x86-low.cc (the_low_target): Remove the op fields.
1238 * linux-aarch64-low.cc (the_low_target): Ditto.
1239 * linux-arm-low.cc (the_low_target): Ditto.
1240 * linux-bfin-low.cc (the_low_target): Ditto.
1241 * linux-crisv32-low.cc (the_low_target): Ditto.
1242 * linux-m32r-low.cc (the_low_target): Ditto.
1243 * linux-m68k-low.cc (the_low_target): Ditto.
1244 * linux-sh-low.cc (the_low_target): Ditto.
1245 * linux-sparc-low.cc (the_low_target): Ditto.
1246 * linux-tic6x-low.cc (the_low_target): Ditto.
1247 * linux-tile-low.cc (the_low_target): Ditto.
1248 * linux-xtensa-low.cc (the_low_target): Ditto.
1249 * linux-mips-low.cc (class mips_target)
1250 <low_collect_ptrace_register>
1251 <low_supply_ptrace_register>: Declare.
1252 (mips_collect_ptrace_register): Turn into ...
1253 (mips_target::low_collect_ptrace_register): ...this.
1254 (mips_supply_ptrace_register): Turn into...
1255 (mips_target::low_supply_ptrace_register): ...this.
1256 (the_low_target): Remove the op fields.
1257 * linux-ppc-low.cc (class ppc_target)
1258 <low_collect_ptrace_register>
1259 <low_supply_ptrace_register>: Declare.
1260 (ppc_collect_ptrace_register): Turn into ...
1261 (ppc_target::low_collect_ptrace_register): ...this.
1262 (ppc_supply_ptrace_register): Turn into ...
1263 (ppc_target::low_supply_ptrace_register): ...this.
1264 (ppc_fill_gregset): Update for the calls to
1265 low_collect_ptrace_register.
1266 (the_low_target): Remove the op fields.
1267 * linux-s390-low.cc (class s390_target)
1268 <low_collect_ptrace_register>
1269 <low_supply_ptrace_register>: Declare.
1270 (s390_collect_ptrace_register): Turn into ...
1271 (s390_target::low_collect_ptrace_register): ...this.
1272 (s390_supply_ptrace_register): Turn into ...
1273 (s390_target::low_supply_ptrace_register): ...this.
1274 (s390_fill_gregset): Update for the calls to
1275 low_collect_ptrace_register.
1276 (the_low_target): Remove the op fields.
1277
ac1bbaca
TBA
12782020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1279
1280 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1281 target ops into methods of linux_process_target.
1282
1283 * linux-low.h (struct linux_target_ops): Remove the ops.
1284 (class linux_process_target) <check_stopped_by_watchpoint>
1285 <low_stopped_by_watchpoint>
1286 <low_stopped_data_address>: Declare.
1287 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1288 (linux_process_target::check_stopped_by_watchpoint): ...this.
1289 (linux_process_target::low_stopped_by_watchpoint): Define.
1290 (linux_process_target::low_stopped_data_address): Define.
1291 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1292 <low_stopped_data_address>: Declare.
1293 (x86_stopped_by_watchpoint): Turn into...
1294 (x86_target::low_stopped_by_watchpoint): ...this.
1295 (x86_stopped_data_address): Turn into...
1296 (x86_target::low_stopped_data_address): ...this.
1297 (the_low_target): Remove the op fields.
1298 * linux-aarch64-low.cc (class aarch64_target)
1299 <low_stopped_by_watchpoint>
1300 <low_stopped_data_address>: Declare.
1301 (aarch64_stopped_by_watchpoint): Turn into...
1302 (aarch64_target::low_stopped_by_watchpoint): ...this.
1303 (aarch64_stopped_data_address): Turn into...
1304 (aarch64_target::low_stopped_data_address): ...this.
1305 (the_low_target): Remove the op fields.
1306 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1307 <low_stopped_data_address>: Declare.
1308 (arm_stopped_by_watchpoint): Turn into...
1309 (arm_target::low_stopped_by_watchpoint): ...this.
1310 (arm_stopped_data_address): Turn into...
1311 (arm_target::low_stopped_data_address): ...this.
1312 (the_low_target): Remove the op fields.
1313 * linux-crisv32-low.cc (class crisv32_target)
1314 <low_stopped_by_watchpoint>
1315 <low_stopped_data_address>: Declare.
1316 (cris_stopped_by_watchpoint): Turn into...
1317 (crisv32_target::low_stopped_by_watchpoint): ...this.
1318 (cris_stopped_data_address): Turn into...
1319 (crisv32_target::low_stopped_data_address): ...this.
1320 (the_low_target): Remove the op fields.
1321 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1322 <low_stopped_data_address>: Declare.
1323 (mips_stopped_by_watchpoint): Turn into...
1324 (mips_target::low_stopped_by_watchpoint): ...this.
1325 (mips_stopped_data_address): Turn into...
1326 (mips_target::low_stopped_data_address): ...this.
1327 (the_low_target): Remove the op fields.
1328 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1329 * linux-m32r-low.cc (the_low_target): Ditto.
1330 * linux-m68k-low.cc (the_low_target): Ditto.
1331 * linux-ppc-low.cc (the_low_target): Ditto.
1332 * linux-s390-low.cc (the_low_target): Ditto.
1333 * linux-sh-low.cc (the_low_target): Ditto.
1334 * linux-sparc-low.cc (the_low_target): Ditto.
1335 * linux-tic6x-low.cc (the_low_target): Ditto.
1336 * linux-tile-low.cc (the_low_target): Ditto.
1337 * linux-xtensa-low.cc (the_low_target): Ditto.
1338
9db9aa23
TBA
13392020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1340
1341 Turn the 'insert_point' and 'remove_point' linux target ops into
1342 methods of linux_process_target.
1343
1344 * linux-low.h (struct linux_target_ops): Remove the ops.
1345 (class linux_process_target) <low_insert_point>
1346 <low_remove_point>: Declare.
1347 * linux-low.cc (linux_process_target::low_insert_point)
1348 (linux_process_target::low_remove_point): Define.
1349 (linux_process_target::insert_point)
1350 (linux_process_target::remove_point): Update for calls to
1351 low_insert_point and low_remove_point.
1352 * linux-x86-low.cc (class x86_target) <low_insert_point>
1353 <low_remove_point>: Declare.
1354 (x86_insert_point): Turn into...
1355 (x86_target::low_insert_point): ...this.
1356 (x86_remove_point): Turn into...
1357 (x86_target::low_remove_point): ...this.
1358 (the_low_target): Remove the op fields.
1359 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1360 <low_remove_point>: Declare.
1361 (aarch64_insert_point): Turn into...
1362 (aarch64_target::low_insert_point): ...this.
1363 (aarch64_remove_point): Turn into...
1364 (aarch64_target::low_remove_point): ...this.
1365 (the_low_target): Remove the op fields.
1366 * linux-arm-low.cc (class arm_target) <low_insert_point>
1367 <low_remove_point>: Declare.
1368 (arm_insert_point): Turn into...
1369 (arm_target::low_insert_point): ...this.
1370 (arm_remove_point): Turn into...
1371 (arm_target::low_remove_point): ...this.
1372 (the_low_target): Remove the op fields.
1373 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1374 <low_remove_point>: Declare.
1375 (crisv32_insert_point): Turn into...
1376 (crisv32_target::low_insert_point): ...this.
1377 (crisv32_remove_point): Turn into...
1378 (crisv32_target::low_remove_point): ...this.
1379 (the_low_target): Remove the op fields.
1380 * linux-mips-low.cc (class mips_target) <low_insert_point>
1381 <low_remove_point>: Declare.
1382 (mips_insert_point): Turn into...
1383 (mips_target::low_insert_point): ...this.
1384 (mips_remove_point): Turn into...
1385 (mips_target::low_remove_point): ...this.
1386 (the_low_target): Remove the op fields.
1387 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1388 <low_remove_point>: Declare.
1389 (ppc_insert_point): Turn into...
1390 (ppc_target::low_insert_point): ...this.
1391 (ppc_remove_point): Turn into...
1392 (ppc_target::low_remove_point): ...this.
1393 (the_low_target): Remove the op fields.
1394 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1395 * linux-m32r-low.cc (the_low_target): Ditto.
1396 * linux-m68k-low.cc (the_low_target): Ditto.
1397 * linux-s390-low.cc (the_low_target): Ditto.
1398 * linux-sh-low.cc (the_low_target): Ditto.
1399 * linux-sparc-low.cc (the_low_target): Ditto.
1400 * linux-tic6x-low.cc (the_low_target): Ditto.
1401 * linux-tile-low.cc (the_low_target): Ditto.
1402 * linux-xtensa-low.cc (the_low_target): Ditto.
1403
007c9b97
TBA
14042020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1405
1406 Remove the 'supports_z_point_type' linux target op and let the
1407 concrete linux target define it by overriding the op declared in
1408 process_stratum_target.
1409
1410 * linux-low.cc (linux_process_target::supports_z_point_type):
1411 Remove.
1412 * linux-low.h (struct linux_target_ops): Remove the op.
1413 (class linux_process_target) <supports_z_point_type>: Remove.
1414 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1415 Declare.
1416 (x86_supports_z_point_type): Turn into...
1417 (x86_target::supports_z_point_type): ...this.
1418 (the_low_target): Remove the op field.
1419 * linux-aarch64-low.cc (class aarch64_target)
1420 <supports_z_point_type>: Declare.
1421 (aarch64_supports_z_point_type): Turn into...
1422 (aarch64_target::supports_z_point_type): ...this.
1423 (the_low_target): Remove the op field.
1424 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1425 Declare.
1426 (arm_supports_z_point_type): Turn into...
1427 (arm_target::supports_z_point_type): ...this.
1428 (the_low_target): Remove the op field.
1429 * linux-crisv32-low.cc (class crisv32_target)
1430 <supports_z_point_type>: Declare.
1431 (cris_supports_z_point_type): Turn into...
1432 (crisv32_target::supports_z_point_type): ...this.
1433 (the_low_target): Remove the op field.
1434 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1435 Declare.
1436 (mips_supports_z_point_type): Turn into...
1437 (mips_target::supports_z_point_type): ...this.
1438 (the_low_target): Remove the op field.
1439 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1440 Declare.
1441 (ppc_supports_z_point_type): Turn into...
1442 (ppc_target::supports_z_point_type): ...this.
1443 (the_low_target): Remove the op field.
1444 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1445 Declare.
1446 (s390_supports_z_point_type): Turn into...
1447 (s390_target::supports_z_point_type): ...this.
1448 (the_low_target): Remove the op field.
1449 * linux-bfin-low.cc (the_low_target): Remove the op field.
1450 * linux-m32r-low.cc (the_low_target): Ditto.
1451 * linux-m68k-low.cc (the_low_target): Ditto.
1452 * linux-sh-low.cc (the_low_target): Ditto.
1453 * linux-sparc-low.cc (the_low_target): Ditto.
1454 * linux-tic6x-low.cc (the_low_target): Ditto.
1455 * linux-tile-low.cc (the_low_target): Ditto.
1456 * linux-xtensa-low.cc (the_low_target): Ditto.
1457
d7146cda
TBA
14582020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1459
1460 Turn the 'breakpoint_at' linux target op into a method of
1461 linux_process_target.
1462
1463 * linux-low.h (struct linux_target_ops): Remove the op.
1464 (class linux_process_target) <low_breakpoint_at>: Declare.
1465
1466 Update the callers below:
1467
1468 * linux-low.cc (linux_process_target::save_stop_reason)
1469 (linux_process_target::thread_still_has_status_pending)
1470 (linux_process_target::wait_1)
1471
1472 * linux-x86-low.cc (class x86_target)
1473 <low_breakpoint_at>: Declare.
1474 (x86_breakpoint_at): Turn into...
1475 (x86_target::low_breakpoint_at): ...this.
1476 (the_low_target): Remove the op field.
1477 * linux-aarch64-low.cc (class aarch64_target)
1478 <low_breakpoint_at>: Declare.
1479 (aarch64_breakpoint_at): Turn into...
1480 (aarch64_target::low_breakpoint_at): ...this.
1481 (the_low_target): Remove the op field.
1482 * linux-arm-low.cc (class arm_target)
1483 <low_breakpoint_at>: Declare.
1484 (arm_target::low_breakpoint_at): Define.
1485 (the_low_target): Remove the op field.
1486 * linux-bfin-low.cc (class bfin_target)
1487 <low_breakpoint_at>: Declare.
1488 (bfin_breakpoint_at): Turn into...
1489 (bfin_target::low_breakpoint_at): ...this.
1490 (the_low_target): Remove the op field.
1491 * linux-cris-low.cc (class cris_target)
1492 <low_breakpoint_at>: Declare.
1493 (cris_breakpoint_at): Turn into...
1494 (cris_target::low_breakpoint_at): ...this.
1495 (the_low_target): Remove the op field.
1496 * linux-crisv32-low.cc (class crisv32_target)
1497 <low_breakpoint_at>: Declare.
1498 (crisv32_breakpoint_at): Turn into...
1499 (crisv32_target::low_breakpoint_at): ...this.
1500 (the_low_target): Remove the op field.
1501 * linux-ia64-low.cc (class ia64_target)
1502 <low_breakpoint_at>: Declare.
1503 (ia64_target::low_breakpoint_at): Define.
1504 * linux-m32r-low.cc (class m32r_target)
1505 <low_breakpoint_at>: Declare.
1506 (m32r_breakpoint_at): Turn into...
1507 (m32r_target::low_breakpoint_at): ...this.
1508 (the_low_target): Remove the op field.
1509 * linux-m68k-low.cc (class m68k_target)
1510 <low_breakpoint_at>: Declare.
1511 (m68k_breakpoint_at): Turn into...
1512 (m68k_target::low_breakpoint_at): ...this.
1513 (the_low_target): Remove the op field.
1514 * linux-mips-low.cc (class mips_target)
1515 <low_breakpoint_at>: Declare.
1516 (mips_breakpoint_at): Turn into...
1517 (mips_target::low_breakpoint_at): ...this.
1518 (the_low_target): Remove the op field.
1519 * linux-nios2-low.cc (class nios2_target)
1520 <low_breakpoint_at>: Declare.
1521 (nios2_breakpoint_at): Turn into...
1522 (nios2_target::low_breakpoint_at): ...this.
1523 (the_low_target): Remove the op field.
1524 * linux-ppc-low.cc (class ppc_target)
1525 <low_breakpoint_at>: Declare.
1526 (ppc_breakpoint_at): Turn into...
1527 (ppc_target::low_breakpoint_at): ...this.
1528 (the_low_target): Remove the op field.
1529 * linux-riscv-low.cc (class riscv_target)
1530 <low_breakpoint_at>: Declare.
1531 (riscv_breakpoint_at): Turn into...
1532 (riscv_target::low_breakpoint_at): ...this.
1533 (the_low_target): Remove the op field.
1534 * linux-s390-low.cc (class s390_target)
1535 <low_breakpoint_at>: Declare.
1536 (s390_breakpoint_at): Turn into...
1537 (s390_target::low_breakpoint_at): ...this.
1538 (the_low_target): Remove the op field.
1539 * linux-sh-low.cc (class sh_target)
1540 <low_breakpoint_at>: Declare.
1541 (sh_breakpoint_at): Turn into...
1542 (sh_target::low_breakpoint_at): ...this.
1543 (the_low_target): Remove the op field.
1544 * linux-sparc-low.cc (class sparc_target)
1545 <low_breakpoint_at>: Declare.
1546 (sparc_breakpoint_at): Turn into...
1547 (sparc_target::low_breakpoint_at): ...this.
1548 (the_low_target): Remove the op field.
1549 * linux-tic6x-low.cc (class tic6x_target)
1550 <low_breakpoint_at>: Declare.
1551 (tic6x_breakpoint_at): Turn into...
1552 (tic6x_target::low_breakpoint_at): ...this.
1553 (the_low_target): Remove the op field.
1554 * linux-tile-low.cc (class tile_target)
1555 <low_breakpoint_at>: Declare.
1556 (tile_breakpoint_at): Turn into...
1557 (tile_target::low_breakpoint_at): ...this.
1558 (the_low_target): Remove the op field.
1559 * linux-xtensa-low.cc (class xtensa_target)
1560 <low_breakpoint_at>: Declare.
1561 (xtensa_breakpoint_at): Turn into...
1562 (xtensa_target::low_breakpoint_at): ...this.
1563 (the_low_target): Remove the op field.
1564
d4807ea2
TBA
15652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1566
1567 Turn the 'decr_pc_after_break' linux_target_ops field into
1568 a method of linux_process_target.
1569
1570 * linux-low.h (struct linux_target_ops)
1571 <decr_pc_after_break>: Remove.
1572 (class linux_process_target) <low_decr_pc_after_break>: New method
1573 declaration.
1574 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1575 New method implementation.
1576
1577 Update the users below.
1578
1579 (linux_process_target::save_stop_reason)
1580 (linux_process_target::wait_1)
1581 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1582 New declaration.
1583 (x86_target::low_decr_pc_after_break): New method implementation.
1584 (the_low_target): Remove the field.
1585 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1586 New declaration.
1587 (bfin_target::low_decr_pc_after_break): New method implementation.
1588 (the_low_target): Remove the field.
1589 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1590 New declaration.
1591 (m68k_target::low_decr_pc_after_break): New method implementation.
1592 (the_low_target): Remove the field.
1593 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1594 New declaration.
1595 (s390_target::low_decr_pc_after_break): New method implementation.
1596 (the_low_target): Remove the field.
1597 * linux-aarch64-low.cc (the_low_target): Remove the field.
1598 * linux-arm-low.cc (the_low_target): Remove the field.
1599 * linux-cris-low.cc (the_low_target): Remove the field.
1600 * linux-crisv32-low.cc (the_low_target): Remove the field.
1601 * linux-m32r-low.cc (the_low_target): Remove the field.
1602 * linux-mips-low.cc (the_low_target): Remove the field.
1603 * linux-nios2-low.cc (the_low_target): Remove the field.
1604 * linux-ppc-low.cc (the_low_target): Remove the field.
1605 * linux-riscv-low.cc (the_low_target): Remove the field.
1606 * linux-sh-low.cc (the_low_target): Remove the field.
1607 * linux-sparc-low.cc (the_low_target): Remove the field.
1608 * linux-tic6x-low.cc (the_low_target): Remove the field.
1609 * linux-tile-low.cc (the_low_target): Remove the field.
1610 * linux-xtensa-low.cc (the_low_target): Remove the field.
1611
7582c77c
TBA
16122020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1613
1614 Remove the 'supports_software_single_step' linux target op and let
1615 the concrete linux target define it by overriding the op in
1616 process_stratum_target.
1617 Turn the 'get_next_pcs' linux target op into a method of
1618 linux_process_target.
1619
1620 * linux-low.h (struct linux_target_ops): Remove the ops.
1621 (class linux_process_target) <supports_software_single_step>:
1622 Remove.
1623 <low_get_next_pcs>: Declare.
1624 * linux-low.cc (can_software_single_step): Remove.
1625 (linux_process_target::low_get_next_pcs): Define.
1626 (linux_process_target::supports_software_single_step): Remove.
1627
1628 Update the callers below.
1629
1630 (linux_process_target::handle_extended_wait)
1631 (linux_process_target::wait_1)
1632 (linux_process_target::install_software_single_step_breakpoints)
1633 (linux_process_target::single_step)
1634 (linux_process_target::thread_needs_step_over)
1635 (linux_process_target::proceed_one_lwp)
1636 (linux_process_target::supports_range_stepping)
1637
1638 * linux-x86-low.cc (the_low_target): Remove the op field.
1639 * linux-aarch64-low.cc (the_low_target): Ditto.
1640 * linux-bfin-low.cc (the_low_target): Ditto.
1641 * linux-cris-low.cc (the_low_target): Ditto.
1642 * linux-crisv32-low.cc (the_low_target): Ditto.
1643 * linux-m32r-low.cc (the_low_target): Ditto.
1644 * linux-m68k-low.cc (the_low_target): Ditto.
1645 * linux-mips-low.cc (the_low_target): Ditto.
1646 * linux-nios2-low.cc (the_low_target): Ditto.
1647 * linux-ppc-low.cc (the_low_target): Ditto.
1648 * linux-riscv-low.cc (the_low_target): Ditto.
1649 * linux-s390-low.cc (the_low_target): Ditto.
1650 * linux-sh-low.cc (the_low_target): Ditto.
1651 * linux-sparc-low.cc (the_low_target): Ditto.
1652 * linux-tic6x-low.cc (the_low_target): Ditto.
1653 * linux-tile-low.cc (the_low_target): Ditto.
1654 * linux-xtensa-low.cc (the_low_target): Ditto.
1655 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1656 <supports_software_single_step>: Declare.
1657 (arm_target::supports_software_single_step): Define.
1658 (arm_gdbserver_get_next_pcs): Turn into...
1659 (arm_target::low_get_next_pcs): ...this.
1660 (the_low_target): Remove the op field.
1661
3ca4edb6
TBA
16622020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1663
1664 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1665 the concrete linux target define it by overriding the op
1666 in process_stratum_target.
1667
1668 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1669 Remove.
1670 * linux-low.h (struct linux_target_ops): Remove the op.
1671 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1672 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1673 Declare.
1674 (x86_sw_breakpoint_from_kind): Turn into...
1675 (x86_target::sw_breakpoint_from_kind): ...this.
1676 (the_low_target): Remove the op field.
1677 * linux-aarch64-low.cc (class aarch64_target)
1678 <sw_breakpoint_from_kind>: Declare.
1679 (aarch64_sw_breakpoint_from_kind): Turn into...
1680 (aarch64_target::sw_breakpoint_from_kind): ...this.
1681 (the_low_target): Remove the op field.
1682 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1683 Declare.
1684 (arm_target::sw_breakpoint_from_kind): Define.
1685 (the_low_target): Remove the op field.
1686 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1687 Declare.
1688 (bfin_sw_breakpoint_from_kind): Turn into...
1689 (bfin_target::sw_breakpoint_from_kind): ...this.
1690 (the_low_target): Remove the op field.
1691 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1692 Declare.
1693 (cris_sw_breakpoint_from_kind): Turn into...
1694 (cris_target::sw_breakpoint_from_kind): ...this.
1695 (the_low_target): Remove the op field.
1696 * linux-crisv32-low.cc (class crisv32_target)
1697 <sw_breakpoint_from_kind>: Declare.
1698 (cris_sw_breakpoint_from_kind): Turn into...
1699 (crisv32_target::sw_breakpoint_from_kind): ...this.
1700 (the_low_target): Remove the op field.
1701 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1702 Declare.
1703 (ia64_target::sw_breakpoint_from_kind): Define.
1704 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1705 Declare.
1706 (m32r_sw_breakpoint_from_kind): Turn into...
1707 (m32r_target::sw_breakpoint_from_kind): ...this.
1708 (the_low_target): Remove the op field.
1709 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1710 Declare.
1711 (m68k_sw_breakpoint_from_kind): Turn into...
1712 (m68k_target::sw_breakpoint_from_kind): ...this.
1713 (the_low_target): Remove the op field.
1714 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1715 Declare.
1716 (mips_sw_breakpoint_from_kind): Turn into...
1717 (mips_target::sw_breakpoint_from_kind): ...this.
1718 (the_low_target): Remove the op field.
1719 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1720 Declare.
1721 (nios2_sw_breakpoint_from_kind): Turn into...
1722 (nios2_target::sw_breakpoint_from_kind): ...this.
1723 (the_low_target): Remove the op field.
1724 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1725 Declare.
1726 (ppc_sw_breakpoint_from_kind): Turn into...
1727 (ppc_target::sw_breakpoint_from_kind): ...this.
1728 (the_low_target): Remove the op field.
1729 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1730 Declare.
1731 (riscv_sw_breakpoint_from_kind): Turn into...
1732 (riscv_target::sw_breakpoint_from_kind): ...this.
1733 (the_low_target): Remove the op field.
1734 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1735 Declare.
1736 (s390_sw_breakpoint_from_kind): Turn into...
1737 (s390_target::sw_breakpoint_from_kind): ...this.
1738 (the_low_target): Remove the op field.
1739 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1740 Declare.
1741 (sh_sw_breakpoint_from_kind): Turn into...
1742 (sh_target::sw_breakpoint_from_kind): ...this.
1743 (the_low_target): Remove the op field.
1744 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1745 Declare.
1746 (sparc_sw_breakpoint_from_kind): Turn into...
1747 (sparc_target::sw_breakpoint_from_kind): ...this.
1748 (the_low_target): Remove the op field.
1749 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1750 Declare.
1751 (tic6x_sw_breakpoint_from_kind): Turn into...
1752 (tic6x_target::sw_breakpoint_from_kind): ...this.
1753 (the_low_target): Remove the op field.
1754 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1755 Declare.
1756 (tile_sw_breakpoint_from_kind): Turn into...
1757 (tile_target::sw_breakpoint_from_kind): ...this.
1758 (the_low_target): Remove the op field.
1759 * linux-xtensa-low.cc (class xtensa_target)
1760 <sw_breakpoint_from_kind>: Declare.
1761 (xtensa_sw_breakpoint_from_kind): Turn into...
1762 (xtensa_target::sw_breakpoint_from_kind): ...this.
1763 (the_low_target): Remove the op field.
1764
06250e4e
TBA
17652020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1766
1767 Remove the 'breakpoint_kind_from_pc' and
1768 'breakpoint_kind_from_current_state' linux target ops, and let the
1769 concrete linux target define them by overriding the ops of
1770 process_stratum_target.
1771
1772 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1773 Remove.
1774 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1775 * linux-low.h (struct linux_target_ops): Remove ops.
1776 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1777 <breakpoint_kind_from_current_state>: Remove.
1778 * linux-x86-low.cc (the_low_target): Remove the op fields.
1779 * linux-bfin-low.cc (the_low_target): Ditto.
1780 * linux-cris-low.cc (the_low_target): Ditto.
1781 * linux-crisv32-low.cc (the_low_target): Ditto.
1782 * linux-m32r-low.cc (the_low_target): Ditto.
1783 * linux-m68k-low.cc (the_low_target): Ditto.
1784 * linux-mips-low.cc (the_low_target): Ditto.
1785 * linux-nios2-low.cc (the_low_target): Ditto.
1786 * linux-ppc-low.cc (the_low_target): Ditto.
1787 * linux-s390-low.cc (the_low_target): Ditto.
1788 * linux-sh-low.cc (the_low_target): Ditto.
1789 * linux-sparc-low.cc (the_low_target): Ditto.
1790 * linux-tic6x-low.cc (the_low_target): Ditto.
1791 * linux-tile-low.cc (the_low_target): Ditto.
1792 * linux-xtensa-low.cc (the_low_target): Ditto.
1793 * linux-aarch64-low.cc (class aarch64_target)
1794 <breakpoint_kind_from_pc>
1795 <breakpoint_kind_from_current_state>: Declare.
1796 (aarch64_breakpoint_kind_from_pc): Turn into...
1797 (aarch64_target::breakpoint_kind_from_pc): ...this.
1798 (aarch64_breakpoint_kind_from_current_state): Turn into...
1799 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1800 (the_low_target): Remove the op fields.
1801 * linux-arm-low.cc (class arm_target):
1802 <breakpoint_kind_from_pc>
1803 <breakpoint_kind_from_current_state>: Declare.
1804 (arm_target::breakpoint_kind_from_pc): Define.
1805 (arm_target::breakpoint_kind_from_current_state): Define.
1806 (the_low_target): Remove the op fields.
1807 * linux-riscv-low.cc (class riscv_target):
1808 <breakpoint_kind_from_pc>: Declare.
1809 (riscv_breakpoint_kind_from_pc): Turn into...
1810 (riscv_target::breakpoint_kind_from_pc): ...this.
1811 (the_low_target): Remove the op fields.
1812
bf9ae9d8
TBA
18132020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1814
1815 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1816 of linux_process_target.
1817
1818 * linux-low.h (struct linux_target_ops): Remove the ops.
1819 (class linux_process_target) <low_supports_breakpoints>
1820 <low_get_pc>
1821 <low_set_pc>: Declare.
1822 * linux-low.cc (supports_breakpoints): Turn into...
1823 (linux_process_target::low_supports_breakpoints): ...this.
1824 (linux_process_target::low_get_pc): Define.
1825 (linux_process_target::low_set_pc): Define.
1826
1827 Update the callers below.
1828
1829 (linux_process_target::get_pc)
1830 (linux_process_target::save_stop_reason)
1831 (linux_process_target::maybe_move_out_of_jump_pad)
1832 (linux_process_target::wait_1)
1833 (linux_process_target::resume_one_lwp_throw)
1834 (linux_process_target::resume)
1835 (linux_process_target::proceed_all_lwps)
1836 (linux_process_target::read_pc)
1837 (linux_process_target::write_pc)
1838
1839 * linux-x86-low.cc (class linux_process_target)
1840 <low_supports_breakpoints>
1841 <low_get_pc>
1842 <low_set_pc>: Declare.
1843 (x86_target::low_supports_breakpoints): Define.
1844 (x86_get_pc): Turn into...
1845 (x86_target::low_get_pc): ...this.
1846 (x86_set_pc): Turn into...
1847 (x86_target::low_set_pc): ...this.
1848 (the_low_target): Remove the op fields.
1849 * linux-arm-low.cc (class arm_target)
1850 <low_supports_breakpoints>
1851 <low_get_pc>
1852 <low_set_pc>: Declare.
1853 (arm_target::low_supports_breakpoints)
1854 (arm_target::low_get_pc)
1855 (arm_target::low_set_pc): Define.
1856 (the_low_target): Remove the op fields.
1857 * linux-bfin-low.cc (class bfin_target)
1858 <low_supports_breakpoints>
1859 <low_get_pc>
1860 <low_set_pc>: Declare.
1861 (bfin_target::low_supports_breakpoints)
1862 (bfin_target::low_get_pc)
1863 (bfin_target::low_set_pc): Define.
1864 (the_low_target): Remove the op fields.
1865 * linux-cris-low.cc (class cris_target)
1866 <low_supports_breakpoints>
1867 <low_get_pc>
1868 <low_set_pc>: Declare.
1869 (cris_target::low_supports_breakpoints)
1870 (cris_target::low_get_pc)
1871 (cris_target::low_set_pc): Define.
1872 (the_low_target): Remove the op fields.
1873 * linux-crisv32-low.cc (class crisv32_target)
1874 <low_supports_breakpoints>
1875 <low_get_pc>
1876 <low_set_pc>: Declare.
1877 (crisv32_target::low_supports_breakpoints)
1878 (crisv32_target::low_get_pc)
1879 (crisv32_target::low_set_pc): Define.
1880 (the_low_target): Remove the op fields.
1881 * linux-m32r-low.cc (class m32r_target)
1882 <low_supports_breakpoints>
1883 <low_get_pc>
1884 <low_set_pc>: Declare.
1885 (m32r_target::low_supports_breakpoints)
1886 (m32r_target::low_get_pc)
1887 (m32r_target::low_set_pc): Define.
1888 (the_low_target): Remove the op fields.
1889 * linux-m68k-low.cc (class m68k_target)
1890 <low_supports_breakpoints>
1891 <low_get_pc>
1892 <low_set_pc>: Declare.
1893 (m68k_target::low_supports_breakpoints)
1894 (m68k_target::low_get_pc)
1895 (m68k_target::low_set_pc): Define.
1896 (the_low_target): Remove the op fields.
1897 * linux-nios2-low.cc (class nios2_target)
1898 <low_supports_breakpoints>
1899 <low_get_pc>
1900 <low_set_pc>: Declare.
1901 (nios2_target::low_supports_breakpoints)
1902 (nios2_target::low_get_pc)
1903 (nios2_target::low_set_pc): Define.
1904 (the_low_target): Remove the op fields.
1905 * linux-sh-low.cc (class sh_target)
1906 <low_supports_breakpoints>
1907 <low_get_pc>
1908 <low_set_pc>: Declare.
1909 (sh_target::low_supports_breakpoints)
1910 (sh_target::low_get_pc)
1911 (sh_target::low_set_pc): Define.
1912 (the_low_target): Remove the op fields.
1913 * linux-xtensa-low.cc (class xtensa_target)
1914 <low_supports_breakpoints>
1915 <low_get_pc>
1916 <low_set_pc>: Declare.
1917 (xtensa_target::low_supports_breakpoints)
1918 (xtensa_target::low_get_pc)
1919 (xtensa_target::low_set_pc): Define.
1920 (the_low_target): Remove the op fields.
1921 * linux-sparc-low.cc (class sparc_target)
1922 <low_supports_breakpoints>
1923 <low_get_pc>: Declare.
1924 (sparc_target::low_supports_breakpoints)
1925 (sparc_target::low_get_pc): Define.
1926 (the_low_target): Remove the op fields.
1927 * linux-tile-low.cc (class tile_target)
1928 <low_supports_breakpoints>
1929 <low_get_pc>
1930 <low_set_pc>: Declare.
1931 (tile_target::low_supports_breakpoints)
1932 (tile_target::low_get_pc)
1933 (tile_target::low_set_pc): Define.
1934 (the_low_target): Remove the op fields.
1935 * linux-aarch64-low.cc (class aarch64_target)
1936 <low_supports_breakpoints>
1937 <low_get_pc>
1938 <low_set_pc>: Declare.
1939 (aarch64_target::low_supports_breakpoints): Define.
1940 (aarch64_get_pc): Turn into...
1941 (aarch64_target::low_get_pc): ...this.
1942 (aarch64_set_pc): Turn into...
1943 (aarch64_target::low_set_pc): ...this.
1944 (the_low_target): Remove the op fields.
1945 * linux-mips-low.cc (class mips_target)
1946 <low_supports_breakpoints>
1947 <low_get_pc>
1948 <low_set_pc>: Declare.
1949 (mips_target::low_supports_breakpoints): Define.
1950 (mips_get_pc): Turn into...
1951 (mips_target::low_get_pc): ...this.
1952 (mips_set_pc): Turn into...
1953 (mips_target::low_set_pc): ...this.
1954 (the_low_target): Remove the op fields.
1955 * linux-ppc-low.cc (class ppc_target)
1956 <low_supports_breakpoints>
1957 <low_get_pc>
1958 <low_set_pc>: Declare.
1959 (ppc_target::low_supports_breakpoints): Define.
1960 (ppc_get_pc): Turn into...
1961 (ppc_target::low_get_pc): ...this.
1962 (ppc_set_pc): Turn into...
1963 (ppc_target::low_set_pc): ...this.
1964 (the_low_target): Remove the op fields.
1965 * linux-riscv-low.cc (class riscv_target)
1966 <low_supports_breakpoints>
1967 <low_get_pc>
1968 <low_set_pc>: Declare.
1969 (riscv_target::low_supports_breakpoints): Define.
1970 (riscv_get_pc): Turn into...
1971 (riscv_target::low_get_pc): ...this.
1972 (riscv_set_pc): Turn into...
1973 (riscv_target::low_set_pc): ...this.
1974 (the_low_target): Remove the op fields.
1975 * linux-s390-low.cc (class s390_target)
1976 <low_supports_breakpoints>
1977 <low_get_pc>
1978 <low_set_pc>: Declare.
1979 (s390_target::low_supports_breakpoints): Define.
1980 (s390_get_pc): Turn into...
1981 (s390_target::low_get_pc): ...this.
1982 (s390_set_pc): Turn into...
1983 (s390_target::low_set_pc): ...this.
1984 (the_low_target): Remove the op fields.
1985 * linux-tic6x-low.cc (class tic6x_target)
1986 <low_supports_breakpoints>
1987 <low_get_pc>
1988 <low_set_pc>: Declare.
1989 (tic6x_target::low_supports_breakpoints): Define.
1990 (tic6x_get_pc): Turn into...
1991 (tic6x_target::low_get_pc): ...this.
1992 (tic6x_set_pc): Turn into...
1993 (tic6x_target::low_set_pc): ...this.
1994 (the_low_target): Remove the op fields.
1995
df95181f
TBA
19962020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1997
1998 Turn some more static methods in linux-low into private methods
1999 of linux_process_target.
2000
2001 * linux-low.cc (get_pc): Turn into...
2002 (linux_process_target::get_pc): ...this.
2003 (save_stop_reason): Turn into...
2004 (linux_process_target::save_stop_reason): ...this.
2005 (thread_still_has_status_pending_p): Turn into...
2006 (linux_process_target::thread_still_has_status_pending): ...this.
2007 (status_pending_p_callback): Turn into...
2008 (linux_process_target::status_pending_p_callback): ...this.
2009 (resume_stopped_resumed_lwps): Turn into...
2010 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2011 (install_software_single_step_breakpoints): Turn into...
2012 (linux_process_target::install_software_single_step_breakpoints):
2013 ...this.
2014 (single_step): Turn into...
2015 (linux_process_target::single_step): ...this.
2016 (linux_resume_one_lwp_throw): Turn into...
2017 (linux_process_target::resume_one_lwp_throw): ...this.
2018 (linux_resume_one_lwp): Turn into...
2019 (linux_process_target::resume_one_lwp): ...this.
2020 (resume_status_pending_p): Turn into...
2021 (linux_process_target::resume_status_pending): ...this.
2022 (need_step_over_p): Turn into...
2023 (linux_process_target::thread_needs_step_over): ...this.
2024 (linux_resume_one_thread): Turn into...
2025 (linux_process_target::resume_one_thread): ...this.
2026 (proceed_one_lwp): Turn into...
2027 (linux_process_target::proceed_one_lwp): ...this.
2028 (unsuspend_and_proceed_one_lwp): Turn into...
2029 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2030
2031 Update the calls/references to the above functions below.
2032
2033 (linux_process_target::handle_extended_wait)
2034 (linux_process_target::filter_event)
2035 (linux_process_target::wait_for_event_filtered)
2036 (linux_process_target::wait_1)
2037 (linux_process_target::move_out_of_jump_pad)
2038 (linux_process_target::start_step_over)
2039 (linux_process_target::resume)
2040 (linux_process_target::proceed_all_lwps)
2041 (regsets_store_inferior_registers)
2042 (linux_process_target::store_register)
2043
2044 * linux-low.h (class linux_process_target)
2045 <get_pc>
2046 <save_stop_reason>
2047 <thread_still_has_status_pending>
2048 <status_pending_p_callback>
2049 <resume_stopped_resumed_lwps>
2050 <install_software_single_step_breakpoints>
2051 <single_step>
2052 <resume_one_lwp_throw>
2053 <resume_one_lwp>
2054 <resume_status_pending>
2055 <thread_needs_step_over>
2056 <resume_one_thread>
2057 <proceed_one_lwp>
2058 <unsuspend_and_proceed_one_lwp>: Declare.
2059
bd70b1f2
TBA
20602020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2061
2062 Turn the 'fetch_register' linux target op into a method of
2063 linux_process_target.
2064
2065 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2066 (class linux_process_target) <low_fetch_register>: Declare.
2067 * linux-x86-low.cc (the_low_target)
2068 * linux-aarch64-low.cc (the_low_target)
2069 * linux-arm-low.cc (the_low_target)
2070 * linux-bfin-low.cc (the_low_target)
2071 * linux-cris-low.cc (the_low_target)
2072 * linux-crisv32-low.cc (the_low_target)
2073 * linux-m32r-low.cc (the_low_target)
2074 * linux-m68k-low.cc (the_low_target)
2075 * linux-nios2-low.cc (the_low_target)
2076 * linux-ppc-low.cc (the_low_target)
2077 * linux-s390-low.cc (the_low_target)
2078 * linux-sh-low.cc (the_low_target)
2079 * linux-sparc-low.cc (the_low_target)
2080 * linux-tic6x-low.cc (the_low_target)
2081 * linux-tile-low.cc (the_low_target)
2082 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2083 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2084 Declare.
2085 (ia64_fetch_register): Turn into...
2086 (ia64_target::low_fetch_register): ...this.
2087 (the_low_target): Remove the op field.
2088 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2089 Declare.
2090 (mips_fetch_register): Turn into...
2091 (mips_target::low_fetch_register): ...this.
2092 (the_low_target): Remove the op field.
2093 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2094 Declare.
2095 (riscv_fetch_register): Turn into...
2096 (riscv_target::low_fetch_register): ...this.
2097 (the_low_target): Remove the op field.
2098
2099 Update the callers below.
2100
2101 * linux-low.cc (linux_process_target::fetch_registers)
2102 (linux_process_target::low_fetch_register)
2103
daca57a7
TBA
21042020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2105
2106 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2107 linux target ops into methods of linux_process_target.
2108
2109 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2110 (class linux_process_target) <fetch_register>
2111 <store_register>
2112 <usr_fetch_inferior_registers>
2113 <usr_store_inferior_registers>
2114 <low_cannot_fetch_register>
2115 <low_cannot_fetch_register> Declare.
2116 * linux-low.cc (fetch_register): Turn into...
2117 (linux_process_target::fetch_register): ...this.
2118 (store_register): Turn into ...
2119 (linux_process_target::store_register): ...this.
2120 (usr_fetch_inferior_registers): Turn into...
2121 (linux_process_target::usr_fetch_inferior_registers): ...this.
2122 (usr_store_inferior_registers): Turn into...
2123 (linux_process_target::usr_store_inferior_registers): ...this.
2124 * linux-x86-low.cc (class x86_target)
2125 <low_cannot_fetch_register>
2126 <low_cannot_store_register>: Declare.
2127 (x86_cannot_store_register): Turn into...
2128 (x86_target::low_cannot_store_register): ...this.
2129 (x86_cannot_fetch_register): Turn into...
2130 (x86_target::low_cannot_fetch_register): ...this.
2131 (the_low_target): Remove the target op fields.
2132 * linux-aarch64-low.cc (class aarch64_target)
2133 <low_cannot_fetch_register>
2134 <low_cannot_store_register>: Declare.
2135 (aarch64_target::low_cannot_fetch_register)
2136 (aarch64_target::low_cannot_store_register): Define.
2137 (the_low_target): Remove the op fields.
2138 * linux-arm-low.cc (class arm_target)
2139 <low_cannot_fetch_register>
2140 <low_cannot_store_register>: Declare.
2141 (arm_cannot_fetch_register): Turn into...
2142 (arm_target::low_cannot_fetch_register): ...this.
2143 (arm_cannot_store_register): Turn into...
2144 (arm_target::low_cannot_store_register): ...this.
2145 (the_low_target): Remove the op fields.
2146 * linux-bfin-low.cc (class bfin_target)
2147 <low_cannot_fetch_register>
2148 <low_cannot_store_register>: Declare.
2149 (bfin_cannot_fetch_register): Turn into...
2150 (bfin_target::low_cannot_fetch_register): ...this.
2151 (bfin_cannot_store_register): Turn into...
2152 (bfin_target::low_cannot_store_register): ...this.
2153 (the_low_target): Remove the op fields.
2154 * linux-cris-low.cc (class cris_target)
2155 <low_cannot_fetch_register>
2156 <low_cannot_store_register>: Declare.
2157 (cris_cannot_fetch_register): Turn into...
2158 (cris_target::low_cannot_fetch_register): ...this.
2159 (cris_cannot_store_register): Turn into...
2160 (cris_target::low_cannot_store_register): ...this.
2161 (the_low_target): Remove the op fields.
2162 * linux-crisv32-low.cc (class crisv32_target)
2163 <low_cannot_fetch_register>
2164 <low_cannot_store_register>: Declare.
2165 (crisv32_target::low_cannot_fetch_register)
2166 (crisv32_target::low_cannot_store_register): Define.
2167 (the_low_target): Remove the op fields.
2168 * linux-ia64-low.cc (class ia64_target)
2169 <low_cannot_fetch_register>
2170 <low_cannot_store_register>: Declare.
2171 (ia64_cannot_fetch_register): Turn into...
2172 (ia64_target::low_cannot_fetch_register): ...this.
2173 (ia64_cannot_store_register): Turn into...
2174 (ia64_target::low_cannot_store_register): ...this.
2175 (the_low_target): Remove the op fields.
2176 * linux-m32r-low.cc (class m32r_target)
2177 <low_cannot_fetch_register>
2178 <low_cannot_store_register>: Declare.
2179 (m32r_cannot_fetch_register): Turn into...
2180 (m32r_target::low_cannot_fetch_register): ...this.
2181 (m32r_cannot_store_register): Turn into...
2182 (m32r_target::low_cannot_store_register): ...this.
2183 (the_low_target): Remove the op fields.
2184 * linux-m68k-low.cc (class m68k_target)
2185 <low_cannot_fetch_register>
2186 <low_cannot_store_register>: Declare.
2187 (m68k_cannot_fetch_register): Turn into...
2188 (m68k_target::low_cannot_fetch_register): ...this.
2189 (m68k_cannot_store_register): Turn into...
2190 (m68k_target::low_cannot_store_register): ...this.
2191 (the_low_target): Remove the op fields.
2192 * linux-mips-low.cc (class mips_target)
2193 <low_cannot_fetch_register>
2194 <low_cannot_store_register>: Declare.
2195 (mips_cannot_fetch_register): Turn into...
2196 (mips_target::low_cannot_fetch_register): ...this.
2197 (mips_cannot_store_register): Turn into...
2198 (mips_target::low_cannot_store_register): ...this.
2199 (get_usrregs_info): Inline at the call sites in
2200 low_cannot_fetch_register and low_cannot_store_register,
2201 and remove.
2202 (the_low_target): Remove the op fields.
2203 * linux-nios2-low.cc (class nios2_target)
2204 <low_cannot_fetch_register>
2205 <low_cannot_store_register>: Declare.
2206 (nios2_cannot_fetch_register): Turn into...
2207 (nios2_target::low_cannot_fetch_register): ...this.
2208 (nios2_cannot_store_register): Turn into...
2209 (nios2_target::low_cannot_store_register): ...this.
2210 (the_low_target): Remove the op fields.
2211 * linux-ppc-low.cc (class ppc_target)
2212 <low_cannot_fetch_register>
2213 <low_cannot_store_register>: Declare.
2214 (ppc_cannot_fetch_register): Turn into...
2215 (ppc_target::low_cannot_fetch_register): ...this.
2216 (ppc_cannot_store_register): Turn into...
2217 (ppc_target::low_cannot_store_register): ...this.
2218 (the_low_target): Remove the op fields.
2219 * linux-riscv-low.cc (class riscv_target)
2220 <low_cannot_fetch_register>
2221 <low_cannot_store_register>: Declare.
2222 (riscv_target::low_cannot_fetch_register)
2223 (riscv_target::low_cannot_store_register): Define.
2224 (the_low_target): Remove the op fields.
2225 * linux-s390-low.cc (class s390_target)
2226 <low_cannot_fetch_register>
2227 <low_cannot_store_register>: Declare.
2228 (s390_cannot_fetch_register): Turn into...
2229 (s390_target::low_cannot_fetch_register): ...this.
2230 (s390_cannot_store_register): Turn into...
2231 (s390_target::low_cannot_store_register): ...this.
2232 (the_low_target): Remove the op fields.
2233 * linux-sh-low.cc (class sh_target)
2234 <low_cannot_fetch_register>
2235 <low_cannot_store_register>: Declare.
2236 (sh_cannot_fetch_register): Turn into...
2237 (sh_target::low_cannot_fetch_register): ...this.
2238 (sh_cannot_store_register): Turn into...
2239 (sh_target::low_cannot_store_register): ...this.
2240 (the_low_target): Remove the op fields.
2241 * linux-sparc-low.cc (class sparc_target)
2242 <low_cannot_fetch_register>
2243 <low_cannot_store_register>: Declare.
2244 (sparc_cannot_fetch_register): Turn into...
2245 (sparc_target::low_cannot_fetch_register): ...this.
2246 (sparc_cannot_store_register): Turn into...
2247 (sparc_target::low_cannot_store_register): ...this.
2248 (the_low_target): Remove the op fields.
2249 * linux-tic6x-low.cc (class tic6x_target)
2250 <low_cannot_fetch_register>
2251 <low_cannot_store_register>: Declare.
2252 (tic6x_cannot_fetch_register): Turn into...
2253 (tic6x_target::low_cannot_fetch_register): ...this.
2254 (tic6x_cannot_store_register): Turn into...
2255 (tic6x_target::low_cannot_store_register): ...this.
2256 (the_low_target): Remove the op fields.
2257 * linux-tile-low.cc (class tile_target)
2258 <low_cannot_fetch_register>
2259 <low_cannot_store_register>: Declare.
2260 (tile_cannot_fetch_register): Turn into...
2261 (tile_target::low_cannot_fetch_register): ...this.
2262 (tile_cannot_store_register): Turn into...
2263 (tile_target::low_cannot_store_register): ...this.
2264 (the_low_target): Remove the op fields.
2265 * linux-xtensa-low.cc (class xtensa_target)
2266 <low_cannot_fetch_register>
2267 <low_cannot_store_register>: Declare.
2268 (xtensa_target::low_cannot_fetch_register)
2269 (xtensa_target::low_cannot_store_register): Define.
2270 (the_low_target): Remove the op fields.
2271
aa8d21c9
TBA
22722020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2273
2274 Turn the 'regs_info' linux target op into a method of
2275 linux_process_target.
2276
2277 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2278 (class linux_process_target) <get_regs_info>: Define.
2279
2280 Update the callers below.
2281
2282 * linux-low.cc (linux_process_target::fetch_registers)
2283 (linux_process_target::store_registers)
2284 * proc-service.cc (gregset_info)
2285
2286 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2287 (x86_linux_regs_info): Turn into ...
2288 (x86_target::get_regs_info): ...this.
2289 (the_low_target): Remove the op field.
2290 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2291 Declare.
2292 (aarch64_regs_info): Turn into ...
2293 (aarch64_target::get_regs_info): ...this.
2294 (the_low_target): Remove the op field.
2295 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2296 (arm_regs_info): Turn into ...
2297 (arm_target::get_regs_info): ...this.
2298 (the_low_target): Remove the op field.
2299 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2300 (bfin_regs_info): Turn into ...
2301 (bfin_target::get_regs_info): ...this.
2302 (the_low_target): Remove the op field.
2303 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2304 (cris_regs_info): Turn into ...
2305 (cris_target::get_regs_info): ...this.
2306 (the_low_target): Remove the op field.
2307 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2308 Declare.
2309 (crisv32_regs_info): Turn into ...
2310 (crisv32_target::get_regs_info): ...this.
2311 (the_low_target): Remove the op field.
2312 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2313 (ia64_regs_info): Turn into ...
2314 (ia64_target::get_regs_info): ...this.
2315 (the_low_target): Remove the op field.
2316 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2317 (m32r_regs_info): Turn into ...
2318 (m32r_target::get_regs_info): ...this.
2319 (the_low_target): Remove the op field.
2320 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2321 (m68k_regs_info): Turn into ...
2322 (m68k_target::get_regs_info): ...this.
2323 (the_low_target): Remove the op field.
2324 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2325 (mips_regs_info): Turn into ...
2326 (mips_target::get_regs_info): ...this.
2327 (the_low_target): Remove the op field.
2328 (get_usrregs_info): Update the call to the op.
2329 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2330 (nios2_regs_info): Turn into ...
2331 (nios2_target::get_regs_info): ...this.
2332 (the_low_target): Remove the op field.
2333 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2334 (ppc_regs_info): Turn into ...
2335 (ppc_target::get_regs_info): ...this.
2336 (the_low_target): Remove the op field.
2337 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2338 (riscv_regs_info): Turn into ...
2339 (riscv_target::get_regs_info): ...this.
2340 (the_low_target): Remove the op field.
2341 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2342 (s390_regs_info): Turn into ...
2343 (s390_target::get_regs_info): ...this.
2344 (the_low_target): Remove the op field.
2345 (s390_collect_ptrace_register)
2346 (s390_supply_ptrace_register)
2347 (s390_fill_gregset): Update the call to the op.
2348 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2349 (sh_regs_info): Turn into ...
2350 (sh_target::get_regs_info): ...this.
2351 (the_low_target): Remove the op field.
2352 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2353 (sparc_regs_info): Turn into ...
2354 (sparc_target::get_regs_info): ...this.
2355 (the_low_target): Remove the op field.
2356 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2357 (tic6x_regs_info): Turn into ...
2358 (tic6x_target::get_regs_info): ...this.
2359 (the_low_target): Remove the op field.
2360 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2361 (tile_regs_info): Turn into ...
2362 (tile_target::get_regs_info): ...this.
2363 (the_low_target): Remove the op field.
2364 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2365 Declare.
2366 (xtensa_regs_info): Turn into ...
2367 (xtensa_target::get_regs_info): ...this.
2368 (the_low_target): Remove the op field.
2369
797bcff5
TBA
23702020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2371
2372 Turn the 'arch_setup' linux target op into a method of
2373 linux_process_target.
2374
2375 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2376 (class linux_process_target) <arch_setup_thread>
2377 <low_arch_setup>: New declarations.
2378 * linux-low.cc (linux_arch_setup): Delete.
2379 (linux_arch_setup_thread): Turn into...
2380 (linux_process_target::arch_setup_thread): ... this.
2381
2382 Update the callers below.
2383
2384 (linux_process_target::handle_extended_wait)
2385 (linux_process_target::post_create_inferior)
2386 (linux_process_target::filter_event)
2387
2388 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2389 declaration.
2390 (x86_linux_update_xmltarget): Turn into...
2391 (x86_target::update_xmltarget): ...this.
2392 (x86_linux_process_qsupported): Update the call to
2393 x86_linux_update_xmltarget.
2394 (x86_arch_setup): Turn into ...
2395 (x86_target::low_arch_setup): ...this.
2396 (the_low_target): Remove the op field.
2397 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2398 declaration.
2399 (aarch64_arch_setup): Turn into ...
2400 (aarch64_target::low_arch_setup): ...this.
2401 (the_low_target): Remove the op field.
2402 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2403 declaration.
2404 (arm_arch_setup): Turn into ...
2405 (arm_target::low_arch_setup): ...this.
2406 (the_low_target): Remove the op field.
2407 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2408 declaration.
2409 (bfin_arch_setup): Turn into ...
2410 (bfin_target::low_arch_setup): ...this.
2411 (the_low_target): Remove the op field.
2412 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2413 declaration.
2414 (cris_arch_setup): Turn into ...
2415 (cris_target::low_arch_setup): ...this.
2416 (the_low_target): Remove the op field.
2417 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2418 declaration.
2419 (crisv32_arch_setup): Turn into ...
2420 (crisv32_target::low_arch_setup): ...this.
2421 (the_low_target): Remove the op field.
2422 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2423 declaration.
2424 (ia64_arch_setup): Turn into ...
2425 (ia64_target::low_arch_setup): ...this.
2426 (the_low_target): Remove the op field.
2427 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2428 declaration.
2429 (m32r_arch_setup): Turn into ...
2430 (m32r_target::low_arch_setup): ...this.
2431 (the_low_target): Remove the op field.
2432 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2433 declaration.
2434 (m68k_arch_setup): Turn into ...
2435 (m68k_target::low_arch_setup): ...this.
2436 (the_low_target): Remove the op field.
2437 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2438 declaration.
2439 (mips_arch_setup): Turn into ...
2440 (mips_target::low_arch_setup): ...this.
2441 (the_low_target): Remove the op field.
2442 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2443 declaration.
2444 (nios2_arch_setup): Turn into ...
2445 (nios2_target::low_arch_setup): ...this.
2446 (the_low_target): Remove the op field.
2447 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2448 declaration.
2449 (ppc_arch_setup): Turn into ...
2450 (ppc_target::low_arch_setup): ...this.
2451 (the_low_target): Remove the op field.
2452 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2453 declaration.
2454 (riscv_arch_setup): Turn into ...
2455 (riscv_target::low_arch_setup): ...this.
2456 (the_low_target): Remove the op field.
2457 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2458 declaration.
2459 (s390_arch_setup): Turn into ...
2460 (s390_target::low_arch_setup): ...this.
2461 (the_low_target): Remove the op field.
2462 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2463 declaration.
2464 (sh_arch_setup): Turn into ...
2465 (sh_target::low_arch_setup): ...this.
2466 (the_low_target): Remove the op field.
2467 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2468 declaration.
2469 (sparc_arch_setup): Turn into ...
2470 (sparc_target::low_arch_setup): ...this.
2471 (the_low_target): Remove the op field.
2472 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2473 declaration.
2474 (tic6x_arch_setup): Turn into ...
2475 (tic6x_target::low_arch_setup): ...this.
2476 (the_low_target): Remove the op field.
2477 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2478 declaration.
2479 (tile_arch_setup): Turn into ...
2480 (tile_target::low_arch_setup): ...this.
2481 (the_low_target): Remove the op field.
2482 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2483 declaration.
2484 (xtensa_arch_setup): Turn into ...
2485 (xtensa_target::low_arch_setup): ...this.
2486 (the_low_target): Remove the op field.
2487
ef0478f6
TBA
24882020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2489
2490 * linux-low.h (the_linux_target): New extern declaration.
2491 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2492 'the_target'.
2493 (the_linux_target): Remove.
2494 * linux-x86-low.cc (class x86_target): New class.
2495 (the_x86_target): New static object.
2496 (the_linux_target): Define as pointer to the_x86_target.
2497 * linux-aarch64-low.cc (class aarch64_target): New class.
2498 (the_aarch64_target): New static object.
2499 (the_linux_target): Define as pointer to the_aarch64_target.
2500 * linux-arm-low.cc (class arm_target): New class.
2501 (the_arm_target): New static object.
2502 (the_linux_target): Define as pointer to the_arm_target.
2503 * linux-bfin-low.cc (class bfin_target): New class.
2504 (the_bfin_target): New static object.
2505 (the_linux_target): Define as pointer to the_bfin_target.
2506 * linux-cris-low.cc (class cris_target): New class.
2507 (the_cris_target): New static object.
2508 (the_linux_target): Define as pointer to the_cris_target.
2509 * linux-crisv32-low.cc (class crisv32_target): New class.
2510 (the_crisv32_target): New static object.
2511 (the_linux_target): Define as pointer to the_crisv32_target.
2512 * linux-ia64-low.cc (class ia64_target): New class.
2513 (the_ia64_target): New static object.
2514 (the_linux_target): Define as pointer to the_ia64_target.
2515 * linux-m32r-low.cc (class m32r_target): New class.
2516 (the_m32r_target): New static object.
2517 (the_linux_target): Define as pointer to the_m32r_target.
2518 * linux-m68k-low.cc (class m68k_target): New class.
2519 (the_m68k_target): New static object.
2520 (the_linux_target): Define as pointer to the_m68k_target.
2521 * linux-mips-low.cc (class mips_target): New class.
2522 (the_mips_target): New static object.
2523 (the_linux_target): Define as pointer to the_mips_target.
2524 * linux-nios2-low.cc (class nios2_target): New class.
2525 (the_nios2_target): New static object.
2526 (the_linux_target): Define as pointer to the_nios2_target.
2527 * linux-ppc-low.cc (class ppc_target): New class.
2528 (the_ppc_target): New static object.
2529 (the_linux_target): Define as pointer to the_ppc_target.
2530 * linux-riscv-low.cc (class riscv_target): New class.
2531 (the_riscv_target): New static object.
2532 (the_linux_target): Define as pointer to the_riscv_target.
2533 * linux-s390-low.cc (class s390_target): New class.
2534 (the_s390_target): New static object.
2535 (the_linux_target): Define as pointer to the_s390_target.
2536 * linux-sh-low.cc (class sh_target): New class.
2537 (the_sh_target): New static object.
2538 (the_linux_target): Define as pointer to the_sh_target.
2539 * linux-sparc-low.cc (class sparc_target): New class.
2540 (the_sparc_target): New static object.
2541 (the_linux_target): Define as pointer to the_sparc_target.
2542 * linux-tic6x-low.cc (class tic6x_target): New class.
2543 (the_tic6x_target): New static object.
2544 (the_linux_target): Define as pointer to the_tic6x_target.
2545 * linux-tile-low.cc (class tile_target): New class.
2546 (the_tile_target): New static object.
2547 (the_linux_target): Define as pointer to the_tile_target.
2548 * linux-xtensa-low.cc (class xtensa_target): New class.
2549 (the_xtensa_target): New static object.
2550 (the_linux_target): Define as pointer to the_xtensa_target.
2551
d16f3f6c
TBA
25522020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2553
2554 Turn some static functions in linux-low.cc into private methods of
2555 linux_process_target.
2556
2557 * linux-low.cc (handle_extended_wait): Turn into ...
2558 (linux_process_target::handle_extended_wait): ...this. Call
2559 'mourn' on 'this' object instead of 'the_target'.
2560 (maybe_move_out_of_jump_pad): Turn into...
2561 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2562 (linux_low_filter_event): Turn into...
2563 (linux_process_target::filter_event): ...this.
2564 (linux_wait_for_event_filtered): Turn into...
2565 (linux_process_target::wait_for_event_filtered): ...this.
2566 (linux_wait_for_event): Turn into...
2567 (linux_process_target::wait_for_event): ...this.
2568 (linux_wait_1): Turn into...
2569 (linux_process_target::wait_1): ...this.
2570 (wait_for_sigstop): Turn into...
2571 (linux_process_target::wait_for_sigstop): ...this.
2572 (move_out_of_jump_pad_callback): Turn into...
2573 (linux_process_target::move_out_of_jump_pad): ...this.
2574 (stop_all_lwps): Turn into...
2575 (linux_process_target::stop_all_lwps): ...this.
2576 (start_step_over): Turn into...
2577 (linux_process_target::start_step_over): ...this.
2578 (complete_ongoing_step_over): Turn into...
2579 (linux_process_target::complete_ongoing_step_over): ...this.
2580 (proceed_all_lwps): Turn into...
2581 (linux_process_target::proceed_all_lwps): ...this.
2582 (unstop_all_lwps): Turn into...
2583 (linux_process_target::unstop_all_lwps): ...this.
2584
2585 * linux-low.h (class linux_process_target)
2586 <handle_extended_wait>
2587 <maybe_move_out_of_jump_pad>
2588 filter_event>
2589 <wait_for_event_filtered>
2590 <wait_for_event>
2591 <wait_1>
2592 <wait_for_sigstop>
2593 <move_out_of_jump_pad>
2594 <stop_all_lwps>
2595 <start_step_over>
2596 <complete_ongoing_step_over>
2597 <proceed_all_lwps>
2598 <unstop_all_lwps>: Declare.
2599
2600 Update the callers below.
2601
2602 * linux-low.cc (linux_process_target::attach): Update.
2603 (linux_process_target::stabilize_threads): Ditto.
2604 (linux_process_target::wait): Ditto.
2605
a5863204
TBA
26062020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2607
2608 * linux-low.h (struct linux_target_ops): Update the comment for
2609 'cannot_store_register' to return 0 or 1.
2610 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2611 of 2.
2612
c884cc46
SM
26132020-03-20 Simon Marchi <simon.marchi@efficios.com>
2614
2615 * config.in: Re-generate.
2616 * configure: Re-generate.
2617
5a82b8a1
KR
26182020-03-17 Kamil Rytarowski <n54@gmx.com>
2619
2620 * regcache.cc (find_register_by_number): Update.
2621 * tdesc.cc (init_target_desc): Likewise.
2622 * tdesc.h (target_desc::reg_defs): Likewise.
2623
4635ff97
TT
26242020-03-12 Tom Tromey <tom@tromey.com>
2625
2626 * configure: Rebuild.
2627 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2628 (WIN32APILIBS): New subst.
2629 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2630 gdbsupport files.
2631 (gdbsupport/%.o): Remove target.
2632 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2633 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2634 (WIN32APILIBS): New variable.
2635 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2636 (gdbreplay$(EXEEXT)): Likewise.
2637
9a665d62
TT
26382020-03-12 Tom Tromey <tom@tromey.com>
2639
2640 * config.in, configure: Rebuild.
2641 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2642 * acinclude.m4: Include gettext-sister.m4.
2643 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2644 variables.
2645 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2646 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2647
272cd5a3
SM
26482020-03-12 Simon Marchi <simon.marchi@efficios.com>
2649
2650 * acinclude.m4: Update path to selftest.m4.
2651
db6878ac
SM
26522020-03-12 Simon Marchi <simon.marchi@efficios.com>
2653
2654 * configure.ac: Don't source bfd/development.sh, move
2655 GDB_AC_COMMON higher.
2656 * configure: Re-generate.
2657
4d696a5c
SM
26582020-03-12 Simon Marchi <simon.marchi@efficios.com>
2659
2660 * configure: Re-generate.
2661
a0761e34
SM
26622020-03-11 Simon Marchi <simon.marchi@efficios.com>
2663
2664 * configure: Re-generate.
2665
20ea4a60
AB
26662020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * .dir-locals.el: New file.
2669
842806cb
TBA
26702020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2671
2672 * .gitattributes: New file.
2673
442131c1
AB
26742020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2675
2676 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2677 reply into an S reply.
2678 * server.cc (disable_packet_T): New global.
2679 (captured_main): Set new global when appropriate.
2680 * server.h (disable_packet_T): Declare.
2681
dda42c0b
TT
26822020-02-21 Tom Tromey <tom@tromey.com>
2683
2684 * Makefile.in (mostlyclean): New target.
2685
52405d85
TBA
26862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2687
2688 * target.h (struct process_stratum_target): Remove.
2689 (class process_target): Rename to ...
2690 (class process_stratum_target): ... this.
2691 * linux-low.h (class linux_process_target): Derive from
2692 'process_stratum_target'.
2693 * linux-low.cc (linux_target_ops): Remove.
2694 (initialize_low): Set the_target to the singleton instance of
2695 linux_process_target.
2696 * lynx-low.h (class lynx_process_target): Derive from
2697 'process_stratum_target'.
2698 * lynx-low.cc (lynx_target_ops): Remove.
2699 (initialize_low): Set the_target to the singleton instance of
2700 lynx_process_target.
2701 * nto-low.h (class nto_process_target): Derive from
2702 'process_stratum_target'.
2703 * nto-low.cc (nto_target_ops): Remove.
2704 (initialize_low): Set the_target to the singleton instance of
2705 nto_process_target.
2706 * win32-low.h (class win32_process_target): Derive from
2707 'process_stratum_target'.
2708 * win32-low.cc (win32_target_ops): Remove.
2709 (initialize_low): Set the_target to the singleton instance of
2710 win32_process_target.
2711
2712 Replace 'the_target->pt' with 'the_target' in the uses below.
2713
2714 * hostio.cc (hostio_error)
2715 (handle_setfs)
2716 (handle_open)
2717 (handle_unlink)
2718 (handle_readlink)
2719 * linux-aarch32-low.cc (arm_breakpoint_at)
2720 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2721 * linux-arm-low.cc (arm_sigreturn_next_pc)
2722 (arm_get_hwcap)
2723 (arm_get_syscall_trapinfo)
2724 * linux-cris-low.cc (cris_breakpoint_at)
2725 * linux-crisv32-low.cc (cris_breakpoint_at)
2726 * linux-low.cc (handle_extended_wait)
2727 (linux_wait_1)
2728 (linux_read_memory)
2729 (linux_process_target::breakpoint_kind_from_pc)
2730 (linux_get_auxv)
2731 * linux-m32r-low.cc (m32r_breakpoint_at)
2732 * linux-mips-low.cc (mips_breakpoint_at)
2733 * linux-nios2-low.cc (nios2_breakpoint_at)
2734 * linux-ppc-low.cc (ppc_breakpoint_at)
2735 * linux-s390-low.cc (s390_get_hwcap)
2736 * linux-sh-low.cc (sh_breakpoint_at)
2737 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2738 (sparc_store_gregset_from_stack)
2739 (sparc_breakpoint_at)
2740 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2741 * linux-tile-low.cc (tile_breakpoint_at)
2742 * linux-x86-low.cc (x86_breakpoint_at)
2743 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2744 * mem-break.cc (bp_size)
2745 (bp_opcode)
2746 (insert_memory_breakpoint)
2747 (set_raw_breakpoint_at)
2748 (delete_raw_breakpoint)
2749 (z_type_supported)
2750 (uninsert_raw_breakpoint)
2751 (reinsert_raw_breakpoint)
2752 (validate_inserted_breakpoint)
2753 * regcache.cc (regcache_read_pc)
2754 (regcache_write_pc)
2755 * remote-utils.cc (putpkt_binary_1)
2756 (input_interrupt)
2757 (getpkt)
2758 (prepare_resume_reply)
2759 * server.cc (handle_general_set)
2760 (handle_detach)
2761 (handle_qxfer_auxv)
2762 (handle_qxfer_exec_file)
2763 (handle_qxfer_libraries_svr4)
2764 (handle_qxfer_osdata)
2765 (handle_qxfer_siginfo)
2766 (handle_qxfer_fdpic)
2767 (handle_query)
2768 (resume)
2769 (handle_v_requests)
2770 (queue_stop_reply_callback)
2771 (captured_main)
2772 * target.cc (prepare_to_access_memory)
2773 (done_accessing_memory)
2774 (read_inferior_memory)
2775 (target_write_memory)
2776 (target_stop_and_wait)
2777 (target_wait)
2778 (target_mourn_inferior)
2779 (target_continue_no_signal)
2780 (target_continue)
2781 (target_supports_multi_process)
2782 (kill_inferior)
2783 * target.h
2784 (target_create_inferior)
2785 (target_post_create_inferior)
2786 (myattach)
2787 (target_supports_fork_events)
2788 (target_supports_vfork_events)
2789 (target_supports_exec_events)
2790 (target_handle_new_gdb_connection)
2791 (detach_inferior)
2792 (mythread_alive)
2793 (fetch_inferior_registers)
2794 (store_inferior_registers)
2795 (join_inferior)
2796 (target_supports_non_stop)
2797 (target_async)
2798 (target_process_qsupported)
2799 (target_supports_catch_syscall)
2800 (target_get_ipa_tdesc_idx)
2801 (target_supports_tracepoints)
2802 (target_supports_fast_tracepoints)
2803 (target_get_min_fast_tracepoint_insn_len)
2804 (target_thread_stopped)
2805 (target_pause_all)
2806 (target_unpause_all)
2807 (target_stabilize_threads)
2808 (target_install_fast_tracepoint_jump_pad)
2809 (target_emit_ops)
2810 (target_supports_disable_randomization)
2811 (target_supports_agent)
2812 (target_enable_btrace)
2813 (target_disable_btrace)
2814 (target_read_btrace)
2815 (target_read_btrace_conf)
2816 (target_supports_range_stepping)
2817 (target_supports_stopped_by_sw_breakpoint)
2818 (target_stopped_by_sw_breakpoint)
2819 (target_supports_stopped_by_hw_breakpoint)
2820 (target_supports_hardware_single_step)
2821 (target_stopped_by_hw_breakpoint)
2822 (target_breakpoint_kind_from_pc)
2823 (target_breakpoint_kind_from_current_state)
2824 (target_supports_software_single_step)
2825 (target_core_of_thread)
2826 (target_thread_name)
2827 (target_thread_handle)
2828 * win32-low.cc (do_initial_child_stuff)
2829
2830 Rename target op default definitions listed below.
2831
2832 * target.cc (process_target::post_create_inferior): Rename as ...
2833 (process_stratum_target::post_create_inferior): ... this.
2834 (process_target::prepare_to_access_memory): Rename as ...
2835 (process_stratum_target::prepare_to_access_memory): ... this.
2836 (process_target::done_accessing_memory): Rename as ...
2837 (process_stratum_target::done_accessing_memory): ... this.
2838 (process_target::look_up_symbols): Rename as ...
2839 (process_stratum_target::look_up_symbols): ... this.
2840 (process_target::supports_read_auxv): Rename as ...
2841 (process_stratum_target::supports_read_auxv): ... this.
2842 (process_target::read_auxv): Rename as ...
2843 (process_stratum_target::read_auxv): ... this.
2844 (process_target::supports_z_point_type): Rename as ...
2845 (process_stratum_target::supports_z_point_type): ... this.
2846 (process_target::insert_point): Rename as ...
2847 (process_stratum_target::insert_point): ... this.
2848 (process_target::remove_point): Rename as ...
2849 (process_stratum_target::remove_point): ... this.
2850 (process_target::stopped_by_sw_breakpoint): Rename as ...
2851 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2852 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2853 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2854 (process_target::stopped_by_hw_breakpoint): Rename as ...
2855 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2856 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2857 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2858 (process_target::supports_hardware_single_step): Rename as ...
2859 (process_stratum_target::supports_hardware_single_step): ... this.
2860 (process_target::stopped_by_watchpoint): Rename as ...
2861 (process_stratum_target::stopped_by_watchpoint): ... this.
2862 (process_target::stopped_data_address): Rename as ...
2863 (process_stratum_target::stopped_data_address): ... this.
2864 (process_target::supports_read_offsets): Rename as ...
2865 (process_stratum_target::supports_read_offsets): ... this.
2866 (process_target::read_offsets): Rename as ...
2867 (process_stratum_target::read_offsets): ... this.
2868 (process_target::supports_get_tls_address): Rename as ...
2869 (process_stratum_target::supports_get_tls_address): ... this.
2870 (process_target::get_tls_address): Rename as ...
2871 (process_stratum_target::get_tls_address): ... this.
2872 (process_target::hostio_last_error): Rename as ...
2873 (process_stratum_target::hostio_last_error): ... this.
2874 (process_target::supports_qxfer_osdata): Rename as ...
2875 (process_stratum_target::supports_qxfer_osdata): ... this.
2876 (process_target::qxfer_osdata): Rename as ...
2877 (process_stratum_target::qxfer_osdata): ... this.
2878 (process_target::supports_qxfer_siginfo): Rename as ...
2879 (process_stratum_target::supports_qxfer_siginfo): ... this.
2880 (process_target::qxfer_siginfo): Rename as ...
2881 (process_stratum_target::qxfer_siginfo): ... this.
2882 (process_target::supports_non_stop): Rename as ...
2883 (process_stratum_target::supports_non_stop): ... this.
2884 (process_target::async): Rename as ...
2885 (process_stratum_target::async): ... this.
2886 (process_target::start_non_stop): Rename as ...
2887 (process_stratum_target::start_non_stop): ... this.
2888 (process_target::supports_multi_process): Rename as ...
2889 (process_stratum_target::supports_multi_process): ... this.
2890 (process_target::supports_fork_events): Rename as ...
2891 (process_stratum_target::supports_fork_events): ... this.
2892 (process_target::supports_vfork_events): Rename as ...
2893 (process_stratum_target::supports_vfork_events): ... this.
2894 (process_target::supports_exec_events): Rename as ...
2895 (process_stratum_target::supports_exec_events): ... this.
2896 (process_target::handle_new_gdb_connection): Rename as ...
2897 (process_stratum_target::handle_new_gdb_connection): ... this.
2898 (process_target::handle_monitor_command): Rename as ...
2899 (process_stratum_target::handle_monitor_command): ... this.
2900 (process_target::core_of_thread): Rename as ...
2901 (process_stratum_target::core_of_thread): ... this.
2902 (process_target::supports_read_loadmap): Rename as ...
2903 (process_stratum_target::supports_read_loadmap): ... this.
2904 (process_target::read_loadmap): Rename as ...
2905 (process_stratum_target::read_loadmap): ... this.
2906 (process_target::process_qsupported): Rename as ...
2907 (process_stratum_target::process_qsupported): ... this.
2908 (process_target::supports_tracepoints): Rename as ...
2909 (process_stratum_target::supports_tracepoints): ... this.
2910 (process_target::read_pc): Rename as ...
2911 (process_stratum_target::read_pc): ... this.
2912 (process_target::write_pc): Rename as ...
2913 (process_stratum_target::write_pc): ... this.
2914 (process_target::supports_thread_stopped): Rename as ...
2915 (process_stratum_target::supports_thread_stopped): ... this.
2916 (process_target::thread_stopped): Rename as ...
2917 (process_stratum_target::thread_stopped): ... this.
2918 (process_target::supports_get_tib_address): Rename as ...
2919 (process_stratum_target::supports_get_tib_address): ... this.
2920 (process_target::get_tib_address): Rename as ...
2921 (process_stratum_target::get_tib_address): ... this.
2922 (process_target::pause_all): Rename as ...
2923 (process_stratum_target::pause_all): ... this.
2924 (process_target::unpause_all): Rename as ...
2925 (process_stratum_target::unpause_all): ... this.
2926 (process_target::stabilize_threads): Rename as ...
2927 (process_stratum_target::stabilize_threads): ... this.
2928 (process_target::supports_fast_tracepoints): Rename as ...
2929 (process_stratum_target::supports_fast_tracepoints): ... this.
2930 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2931 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2932 (process_target::emit_ops): Rename as ...
2933 (process_stratum_target::emit_ops): ... this.
2934 (process_target::supports_disable_randomization): Rename as ...
2935 (process_stratum_target::supports_disable_randomization): ... this.
2936 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2937 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2938 (process_target::qxfer_libraries_svr4): Rename as ...
2939 (process_stratum_target::qxfer_libraries_svr4): ... this.
2940 (process_target::supports_agent): Rename as ...
2941 (process_stratum_target::supports_agent): ... this.
2942 (process_target::enable_btrace): Rename as ...
2943 (process_stratum_target::enable_btrace): ... this.
2944 (process_target::disable_btrace): Rename as ...
2945 (process_stratum_target::disable_btrace): ... this.
2946 (process_target::read_btrace): Rename as ...
2947 (process_stratum_target::read_btrace): ... this.
2948 (process_target::read_btrace_conf): Rename as ...
2949 (process_stratum_target::read_btrace_conf): ... this.
2950 (process_target::supports_range_stepping): Rename as ...
2951 (process_stratum_target::supports_range_stepping): ... this.
2952 (process_target::supports_pid_to_exec_file): Rename as ...
2953 (process_stratum_target::supports_pid_to_exec_file): ... this.
2954 (process_target::pid_to_exec_file): Rename as ...
2955 (process_stratum_target::pid_to_exec_file): ... this.
2956 (process_target::supports_multifs): Rename as ...
2957 (process_stratum_target::supports_multifs): ... this.
2958 (process_target::multifs_open): Rename as ...
2959 (process_stratum_target::multifs_open): ... this.
2960 (process_target::multifs_unlink): Rename as ...
2961 (process_stratum_target::multifs_unlink): ... this.
2962 (process_target::multifs_readlink): Rename as ...
2963 (process_stratum_target::multifs_readlink): ... this.
2964 (process_target::breakpoint_kind_from_pc): Rename as ...
2965 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2966 (process_target::breakpoint_kind_from_current_state): Rename as ...
2967 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2968 (process_target::thread_name): Rename as ...
2969 (process_stratum_target::thread_name): ... this.
2970 (process_target::thread_handle): Rename as ...
2971 (process_stratum_target::thread_handle): ... this.
2972 (process_target::supports_software_single_step): Rename as ...
2973 (process_stratum_target::supports_software_single_step): ... this.
2974 (process_target::supports_catch_syscall): Rename as ...
2975 (process_stratum_target::supports_catch_syscall): ... this.
2976 (process_target::get_ipa_tdesc_idx): Rename as ...
2977 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2978
478f9adf
PA
29792020-02-20 Pedro Alves <palves@redhat.com>
2980
2981 * target.cc (set_target_ops): Simply copy the given target pointer
2982 instead of creating a copy of the pointed object.
2983
d633e831
TBA
29842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2985
2986 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2987 of process_target.
2988
2989 * target.h (struct process_stratum_target): Remove the target op.
2990 (class process_target): Add the target op.
2991 (target_get_ipa_tdesc_idx): Update the macro.
2992 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2993
2994 Update the derived classes and callers below.
2995
2996 * linux-low.cc (linux_target_ops): Update.
2997 (linux_get_ipa_tdesc_idx): Turn into ...
2998 (linux_process_target::get_ipa_tdesc_idx): ... this.
2999 * linux-low.h (class linux_process_target): Update.
3000 * lynx-low.cc (lynx_target_ops): Update.
3001 * nto-low.cc (nto_target_ops): Update.
3002 * win32-low.cc (win32_target_ops): Update.
3003
bc8d3ae4
TBA
30042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3005
3006 Turn process_stratum_target's supports_catch_syscall op into a
3007 method of process_target.
3008
3009 * target.h (struct process_stratum_target): Remove the target op.
3010 (class process_target): Add the target op.
3011 (target_supports_catch_syscall): Update the macro.
3012 * target.cc (process_target::supports_catch_syscall): Define.
3013
3014 Update the derived classes and callers below.
3015
3016 * linux-low.cc (linux_target_ops): Update.
3017 (linux_supports_catch_syscall): Turn into ...
3018 (linux_process_target::supports_catch_syscall): ... this.
3019 * linux-low.h (class linux_process_target): Update.
3020 * lynx-low.cc (lynx_target_ops): Update.
3021 * nto-low.cc (nto_target_ops): Update.
3022 * win32-low.cc (win32_target_ops): Update.
3023
5303a34f
TBA
30242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3025
3026 Turn process_stratum_target's supports_software_single_step op
3027 into a method of process_target.
3028
3029 * target.h (struct process_stratum_target): Remove the target op.
3030 (class process_target): Add the target op.
3031 (target_supports_software_single_step): Update the macro.
3032 * target.cc (process_target::supports_software_single_step): Define.
3033
3034 Update the derived classes and callers below.
3035
3036 * linux-low.cc (linux_target_ops): Update.
3037 (linux_supports_software_single_step): Turn into ...
3038 (linux_process_target::supports_software_single_step): ... this.
3039 * linux-low.h (class linux_process_target): Update.
3040 * lynx-low.cc (lynx_target_ops): Update.
3041 * nto-low.cc (nto_target_ops): Update.
3042 * win32-low.cc (win32_target_ops): Update.
3043
7f63b89b
TBA
30442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3045
3046 Turn process_stratum_target's thread_name and thread_handle ops
3047 into methods of process_target.
3048
3049 * target.h (struct process_stratum_target): Remove the target ops.
3050 (class process_target): Add the target ops.
3051 (target_thread_name): Update the macro.
3052 (target_thread_handle): Update the macro.
3053 * target.cc (process_target::thread_name): Define.
3054 (process_target::thread_handle): Define.
3055
3056 Update the derived classes and callers below.
3057
3058 * linux-low.cc (linux_target_ops): Update.
3059 (linux_process_target::thread_name): Define.
3060 (linux_process_target::thread_handle): Define.
3061 * linux-low.h (class linux_process_target): Update.
3062 * lynx-low.cc (lynx_target_ops): Update.
3063 * nto-low.cc (nto_target_ops): Update.
3064 * win32-low.cc (win32_target_ops): Update.
3065
d367006f
TBA
30662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3067
3068 Turn process_stratum_target's breakpoint_kind_from_pc,
3069 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3070 ops into methods of process_target.
3071
3072 * target.h (struct process_stratum_target): Remove the target op.
3073 (class process_target): Add the target op.
3074 (target_breakpoint_kind_from_pc): Update the macro.
3075 (target_breakpoint_kind_from_current_state): Update the macro.
3076 (default_breakpoint_kind_from_pc): Remove declaration.
3077 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3078 (process_target::breakpoint_kind_from_pc): ... this.
3079 (process_target::breakpoint_kind_from_current_state): Define.
3080
3081 Update the derived classes and callers below.
3082
3083 * mem-break.cc (bp_size): Update.
3084 (bp_opcode): Update.
3085 * linux-low.cc (linux_target_ops): Update.
3086 (linux_wait_1): Update.
3087 (linux_breakpoint_kind_from_pc): Turn into ...
3088 (linux_process_target::breakpoint_kind_from_pc): ... this.
3089 (linux_sw_breakpoint_from_kind): Turn into ...
3090 (linux_process_target::sw_breakpoint_from_kind): ... this.
3091 (linux_breakpoint_kind_from_current_state): Turn into ...
3092 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3093 * linux-low.h (class linux_process_target): Update.
3094 * lynx-low.cc (lynx_target_ops): Update.
3095 (lynx_process_target::sw_breakpoint_from_kind): Define.
3096 * lynx-low.h (class lynx_process_target): Update.
3097 * nto-low.cc (nto_target_ops): Update.
3098 (nto_sw_breakpoint_from_kind): Turn into ...
3099 (nto_process_target::sw_breakpoint_from_kind): ... this.
3100 * nto-low.h (class nto_process_target): Update.
3101 * win32-low.cc (win32_target_ops): Update.
3102 (win32_sw_breakpoint_from_kind): Turn into ...
3103 (win32_process_target::sw_breakpoint_from_kind): ... this.
3104 * win32-low.h (class win32_process_target): Update.
3105
c9b7b804
TBA
31062020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3107
3108 Turn process_stratum_target's multifs_open, multifs_readlink,
3109 multifs_unlink ops into methods of process_target.
3110
3111 * target.h (struct process_stratum_target): Remove the target ops.
3112 (class process_target): Add the target ops. Also add
3113 'supports_multifs'.
3114 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3115 "sys/stat.h".
3116 (process_target::supports_multifs): Define.
3117 (process_target::multifs_open): Define.
3118 (process_target::multifs_readlink): Define.
3119 (process_target::multifs_unlink): Define.
3120
3121 Update the derived classes and callers below.
3122
3123 * hostio.cc (handle_setfs): Update.
3124 (handle_open): Update.
3125 (handle_unlink): Update.
3126 (handle_readlink): Update.
3127 * linux-low.cc (linux_target_ops): Update.
3128 (linux_process_target::supports_multifs): Define.
3129 (linux_process_target::multifs_open): Define.
3130 (linux_process_target::multifs_readlink): Define.
3131 (linux_process_target::multifs_unlink): Define.
3132 * linux-low.h (class linux_process_target): Update.
3133 * lynx-low.cc (lynx_target_ops): Update.
3134 * nto-low.cc (nto_target_ops): Update.
3135 * win32-low.cc (win32_target_ops): Update.
3136
8247b823
TBA
31372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3138
3139 Turn process_stratum_target's pid_to_exec_file op into a method
3140 of process_target.
3141
3142 * target.h (struct process_stratum_target): Remove the target op.
3143 (class process_target): Add the target op. Also add
3144 'supports_pid_to_exec_file'.
3145 * target.cc (process_target::pid_to_exec_file): Define.
3146 (process_target::supports_pid_to_exec_file): Define.
3147
3148 Update the derived classes and callers below.
3149
3150 * server.cc (handle_qxfer_exec_file): Update.
3151 (handle_query): Update.
3152 * linux-low.cc (linux_target_ops): Update.
3153 (linux_process_target::supports_pid_to_exec_file): Define.
3154 (linux_process_target::pid_to_exec_file): Define.
3155 * linux-low.h (class linux_process_target): Update.
3156 * lynx-low.cc (lynx_target_ops): Update.
3157 * nto-low.cc (nto_target_ops): Update.
3158 * win32-low.cc (win32_target_ops): Update.
3159
2526e0cd
TBA
31602020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3161
3162 Turn process_stratum_target's supports_range_stepping op into a
3163 method of process_target.
3164
3165 * target.h (struct process_stratum_target): Remove the target op.
3166 (class process_target): Add the target op.
3167 (target_supports_range_stepping): Update the macro.
3168 * target.cc (process_target::supports_range_stepping): Define.
3169
3170 Update the derived classes and callers below.
3171
3172 * linux-low.cc (linux_target_ops): Update.
3173 (linux_supports_range_stepping): Turn into ...
3174 (linux_process_target::supports_range_stepping): ... this.
3175 * linux-low.h (class linux_process_target): Update.
3176 * lynx-low.cc (lynx_target_ops): Update.
3177 * nto-low.cc (nto_target_ops): Update.
3178 * win32-low.cc (win32_target_ops): Update.
3179
79597bdd
TBA
31802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3181
3182 Turn process_stratum_target's btrace-related ops (enable_btrace,
3183 disable_btrace, read_btrace, read_btrace_conf) into methods of
3184 process_target.
3185
3186 * target.h (struct process_stratum_target): Remove the target ops.
3187 (class process_target): Add the target ops.
3188 (target_enable_btrace): Update.
3189 (target_disable_btrace): Update.
3190 (target_read_btrace): Update.
3191 (target_read_btrace_conf): Update.
3192 * target.cc (process_target::enable_btrace): Define.
3193 (process_target::disable_btrace): Define.
3194 (process_target::read_btrace): Define.
3195 (process_target::read_btrace_conf): Define.
3196
3197 Update the derived classes and callers below.
3198
3199 * linux-low.cc (linux_target_ops): Update.
3200 (linux_process_target:enable_btrace): Define as a wrapper around
3201 linux_enable_btrace.
3202 (linux_low_disable_btrace): Turn into ...
3203 (linux_process_target::disable_btrace): ... this.
3204 (linux_low_read_btrace): Turn into ...
3205 (linux_process_target::read_btrace): ... this.
3206 (linux_low_btrace_conf): Turn into ...
3207 (linux_process_target::read_btrace_conf): ... this.
3208 * linux-low.h (class linux_process_target): Update.
3209 * lynx-low.cc (lynx_target_ops): Update.
3210 * nto-low.cc (nto_target_ops): Update.
3211 * win32-low.cc (win32_target_ops): Update.
3212
c0245cb9
TBA
32132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3214
3215 Turn process_stratum_target's supports_agent op into a method of
3216 process_target.
3217
3218 * target.h (struct process_stratum_target): Remove the target op.
3219 (class process_target): Add the target op.
3220 (target_supports_agent): Update the macro.
3221 * target.cc (process_target::supports_agent): Define.
3222
3223 Update the derived classes and callers below.
3224
3225 * linux-low.cc (linux_target_ops): Update.
3226 (linux_supports_agent): Turn into ...
3227 (linux_process_target::supports_agent): ... this.
3228 * linux-low.h (class linux_process_target): Update.
3229 * lynx-low.cc (lynx_target_ops): Update.
3230 * nto-low.cc (nto_target_ops): Update.
3231 * win32-low.cc (win32_target_ops): Update.
3232
974387bb
TBA
32332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3234
3235 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3236 method of process_target.
3237
3238 * target.h (struct process_stratum_target): Remove the target op.
3239 (class process_target): Add the target op. Also add
3240 'supports_qxfer_libraries_svr4'.
3241 * target.cc (process_target::qxfer_libraries_svr4): Define.
3242 (process_target::supports_qxfer_libraries_svr4): Define.
3243
3244 Update the derived classes and callers below.
3245
3246 * server.cc (handle_qxfer_libraries_svr4): Update.
3247 (handle_query): Update.
3248 * linux-low.cc (linux_target_ops): Update.
3249 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3250 (linux_qxfer_libraries_svr4): Turn into ...
3251 (linux_process_target::qxfer_libraries_svr4): ... this.
3252 * linux-low.h (class linux_process_target): Update.
3253 * lynx-low.cc (lynx_target_ops): Update.
3254 * nto-low.cc (nto_target_ops): Update.
3255 * win32-low.cc (win32_target_ops): Update.
3256
c756403b
TBA
32572020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3258
3259 Turn process_stratum_target's supports_disable_randomization op
3260 into a method of process_target.
3261
3262 * target.h (struct process_stratum_target): Remove the target op.
3263 (class process_target): Add the target op.
3264 (target_supports_disable_randomization): Update the macro.
3265 * target.cc (process_target::supports_disable_randomization): Define.
3266
3267 Update the derived classes and callers below.
3268
3269 * linux-low.cc (linux_target_ops): Update.
3270 (linux_supports_disable_randomization): Turn into ...
3271 (linux_process_target::supports_disable_randomization): ... this.
3272 * linux-low.h (class linux_process_target): Update.
3273 * lynx-low.cc (lynx_target_ops): Update.
3274 * nto-low.cc (nto_target_ops): Update.
3275 * win32-low.cc (win32_target_ops): Update.
3276
345dafad
TBA
32772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3278
3279 Turn process_stratum_target's emit_ops op into a method of
3280 process_target.
3281
3282 * target.h (struct process_stratum_target): Remove the target op.
3283 (class process_target): Add the target op.
3284 (target_emit_ops): Update the macro.
3285 * target.cc (process_target::emit_ops): Define.
3286
3287 Update the derived classes and callers below.
3288
3289 * linux-low.cc (linux_target_ops): Update.
3290 (linux_emit_ops): Turn into ...
3291 (linux_process_target::emit_ops): ... this.
3292 * linux-low.h (class linux_process_target): Update.
3293 * lynx-low.cc (lynx_target_ops): Update.
3294 * nto-low.cc (nto_target_ops): Update.
3295 * win32-low.cc (win32_target_ops): Update.
3296
c23c9391
TBA
32972020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3298
3299 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3300 and get_min_fast_tracepoint_insn_len ops into methods of
3301 process_target.
3302
3303 * target.h (struct process_stratum_target): Remove the target ops.
3304 (class process_target): Add the target ops. Also add
3305 'supports_fast_tracepoints'.
3306 (target_supports_fast_tracepoints): Update the macro.
3307 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3308 (install_fast_tracepoint_jump_pad): Update and rename the macro
3309 to ...
3310 (target_install_fast_tracepoint_jump_pad): ... this.
3311 * target.cc (process_target::supports_fast_tracepoints): Define.
3312 (process_target::install_fast_tracepoint_jump_pad): Define.
3313 (process_target::get_min_fast_tracepoint_insn_len): Define.
3314
3315 Update the derived classes and callers below.
3316
3317 * tracepoint.cc (install_fast_tracepoint): Update.
3318 * linux-low.cc (linux_target_ops): Update.
3319 (linux_process_target::supports_fast_tracepoints): Define.
3320 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3321 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3322 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3323 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3324 * linux-low.h (class linux_process_target): Update.
3325 * lynx-low.cc (lynx_target_ops): Update.
3326 * nto-low.cc (nto_target_ops): Update.
3327 * win32-low.cc (win32_target_ops): Update.
3328
5c9eb2f2
TBA
33292020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3330
3331 Turn process_stratum_target's stabilize_threads op into a
3332 method of process_target.
3333
3334 * target.h (struct process_stratum_target): Remove the target op.
3335 (class process_target): Add the target op.
3336 (target_stabilize_threads): Update the macro.
3337 * target.cc (process_target::stabilize_threads): Define.
3338
3339 Update the derived classes and callers below.
3340
3341 * server.cc (handle_status): Update.
3342 * tracepoint.cc (cmd_qtdp): Update.
3343 (cmd_qtstart): Update.
3344 * linux-low.cc (linux_target_ops): Update.
3345 (linux_stabilize_threads): Turn into ...
3346 (linux_process_target::stabilize_threads): ... this.
3347 (linux_wait_1): Update.
3348 * linux-low.h (class linux_process_target): Update.
3349 * lynx-low.cc (lynx_target_ops): Update.
3350 * nto-low.cc (nto_target_ops): Update.
3351 * win32-low.cc (win32_target_ops): Update.
3352
29e8dc09
TBA
33532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3354
3355 Turn process_stratum_target's pause_all and unpause_all ops
3356 into methods of process_target.
3357
3358 * target.h (struct process_stratum_target): Remove the target ops.
3359 (class process_target): Add the target ops.
3360 (pause_all): Update the macro and rename to...
3361 (target_pause_all): ... this.
3362 (unpause_all): Update the macro and rename to...
3363 (target_unpause_all): ... this.
3364 * target.cc (process_target::pause_all): Define.
3365 (process_target::unpause_all): Define.
3366
3367 Update the derived classes and callers below.
3368
3369 * server.cc (handle_status): Update.
3370 * tracepoint.cc (clear_installed_tracepoints): Update.
3371 (cmd_qtdp): Update.
3372 (cmd_qtstart): Update.
3373 (stop_tracing): Update.
3374 (cmd_qtstatus): Update.
3375 (upload_fast_traceframes): Update.
3376 (run_inferior_command): Update.
3377 * linux-low.cc (linux_target_ops): Update.
3378 (linux_pause_all): Turn into ...
3379 (linux_process_target::pause_all): ... this.
3380 (linux_unpause_all): Turn into ...
3381 (linux_process_target::unpause_all): ... this.
3382 (linux_process_target::prepare_to_access_memory): Update.
3383 (linux_process_target::done_accessing_memory): Update.
3384 * linux-low.h (class linux_process_target): Update.
3385 * lynx-low.cc (lynx_target_ops): Update.
3386 * nto-low.cc (nto_target_ops): Update.
3387 * win32-low.cc (win32_target_ops): Update.
3388
4e2e869c
TBA
33892020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3390
3391 Turn process_stratum_target's get_tib_address op into a method of
3392 process_target.
3393
3394 * target.h (struct process_stratum_target): Remove the target op.
3395 (class process_target): Add the target op. Also add
3396 'supports_get_tib_address'.
3397 * target.cc (process_target::get_tib_address): Define.
3398 (process_target::supports_get_tib_address): Define.
3399
3400 Update the derived classes and callers below.
3401
3402 * server.cc (handle_query): Update.
3403 * linux-low.cc (win32_target_ops): Update.
3404 * lynx-low.cc (lynx_target_ops): Update.
3405 * nto-low.cc (nto_target_ops): Update.
3406 * win32-low.cc (win32_target_ops): Update.
3407 (win32_process_target::supports_get_tib_address): Define.
3408 (win32_get_tib_address): Turn into ...
3409 (win32_process_target::get_tib_address): ... this.
3410 * win32-low.h (class win32_process_target): Update.
3411
68119632
TBA
34122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3413
3414 Turn process_stratum_target's thread_stopped op into a method of
3415 process_target.
3416
3417 * target.h (struct process_stratum_target): Remove the target op.
3418 (class process_target): Add the target op. Also add
3419 'supports_thread_stopped'.
3420 (target_thread_stopped): Update the macro.
3421 * target.cc (process_target::thread_stopped): Define.
3422 (process_target::supports_thread_stopped): Define.
3423 (prepare_to_access_memory): Update.
3424
3425 Update the derived classes and callers below.
3426
3427 * server.cc (queue_stop_reply_callback): Update.
3428 * linux-low.cc (linux_target_ops): Update.
3429 (linux_process_target::supports_thread_stopped): Define.
3430 (linux_thread_stopped): Turn into ...
3431 (linux_process_target::thread_stopped): ... this.
3432 * linux-low.h (class linux_process_target): Update.
3433 * lynx-low.cc (lynx_target_ops): Update.
3434 * nto-low.cc (nto_target_ops): Update.
3435 * win32-low.cc (win32_target_ops): Update.
3436
770d8f6a
TBA
34372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3438
3439 Turn process_stratum_target's read_pc and write_pc ops into
3440 methods of process_target.
3441
3442 * target.h (struct process_stratum_target): Remove the target ops.
3443 (class process_target): Add the target ops.
3444 * target.cc (process_target::read_pc): Define.
3445 (process_target::write_pc): Define.
3446
3447 Update the derived classes and callers below.
3448
3449 * regcache.cc (regcache_read_pc): Update.
3450 (regcache_write_pc): Update.
3451 * linux-low.cc (linux_target_ops): Update.
3452 (linux_read_pc): Turn into ...
3453 (linux_process_target::read_pc): ... this.
3454 (linux_write_pc): Turn into ...
3455 (linux_process_target::write_pc): ... this.
3456 * linux-low.h (class linux_process_target): Update.
3457 * lynx-low.cc (lynx_target_ops): Update.
3458 * nto-low.cc (nto_target_ops): Update.
3459 * win32-low.cc (win32_target_ops): Update.
3460
290732bf
TBA
34612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3462
3463 Turn process_stratum_target's supports_tracepoints op into a
3464 method of process_target.
3465
3466 * target.h (struct process_stratum_target): Remove the target op.
3467 (class process_target): Add the target op.
3468 (target_supports_tracepoints): Update the macro.
3469 * target.cc (process_target::supports_tracepoints): Define.
3470
3471 Update the derived classes and callers below.
3472
3473 * linux-low.cc (linux_target_ops): Update.
3474 (linux_supports_tracepoints): Turn into ...
3475 (linux_process_target::supports_tracepoints): ... this.
3476 * linux-low.h (class linux_process_target): Update.
3477 * lynx-low.cc (lynx_target_ops): Update.
3478 * nto-low.cc (nto_target_ops): Update.
3479 * win32-low.cc (win32_target_ops): Update.
3480
0df28b1b
TBA
34812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3482
3483 Turn process_stratum_target's process_qsupported op into a method
3484 of process_target.
3485
3486 * target.h (struct process_stratum_target): Remove the target op.
3487 (class process_target): Add the target op.
3488 (target_process_qsupported): Update the macro.
3489 * target.cc (process_target::process_qsupported): Define.
3490
3491 Update the derived classes and callers below.
3492
3493 * linux-low.cc (linux_target_ops): Update.
3494 (linux_process_qsupported): Turn into ...
3495 (linux_process_target::process_qsupported): ... this.
3496 * linux-low.h (class linux_process_target): Update.
3497 * lynx-low.cc (lynx_target_ops): Update.
3498 * nto-low.cc (nto_target_ops): Update.
3499 * win32-low.cc (win32_target_ops): Update.
3500
9da41fda
TBA
35012020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3502
3503 Turn process_stratum_target's read_loadmap op into a method of
3504 process_target.
3505
3506 * target.h (struct process_stratum_target): Remove the target op.
3507 (class process_target): Add the target op. Also add
3508 'supports_read_loadmap'.
3509 * target.cc (process_target::read_loadmap): Define.
3510 (process_target::supports_read_loadmap): Define.
3511
3512 Update the derived classes and callers below.
3513
3514 * server.cc (handle_qxfer_fdpic): Update.
3515 (handle_query): Update.
3516 * linux-low.cc (linux_target_ops): Update.
3517 (linux_process_target::supports_read_loadmap): Define.
3518 (linux_read_loadmap): Turn into ...
3519 (linux_process_target::read_loadmap): ... this.
3520 * linux-low.h (class linux_process_target): Update.
3521 * lynx-low.cc (lynx_target_ops): Update.
3522 * nto-low.cc (nto_target_ops): Update.
3523 * win32-low.cc (win32_target_ops): Update.
3524
95a45fc1
TBA
35252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3526
3527 Turn process_stratum_target's core_of_thread op into a method of
3528 process_target.
3529
3530 * target.h (struct process_stratum_target): Remove the target op.
3531 (class process_target): Add the target op.
3532 (target_core_of_thread): Update the macro.
3533 * target.cc (process_target::core_of_thread): Define.
3534
3535 Update the derived classes and callers below.
3536
3537 * linux-low.cc (linux_target_ops): Update.
3538 (linux_process_target::core_of_thread): Define.
3539 * linux-low.h (class linux_process_target): Update.
3540 * lynx-low.cc (lynx_target_ops): Update.
3541 * nto-low.cc (nto_target_ops): Update.
3542 * win32-low.cc (win32_target_ops): Update.
3543
55cf3021
TBA
35442020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3545
3546 Turn process_stratum_target's handle_monitor_command op into a
3547 method of process_target.
3548
3549 * target.h (struct process_stratum_target): Remove the target op.
3550 (class process_target): Add the target op.
3551 (target_handle_monitor_command): Update the macro.
3552 * target.cc (process_target::handle_monitor_command): Define.
3553
3554 Update the derived classes and callers below.
3555
3556 * server.cc (handle_query): Update.
3557 * linux-low.cc (linux_target_ops): Update.
3558 (linux_process_target::handle_monitor_command): Define.
3559 * linux-low.h (class linux_process_target): Update.
3560 * lynx-low.cc (lynx_target_ops): Update.
3561 * nto-low.cc (nto_target_ops): Update.
3562 * win32-low.cc (win32_target_ops): Update.
3563
fb00dfce
TBA
35642020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3565
3566 Turn process_stratum_target's handle_new_gdb_connection op into a
3567 method of process_target.
3568
3569 * target.h (struct process_stratum_target): Remove the target op.
3570 (class process_target): Add the target op.
3571 (target_handle_new_gdb_connection): Update the macro.
3572 * target.cc (process_target::handle_new_gdb_connection): Define.
3573
3574 Update the derived classes and callers below.
3575
3576 * linux-low.cc (linux_target_ops): Update.
3577 (linux_handle_new_gdb_connection): Turn into ...
3578 (linux_process_target::handle_new_gdb_connection): ... this.
3579 * linux-low.h (class linux_process_target): Update.
3580 * lynx-low.cc (lynx_target_ops): Update.
3581 * nto-low.cc (nto_target_ops): Update.
3582 * win32-low.cc (win32_target_ops): Update.
3583
9690a72a
TBA
35842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3585
3586 Turn process_stratum_target's supports_fork_events,
3587 supports_vfork_events, and supports_exec_events ops into methods
3588 of process_target.
3589
3590 * target.h (struct process_stratum_target): Remove the target ops.
3591 (class process_target): Add the target ops.
3592 (target_supports_fork_events): Update the macro.
3593 (target_supports_vfork_events): Update the macro.
3594 (target_supports_exec_events): Update the macro.
3595 * target.cc (process_target::supports_fork_events): Define.
3596 (process_target::supports_vfork_events): Define.
3597 (process_target::supports_exec_events): Define.
3598
3599 Update the derived classes and callers below.
3600
3601 * linux-low.cc (linux_target_ops): Update.
3602 (linux_supports_fork_events): Turn into ...
3603 (linux_process_target::supports_fork_events): ... this.
3604 (linux_supports_vfork_events): Turn into ...
3605 (linux_process_target::supports_vfork_events): ... this.
3606 (linux_supports_exec_events): Turn into ...
3607 (linux_process_target::supports_exec_events): ... this.
3608 * linux-low.h (class linux_process_target): Update.
3609 * lynx-low.cc (lynx_target_ops): Update.
3610 * nto-low.cc (nto_target_ops): Update.
3611 * win32-low.cc (win32_target_ops): Update.
3612
652aef77
TBA
36132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3614
3615 Turn process_stratum_target's supports_multi_process op into a
3616 method of process_target.
3617
3618 * target.h (struct process_stratum_target): Remove the target op.
3619 (class process_target): Add the target op.
3620 * target.cc (process_target::supports_multi_process): Define.
3621 (target_supports_multi_process): Update.
3622
3623 Update the derived classes and callers below.
3624
3625 * linux-low.cc (linux_target_ops): Update.
3626 (linux_supports_multi_process): Turn into ...
3627 (linux_process_target::supports_multi_process): ... this.
3628 * linux-low.h (class linux_process_target): Update.
3629 * lynx-low.cc (lynx_target_ops): Update.
3630 * nto-low.cc (nto_target_ops): Update.
3631 * win32-low.cc (win32_target_ops): Update.
3632
0dc587d4
TBA
36332020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3634
3635 Turn process_stratum_target's supports_non_stop, async, and
3636 start_non_stop ops into methods of process_target.
3637
3638 * target.h (struct process_stratum_target): Remove the target ops.
3639 (class process_target): Add the target ops.
3640 (target_supports_non_stop): Update the macro.
3641 (target_async): Update the macro.
3642 (start_non_stop): Remove declaration.
3643 * target.cc (process_target::supports_non_stop): Define.
3644 (process_target::async): Define.
3645 (process_target::start_non_stop): Define.
3646 (start_non_stop): Remove.
3647
3648 Update the derived classes and callers below.
3649
3650 * server.cc (handle_qxfer_siginfo): Update.
3651 (handle_query): Update.
3652 * linux-low.cc (linux_target_ops): Update.
3653 (linux_supports_non_stop): Turn into ...
3654 (linux_process_target::supports_non_stop): ... this.
3655 (linux_async): Turn into ...
3656 (linux_process_target::async): ... this.
3657 (linux_start_non_stop): Turn into ...
3658 (linux_process_target::start_non_stop): ... this.
3659 * linux-low.h (class linux_process_target): Update.
3660 * lynx-low.cc (lynx_target_ops): Update.
3661 * nto-low.cc (nto_target_ops): Update.
3662 (nto_supports_non_stop): Remove; rely on the default behavior
3663 instead.
3664 * win32-low.cc (win32_target_ops): Update.
3665
d7abedf7
TBA
36662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3667
3668 Turn process_stratum_target's qxfer_siginfo op into a method of
3669 process_target.
3670
3671 * target.h (struct process_stratum_target): Remove the target op.
3672 (class process_target): Add the target op. Also add
3673 'supports_qxfer_siginfo'.
3674 * target.cc (process_target::qxfer_siginfo): Define.
3675 (process_target::supports_qxfer_siginfo): Define.
3676
3677 Update the derived classes and callers below.
3678
3679 * server.cc (handle_qxfer_siginfo): Update.
3680 (handle_query): Update.
3681 * linux-low.cc (linux_target_ops): Update.
3682 (linux_process_target::supports_qxfer_siginfo): Define.
3683 (linux_xfer_siginfo): Turn into ...
3684 (linux_process_target::qxfer_siginfo): ... this.
3685 * linux-low.h (class linux_process_target): Update.
3686 * lynx-low.cc (lynx_target_ops): Update.
3687 * nto-low.cc (nto_target_ops): Update.
3688 * win32-low.cc (win32_target_ops): Update.
3689
2d0795ee
TBA
36902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3691
3692 Turn process_stratum_target's qxfer_osdata op into a method of
3693 process_target.
3694
3695 * target.h (struct process_stratum_target): Remove the target op.
3696 (class process_target): Add the target op. Also add
3697 'supports_qxfer_osdata'.
3698 * target.cc (process_target::qxfer_osdata): Define.
3699 (process_target::supports_qxfer_osdata): Define.
3700
3701 Update the derived classes and callers below.
3702
3703 * server.cc (handle_qxfer_osdata): Update.
3704 (handle_query): Update.
3705 * linux-low.cc (linux_target_ops): Update.
3706 (linux_process_target::supports_qxfer_osdata): Define.
3707 (linux_qxfer_osdata): Turn into ...
3708 (linux_process_target::qxfer_osdata): ... this.
3709 * linux-low.h (class linux_process_target): Update.
3710 * lynx-low.cc (lynx_target_ops): Update.
3711 * nto-low.cc (nto_target_ops): Update.
3712 * win32-low.cc (win32_target_ops): Update.
3713
ea06bbaa
TBA
37142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3715
3716 Turn process_stratum_target's hostio_last_error op into a
3717 method of process_target.
3718
3719 * target.h (struct process_stratum_target): Remove the target op.
3720 (class process_target): Add the target op.
3721 * target.cc: Add "hostio.h" to includes.
3722 (process_target::hostio_last_error): Define.
3723
3724 Update the derived classes and callers below.
3725
3726 * hostio.cc (hostio_error): Update.
3727 * linux-low.cc: Remove "hostio.h" from includes.
3728 (linux_target_ops): Update.
3729 * lynx-low.cc (lynx_target_ops): Update.
3730 * nto-low.cc (nto_target_ops): Update.
3731 * win32-low.h (class win32_process_target): Update.
3732 * win32-low.cc (win32_target_ops): Update.
3733 (wince_hostio_last_error): Turn into ...
3734 (win32_process_target::hostio_last_error): ... this.
3735
6e3fd7e9
TBA
37362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3737
3738 Turn process_stratum_target's get_tls_address op into a method of
3739 process_target.
3740
3741 * target.h (struct process_stratum_target): Remove the target op.
3742 (class process_target): Add the target op. Also add
3743 'supports_get_tls_address'.
3744 * target.cc (process_target::get_tls_address): Define.
3745 (process_target::supports_get_tls_address): Define.
3746
3747 Update the derived classes and callers below.
3748
3749 * server.cc (handle_query): Update.
3750 * linux-low.cc (linux_target_ops): Update.
3751 (linux_process_target::supports_get_tls_address): Define.
3752 (linux_process_target::get_tls_address): Define.
3753 * linux-low.h (class linux_process_target): Update.
3754 * lynx-low.cc (lynx_target_ops): Update.
3755 * nto-low.cc (nto_target_ops): Update.
3756 * win32-low.cc (win32_target_ops): Update.
3757
5203ae1e
TBA
37582020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3759
3760 Turn process_stratum_target's read_offsets op into a method of
3761 process_target.
3762
3763 * target.h (struct process_stratum_target): Remove the target op.
3764 (class process_target): Add the target op. Also add
3765 'supports_read_offsets'.
3766 * target.cc (process_target::read_offsets): Define.
3767 (process_target::supports_read_offsets): Define.
3768
3769 Update the derived classes and callers below.
3770
3771 * server.cc (handle_query): Update.
3772 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3773 (linux_target_ops): Update.
3774 (linux_process_target::supports_read_offsets): Define.
3775 (linux_read_offsets): Turn into ...
3776 (linux_process_target::read_offsets): ... this.
3777 * linux-low.h (class linux_process_target): Update.
3778 * lynx-low.cc (lynx_target_ops): Update.
3779 * nto-low.cc (nto_target_ops): Update.
3780 * win32-low.cc (win32_target_ops): Update.
3781
6eeb5c55
TBA
37822020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3783
3784 Turn process_stratum_target's stopped_by_watchpoint and
3785 stopped_data_address ops into methods of process_target.
3786
3787 * target.h (struct process_stratum_target): Remove the target ops.
3788 (class process_target): Add the target ops.
3789 * target.cc (process_target::stopped_by_watchpoint): Define.
3790 (process_target::stopped_data_address): Define.
3791
3792 Update the derived classes and callers below.
3793
3794 * remote-utils.cc (prepare_resume_reply): Update.
3795 * linux-low.cc (linux_target_ops): Update.
3796 (linux_stopped_by_watchpoint): Turn into ...
3797 (linux_process_target::stopped_by_watchpoint): ... this.
3798 (linux_stopped_data_address): Turn into ...
3799 (linux_process_target::stopped_data_address): ... this.
3800 * linux-low.h (class linux_process_target): Update.
3801 * lynx-low.cc (lynx_target_ops): Update.
3802 * nto-low.cc (nto_target_ops): Update.
3803 (nto_stopped_by_watchpoint): Turn into ...
3804 (nto_process_target::stopped_by_watchpoint): ... this.
3805 (nto_stopped_data_address): Turn into ...
3806 (nto_process_target::stopped_data_address): ... this.
3807 * nto-low.h (class nto_process_target): Update.
3808 * win32-low.cc (win32_target_ops): Update.
3809 (win32_stopped_by_watchpoint): Turn into ...
3810 (win32_process_target::stopped_by_watchpoint): ... this.
3811 (win32_stopped_data_address): Turn into ...
3812 (win32_process_target::stopped_data_address): ... this.
3813 * win32-low.h (class win32_process_target): Update.
3814
22aa6223
TBA
38152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3816
3817 Turn process_stratum_target's supports_hardware_single_step op into
3818 a method of process_target.
3819
3820 * target.h (struct process_stratum_target): Remove the target op.
3821 (class process_target): Add the target op.
3822 (target_supports_hardware_single_step): Update the macro.
3823 (target_can_do_hardware_single_step): Remove declaration.
3824 * target.cc (process_target::supports_hardware_single_step): Define.
3825 (target_can_do_hardware_single_step): Remove.
3826
3827 Update the derived classes and callers below.
3828
3829 * linux-low.h (class linux_process_target): Update.
3830 * linux-low.cc (linux_target_ops): Update.
3831 (linux_supports_hardware_single_step): Turn into ...
3832 (linux_process_target::supports_hardware_single_step): ... this.
3833 * lynx-low.h (class lynx_process_target): Update.
3834 * lynx-low.cc (lynx_target_ops): Update.
3835 (lynx_process_target::supports_hardware_single_step): Define.
3836 * nto-low.h (class nto_process_target): Update.
3837 * nto-low.cc (nto_target_ops): Update.
3838 (nto_process_target::supports_hardware_single_step): Define.
3839 * win32-low.h (class win32_process_target): Update.
3840 * win32-low.cc (win32_target_ops): Update.
3841 (win32_process_target::supports_hardware_single_step): Define.
3842
93fe88b2
TBA
38432020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3844
3845 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3846 ops into methods of process_target.
3847
3848 * target.h (struct process_stratum_target): Remove the target ops.
3849 (class process_target): Add the target ops.
3850 (target_stopped_by_hw_breakpoint): Update the macro.
3851 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3852 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3853 (process_target::supports_stopped_by_hw_breakpoint): Define.
3854
3855 Update the derived classes and callers below.
3856
3857 * linux-low.cc (linux_target_ops): Update.
3858 (linux_stopped_by_hw_breakpoint): Turn into ...
3859 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3860 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3861 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3862 * linux-low.h (class linux_process_target): Update.
3863 * lynx-low.cc (lynx_target_ops): Update.
3864 * nto-low.cc (nto_target_ops): Update.
3865 * win32-low.cc (win32_target_ops): Update.
3866
84320c4e
TBA
38672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3868
3869 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3870 ops into methods of process_target.
3871
3872 * target.h (struct process_stratum_target): Remove the target ops.
3873 (class process_target): Add the target ops.
3874 (target_stopped_by_sw_breakpoint): Update the macro.
3875 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3876 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3877 (process_target::supports_stopped_by_sw_breakpoint): Define.
3878
3879 Update the derived classes and callers below.
3880
3881 * linux-low.cc (linux_target_ops): Update.
3882 (linux_stopped_by_sw_breakpoint): Turn into ...
3883 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3884 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3885 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3886 * linux-low.h (class linux_process_target): Update.
3887 * lynx-low.cc (lynx_target_ops): Update.
3888 * nto-low.cc (nto_target_ops): Update.
3889 * win32-low.cc (win32_target_ops): Update.
3890
7e0bde70
TBA
38912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3892
3893 Turn process_stratum_target's insert_point and remove_point ops
3894 into methods of process_target.
3895
3896 * target.h (struct process_stratum_target): Remove the target ops.
3897 (class process_target): Add the target ops.
3898 * target.cc (process_target::insert_point): Define.
3899 (process_target::remove_point): Define.
3900
3901 Update the derived classes and callers below.
3902
3903 * mem-break.cc (set_raw_breakpoint_at): Update.
3904 (delete_raw_breakpoint): Update.
3905 (uninsert_raw_breakpoint): Update.
3906 (reinsert_raw_breakpoint): Update.
3907 * linux-low.cc (linux_target_ops): Update.
3908 (linux_insert_point): Turn into ...
3909 (linux_process_target::insert_point): ... this.
3910 (linux_remove_point): Turn into ...
3911 (linux_process_target::remove_point): ... this.
3912 * linux-low.h (class linux_process_target): Update.
3913 * lynx-low.cc (lynx_target_ops): Update.
3914 * nto-low.cc (nto_target_ops): Update.
3915 (nto_insert_point): Turn into ...
3916 (nto_process_target::insert_point): ... this.
3917 (nto_remove_point): Turn into ...
3918 (nto_process_target::remove_point): ... this.
3919 * nto-low.h (class nto_process_target): Update.
3920 * win32-low.cc (win32_target_ops): Update.
3921 (win32_insert_point): Turn into ...
3922 (win32_process_target::insert_point): ... this.
3923 (win32_remove_point): Turn into ...
3924 (win32_process_target::remove_point): ... this.
3925 * win32-low.h (class win32_process_target): Update.
3926
a2b2297a
TBA
39272020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3928
3929 Turn process_stratum_target's supports_z_point_type op into a
3930 method of process_target.
3931
3932 * target.h (struct process_stratum_target): Remove the target op.
3933 (class process_target): Add the target op.
3934 * target.cc (process_target::supports_z_point_type): Define.
3935
3936 Update the derived classes and callers below.
3937
3938 * mem-break.cc (z_type_supported): Update.
3939 * linux-low.cc (linux_target_ops): Update.
3940 (linux_supports_z_point_type): Turn into ...
3941 (linux_process_target::supports_z_point_type): ... 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_supports_z_point_type): Turn into ...
3946 (nto_process_target::supports_z_point_type): ... this.
3947 * nto-low.h (class nto_process_target): Update.
3948 * win32-low.cc (win32_target_ops): Update.
3949 (win32_supports_z_point_type): Turn into ...
3950 (win32_process_target::supports_z_point_type): ... this.
3951 * win32-low.h (class win32_process_target): Update.
3952
eac215cc
TBA
39532020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3954
3955 Turn process_stratum_target's read_auxv op into a method of
3956 process_target.
3957
3958 * target.h (class process_stratum_target): Remove the target op.
3959 (struct process_target): Add the target op. Also add
3960 'supports_read_auxv'.
3961 * target.cc (process_target::read_auxv): Define.
3962 (process_target::supports_read_auxv): Define.
3963
3964 Update the derived classes and callers below.
3965
3966 * server.cc (handle_qxfer_auxv): Update.
3967 (handle_query): Update.
3968 * linux-low.cc (linux_target_ops): Update.
3969 (linux_process_target::supports_read_auxv): Define.
3970 (linux_read_auxv): Turn into ...
3971 (linux_process_target::read_auxv): ... 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_process_target::supports_read_auxv): Define.
3976 (nto_read_auxv): Turn into ...
3977 (nto_process_target::read_auxv): ... this.
3978 * nto-low.h (class nto_process_target): Update.
3979 * win32-low.cc (win32_target_ops): Update.
3980
eb497a2a
TBA
39812020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3982
3983 Turn process_stratum_target's request_interrupt op into a method of
3984 process_target.
3985
3986 * target.h (struct process_stratum_target): Remove the target op.
3987 (class process_target): Add the target op.
3988
3989 Update the derived classes and callers below.
3990
3991 * remote-utils.cc (putpkt_binary_1): Update.
3992 (input_interrupt): Update.
3993 (getpkt): Update.
3994 * server.cc (handle_v_requests): Update.
3995 * linux-low.cc (linux_target_ops): Update.
3996 (linux_request_interrupt): Turn into ...
3997 (linux_process_target::request_interrupt): ... this.
3998 * linux-low.h (class linux_process_target): Update.
3999 * lynx-low.cc (lynx_target_ops): Update.
4000 (lynx_request_interrupt): Turn into ...
4001 (lynx_process_target::request_interrupt): ... this.
4002 * lynx-low.h (class lynx_process_target): Update.
4003 * nto-low.cc (nto_target_ops): Update.
4004 (nto_request_interrupt): Turn into ...
4005 (nto_process_target::request_interrupt): ... this.
4006 * nto-low.h (class nto_process_target): Update.
4007 * win32-low.cc (win32_target_ops): Update.
4008 (win32_request_interrupt): Turn into ...
4009 (win32_process_target::request_interrupt): ... this.
4010 * win32-low.h (class win32_process_target): Update.
4011
2a31c7aa
TBA
40122020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4013
4014 Turn process_stratum_target's look_up_symbols op into a method of
4015 process_target.
4016
4017 * target.h (struct process_stratum_target): Remove the target op.
4018 (class process_target): Add the target op.
4019 * target.cc (process_target::look_up_symbols): Define.
4020
4021 Update the derived classes and callers below.
4022
4023 * server.cc (handle_query): Update.
4024 * linux-low.cc (linux_target_ops): Update.
4025 (linux_look_up_symbols): Turn into ...
4026 (linux_process_target::look_up_symbols): ... this.
4027 * linux-low.h (class linux_process_target): Update.
4028 * lynx-low.cc (lynx_target_ops): Update.
4029 * nto-low.cc (nto_target_ops): Update.
4030 * win32-low.cc (win32_target_ops): Update.
4031
e2558df3
TBA
40322020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4033
4034 Turn process_stratum_target's read_memory and write_memory
4035 ops into methods of process_target.
4036
4037 * target.h (struct process_stratum_target): Remove the target ops.
4038 (class process_target): Add the target ops.
4039
4040 Update the derived classes and callers below.
4041
4042 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4043 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4044 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4045 (arm_get_syscall_trapinfo): Update.
4046 * linux-cris-low.cc (cris_breakpoint_at): Update.
4047 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4048 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4049 * linux-mips-low.cc (mips_breakpoint_at): Update.
4050 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4051 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4052 * linux-sh-low.cc (sh_breakpoint_at): Update.
4053 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4054 (sparc_store_gregset_from_stack): Update.
4055 (sparc_breakpoint_at): Update.
4056 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4057 * linux-tile-low.cc (tile_breakpoint_at): Update.
4058 * linux-x86-low.cc (x86_breakpoint_at): Update.
4059 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4060 * mem-brea.cc (insert_memory_breakpoint): Update.
4061 (validate_inserted_breakpoint): Update.
4062 * target.cc (read_inferior_memory): Update.
4063 (target_write_memory): Update.
4064 * linux-low.cc (linux_target_ops): Update.
4065 (linux_read_memory): Make a wrapper around the read_memory target
4066 op call.
4067 (linux_process_target::read_memory): Rename from linux_read_memory.
4068 (linux_write_memory): Turn into ...
4069 (linux_process_target::write_memory): ... this.
4070 * linux-low.h (class linux_process_target): Update.
4071 * lynx-low.cc (lynx_target_ops): Update.
4072 (lynx_read_memory): Turn into ...
4073 (lynx_process_target::read_memory): ... this.
4074 (lynx_write_memory): Turn into ...
4075 (lynx_process_target::write_memory): ... this.
4076 * lynx-low.h (class lynx_process_target): Update.
4077 * nto-low.cc (nto_target_ops): Update.
4078 (nto_read_memory): Turn into ...
4079 (nto_process_target::read_memory): ... this.
4080 (nto_write_memory): Turn into ...
4081 (nto_process_target::write_memory): ... this.
4082 * nto-low.h (class nto_process_target): Update.
4083 * win32-low.cc (win32_target_ops): Update.
4084 (win32_read_inferior_memory): Turn into ...
4085 (win32_process_target::read_memory): ... this.
4086 (win32_write_inferior_memory): Turn into ...
4087 (win32_process_target::write_memory): ... this.
4088 * win32-low.h (class win32_process_target): Update.
4089
79b44087
TBA
40902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4091
4092 Turn process_stratum_target's prepare_to_access_memory and
4093 done_accessing_memory ops into methods of process_target.
4094
4095 * target.h (struct process_stratum_target): Remove the target ops.
4096 (class process_target): Add the target ops.
4097 * target.cc (process_target::prepare_to_access_memory): Define.
4098 (process_target::done_accessing_memory): Define.
4099 (prepare_to_access_memory): Update.
4100 (done_accessing_memory): Update.
4101
4102 Update the derived classes and callers below.
4103
4104 * linux-low.cc (linux_target_ops): Update.
4105 (linux_prepare_to_access_memory): Turn into ...
4106 (linux_process_target::prepare_to_access_memory): ... this.
4107 (linux_done_accessing_memory): Turn into ...
4108 (linux_process_target::done_accessing_memory): ... this.
4109 * linux-low.h (class linux_process_target): Update.
4110 * lynx-low.cc (lynx_target_ops): Update.
4111 * nto-low.cc (nto_target_ops): Update.
4112 * win32-low.cc (win32_target_ops): Update.
4113
a5a4d4cd
TBA
41142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4115
4116 Turn process_stratum_target's fetch_registers and store_registers
4117 ops into methods of process_target.
4118
4119 * target.h (struct process_stratum_target): Remove the target ops.
4120 (class process_target): Add the target ops.
4121 (fetch_inferior_registers): Update the macro.
4122 (store_inferior_registers): Update the macro.
4123
4124 Update the derived classes and callers below.
4125
4126 * linux-low.cc (linux_target_ops): Update.
4127 (linux_fetch_registers): Turn into ...
4128 (linux_process_target::fetch_registers): ... this.
4129 (linux_store_registers): Turn into ...
4130 (linux_process_target::store_registers): ... this.
4131 * linux-low.h (class linux_process_target): Update.
4132 * lynx-low.cc (lynx_target_ops): Update.
4133 (lynx_fetch_registers): Turn into ...
4134 (lynx_process_target::fetch_registers): ... this.
4135 (lynx_store_registers): Turn into ...
4136 (lynx_process_target::store_registers): ... this.
4137 * lynx-low.h (class lynx_process_target): Update.
4138 * nto-low.cc (nto_target_ops): Update.
4139 (nto_fetch_registers): Turn into ...
4140 (nto_process_target::fetch_registers): ... this.
4141 (nto_store_registers): Turn into ...
4142 (nto_process_target::store_registers): ... this.
4143 * nto-low.h (class nto_process_target): Update.
4144 * win32-low.cc (win32_target_ops): Update.
4145 (win32_fetch_inferior_registers): Turn into ...
4146 (win32_process_target::fetch_registers): ... this.
4147 (win32_store_inferior_registers): Turn into ...
4148 (win32_process_target::store_registers): ... this.
4149 * win32-low.h (class win32_process_target): Update.
4150
6532e7e3
TBA
41512020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4152
4153 Turn process_stratum_target's wait op into a method of
4154 process_target.
4155
4156 * target.h (struct process_stratum_target): Remove the target op.
4157 (class process_target): Add the target op.
4158
4159 Update the derived classes and callers below.
4160
4161 * target.cc (target_wait): Update.
4162 * linux-low.cc (linux_target_ops): Update.
4163 (linux_wait): Turn into ...
4164 (linux_process_target::wait): ... this.
4165 * linux-low.h (class linux_process_target): Update.
4166 * lynx-low.cc (lynx_target_ops): Update.
4167 (lynx_wait): Turn into ...
4168 (lynx_process_target::wait): ... this.
4169 * lynx-low.h (class lynx_process_target): Update.
4170 * nto-low.cc (nto_target_ops): Update.
4171 (nto_wait): Turn into ...
4172 (nto_process_target::wait): ... this.
4173 * nto-low.h (class nto_process_target): Update.
4174 * win32-low.cc (win32_target_ops): Update.
4175 (win32_wait): Turn into ...
4176 (win32_process_target::wait): ... this.
4177 (do_initial_child_stuff): Update.
4178 * win32-low.h (class win32_process_target): Update.
4179
0e4d7e35
TBA
41802020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4181
4182 Turn process_stratum_target's resume op into a method of
4183 process_target.
4184
4185 * target.h (struct process_stratum_target): Remove the target op.
4186 (class process_target): Add the target op.
4187
4188 Update the derived classes and callers below.
4189
4190 * server.cc (resume): Update.
4191 * target.cc (target_stop_and_wait): Update.
4192 (target_continue_no_signal): Update.
4193 (target_continue): Update.
4194 * linux-low.cc (linux_target_ops): Update.
4195 (linux_resume): Turn into ...
4196 (linux_process_target::resume): ... this.
4197 * linux-low.h (class linux_process_target): Update.
4198 * lynx-low.cc (lynx_target_ops): Update.
4199 (lynx_resume): Turn into ...
4200 (lynx_process_target::resume): ... this.
4201 * lynx-low.h (class lynx_process_target): Update.
4202 * nto-low.cc (nto_target_ops): Update.
4203 (nto_resume): Turn into ...
4204 (nto_process_target::resume): ... this.
4205 * nto-low.h (class nto_process_target): Update.
4206 * win32-low.cc (win32_target_ops): Update.
4207 (win32_resume): Turn into ...
4208 (win32_process_target::resume): ... this.
4209 (win32_process_target::detach): Update.
4210 (do_initial_child_stuff): Update.
4211 * win32-low.h (class win32_process_target): Update.
4212
13d3d99b
TBA
42132020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4214
4215 Turn process_stratum_target's thread_alive op into a method of
4216 process_target.
4217
4218 * target.h (struct process_stratum_target): Remove the target op.
4219 (class process_target): Add the target op.
4220 (mythread_alive): Update the macro.
4221
4222 Update the derived classes and callers below.
4223
4224 * linux-low.cc (linux_target_ops): Update.
4225 (linux_thread_alive): Turn into ...
4226 (linux_process_target::thread_alive): ... this.
4227 (wait_for_sigstop): Update.
4228 * linux-low.h (class linux_process_target): Update.
4229 * lynx-low.cc (lynx_target_ops): Update.
4230 (lynx_thread_alive): Turn into ...
4231 (lynx_process_target::thread_alive): ... this.
4232 * lynx-low.h (class lynx_process_target): Update.
4233 * nto-low.cc (nto_target_ops): Update.
4234 (nto_thread_alive): Turn into ...
4235 (nto_process_target::thread_alive): ... this.
4236 * nto-low.h (class nto_process_target): Update.
4237 * win32-low.cc (win32_target_ops): Update.
4238 (win32_thread_alive): Turn into ...
4239 (win32_process_target::thread_alive): ... this.
4240 * win32-low.h (class win32_process_target): Update.
4241
95a49a39
TBA
42422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4243
4244 Turn process_stratum_target's join op into a method of
4245 process_target.
4246
4247 * target.h (struct process_stratum_target): Remove the target op.
4248 (class process_target): Add the target op.
4249 (join_inferior): Update the macro.
4250
4251 Update the derived classes and callers below.
4252
4253 * linux-low.cc (linux_target_ops): Update.
4254 (linux_join): Turn into ...
4255 (linux_process_target::join): ... this.
4256 * linux-low.h (class linux_process_target): Update.
4257 * lynx-low.cc (lynx_target_ops): Update.
4258 (lynx_join): Turn into ...
4259 (lynx_process_target::join): ... this.
4260 * lynx-low.h (class lynx_process_target): Update.
4261 * nto-low.cc (nto_target_ops): Update.
4262 (nto_process_target::join): Define.
4263 * nto-low.h (class nto_process_target): Update.
4264 * win32-low.cc (win32_target_ops): Update.
4265 (win32_join): Turn into ...
4266 (win32_process_target::join): ... this.
4267 * win32-low.h (class win32_process_target): Update.
4268
8adb37b9
TBA
42692020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4270
4271 Turn process_stratum_target's mourn op into a method of
4272 process_target.
4273
4274 * target.h (struct process_stratum_target): Remove the target op.
4275 (class process_target): Add the target op.
4276
4277 Update the derived classes and callers below.
4278
4279 * target.cc (target_mourn_inferior): Update.
4280 * linux-low.cc (linux_target_ops): Update.
4281 (linux_mourn): Turn into ...
4282 (linux_process_target::mourn): ... this.
4283 (handle_extended_wait): Update.
4284 (linux_process_target::kill): Update.
4285 (linux_process_target::detach): Update.
4286 * linux-low.h (class linux_process_target): Update.
4287 * lynx-low.cc (lynx_target_ops): Update.
4288 (lynx_mourn): Turn into ...
4289 (lynx_process_target::mourn): ... this.
4290 * lynx-low.h (class lynx_process_target): Update.
4291 * nto-low.cc (nto_target_ops): Update.
4292 (nto_mourn): Turn into ...
4293 (nto_process_target::mourn): ... this.
4294 * nto-low.h (class nto_process_target): Update.
4295 * win32-low.cc (win32_target_ops): Update.
4296 (win32_mourn): Turn into ...
4297 (win32_process_target::mourn): ... this.
4298 * win32-low.h (class win32_process_target): Update.
4299
9061c9cf
TBA
43002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4301
4302 Turn process_stratum_target's detach op into a method of
4303 process_target.
4304
4305 * target.h (struct process_stratum_target): Remove the target op.
4306 (class process_target): Add the target op.
4307 (detach_inferior): Update the macro.
4308
4309 Update the derived classes and callers below.
4310
4311 * linux-low.cc (linux_target_ops): Update.
4312 (linux_detach): Turn into ...
4313 (linux_process_target::detach): ... this.
4314 * linux-low.h (class linux_process_target): Update.
4315 * lynx-low.cc (lynx_target_ops): Update.
4316 (lynx_detach): Turn into ...
4317 (lynx_process_target::detach): ... this.
4318 * lynx-low.h (class lynx_process_target): Update.
4319 * nto-low.cc (nto_target_ops): Update.
4320 (nto_detach): Turn into ...
4321 (nto_process_target::detach): ... this.
4322 * nto-low.h (class nto_process_target): Update.
4323 * win32-low.cc (win32_target_ops): Update.
4324 (win32_detach): Turn into ...
4325 (win32_process_target::detach): ... this.
4326 * win32-low.h (class win32_process_target): Update.
4327
c6885a57
TBA
43282020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4329
4330 Turn process_stratum_target's kill op into a method of
4331 process_target.
4332
4333 * target.h (struct process_stratum_target): Remove the target op.
4334 (class process_target): Add the target op.
4335
4336 Update the derived classes and callers below.
4337
4338 * target.cc (kill_inferior): Update.
4339 * linux-low.cc (linux_target_ops): Update.
4340 (linux_kill): Turn into ...
4341 (linux_process_target::kill): ... this.
4342 * linux-low.h (class linux_process_target): Update.
4343 * lynx-low.cc (lynx_target_ops): Update.
4344 (lynx_kill): Turn into ...
4345 (lynx_process_target::kill): ... this.
4346 * lynx-low.h (class lynx_process_target): Update.
4347 * nto-low.cc (nto_target_ops): Update.
4348 (nto_kill): Turn into ...
4349 (nto_process_target::kill): ... this.
4350 * nto-low.h (class nto_process_target): Update.
4351 * win32-low.cc (win32_target_ops): Update.
4352 (win32_kill): Turn into ...
4353 (win32_process_target::kill): ... this.
4354 * win32-low.h (class win32_process_target): Update.
4355
ef03dad8
TBA
43562020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4357
4358 Turn process_stratum_target's attach op into a method of
4359 process_target.
4360
4361 * target.h (struct process_stratum_target): Remove the target op.
4362 (class process_target): Add the target op.
4363 (myattach): Update the macro.
4364
4365 Update the derived classes and callers below.
4366
4367 * linux-low.cc (linux_target_ops): Update.
4368 (linux_attach): Turn into ...
4369 (linux_process_target::attach): ... this.
4370 * linux-low.h (class linux_process_target): Update.
4371 * lynx-low.cc (lynx_target_ops): Update.
4372 (lynx_attach): Turn into ...
4373 (lynx_process_target::attach): ... this.
4374 * lynx-low.h (class lynx_process_target): Update.
4375 * nto-low.cc (nto_target_ops): Update.
4376 (nto_attach): Turn into ...
4377 (nto_process_target::attach): ... this.
4378 * nto-low.h (class nto_process_target): Update.
4379 * win32-low.cc (win32_target_ops): Update.
4380 (win32_attach): Turn into ...
4381 (win32_process_target::attach): ... this.
4382 * win32-low.h (class win32_process_target): Update.
4383
6dee9afb
TBA
43842020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4385
4386 Turn process_stratum_target's post_create_inferior op into a method
4387 of process_target.
4388
4389 * target.h (struct process_stratum_target): Remove the target op.
4390 (class process_target): Add the target op.
4391 (target_post_create_inferior): Update the macro.
4392 * target.cc (process_target::post_create_inferior): Define.
4393
4394 Update the derived classes and callers below.
4395
4396 * linux-low.cc (linux_target_ops): Update.
4397 (linux_post_create_inferior): Turn into ...
4398 (linux_process_target::post_create_inferior): ... this.
4399 * linux-low.h (class linux_process_target): Update.
4400 * lynx-low.cc (lynx_target_ops): Update.
4401 * nto-low.cc (nto_target_ops): Update.
4402 * win32-low.cc (win32_target_ops): Update.
4403
15295543
TBA
44042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4405
4406 Turn process_stratum_target's create_inferior op into a method of
4407 process_target.
4408
4409 * target.h (struct process_stratum_target): Remove the target op.
4410 (class process_target): Add the target op.
4411 (create_inferior): Rename the macro to ...
4412 (target_create_inferior): ... this.
4413
4414 Update the derived classes and callers below.
4415
4416 * server.cc (handle_v_run): Update.
4417 (captured_main): Update.
4418 (process_serial_event): Update.
4419 * linux-low.cc (linux_target_ops): Update.
4420 (linux_create_inferior): Turn into ...
4421 (linux_process_target::create_inferior): ... this.
4422 * linux-low.h (class linux_process_target): Update.
4423 * lynx-low.cc (lynx_target_ops): Update.
4424 (lynx_create_inferior): Turn into ...
4425 (lynx_process_target::create_inferior): ... this.
4426 * lynx-low.h (class lynx_process_target): Update.
4427 * nto-low.cc (nto_target_ops): Update.
4428 (nto_create_inferior): Turn into ...
4429 (nto_process_target::create_inferior): ... this.
4430 * nto-low.h (class nto_process_target): Update.
4431 * win32-low.cc (win32_target_ops): Update.
4432 (win32_create_inferior): Turn into ...
4433 (win32_process_target::create_inferior): ... this.
4434 * win32-low.h (class win32_process_target): Update.
4435
5ef9273d
TBA
44362020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4437
4438 * target.h (class process_target): New class definition.
4439 (struct process_stratum_target) <pt>: New field with type
4440 'process_target*'.
4441 * linux-low.h (class linux_process_target): Define as a derived
4442 class of 'process_target'.
4443 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4444 as the 'pt' field.
4445 * lynx-low.h (class lynx_process_target): Define as a derived
4446 class of 'process_target'.
4447 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4448 as the 'pt' field.
4449 * nto-low.h (class nto_process_target): Define as a derived
4450 class of 'process_target'.
4451 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4452 as the 'pt' field.
4453 * win32-low.h (class win32_process_target): Define as a derived
4454 class of 'process_target'.
4455 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4456 as the 'pt' field.
4457
9f1528a1
AB
44582020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4459
4460 * configure: Regenerate.
4461
bf84f706
MR
44622020-02-19 Maciej W. Rozycki <macro@wdc.com>
4463 Andrew Burgess <andrew.burgess@embecosm.com>
4464
4465 * linux-riscv-low.cc: New file.
4466 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4467 and nat/riscv-linux-tdesc.c.
4468 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4469 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4470 Define.
4471
1a627e7e
TT
44722020-02-14 Tom Tromey <tom@tromey.com>
4473
4474 * acinclude.m4: Don't include acx_configure_dir.m4.
4475 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4476 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4477 (all, install-only, uninstall, clean-info, clean)
4478 (maintainer-clean): Don't recurse.
4479 (subdir_do, all-lib): Remove.
4480 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4481 (GNULIB_H): Remove.
4482 (generated_files): Update.
4483 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4484 * configure: Rebuild.
4485 * configure.ac: Don't configure gnulib or libiberty.
4486 (GNULIB): Update.
4487
a9b34532
EZ
44882020-02-14 Eli Zaretskii <eliz@gnu.org>
4489
4490 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4491 preparing the command line for CreateProcess.
4492 (win32_create_inferior): Reflect the program name in debugging
4493 output that shows the process and its command line.
4494
feacfcac
SM
44952020-02-13 Simon Marchi <simon.marchi@efficios.com>
4496
4497 * Makefile.in: Rename source files from .c to .cc.
4498 * %.c: Rename to %.cc.
4499 * configure.ac: Rename server.c to server.cc.
4500 * configure: Re-generate.
4501
06b3c5bd
SM
45022020-02-13 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4505
052793ad
HD
45062020-02-12 Hannes Domani <ssbssa@yahoo.de>
4507
4508 * win32-low.c (win32_create_inferior): Set signal_pid.
4509
f20e3e82
MR
45102020-02-12 Maciej W. Rozycki <macro@wdc.com>
4511 Pedro Alves <palves@redhat.com>
4512
4513 Skip building gdbserver in a cross-configuration.
4514 * configure.srv: Set $gdbserver_host depending on whether $target
4515 is $host. Use $gdbserver_host instead of $host.
4516
8ddd8e0e
SM
45172020-02-11 Simon Marchi <simon.marchi@efficios.com>
4518
4519 * configure: Re-generate.
4520
898e7f60
SM
45212020-02-11 Simon Marchi <simon.marchi@efficios.com>
4522
4523 * configure: Re-generate.
4524
58df732b
SM
45252020-02-11 Simon Marchi <simon.marchi@efficios.com>
4526
4527 * acinclude.m4: Update warning.m4 path.
4528
7928d571
HD
45292020-02-09 Hannes Domani <ssbssa@yahoo.de>
4530
4531 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4532 (handle_exception): Set siginfo_er.
4533 (win32_xfer_siginfo): New function.
4534
919adfe8
TT
45352020-02-07 Tom Tromey <tom@tromey.com>
4536 Pedro Alves <palves@redhat.com>
4537
4538 * README: Update build documentation.
4539 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4540 host, not target.
4541 * configure.ac: Update paths.
4542 * configure: Rebuild.
4543 * acinclude.m4: Update paths.
4544 * Makefile.in: Update include paths.
4545 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4546 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4547 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4548 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4549 (%-generated.c): Update paths.
4550 * Move entire directory from ../gdb/gdbserver.
4551
287c844a
MR
45522020-01-29 Maciej W. Rozycki <macro@wdc.com>
4553
4554 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4555
548a204f
PFC
45562020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4557
4558 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4559 assignment instead of srv_linux_obj.
4560
a2236a08
HD
45612020-01-28 Hannes Domani <ssbssa@yahoo.de>
4562
4563 * server.c (handle_qxfer_libraries): Write segment-address with
4564 paddress.
4565
bdaed379
HD
45662020-01-24 Hannes Domani <ssbssa@yahoo.de>
4567
4568 * Makefile.in (install-strip): New target.
4569 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4570 * aclocal.m4: Regenerate.
4571 * configure: Regenerate.
4572 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4573
42cd72aa
MR
45742020-01-24 Maciej W. Rozycki <macro@wdc.com>
4575
4576 * Makefile.in (SFILES): Adjust paths to point to real files.
4577 (OBS): Move waitstatus.o to target/waitstatus.o.
4578 (TAGS): Transform paths appropriately.
4579 (%.o): Rename to...
4580 (nat/%.o): ... this pattern rule.
4581 (%.o): Rename to...
4582 (target/%.o): ... this pattern rule.
4583 * configure.srv: Adjust paths throughout to include nat/ prefix
4584 with the revant files.
4585 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4586 * configure: Regenerate.
4587
42ba50ec
MR
45882020-01-24 Maciej W. Rozycki <macro@wdc.com>
4589
4590 * Makefile.in (TAGS): Remove config files from the recipe.
4591
05ea2a05
TT
45922020-01-14 Tom Tromey <tom@tromey.com>
4593
4594 * configure: Rebuild.
4595 * configure.ac: Remove any checks that were added to common.m4.
4596 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4597 lib-link.m4.
4598
01027315
TT
45992020-01-14 Tom Tromey <tom@tromey.com>
4600
4601 * server.h: Include config.h.
4602 * gdbreplay.c: Include config.h.
4603 * configure: Rebuild.
4604 * configure.ac: Don't source common.host.
4605 * acinclude.m4: Update path.
4606 * Makefile.in (INCSUPPORT): New variable.
4607 (INCLUDE_CFLAGS): Add INCSUPPORT.
4608 (SFILES): Update paths.
4609 (version-generated.c): Update path to create-version.sh.
4610 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4611
b2ceabe8
TT
46122020-01-14 Tom Tromey <tom@tromey.com>
4613
4614 * configure.ac (LIBS): Use WIN32APILIBS.
4615 (USE_WIN32API): Don't define.
4616 * configure: Rebuild.
4617
25c51f71
TT
46182020-01-14 Tom Tromey <tom@tromey.com>
4619
4620 * configure: Rebuild.
4621
c0bd321d
SM
46222020-01-13 Simon Marchi <simon.marchi@efficios.com>
4623
4624 * Makefile.in (%-generated.c): Remove rule for files from
4625 regformats/i386.
4626
bb564c58
SM
46272020-01-13 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * configure: Re-generate.
4630
6e37c371
SM
46312020-01-13 Simon Marchi <simon.marchi@efficios.com>
4632
4633 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4634 Define to static.
4635 * tracepoint.c (stop_tracing, flush_trace_buffer,
4636 about_to_request_buffer_space, get_trace_state_variable_value,
4637 set_trace_state_variable_value, gdb_collect): Add declaration.
4638
df4a0200
SM
46392020-01-13 Simon Marchi <simon.marchi@efficios.com>
4640
4641 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4642 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4643 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4644 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4645 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4646 static.
4647
89e94ec9
SM
46482020-01-13 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * inferiors.c: Include gdbsupport/common-inferior.h.
4651
2552728a
SM
46522020-01-13 Simon Marchi <simon.marchi@efficios.com>
4653
4654 * hostio-errno.c: Include hostio.h.
4655
4025fa09
SM
46562020-01-13 Simon Marchi <simon.marchi@efficios.com>
4657
4658 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4659 prerequisite.
4660
c0b0a142
SM
46612020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4662
4663 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4664 * linux-arm-tdesc.h: Include arch/arm.h.
4665
bb1183e2
SM
46662020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4667
4668 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4669
f5df0b5f
SM
46702020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4671
4672 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4673 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4674
5b6d1e4f
PA
46752020-01-10 Pedro Alves <palves@redhat.com>
4676
4677 * fork-child.c (post_fork_inferior): Pass target down to
4678 startup_inferior.
4679 * inferiors.c (switch_to_thread): Add process_stratum_target
4680 parameter.
4681 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4682 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4683 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4684 * remote-utils.c (prepare_resume_reply): Pass the target to
4685 switch_to_thread.
4686 * target.c (the_target): Now a process_stratum_target.
4687 (done_accessing_memory): Pass the target to switch_to_thread.
4688 (set_target_ops): Ajust to use process_stratum_target.
4689 * target.h (struct target_ops): Rename to ...
4690 (struct process_stratum_target): ... this.
4691 (the_target, set_target_ops): Adjust.
4692 (prepare_to_access_memory): Adjust comment.
4693 * win32-low.c (child_xfer_memory): Adjust to use
4694 process_stratum_target.
4695 (win32_target_ops): Now a process_stratum_target.
4696
559e7e50
EZ
46972020-01-06 Eli Zaretskii <eliz@gnu.org>
4698 Pedro Alves <palves@redhat.com>
4699
4700 * win32-low.c (get_child_debug_event): Extract the fatal exception
4701 from the exit status and convert to the equivalent Posix signal
4702 number.
4703 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4704 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4705
48189bec
HD
47062020-01-01 Hannes Domani <ssbssa@yahoo.de>
4707
4708 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4709
5dd8bf88
JB
47102020-01-01 Joel Brobecker <brobecker@adacore.com>
4711
4712 * server.c (gdbserver_version): Change copyright year to 2020.
4713 * gdbreplay.c (gdbreplay_version): Likewise.
4714
0ad6b8ee
CB
47152019-12-19 Christian Biesinger <cbiesinger@google.com>
4716
4717 * configure: Regenerate.
4718 * configure.ac: Quote variable arguments of test.
4719
1ee7b812
BE
47202019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4721
4722 * Makefile.in: Fix build with GNU Make 3.81
4723
d9fa87f4
TT
47242019-12-16 Tom Tromey <tromey@adacore.com>
4725
4726 * server.c (get_exec_file): Constify result.
4727
ab7d13f0
CB
47282019-12-10 Christian Biesinger <cbiesinger@google.com>
4729
4730 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4731 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4732 * config.in: Regenerate.
4733 * configure: Regenerate.
4734 * configure.ac: Don't check for strerror.
4735 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4736 Call safe_strerror instead of strerror.
4737 * server.h (strerror): Remove this now-unnecessary declaration.
4738 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4739 strerror.
4740 (gdb_agent_helper_thread): Likewise.
4741 * utils.c (perror_with_name): Likewise.
4742
4da8c3a8
TT
47432019-11-26 Tom Tromey <tom@tromey.com>
4744
4745 * configure, config.in: Rebuild.
4746
21987b9c
TT
47472019-11-26 Tom Tromey <tom@tromey.com>
4748
4749 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4750 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4751 gdb_sigmask.
4752 * configure, config.in: Rebuild.
4753
5e030278
TT
47542019-11-26 Tom Tromey <tom@tromey.com>
4755
4756 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4757 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4758 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4759 * acinclude.m4: Include ax_pthread.m4.
4760 * config.in, configure: Rebuild.
4761
6d91ce9a
CB
47622019-11-26 Christian Biesinger <cbiesinger@google.com>
4763
4764 * debug.c (debug_set_output): Call safe_strerror instead of
4765 strerror.
4766 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4767 (linux_kill_one_lwp): Likewise.
4768 (linux_detach_one_lwp): Likewise.
4769 (linux_wait_for_event_filtered): Likewise.
4770 (store_register): Likewise.
4771 * lynx-low.c (lynx_attach): Likewise.
4772 * mem-break.c (insert_memory_breakpoint): Likewise.
4773 (remove_memory_breakpoint): Likewise.
4774 (delete_fast_tracepoint_jump): Likewise.
4775 (set_fast_tracepoint_jump): Likewise.
4776 (uninsert_fast_tracepoint_jumps_at): Likewise.
4777 (reinsert_fast_tracepoint_jumps_at): Likewise.
4778 * nto-low.c (nto_xfer_memory): Likewise.
4779 (nto_resume): Likewise.
4780
6cdd651f
LM
47812019-11-20 Luis Machado <luis.machado@linaro.org>
4782
4783 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4784 instead of register count.
4785 * tdesc.c (tdesc_contains_feature): New function.
4786 * tdesc.h (tdesc_contains_feature): New prototype.
4787
cd850b40
CB
47882019-11-15 Christian Biesinger <cbiesinger@google.com>
4789
4790 * Makefile.in: Add safe-strerror.c.
4791 * configure: Regenerate.
4792 * configure.ac: Don't source common.host.
4793
5abebf3c
CB
47942019-11-15 Christian Biesinger <cbiesinger@google.com>
4795
4796 * config.in: Regenerate.
4797 * configure: Regenerate.
4798
e06f3d6e
AB
47992019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4800
4801 * ax.c (ax_printf): Handle size_t_arg.
4802
ca3a04f6
CB
48032019-11-06 Christian Biesinger <cbiesinger@google.com>
4804
4805 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4806 * mi/mi-main.c (output_cores): Likewise.
4807 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4808 (linux_xfer_osdata_modules): Likewise.
4809 * remote.c (register_remote_support_xml): Likewise.
4810 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4811 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4812
e48f6033
CB
48132019-11-01 Christian Biesinger <cbiesinger@google.com>
4814
4815 * configure: Regenerate.
4816 * configure.ac: Remove check for strerror_r.
4817
e7e97a2e
CB
48182019-10-31 Christian Biesinger <cbiesinger@google.com>
4819
4820 * config.in: Regenerate.
4821 * configure: Regenerate.
4822 * configure.ac: Also check for strerror_r.
4823
75cafaa6
CB
48242019-10-31 Christian Biesinger <cbiesinger@google.com>
4825
4826 * ax.h (debug_agent): Remove duplicate declaration.
4827
30baf67b
TV
48282019-10-26 Tom de Vries <tdevries@suse.de>
4829
4830 * linux-aarch64-low.c: Fix typos in comments.
4831 * linux-arm-low.c: Same.
4832 * linux-low.c: Same.
4833 * linux-ppc-low.c: Same.
4834 * proc-service.c: Same.
4835 * regcache.h: Same.
4836 * server.c: Same.
4837 * tracepoint.c: Same.
4838 * win32-low.c: Same.
4839
52c64cf7
TT
48402019-10-25 Tom Tromey <tromey@adacore.com>
4841
4842 * utils.c (xstrdup): Remove.
4843
c12d372d
TT
48442019-10-23 Tom Tromey <tom@tromey.com>
4845
4846 * configure, config.in: Rebuild.
4847
4d0b984b
TT
48482019-10-23 Tom Tromey <tom@tromey.com>
4849
4850 * configure: Rebuild.
4851 * acinclude.m4: Use m4_include, not sinclude.
4852
c5adaa19
TT
48532019-10-17 Tom Tromey <tromey@adacore.com>
4854
4855 * configure: Rebuild.
4856 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4857 in AC_CONFIG_FILES invocation.
4858 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4859 invocation.
4860
fec4e896
CB
48612019-10-16 Christian Biesinger <cbiesinger@google.com>
4862
4863 * server.c: Include xml-builtin.h.
4864 (get_xml_features): Don't declare xml_builtins here.
4865
00975ff6
AB
48662019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4867
4868 * Makefile.in: Remove references to vec-ipa.o.
4869
0dc32745
AB
48702019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4871
4872 * Makefile.in: Remove references to vec.c.
4873
3e6ec53a
CB
48742019-10-02 Christian Biesinger <cbiesinger@google.com>
4875
4876 * server.c (server_waiting): Change to bool.
4877 (extended_protocol): Likewise.
4878 (response_needed): Likewise.
4879 (exit_requested): Likewise.
4880 (run_once): Likewise.
4881 (report_no_resumed): Likewise.
4882 (non_stop): Likewise.
4883 (disable_packet_vCont): Likewise.
4884 (disable_packet_Tthread): Likewise.
4885 (disable_packet_qC): Likewise.
4886 (disable_packet_qfThreadInfo): Likewise.
4887 (handle_general_set): Update.
4888 (handle_detach): Update.
4889 (handle_monitor_command): Update.
4890 (handle_query): Update.
4891 (captured_main): Update.
4892 (process_serial_event): Update.
4893 * server.h (server_waiting): Change to bool.
4894 (disable_packet_vCont): Likewise.
4895 (disable_packet_Tthread): Likewise.
4896 (disable_packet_qC): Likewise.
4897 (disable_packet_qfThreadInfo): Likewise.
4898 (run_once): Likewise.
4899 (non_stop): Likewise.
4900 * target.c (target_stop_and_wait): Update.
4901
80fd2826
TT
49022019-10-02 Tom Tromey <tromey@adacore.com>
4903
4904 * Makefile.in (SFILES): Add common-inferior.c.
4905 (OBS): Add common-inferior.o.
4906 * server.c (startup_with_shell): Don't define.
4907
46f29a9a
AB
49082019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4909
4910 * linux-low.c (linux_low_read_btrace): Update for change to
4911 std::vector.
4912
f9d949fb
CB
49132019-09-20 Christian Biesinger <cbiesinger@google.com>
4914
4915 * debug.c (debug_threads): Remove comment in favor of the header.
4916 * debug.h (using_threads): Add declaration.
4917 (debug_threads): Add comment.
4918 * linux-aarch64-low.c: Include debug.h and remove declaration of
4919 debug_threads.
4920 * nto-low.c: Likewise.
4921 * remote-utils.c: Likewise.
4922 * thread-db.c: Likewise.
4923
abf516c6
UW
49242019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4925
4926 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4927 and powerpc-cell64l-ipa.o.
4928 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4929 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4930 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4931 (spu*-*-*): Remove.
4932
4933 * spu-low.c: Remove file.
4934
4935 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4936 (parse_spufs_run): Remove.
4937 (ppc_get_pc): Remove Cell/B.E. support.
4938 (ppc_set_pc): Likewise.
4939 (ppc_breakpoint_at): Likewise.
4940 (ppc_arch_setup): Likewise.
4941 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4942 tdesc_powerpc_cell32l.
4943 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4944 or init_registers_powerpc_cell32l.
4945 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4946 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4947 or init_registers_powerpc_cell32l.
4948 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4949 (init_registers_powerpc_cell32l): Remove prototype.
4950 (init_registers_powerpc_cell64l): Likewise.
4951
4952 * target.h (struct target_ops): Remove qxfer_spu member.
4953 * server.c (handle_qxfer_spu): Remove.
4954 (qxfer_packets): Remove entry for "spu".
4955 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4956 * linux-low.c (SPUFS_MAGIC): Remove.
4957 (spu_enumerate_spu_ids): Remove.
4958 (linux_qxfer_spu): Remove.
4959 (linux_target_ops): Remove qxfer_spu member.
4960 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4961 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4962 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4963
2d41fa11
SDJ
49642019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4965
4966 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4967 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4968 * config.in: Regenerate.
4969 * configure: Regenerate.
4970
d59b55f0
TT
49712019-08-15 Tom Tromey <tromey@adacore.com>
4972
4973 * target.c (target_write_memory): Use gdb::byte_vector.
4974
4196ab2a
TT
49752019-08-15 Tom Tromey <tromey@adacore.com>
4976
4977 * tracepoint.c (write_inferior_data_pointer)
4978 (write_inferior_integer, write_inferior_int8)
4979 (write_inferior_uinteger, m_tracepoint_action_download)
4980 (r_tracepoint_action_download, x_tracepoint_action_download)
4981 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4982 (download_agent_expr, download_tracepoint_1)
4983 (download_trace_state_variables, upload_fast_traceframes): Update.
4984 * server.c (gdb_write_memory): Update.
4985 * remote-utils.c (relocate_instruction): Update.
4986 * proc-service.c (ps_pdwrite): Update.
4987 * mem-break.c (remove_memory_breakpoint)
4988 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4989 (uninsert_fast_tracepoint_jumps_at)
4990 (reinsert_fast_tracepoint_jumps_at): Update.
4991 * linux-x86-low.c (append_insns)
4992 (i386_install_fast_tracepoint_jump_pad)
4993 (amd64_write_goto_address, i386_write_goto_address): Update.
4994 * linux-s390-low.c (append_insns, s390_write_goto_address):
4995 Update.
4996 * linux-ppc-low.c (ppc_relocate_instruction)
4997 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4998 (ppc_write_goto_address): Update.
4999 * linux-aarch64-low.c (append_insns): Update.
5000 * target.h (struct target_ops): Update.
5001 (write_inferior_memory): Don't declare.
5002 * target.c (target_write_memory): Rename from
5003 write_inferior_memory. Remove old target_write_memory.
5004
c6778d00
TT
50052019-08-15 Tom Tromey <tromey@adacore.com>
5006
5007 * target.c (write_inferior_memory): Use std::vector.
5008
404f2902
FCE
50092019-08-06 Frank Ch. Eigler <fche@redhat.com>
5010
5011 PR build/24886
5012 * configure.ac: Drop enable-libmcheck support.
5013 * configure, config.in: Rebuild.
5014 * acinclude.m4: Don't include it.
5015
4c5aa8e0
AH
50162019-07-19 Alan Hayward <alan.hayward@arm.com>
5017
5018 * configure.srv: Remove Arm xml files.
5019
7cc17433
AH
50202019-07-19 Alan Hayward <alan.hayward@arm.com>
5021
5022 * configure.srv: Add new files. Remove xml generated files.
5023 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5024 registers.
5025 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5026 * linux-aarch32-tdesc.c: New file.
5027 * linux-aarch32-tdesc.h: New file.
5028 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5029 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5030 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5031 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5032 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5033 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5034 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5035 (arm_read_description): Call arm_linux_read_description.
5036 (initialize_low_arch): Don't init registers.
5037 * linux-arm-tdesc.c: New file.
5038 * linux-arm-tdesc.h: New file.
5039
166a82be
AH
50402019-07-10 Alan Hayward <alan.hayward@arm.com>
5041
5042 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5043 Move counter inside for.
5044 (arm_read_description): Check ptrace earlier.
5045 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5046
268a13a5
TT
50472019-07-09 Tom Tromey <tom@tromey.com>
5048
5049 * configure: Rebuild.
5050 * configure.ac: Change common to gdbsupport.
5051 * acinclude.m4: Change common to gdbsupport.
5052 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5053 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5054 common to gdbsupport.
5055 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5056 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5057 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5058 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5059 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5060 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5061 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5062 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5063 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5064 common to gdbsupport.
5065
350fab54
AH
50662019-07-04 Alan Hayward <alan.hayward@arm.com>
5067
5068 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5069 defines.
5070 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5071
2b40fda7
AH
50722019-07-04 Alan Hayward <alan.hayward@arm.com>
5073
5074 * configure.srv: Remove legacy xml.
5075 * linux-aarch64-low.c (initialize_low_arch): Remove
5076 initialize_low_tdesc call.
5077 * linux-aarch64-tdesc-selftest.c: Remove file.
5078 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5079 * linux-x86-low.c (initialize_low_arch): Remove
5080 initialize_low_tdesc call.
5081 * linux-x86-tdesc-selftest.c: Remove file.
5082 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5083
7d10623d
TV
50842019-06-20 Tom de Vries <tdevries@suse.de>
5085
5086 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5087 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5088
8d6a48df
TV
50892019-06-19 Tom de Vries <tdevries@suse.de>
5090
5091 * debug.h (debug_write): Change return type to ssize_t.
5092 * debug.c (debug_write): Same.
5093
73cc7272
TT
50942019-06-14 Tom Tromey <tom@tromey.com>
5095
5096 * configure.ac: Use new path to gnulib.
5097 * configure: Rebuild.
5098 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5099 to gnulib.
5100
08f10e02
TT
51012019-06-11 Tom Tromey <tom@tromey.com>
5102
5103 * Makefile.in (SFILES): Add alloc.c.
5104 (OBS): Add alloc.o.
5105 (IPA_OBJS): Add alloc-ipa.o.
5106 (alloc-ipa.o): New target.
5107 (%.o: ../%.c): New pattern rule.
5108
422186a9
TT
51092019-06-10 Tom Tromey <tromey@adacore.com>
5110
5111 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5112 end warning with a newline.
5113 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5114 newline.
5115 * thread-db.c (attach_thread): Don't end warning with a newline.
5116 (thread_db_notice_clone): Likewise.
5117 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5118 newline.
5119 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5120 end warning with a newline.
5121
b02f78f9
PA
51222019-06-04 Pedro Alves <palves@redhat.com>
5123
5124 * server.c (captured_main): Use make_unique_xstrdup.
5125
88ed7edb
TT
51262019-06-02 Tom Tromey <tom@tromey.com>
5127
5128 * gdbreplay.c (fromhex): Remove.
5129 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5130
33a6bc35
TT
51312019-05-29 Tom Tromey <tromey@adacore.com>
5132
5133 * configure: Rebuild.
5134
e90a813d
KB
51352019-05-06 Kevin Buettner <kevinb@redhat.com>
5136
5137 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5138 sign extension code on 32-bit builds.
5139
353ea2d1
EZ
51402019-05-03 Eli Zaretskii <eliz@gnu.org>
5141
5142 * remote-utils.c:
5143 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5144
b494cdff
TT
51452019-04-19 Tom Tromey <tom@tromey.com>
5146
5147 * server.c (struct vstop_notif): Derive from notif_event.
5148 <base>: Remove.
5149 (queue_stop_reply): Update.
5150 (remove_all_on_match_ptid): Change type. Rewrite.
5151 (discard_queued_stop_replies): Rewrite.
5152 (in_queued_stop_replies_ptid): Change type.
5153 (in_queued_stop_replies): Rewrite.
5154 (notif_stop): Update.
5155 (queue_stop_reply_callback): Update.
5156 (captured_main): Don't call initialize_notif.
5157 (push_stop_notification): Update.
5158 * notif.c (notif_write_event, handle_notif_ack)
5159 (notif_event_enque, notif_push): Update.
5160 (notif_event_xfree, initialize_notif): Remove.
5161 * notif.h (struct notif_event): Include <list>, not
5162 "common/queue.h".
5163 (struct notif_server) <queue>: Now a std::list.
5164 (notif_event_p): Remove typedef.
5165 (initialize_notif): Don't declare.
5166 (struct notif_event): Add virtual destructor.
5167
a7e559cc
AH
51682019-04-17 Alan Hayward <alan.hayward@arm.com>
5169
5170 * ax.c (ax_vdebug): Call debug_printf.
5171 * debug.c (debug_write): New function.
5172 * debug.h (debug_write): New declaration.
5173 * linux-low.c (sigchld_handler): Call debug_write.
5174
aeb2e706
AH
51752019-04-17 Alan Hayward <alan.hayward@arm.com>
5176
5177 * debug.c (debug_set_output): New function.
5178 (debug_vprintf): Send output to debug_file.
5179 (debug_flush): Likewise.
5180 * debug.h (debug_set_output): New declaration.
5181 * server.c (handle_monitor_command): Add debug-file option.
5182 (captured_main): Likewise.
5183
c1bc0935
AH
51842019-04-17 Alan Hayward <alan.hayward@arm.com>
5185
5186 * debug.c (remote_debug): Add definition.
5187 * debug.h (remote_debug): Add declaration.
5188 * hostio.c (remote_debug): Remove declaration.
5189 * remote-utils.c (struct ui_file): Likewise.
5190 (remote_debug): Likewise.
5191 * remote-utils.h (remote_debug): Likewise,
5192 * server.c (remote_debug): Remove definition.
5193
3f52fdbc
KB
51942019-04-10 Kevin Buettner <kevinb@redhat.com>
5195
5196 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5197 when using a 64-bit gdbserver.
5198
b0319eaa
TT
51992019-04-09 Tom Tromey <tromey@adacore.com>
5200
5201 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5202
eedc3f4f
TT
52032019-04-08 Tom Tromey <tom@tromey.com>
5204
5205 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5206 throw.
5207 (linux_resume_one_lwp): Likewise.
5208
230d2906
TT
52092019-04-08 Tom Tromey <tom@tromey.com>
5210
5211 * gdbreplay.c: Update.
5212 * linux-low.c: Update.
5213 * server.c: Update.
5214
a70b8144
TT
52152019-04-08 Tom Tromey <tom@tromey.com>
5216
5217 * server.c: Use C++ exception handling.
5218 * linux-low.c: Use C++ exception handling.
5219 * gdbreplay.c: Use C++ exception handling.
5220
3d6e9d23
TT
52212019-04-08 Tom Tromey <tom@tromey.com>
5222
5223 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5224 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5225 (captured_main, main): Update.
5226 * gdbreplay.c (main): Update.
5227
0570503d
PFC
52282019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5229
5230 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5231 value in argument pointer, return 1 if the entry is found and 0
5232 otherwise. Move comment.
5233 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5234 * linux-low.h (linux_get_auxv): Declare.
5235 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5236
227a9e65
TT
52372019-04-05 Tom Tromey <tromey@adacore.com>
5238
5239 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5240 variables.
5241
69f4c9cc
AH
52422019-03-28 Alan Hayward <alan.hayward@arm.com>
5243
5244 * linux-low.c (AT_HWCAP2): Add define if not already included.
5245
974c89e0
AH
52462019-03-26 Alan Hayward <alan.hayward@arm.com>
5247
5248 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5249 (aarch64_arch_setup): Call linux_get_hwcap.
5250 * linux-arm-low.c (arm_get_hwcap): Remove function.
5251 (arm_read_description): Call linux_get_hwcap.
5252 * linux-low.c (linux_get_auxv): New function.
5253 (linux_get_hwcap): Likewise.
5254 (linux_get_hwcap2): Likewise.
5255 * linux-low.h (linux_get_hwcap): New declaration.
5256 (linux_get_hwcap2): Likewise.
5257 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5258 (ppc_arch_setup): Call linux_get_hwcap.
5259 * linux-s390-low.c (s390_get_hwcap): Remove function.
5260 (s390_arch_setup): Call linux_get_hwcap.
5261
1ef53e6b
AH
52622019-03-22 Alan Hayward <alan.hayward@arm.com>
5263 Jiong Wang <jiong.wang@arm.com>
5264
5265 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5266 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5267 to fail.
5268 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5269
ee4fbcfa
AH
52702019-03-22 Alan Hayward <alan.hayward@arm.com>
5271 Jiong Wang <jiong.wang@arm.com>
5272
5273 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5274 (aarch64_get_hwcap): New function.
5275 (aarch64_arch_setup): Read APIA hwcap.
5276
6dc0ebde
AH
52772019-03-22 Alan Hayward <alan.hayward@arm.com>
5278 Jiong Wang <jiong.wang@arm.com>
5279
5280 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5281 (initialize_low_tracepoint): Likewise.
5282 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5283 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5284 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5285 (aarch64_linux_read_description): Likewise.
5286 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5287
1163a4b7
JB
52882019-03-12 John Baldwin <jhb@FreeBSD.org>
5289
5290 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5291 i386_create_target_description for 'segments' parameter.
5292 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5293 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5294 * win32-i386-low.c (i386_arch_setup): Likewise.
5295
d3a70e03
TT
52962019-03-12 Tom Tromey <tromey@adacore.com>
5297
5298 * linux-low.c (iterate_over_lwps): Update.
5299
37991b4f
TT
53002019-03-06 Tom Tromey <tom@tromey.com>
5301
5302 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5303 (captured_main): Use SCOPE_EXIT.
5304
45950eb6
SDJ
53052019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5306
5307 * configure.srv: Use '$enable_unittest' instead of '$development'
5308 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5309 case.
5310
43ac54fc
TT
53112019-02-27 Tom Tromey <tromey@adacore.com>
5312
5313 * gdbreplay.c (logchar): Handle \r\n.
5314
df0da8a2
AH
53152019-02-07 Alan Hayward <alan.hayward@arm.com>
5316
5317 * linux-low.c (linux_attach): Add process before lwp.
5318 * server.c (attach_inferior): Check if already attached.
5319
1a5c2598
TT
53202019-02-07 Tom Tromey <tom@tromey.com>
5321
5322 * x86-tdesc.h: Rename include guard.
5323 * x86-low.h: Add include guard.
5324 * wincecompat.h: Rename include guard.
5325 * win32-low.h: Add include guard.
5326 * utils.h: Rename include guard.
5327 * tracepoint.h: Rename include guard.
5328 * tdesc.h: Rename include guard.
5329 * target.h: Rename include guard.
5330 * server.h: Rename include guard.
5331 * remote-utils.h: Rename include guard.
5332 * regcache.h: Rename include guard.
5333 * nto-low.h: Rename include guard.
5334 * notif.h: Add include guard.
5335 * mem-break.h: Rename include guard.
5336 * lynx-low.h: Add include guard.
5337 * linux-x86-tdesc.h: Add include guard.
5338 * linux-s390-tdesc.h: Add include guard.
5339 * linux-ppc-tdesc-init.h: Add include guard.
5340 * linux-low.h: Add include guard.
5341 * linux-aarch64-tdesc.h: Add include guard.
5342 * linux-aarch32-low.h: Add include guard.
5343 * inferiors.h: Rename include guard.
5344 * i387-fp.h: Rename include guard.
5345 * hostio.h: Rename include guard.
5346 * gdbthread.h: Rename include guard.
5347 * gdb_proc_service.h: Rename include guard.
5348 * event-loop.h: Rename include guard.
5349 * dll.h: Rename include guard.
5350 * debug.h: Rename include guard.
5351 * ax.h: Rename include guard.
5352
956cc47c
SN
53532018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5354
5355 PR gdb/23985
5356 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5357 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5358
a0707f3c
TT
53592019-01-25 Tom Tromey <tom@tromey.com>
5360
5361 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5362
0747795c
TT
53632019-01-25 Tom Tromey <tom@tromey.com>
5364
5365 * win32-low.c: Fix common/ includes.
5366 * win32-i386-low.c: Fix common/ includes.
5367 * tracepoint.c: Fix common/ includes.
5368 * thread-db.c: Fix common/ includes.
5369 * target.h: Fix common/ includes.
5370 * symbol.c: Fix common/ includes.
5371 * spu-low.c: Fix common/ includes.
5372 * server.h: Fix common/ includes.
5373 * server.c: Fix common/ includes.
5374 * remote-utils.c: Fix common/ includes.
5375 * regcache.h: Fix common/ includes.
5376 * regcache.c: Fix common/ includes.
5377 * nto-x86-low.c: Fix common/ includes.
5378 * notif.h: Fix common/ includes.
5379 * mem-break.h: Fix common/ includes.
5380 * lynx-low.c: Fix common/ includes.
5381 * lynx-i386-low.c: Fix common/ includes.
5382 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5383 * linux-x86-low.c: Fix common/ includes.
5384 * linux-low.c: Fix common/ includes.
5385 * inferiors.h: Fix common/ includes.
5386 * i387-fp.c: Fix common/ includes.
5387 * hostio.c: Fix common/ includes.
5388 * hostio-errno.c: Fix common/ includes.
5389 * gdbthread.h: Fix common/ includes.
5390 * gdbreplay.c: Fix common/ includes.
5391 * fork-child.c: Fix common/ includes.
5392 * event-loop.c: Fix common/ includes.
5393 * ax.c:
5394 (enum gdb_agent_op): Fix common/ includes.
5395
be6d4f74
TT
53962019-01-21 Tom Tromey <tom@tromey.com>
5397
5398 * tracepoint.c: Fix includes.
5399 * remote-utils.c: Fix includes.
5400 * linux-x86-low.c: Fix includes.
5401
66d91b39
JB
54022019-01-01 Joel Brobecker <brobecker@adacore.com>
5403
5404 * gdbreplay.c (gdbreplay_version): Update copyright year in
5405 version message.
5406 * server.c (gdbserver_version): Likewise.
5407
754e3168
AH
54082018-12-05 Alan Hayward <alan.hayward@arm.com>
5409
5410 * linux-low.c (add_lwp): Switch ordering.
5411
d105de22
TT
54122018-11-29 Tom Tromey <tom@tromey.com>
5413
5414 * win32-low.c (win32_join): Take pid, not process.
5415 * target.h (struct target_ops) <join>: Change argument type.
5416 (join_inferior): Change argument name.
5417 * spu-low.c (spu_join): Take pid, not process.
5418 * server.c (handle_detach): Preserve pid before destroying
5419 process.
5420 * lynx-low.c (lynx_join): Take pid, not process.
5421 * linux-low.c (linux_join): Take pid, not process.
5422
50138245
AH
54232018-11-23 Alan Hayward <alan.hayward@arm.com>
5424
5425 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5426 (aarch64_cannot_fetch_register): Likewise.
5427 (struct linux_target_ops): Update references.
5428
64f57f3d
PFC
54292018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5430
5431 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5432
8d619c01
EBM
54332018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5434
5435 * configure.srv (ipa_ppc_linux_regobj): Add
5436 powerpc-isa207-htm-vsx32l-ipa.o and
5437 powerpc-isa207-htm-vsx64l-ipa.o.
5438 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5439 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5440 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5441 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5442 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5443 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5444 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5445 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5446 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5447 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5448 (init_registers_powerpc_isa207_htm_vsx32l)
5449 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5450 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5451 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5452 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5453 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5454 (ppc_store_tm_ctarregset): New functions.
5455 (ppc_regsets): Add entries for HTM regsets.
5456 (ppc_arch_setup): Set htm in features struct when needed. Set
5457 sizes for the HTM regsets.
5458 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5459 (initialize_low_arch): Call
5460 init_registers_powerpc_isa207_htm_vsx32l and
5461 init_registers_powerpc_isa207_htm_vsx64l.
5462 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5463 PPC_TDESC_ISA207_HTM_VSX.
5464 (initialize_low_tracepoint): Call
5465 init_registers_powerpc_isa207_htm_vsx32l and
5466 init_registers_powerpc_isa207_htm_vsx64l.
5467
232bfb86
EBM
54682018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5469
5470 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5471 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5472 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5473 (ppc_store_pmuregset): New functions.
5474 (ppc_regsets): Add entries for ebb and pmu regsets.
5475 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5476 pmu regsets are available. Set sizes for these regsets.
5477
f2cf6173
EBM
54782018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5479
5480 * configure.srv (ipa_ppc_linux_regobj): Add
5481 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5482 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5483 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5484 rs6000/powerpc-isa207-vsx32l.xml, and
5485 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5486 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5487 <PPC_TDESC_ISA207_VSX>: New enum value.
5488 (init_registers_powerpc_isa207_vsx32l): Declare.
5489 (init_registers_powerpc_isa207_vsx64l): Declare.
5490 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5491 (ppc_store_tarregset): New function.
5492 (ppc_regsets): Add entry for the TAR regset.
5493 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5494 size for the TAR regsets.
5495 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5496 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5497 and init_registers_powerpc_isa207_vsx64l.
5498 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5499 (initialize_low_tracepoint): Call
5500 init_registers_powerpc_isa207_vsx32l and
5501 init_registers_powerpc_isa207_vsx64l.
5502
7ca18ed6
EBM
55032018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5504 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5505
5506 * configure.srv (ipa_ppc_linux_regobj): Add
5507 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5508 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5509 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5510 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5511 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5512 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5513 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5514 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5515 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5516 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5517 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5518 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5519 (ppc_hwcap): Add comment.
5520 (ppc_hwcap2): New global.
5521 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5522 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5523 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5524 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5525 when needed. Set sizes for the the DSCR and PPR regsets.
5526 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5527 (initialize_low_arch): Call
5528 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5529 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5530 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5531 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5532 (initialize_low_tracepoint): Call
5533 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5534 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5535
5c849b22
PFC
55362018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5537
5538 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5539
8ecfd7bd
SDJ
55402018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5541 Simon Marchi <simark@simark.ca>
5542
5543 * acinclude.m4: Include "../selftest.m4".
5544 * configure: Regenerate.
5545 * configure.ac: Use "GDB_AC_SELFTEST".
5546 * configure.srv: Use "$enable_unittests" instead of
5547 "$development" when checking whether unit tests have been
5548 enabled.
5549 * server.c (captured_main): Update message informing that
5550 selftests have been disabled.
5551
96643e35
TT
55522018-10-04 Tom Tromey <tom@tromey.com>
5553
5554 * configure: Rebuild.
5555
da4ae14a
TT
55562018-10-04 Tom Tromey <tom@tromey.com>
5557
5558 * server.c (handle_status): Rename inner "thread".
5559 (process_serial_event): Declare "res" in 'm' case.
5560 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5561 (iterate_over_lwps): Rename inner "thread".
5562 (linux_qxfer_libraries_svr4): Rename inner "len".
5563 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5564
7c619dbd
GB
55652018-10-01 Gary Benson <gbenson@redhat.com>
5566
5567 * gdb_proc_service.h: Moved common code to
5568 common/gdb_proc_service.h.
5569
3795e814
GB
55702018-10-01 Gary Benson <gbenson@redhat.com>
5571
5572 * gdb_proc_service.h: Synchronize comments and whitespace with
5573 GDB's version of this file.
5574
49b036f1
TT
55752018-09-25 Tom Tromey <tom@tromey.com>
5576
5577 * configure: Rebuild.
5578 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5579
8ff03f0b
SM
55802018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5581
5582 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5583 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5584 ($(IPA_LIB)): Sort IPA_OBJS.
5585
a1cd91dc
SM
55862018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5587
5588 * Makefile.in: Remove references to $(ADD_DEPS).
5589
752312ba
TT
55902018-09-16 Tom Tromey <tom@tromey.com>
5591
5592 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5593 variables.
5594 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5595 variables.
5596
f1628857
TT
55972018-09-05 Tom Tromey <tom@tromey.com>
5598
5599 * configure: Rebuild.
5600
ad202fcc
SM
56012018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5602
5603 PR build/23399
5604 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5605
d3d8724a
TT
56062018-08-27 Tom Tromey <tom@tromey.com>
5607
5608 PR build/23087:
5609 * configure: Rebuild.
5610
b4f183d2
TT
56112018-08-27 Tom Tromey <tom@tromey.com>
5612
5613 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5614 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5615 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5616 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5617 (s390x_emit_stack_adjust): Add casts to unsigned char.
5618
4e2aa472
SM
56192018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5620
5621 PR gdb/23374
5622 PR gdb/23375
5623 * server.h (struct client_state) <disable_randomization>:
5624 Initialize to 1.
5625
cf4088a9
SM
56262018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5627
5628 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5629 variable.
5630 (mips_supply_ptrace_register): Likewise.
5631
a0de763e
TT
56322018-07-22 Tom Tromey <tom@tromey.com>
5633
5634 * configure: Rebuild.
5635
b0a7723d
TT
56362018-07-22 Tom Tromey <tom@tromey.com>
5637
5638 * win32-low.c (win32_create_inferior): Remove unused variables.
5639 * gdbreplay.c (remote_open): Remove unused variable.
5640 * remote-utils.c (remote_prepare): Remove unused variable.
5641 * x86-tdesc.h (X86_TDESC_H): Define.
5642 (amd64_expedite_regs): Define conditionally.
5643 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5644 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5645 * remote-utils.c (readchar): Remove unused variable.
5646
a780ef4f
PA
56472018-07-13 Pedro Alves <palves@redhat.com>
5648
5649 * linux-low.c (linux_kill): Change parameter to process_info
5650 pointer instead of pid. Adjust.
5651 * lynx-low.c (lynx_kill): Likewise.
5652 * nto-low.c (nto_kill): Likewise.
5653 * spu-low.c (spu_kill): Likewise.
5654 * win32-low.c (win32_kill): Likewise.
5655 * server.c (handle_v_kill, kill_inferior_callback)
5656 (detach_or_kill_for_exit): Adjust.
5657 * target.c (kill_inferior): Change parameter to process_info
5658 pointer instead of pid. Adjust.
5659 * target.h (struct target_ops) <kill>: Change parameter to
5660 process_info pointer instead of pid. Adjust all implementations
5661 and callers.
5662 (kill_inferior): Likewise.
5663
ef2ddb33
PA
56642018-07-13 Pedro Alves <palves@redhat.com>
5665
5666 * linux-low.c (linux_detach, linux_join): Change parameter to
5667 process_info pointer instead of pid. Adjust.
5668 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5669 * nto-low.c (nto_detach): Likewise.
5670 * spu-low.c (spu_detach, spu_join): Likewise.
5671 * win32-low.c (win32_detach, win32_join): Likewise.
5672 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5673 * target.h (struct target_ops) <detach, join>: Change parameter to
5674 process_info pointer instead of pid. Adjust all implementations
5675 and callers.
5676 (detach_inferior, join_inferior): Rename 'pid' parameter to
5677 'proc'.
5678
c7ab0aef
SDJ
56792018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5680 Jan Kratochvil <jan.kratochvil@redhat.com>
5681 Paul Fertser <fercerpav@gmail.com>
5682 Tsutomu Seki <sekiriki@gmail.com>
5683
5684 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5685 (OBS): Add 'common/netstuff.o'.
5686 (GDBREPLAY_OBS): Likewise.
5687 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5688 (remote_open): Implement support for IPv6
5689 connections.
5690 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5691 and 'wspiapi.h'.
5692 (handle_accept_event): Accept connections from IPv6 sources.
5693 (remote_prepare): Handle IPv6-style hostnames; implement
5694 support for IPv6 connections.
5695 (remote_open): Implement support for printing connections from
5696 IPv6 sources.
5697
31445d10
PA
56982018-07-11 Pedro Alves <palves@redhat.com>
5699
5700 PR gdb/23377
5701 * mem-break.c (any_persistent_commands): Add process_info
5702 parameter and use it instead of relying on the current process.
5703 Change return type to bool.
5704 * mem-break.h (any_persistent_commands): Add process_info
5705 parameter and change return type to bool.
5706 * server.c (handle_detach): Remove require_running_or_return call.
5707 Look up the process_info for the process we're about to detach.
5708 If not found, return back error to GDB. Adjust
5709 any_persistent_commands call to pass down a process pointer.
5710
cb197132
PA
57112018-07-11 Pedro Alves <palves@redhat.com>
5712
5713 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5714 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5715 instead of collect_register_by_name.
5716 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5717 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5718
1b919490
VB
57192018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5720 Pedro Alves <palves@redhat.com>
5721
5722 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5723
d7e15655
TT
57242018-07-03 Tom Tromey <tom@tromey.com>
5725
5726 * linux-low.c: Update.
5727 * lynx-low.c: Update.
5728 * mem-break.c: Update.
5729 * nto-low.c: Update.
5730 * remote-utils.c: Update.
5731 * server.c: Update.
5732 * spu-low.c: Update.
5733 * target.c: Update.
5734 * win32-low.c: Update.
5735
26a57c92
TT
57362018-07-03 Tom Tromey <tom@tromey.com>
5737
5738 * server.c: Update.
5739
0e998d96
TT
57402018-07-03 Tom Tromey <tom@tromey.com>
5741
5742 * linux-low.c: Update.
5743
cc6bcb54
TT
57442018-07-03 Tom Tromey <tom@tromey.com>
5745
5746 * target.c: Update.
5747
e38504b3
TT
57482018-07-03 Tom Tromey <tom@tromey.com>
5749
5750 * linux-low.c: Update.
5751 * linux-mips-low.c: Update.
5752 * lynx-low.c: Update.
5753 * nto-low.c: Update.
5754 * remote-utils.c: Update.
5755 * server.c: Update.
5756 * spu-low.c: Update.
5757 * target.c: Update.
5758 * thread-db.c: Update.
5759
e99b03dc
TT
57602018-07-03 Tom Tromey <tom@tromey.com>
5761
5762 * linux-low.c: Update.
5763 * linux-mips-low.c: Update.
5764 * lynx-low.c: Update.
5765 * mem-break.c: Update.
5766 * nto-low.c: Update.
5767 * remote-utils.c: Update.
5768 * server.c: Update.
5769 * spu-low.c: Update.
5770 * target.c: Update.
5771 * tracepoint.c: Update.
5772
f2907e49
TT
57732018-07-03 Tom Tromey <tom@tromey.com>
5774
5775 * linux-low.c: Update.
5776 * linux-ppc-low.c: Update.
5777 * linux-x86-low.c: Update.
5778 * proc-service.c: Update.
5779 * server.c: Update.
5780 * spu-low.c: Update.
5781 * thread-db.c: Update.
5782 * win32-low.c: Update.
5783
fd79271b
TT
57842018-07-03 Tom Tromey <tom@tromey.com>
5785
5786 * linux-low.c: Update.
5787 * lynx-low.c: Update.
5788 * nto-low.c: Update.
5789 * remote-utils.c: Update.
5790 * spu-low.c: Update.
5791 * thread-db.c: Update.
5792 * win32-low.c: Update.
5793
c0867626
SDJ
57942018-06-29 Joel Brobecker <brobecker@adacore.com>
5795
5796 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5797 parameter in call to 'amd64_create_target_description'.
5798
2512d7ef
JK
57992018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5800
5801 * x86-tdesc.h: Remove executable permission flag.
5802
d0ac1c44
SM
58032018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5804
5805 * configure.ac: Remove AC_PREREQ, add missing quoting.
5806 * configure: Re-generate.
5807 * config.in: Re-generate.
5808 * aclocal.m4: Re-generate.
5809
c4eb05ff
SM
58102018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5811
5812 * tracepoint.h (current_traceframe): Remove declaration.
5813
02895270
AH
58142018-06-18 Alan Hayward <alan.hayward@arm.com>
5815
5816 * linux-aarch64-low.c (is_sve_tdesc): New function.
5817 (aarch64_sve_regs_copy_to_regcache): Likewise.
5818 (aarch64_sve_regs_copy_from_regcache): Likewise.
5819 (aarch64_regs_info): Add SVE checks.
5820 (initialize_low_arch): Initialize SVE.
5821
e9902bfc
AH
58222018-06-18 Alan Hayward <alan.hayward@arm.com>
5823
5824 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5825
fefa175e
AH
58262018-06-11 Alan Hayward <alan.hayward@arm.com>
5827
5828 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5829 (initialize_low_tracepoint): Likewise
5830 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5831 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5832 param.
5833 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5834 checks.
5835 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5836
b91ad3ff
AH
58372018-06-11 Alan Hayward <alan.hayward@arm.com>
5838
5839 * server.h (PBUFSIZ): Increase size
5840
f868386e
AH
58412018-06-11 Alan Hayward <alan.hayward@arm.com>
5842
5843 * regcache.c (regcache::raw_compare): New function.
5844 * regcache.h (regcache::raw_compare): New declaration.
5845
9c861883
AH
58462018-06-11 Alan Hayward <alan.hayward@arm.com>
5847
5848 * regcache.c (new_register_cache): Use new.
5849 (free_register_cache): Use delete.
5850 (register_data): Use const.
5851 (supply_register): Move body inside regcache.
5852 (regcache::raw_supply): New override function.
5853 (collect_register): Move body inside regcache.
5854 (regcache::raw_collect): New override function.
5855 (regcache::get_register_status): New override function.
5856 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5857
40591844
TT
58582018-06-09 Tom Tromey <tom@tromey.com>
5859
5860 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5861 declare queue.
5862 (event_queue): Use std::queue.
5863 (gdb_event_xfree): Remove.
5864 (initialize_event_loop, process_event, wait_for_event): Update.
5865
6341380d
SC
58662018-06-08 Stan Cox <scox@redhat.com>
5867
5868 * win32-low.c (win32_create_inferior): last_ptid and last_status
5869 moved to client_state.
5870
03349c93
PA
58712018-06-08 Pedro Alves <palves@redhat.com>
5872
5873 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5874 common/common-exceptions.o, common/common-utils.o,
5875 common/errors.o, common/print-utils.o and utils.o.
5876 * gdbreplay.c: Include "common-defs.h" instead of the two
5877 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5878 string.h or alloca.h.
5879 (perror_with_name): Delete.
5880 (remote_open): Use xstrdup instead of strdup.
5881 (main): Rename to ...
5882 (captured_main): ... this.
5883 (main): New.
5884
8dcc53b3
TT
58852018-06-08 Tom Tromey <tom@tromey.com>
5886
5887 * linux-low.c (linux_low_read_btrace): Update.
5888
c12a5089
SC
58892018-06-04 Stan Cox <scox@redhat.com>
5890
5891 * server.h (struct client_state): New.
5892 * server.c (cont_thread, general_thread, multi_process)
5893 (report_fork_events, report_vfork_events, report_exec_events)
5894 (report_thread_events, swbreak_feature, hwbreak_feature)
5895 (vCont_supported, disable_randomization, pass_signals)
5896 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5897 Moved to client_state.
5898 * remote-utils.c (remote_debug, noack_mode)
5899 (transport_is_reliable): Moved to client_state.
5900 * tracepoint.c (current_traceframe): Moved to client_state.
5901
5902 Update all callers.
5903 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5904 linux-low.c, remote-utils.h, target.c: Use client_state.
5905
122394f1
AH
59062018-05-31 Alan Hayward <alan.hayward@arm.com>
5907
5908 * configure.srv: Add new c/h file.
5909
95228a0d
AH
59102018-05-31 Alan Hayward <alan.hayward@arm.com>
5911
5912 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5913 null VQ.
5914
d8dab6c3
MR
59152018-05-25 Maciej W. Rozycki <macro@mips.com>
5916
5917 * gdb.arch/mips-fpregset-core.exp: New test.
5918 * gdb.arch/mips-fpregset-core.c: New test source.
5919
81e25b7c
EK
59202018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5921
5922 PR server/23198
5923 * hostio.c (require_int): Do not report overflow for integers
5924 between 0xfffffff and 0x7fffffff.
5925
7e947ad3
MR
59262018-05-22 Maciej W. Rozycki <macro@mips.com>
5927
5928 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5929 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5930 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5931 functions.
5932 (the_low_target): Wire them.
5933
1d75a658
PFC
59342018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5935
5936 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5937 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5938 mode. Call collect_register_by_name with vscr using
5939 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5940 (ppc_store_vrregset): Add and set vscr_offset variable as in
5941 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5942 vscr_offset.
5943
d078308a
PFC
59442018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5945
5946 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5947 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5948 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5949
7273b5fc
PFC
59502018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5951
5952 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5953 (ppc_store_vsxregset): Likewise.
5954 (ppc_fill_vrregset): Likewise.
5955 (ppc_store_vrregset): Likewise.
5956 (ppc_fill_evrregset): Likewise.
5957 (ppc_store_evrregset): Likewise.
5958 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5959 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5960 needed.
5961
2e077f5e
PFC
59622018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5963
5964 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5965 wordsize of the inferior. Call ppc_linux_target_wordsize.
5966
bd64614e
PFC
59672018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5968
5969 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5970 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5971 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5972 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5973 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5974 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5975 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5976 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5977 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5978 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5979 (tdesc_powerpc_e500l): Remove.
5980 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5981 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5982 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5983 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5984 linux-ppc-tdesc.h.
5985 (ppc_arch_setup): Remove target description matching code. Fill a
5986 ppc_linux_features struct and call ppc_linux_match_description
5987 with it.
5988
75d74cca
MR
59892018-05-22 Maciej W. Rozycki <macro@mips.com>
5990
5991 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5992 width of the requested register exceeds the width of the
5993 `ptrace' data type.
5994 (mips_cannot_store_register): Likewise.
5995
e4439e43
MR
59962018-05-21 Maciej W. Rozycki <macro@mips.com>
5997
5998 * linux-mips-low.c (mips_fetch_register): New function. Update
5999 preceding comment.
6000 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6001 (the_low_target): Wire `mips_fetch_register'.
6002
55271bf9
JB
60032018-05-10 Joel Brobecker <brobecker@adacore.com>
6004
6005 * lynx-i386-low.c (LYNXOS_178): New macro.
6006 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6007 the layout on LynxOS-178.
6008 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6009 handle floating point registers that are not supported by
6010 LynxOS-178.
6011
1a34f210
TT
60122018-05-10 Tom Tromey <tom@tromey.com>
6013
6014 * configure: Rebuild.
6015
190852c8
JB
60162018-05-10 Joel Brobecker <brobecker@adacore.com>
6017
6018 PR server/23158:
6019 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6020 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6021 Use it to set the expedite_regs field in the given tdesc.
6022 * x86-tdesc.h: New file.
6023 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6024 Adjust following the addition of the new expedite_regs parameter
6025 to init_target_desc.
6026 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6027 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6028 (i386_linux_read_description, amd64_linux_read_description):
6029 Adjust following the addition of the new expedite_regs parameter
6030 to init_target_desc.
6031 * lynx-i386-low.c: #include "x86-tdesc.h".
6032 (lynx_i386_arch_setup): Adjust following the addition of the new
6033 expedite_regs parameter to init_target_desc.
6034 * nto-x86-low.c: #include "x86-tdesc.h".
6035 (nto_x86_arch_setup): Adjust following the addition of the new
6036 expedite_regs parameter to init_target_desc.
6037 * win32-i386-low.c: #include "x86-tdesc.h".
6038 (i386_arch_setup): Adjust following the addition of the new
6039 expedite_regs parameter to init_target_desc.
6040
7dbac825
JB
60412018-05-10 Joel Brobecker <brobecker@adacore.com>
6042
6043 PR server/23158:
6044 * win32-low.c (win32_create_inferior): Add call to my_wait
6045 setting last_status global.
6046
906994d9
JB
60472018-05-10 Joel Brobecker <brobecker@adacore.com>
6048
6049 PR server/23158:
6050 * win32-low.c (create_process): Only call gdb_tilde_expand if
6051 inferior_cwd is not NULL.
6052
8ee22052
AB
60532018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6054
6055 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6056 registers to the cache if their values have changed.
6057 (i387_xsave_to_cache): Provide default values for x87 control
6058 registers when these features are available, but disabled.
6059 * regcache.c (supply_register_by_name_zeroed): New function.
6060 * regcache.h (supply_register_by_name_zeroed): Declare new
6061 function.
6062
aff689d3
TT
60632018-05-07 Tom Tromey <tom@tromey.com>
6064
6065 * configure: Rebuild.
6066
85e26832
TT
60672018-05-04 Tom Tromey <tom@tromey.com>
6068
6069 * configure: Rebuild.
6070
a3b60e45
JK
60712018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6072 Pedro Alves <palves@redhat.com>
6073
6074 * linux-aarch64-low.c (aarch64_stopped_data_address):
6075 Likewise.
6076
632e107b
TT
60772018-04-27 Tom Tromey <tom@tromey.com>
6078
6079 * configure: Rebuild.
6080
458412c3
TT
60812018-04-23 Tom Tromey <tom@tromey.com>
6082
6083 * configure: Rebuild.
6084
f31c089e
SM
60852018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6086
6087 * Makefile.in (depcomp): Add "..".
6088 (all_deps_files): New and use it.
6089
b319b098
AH
60902018-04-18 Alan Hayward <alan.hayward@arm.com>
6091
6092 * configure.srv (aarch64*-*-linux*): Don't include xml.
6093 (i[34567]86-*-cygwin*): Likewise.
6094 (i[34567]86-*-linux*): Likewise.
6095 (i[34567]86-*-lynxos*): Likewise.
6096 (i[34567]86-*-mingw32ce*): Likewise.
6097 (i[34567]86-*-mingw*): Likewise.
6098 (i[34567]86-*-nto*): Likewise.
6099 (tic6x-*-uclinux): Likewise.
6100 (x86_64-*-linux*): Likewise.
6101 (x86_64-*-mingw*): Likewise.
6102 (x86_64-*-cygwin*): Likewise.
6103
3b74854b
AH
61042018-04-18 Alan Hayward <alan.hayward@arm.com>
6105
6106 * tdesc.c: Remove xml parameter.
6107
e98577a9
AH
61082018-04-18 Alan Hayward <alan.hayward@arm.com>
6109
6110 * server.c (get_features_xml): Remove cast.
6111 * tdesc.c (void target_desc::accept): Fill in function.
6112 (tdesc_get_features_xml): Remove old xml creation.
6113 (print_xml_feature::visit_pre): Add xml vistor.
6114 * tdesc.h (struct target_desc): Make xmltarget mutable.
6115 (tdesc_get_features_xml): Remove declaration.
6116
d278f585
AH
61172018-04-18 Alan Hayward <alan.hayward@arm.com>
6118
6119 * tdesc.c (tdesc_architecture_name): Add new function.
6120 (tdesc_osabi_name): Likewise.
6121 (tdesc_get_features_xml): Use new functions.
6122
eee8a18d
AH
61232018-04-18 Alan Hayward <alan.hayward@arm.com>
6124
6125 * tdesc.c (tdesc_create_flags): Remove.
6126 (tdesc_add_flag): Likewise.
6127 (tdesc_named_type): Likewise.
6128 (tdesc_create_union): Likewise.
6129 (tdesc_create_struct): Likewise.
6130 (tdesc_create_vector): Likewise.
6131 (tdesc_add_bitfield): Likewise.
6132 (tdesc_add_field): Likewise.
6133 (tdesc_set_struct_size): Likewise.
6134
82ec9bc7
AH
61352018-04-18 Alan Hayward <alan.hayward@arm.com>
6136
6137 * tdesc.c (~target_desc): Remove implictly deleted items.
6138 (init_target_desc): Iterate all features.
6139 (tdesc_get_features_xml): Use vector.
6140 (tdesc_create_feature): Create feature.
6141 * tdesc.h (tdesc_feature) Remove
6142 (target_desc): Add features.
6143
ea3e7d71
AH
61442018-04-18 Alan Hayward <alan.hayward@arm.com>
6145
6146 * Makefile.in: Add common/tdesc.c
6147 * tdesc.c (init_target_desc): init all reg_defs from register
6148 vector.
6149 (tdesc_create_reg): Create tdesc_reg.
6150 * tdesc.h (tdesc_feature): Add register vector.
6151
17d08cd4
SM
61522018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6153
6154 * tdesc.h (struct target_desc) <features>: Change type to
6155 std::vector<std::string>.
6156 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6157 changes.
6158 (tdesc_get_features_xml): Likewise.
6159 (tdesc_create_feature): Likewise.
6160
5cd3e386
AH
61612018-03-26 Alan Hayward <alan.hayward@arm.com>
6162
6163 * regcache.c (find_register_by_number): Return a ref.
6164 (find_regno): Use references.
6165 (register_size): Likewise.
6166 (register_data): Likewise.
6167 * tdesc.c (target_desc::~target_desc): Remove free calls.
6168 (target_desc::operator==): Use std::vector compare.
6169 (init_target_desc): Use reference.
6170 (tdesc_create_reg): Use reg constructors.
6171 * tdesc.h (struct target_desc): Replace pointer with object.
6172
dff7492c
AH
61732018-03-23 Alan Hayward <alan.hayward@arm.com>
6174
6175 * regcache.c (find_register_by_number): Make static.
6176 (find_regno): Use find_register_by_number
6177 * regcache.h (struct reg): Remove declaration.
6178
d80e5242
AH
61792018-03-23 Alan Hayward <alan.hayward@arm.com>
6180
6181 * tdesc.c (target_desc::~target_desc): Move to here.
6182 (target_desc::operator==): Likewise.
6183 * tdesc.h (target_desc::~target_desc): Move from here.
6184 (target_desc::operator==): Likewise.
6185
f69c5afb
AA
61862018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6187
6188 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6189
ce29f843
AA
61902018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6191
6192 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6193 S390_TDESC_GS.
6194 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6195 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6196 and init_registers_s390_gs_linux64.
6197
c49bd90b
AA
61982018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6199
6200 * linux-s390-low.c (s390_fill_gs): Remove function.
6201 (s390_fill_gsbc): Remove function.
6202 (s390_regsets): Set fill functions for the guarded storage regsets
6203 to NULL.
6204
7edb9bd3
AA
62052018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6206
6207 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6208 the word size. Add comment.
6209 (s390_get_wordsize): New function.
6210 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6211 pswm with it. Instead, use s390_get_wordsize to determine the
6212 word size first and derive the correct tdesc from that directly.
6213
39be3c7e
SM
62142018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6215
6216 * Makefile.in: Include silent-rules.mk.
6217 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6218 (COMPILE): Add ECHO_CXX.
6219 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6220 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6221 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6222 (version-generated.c): Add ECHO_GEN.
6223 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6224 (IPAGENT_COMPILE): Add ECHO_CXX.
6225 (%-generated.c): Add ECHO_REGDAT.
6226
3ae9ce5d
TT
62272018-03-14 Tom Tromey <tom@tromey.com>
6228
6229 PR cli/14977:
6230 * ax.c (ax_printf): Special case for NULL.
6231
e6a58aa8
SM
62322018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6233
6234 * linux-low.c (linux_qxfer_libraries_svr4): Use
6235 xml_escape_text_append.
6236
f6e8a41e
SM
62372018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6238
6239 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6240
b9671caf
SM
62412018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6242
6243 * server.c (handle_general_set): Remove unnecessary xstrdup.
6244
e80aaf61
SM
62452018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6246
6247 * server.c (parse_debug_format_options): Adjust to
6248 delim_string_to_char_ptr_vec changes.
6249 * thread-db.c (thread_db_load_search): Adjust to
6250 dirnames_to_char_ptr_vec changes.
6251
b1223e78
MM
62522018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6253
6254 * target.h (target_enable_btrace, target_disable_btrace)
6255 (target_read_btrace, target_read_btrace_conf): Turn macro into
6256 inline function. Throw error if target method is not defined.
6257 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6258 check for btrace target method. Be prepared to handle exceptions
6259 from btrace target methods.
6260
81561546
SDJ
62612018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6262
6263 * server.c (captured_main): Change order of error message printed
6264 when the current working directory cannot be found.
6265
25e3c82c
SDJ
62662018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6267
6268 * server.c: Include "filenames.h" and "pathstuff.h".
6269 (program_name): Delete variable.
6270 (program_path): New anonymous class.
6271 (get_exec_wrapper): Use "program_path" instead of
6272 "program_name".
6273 (handle_v_run): Likewise.
6274 (captured_main): Likewise.
6275 (process_serial_event): Likewise.
6276
b4987c95
SDJ
62772018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6278
6279 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6280 (OBJS): Add "pathstuff.o".
6281 * server.c (current_directory): New global variable.
6282 (captured_main): Initialize "current_directory".
6283
f46cd62a
AH
62842018-02-26 Alan Hayward <alan.hayward@arm.com>
6285
6286 * tdesc.c: Use common/tdesc.h.
6287 * tdesc.h: Likewise.
6288
a543c5ca
AH
62892018-02-20 Alan Hayward <alan.hayward@arm.com>
6290 Simon Marchi <simon.marchi@ericsson.com>
6291
6292 * Makefile.in: Switch order of make rules.
6293
b5884fa7
AH
62942018-02-19 Alan Hayward <alan.hayward@arm.com>
6295
6296 * Makefile.in: Add common directory in build.
6297 * configure.ac: Add common reference.
6298 * configure: Regenerate.
6299
de6242d3
MM
63002018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6301
6302 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6303 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6304 * spu-low.c (spu_target_ops): Likewise.
6305 * win32-low.c (win32_target_ops): Likewise.
6306 * server.c (supported_btrace_packets): Report packets unconditionally.
6307 * target.h (target_ops) <supports_btrace>: Remove.
6308 (target_supports_btrace): Remove.
6309
9ee23a85
MM
63102018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6311
6312 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6313 (handle_btrace_disable): Change return type to void. Use exceptions
6314 to report errors.
6315 (handle_btrace_general_set): Catch exception and copy message to
6316 return message.
6317
8ce47547
TT
63182018-02-08 Tom Tromey <tom@tromey.com>
6319
6320 * linux-low.c (install_software_single_step_breakpoints): Use
6321 make_scoped_restore.
6322 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6323 (do_restore_current_thread_cleanup): Remove.
6324 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6325 declare.
6326
45dd3607
TT
63272018-02-08 Tom Tromey <tom@tromey.com>
6328
6329 * mem-break.c (set_raw_breakpoint_at): Use
6330 gdb::unique_xmalloc_ptr.
6331
e671cd59
PA
63322018-01-30 Pedro Alves <palves@redhat.com>
6333
6334 PR gdb/13211
6335 * target.c (target_terminal::terminal_state): Rename to ...
6336 (target_terminal::m_terminal_state): ... this.
6337
a0aad537
JC
63382018-01-19 James Clarke <jrtc27@jrtc27.com>
6339
6340 * linux-low.c (handle_extended_wait): Surround call to
6341 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6342
4d9b86e1
SM
63432018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6344
6345 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6346 linux_ptrace_attach_fail_reason_string now returning an
6347 std::string.
6348 (linux_attach): Likewise.
6349 * thread-db.c (attach_thread): Likewise.
6350
f517c180
EA
63512018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6352
6353 PR gdb/21559
6354 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6355 checking for fs_base/gs_base fields in struct user_regs_struct.
6356 * configure: Regenerate.
6357
9a70f35c
YQ
63582018-01-16 Yao Qi <yao.qi@linaro.org>
6359
6360 PR gdb/18749
6361 * linux-low.c (fetch_register): Call supply_register instead of
6362 error.
6363
605fd3c6
YQ
63642018-01-08 Yao Qi <yao.qi@linaro.org>
6365 Simon Marchi <simon.marchi@ericsson.com>
6366
6367 * Makefile.in (OBS): Remove selftest.o.
6368 * configure.ac: Set srv_selftest_objs if $development is true.
6369 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6370 * configure: Re-generated.
6371 * server.c (captured_main): Wrap variable selftest_filter with
6372 GDB_SELF_TEST.
6373
2cc05030
SM
63742018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6375
6376 * server.c (parse_debug_format_options): Return std::string.
6377 (handle_monitor_command, captured_main): Adjust.
6378
e379cee6
PA
63792018-01-05 Pedro Alves <palves@redhat.com>
6380
6381 PR gdb/18653
6382 * server.c (captured_main): Pass quiet=false to
6383 save_original_signals_state.
6384
82e1e79a
JB
63852018-01-01 Joel Brobecker <brobecker@adacore.com>
6386
6387 * gdbreplay.c (gdbreplay_version): Update copyright year in
6388 version message.
6389 * server.c (gdbserver_version): Likewise.
6390
8e481c3b
TT
63912017-12-08 Tom Tromey <tom@tromey.com>
6392
6393 * ax.c (ax_printf): Update.
6394
a8806230
YQ
63952017-12-07 Yao Qi <yao.qi@linaro.org>
6396
6397 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6398 aarch64_linux_read_description.
6399 * linux-amd64-ipa.c (idx2mask): New array.
6400 (get_ipa_tdesc): Move idx2mask out.
6401 (initialize_low_tracepoint): Initialize target descriptions.
6402 * linux-i386-ipa.c (idx2mask): New array.
6403 (get_ipa_tdesc): Move idx2mask out.
6404 (initialize_low_tracepoint): Initialize target descriptions.
6405
d4a0e8b5
SM
64062017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6407
6408 * tdesc.c (struct tdesc_type): Change return type.
6409 (tdesc_add_flag): Change parameter type.
6410 (tdesc_add_bitfield): Likewise.
6411 (tdesc_add_field): Likewise.
6412 (tdesc_set_struct_size): Likewise.
6413
798a7429
SM
64142017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6415
6416 * regcache.c (registers_to_string): Remove unused variable.
6417
c0e15c9b
SM
64182017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6419
6420 * inferiors.c (for_each_inferior_with_data): Remove.
6421 * inferiors.h (for_each_inferior_with_data): Remove.
6422 * server.c (handle_qxfer_threads_worker): Change parameter type.
6423 (handle_qxfer_threads_proper): Use for_each_thread.
6424
f0045347
SM
64252017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6426
6427 * inferiors.c (for_each_inferior): Remove.
6428 (clear_inferiors): Use for_each_thread.
6429 * inferiors.h (for_each_inferior): Remove.
6430 * linux-low.c (linux_wait_for_event_filtered): Use
6431 for_each_thread.
6432 (linux_stabilize_threads): Likewise.
6433 * regcache.c (regcache_release): Likewise.
6434 * server.c (gdb_wants_all_threads_stopped): Likewise.
6435 (clear_pending_status_callback): Remove.
6436 (handle_status): Use for_each_thread.
6437 (captured_main): Likewise.
6438 * win32-low.c (child_init_thread_list): Likewise.
6439 (win32_clear_inferiors): Likewise.
6440 (fake_breakpoint_event): Likewise.
6441
9521758b
SM
64422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6443
6444 * inferiors.h (find_inferior): Remove.
6445 * inferiors.c (find_inferior): Remove.
6446
8f86d7aa
SM
64472017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6448
6449 * linux-low.c (resume_status_pending_p): Update comment.
6450 (need_step_over_p): Update comment.
6451
e2b44075
SM
64522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6453
6454 * linux-low.c (proceed_one_lwp): Return void, change parameter
6455 type.
6456 (unsuspend_and_proceed_one_lwp): Likewise.
6457 (proceed_all_lwps): Use for_each_thread.
6458 (unstop_all_lwps): Likewise.
6459
c80825ff
SM
64602017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6461
6462 * linux-low.c (linux_resume_one_thread): Return void, take
6463 parameter directly.
6464 (linux_resume): Use for_each_thread.
6465
df3e4dbe
SM
64662017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6467
6468 * linux-low.c (send_sigstop_callback): Return void, change
6469 parameter type. Rename to...
6470 (send_sigstop): ... this.
6471 (suspend_and_send_sigstop_callback): Return void, change parameter
6472 type. Rename to...
6473 (suspend_and_send_sigstop): ... this.
6474 (stop_all_lwps): Use for_each_thread.
6475
5a6b0a41
SM
64762017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6477
6478 * linux-low.c (lwp_running): Return bool, remove unused
6479 argument.
6480 (linux_stabilize_threads): Use find_thread.
6481
39a64da5
SM
64822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * linux-low.c (select_singlestep_lwp_callback): Remove.
6485 (count_events_callback): Remove.
6486 (select_event_lwp_callback): Remove.
6487 (select_event_lwp): Use find_thread/for_each_thread.
6488
a1385b7b
SM
64892017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6490
6491 * linux-low.c (not_stopped_callback): Return bool, take filter
6492 argument directly.
6493 (linux_wait_for_event_filtered): Use find_thread.
6494 (linux_wait_1): Likewise.
6495
454296a2
SM
64962017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6497
6498 * linux-low.c (same_lwp): Remove.
6499 (find_lwp_pid): Use find_thread.
6500
6b2a85da
SM
65012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6502
6503 * linux-low.c (delete_lwp_callback): Remove.
6504 (linux_mourn): Use for_each_thread.
6505
798a38e8
SM
65062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6507
6508 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6509 args parameter, don't check for pid.
6510 (linux_detach): Use for_each_thread.
6511
e4eb0dec
SM
65122017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6513
6514 * linux-low.c (struct counter): Remove.
6515 (second_thread_of_pid_p): Remove.
6516 (last_thread_of_process_p): Use find_thread.
6517
83e1b6c1
SM
65182017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6519
6520 * inferiors.c (find_inferior_in_random): Remove.
6521 * inferiors.h (find_inferior_in_random): Remove.
6522 * linux-low.c (status_pending_p_callback): Return bool, accept
6523 parameter ptid directly.
6524 (linux_wait_for_event_filtered): Use find_thread_in_random.
6525 (linux_wait_1): Likewise.
6526
8dc7b443
SM
65272017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6528
6529 * inferiors.c (find_inferior_id): Remove.
6530 (find_thread_ptid): Move implemention from find_inferior_id to
6531 here.
6532 * inferiors.h (find_inferior_id): Remove.
6533 * server.c (handle_status): Use find_thread_ptid.
6534 (process_serial_event): Likewise.
6535 * thread-db.c (find_one_thread): Likewise.
6536 (thread_db_thread_handle): Likewise.
6537 * win32-low.c (thread_rec): Likewise.
6538 (child_delete_thread): Likewise.
6539 (win32_thread_alive): Likewise.
6540 (get_child_debug_event): Likewise.
6541
da25033c
SM
65422017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6543
6544 * linux-mips-low.c (update_watch_registers_callback): Return
6545 void, remove pid_p parameter, don't check for pid.
6546 (mips_insert_point, mips_remove_point): Use for_each_thread.
6547
c91bb56b
SM
65482017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6549
6550 * lynx.low (lynx_delete_thread_callback): Remove.
6551 (lynx_mourn): Use for_each_thread.
6552
634a3254
SM
65532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6554
6555 * regcache.c (regcache_invalidate_one): Remove.
6556 (regcache_invalidate_pid): use for_each_thread.
6557
41272101
TT
65582017-11-26 Tom Tromey <tom@tromey.com>
6559
6560 * linux-low.c (linux_create_inferior): Update.
6561
f5291a6f
UW
65622017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6563
6564 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6565
6654d750
AH
65662017-11-24 Alan Hayward <alan.hayward@arm.com>
6567
6568 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6569 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6570 * linux-aarch64-tdesc-selftest.c: New file.
6571 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6572
65732017-11-24 Alan Hayward <alan.hayward@arm.com>
6574
6575 * configure.srv: Add new file.
6576 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6577 * linux-aarch64-tdesc-selftest.c: New file.
6578 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6579
49bdb7ee
AH
65802017-11-24 Alan Hayward <alan.hayward@arm.com>
6581
6582 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6583 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6584 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6585
d6d7ce56
AH
65862017-11-24 Alan Hayward <alan.hayward@arm.com>
6587
6588 * configure.srv: Add new files.
6589 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6590 aarch64_linux_read_description.
6591 * linux-aarch64-low.c (aarch64_linux_read_description):
6592 Merge with aarch64_arch_setup.
6593 (aarch64_arch_setup): Call aarch64_linux_read_description.
6594 * linux-aarch64-tdesc.c: New file.
6595 * linux-aarch64-tdesc.h: New file.
6596
506fe5f4
YQ
65972017-11-24 Yao Qi <yao.qi@linaro.org>
6598
6599 * configure.srv: Set $srv_regobj for tic6x-linux.
6600 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6601 (tic6x_read_description): Move some code to tic6x_arch_setup.
6602 (tic6x_tdesc_test): New function.
6603 (initialize_low_arch): Call selftests::register_test.
6604
29f9a567
YQ
66052017-11-22 Yao Qi <yao.qi@linaro.org>
6606
6607 * remote-utils.c (prepare_resume_reply): Use memcpy.
6608
578290ec
SM
66092017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6610
6611 * linux-low.c (kill_one_lwp_callback): Return void, take
6612 argument directly, don't filter on pid.
6613 (linux_kill): Use for_each_thread.
6614
eca55aec
SM
66152017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6616
6617 * linux-low.c (need_step_over_p): Return bool, remove dummy
6618 argument.
6619 (linux_resume, proceed_all_lwps): Use find_thread.
6620
25c28b4d
SM
66212017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6622
6623 * linux-low.c (resume_status_pending_p): Return bool, remove
6624 flag_p argument.
6625 (linux_resume): Use find_thread.
6626
5fdda392
SM
66272017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6628
6629 * linux-low.c (struct thread_resume_array): Remove.
6630 (linux_set_resume_request): Return void, take arguments
6631 directly.
6632 (linux_resume): Use for_each_thread.
6633
fcb056a5
SM
66342017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6635
6636 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6637 return bool, remove data argument.
6638 (linux_stabilize_threads): Use find_thread.
6639
139720c5
SM
66402017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6641
6642 * linux-low.c (unsuspend_one_lwp): Remove.
6643 (unsuspend_all_lwps): Use for_each_thread, inline code from
6644 unsuspend_one_lwp.
6645
6d1e5673
SM
66462017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6647
6648 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6649 * linux-low.c (struct iterate_over_lwps_args): Remove.
6650 (iterate_over_lwps_filter): Remove.
6651 (iterate_over_lwps): Use find_thread.
6652
bbf550d5
SM
66532017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6654
6655 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6656 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6657 code from reset_lwp_ptrace_options_callback.
6658
00192f77
SM
66592017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6660
6661 * linux-arm-low.c (struct update_registers_data): Remove.
6662 (update_registers_callback): Return void, take arguments
6663 directly, don't check thread's pid.
6664 (arm_insert_point, arm_remove_point): Use for_each_thread.
6665
2bee2b6c
SM
66662017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6667
6668 * win32-low.c (continue_one_thread): Return void, take argument
6669 directly.
6670 (child_continue): Use for_each_thread.
6671
0b360f19
SM
66722017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6673
6674 * win32-i386-low.c (update_debug_registers_callback): Rename
6675 to ...
6676 (update_debug_registers): ... this, return void, remove pid_p arg.
6677 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6678
f27866ba
SM
66792017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6680
6681 * inferiors.h (struct process_info): Add constructor, initialize
6682 fields..
6683 <syscalls_to_catch>: Change type to std::vector<int>.
6684 * inferiors.c (add_process): Allocate process_info with new.
6685 (remove_process): Free process_info with delete.
6686 * linux-low.c (handle_extended_wait): Adjust.
6687 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6688 * server.c (handle_general_set): Adjust.
6689
e849ea89
PA
66902017-11-16 Pedro Alves <palves@redhat.com>
6691
6692 * remote-utils.c (remote_close): Block SIGIO signals instead of
6693 uninstalling the SIGIO handler.
6694
1d0aa65c
AH
66952017-11-16 Alan Hayward <alan.hayward@arm.com>
6696
6697 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6698
3491a34c
YQ
66992017-11-16 Yao Qi <yao.qi@linaro.org>
6700
6701 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6702 (tic6x_store_gregset): Likewise.
6703 (tic6x_usrregs_info): Move it up.
6704
a602f924
AH
67052017-11-15 Alan Hayward <alan.hayward@arm.com>
6706
6707 * Makefile.in: Update arch rules.
6708 * configure.srv: Explicitly mark arch/ files.
6709
5616b6c3
AS
67102017-11-13 Andreas Schwab <schwab@suse.de>
6711
6712 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6713 function.
6714 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6715
d1928160
PA
67162017-11-06 Pedro Alves <palves@redhat.com>
6717
6718 * config.in, configure: Regenerate.
6719
bac608e7
SM
67202017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6721
6722 * target.c (struct thread_search): Remove.
6723 (thread_search_callback): Remove.
6724 (prepare_to_access_memory): Use for_each_thread instead of
6725 find_inferior. Inline code from thread_search_callback.
6726
eaddb425
SM
67272017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6728
6729 * server.c (struct visit_actioned_threads_data): Remove.
6730 (visit_actioned_threads): Change prototype to take arguments
6731 directly.
6732 (resume): Use find_thread instead of find_inferior.
6733
99078d34
SM
67342017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6735
6736 * server.c (queue_stop_reply_callback): Change prototype, return
6737 void.
6738 (find_status_pending_thread_callback): Remove.
6739 (handle_status): Replace find_inferior with find_thread and
6740 for_each_thread.
6741
cc628f3d
AH
67422017-10-25 Alan Hayward <alan.hayward@arm.com>
6743
6744 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6745 with REGNO.
6746 (aarch64_store_gregset): Likewise.
6747 (aarch64_fill_fpregset): Likewise.
6748 (aarch64_store_fpregset): Likewise.
6749
4d3bb80e
SM
67502017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6751
6752 * gdbthread.h (find_thread, for_each_thread): New functions.
6753 * inferiors.c (thread_of_pid): Remove.
6754 (find_any_thread_of_pid): Use find_thread.
6755 * linux-low.c (num_lwps): Use for_each_thread.
6756
7a7cdfa0
YQ
67572017-10-17 Yao Qi <yao.qi@linaro.org>
6758
6759 * Makefile.in: Remove one rule.
6760 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6761
e675d170
YQ
67622017-10-17 Yao Qi <yao.qi@linaro.org>
6763
6764 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6765 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6766
7eb4e0f9
YQ
67672017-10-17 Yao Qi <yao.qi@linaro.org>
6768
6769 * configure.srv: Rename arm.o with arch/arm.o.
6770
60d6cfc9
YQ
67712017-10-17 Yao Qi <yao.qi@linaro.org>
6772
6773 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6774 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6775 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6776 (arch-i386.o, arch-amd64.o): Remove rules.
6777 (arch/%.o): New rule.
6778 Update POSTCOMPILE and COMPILE.pre.
6779 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6780 * configure: Re-generated.
6781 * configure.srv: Replace arch-i386.o with arch/i386.o.
6782 Replace arch-amd64.o with arch/amd64.o.
6783
5bfda255
YQ
67842017-10-16 Yao Qi <yao.qi@linaro.org>
6785
6786 * configure: Regenerated.
6787
9c80ecd6
SM
67882017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6789
6790 * inferiors.h: (struct inferior_list): Remove.
6791 (struct inferior_list_entry); Remove.
6792 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6793 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6794 get_first_inferior): Remove.
6795 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6796 find_inferior_id, find_inferior_in_random): Change signature.
6797 * inferiors.c (all_threads): Change type to
6798 std::list<thread_info *>.
6799 (get_thread): Remove macro.
6800 (find_inferior, find_inferior_id): Change signature, implement
6801 using find_thread.
6802 (find_inferior_in_random): Change signature, implement using
6803 find_thread_in_random.
6804 (for_each_inferior, for_each_inferior_with_data): Change
6805 signature, implement using for_each_thread.
6806 (add_inferior_to_list, remove_inferior): Remove.
6807 (add_thread, get_first_thread, thread_of_pid,
6808 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6809 (get_first_inferior, one_inferior_p, clear_inferior_list):
6810 Remove.
6811 (clear_inferiors, get_thread_process): Update.
6812 * gdbthread.h: Include <list>.
6813 (struct thread_info) <entry>: Remove field.
6814 <id>: New field.
6815 (all_threads): Change type to std::list<thread_info *>.
6816 (get_first_inferior): Add doc.
6817 (find_thread, for_each_thread, find_thread_in_random): New
6818 functions.
6819 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6820 * linux-arm-low.c (update_registers_callback): Update.
6821 * linux-low.c (second_thread_of_pid_p): Update.
6822 (kill_one_lwp_callback, linux_detach_lwp_callback,
6823 delete_lwp_callback, status_pending_p_callback, same_lwp,
6824 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6825 iterate_over_lwps, not_stopped_callback,
6826 resume_stopped_resumed_lwps, count_events_callback,
6827 select_singlestep_lwp_callback, select_event_lwp_callback,
6828 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6829 suspend_and_send_sigstop_callback, wait_for_sigstop,
6830 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6831 lwp_running, linux_set_resume_request, resume_status_pending_p,
6832 need_step_over_p, start_step_over, linux_resume_one_thread,
6833 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6834 reset_lwp_ptrace_options_callback): Update.
6835 * linux-mips-low.c (update_watch_registers_callback): Update.
6836 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6837 Update.
6838 (free_register_cache_thread_one): Remove.
6839 (regcache_release): Update.
6840 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6841 handle_qxfer_threads_worker): Update.
6842 (handle_query): Update, use list iterator.
6843 (visit_actioned_threads, handle_pending_status,
6844 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6845 clear_pending_status_callback, set_pending_status_callback,
6846 find_status_pending_thread_callback, handle_status,
6847 process_serial_event): Update.
6848 * target.c (thread_search_callback): Update.
6849 * thread-db.c (thread_db_get_tls_address): Update.
6850 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6851 Update.
6852 * win32-i386-low.c (update_debug_registers_callback): Update.
6853 * win32-low.c (delete_thread_info, child_delete_thread,
6854 continue_one_thread, suspend_one_thread,
6855 get_child_debug_event): Adjust.
6856
9179355e
SM
68572017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6858
6859 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6860 * inferiors.h: Include <list>.
6861 (struct process_info) <entry>: Remove field.
6862 <pid>: New field.
6863 (pid_of): Change macro to function.
6864 (ptid_of, lwpid_of): Remove macro.
6865 (all_processes): Change type to std::list<process_info *>.
6866 (ALL_PROCESSES): Remove macro.
6867 (for_each_process, find_process): New function.
6868 * inferiors.c (all_processes): Change type to
6869 std::list<process_info *>.
6870 (find_thread_process): Adjust.
6871 (add_process): Likewise.
6872 (remove_process): Likewise.
6873 (find_process_pid): Likewise.
6874 (get_first_process): Likewise.
6875 (started_inferior_callback): Remove.
6876 (have_started_inferiors_p): Adjust.
6877 (attached_inferior_callback): Remove.
6878 (have_attached_inferiors_p): Adjust.
6879 * linux-low.c (check_zombie_leaders): Likewise.
6880 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6881 (x86_linux_update_xmltarget): Adjust.
6882 * server.c (handle_query): Likewise.
6883 (gdb_reattached_process): Remove.
6884 (handle_status): Adjust.
6885 (kill_inferior_callback): Likewise.
6886 (detach_or_kill_inferior): Remove.
6887 (print_started_pid): Likewise.
6888 (print_attached_pid): Likewise.
6889 (detach_or_kill_for_exit): Update.
6890 (process_serial_event): Likewise.
6891 * linux-arm-low.c (arm_new_fork): Likewise.
6892
c9cb8905
SM
68932017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6894
6895 * dll.h: Include <list>.
6896 (struct dll_info): Add constructor.
6897 <entry>: Remove field.
6898 (all_dlls): Change type to std::list<dll_info>.
6899 * dll.c: Include <algorithm>.
6900 (get_dll): Remove macro.
6901 (all_dlls): Change type to std::list<dll_info *>.
6902 (free_one_dll): Remove.
6903 (match_dll): Likewise.
6904 (loaded_dll): Adjust.
6905 (unloaded_dll): Adjust to all_dlls type change, use
6906 std::find_if. Inline code from match_dll.
6907 (clear_dlls): Adjust to all_dlls type change.
6908 * server.c (emit_dll_description): Remove.
6909 (handle_qxfer_libraries): Adjust to all_dlls type change,
6910 integrate emit_dll_description's functionality.
6911
04ec7890
SM
69122017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6913
6914 * linux-low.h (struct linux_target_ops) <delete_process>: New
6915 field.
6916 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6917 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6918 (struct linux_target_ops): Add delete_process callback.
6919 * linux-arm-low.c (arm_delete_process): New.
6920 (struct linux_target_ops): Add delete_process callback.
6921 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6922 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6923 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6924 * linux-mips-low.c (mips_linux_delete_process): New.
6925 (struct linux_target_ops): Add delete_process callback.
6926 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6927 * linux-s390-low.c (struct linux_target_ops): Likewise.
6928 * linux-sh-low.c (struct linux_target_ops): Likewise.
6929 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6930 * linux-tile-low.c (struct linux_target_ops): Likewise.
6931 * linux-x86-low.c (x86_linux_delete_process): New.
6932 (struct linux_target_ops): Add delete_process callback.
6933 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6934
466eecee
SM
69352017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6936
6937 * linux-aarch64-low.c (the_low_target): Add thread delete
6938 callback.
6939 * linux-arm-low.c (arm_delete_thread): New function.
6940 (the_low_target): Add thread delete callback.
6941 * linux-bfin-low.c (the_low_target): Likewise.
6942 * linux-crisv32-low.c (the_low_target): Likewise.
6943 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6944 set.
6945 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6946 field.
6947 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6948 * linux-mips-low.c (mips_linux_delete_thread): New function.
6949 (the_low_target): Add thread delete callback.
6950 * linux-ppc-low.c (the_low_target): Likewise.
6951 * linux-s390-low.c (the_low_target): Likewise.
6952 * linux-sh-low.c (the_low_target): Likewise.
6953 * linux-tic6x-low.c (the_low_target): Likewise.
6954 * linux-tile-low.c (the_low_target): Likewise.
6955 * linux-x86-low.c (the_low_target): Likewise.
6956 * linux-xtensa-low.c (the_low_target): Likewise.
6957
b79f7801
YZ
69582017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6959
6960 * win32-low.c: Include "common-inferior.h".
6961
bc3b087d
SDJ
69622017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6963
6964 * inferiors.c (set_inferior_cwd): New function.
6965 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6966 (handle_query): Inform that QSetWorkingDir is supported.
6967 * win32-low.c (create_process): Pass the inferior's cwd to
6968 CreateProcess.
6969
d092c5a2
SDJ
69702017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6971
6972 * inferiors.c (current_inferior_cwd): New global variable.
6973 (get_inferior_cwd): New function.
6974 * inferiors.h (struct process_info) <cwd>: New field.
6975
7da0a886
SDJ
69762017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6977
6978 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6979 (OBS): Add gdb_tilde_expand.o.
6980
289a6840
SM
69812017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6982
6983 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6984 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6985
256642e8
PA
69862017-09-29 Pedro Alves <palves@redhat.com>
6987
6988 * ax.c (gdb_parse_agent_expr): Constify.
6989 * ax.h (gdb_parse_agent_expr): Constify.
6990 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6991 Constify.
6992 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6993 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6994 * remote-utils.h (read_ptid): Constify.
6995 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6996 (process_point_options, process_serial_event): Constify.
6997 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6998 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6999 (cmd_qtbuffer): Constify.
7000
5b9ca4d4
PA
70012017-09-29 Pedro Alves <palves@redhat.com>
7002
7003 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7004 fails.
7005
94c207e0
PA
70062017-09-29 Pedro Alves <palves@redhat.com>
7007
7008 * linux-low.c (handle_extended_wait): Pass parent thread instead
7009 of process to thread_db_notice_clone.
7010 * linux-low.h (thread_db_notice_clone): Replace parent process
7011 parameter with parent thread parameter.
7012 * thread-db.c (find_one_thread): Add comment.
7013 (thread_db_notice_clone): Replace parent process parameter with
7014 parent thread parameter. Temporarily switch to the parent thread.
7015
75352e28
SDJ
70162017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7017
7018 * gdbthread.h: Include "common-gdbthread.h".
7019 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7020 "if" when validating the ptid.
7021 * remote-utils.c: Include "gdbthread.h".
7022 (prepare_resume_reply): Use "switch_to_thread".
7023 * target.c (done_accessing_memory): Likewise.
7024
ad339634
AA
70252017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7026
7027 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7028 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7029 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7030 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7031 s390x-gs-linux64-ipa.o to ipa_obj.
7032 * linux-s390-low.c (HWCAP_S390_GS): New define.
7033 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7034 New functions.
7035 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7036 (s390_arch_setup): Check for guarded-storage support and choose
7037 appropriate tdesc.
7038 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7039 init_registers_s390x_gs_linux64.
7040 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7041 enum value.
7042 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7043 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7044
cc4d742f
SM
70452017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7046
7047 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7048
f6327dcb
KB
70492017-09-21 Kevin Buettner <kevinb@redhat.com>
7050
7051 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7052 (thread_db_thread_handle): Declare.
7053 * linux-low.c (linux_target_ops): Initialize thread_handle.
7054 * server.c (handle_qxfer_threads_worker): Add support for
7055 "handle" attribute.
7056 * target.h (struct target_ops): Add new function pointer,
7057 thread_handle.
7058 (target_thread_handle): Define.
7059 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7060 field in lwp.
7061 (thread_db_thread_handle): New function.
7062
86299109
KB
70632017-09-21 Kevin Buettner <kevinb@redhat.com>
7064
7065 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7066 * linux-low.h (thread_db_notice_clone): Declare.
7067 * thread-db.c (thread_db_notice_clone): New function.
7068
f557a88a
PA
70692017-09-21 Pedro Alves <palves@redhat.com>
7070
7071 * server.c (gdb_read_memory, handle_status, process_serial_event)
7072 (handle_serial_event, handle_target_event): Adjust to
7073 set_desired_thread prototype change.
7074 * target.c (set_desired_thread): Remove 'use_general' parameter
7075 and adjust.
7076 * target.h (set_desired_thread): Remove 'use_general' parameter.
7077
223ffa71
TT
70782017-09-20 Tom Tromey <tom@tromey.com>
7079
7080 * target.c (target_terminal::terminal_state): Define.
7081 (target_terminal::init): Rename from target_terminal_init.
7082 (target_terminal::inferior): Rename from
7083 target_terminal_inferior.
7084 (target_terminal::ours): Rename from target_terminal_ours.
7085 (target_terminal::ours_for_output, target_terminal::info): New.
7086
04fd3ba9
SM
70872017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7088
7089 * server.c (accumulate_file_name_length): Remove.
7090 (emit_dll_description): Adjust to std::string change.
7091 (handle_qxfer_libraries): Use std::string to hold document.
7092
5e187554
SM
70932017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7094
7095 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7096 return type of xml_escape_text.
7097 * server.c (emit_dll_description): Likewise.
7098
1526853e
SM
70992017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7100
7101 * server.c (captured_main): Accept argument for --selftest.
7102 Update run_tests call.
7103 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7104 when registering selftests.
7105
c4dfafab
SDJ
71062017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7107
7108 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7109 instead of "VEC" for "target_desc.reg_defs".
7110 (regcache_cpy): Likewise.
7111 (registers_to_string): Likewise.
7112 (registers_from_string): Likewise.
7113 (find_regno): Likewise.
7114 (supply_regblock): Likewise.
7115 (regcache_raw_read_unsigned): Likewise.
7116 * tdesc.c (init_target_desc): Likewise.
7117 (tdesc_create_reg): Likewise.
7118 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7119 (struct target_desc) <reg_defs>: Convert to "std::vector".
7120 (target_desc): Do not initialize "reg_defs".
7121 (~target_desc): Update code to use "std::vector" instead of "VEC"
7122 for "target_desc.reg_defs".
7123 (operator==): Likewise.
7124
124aceb4
SM
71252017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7126
7127 * inferiors.h (thread_to_gdb_id): Remove.
7128 * inferiors.c (thread_to_gdb_id): Remove.
7129 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7130 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7131 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7132 Likewise.
7133 * nto-low.c (nto_fetch_registers, nto_store_registers,
7134 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7135
96cde54f
SM
71362017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7137
7138 * inferiors.h (gdb_id_to_thread_id): Remove.
7139 * inferiors.c (gdb_id_to_thread_id): Remove.
7140 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7141 removal. Move pid declaration closer to where it's used.
7142
e8ca139e
SM
71432017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7144
7145 * server.c (handle_detach): New function.
7146 (process_serial_event): Move code out, call handle_detach.
7147
f8a4e119
SM
71482017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7149
7150 * server.c (require_running): Rename to ...
7151 (require_running_or_return): ... this ...
7152 (require_running_or_break): ... and this.
7153 (handle_query, process_serial_event): Adjust.
7154
0eb0a407
SM
71552017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7156
7157 * linux-low.c (linux_set_resume_request): Remove unused
7158 variables.
7159
785922a5
SM
71602017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7161
7162 * server.c (first_thread_of): Remove.
7163 (process_serial_event): Replace usage of first_thread_of with
7164 find_any_thread_of_pid.
7165 * tracepoint.c (same_process_p): Remove.
7166 (gdb_agent_about_to_close): Replace usage of same_process_p with
7167 find_any_thread_of_pid.
7168 * linux-x86-low.c (same_process_callback): Remove.
7169 (x86_arch_setup_process_callback): Replace usage of
7170 same_process_callback with find_any_thread_of_pid.
7171 * thread-db.c (any_thread_of): Remove.
7172 (switch_to_process): Replace usage of any_thread_of with
7173 find_any_thread_of_pid.
7174 * inferiors.c (thread_pid_matches_callback): Remove.
7175 (find_thread_process): Adjust to use find_any_thread_of_pid.
7176
a059f00c
SDJ
71772017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7178
7179 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 7180 with "!VEC_empty".
a059f00c 7181
cc397f3a
SDJ
71822017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7183
7184 * linux-low.c (handle_extended_wait): Use
7185 "allocate_target_description" instead of "XNEW".
7186 * linux-x86-low.c (initialize_low_arch): Likewise.
7187
22916b07
YQ
71882017-09-05 Yao Qi <yao.qi@linaro.org>
7189
7190 * configure.srv (srv_i386_regobj): Remove.
7191 (srv_amd64_regobj): Remove.
7192 (srv_regobj): Set it to "" for x86 non-linux targets.
7193 * linux-x86-tdesc.c (i386_linux_read_description):
7194 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7195 (init_registers_i386): Remove the declaration.
7196 (tdesc_i386): Remove the declaration.
7197 (lynx_i386_arch_setup): Call i386_create_target_description.
7198 * nto-x86-low.c: Likewise.
7199 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7200 [!__x86_64__]: include arch/i386.h.
7201 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7202
38602d55
YQ
72032017-09-05 Yao Qi <yao.qi@linaro.org>
7204
7205 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7206 i386/amd64-XXX-linux from it.
7207
44b886ff
YQ
72082017-09-05 Yao Qi <yao.qi@linaro.org>
7209
7210 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7211 false.
7212 (ipa_amd64_linux_regobj): Remove.
7213 (ipa_x32_linux_regobj): Remove.
7214
b4570e4b
YQ
72152017-09-05 Yao Qi <yao.qi@linaro.org>
7216
7217 * Makefile.in (arch-amd64.o): New rule.
7218 * configure.srv: Append arch-amd64.o.
7219 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7220 (get_ipa_tdesc): Call amd64_linux_read_description.
7221 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7222 and init_registers_amd64_XXX.
7223 * linux-x86-low.c (x86_linux_read_description): Call
7224 amd64_linux_read_description.
7225 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7226 (initialize_low_arch): Don't call init_registers_x32_XXX and
7227 init_registers_amd64_XXX.
7228 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7229 and tdesc_amd64_XXX.
7230 [__x86_64__] (amd64_tdesc_test): New function.
7231 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7232 and init_registers_amd64_XXX.
7233 * linux-x86-tdesc.c: Include arch/amd64.h.
7234 (xcr0_to_tdesc_idx): New function.
7235 (i386_linux_read_description): New function.
7236 (amd64_get_ipa_tdesc_idx): New function.
7237 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7238 (amd64_get_ipa_tdesc): Declare.
7239
d1f28ea2
YQ
72402017-09-05 Yao Qi <yao.qi@linaro.org>
7241
7242 * configure.srv (srv_i386_linux_xmlfiles): Remove
7243 i386/i386-XXX-linux.xml from it.
7244
25a93583
YQ
72452017-09-05 Yao Qi <yao.qi@linaro.org>
7246
7247 * configure.srv: Set srv_i386_linux_regobj empty if $development
7248 is false.
7249 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7250 initialize_low_tdesc.
7251 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7252 with #if initialize_low_tdesc.
7253 * linux-x86-tdesc-selftest.c: New file.
7254 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7255
5f035c07
YQ
72562017-09-05 Yao Qi <yao.qi@linaro.org>
7257
7258 * Makefile.in (arch-i386.o): New rule.
7259 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7260 (x86_64-*-linux*): Likewise.
7261 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7262 include arch/i386.h.
7263 (i386_linux_read_description): Remove code and call
7264 i386_create_target_description.
7265 * tdesc.c (allocate_target_description): New function.
7266 * tdesc.h (set_tdesc_architecture): Remove declaration.
7267 (set_tdesc_osabi): Likewise.
7268
0abe8a89
YQ
72692017-09-05 Yao Qi <yao.qi@linaro.org>
7270
7271 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7272 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7273 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7274 .xmltarget.
7275 * server.c (get_features_xml): Call tdesc_get_features_xml.
7276 * tdesc.c (set_tdesc_architecture): New function.
7277 (set_tdesc_osabi): New function.
7278 (tdesc_get_features_xml): New function.
7279 (tdesc_create_feature): Add an argument.
7280 * tdesc.h (struct target_desc) <features>: New field.
7281 <arch, osabi>: New field.
7282 (~target_desc): xfree features, arch, and osabi.
7283 (target_desc::oerator==): Don't compare .xmltarget.
7284 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7285 (set_tdesc_osabi): Likewise.
7286 (tdesc_get_features_xml): Likewise.
7287
0a188386
YQ
72882017-09-05 Yao Qi <yao.qi@linaro.org>
7289
7290 * linux-x86-tdesc.c: Include selftest.h.
7291 (i386_tdesc_test): New function.
7292 (initialize_low_tdesc): Call selftests::register_test.
7293 * tdesc.h: Include regdef.h.
7294 (target_desc): Override operator == and !=.
7295
f49ff000
YQ
72962017-09-05 Yao Qi <yao.qi@linaro.org>
7297
7298 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7299 (ipa_obj): Likewise.
7300 * linux-i386-ipa.c: Include common/x86-xstate.h
7301 (get_ipa_tdesc): Call i386_linux_read_description.
7302 (initialize_low_tracepoint): Don't call init_registers_XXX
7303 functions, call initialize_low_tdesc instead.
7304 * linux-x86-low.c (x86_linux_read_description): Call
7305 i386_linux_read_description.
7306 (initialize_low_arch): Don't call init_registers_i386_XXX
7307 functions, call initialize_low_tdesc.
7308 * linux-x86-tdesc.c: New file.
7309 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7310 (i386_get_ipa_tdesc_idx): Declare.
7311 (i386_get_ipa_tdesc): Declare.
7312 (initialize_low_tdesc): Declare.
7313
2b68ef2f
YQ
73142017-09-05 Yao Qi <yao.qi@linaro.org>
7315
7316 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7317 instead of 0.
7318
f7000548
YQ
73192017-09-05 Yao Qi <yao.qi@linaro.org>
7320
7321 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7322 * regcache.c (get_thread_regcache): Use VEC_length.
7323 (init_register_cache): Likewise.
7324 (regcache_cpy): Likewise.
7325 (registers_to_string): Iterate reg_defs via VEC_iterate.
7326 (find_regno): Likewise.
7327 (find_register_by_number): Use VEC_index.
7328 (register_size): Call find_register_by_number.
7329 (register_data): Call find_register_by_number.
7330 (supply_regblock): Use VEC_length.
7331 (regcache_raw_read_unsigned): Likewise.
7332 * tdesc.c (init_target_desc): Iterate reg_defs via
7333 VEC_iterate.
7334 (default_description): Update initializer.
7335 (copy_target_description): Don't update field num_registers.
7336 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7337 <num_registers>: Remove.
7338
50a421ac
SM
73392017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7340
7341 * Makefile.in (.SECONDARY): Define target.
7342
23fdd69e
SM
73432017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7344
7345 * linux-low.c (linux_wait_1): Adjust.
7346 * server.c (queue_stop_reply_callback): Adjust.
7347
0a2dde4a
SDJ
73482017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7349
7350 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7351 QEnvironmentUnset and QEnvironmentReset packets.
7352 (handle_query): Inform remote that QEnvironmentHexEncoded,
7353 QEnvironmentUnset and QEnvironmentReset are supported.
7354
6afd337d
SM
73552017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7356
7357 * inferiors.h (inferior_target_data): Rename to ...
7358 (thread_target_data): ... this.
7359 (inferior_regcache_data): Rename to ...
7360 (thread_regcache_data): ... this.
7361 (set_inferior_regcache_data): Rename to ...
7362 (set_thread_regcache_data): ... this.
7363 * inferiors.c (inferior_target_data): Rename to ...
7364 (thread_target_data): ... this.
7365 (inferior_regcache_data): Rename to ...
7366 (thread_regcache_data): ... this.
7367 (set_inferior_regcache_data): Rename to ...
7368 (set_thread_regcache_data): ... this.
7369 (free_one_thread): Update.
7370 * linux-low.h (get_thread_lwp): Update.
7371 * regcache.c (get_thread_regcache): Update.
7372 (regcache_invalidate_thread): Update.
7373 (free_register_cache_thread): Update.
7374 * win32-i386-low.c (update_debug_registers_callback): Update.
7375 (win32_get_current_dr): Update.
7376 * win32-low.c (thread_rec): Update.
7377 (delete_thread_info): Update.
7378 (continue_one_thread): Update.
7379 (suspend_one_thread): Update.
7380
a160cc46
SM
73812017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7382
7383 * inferiors.c (set_inferior_target_data): Remove.
7384 * inferiors.h (set_inferior_target_data): Remove.
7385
6d580b63
YQ
73862017-08-18 Yao Qi <yao.qi@linaro.org>
7387
7388 * Makefile.in (OBS): Add selftest.o.
7389 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7390 * configure, config.in: Re-generated.
7391 * server.c: Include common/sefltest.h.
7392 (captured_main): Handle option --selftest.
7393
f5a29eb0
YQ
73942017-08-09 Yao Qi <yao.qi@linaro.org>
7395
7396 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7397 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7398 i386-avx-mpx.o and i386-mmx.o.
7399 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7400 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7401 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7402 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7403 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7404 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7405 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7406 i386/amd64-avx-mpx.xml.
7407
57757c2f
YQ
74082017-08-09 Yao Qi <yao.qi@linaro.org>
7409
7410 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7411 and x32-avx-avx512.o.
7412 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7413 i386/x32-avx-avx512.xml.
7414
229d26fc
SM
74152017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7416
7417 * tracepoint.h (enum class fast_tpoint_collect_result): New
7418 enumeration.
7419 (fast_tracepoint_collecting): Change return type to
7420 fast_tpoint_collect_result.
7421 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7422 * linux-low.h: Include tracepoint.h.
7423 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7424 fast_tpoint_collect_result.
7425 * linux-low.c (handle_tracepoints): Adjust.
7426 (linux_fast_tracepoint_collecting): Change return type to
7427 fast_tpoint_collect_result.
7428 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7429 linux_wait_1, stuck_in_jump_pad_callback,
7430 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7431 proceed_one_lwp): Adjust to type change.
7432
2e1e43e1
YQ
74332017-07-10 Yao Qi <yao.qi@linaro.org>
7434
7435 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7436
adc764e7
YQ
74372017-06-29 Yao Qi <yao.qi@linaro.org>
7438
7439 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7440 Remove.
7441 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7442
a206891a
SM
74432017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7444
7445 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7446
9a6c7d9c
SDJ
74472017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7448
7449 * linux-low.c (linux_create_inferior): Adjust code to access the
7450 environment information via 'gdb_environ' class.
7451 * lynx-low.c (lynx_create_inferior): Likewise.
7452 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7453 (get_environ): Return a pointer to 'our_environ'.
7454 (captured_main): Initialize 'our_environ'.
7455 * server.h (get_environ): Adjust prototype.
7456 * spu-low.c (spu_create_inferior): Adjust code to access the
7457 environment information via 'gdb_environ' class.
7458
ae3e2ccf
SM
74592017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7460
7461 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7462 usage of "register" keyword.
7463
3e019bdc
SM
74642017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7465
7466 * configure: Re-generate.
7467
8465943a
SM
74682017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7469
7470 * configure: Re-generate.
7471
cf0dd6f0
SM
74722017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7473
7474 * Makefile.in (COMPILE.pre): Add "-x c++".
7475
9845682b
SDJ
74762017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7477
7478 * fork-child.c: Conditionally include <signal.h>.
7479
aefd8b33
SDJ
74802017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7481
7482 * server.c (handle_general_set): Handle new packet
7483 "QStartupWithShell".
7484 (handle_query): Add "QStartupWithShell" to the list of supported
7485 packets.
7486 (gdbserver_usage): Add help text explaining the
7487 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7488 options.
7489 (captured_main): Recognize and act upon the presence of the new
7490 CLI options.
7491
2090129c
SDJ
74922017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7493 Pedro Alves <palves@redhat.com>
7494
7495 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7496 * configure: Regenerate.
7497 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7498 "fork-inferior.o".
7499 (i[34567]86-*-lynxos*): Likewise.
7500 (spu*-*-*): Likewise.
7501 * fork-child.c: New file.
7502 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7503 and "environ.h".
7504 (linux_ptrace_fun): New function.
7505 (linux_create_inferior): Adjust function prototype to reflect
7506 change on "target.h". Adjust function code to use
7507 "fork_inferior".
7508 (linux_request_interrupt): Delete "signal_pid".
7509 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7510 (lynx_ptrace_fun): New function.
7511 (lynx_create_inferior): Adjust function prototype to reflect
7512 change on "target.h". Adjust function code to use
7513 "fork_inferior".
7514 * nto-low.c (nto_create_inferior): Adjust function prototype and
7515 code to reflect change on "target.h". Update comments.
7516 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7517 "common-terminal.h" and "environ.h".
7518 (terminal_fd): Moved to fork-child.c.
7519 (old_foreground_pgrp): Likewise.
7520 (restore_old_foreground_pgrp): Likewise.
7521 (last_status): Make it global.
7522 (last_ptid): Likewise.
7523 (our_environ): New variable.
7524 (startup_with_shell): Likewise.
7525 (program_name): Likewise.
7526 (program_argv): Rename to...
7527 (program_args): ...this.
7528 (wrapper_argv): New variable.
7529 (start_inferior): Delete function.
7530 (get_exec_wrapper): New function.
7531 (get_exec_file): Likewise.
7532 (get_environ): Likewise.
7533 (prefork_hook): Likewise.
7534 (post_fork_inferior): Likewise.
7535 (postfork_hook): Likewise.
7536 (postfork_child_hook): Likewise.
7537 (handle_v_run): Update code to deal with arguments coming from the
7538 remote host. Update calls from "start_inferior" to
7539 "create_inferior".
7540 (captured_main): Likewise. Initialize environment variable. Call
7541 "have_job_control".
7542 * server.h (post_fork_inferior): New prototype.
7543 (get_environ): Likewise.
7544 (last_status): Declare.
7545 (last_ptid): Likewise.
7546 (signal_pid): Likewise.
7547 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7548 (spu_ptrace_fun): New function.
7549 (spu_create_inferior): Adjust function prototype to reflect change
7550 on "target.h". Adjust function code to use "fork_inferior".
7551 * target.c (target_terminal_init): New function.
7552 (target_terminal_inferior): Likewise.
7553 (target_terminal_ours): Likewise.
7554 * target.h: Include <vector>.
7555 (struct target_ops) <create_inferior>: Update prototype.
7556 (create_inferior): Update macro.
7557 * utils.c (gdb_flush_out_err): New function.
7558 * win32-low.c (win32_create_inferior): Adjust function prototype
7559 and code to reflect change on "target.h".
7560
043a4934
SDJ
75612017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7562
7563 * inferiors.c (switch_to_thread): New function.
7564
15652511
SDJ
75652017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7566
7567 * Makefile.in (SFILE): Add "common/job-control.c".
7568 (OBS): Add "job-control.o".
7569
21ea5acd
SDJ
75702017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7571
7572 * Makefile: Remove "@host_makefile_frag@".
7573
e13cb306
PA
75742017-05-05 Pedro Alves <palves@redhat.com>
7575
7576 * configure: Regenerate.
7577
c94fee56
SDJ
75782017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7579
7580 * configure: Regenerate.
7581
a0ff9e1a
SM
75822017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7583
7584 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7585 software_single_step change of return type to
7586 std::vector<CORE_ADDR>.
7587 * linux-low.c (install_software_single_step_breakpoints):
7588 Likewise.
7589 * linux-low.h (install_software_single_step_breakpoints):
7590 Likewise.
7591
be628ab8
SDJ
75922017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7593
7594 * remote-utils.c: Include "gdb_termios.h" instead of
7595 "terminal.h".
7596 * terminal.h: Delete file.
7597
7c5ded6a
SDJ
75982017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7599
7600 * server.c: Include <vector>.
7601 <program_argv, wrapper_argv>: Convert to std::vector.
7602 (start_inferior): Rewrite function to use C++.
7603 (handle_v_run): Likewise. Update code that calculates the argv
7604 based on the vRun packet; use C++.
7605 (captured_main): Likewise.
7606
436252de
SM
76072017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7608
7609 * server.c (handle_v_cont): Initialize thread_resume::thread
7610 with null_ptid.
7611
9bf2a700
PA
76122017-04-05 Pedro Alves <palves@redhat.com>
7613
7614 * configure: Regenerate.
7615
a121b7c1
PA
76162017-04-05 Pedro Alves <palves@redhat.com>
7617
7618 * gdbreplay.c (sync_error): Constify.
7619 * linux-x86-low.c (push_opcode): Constify.
7620
21c8a587
PA
76212017-04-05 Pedro Alves <palves@redhat.com>
7622
7623 * win32-low.c (get_child_debug_event)
7624 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7625 Report TARGET_WAITKIND_SPURIOUS instead.
7626
fb32b4f7
PA
76272017-04-05 Pedro Alves <palves@redhat.com>
7628
e79be6e5
SM
7629 * remote-utils.c (remote_prepare, remote_open): Constify.
7630 * remote-utils.h (remote_prepare, remote_open): Constify.
7631 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 7632
65dd1e59
SM
76332017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7634
7635 * Makefile.in (clean): Clear .deps.
7636
8fa5b777
SM
76372017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7638
7639 * .gitignore: Remove generated files, replace with wildcard.
7640 * (clean): Replace removal of generated files with wildcard.
7641 (version.c): Replace with...
7642 (version-generated.c): ...this.
7643 (xml-builtin.c): Replace with...
7644 (xml-builtin-generated.c): ...this.
7645 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7646 (%.c: *regformats*): Replace with...
7647 (%-generated.c: *regformats*): ...this.
7648
a12e714b
MF
76492017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7650
7651 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7652 (xtensa_fill_gregset): Call collect_register_by_name for
7653 threadptr register.
7654 (xtensa_store_gregset): Call supply_register_by_name for
7655 threadptr register.
7656
1a09b50a
MF
76572017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7658
7659 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7660 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7661 (xtensa_store_gregset): Call supply_register for all registers in
7662 a0_regnum..a0_regnum + C0_NREGS range.
7663
1a01e7c6
SM
76642017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7665
7666 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7667 (ax-ipa.o: ax.c): Remove.
7668 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7669 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7670 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7671 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7672 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7673
36bc18a8
SM
76742017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7675
7676 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7677 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7678 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7679 (errors-ipa.o: ../common/errors.c): Remove.
7680 (format-ipa.o: ../common/format.c): Remove.
7681 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7682
a8ebe3d5
SM
76832017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7684
7685 * Makefile.in (%-ipa.o: %.c): New rule.
7686 (tracepoint-ipa.o: tracepoint.c): Remove.
7687 (utils-ipa.o: utils.c): Remove.
7688 (remote-utils-ipa.o: remote-utils.c): Remove.
7689 (regcache-ipa.o: regcache.c): Remove.
7690 (i386-linux-ipa.o: i386-linux.c): Remove.
7691 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7692 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7693 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7694 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7695 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7696 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7697 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7698 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7699 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7700 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7701 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7702 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7703 (aarch64-ipa.o: aarch64.c): Remove.
7704 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7705 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7706 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7707 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7708 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7709 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7710 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7711 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7712 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7713 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7714 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7715 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7716 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7717 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7718 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7719 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7720 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7721 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7722 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7723 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7724 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7725 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7726 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7727 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7728 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7729 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7730 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7731 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7732 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7733 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7734 (tdesc-ipa.o: tdesc.c): Remove.
7735 (x32-linux-ipa.o: x32-linux.c): Remove.
7736 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7737 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7738
50cfacb7
SM
77392017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7740
7741 * Makefile.in (%.o: ../arch/%.c): New rule.
7742 (arm.o: ../arch/arm.c): Remove.
7743 (arm-linux.o: ../arch/arm-linux.c): Remove.
7744 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7745 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7746
c5a22423
SM
77472017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7748
7749 * Makefile.in (%.o: ../nat/%.c): New rule.
7750 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7751 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7752 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7753 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7754 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7755 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7756 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7757 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7758 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7759 (linux-personality.o: ../nat/linux-personality.c): Remove.
7760 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7761 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7762 (x86-linux.o: ../nat/x86-linux.c): Remove.
7763 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7764 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7765
6bda016b
SM
77662017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7767
7768 * Makefile.in (%.o: ../common/%.c): New rule.
7769 (signals.o: ../common/signals.c): Remove.
7770 (print-utils.o: ../common/print-utils.c): Remove.
7771 (rsp-low.o: ../common/rsp-low.c): Remove.
7772 (common-utils.o: ../common/common-utils.c): Remove.
7773 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7774 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7775 (vec.o: ../common/vec.c): Remove.
7776 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7777 (xml-utils.o: ../common/xml-utils.c): Remove.
7778 (ptid.o: ../common/ptid.c): Remove.
7779 (buffer.o: ../common/buffer.c): Remove.
7780 (format.o: ../common/format.c): Remove.
7781 (filestuff.o: ../common/filestuff.c): Remove.
7782 (agent.o: ../common/agent.c): Remove.
7783 (errors.o: ../common/errors.c): Remove.
7784 (environ.o: ../common/environ.c): Remove.
7785 (common-debug.o: ../common/common-debug.c): Remove.
7786 (cleanups.o: ../common/cleanups.c): Remove.
7787 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7788 (fileio.o: ../common/fileio.c): Remove.
7789 (common-regcache.o: ../common/common-regcache.c): Remove.
7790 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7791 (new-op.o: ../common/new-op.c): Remove.
7792 (btrace-common.o: ../common/btrace-common.c): Remove.
7793
21122961
SM
77942017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7795
7796 * Makefile.in (%.o: ../target/%.c): New rule.
7797 (waitstatus.o: ../target/waitstatus.c): Remove.
7798
c362e621
SM
77992017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7800
7801 * Makefile.in
7802 (%.c: ../regformats/%.dat,
7803 (%.c: ../regformats/arm/%.dat,
7804 (%.c: ../regformats/i386/%.dat,
7805 (%.c: ../regformats/rs6000/%.dat): New rules.
7806 (aarch64.c): Remove.
7807 (reg-arm.c): Remove.
7808 (arm-with-iwmmxt.c): Remove.
7809 (arm-with-vfpv2.c): Remove.
7810 (arm-with-vfpv3.c): Remove.
7811 (arm-with-neon.c): Remove.
7812 (reg-bfin.c): Remove.
7813 (reg-cris.c): Remove.
7814 (reg-crisv32.c): Remove.
7815 (i386.c): Remove.
7816 (i386-linux.c): Remove.
7817 (i386-avx.c): Remove.
7818 (i386-avx-linux.c): Remove.
7819 (i386-avx-avx512.c): Remove.
7820 (i386-avx-avx512-linux.c): Remove.
7821 (i386-mpx.c): Remove.
7822 (i386-mpx-linux.c): Remove.
7823 (i386-avx-mpx-avx512-pku.c): Remove.
7824 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7825 (i386-avx-mpx.c): Remove.
7826 (i386-avx-mpx-linux.c): Remove.
7827 (i386-mmx.c): Remove.
7828 (i386-mmx-linux.c): Remove.
7829 (reg-ia64.c): Remove.
7830 (reg-m32r.c): Remove.
7831 (reg-m68k.c): Remove.
7832 (reg-cf.c): Remove.
7833 (mips-linux.c): Remove.
7834 (mips-dsp-linux.c): Remove.
7835 (mips64-linux.c): Remove.
7836 (mips64-dsp-linux.c): Remove.
7837 (nios2-linux.c): Remove.
7838 (powerpc-32.c): Remove.
7839 (powerpc-32l.c): Remove.
7840 (powerpc-altivec32l.c): Remove.
7841 (powerpc-cell32l.c): Remove.
7842 (powerpc-vsx32l.c): Remove.
7843 (powerpc-isa205-32l.c): Remove.
7844 (powerpc-isa205-altivec32l.c): Remove.
7845 (powerpc-isa205-vsx32l.c): Remove.
7846 (powerpc-e500l.c): Remove.
7847 (powerpc-64l.c): Remove.
7848 (powerpc-altivec64l.c): Remove.
7849 (powerpc-cell64l.c): Remove.
7850 (powerpc-vsx64l.c): Remove.
7851 (powerpc-isa205-64l.c): Remove.
7852 (powerpc-isa205-altivec64l.c): Remove.
7853 (powerpc-isa205-vsx64l.c): Remove.
7854 (s390-linux32.c): Remove.
7855 (s390-linux32v1.c): Remove.
7856 (s390-linux32v2.c): Remove.
7857 (s390-linux64.c): Remove.
7858 (s390-linux64v1.c): Remove.
7859 (s390-linux64v2.c): Remove.
7860 (s390-te-linux64.c): Remove.
7861 (s390-vx-linux64.c): Remove.
7862 (s390-tevx-linux64.c): Remove.
7863 (s390x-linux64.c): Remove.
7864 (s390x-linux64v1.c): Remove.
7865 (s390x-linux64v2.c): Remove.
7866 (s390x-te-linux64.c): Remove.
7867 (s390x-vx-linux64.c): Remove.
7868 (s390x-tevx-linux64.c): Remove.
7869 (tic6x-c64xp-linux.c): Remove.
7870 (tic6x-c64x-linux.c): Remove.
7871 (tic6x-c62x-linux.c): Remove.
7872 (reg-sh.c): Remove.
7873 (reg-sparc64.c): Remove.
7874 (reg-spu.c): Remove.
7875 (amd64.c): Remove.
7876 (amd64-linux.c): Remove.
7877 (amd64-avx.c): Remove.
7878 (amd64-avx-linux.c): Remove.
7879 (amd64-avx-avx512.c): Remove.
7880 (amd64-avx-avx512-linux.c): Remove.
7881 (amd64-mpx.c): Remove.
7882 (amd64-mpx-linux.c): Remove.
7883 (amd64-avx-mpx-avx512-pku.c): Remove.
7884 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7885 (amd64-avx-mpx.c): Remove.
7886 (amd64-avx-mpx-linux.c): Remove.
7887 (x32.c): Remove.
7888 (x32-linux.c): Remove.
7889 (x32-avx.c): Remove.
7890 (x32-avx-linux.c): Remove.
7891 (x32-avx-avx512.c): Remove.
7892 (x32-avx-avx512-linux.c): Remove.
7893 (reg-xtensa.c): Remove.
7894 (reg-tilegx.c): Remove.
7895 (reg-tilegx32.c): Remove.
7896
1672e0d9
SDJ
78972017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7898
7899 * Makefile.in (SFILES): Add "common/environ.c".
7900 (OBJS): Add "common/environ.h".
7901
239b6d10
WT
79022017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7903
7904 * configure.ac: Check if the fs_base and gs_base members of
7905 `struct user_regs_struct' exist.
7906 * config.in: Regenerated.
7907 * configure: Likewise.
7908
694b382c
AT
79092017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7910
7911 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7912 target_read_memory.
7913 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7914 (get_next_pcs_syscall_next_pc): Likewise.
7915
7dc53023
LM
79162016-12-23 Luis Machado <lgustavo@codesourcery.com>
7917
7918 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7919 * nto-x86-low.c: Likewise.
7920
ad02e4fe
SM
79212016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7922
7923 * Makefile.in: Include disable-implicit-rules.mk.
7924
dcb07cfa
PA
79252016-11-23 Pedro Alves <palves@redhat.com>
7926
7927 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7928 (debug_vprintf): Use std::chrono::steady_clock instead of
7929 gettimeofday. Use '.' instead of ':'.
7930 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7931 (get_timestamp): Use std::chrono::steady_clock instead of
7932 gettimeofday.
7933
8629c02c
SM
79342016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7935
7936 * Makefile.in: Fix whitespace formatting.
7937
b593ecca
SM
79382016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7939
7940 * Makefile.in (SFILES, OBS): Flatten list and order
7941 alphabetically.
7942
9986ba08
PA
79432016-11-23 Pedro Alves <palves@redhat.com>
7944
7945 * event-loop.c (handle_file_event): Use warning.
7946 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7947 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7948 Use warning.
7949
4eefa7bc
PA
79502016-11-23 Pedro Alves <palves@redhat.com>
7951
7952 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7953 output.
7954 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7955 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7956 debug_printf and debug_flush for debug output.
7957 * server.c (handle_general_set): Likewise.
7958 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7959 output.
7960
5443506e
SM
79612016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7962
7963 * Makefile.in (.c.o): Replace rule with ...
7964 (%.o: %.c): ... this one.
7965
3b165252
SM
79662016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7967
7968 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7969 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7970 make.
7971 * configure.ac: Remove checks for the make program.
7972 * configure: Re-generate.
7973
0bcda685
PA
79742016-10-28 Pedro Alves <palves@redhat.com>
7975
7976 * Makefile.in (CXX_DIALECT): Get from configure.
7977 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7978 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7979 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7980 * config.in: Regenerate.
7981 * configure: Regenerate.
7982
c3805894
YQ
79832016-10-27 Yao Qi <yao.qi@linaro.org>
7984
7985 * linux-low.c (linux_supports_range_stepping): Return true if
7986 can_software_single_step return true.
7987
89342618
YQ
79882016-10-27 Yao Qi <yao.qi@linaro.org>
7989
7990 * inferiors.c (find_inferior_in_random): New function.
7991 * inferiors.h (find_inferior_in_random): Declare.
7992 * linux-low.c (linux_wait_for_event_filtered): Call
7993 find_inferior_in_random instead of find_inferior.
7994
e3652c84
YQ
79952016-10-27 Yao Qi <yao.qi@linaro.org>
7996
7997 * linux-low.c (linux_wait_1): If single-step breakpoints are
7998 inserted, remove them.
7999
5a04c4cf
PA
80002016-10-26 Pedro Alves <palves@redhat.com>
8001
8002 * linux-low.c (handle_extended_wait): Link parent/child fork
8003 threads.
8004 (linux_wait_1): Unlink them.
8005 (linux_set_resume_request): Ignore resume requests for
8006 already-resumed and unhandled fork child threads.
8007 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8008 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8009 New functions.
8010 (handle_v_requests) <vCont>: Don't call require_running.
8011 * server.h (in_queued_stop_replies): New declaration.
8012
cb93dc7f
YQ
80132016-10-24 Yao Qi <yao.qi@linaro.org>
8014
8015 PR server/20733
8016 * linux-aarch64-low.c (append_insns): Cast the return value to
8017 'uint32_t *'.
8018
a1078bea
YQ
80192016-10-10 Yao Qi <yao.qi@linaro.org>
8020
8021 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8022
1fb77080
SDJ
80232016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8024
8025 * target.c (target_supports_multi_process): New function, moved
8026 from...
8027 * target.h (target_supports_multi_process): ... here. Remove
8028 macro.
8029
39b5a3b9
TT
80302016-10-05 Tom Tromey <tom@tromey.com>
8031
8032 PR remote/20655:
8033 * tracepoint.c (handle_tracepoint_bkpts): Check
8034 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8035
c1d0b70a
YQ
80362016-10-05 Yao Qi <yao.qi@linaro.org>
8037
8038 * configure.srv: Update the path of arm-*.xml files.
8039
0a69eedb
YQ
80402016-10-05 Terry Guo <terry.guo@arm.com>
8041 Yao Qi <yao.qi@linaro.org>
8042
8043 * Makefile.in: Adjust the path of rules.
8044 * configure.srv: Update the path of xml files.
8045 * regformats/arm-with-iwmmxt.dat: Regenerated.
8046 * regformats/arm-with-neon.dat: Likewise.
8047 * regformats/arm-with-vfpv2.dat: Likewise.
8048 * regformats/arm-with-vfpv3.dat Likewise.
8049
17e16485
YQ
80502016-09-30 Yao Qi <yao.qi@linaro.org>
8051
8052 PR gdbserver/20627
8053 * target.c (target_stop_and_wait): Don't call
8054 target_continue_no_signal, use resume_stop instead.
8055
edeeb602
YQ
80562016-09-26 Yao Qi <yao.qi@linaro.org>
8057
8058 * linux-low.c (linux_wait_1): Call debug_exit.
8059
503b1c39
PA
80602016-09-23 Pedro Alves <palves@redhat.com>
8061
8062 * Makefile.in (SFILES): Add common/new-op.c.
8063 (OBS): Add common/new-op.o.
8064 (new-op.o): New rule.
8065
74172ecf
SM
80662016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8067
8068 * .gitinore: Ignore more files.
8069
fc6cda2e
YQ
80702016-09-21 Yao Qi <yao.qi@linaro.org>
8071
8072 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8073 23.
8074
bc1e6c81
SDJ
80752016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8076
8077 * server.c (start_inferior): Call target_mourn_inferior instead of
8078 mourn_inferior; pass ptid_t argument to it.
8079 (resume): Likewise.
8080 (handle_target_event): Likewise.
8081 * target.c (target_mourn_inferior): New function.
8082 * target.h (mourn_inferior): Delete macro.
8083
0e00e962
AA
80842016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8085
8086 * linux-low.c (lwp_is_stepping): New function.
8087
1d8cb77d
CL
80882016-09-06 Carl Love <cel@us.ibm.com>
8089
8090 * server.c (start_inferior): Fixed comment, requested comment change
8091 didn't get updated correctly. Removed reference to ptrace () call as
8092 it is only true on Linux systems.
8093
7313bced
CL
80942016-09-06 Carl Love <cel@us.ibm.com>
8095
8096 * server.c (start_inferior): Do not call
8097 function target_post_create_inferior () if the
8098 inferior process has already exited.
8099
cf6de44d
PA
81002016-09-05 Pedro Alves <palves@redhat.com>
8101
8102 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8103 (COMPILE.pre, CC_LD): Use CXX directly.
8104 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8105 * acinclude.m4: Don't include build-with-cxx.m4.
8106 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8107 * configure: Regenerate.
8108
c1da6748
AT
81092016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8110
8111 PR gdb/19495
8112 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8113 call writing data to own_buf.
8114
f2b9e3df
SDJ
81152016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8116
8117 * target.c (mywait): Call target_wait instead of
8118 the_target->wait.
8119 (target_wait): New function.
8120
049a8570
SDJ
81212016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8122
8123 * server.c (start_inferior): New variable 'ptid'. Replace calls
8124 to the_target->resume by target_continue{,_no_signal}, depending
8125 on the case.
8126 * target.c (target_stop_and_wait): Call target_continue_no_signal
8127 instead of the_target->resume.
8128 (target_continue): New function.
8129
3aa5cfa0
AT
81302016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8131
8132 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8133
754653a7
AZ
81342016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8135
8136 PR server/20491
8137 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8138 ps_prochandle.
8139 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8140 * linux-arm-low.c (ps_get_thread_area): Likewise.
8141 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8142 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8143 * linux-mips-low.c (ps_get_thread_area): Likewise.
8144 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8145 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8146 * linux-x86-low.c (ps_get_thread_area): Likewise.
8147 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8148
ed036b40
PA
81492016-08-19 Pedro Alves <palves@redhat.com>
8150
8151 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8152
c8ef42ee
PA
81532016-08-19 Pedro Alves <palves@redhat.com>
8154
8155 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8156 comment. Use memcpy instead of casting through unsigned long.
8157
9c235a72
PA
81582016-08-19 Pedro Alves <palves@redhat.com>
8159
8160 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8161 allocating around 0x80000000.
8162
201506da
PA
81632016-08-19 Pedro Alves <palves@redhat.com>
8164
8165 PR gdb/20415
8166 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8167 (x32-avx512-linux-ipa.o): New rules.
8168 * configure.ac (x86_64-*-linux*): New x32 check.
8169 * configure.srv (ipa_x32_linux_regobj): New.
8170 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8171 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8172 descriptions.
8173 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8174 descriptions.
8175 * configure: Regenerate.
8176
f348d89a
PA
81772016-08-09 Pedro Alves <palves@redhat.com>
8178
8179 PR gdb/18653
8180 * Makefile.in (OBS): Add signals-state-save-restore.o.
8181 (signals-state-save-restore.o): New rule.
8182 * config.in: Regenerate.
8183 * configure: Regenerate.
8184 * linux-low.c: Include "signals-state-save-restore.h".
8185 (linux_create_inferior): Call
8186 restore_original_signals_state.
8187 * server.c: Include "dispositions-save-restore.h".
8188 (captured_main): Call save_original_signals_state.
8189
1baf5149
PA
81902016-08-05 Pedro Alves <palves@redhat.com>
8191
8192 * configure: Regenerate.
8193
fcd4a73d
YQ
81942016-08-04 Yao Qi <yao.qi@linaro.org>
8195
8196 * linux-low.c (regsets_fetch_inferior_registers): Check
8197 errno is ESRCH or not.
8198
979659d0
YQ
81992016-08-02 Yao Qi <yao.qi@linaro.org>
8200
8201 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8202 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8203 (thread_db_load_search): Update.
8204 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8205 td_ta_set_event and td_ta_event_getmsg.
8206
6598661d
PA
82072016-07-26 Pedro Alves <palves@redhat.com>
8208
8209 PR server/20414
8210 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8211 of unsigned long for 64-bit registers and use uint32_t instead of
8212 unsigned int for 32-bit registers.
8213
9cf12d57
PA
82142016-07-26 Pedro Alves <palves@redhat.com>
8215
8216 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8217 to 'ptrace'.
8218
305450ed
TT
82192016-07-21 Tom Tromey <tom@tromey.com>
8220
8221 * configure: Rebuild.
8222
2583da7c
YQ
82232016-07-21 Yao Qi <yao.qi@linaro.org>
8224
8225 * mem-break.c (find_gdb_breakpoint): Cast bp to
8226 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8227
21536b36
YQ
82282016-07-21 Yao Qi <yao.qi@linaro.org>
8229
8230 * server.c (handle_v_requests): Support s and S actions
8231 if target_supports_software_single_step return true.
8232
8901d193
YQ
82332016-07-21 Yao Qi <yao.qi@linaro.org>
8234
8235 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8236 is resume_step, call maybe_hw_step.
8237 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8238 and unstop them.
8239 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8240 breakpoints or not.
8241 (proceed_one_lwp): If resume request is resume_step, install
8242 reinsert breakpoints and call maybe_hw_step.
8243
0e9a339e
YQ
82442016-07-21 Yao Qi <yao.qi@linaro.org>
8245
8246 * linux-low.c (proceed_one_lwp): Declare.
8247 (linux_resume_one_thread): Remove local variable 'step'.
8248 Lift code enqueue signal. Call proceed_one_lwp instead of
8249 linux_resume_one_lwp.
8250
4281b351
YQ
82512016-07-21 Yao Qi <yao.qi@linaro.org>
8252
8253 * linux-low.c (linux_resume_one_thread): Call
8254 enqueue_pending_signal.
8255
984a2c04
YQ
82562016-07-21 Yao Qi <yao.qi@linaro.org>
8257
8258 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8259 * inferiors.c (do_restore_current_thread_cleanup): New function.
8260 (make_cleanup_restore_current_thread): Likewise.
8261 * linux-low.c (install_software_single_step_breakpoints): Call
8262 make_cleanup_restore_current_thread. Switch current_thread to
8263 thread.
8264
bec903c9
YQ
82652016-07-21 Yao Qi <yao.qi@linaro.org>
8266
8267 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8268 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8269 (clone_one_breakpoint): Likewise.
8270 (delete_reinsert_breakpoints): Change parameter to thread.
8271 Callers updated.
8272 (has_reinsert_breakpoints): Likewise.
8273 (uninsert_reinsert_breakpoints): Likewise.
8274 (reinsert_reinsert_breakpoints): Likewise.
8275 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8276 (delete_reinsert_breakpoints): Likewise.
8277 (reinsert_reinsert_breakpoints): Likewise.
8278 (uninsert_reinsert_breakpoints): Likewise.
8279 (has_reinsert_breakpoints): Likewise.
8280
63c40ec7
YQ
82812016-07-21 Yao Qi <yao.qi@linaro.org>
8282
8283 * inferiors.c (get_thread_process): Make parameter const.
8284 * inferiors.h (get_thread_process): Update declaration.
8285 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8286 Add new parameters child_thread and parent_thread. Callers
8287 updated.
8288 * mem-break.h (clone_all_breakpoints): Update declaration.
8289
9aa76cd0
YQ
82902016-07-21 Yao Qi <yao.qi@linaro.org>
8291
8292 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8293 <command_list, handler>: Remove.
8294 (struct gdb_breakpoint): New.
8295 (struct other_breakpoint): New.
8296 (struct reinsert_breakpoint): New.
8297 (is_gdb_breakpoint): New function.
8298 (any_persistent_commands): Update command_list if
8299 is_gdb_breakpoint returns true.
8300 (set_breakpoint): Create breakpoints according to their types.
8301 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8302 (set_gdb_breakpoint_1): Likewise.
8303 (set_gdb_breakpoint): Likewise.
8304 (clear_breakpoint_conditions): Change parameter type to
8305 'struct gdb_breakpoint *'.
8306 (clear_breakpoint_commands): Likewise.
8307 (clear_breakpoint_conditions_and_commands): Likewise.
8308 (add_condition_to_breakpoint): Likewise.
8309 (add_breakpoint_condition): Likewise.
8310 (add_commands_to_breakpoint): Likewise.
8311 (check_breakpoints): Check other_breakpoint.
8312 (clone_one_breakpoint): Clone breakpopint according to its type.
8313 * mem-break.h (struct gdb_breakpoint): Declare.
8314 (set_gdb_breakpoint): Update declaration.
8315 (clear_breakpoint_conditions_and_commands): Likewise.
8316 (add_breakpoint_condition): Likewise.
8317 (add_breakpoint_commands): Likewise.
8318 * server.c (process_point_options): Change parameter type to
8319 'struct gdb_breakpoint *'.
8320
811f8301
YQ
83212016-07-21 Yao Qi <yao.qi@linaro.org>
8322
8323 * mem-break.c (set_breakpoint_at): Rename it to ...
8324 (set_breakpoint_type_at): ... it.
8325 (set_breakpoint_at): Call set_breakpoint_type_at.
8326 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8327 * mem-break.h (set_breakpoint_at): Update comments.
8328
b1c51e36
CLT
83292016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8330
8331 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8332 to buf parameter.
8333 (nios2_store_gregset): Likewise.
8334
ced2dffb
PA
83352016-07-01 Pedro Alves <palves@redhat.com>
8336 Antoine Tremblay <antoine.tremblay@ericsson.com>
8337
8338 * linux-low.c: Change interface to take the target lwp_info
8339 pointer directly and return void. Handle detaching from a zombie
8340 thread.
8341 (linux_detach_lwp_callback): New function.
8342 (linux_detach): Detach from the leader thread after detaching from
8343 the clone threads.
8344
2ac09a5b
YQ
83452016-06-28 Yao Qi <yao.qi@linaro.org>
8346
8347 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8348 for variable new_offset.
8349 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8350 (aarch64_ftrace_insn_reloc_cb): Likewise.
8351 (aarch64_ftrace_insn_reloc_tb): Likewise.
8352 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8353 PRIx64 instead of PRIx32.
8354
79e7fd4f
YQ
83552016-06-28 Yao Qi <yao.qi@linaro.org>
8356
8357 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8358 (the_low_target): Install arm_get_syscall_trapinfo.
8359
061fc021
YQ
83602016-06-28 Yao Qi <yao.qi@linaro.org>
8361
8362 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8363 function.
8364 (the_low_target): Install aarch64_get_syscall_trapinfo.
8365
4cc32bec
YQ
83662016-06-28 Yao Qi <yao.qi@linaro.org>
8367
8368 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8369 Callers updated.
8370 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8371 Remove parameter sysno.
8372 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8373 sysret.
8374
782c1122
AA
83752016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8376
8377 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8378 (s390_emit_ne_goto): Likewise.
8379 (s390_emit_lt_goto): Likewise.
8380 (s390_emit_le_goto): Likewise.
8381 (s390_emit_gt_goto): Likewise.
8382 (s390_emit_ge_goto): Likewise.
8383 (s390x_emit_eq_goto): Likewise.
8384 (s390x_emit_ne_goto): Likewise.
8385 (s390x_emit_lt_goto): Likewise.
8386 (s390x_emit_le_goto): Likewise.
8387 (s390x_emit_gt_goto): Likewise.
8388 (s390x_emit_ge_goto): Likewise.
8389 (s390_emit_ops_impl): Mark variable static.
8390 (s390x_emit_ops): Likewise.
8391
2e7b624b
YQ
83922016-06-17 Yao Qi <yao.qi@linaro.org>
8393
8394 * linux-low.c (handle_extended_wait): Call
8395 uninsert_reinsert_breakpoints for the parent process. Remove
8396 reinsert breakpoints from the child process. Reinsert them to
8397 the parent process when vfork is done.
8398 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8399 (reinsert_reinsert_breakpoints): New function.
8400 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8401 (reinsert_reinsert_breakpoints): Declare.
8402
8a81c5d7
YQ
84032016-06-17 Yao Qi <yao.qi@linaro.org>
8404
8405 * linux-low.c (handle_extended_wait): If the parent is doing
8406 step-over, remove the reinsert breakpoints from the forked child.
8407
f50bf8e5
YQ
84082016-06-17 Yao Qi <yao.qi@linaro.org>
8409
8410 * linux-low.c (unsuspend_all_lwps): Declare.
8411 (linux_low_filter_event): If thread exited, call finish_step_over.
8412 If step-over is finished, unsuspend other threads.
8413
8376a3cb
YQ
84142016-06-17 Yao Qi <yao.qi@linaro.org>
8415
8416 * linux-low.c (linux_resume_one_lwp_throw): Assert
8417 has_reinsert_breakpoints returns false.
8418 * mem-break.c (delete_disabled_breakpoints): Assert
8419 bp type isn't reinsert_breakpoint.
8420
f79b145d
YQ
84212016-06-17 Yao Qi <yao.qi@linaro.org>
8422
8423 * linux-low.c (maybe_hw_step): New function.
8424 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8425 (finish_step_over): Switch current_thread to lwp temporarily,
8426 and assert has_reinsert_breakpoints returns true.
8427 (proceed_one_lwp): Call maybe_hw_step.
8428 * mem-break.c (has_reinsert_breakpoints): New function.
8429 * mem-break.h (has_reinsert_breakpoints): Declare.
8430
0ae534d2
JT
84312016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8432
8433 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8434
fcdad592
YQ
84352016-05-17 Yao Qi <yao.qi@linaro.org>
8436
8437 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8438 instead of find_inferior.
8439
9e784964
YQ
84402016-05-05 Yao Qi <yao.qi@linaro.org>
8441
8442 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8443 Initialize res to zero.
8444
cf2ebb6e
YQ
84452016-05-05 Yao Qi <yao.qi@linaro.org>
8446
8447 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8448 to uint32_t.
8449
c1aebf87
UW
84502016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8451
8452 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8453 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8454 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8455
35fd2deb 84562016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 8457 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
8458
8459 * tracepoint.c (write_inferior_int8): New function.
8460 (cmd_qtenable_disable): Write enable flag using
8461 write_inferior_int8.
8462
484b3c32
YQ
84632016-04-25 Yao Qi <yao.qi@linaro.org>
8464
8465 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8466 (need_step_over_p): Return zero if the LWP has pending signals
8467 can be delivered on software single step target.
8468
85ba7d86
YQ
84692016-04-25 Yao Qi <yao.qi@linaro.org>
8470
8471 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8472 return instead of error.
8473
3539aa13
YQ
84742016-04-22 Yao Qi <yao.qi@linaro.org>
8475
8476 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8477 to 23.
8478
5b061e98
YQ
84792016-04-22 Yao Qi <yao.qi@linaro.org>
8480
8481 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8482 signal when stepping over breakpoint with software single
8483 step.
8484
3451269c
PA
84852016-04-21 Pedro Alves <palves@redhat.com>
8486
8487 * linux-s390-low.c (s390_collect_ptrace_register)
8488 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8489 add casts.
8490 (s390_check_regset): Use void * instead of gdb_byte *.
8491
a2358508
PA
84922016-04-20 Pedro Alves <palves@redhat.com>
8493
8494 * configure: Renegerate.
8495
6885166d
YQ
84962016-04-20 Yao Qi <yao.qi@linaro.org>
8497
8498 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8499 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8500 number 16.
8501 (arm_store_gregset): Likewise.
8502
2b863f51
WT
85032016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8504
8505 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8506 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8507 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8508 (amd64-avx-mpx-linux.c): New rules.
8509 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8510 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8511 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8512 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8513 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8514 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8515 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8516 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8517 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8518 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8519 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8520 * linux-x86-low.c (x86_linux_read_description): Add case for
8521 X86_XSTATE_AVX_MPX_MASK.
8522 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8523 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8524 init_registers_i386_avx_mpx_linux.
8525 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8526 (initialize_low_tracepoint): Call
8527 init_registers_i386_avx_mpx_linux.
8528 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8529 (initialize_low_tracepoint): Call
8530 init_registers_amd64_avx_mpx_linux.
8531 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8532 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8533 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8534 declarations.
8535
9b30624b
PA
85362016-04-18 Pedro Alves <palves@redhat.com>
8537
8538 * configure: Regenerate.
8539
45e3745e
AT
85402016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8541
8542 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8543 (aarch64_emit_sub): Likewise.
8544
2afc13ff
PA
85452016-04-12 Pedro Alves <palves@redhat.com>
8546
8547 * utils.c (prepare_to_throw_exception): Delete.
8548
6e774b13
SM
85492016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8550
8551 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8552
4dca19f8
MK
85532016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8554
8555 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8556
d0a9981f
MK
85572016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8558
8559 * linux-aarch64-ipa.c: Add <elf.h> include.
8560 * linux-ppc-ipa.c: Add <elf.h> include.
8561 * linux-s390-ipa.c: Add <elf.h> include.
8562
252db07e
MK
85632016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8564
8565 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8566 (get_raw_reg_ptr): Likewise.
8567 (get_trace_state_variable_value_ptr): Likewise.
8568 (set_trace_state_variable_value_ptr): Likewise.
8569 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8570 char *.
8571
14e2b6d9
MK
85722016-03-31 Wei-cheng Wang <cole945@gmail.com>
8573 Marcin Kościelnicki <koriakin@0x04.net>
8574
8575 PR/17221
8576 * linux-ppc-low.c (emit_insns): New function.
8577 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8578 (ppc_emit_prologue): New function.
8579 (ppc_emit_epilogue): New function.
8580 (ppc_emit_add): New function.
8581 (ppc_emit_sub): New function.
8582 (ppc_emit_mul): New function.
8583 (ppc_emit_lsh): New function.
8584 (ppc_emit_rsh_signed): New function.
8585 (ppc_emit_rsh_unsigned): New function.
8586 (ppc_emit_ext): New function.
8587 (ppc_emit_zero_ext): New function.
8588 (ppc_emit_log_not): New function.
8589 (ppc_emit_bit_and): New function.
8590 (ppc_emit_bit_or): New function.
8591 (ppc_emit_bit_xor): New function.
8592 (ppc_emit_bit_not): New function.
8593 (ppc_emit_equal): New function.
8594 (ppc_emit_less_signed): New function.
8595 (ppc_emit_less_unsigned): New function.
8596 (ppc_emit_ref): New function.
8597 (ppc_emit_const): New function.
8598 (ppc_emit_reg): New function.
8599 (ppc_emit_pop): New function.
8600 (ppc_emit_stack_flush): New function.
8601 (ppc_emit_swap): New function.
8602 (ppc_emit_stack_adjust): New function.
8603 (ppc_emit_call): New function.
8604 (ppc_emit_int_call_1): New function.
8605 (ppc_emit_void_call_2): New function.
8606 (ppc_emit_if_goto): New function.
8607 (ppc_emit_goto): New function.
8608 (ppc_emit_eq_goto): New function.
8609 (ppc_emit_ne_goto): New function.
8610 (ppc_emit_lt_goto): New function.
8611 (ppc_emit_le_goto): New function.
8612 (ppc_emit_gt_goto): New function.
8613 (ppc_emit_ge_goto): New function.
8614 (ppc_write_goto_address): New function.
8615 (ppc_emit_ops_impl): New static variable.
8616 (ppc64v1_emit_prologue): New function.
8617 (ppc64v2_emit_prologue): New function.
8618 (ppc64_emit_epilogue): New function.
8619 (ppc64_emit_add): New function.
8620 (ppc64_emit_sub): New function.
8621 (ppc64_emit_mul): New function.
8622 (ppc64_emit_lsh): New function.
8623 (ppc64_emit_rsh_signed): New function.
8624 (ppc64_emit_rsh_unsigned): New function.
8625 (ppc64_emit_ext): New function.
8626 (ppc64_emit_zero_ext): New function.
8627 (ppc64_emit_log_not): New function.
8628 (ppc64_emit_bit_and): New function.
8629 (ppc64_emit_bit_or): New function.
8630 (ppc64_emit_bit_xor): New function.
8631 (ppc64_emit_bit_not): New function.
8632 (ppc64_emit_equal): New function.
8633 (ppc64_emit_less_signed): New function.
8634 (ppc64_emit_less_unsigned): New function.
8635 (ppc64_emit_ref): New function.
8636 (ppc64_emit_const): New function.
8637 (ppc64v1_emit_reg): New function.
8638 (ppc64v2_emit_reg): New function.
8639 (ppc64_emit_pop): New function.
8640 (ppc64_emit_stack_flush): New function.
8641 (ppc64_emit_swap): New function.
8642 (ppc64v1_emit_call): New function.
8643 (ppc64v2_emit_call): New function.
8644 (ppc64v1_emit_int_call_1): New function.
8645 (ppc64v2_emit_int_call_1): New function.
8646 (ppc64v1_emit_void_call_2): New function.
8647 (ppc64v2_emit_void_call_2): New function.
8648 (ppc64_emit_if_goto): New function.
8649 (ppc64_emit_eq_goto): New function.
8650 (ppc64_emit_ne_goto): New function.
8651 (ppc64_emit_lt_goto): New function.
8652 (ppc64_emit_le_goto): New function.
8653 (ppc64_emit_gt_goto): New function.
8654 (ppc64_emit_ge_goto): New function.
8655 (ppc64v1_emit_ops_impl): New static variable.
8656 (ppc64v2_emit_ops_impl): New static variable.
8657 (ppc_emit_ops): New function.
8658 (linux_low_target): Wire in ppc_emit_ops.
8659
a2174ba4
MK
86602016-03-31 Wei-cheng Wang <cole945@gmail.com>
8661 Marcin Kościelnicki <koriakin@0x04.net>
8662
8663 PR/17221
8664 * Makefile.in: Add powerpc-*-ipa.o
8665 * configure.srv: Add ipa_obj for powerpc*-linux.
8666 * linux-ppc-ipa.c: New file.
8667 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8668 includes.
8669 (PPC_FIELD): New macro.
8670 (PPC_SEXT): New macro.
8671 (PPC_OP6): New macro.
8672 (PPC_BO): New macro.
8673 (PPC_LI): New macro.
8674 (PPC_BD): New macro.
8675 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8676 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8677 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8678 (ppc_get_thread_area): New function.
8679 (is_elfv2_inferior): New function.
8680 (gen_ds_form): New function.
8681 (GEN_STD): New macro.
8682 (GEN_STDU): New macro.
8683 (GEN_LD): New macro.
8684 (GEN_LDU): New macro.
8685 (gen_d_form): New function.
8686 (GEN_ADDI): New macro.
8687 (GEN_ADDIS): New macro.
8688 (GEN_LI): New macro.
8689 (GEN_LIS): New macro.
8690 (GEN_ORI): New macro.
8691 (GEN_ORIS): New macro.
8692 (GEN_LWZ): New macro.
8693 (GEN_STW): New macro.
8694 (GEN_STWU): New macro.
8695 (gen_xfx_form): New function.
8696 (GEN_MFSPR): New macro.
8697 (GEN_MTSPR): New macro.
8698 (GEN_MFCR): New macro.
8699 (GEN_MTCR): New macro.
8700 (GEN_SYNC): New macro.
8701 (GEN_LWSYNC): New macro.
8702 (gen_x_form): New function.
8703 (GEN_OR): New macro.
8704 (GEN_MR): New macro.
8705 (GEN_LWARX): New macro.
8706 (GEN_STWCX): New macro.
8707 (GEN_CMPW): New macro.
8708 (gen_md_form): New function.
8709 (GEN_RLDICL): New macro.
8710 (GEN_RLDICR): New macro.
8711 (gen_i_form): New function.
8712 (GEN_B): New macro.
8713 (GEN_BL): New macro.
8714 (gen_b_form): New function.
8715 (GEN_BNE): New macro.
8716 (GEN_LOAD): New macro.
8717 (GEN_STORE): New macro.
8718 (gen_limm): New function.
8719 (gen_atomic_xchg): New function.
8720 (gen_call): New function.
8721 (ppc_relocate_instruction): New function.
8722 (ppc_install_fast_tracepoint_jump_pad): New function.
8723 (ppc_get_min_fast_tracepoint_insn_len): New function.
8724 (ppc_get_ipa_tdesc_idx): New function.
8725 (the_low_target): Wire in the new functions.
8726 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8727 tdescs.
8728 * linux-ppc-tdesc.h: New file.
8729
a13c4696
MK
87302016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8731
8732 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8733 (alloc_jump_pad_buffer): New function.
8734 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8735 (alloc_jump_pad_buffer): New function.
8736 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8737 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8738 (alloc_jump_pad_buffer): New function.
8739 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8740 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8741 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8742 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8743
1cda1512
MK
87442016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8745
8746 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8747 * linux-amd64-ipa.c: Likewise.
8748 * linux-i386-ipa.c: Likewise.
8749 * linux-s390-ipa.c: Likewise.
8750 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8751 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8752 set_trace_state_variable_value_ptr.
8753 (struct ipa_sym_addresses): Likewise.
8754 (symbol_list): Likewise.
8755 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8756 accessing gdb_collect directly.
8757 (gdb_collect_ptr_type): New typedef.
8758 (get_raw_reg_ptr_type): New typedef.
8759 (get_trace_state_variable_value_ptr_type): New typedef.
8760 (set_trace_state_variable_value_ptr_type): New typedef.
8761 (gdb_collect_ptr): New global.
8762 (get_raw_reg_ptr): New global.
8763 (get_trace_state_variable_value_ptr): New global.
8764 (set_trace_state_variable_value_ptr): New global.
8765 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8766 accessing get_raw_reg directly.
8767 (get_get_tsv_func_addr): Likewise for
8768 get_trace_state_variable_value_ptr.
8769 (get_set_tsv_func_addr): Likewise for
8770 set_trace_state_variable_value_ptr.
8771 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8772
72fb5488
SM
87732016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8774
8775 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8776
28170b88
MK
87772016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8778
8779 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8780 packets.
8781 (relocate_instruction): Remove own_buf.
8782 * server.c (own_buf): Make global.
8783 (handle_v_requests): Make global.
8784 * server.h (own_buf): New declaration.
8785 (handle_v_requests): New prototype.
8786
f39e8743
MK
87872016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8788
8789 PR 18377
8790 * linux-s390-low.c (add_insns): New function.
8791 (s390_emit_prologue): New function.
8792 (s390_emit_epilogue): New function.
8793 (s390_emit_add): New function.
8794 (s390_emit_sub): New function.
8795 (s390_emit_mul): New function.
8796 (s390_emit_lsh): New function.
8797 (s390_emit_rsh_signed): New function.
8798 (s390_emit_rsh_unsigned): New function.
8799 (s390_emit_ext): New function.
8800 (s390_emit_log_not): New function.
8801 (s390_emit_bit_and): New function.
8802 (s390_emit_bit_or): New function.
8803 (s390_emit_bit_xor): New function.
8804 (s390_emit_bit_not): New function.
8805 (s390_emit_equal): New function.
8806 (s390_emit_less_signed): New function.
8807 (s390_emit_less_unsigned): New function.
8808 (s390_emit_ref): New function.
8809 (s390_emit_if_goto): New function.
8810 (s390_emit_goto): New function.
8811 (s390_write_goto_address): New function.
8812 (s390_emit_litpool): New function.
8813 (s390_emit_const): New function.
8814 (s390_emit_call): New function.
8815 (s390_emit_reg): New function.
8816 (s390_emit_pop): New function.
8817 (s390_emit_stack_flush): New function.
8818 (s390_emit_zero_ext): New function.
8819 (s390_emit_swap): New function.
8820 (s390_emit_stack_adjust): New function.
8821 (s390_emit_set_r2): New function.
8822 (s390_emit_int_call_1): New function.
8823 (s390_emit_void_call_2): New function.
8824 (s390_emit_eq_goto): New function.
8825 (s390_emit_ne_goto): New function.
8826 (s390_emit_lt_goto): New function.
8827 (s390_emit_le_goto): New function.
8828 (s390_emit_gt_goto): New function.
8829 (s390_emit_ge_goto): New function.
8830 (s390x_emit_prologue): New function.
8831 (s390x_emit_epilogue): New function.
8832 (s390x_emit_add): New function.
8833 (s390x_emit_sub): New function.
8834 (s390x_emit_mul): New function.
8835 (s390x_emit_lsh): New function.
8836 (s390x_emit_rsh_signed): New function.
8837 (s390x_emit_rsh_unsigned): New function.
8838 (s390x_emit_ext): New function.
8839 (s390x_emit_log_not): New function.
8840 (s390x_emit_bit_and): New function.
8841 (s390x_emit_bit_or): New function.
8842 (s390x_emit_bit_xor): New function.
8843 (s390x_emit_bit_not): New function.
8844 (s390x_emit_equal): New function.
8845 (s390x_emit_less_signed): New function.
8846 (s390x_emit_less_unsigned): New function.
8847 (s390x_emit_ref): New function.
8848 (s390x_emit_if_goto): New function.
8849 (s390x_emit_const): New function.
8850 (s390x_emit_call): New function.
8851 (s390x_emit_reg): New function.
8852 (s390x_emit_pop): New function.
8853 (s390x_emit_stack_flush): New function.
8854 (s390x_emit_zero_ext): New function.
8855 (s390x_emit_swap): New function.
8856 (s390x_emit_stack_adjust): New function.
8857 (s390x_emit_int_call_1): New function.
8858 (s390x_emit_void_call_2): New function.
8859 (s390x_emit_eq_goto): New function.
8860 (s390x_emit_ne_goto): New function.
8861 (s390x_emit_lt_goto): New function.
8862 (s390x_emit_le_goto): New function.
8863 (s390x_emit_gt_goto): New function.
8864 (s390x_emit_ge_goto): New function.
8865 (s390_emit_ops): New function.
8866 (struct linux_target_ops): Fill in emit_ops hook.
8867
abd9baf9
MK
88682016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8869
8870 PR 18377
8871 * Makefile.in: Add s390 IPA files.
8872 * configure.srv: Build IPA for s390.
8873 * linux-s390-ipa.c: New file.
8874 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8875 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8876 (tdesc_s390_linux32): Likewise.
8877 (init_registers_s390_linux32v1): Likewise.
8878 (tdesc_s390_linux32v1): Likewise.
8879 (init_registers_s390_linux32v2): Likewise.
8880 (tdesc_s390_linux32v2): Likewise.
8881 (init_registers_s390_linux64): Likewise.
8882 (tdesc_s390_linux64): Likewise.
8883 (init_registers_s390_linux64v1): Likewise.
8884 (tdesc_s390_linux64v1): Likewise.
8885 (init_registers_s390_linux64v2): Likewise.
8886 (tdesc_s390_linux64v2): Likewise.
8887 (init_registers_s390_te_linux64): Likewise.
8888 (tdesc_s390_te_linux64): Likewise.
8889 (init_registers_s390_vx_linux64): Likewise.
8890 (tdesc_s390_vx_linux64): Likewise.
8891 (init_registers_s390_tevx_linux64): Likewise.
8892 (tdesc_s390_tevx_linux64): Likewise.
8893 (init_registers_s390x_linux64): Likewise.
8894 (tdesc_s390x_linux64): Likewise.
8895 (init_registers_s390x_linux64v1): Likewise.
8896 (tdesc_s390x_linux64v1): Likewise.
8897 (init_registers_s390x_linux64v2): Likewise.
8898 (tdesc_s390x_linux64v2): Likewise.
8899 (init_registers_s390x_te_linux64): Likewise.
8900 (tdesc_s390x_te_linux64): Likewise.
8901 (init_registers_s390x_vx_linux64): Likewise.
8902 (tdesc_s390x_vx_linux64): Likewise.
8903 (init_registers_s390x_tevx_linux64): Likewise.
8904 (tdesc_s390x_tevx_linux64): Likewise.
8905 (have_hwcap_s390_vx): New static variable.
8906 (s390_arch_setup): Fill have_hwcap_s390_vx.
8907 (s390_get_thread_area): New function.
8908 (s390_ft_entry_gpr_esa): New const.
8909 (s390_ft_entry_gpr_zarch): New const.
8910 (s390_ft_entry_misc): New const.
8911 (s390_ft_entry_fr): New const.
8912 (s390_ft_entry_vr): New const.
8913 (s390_ft_main_31): New const.
8914 (s390_ft_main_64): New const.
8915 (s390_ft_exit_fr): New const.
8916 (s390_ft_exit_vr): New const.
8917 (s390_ft_exit_misc): New const.
8918 (s390_ft_exit_gpr_esa): New const.
8919 (s390_ft_exit_gpr_zarch): New const.
8920 (append_insns): New function.
8921 (s390_relocate_instruction): New function.
8922 (s390_install_fast_tracepoint_jump_pad): New function.
8923 (s390_get_min_fast_tracepoint_insn_len): New function.
8924 (s390_get_ipa_tdesc_idx): New function.
8925 (struct linux_target_ops): Wire in the above functions.
8926 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8927 * linux-s390-tdesc.h: New file.
8928
a4105d04
MK
89292016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8930
8931 * linux-s390-low.c (s390_supports_tracepoints): New function.
8932 (struct linux_target_ops): Fill supports_tracepoints hook.
8933
35ac8b3e
YQ
89342016-03-18 Yao Qi <yao.qi@linaro.org>
8935
8936 * linux-low.c (lwp_signal_can_be_delivered): New function.
8937 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8938
94610ec4
YQ
89392016-03-18 Yao Qi <yao.qi@linaro.org>
8940
8941 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8942 0 if signal is enqueued. Remove 'signal' from one debugging
8943 message. Move one debugging message to some lines below.
8944 Remove code setting 'signal' to 0.
8945
80aea927
YQ
89462016-03-18 Yao Qi <yao.qi@linaro.org>
8947
8948 * linux-low.c (linux_low_filter_event): Remove redundant
8949 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8950
b04fd3be
MK
89512016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8952
8953 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8954 (struct linux_target_ops): Wire in the above.
8955
c40c8d4b
YQ
89562016-03-03 Yao Qi <yao.qi@linaro.org>
8957
8958 * linux-low.c: Update comments to start_step_over.
8959
0f8288ae
YQ
89602016-03-03 Yao Qi <yao.qi@linaro.org>
8961
8962 PR server/19736
8963 * linux-low.c (handle_extended_wait): Set child suspended
8964 if event_lwp->bp_reinsert isn't zero.
8965
fdbd04a8
YQ
89662016-03-02 Yao Qi <yao.qi@linaro.org>
8967
8968 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8969 enqueue_pending_signal.
8970
6896a8fa
MK
89712016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8972
8973 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8974 is actually loaded.
8975
ab503087
MK
89762016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8977
8978 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8979 (s390_regmap_3264) [!__s390x__]: New global.
8980 (s390_collect_ptrace_register): Skip map entries containing -1.
8981 (s390_supply_ptrace_register): Ditto.
8982 (s390_fill_gprs_high): New function.
8983 (s390_store_gprs_high): New function.
8984 (s390_regsets): Add NT_S390_HIGH_GPRS.
8985 (s390_get_hwcap): Enable on 31-bit.
8986 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8987 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8988 Detect NT_S390_HIGH_GPRS.
8989 (s390_usrregs_info_3264): Enable on 31-bit.
8990 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8991 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8992
ae91f625
MK
89932016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8994
8995 PR gdb/13808
8996 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8997 * configure.srv: Ditto.
8998 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8999 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9000 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9001 (init_registers_amd64_linux): Remove prototype.
9002 (tdesc_amd64_linux): Remove declaration.
9003 (get_ipa_tdesc): New function.
9004 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9005 initialize remaining tdescs.
9006 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9007 (init_registers_i386_linux): Remove prototype.
9008 (tdesc_i386_linux): Remove declaration.
9009 (get_ipa_tdesc): New function.
9010 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9011 initialize remaining tdescs.
9012 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9013 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9014 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9015 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9016 (x86_get_ipa_tdesc_idx): New function.
9017 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9018 * linux-x86-tdesc.h: New file.
9019 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9020 (target_get_ipa_tdesc_idx): New macro.
9021 * tracepoint.c (ipa_tdesc_idx): New macro.
9022 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9023 (symbol_list): Add ipa_tdesc_idx.
9024 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9025 (ipa_tdesc): Remove.
9026 (ipa_tdesc_idx): New variable.
9027 (get_context_regcache): Use get_ipa_tdesc.
9028 (gdb_collect): Ditto.
9029 (gdb_probe): Ditto.
9030 * tracepoint.h (get_ipa_tdesc): New prototype.
9031 (ipa_tdesc): Remove.
9032
e7ad2f14
PA
90332016-02-24 Pedro Alves <palves@redhat.com>
9034
9035 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9036 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9037 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9038 Factor out common code between the USE_SIGTRAP_SIGINFO and
9039 !USE_SIGTRAP_SIGINFO blocks.
9040 (linux_low_filter_event): Call save_stop_reason instead of
9041 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9042 Update comments.
9043 (linux_wait_1): Update comments.
9044
657f9cde
WW
90452016-02-24 Wei-cheng Wang <cole945@gmail.com>
9046
9047 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9048 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9049 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9050 ppc_insert_point, ppc_remove_point.
9051
b00b61e1
MK
90522016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9053
9054 * linux-s390-low.c (s390_supports_z_point_type): New function.
9055 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9056
553cb527
YQ
90572016-02-16 Yao Qi <yao.qi@linaro.org>
9058
9059 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9060 PC. Get pc from regcache_read_pc.
9061
a5652c21
YQ
90622016-02-12 Yao Qi <yao.qi@linaro.org>
9063
9064 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9065 or linux_get_pc_32bit.
9066 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9067
ed443b61
YQ
90682016-02-12 Yao Qi <yao.qi@linaro.org>
9069
9070 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9071 arm_linux_get_next_pcs_fixup.
9072
020ecd38
MK
90732016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9074
9075 * tracepoint.c (x_tracepoint_action_download): Change
9076 write_inferior_data_ptr to write_inferior_data_pointer.
9077 (cmd_qtstart): Likewise.
9078 (write_inferior_data_ptr): Remove.
9079 (download_agent_expr): Change write_inferior_data_ptr to
9080 write_inferior_data_pointer.
9081 (download_tracepoint_1): Likewise.
9082 (download_tracepoint): Likewise.
9083 (download_trace_state_variables): Likewise.
9084
7cae9051
WW
90852016-02-11 Wei-cheng Wang <cole945@gmail.com>
9086 Marcin Kościelnicki <koriakin@0x04.net>
9087
9088 * tracepoint.c (struct tracepoint_action_ops): Remove.
9089 (struct tracepoint_action): Remove ops.
9090 (m_tracepoint_action_download, r_tracepoint_action_download)
9091 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9092 size and offset accordingly.
9093 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9094 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9095 (tracepoint_action_send, tracepoint_action_download): New functions.
9096 Helpers for trace action handlers.
9097 (add_tracepoint_action): Remove setup actions ops.
9098 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9099
9f6a71b4
YQ
91002016-02-10 Yao Qi <yao.qi@linaro.org>
9101
9102 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9103
1e94266c
SM
91042016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9105
9106 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9107 to AC_OUTPUT.
9108 * configure: Regenerate.
9109
8adce034
SM
91102016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9111
9112 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9113 void * to gdb_byte *.
9114 * linux-low.c (siginfo_fixup): Likewise.
9115 (linux_xfer_siginfo): Likewise.
9116 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9117 Likewise.
9118 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9119
93813b37
WT
91202016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9121
9122 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9123 to srv_tgtobj.
9124 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9125 to srv_tgtobj.
9126 * linux-x86-low.c [__x86_64__]: Include
9127 "nat/amd64-linux-siginfo.h".
9128 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9129 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9130 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9131 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9132 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9133 (cpt_si_fd, si_timerid, si_overrun): Move from
9134 nat/amd64-linux-siginfo.c.
9135 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9136
8424cc97
SM
91372016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9138
9139 * server.c (skip_to_semicolon): Remove.
9140 (process_point_options): Use strchrnul instead of
9141 skip_to_semicolon.
9142
4d18591b
YQ
91432016-01-26 Yao Qi <yao.qi@linaro.org>
9144
9145 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9146 * linux-low.c (install_software_single_step_breakpoints): Don't
9147 call regcache_read_pc.
9148 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9149 argument pc.
9150
d8020970
YQ
91512016-01-26 Yao Qi <yao.qi@linaro.org>
9152
9153 * linux-low.c (install_software_single_step_breakpoints): Call
9154 regcache_read_pc instead of get_pc.
9155
8b207339
YQ
91562016-01-26 Yao Qi <yao.qi@linaro.org>
9157
9158 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9159 (unblock_async_io): Rename to ...
9160 (block_unblock_async_io): ... it. New function.
9161 (enable_async_io): Don't install SIGIO handler. Unblock it
9162 instead.
9163 (disable_async_io): Don't ignore SIGIO. Block it instead.
9164 (initialize_async_io): Install SIGIO handler. Don't call
9165 unblock_async_io.
9166
18879fef
YQ
91672016-01-26 Yao Qi <yao.qi@linaro.org>
9168
9169 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9170 first character is '\003', call *the_target->request_interrupt.
9171
a0f8e08a
YQ
91722016-01-25 Yao Qi <yao.qi@linaro.org>
9173
9174 * remote-utils.c (new_thread_notify): Remove.
9175 (dead_thread_notify): Likewise.
9176 * remote-utils.h (new_thread_notify): Remove declaration.
9177 (dead_thread_notify): Likewise.
9178
cc5fd9ab
MK
91792016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9180
9181 * gdb.trace/pending.exp: Fix expected message on continue.
9182
99e8eb11
MK
91832016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9184
9185 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9186 it works properly on big-endian machines where sizeof (CORE_ADDR)
9187 != sizeof (void *).
9188
a994041d
PA
91892016-01-21 Pedro Alves <palves@redhat.com>
9190
9191 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9192 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9193 * configure: Regenerate.
9194
f7a6a40d
YQ
91952016-01-21 Yao Qi <yao.qi@linaro.org>
9196
9197 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9198 is_thumb and set it according to CPSR saved on the stack.
9199 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9200 arm_sigreturn_next_pc.
9201
6f69e520
YQ
92022016-01-18 Yao Qi <yao.qi@linaro.org>
9203
9204 * linux-low.c (linux_set_pc_64bit): New function.
9205 (linux_get_pc_64bit): New function.
9206 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9207 Declare.
9208 * linux-sparc-low.c (debug_threads): Remove declaration.
9209 (sparc_get_pc): Remove.
9210 (the_low_target): Use linux_get_pc_64bit instead of
9211 sparc_get_pc.
9212 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9213 (the_low_target): Use linux_get_pc_64bit and
9214 linux_set_pc_64bit.
9215
276d4552
YQ
92162016-01-18 Yao Qi <yao.qi@linaro.org>
9217
9218 * linux-arm-low.c (debug_threads): Remove declaration.
9219 (arm_get_pc, arm_set_pc): Remove.
9220 (the_low_target): Use linux_get_pc_32bit and
9221 linux_set_pc_32bit.
9222 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9223 (the_low_target): Use linux_get_pc_32bit and
9224 linux_set_pc_32bit.
9225 * linux-cris-low.c (debug_threads): Remove declaration.
9226 (cris_get_pc, cris_set_pc,): Remove.
9227 (the_low_target): Use linux_get_pc_32bit and
9228 linux_set_pc_32bit.
9229 * linux-crisv32-low.c (debug_threads): Remove declaration.
9230 (cris_get_pc, cris_set_pc): Remove.
9231 (the_low_target): Use linux_get_pc_32bit and
9232 linux_set_pc_32bit.
9233 * linux-low.c: Include inttypes.h.
9234 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9235 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9236 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9237 (the_low_target): Use linux_get_pc_32bit and
9238 linux_set_pc_32bit.
9239 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9240 (the_low_target): Use linux_get_pc_32bit and
9241 linux_set_pc_32bit.
9242 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9243 (the_low_target): Use linux_get_pc_32bit and
9244 linux_set_pc_32bit.
9245 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9246 (the_low_target): Use linux_get_pc_32bit and
9247 linux_set_pc_32bit.
9248 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9249 (the_low_target): Use linux_get_pc_32bit and
9250 linux_set_pc_32bit.
9251
eb0edac8
GB
92522016-01-18 Gary Benson <gbenson@redhat.com>
9253
9254 * configure.ac (AC_FUNC_FORK): New check.
9255 * config.in: Regenerate.
9256 * configure: Likewise.
9257
1b451dda
YQ
92582016-01-14 Yao Qi <yao.qi@linaro.org>
9259
9260 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9261 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9262 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9263 arm_get_next_pcs_ctor.
9264
82075af2
JS
92652016-01-12 Josh Stone <jistone@redhat.com>
9266 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9267
9268 * inferiors.h: Include "gdb_vecs.h".
9269 (struct process_info): Add syscalls_to_catch.
9270 * inferiors.c (remove_process): Free syscalls_to_catch.
9271 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9272 syscall_return stops.
9273 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9274 * server.c (handle_general_set): Handle QCatchSyscalls.
9275 (handle_query): Report support for QCatchSyscalls.
9276 * target.h (struct target_ops): Add supports_catch_syscall.
9277 (target_supports_catch_syscall): New macro.
9278 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9279 (struct lwp_info): Add syscall_state.
9280 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9281 Maintain syscall_state and syscalls_to_catch across exec.
9282 (get_syscall_trapinfo): New function, proxy to the_low_target.
9283 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9284 (linux_low_filter_event): Toggle syscall_state entry/return for
9285 syscall traps, and set it ignored for all others.
9286 (gdb_catching_syscalls_p): New function.
9287 (gdb_catch_this_syscall_p): New function.
9288 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9289 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9290 (linux_supports_catch_syscall): New function.
9291 (linux_target_ops): Install it.
9292 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9293 (the_low_target): Install it.
9294
8f13a3ce
MF
92952016-01-12 Mike Frysinger <vapier@gentoo.org>
9296
9297 * acinclude.m4: Include new ../warning.m4 file.
9298 * configure: Regenerated.
9299 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9300
5b3da067
MF
93012016-01-12 Mike Frysinger <vapier@gentoo.org>
9302
9303 * ax.c (is_goto_target): Mark static.
9304 * linux-low.c (register_addr): Likewise.
9305 (linux_fetch_registers, linux_store_registers): Likewise.
9306 * mem-break.c (any_persistent_commands): Fix old prototype.
9307 (add_commands_to_breakpoint): Mark static.
9308 * regcache.c (find_register_by_name): Delete unused func.
9309 * remote-utils.c (hex_or_minus_one): Mark static.
9310 * server.c (monitor_show_help): Mark static.
9311 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9312 handle_v_requests): Likewise.
9313
bc504a31
PA
93142016-01-12 Pedro Alves <palves@redhat.com>
9315
9316 Remove use of the registered trademark symbol throughout.
9317
5a0dd67a
YQ
93182016-01-08 Yao Qi <yao.qi@linaro.org>
9319
9320 * remote-utils.c (getpkt): If c is '\003', call target hook
9321 request_interrupt.
9322
b2ca446f
YQ
93232016-01-06 Yao Qi <yao.qi@linaro.org>
9324
9325 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9326 linux-aarch32-low.c.
9327 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9328 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9329 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9330 (thumb2_breakpoint): Declare.
9331 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9332 linux-aarch32-low.h.
9333 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9334 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9335 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9336
edd88788
JB
93372016-01-01 Joel Brobecker <brobecker@adacore.com>
9338
9339 * gdbreplay.c (gdbreplay_version): Change copyright year in
9340 version message.
9341 * server.c (gdbserver_version): Likewise.
9342
65da7f14
PP
93432015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9344
9345 * server.c (crc32_table): Delete.
9346 (crc32): Use libiberty's xcrc32 function.
9347
4abd5ed2
JB
93482015-12-22 Joel Brobecker <brobecker@adacore.com>
9349
9350 * lynx-low.c (lynx_delete_thread_callback): New function.
9351 (lynx_mourn): Properly delete our process and all of its
9352 threads. Remove call to clear_inferiors.
9353
0e50fe5c
JB
93542015-12-22 Joel Brobecker <brobecker@adacore.com>
9355
9356 * target.c (thread_search_callback): Add check that
9357 the thread_stopped target callback is not NULL before
9358 calling it.
9359
35adc03f
YQ
93602015-12-21 Yao Qi <yao.qi@linaro.org>
9361
9362 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9363 arm breakpoint.
9364
bd2b2909
AT
93652015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9366
9367 * server.c (handle_query): Call target_supports_software_single_step.
9368
7fe5e27e
AT
93692015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9370
9371 * linux-low.c (single_step): New function.
9372 (linux_resume_one_lwp_throw): Call single_step.
9373 (start_step_over): Likewise.
9374
d9311bfa
AT
93752015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9376
9377 * Makefile.in (SFILES): Append arch/arm-linux.c,
9378 arch/arm-get-next-pcs.c.
9379 (arm-linux.o): New rule.
9380 (arm-get-next-pcs.o): New rule.
9381 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9382 arm-linux.o.
9383 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9384 to linux-aarch32-low.c.
9385 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9386 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9387 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9388 (thumb2_breakpoint_len): Likewise.
9389 (arm_is_thumb_mode): Make non-static.
9390 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9391 from linux-aarch32-low.c.
9392 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9393 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9394 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9395 (thumb2_breakpoint_len): Likewise.
9396 (arm_is_thumb_mode): New declaration.
9397 * linux-arm-low.c: Include arch/arm-linux.h
9398 aarch/arm-get-next-pcs.h, sys/syscall.h.
9399 (get_next_pcs_ops): New struct.
9400 (get_next_pcs_addr_bits_remove): New function.
9401 (get_next_pcs_is_thumb): New function.
9402 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9403 (arm_sigreturn_next_pc): Likewise.
9404 (get_next_pcs_syscall_next_pc): Likewise.
9405 (arm_gdbserver_get_next_pcs): Likewise.
9406 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9407 Initialize.
9408 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9409 * server.h: Include gdb_vecs.h.
9410
68ce2059
AT
94112015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9412
9413 * Makefile.in (SFILES): Append common/common-regcache.c.
9414 (OBS): Append common-regcache.o.
9415 (common-regcache.o): New rule.
9416 * regcache.c (init_register_cache): Initialize cache to
9417 REG_UNAVAILABLE.
9418 (regcache_raw_read_unsigned): New function.
9419 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9420 register_status enum.
9421
fa5308bd
AT
94222015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9423
9424 * linux-aarch64-low.c (the_low_targets): Rename
9425 breakpoint_reinsert_addr to get_next_pcs.
9426 * linux-arm-low.c (the_low_targets): Likewise.
9427 * linux-bfin-low.c (the_low_targets): Likewise.
9428 * linux-cris-low.c (the_low_targets): Likewise.
9429 * linux-crisv32-low.c (the_low_targets): Likewise.
9430 * linux-low.c (can_software_single_step): Likewise.
9431 (install_software_single_step_breakpoints): New function.
9432 (start_step_over): Use install_software_single_step_breakpoints.
9433 * linux-low.h: New CORE_ADDR vector.
9434 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9435 get_next_pcs.
9436 * linux-mips-low.c (the_low_targets): Likewise.
9437 * linux-nios2-low.c (the_low_targets): Likewise.
9438 * linux-sparc-low.c (the_low_targets): Likewise.
9439
4a6ed09b
PA
94402015-12-17 Pedro Alves <palves@redhat.com>
9441
9442 * linux-low.c (linux_kill_one_lwp): Remove references to
9443 LinuxThreads.
9444 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9445 to 'kill'.
9446 (linux_init_signals): Delete.
9447 (initialize_low): Adjust.
9448 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9449
7544db95
PA
94502015-12-16 Pedro Alves <palves@redhat.com>
9451
9452 * configure.ac (compiler warning flags): When testing a
9453 -Wno-foo option, check whether -Wfoo works instead.
9454 * configure: Regenerate.
9455
8020350c
DB
94562015-12-11 Don Breazeal <donb@codesourcery.com>
9457
9458 * server.c (process_serial_event): Don't exit from gdbserver
9459 in remote mode if there are still active inferiors.
9460
db91f502
YQ
94612015-12-11 Yao Qi <yao.qi@linaro.org>
9462
9463 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9464 arm_breakpoint_at if the process is 32-bit.
9465
b37a6290
YQ
94662015-12-11 Yao Qi <yao.qi@linaro.org>
9467
9468 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9469 arm breakpoint.
9470
17b1509a
YQ
94712015-12-07 Yao Qi <yao.qi@linaro.org>
9472
9473 * configure.srv: Append arm.o to srv_tgtobj for
9474 aarch64*-*-linux* target.
9475 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9476 from linux-arm-low.c.
9477 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9478 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9479 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9480 (thumb2_breakpoint_len): Likewise.
9481 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9482 (arm_breakpoint_kinds): Likewise.
9483 (arm_breakpoint_kind_from_pc): Likewise.
9484 (arm_sw_breakpoint_from_kind): Likewise.
9485 (arm_breakpoint_kind_from_current_state): Likewise.
9486 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9487 (arm_sw_breakpoint_from_kind): Declare.
9488 (arm_breakpoint_kind_from_current_state): Declare.
9489 (arm_breakpoint_at): Declare.
9490 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9491 arm_sw_breakpoint_from_kind if process is 32-bit.
9492 (aarch64_breakpoint_kind_from_pc): New function.
9493 (aarch64_breakpoint_kind_from_current_state): New function.
9494 (the_low_target): Initialize fields breakpoint_kind_from_pc
9495 and breakpoint_kind_from_current_state.
9496 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9497 linux-aarch32-low.c.
9498 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9499 (arm_breakpoint, arm_breakpoint_len): Likewise.
9500 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9501 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9502 (arm_is_thumb_mode): Likewise.
9503 (arm_breakpoint_at): Likewise.
9504 (arm_breakpoint_kind_from_pc): Likewise.
9505 (arm_sw_breakpoint_from_kind): Likewise.
9506 (arm_breakpoint_kind_from_current_state): Likewise.
9507
9508 Revert:
9509 2015-08-04 Yao Qi <yao.qi@linaro.org>
9510
9511 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9512 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9513 * server.c (extended_protocol): Remove "static".
9514 * server.h (extended_protocol): Declare it.
9515
ece66d65
JS
95162015-12-04 Josh Stone <jistone@redhat.com>
9517
9518 * target.h (struct target_ops) <arch_setup>: Rename to ...
9519 (struct target_ops) <post_create_inferior>: ... this.
9520 (target_arch_setup): Rename to ...
9521 (target_post_create_inferior): ... this, calling post_create_inferior.
9522 * server.c (start_inferior): Update target_arch_setup calls to
9523 target_post_create_inferior.
9524 * linux-low.c (linux_low_ptrace_options): Forward declare.
9525 (linux_arch_setup): Update its comment for general use.
9526 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9527 (struct linux_target_ops): Use linux_post_create_inferior.
9528 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9529 to post_create_inferior.
9530 * nto-low.c (struct nto_target_ops): Likewise.
9531 * spu-low.c (struct spu_target_ops): Likewise.
9532 * win32-low.c (struct win32_target_ops): Likewise.
9533
e58c48b4
AT
95342015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9535
9536 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9537
fbec8956
AT
95382015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9539
9540 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9541 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9542 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9543 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9544 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9545 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9546 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9547 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9548 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9549 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9550 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9551 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9552
9b4c5f87
AT
95532015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9554
9555 * linux-low.c (linux_look_up_symbols): Don't call
9556 linux_supports_traceclone.
9557 * linux-low.h (thread_db_init): Remove use_events argument.
9558 * thread-db.c (thread_db_use_event): Remove global variable.
9559 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9560 (struct thread_db) <td_create_bp>: Remove field.
9561 (thread_db_create_event): Remove function.
9562 (thread_db_enable_reporting): Likewise.
9563 (find_one_thread): Don't check for thread_db_use_events.
9564 (attach_thread): Likewise.
9565 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9566 (try_thread_db_load_1): Don't check for thread_db_use_events.
9567 (thread_db_init): Remove use_events argument and thread events
9568 handling.
9569 (remove_thread_event_breakpoints): Remove function.
9570 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9571
7d00775e
AT
95722015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9573
9574 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9575 New function.
9576 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9577 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9578 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9579 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9580 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9581 Initialize.
9582 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9583 New function.
9584 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9585 * linux-low.c (can_hardware_single_step): Use
9586 supports_hardware_single_step.
9587 (can_software_single_step): New function.
9588 (start_step_over): Call can_software_single_step.
9589 (linux_supports_hardware_single_step): New function.
9590 (struct target_ops) <supports_software_single_step>: Initialize.
9591 * linux-low.h (struct linux_target_ops)
9592 <supports_hardware_single_step>: Initialize.
9593 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9594 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9595 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9596 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9597 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9598 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9599 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9600 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9601 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9602 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9603 Initialize.
9604 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9605 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9606 Initialize.
9607 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9608 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9609 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9610 New function.
9611 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9612 * target.h (struct target_ops): <supports_software_single_step>:
9613 New field.
9614 (target_supports_software_single_step): New macro.
9615
2d97cd35
AT
96162015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9617
9618 * linux-low.c (linux_wait_1): Fix pc advance condition.
9619 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9620 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9621
769ef81f
AT
96222015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9623
9624 * linux-arm-low.c (arm_is_thumb_mode): New function.
9625 (arm_breakpoint_at): Use arm_is_thumb_mode.
9626 (arm_breakpoint_kind_from_current_state): New function.
9627 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9628 Initialize.
9629 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9630 (linux_breakpoint_kind_from_current_state): New function.
9631 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9632 * linux-low.h (struct linux_target_ops)
9633 <breakpoint_kind_from_current_state>: New field.
9634 * target.h (struct target_ops): Likewise.
9635 (target_breakpoint_kind_from_current_state): New macro.
9636
1bebeeca
PA
96372015-11-30 Pedro Alves <palves@redhat.com>
9638
9639 * linux-low.c (linux_resume): Wake up the event loop before
9640 returning.
9641
a67a9fae
PA
96422015-11-30 Pedro Alves <palves@redhat.com>
9643
9644 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9645 check.
9646 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9647 to -1.
9648 * target.c (struct thread_search): New structure.
9649 (thread_search_callback): New function.
9650 (prev_general_thread): New global.
9651 (prepare_to_access_memory, done_accessing_memory): New functions.
9652 * target.h (prepare_to_access_memory, done_accessing_memory):
9653 Replace macros with function declarations.
9654
f2faf941
PA
96552015-11-30 Pedro Alves <palves@redhat.com>
9656
9657 PR 14618
9658 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9659 report TARGET_WAITKIND_NO_RESUMED.
9660 * remote-utils.c (prepare_resume_reply): Handle
9661 TARGET_WAITKIND_NO_RESUMED.
9662 * server.c (report_no_resumed): New global.
9663 (handle_query) <qSupported>: Handle "no-resumed+". Report
9664 "no-resumed+" support.
9665 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9666 return error if the client doesn't support no-resumed events.
9667 (push_stop_notification): New function.
9668 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9669 events if the client supports them.
9670
a681f9c9
PA
96712015-11-30 Pedro Alves <palves@redhat.com>
9672
9673 * linux-low.c (thread_still_has_status_pending_p): Don't check
9674 vCont;t here.
9675 (lwp_resumed): New function.
9676 (status_pending_p_callback): Return early if the LWP is not
9677 supposed to be resumed.
9678
65706a29
PA
96792015-11-30 Pedro Alves <palves@redhat.com>
9680
9681 * linux-low.c (handle_extended_wait): Assert that the LWP's
9682 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9683 thread create events, leave the new child's status pending.
9684 (linux_low_filter_event): If GDB wants to hear about thread exit
9685 events, leave the LWP marked dead and don't delete it.
9686 (linux_wait_for_event_filtered): Don't check for thread exit.
9687 (filter_exit_event): New function.
9688 (linux_wait_1): Use it, when returning an exit event.
9689 (linux_resume_one_lwp_throw): Assert that the LWP's
9690 waitstatus is TARGET_WAITKIND_IGNORE.
9691 * remote-utils.c (prepare_resume_reply): Handle
9692 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9693 * server.c (report_thread_events): New global.
9694 (handle_general_set): Handle QThreadEvents.
9695 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9696 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9697 TARGET_WAITKIND_THREAD_EXITED.
9698 * server.h (report_thread_events): Declare.
9699
56cf4bed
PA
97002015-11-30 Pedro Alves <palves@redhat.com>
9701
9702 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9703 the thread's last_resume_kind was resume_stop.
9704
500c1d85
PA
97052015-11-30 Pedro Alves <palves@redhat.com>
9706
9707 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9708 before returning.
9709
de979965
PA
97102015-11-30 Pedro Alves <palves@redhat.com>
9711
9712 * server.c (handle_v_requests): Handle vCtrlC.
9713
34c65914
PA
97142015-11-30 Pedro Alves <palves@redhat.com>
9715
9716 * gdbthread.h (find_any_thread_of_pid): Declare.
9717 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9718 functions.
9719 * server.c (handle_query): If current_thread is NULL, look for
9720 another thread of the selected process.
9721
79efa585 97222015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 9723 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
9724
9725 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9726 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9727 name in reply.
9728 * target.h (struct target_ops) <thread_name>: New field.
9729 (target_thread_name): New macro.
9730
80d82c19
JB
97312015-11-23 Joel Brobecker <brobecker@adacore.com>
9732
9733 * regcache.h (regcache_invalidate_pid): Add declaration.
9734 * regcache.c (regcache_invalidate_pid): New function, extracted
9735 from regcache_invalidate.
9736 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9737 Add trivial documentation comment.
9738 * lynx-low.c: Use regcache_invalidate_pid instead of
9739 regcache_invalidate.
9740
64da5dd5
JB
97412015-11-23 Joel Brobecker <brobecker@adacore.com>
9742
9743 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9744 and Elf64_auxv_t if the target is Android.
9745
37ce4055
DE
97462015-11-22 Doug Evans <xdje42@gmail.com>
9747
9748 * target.h: #include <sys/types.h>.
9749
06e03fff
PA
97502015-11-19 Pedro Alves <palves@redhat.com>
9751
9752 * linux-low.c (linux_process_qsupported): Change prototype.
9753 Adjust.
9754 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9755 Change prototype.
9756 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9757 and adjust to loop over all features.
9758 * server.c (handle_query) <qSupported>: Adjust to call
9759 target_process_qsupported once, passing it a vector of unprocessed
9760 features.
9761 * target.h (struct target_ops) <process_qsupported>: Change
9762 prototype.
9763 (target_process_qsupported): Adjust.
9764
9a084706
PA
97652015-11-19 Pedro Alves <palves@redhat.com>
9766
9767 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9768 mode.
9769 * configure: Regenerate.
9770
dad44a1f
PA
97712015-11-19 Pedro Alves <palves@redhat.com>
9772
9773 * configure: Regenerate.
9774
231c0592
YQ
97752015-11-19 Yao Qi <yao.qi@linaro.org>
9776
9777 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9778 type to uint32_t.
9779
6c1c9a8b
YQ
97802015-11-19 Yao Qi <yao.qi@linaro.org>
9781
9782 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9783 (struct aarch64_operand): Move enum out.
9784
9caa3311
YQ
97852015-11-19 Yao Qi <yao.qi@linaro.org>
9786
9787 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9788 struct user_fpsimd_state *.
9789 (aarch64_store_fpregset): Likewise.
9790
6a69a054
YQ
97912015-11-19 Yao Qi <yao.qi@linaro.org>
9792
9793 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9794 struct user_pt_regs *.
9795 (aarch64_store_gregset): Likewise.
9796
1798301e
PA
97972015-11-18 Pedro Alves <palves@redhat.com>
9798
9799 * Makefile.in (all_object_files): Add $IPA_OBJS.
9800
ce7715e2
PA
98012015-11-17 Pedro Alves <palves@redhat.com>
9802
9803 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9804 GDB_SIGNAL_0 and gdb_signal_to_string.
9805
c0879059
PA
98062015-11-17 Pedro Alves <palves@redhat.com>
9807
9808 * win32-low.c (handle_output_debug_string): Remove parameter.
9809 (win32_kill): Remove our_status local and adjust call to
9810 handle_output_debug_string.
9811 (get_child_debug_event): Adjust call to
9812 handle_output_debug_string.
9813
1996e237
SM
98142015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9815
9816 * linux-mips-low.c (mips_fill_gregset): Add cast.
9817 (mips_store_gregset): Likewise.
9818 (mips_fill_fpregset): Likewise.
9819 (mips_store_fpregset): Likewise.
9820
cbec665b
SM
98212015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9822
9823 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9824 priv.
9825
eb3e3c67
SM
98262015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9827
9828 * linux-mips-low.c (mips_linux_new_thread): Change type of
9829 watch_type to enum target_hw_bp_type.
9830
171de4b8
SM
98312015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9832
9833 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9834 Change return type to arm_hwbp_type.
9835
04248ead
SM
98362015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9837
9838 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9839 (arm_store_gregset): Likewise.
9840 * linux-arm-low.c (arm_get_hwcap): Likewise.
9841 (arm_read_description): Likewise.
9842
04b3479c
SM
98432015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9844
9845 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9846
2bc84e8a
SM
98472015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9848
9849 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9850 (ppc_fill_vsxregset): Likewise.
9851 (ppc_store_vsxregset): Likewise.
9852 (ppc_fill_vrregset): Likewise.
9853 (ppc_store_vrregset): Likewise.
9854 (ppc_fill_evrregset): Likewise.
9855 (ppc_store_evrregset): Likewise.
9856
e6c5bb05
SM
98572015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9858
9859 * linux-ppc-low.c (ppc_usrregs_info): Remove
9860 forward-declaration.
9861 (ppc_arch_setup): Move lower in file.
9862
7ea45d72
SM
98632015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9864
9865 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9866 (ps_pdwrite): Likewise.
9867
69291610
HW
98682015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9869
9870 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9871 to after assert checks.
9872
b42945fd
SM
98732015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9874
9875 * proc-service.c (ps_pdread): Add/adjust casts.
9876 (ps_pdwrite): Add/adjust casts.
9877
d6f85c84
SM
98782015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9879
9880 * server.c (handle_search_memory_1): Cast return value of
9881 memmem.
9882
f98cd059
SM
98832015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9884
9885 * server.c (write_qxfer_response): Change type of data to
9886 gdb_byte *.
9887
d2412fa5
PA
98882015-10-29 Pedro Alves <palves@redhat.com>
9889
9890 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9891
c17414a2
PA
98922015-10-29 Pedro Alves <palves@redhat.com>
9893
9894 * tracepoint.c (clear_installed_tracepoints): Add casts.
9895
e053fbc4
PA
98962015-10-29 Pedro Alves <palves@redhat.com>
9897
9898 * server.c (handle_v_cont, process_serial_event): Add enum
9899 gdb_signal casts to signal parsing code.
9900
add67df8
PA
99012015-10-29 Pedro Alves <palves@redhat.com>
9902
9903 * linux-low.h (NULL_REGSET): Define.
9904 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9905 * linux-arm-low.c (arm_regsets): Likewise.
9906 * linux-crisv32-low.c (cris_regsets): Likewise.
9907 * linux-m68k-low.c (m68k_regsets): Likewise.
9908 * linux-mips-low.c (mips_regsets): Likewise.
9909 * linux-nios2-low.c (nios2_regsets): Likewise.
9910 * linux-ppc-low.c (ppc_regsets): Likewise.
9911 * linux-s390-low.c (s390_regsets): Likewise.
9912 * linux-sh-low.c (sh_regsets): Likewise.
9913 * linux-sparc-low.c (sparc_regsets): Likewise.
9914 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9915 * linux-tile-low.c (tile_regsets): Likewise.
9916 * linux-x86-low.c (x86_regsets): Likewise.
9917 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9918
50bc912a
PA
99192015-10-29 Pedro Alves <palves@redhat.com>
9920
9921 * linux-low.h (NULL_REGSET): Define.
9922 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9923 * linux-arm-low.c (arm_regsets): Likewise.
9924 * linux-crisv32-low.c (cris_regsets): Likewise.
9925 * linux-m68k-low.c (m68k_regsets): Likewise.
9926 * linux-mips-low.c (mips_regsets): Likewise.
9927 * linux-nios2-low.c (nios2_regsets): Likewise.
9928 * linux-ppc-low.c (ppc_regsets): Likewise.
9929 * linux-s390-low.c (s390_regsets): Likewise.
9930 * linux-sh-low.c (sh_regsets): Likewise.
9931 * linux-sparc-low.c (sparc_regsets): Likewise.
9932 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9933 * linux-tile-low.c (tile_regsets): Likewise.
9934 * linux-x86-low.c (x86_regsets): Likewise.
9935 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9936
682b2546
DE
99372015-10-26 Doug Evans <dje@google.com>
9938
9939 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9940
963843d4
DE
99412015-10-26 Doug Evans <dje@google.com>
9942
9943 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9944
d41401ac
DE
99452015-10-26 Doug Evans <dje@google.com>
9946
9947 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9948 for debug_printf.
9949 (attach_thread, find_new_threads_callback): Ditto.
9950
3db28855
AT
99512015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9952
9953 * mem-break.h (set_breakpoint_data): Remove.
9954
fb78e89c
AT
99552015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9956
9957 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9958 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9959 (initialize_low): Remove set_breakpoint_data call.
9960 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9961 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9962 (initialize_low): Remove set_breakpoint_data call.
9963 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9964 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9965 (initialize_low): Remove set_breakpoint_data call.
9966
2e6ee069
AT
99672015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9968
9969 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9970 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9971 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9972 * target.h (target_breakpoint_kind_from_pc): New macro.
9973
1652a986
AT
99742015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9975
9976 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9977 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9978 the default breakpoint kind.
9979
abeead09
AT
99802015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9981
9982 * linux-arm-low.c (arm_supports_z_point_type): Add software
9983 breakpoint support.
9984
b0b4b501
AT
99852015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9986
9987 * linux-arm-low.c: Refactor breakpoint definitions.
9988 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9989 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9990
8689682c
AT
99912015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9992
9993 * Makefile.in: Add arm.c/o.
9994 * configure.srv: Likewise.
9995 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9996 (arm_breakpoint_kind_from_pc): New function.
9997 (arm_sw_breakpoint_from_kind): Return proper kind.
9998 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9999
27165294
AT
100002015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10001
10002 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10003 removal.
10004 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10005 (struct raw_breakpoint) <size>: Remove.
10006 (struct raw_breakpoint) <kind>: Add.
10007 (bp_size): New function.
10008 (bp_opcode): Likewise.
10009 (find_raw_breakpoint_at): Adjust for kind.
10010 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10011 (remove_memory_breakpoint): Adjust for kind call bp_size.
10012 (set_raw_breakpoint_at): Adjust for kind.
10013 (set_breakpoint): Likewise.
10014 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10015 (delete_raw_breakpoint): Adjust for kind.
10016 (delete_breakpoint): Likewise.
10017 (find_gdb_breakpoint): Likewise.
10018 (set_gdb_breakpoint_1): Likewise.
10019 (set_gdb_breakpoint): Likewise.
10020 (delete_gdb_breakpoint_1): Likewise.
10021 (delete_gdb_breakpoint): Likewise.
10022 (uninsert_raw_breakpoint): Likewise.
10023 (reinsert_raw_breakpoint): Likewise.
10024 (set_breakpoint_data): Remove.
10025 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10026 (check_mem_read): Adjust for kind call bp_size.
10027 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10028 (clone_one_breakpoint): Adjust for kind.
10029 * mem-break.h (set_gdb_breakpoint): Likewise.
10030 (delete_gdb_breakpoint): Likewise.
10031 * server.c (process_serial_event): Likewise.
10032
dd373349
AT
100332015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10034
10035 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10036 (struct linux_target_ops) <breakpoint>: Remove.
10037 (struct linux_target_ops) <breakpoint_len>: Remove.
10038 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10039 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10040 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10041 (arm_sw_breakpoint_from_kind): New function.
10042 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10043 (struct linux_target_ops) <breakpoint>: Remove.
10044 (struct linux_target_ops) <breakpoint_len>: Remove.
10045 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10046 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10047 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10048 (struct linux_target_ops) <breakpoint>: Remove.
10049 (struct linux_target_ops) <breakpoint_len>: Remove.
10050 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10051 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10052 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10053 (struct linux_target_ops) <breakpoint>: Remove.
10054 (struct linux_target_ops) <breakpoint_len>: Remove.
10055 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10056 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10057 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10058 and sw_breakpoint_from_kind to increment the pc.
10059 (linux_breakpoint_kind_from_pc): New function.
10060 (linux_sw_breakpoint_from_kind): New function.
10061 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10062 (initialize_low): Call breakpoint_kind_from_pc and
10063 sw_breakpoint_from_kind to replace breakpoint_data/len.
10064 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10065 New field.
10066 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10067 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10068 (struct linux_target_ops) <breakpoint>: Remove.
10069 (struct linux_target_ops) <breakpoint_len>: Remove.
10070 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10071 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10072 * linux-m68k-low.c (m68k_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-mips-low.c (mips_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-nios2-low.c (nios2_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-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10088 (struct linux_target_ops) <breakpoint>: Remove.
10089 (struct linux_target_ops) <breakpoint_len>: Remove.
10090 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10091 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10092 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10093 (struct linux_target_ops) <breakpoint>: Remove.
10094 (struct linux_target_ops) <breakpoint_len>: Remove.
10095 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10096 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10097 * linux-sh-low.c (sh_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-sparc-low.c (sparc_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-tic6x-low.c (tic6x_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-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10113 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10114 (struct linux_target_ops) <breakpoint>: Remove.
10115 (struct linux_target_ops) <breakpoint_len>: Remove.
10116 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10117 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10118 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10119 (struct linux_target_ops) <breakpoint>: Remove.
10120 (struct linux_target_ops) <breakpoint_len>: Remove.
10121 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10122 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10123
4cd98a19
AT
101242015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10125
10126 * linux-cris-low.c (cris_get_pc): Remove void arg.
10127
774ee6d2
AR
101282015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10129
10130 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10131 variable name.
10132
833dcd29
AR
101332015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10134
10135 * inferiors.c (thread_pid_matches_callback): New function.
10136 (find_thread_process): New function.
10137 (remove_thread): Reset current_thread.
10138 (remove_process): Assert threads have been removed first.
10139
8d689ee5
YQ
101402015-10-15 Yao Qi <yao.qi@linaro.org>
10141
10142 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10143 if it is 3.
10144 (aarch64_remove_point): Likewise.
10145 * regcache.c (regcache_register_size): New function.
10146
1c2e1515
YQ
101472015-10-12 Yao Qi <yao.qi@linaro.org>
10148
10149 * linux-aarch64-low.c: Update all callers as emit_load_store
10150 is renamed to aarch64_emit_load_store.
10151
e1c587c3
YQ
101522015-10-12 Yao Qi <yao.qi@linaro.org>
10153
10154 * linux-aarch64-low.c: Update all callers of function renaming
10155 from emit_insn to aarch64_emit_insn.
10156
b6542f81
YQ
101572015-10-12 Yao Qi <yao.qi@linaro.org>
10158
10159 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10160 arch/aarch64-insn.h.
10161 (struct aarch64_memory_operand): Likewise.
10162 (ENCODE): Likewise.
10163 (emit_insn): Move to arch/aarch64-insn.c.
10164 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10165 (emit_load_store): Move to arch/aarch64-insn.c.
10166 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10167 (can_encode_int32): Remove.
10168
246994ce
YQ
101692015-10-12 Yao Qi <yao.qi@linaro.org>
10170
10171 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10172 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10173 (aarch64_relocate_instruction): Likewise.
10174 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10175 (struct aarch64_insn_visitor): Likewise.
10176
0badd99f
YQ
101772015-10-12 Yao Qi <yao.qi@linaro.org>
10178
10179 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10180 (struct aarch64_insn_visitor): New.
10181 (struct aarch64_insn_relocation_data): New.
10182 (aarch64_ftrace_insn_reloc_b): New function.
10183 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10184 (aarch64_ftrace_insn_reloc_cb): Likewise.
10185 (aarch64_ftrace_insn_reloc_tb): Likewise.
10186 (aarch64_ftrace_insn_reloc_adr): Likewise.
10187 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10188 (aarch64_ftrace_insn_reloc_others): Likewise.
10189 (visitor): New.
10190 (aarch64_relocate_instruction): Use visitor.
10191
dfaffe9d
YQ
101922015-10-12 Yao Qi <yao.qi@linaro.org>
10193
10194 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10195 int. Add argument buf.
10196 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10197 aarch64_relocate_instruction.
10198
70b439f0
YQ
101992015-10-12 Yao Qi <yao.qi@linaro.org>
10200
10201 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10202 argument insn. Remove local variable insn. Don't call
10203 target_read_uint32.
10204 (aarch64_install_fast_tracepoint_jump_pad): Call
10205 target_read_uint32.
10206
7781c06f
YQ
102072015-09-30 Yao Qi <yao.qi@linaro.org>
10208
10209 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10210 (emit_load_store_pair): Likewise.
10211
9a3c8263
SM
102122015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10213
10214 * dll.c (match_dll): Add cast(s).
10215 (unloaded_dll): Likewise.
10216 * linux-low.c (second_thread_of_pid_p): Likewise.
10217 (delete_lwp_callback): Likewise.
10218 (count_events_callback): Likewise.
10219 (select_event_lwp_callback): Likewise.
10220 (linux_set_resume_request): Likewise.
10221 * server.c (accumulate_file_name_length): Likewise.
10222 (emit_dll_description): Likewise.
10223 (handle_qxfer_threads_worker): Likewise.
10224 (visit_actioned_threads): Likewise.
10225 * thread-db.c (any_thread_of): Likewise.
10226 * tracepoint.c (same_process_p): Likewise.
10227 (match_blocktype): Likewise.
10228 (build_traceframe_info_xml): Likewise.
10229
224c3ddb
SM
102302015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10231
10232 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10233 assignment.
10234 (gdb_unparse_agent_expr): Likewise.
10235 * hostio.c (require_data): Likewise.
10236 (handle_pread): Likewise.
10237 * linux-low.c (disable_regset): Likewise.
10238 (fetch_register): Likewise.
10239 (store_register): Likewise.
10240 (get_dynamic): Likewise.
10241 (linux_qxfer_libraries_svr4): Likewise.
10242 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10243 (set_fast_tracepoint_jump): Likewise.
10244 (uninsert_fast_tracepoint_jumps_at): Likewise.
10245 (reinsert_fast_tracepoint_jumps_at): Likewise.
10246 (validate_inserted_breakpoint): Likewise.
10247 (clone_agent_expr): Likewise.
10248 * regcache.c (init_register_cache): Likewise.
10249 * remote-utils.c (putpkt_binary_1): Likewise.
10250 (decode_M_packet): Likewise.
10251 (decode_X_packet): Likewise.
10252 (look_up_one_symbol): Likewise.
10253 (relocate_instruction): Likewise.
10254 (monitor_output): Likewise.
10255 * server.c (handle_search_memory): Likewise.
10256 (handle_qxfer_exec_file): Likewise.
10257 (handle_qxfer_libraries): Likewise.
10258 (handle_qxfer): Likewise.
10259 (handle_query): Likewise.
10260 (handle_v_cont): Likewise.
10261 (handle_v_run): Likewise.
10262 (captured_main): Likewise.
10263 * target.c (write_inferior_memory): Likewise.
10264 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10265 * tracepoint.c (init_trace_buffer): Likewise.
10266 (add_tracepoint_action): Likewise.
10267 (add_traceframe): Likewise.
10268 (add_traceframe_block): Likewise.
10269 (cmd_qtdpsrc): Likewise.
10270 (cmd_qtdv): Likewise.
10271 (cmd_qtstatus): Likewise.
10272 (response_source): Likewise.
10273 (response_tsv): Likewise.
10274 (cmd_qtnotes): Likewise.
10275 (gdb_collect): Likewise.
10276 (initialize_tracepoint): Likewise.
10277
afbe19f8
PL
102782015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10279
10280 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10281 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10282 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10283 <NOP>: New.
10284 (enum aarch64_condition_codes): New enum.
10285 (w0): New static global.
10286 (fp): Likewise.
10287 (lr): Likewise.
10288 (struct aarch64_memory_operand) <type>: New
10289 MEMORY_OPERAND_POSTINDEX type.
10290 (postindex_memory_operand): New helper function.
10291 (emit_ret): New function.
10292 (emit_load_store_pair): New function, factored out of emit_stp
10293 with support for MEMORY_OPERAND_POSTINDEX.
10294 (emit_stp): Rewrite using emit_load_store_pair.
10295 (emit_ldp): New function.
10296 (emit_load_store): Likewise.
10297 (emit_ldr): Mention post-index instruction in comment.
10298 (emit_ldrh): New function.
10299 (emit_ldrb): New function.
10300 (emit_ldrsw): Mention post-index instruction in comment.
10301 (emit_str): Likewise.
10302 (emit_subs): New function.
10303 (emit_cmp): Likewise.
10304 (emit_and): Likewise.
10305 (emit_orr): Likewise.
10306 (emit_orn): Likewise.
10307 (emit_eor): Likewise.
10308 (emit_mvn): Likewise.
10309 (emit_lslv): Likewise.
10310 (emit_lsrv): Likewise.
10311 (emit_asrv): Likewise.
10312 (emit_mul): Likewise.
10313 (emit_sbfm): Likewise.
10314 (emit_sbfx): Likewise.
10315 (emit_ubfm): Likewise.
10316 (emit_ubfx): Likewise.
10317 (emit_csinc): Likewise.
10318 (emit_cset): Likewise.
10319 (emit_nop): Likewise.
10320 (emit_ops_insns): New helper function.
10321 (emit_pop): Likewise.
10322 (emit_push): Likewise.
10323 (aarch64_emit_prologue): New function.
10324 (aarch64_emit_epilogue): Likewise.
10325 (aarch64_emit_add): Likewise.
10326 (aarch64_emit_sub): Likewise.
10327 (aarch64_emit_mul): Likewise.
10328 (aarch64_emit_lsh): Likewise.
10329 (aarch64_emit_rsh_signed): Likewise.
10330 (aarch64_emit_rsh_unsigned): Likewise.
10331 (aarch64_emit_ext): Likewise.
10332 (aarch64_emit_log_not): Likewise.
10333 (aarch64_emit_bit_and): Likewise.
10334 (aarch64_emit_bit_or): Likewise.
10335 (aarch64_emit_bit_xor): Likewise.
10336 (aarch64_emit_bit_not): Likewise.
10337 (aarch64_emit_equal): Likewise.
10338 (aarch64_emit_less_signed): Likewise.
10339 (aarch64_emit_less_unsigned): Likewise.
10340 (aarch64_emit_ref): Likewise.
10341 (aarch64_emit_if_goto): Likewise.
10342 (aarch64_emit_goto): Likewise.
10343 (aarch64_write_goto_address): Likewise.
10344 (aarch64_emit_const): Likewise.
10345 (aarch64_emit_call): Likewise.
10346 (aarch64_emit_reg): Likewise.
10347 (aarch64_emit_pop): Likewise.
10348 (aarch64_emit_stack_flush): Likewise.
10349 (aarch64_emit_zero_ext): Likewise.
10350 (aarch64_emit_swap): Likewise.
10351 (aarch64_emit_stack_adjust): Likewise.
10352 (aarch64_emit_int_call_1): Likewise.
10353 (aarch64_emit_void_call_2): Likewise.
10354 (aarch64_emit_eq_goto): Likewise.
10355 (aarch64_emit_ne_goto): Likewise.
10356 (aarch64_emit_lt_goto): Likewise.
10357 (aarch64_emit_le_goto): Likewise.
10358 (aarch64_emit_gt_goto): Likewise.
10359 (aarch64_emit_ge_got): Likewise.
10360 (aarch64_emit_ops_impl): New static global variable.
10361 (aarch64_emit_ops): New target function, return
10362 &aarch64_emit_ops_impl.
10363 (struct linux_target_ops): Install it.
10364
bb903df0
PL
103652015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10366
10367 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10368 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10369 aarch64-ipa.o.
10370 * linux-aarch64-ipa.c: New file.
10371 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10372 and endian.h.
10373 (aarch64_get_thread_area): New target method.
10374 (extract_signed_bitfield): New helper function.
10375 (aarch64_decode_ldr_literal): New function.
10376 (enum aarch64_opcodes): New enum.
10377 (struct aarch64_register): New struct.
10378 (struct aarch64_operand): New struct.
10379 (x0): New static global.
10380 (x1): Likewise.
10381 (x2): Likewise.
10382 (x3): Likewise.
10383 (x4): Likewise.
10384 (w2): Likewise.
10385 (ip0): Likewise.
10386 (sp): Likewise.
10387 (xzr): Likewise.
10388 (aarch64_register): New helper function.
10389 (register_operand): Likewise.
10390 (immediate_operand): Likewise.
10391 (struct aarch64_memory_operand): New struct.
10392 (offset_memory_operand): New helper function.
10393 (preindex_memory_operand): Likewise.
10394 (enum aarch64_system_control_registers): New enum.
10395 (ENCODE): New macro.
10396 (emit_insn): New helper function.
10397 (emit_b): New function.
10398 (emit_bcond): Likewise.
10399 (emit_cb): Likewise.
10400 (emit_tb): Likewise.
10401 (emit_blr): Likewise.
10402 (emit_stp): Likewise.
10403 (emit_ldp_q_offset): Likewise.
10404 (emit_stp_q_offset): Likewise.
10405 (emit_load_store): Likewise.
10406 (emit_ldr): Likewise.
10407 (emit_ldrsw): Likewise.
10408 (emit_str): Likewise.
10409 (emit_ldaxr): Likewise.
10410 (emit_stxr): Likewise.
10411 (emit_stlr): Likewise.
10412 (emit_data_processing_reg): Likewise.
10413 (emit_data_processing): Likewise.
10414 (emit_add): Likewise.
10415 (emit_sub): Likewise.
10416 (emit_mov): Likewise.
10417 (emit_movk): Likewise.
10418 (emit_mov_addr): Likewise.
10419 (emit_mrs): Likewise.
10420 (emit_msr): Likewise.
10421 (emit_sevl): Likewise.
10422 (emit_wfe): Likewise.
10423 (append_insns): Likewise.
10424 (can_encode_int32_in): New helper function.
10425 (aarch64_relocate_instruction): New function.
10426 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10427 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10428 (struct linux_target_ops): Install aarch64_get_thread_area,
10429 aarch64_install_fast_tracepoint_jump_pad and
10430 aarch64_get_min_fast_tracepoint_insn_len.
10431
787749ea
PL
104322015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10433
10434 * Makefile.in (aarch64-insn.o): New rule.
10435 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10436
9812b2e6
YQ
104372015-09-21 Yao Qi <yao.qi@linaro.org>
10438
10439 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10440
18fe412b
YQ
104412015-09-21 Yao Qi <yao.qi@linaro.org>
10442
10443 * tracepoint.c (max_jump_pad_size): Remove.
10444
a0cc84cd
YQ
104452015-09-18 Yao Qi <yao.qi@linaro.org>
10446
10447 * linux-aarch64-low.c: Don't include sys/uio.h.
10448 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10449
d78908cf
WW
104502015-09-16 Wei-cheng Wang <cole945@gmail.com>
10451
10452 * tracepoint.c (eval_result_type): Change prototype.
10453 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10454
d57e0d50
PA
104552015-09-15 Pedro Alves <palves@redhat.com>
10456
10457 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10458 Check whether to report exec events instead of checking whether
10459 multiprocess is enabled.
10460
5a676acc
PA
104612015-09-15 Pedro Alves <palves@redhat.com>
10462
10463 PR remote/18965
10464 * remote-utils.c (prepare_resume_reply): Merge
10465 TARGET_WAITKIND_VFORK_DONE switch case with the
10466 TARGET_WAITKIND_FORKED case.
10467
7c5d0fad
YQ
104682015-09-15 Yao Qi <yao.qi@linaro.org>
10469
10470 * server.c (handle_query): Check string comparison using
10471 "else if" instead of "if".
10472
750ce8d1
YQ
104732015-09-15 Yao Qi <yao.qi@linaro.org>
10474
10475 * server.c (vCont_supported): New global variable.
10476 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10477 matches. Append ";vContSupported+" to own_buf.
10478 (handle_v_requests): Append ";s;S" to own_buf if target supports
10479 hardware single step or vCont_supported is false.
10480 (capture_main): Set vCont_supported to zero.
10481
70b90b91
YQ
104822015-09-15 Yao Qi <yao.qi@linaro.org>
10483
10484 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10485 it to ...
10486 (linux_supports_hardware_single_step): ... New function.
10487 (linux_target_ops): Update.
10488 * lynx-low.c (lynx_target_ops): Set field
10489 supports_hardware_single_step to target_can_do_hardware_single_step.
10490 * nto-low.c (nto_target_ops): Likewise.
10491 * spu-low.c (spu_target_ops): Likewise.
10492 * win32-low.c (win32_target_ops): Likewise.
10493 * target.c (target_can_do_hardware_single_step): New function.
10494 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10495 Remove. <supports_hardware_single_step>: New field.
10496 (target_supports_conditional_breakpoints): Remove.
10497 (target_supports_hardware_single_step): New macro.
10498 (target_can_do_hardware_single_step): Declare.
10499 * server.c (handle_query): Use target_supports_hardware_single_step
10500 instead of target_supports_conditional_breakpoints.
10501
ade90bde
YQ
105022015-09-15 Yao Qi <yao.qi@linaro.org>
10503
10504 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10505 function.
10506 (struct linux_target_ops the_low_target): Install
10507 aarch64_linux_siginfo_fixup.
10508
94585166
DB
105092015-09-11 Don Breazeal <donb@codesourcery.com>
10510 Luis Machado <lgustavo@codesourcery.com>
10511
10512 * linux-low.c (linux_mourn): Static declaration.
10513 (linux_arch_setup): Move in front of
10514 handle_extended_wait.
10515 (linux_arch_setup_thread): New function.
10516 (handle_extended_wait): Handle exec events. Call
10517 linux_arch_setup_thread. Make event_lwp argument a
10518 pointer-to-a-pointer.
10519 (check_zombie_leaders): Do not check stopped threads.
10520 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10521 (linux_low_filter_event): Add lwp and thread for exec'ing
10522 non-leader thread if leader thread has been deleted.
10523 Refactor code into linux_arch_setup_thread and call it.
10524 Pass child lwp pointer by reference to handle_extended_wait.
10525 (linux_wait_for_event_filtered): Update comment.
10526 (linux_wait_1): Prevent clobbering exec event status.
10527 (linux_supports_exec_events): New function.
10528 (linux_target_ops) <supports_exec_events>: Initialize new member.
10529 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10530 new member.
10531 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10532 * server.c (report_exec_events): New global variable.
10533 (handle_query): Handle qSupported query for exec-events feature.
10534 (captured_main): Initialize report_exec_events.
10535 * server.h (report_exec_events): Declare new global variable.
10536 * target.h (struct target_ops) <supports_exec_events>: New
10537 member.
10538 (target_supports_exec_events): New macro.
10539 * win32-low.c (win32_target_ops) <supports_exec_events>:
10540 Initialize new member.
10541
0568462b
MM
105422015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10543
10544 * linux-low.c (linux_low_enable_btrace): Remove.
10545 (linux_target_ops): Replace linux_low_enable_btrace with
10546 linux_enable_btrace.
10547
39edd165
YQ
105482015-09-03 Yao Qi <yao.qi@linaro.org>
10549
10550 * linux-aarch64-low.c (aarch64_insert_point): Call
10551 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10552 returns true.
10553
1db33b5a
UW
105542015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10555
10556 * linux-low.c (check_stopped_by_breakpoint): Use
10557 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10558
ab290430
PA
105592015-08-27 Pedro Alves <palves@redhat.com>
10560
10561 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10562
8d749320
SM
105632015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10564
6711b7f8
SM
10565 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10566 the XNEW-family equivalent.
8d749320
SM
10567 (compile_bytecodes): Likewise.
10568 * dll.c (loaded_dll): Likewise.
10569 * event-loop.c (append_callback_event): Likewise.
10570 (create_file_handler): Likewise.
10571 (create_file_event): Likewise.
10572 * hostio.c (handle_open): Likewise.
10573 * inferiors.c (add_thread): Likewise.
10574 (add_process): Likewise.
10575 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10576 * linux-arm-low.c (arm_new_process): Likewise.
10577 (arm_new_thread): Likewise.
10578 * linux-low.c (add_to_pid_list): Likewise.
10579 (linux_add_process): Likewise.
10580 (handle_extended_wait): Likewise.
10581 (add_lwp): Likewise.
10582 (enqueue_one_deferred_signal): Likewise.
10583 (enqueue_pending_signal): Likewise.
10584 (linux_resume_one_lwp_throw): Likewise.
10585 (linux_resume_one_thread): Likewise.
10586 (linux_read_memory): Likewise.
10587 (linux_write_memory): Likewise.
10588 * linux-mips-low.c (mips_linux_new_process): Likewise.
10589 (mips_linux_new_thread): Likewise.
10590 (mips_add_watchpoint): Likewise.
10591 * linux-x86-low.c (initialize_low_arch): Likewise.
10592 * lynx-low.c (lynx_add_process): Likewise.
10593 * mem-break.c (set_raw_breakpoint_at): Likewise.
10594 (set_breakpoint): Likewise.
10595 (add_condition_to_breakpoint): Likewise.
10596 (add_commands_to_breakpoint): Likewise.
10597 (clone_agent_expr): Likewise.
10598 (clone_one_breakpoint): Likewise.
10599 * regcache.c (new_register_cache): Likewise.
10600 * remote-utils.c (look_up_one_symbol): Likewise.
10601 * server.c (queue_stop_reply): Likewise.
10602 (start_inferior): Likewise.
10603 (queue_stop_reply_callback): Likewise.
10604 (handle_target_event): Likewise.
10605 * spu-low.c (fetch_ppc_memory): Likewise.
10606 (store_ppc_memory): Likewise.
10607 * target.c (set_target_ops): Likewise.
10608 * thread-db.c (thread_db_load_search): Likewise.
10609 (try_thread_db_load_1): Likewise.
10610 * tracepoint.c (add_tracepoint): Likewise.
10611 (add_tracepoint_action): Likewise.
10612 (create_trace_state_variable): Likewise.
10613 (cmd_qtdpsrc): Likewise.
10614 (cmd_qtro): Likewise.
10615 (add_while_stepping_state): Likewise.
10616 * win32-low.c (child_add_thread): Likewise.
10617 (get_image_name): Likewise.
10618
ed8b7b42
YQ
106192015-08-25 Yao Qi <yao.qi@linaro.org>
10620
10621 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10622
db3cb7cb
YQ
106232015-08-25 Yao Qi <yao.qi@linaro.org>
10624
10625 * Makefile.in (aarch64-linux.o): New rule.
10626 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10627 srv_tgtobj.
10628 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10629 (aarch64_init_debug_reg_state): Make it extern.
10630 (aarch64_linux_prepare_to_resume): Remove.
10631
f6011a1c
YQ
106322015-08-25 Yao Qi <yao.qi@linaro.org>
10633
10634 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10635 lwp_arch_private_info and ptid_of_lwp.
10636
88e2cf7e
YQ
106372015-08-25 Yao Qi <yao.qi@linaro.org>
10638
10639 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10640 Find proc_info by find_process_pid. All callers updated.
10641
5e35436e
YQ
106422015-08-25 Yao Qi <yao.qi@linaro.org>
10643
10644 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10645 Remove.
10646 (debug_reg_change_callback): Remove.
10647 (aarch64_notify_debug_reg_change): Remove.
10648
4a8a7965
YQ
106492015-08-25 Yao Qi <yao.qi@linaro.org>
10650
10651 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10652 Call current_lwp_ptid.
10653
32a271ee
YQ
106542015-08-25 Yao Qi <yao.qi@linaro.org>
10655
10656 * linux-aarch64-low.c (debug_reg_change_callback): Use
10657 debug_printf.
10658
0d51c8d7
YQ
106592015-08-25 Yao Qi <yao.qi@linaro.org>
10660
10661 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10662
31a43dd5
YQ
106632015-08-25 Yao Qi <yao.qi@linaro.org>
10664
10665 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10666
8ee52567
YQ
106672015-08-25 Yao Qi <yao.qi@linaro.org>
10668
10669 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10670 the code.
10671
ff3f0f45
YQ
106722015-08-25 Yao Qi <yao.qi@linaro.org>
10673
10674 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10675 Remove.
10676 (debug_reg_change_callback): Remove argument entry and add argument
10677 lwp. Remove local variable thread. Don't print thread id in the
10678 debugging output. Don't check whether pid of thread equals to pid.
10679 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10680 iterate_over_lwps instead find_inferior.
10681
3d40fbb5
PA
106822015-08-24 Pedro Alves <palves@redhat.com>
10683
10684 * inferiors.c (get_first_process): New function.
10685 * inferiors.h (get_first_process): New declaration.
10686 * remote-utils.c (read_ptid): Default to the first process in the
10687 list, instead of to the current thread's process.
10688
438e1e42
PA
106892015-08-24 Pedro Alves <palves@redhat.com>
10690
10691 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10692 * event-loop.c: Likewise.
10693 * remote-utils.c: Likewise.
10694 * tracepoint.c: Likewise.
10695
a8c6d4fc
PA
106962015-08-24 Pedro Alves <palves@redhat.com>
10697
10698 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10699 ptid_get_lwp.
10700
99b0bb12
PA
107012015-08-21 Pedro Alves <palves@redhat.com>
10702
10703 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10704 instead of literal 1.
10705
f8904751
PA
107062015-08-21 Pedro Alves <palves@redhat.com>
10707
10708 * tdesc.c (default_description): Explicitly zero-initialize.
10709
465a859e
PA
107102015-08-21 Pedro Alves <palves@redhat.com>
10711
10712 PR gdb/18749
10713 * inferiors.c (remove_thread): Discard any pending stop reply for
10714 this thread.
10715 * server.c (remove_all_on_match_pid): Rename to ...
10716 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10717 instead of a pid.
10718 (discard_queued_stop_replies): Change parameter to a ptid. Now
10719 extern.
10720 (handle_v_kill, kill_inferior_callback, captured_main)
10721 (process_serial_event): Adjust.
10722 * server.h (discard_queued_stop_replies): Declare.
10723
f0db101d
PA
107242015-08-21 Pedro Alves <palves@redhat.com>
10725
10726 * linux-low.c (wait_for_sigstop): Always switch to no thread
10727 selected if the previously current thread dies.
10728 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10729 process instead of the current thread's.
10730 * remote-utils.c (input_interrupt): Don't check if there's no
10731 current thread.
10732 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10733 current thread to the general thread fails, error out.
10734 (handle_qxfer_auxv, handle_qxfer_libraries)
10735 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10736 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10737 (handle_query): Check if there's a thread selected instead of
10738 checking whether there's any thread in the thread list.
10739 (handle_qxfer_threads, handle_qxfer_btrace)
10740 (handle_qxfer_btrace_conf): Don't error out early if there's no
10741 thread in the thread list.
10742 (handle_v_cont, myresume): Don't set the current thread to the
10743 continue thread.
10744 (process_serial_event) <Hg handling>: Also set thread_id if the
10745 previous general thread is still alive.
10746 (process_serial_event) <g/G handling>: If setting the current
10747 thread to the general thread fails, error out.
10748 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10749 thread's lwp instead of the current thread's.
10750 * target.c (set_desired_thread): If the desired thread was not
10751 found, leave the current thread pointing to NULL. Return an int
10752 (boolean) indicating success.
10753 * target.h (set_desired_thread): Change return type to int.
10754
40045d91
MF
107552015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10756
10757 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10758 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10759 #includes.
10760 (ps_get_thread_area): New function.
10761
45face3b
GB
107622015-08-19 Gary Benson <gbenson@redhat.com>
10763
10764 * hostio.c (handle_pread): Do not attempt to read more data
10765 than hostio_reply_with_data can fit in a packet.
10766
16d5f642
JB
107672015-08-18 Joel Brobecker <brobecker@adacore.com>
10768
10769 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10770
a738da3a
MF
107712015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10772
10773 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10774
33ebda9d
PA
107752015-08-06 Pedro Alves <palves@redhat.com>
10776
10777 * tracepoint.c (expr_eval_result): Now an int.
10778
a44892be
PA
107792015-08-06 Pedro Alves <palves@redhat.com>
10780
10781 * gdbthread.h (struct regcache): Forward declare.
10782 (struct thread_info) <regcache_data>: Now a struct regcache
10783 pointer.
10784 * inferiors.c (inferior_regcache_data)
10785 (set_inferior_regcache_data): Now work with struct regcache
10786 pointers.
10787 * inferiors.h (struct regcache): Forward declare.
10788 (inferior_regcache_data, set_inferior_regcache_data): Now work
10789 with struct regcache pointers.
10790 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10791 (free_register_cache_thread): Remove struct regcache pointer
10792 casts.
10793
608a1e46
PA
107942015-08-06 Pedro Alves <palves@redhat.com>
10795
10796 * server.c (captured_main): On error, print the exception message
10797 to stderr, and if run_once is set, throw a quit.
10798
f0ce0d3a
PA
107992015-08-06 Pedro Alves <palves@redhat.com>
10800
10801 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10802 the current thread.
10803
bf47e248
PA
108042015-08-06 Pedro Alves <palves@redhat.com>
10805
10806 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10807 reading beyond the passed in buffer length.
10808
b6b9ffcc
PL
108092015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10810
10811 * tracepoint.c (symbol_list) <required>: Remove.
10812
863d01bd
PA
108132015-08-06 Pedro Alves <palves@redhat.com>
10814
10815 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10816 count if stopping and suspending threads.
10817 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10818 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10819 (linux_detach): Complete an ongoing step-over.
10820 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10821 throughout.
10822 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10823 (linux_wait_1): If passing a signal to the inferior after
10824 finishing a step-over, unsuspend and re-resume all lwps. If we
10825 see a single-step event but the thread should be continuing, don't
10826 pass the trap to gdb.
10827 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10828 internal_error instead of gdb_assert.
10829 (enqueue_pending_signal): New function.
10830 (check_ptrace_stopped_lwp_gone): Add debug output.
10831 (start_step_over): Use internal_error instead of gdb_assert.
10832 (complete_ongoing_step_over): New function.
10833 (linux_resume_one_thread): Don't resume a suspended thread.
10834 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10835 it stepping.
10836
00db26fa
PA
108372015-08-06 Pedro Alves <palves@redhat.com>
10838
10839 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10840 (linux_thread_alive): Use lwp_is_marked_dead.
10841 (extended_event_reported): Delete.
10842 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10843 instead of extended_event_reported.
10844 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10845 as well.
10846 (lwp_is_marked_dead): New function.
10847 (lwp_running): Use lwp_is_marked_dead.
10848 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10849 comment.
10850
ad071a30
PA
108512015-08-06 Pedro Alves <palves@redhat.com>
10852
10853 * linux-low.c (linux_wait_1): Move fork event output out of the
10854 !report_to_gdb check. Pass event_child->waitstatus to
10855 target_waitstatus_to_string instead of ourstatus.
10856
524b57e6
YQ
108572015-08-04 Yao Qi <yao.qi@linaro.org>
10858
10859 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10860 if current_thread is 32 bit.
10861
6085d6f6
YQ
108622015-08-04 Yao Qi <yao.qi@linaro.org>
10863
10864 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10865 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10866 * server.c (extended_protocol): Remove "static".
10867 * server.h (extended_protocol): Declare it.
10868
8a7e4587
YQ
108692015-08-04 Yao Qi <yao.qi@linaro.org>
10870
10871 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10872 both aarch64 and aarch32.
10873 (aarch64_set_pc): Likewise.
10874
3b53ae99
YQ
108752015-08-04 Yao Qi <yao.qi@linaro.org>
10876
10877 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10878 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10879 arm-with-neon.xml to srv_xmlfiles.
10880 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10881 (is_64bit_tdesc): New function.
10882 (aarch64_linux_read_description): New function.
10883 (aarch64_arch_setup): Call aarch64_linux_read_description.
10884 (regs_info): Rename to regs_info_aarch64.
10885 (aarch64_regs_info): Return right regs_info.
10886 (initialize_low_arch): Call initialize_low_arch_aarch32.
10887
bd9e6534
YQ
108882015-08-04 Yao Qi <yao.qi@linaro.org>
10889
10890 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10891 * linux-aarch32-low.c: New file.
10892 * linux-aarch32-low.h: New file.
10893 * linux-arm-low.c (arm_fill_gregset): Move it to
10894 linux-aarch32-low.c.
10895 (arm_store_gregset): Likewise.
10896 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10897 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10898 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10899 (regs_info): Rename to regs_info_arm.
10900 (arm_regs_info): Return regs_info_aarch32 if
10901 have_ptrace_getregset is 1 and target description is
10902 arm_with_neon or arm_with_vfpv3.
10903 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10904 Call initialize_low_arch_aarch32 instead.
10905
ded48a5e
YQ
109062015-08-04 Yao Qi <yao.qi@linaro.org>
10907
10908 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10909 * linux-low.c: ... here.
10910 * linux-low.h (have_ptrace_getregset): Declare it.
10911
96e9210f
PA
109122015-08-04 Pedro Alves <palves@redhat.com>
10913
10914 * thread-db.c (struct thread_db): Use new typedefs.
10915 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10916 CHK calls.
10917 (disable_thread_event_reporting): Cast result of dlsym to
10918 destination function pointer type.
10919 (thread_db_mourn): Use td_ta_delete_ftype.
10920
af60a1ef
SL
109212015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10922
10923 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10924 arch variant.
10925 (CDX_BREAKPOINT): Define for R2.
10926 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10927 (the_low_target): Add comments.
10928
e8b41681
YQ
109292015-07-30 Yao Qi <yao.qi@linaro.org>
10930
10931 * linux-arm-low.c (arm_hwcap): Remove it.
10932 (arm_read_description): New local variable arm_hwcap. Don't
10933 set arm_hwcap to zero.
10934
89abb039
YQ
109352015-07-30 Yao Qi <yao.qi@linaro.org>
10936
10937 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10938 Use regcache->tdesc instead.
10939 (arm_store_wmmxregset): Likewise.
10940 (arm_fill_vfpregset): Likewise.
10941 (arm_store_vfpregset): Likewise.
10942
deca266c
YQ
109432015-07-30 Yao Qi <yao.qi@linaro.org>
10944
10945 * linux-arm-low.c: Include arch/arm.h.
10946 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10947 (arm_store_gregset): Likewise.
10948
aa58a496
SM
109492015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10950
10951 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10952 ptrace's 4th parameter.
10953
50904b25
YQ
109542015-07-27 Yao Qi <yao.qi@linaro.org>
10955
10956 * configure.srv (case aarch64*-*-linux*): Don't set
10957 srv_linux_usrregs.
10958
5826e159
PA
109592015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10960
10961 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10962 sys/ptrace.h.
10963 * linux-arm-low.c: Likewise.
10964 * linux-cris-low.c: Likewise.
10965 * linux-crisv32-low.c: Likewise.
10966 * linux-low.c: Likewise.
10967 * linux-m68k-low.c: Likewise.
10968 * linux-mips-low.c: Likewise.
10969 * linux-nios2-low.c: Likewise.
10970 * linux-s390-low.c: Likewise.
10971 * linux-sparc-low.c: Likewise.
10972 * linux-tic6x-low.c: Likewise.
10973 * linux-tile-low.c: Likewise.
10974 * linux-x86-low.c: Likewise.
10975
54019719
PA
109762015-07-24 Pedro Alves <palves@redhat.com>
10977
10978 * config.in: Regenerate.
10979 * configure: Regenerate.
10980
eb7aa561
PA
109812015-07-24 Pedro Alves <palves@redhat.com>
10982
10983 * acinclude.m4: Include ../ptrace.m4.
10984 * configure.ac: Call GDB_AC_PTRACE.
10985 * config.in, configure: Regenerate.
10986
55d7b841
YQ
109872015-07-24 Yao Qi <yao.qi@linaro.org>
10988
10989 * linux-low.c (linux_create_inferior): Remove setting to
10990 proc->priv->new_inferior.
10991 (linux_attach): Likewise.
10992 (linux_low_filter_event): Likewise.
10993 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10994
c06cbd92
YQ
109952015-07-24 Yao Qi <yao.qi@linaro.org>
10996
10997 * linux-low.c (linux_arch_setup): New function.
10998 (linux_low_filter_event): If proc->tdesc is NULL and
10999 proc->attached is true, call the_low_target.arch_setup.
11000 Otherwise, keep status pending, and return.
11001 (linux_resume_one_lwp_throw): Don't call get_pc if
11002 thread->while_stepping isn't NULL. Don't call
11003 get_thread_regcache if proc->tdesc is NULL.
11004 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11005 (linux_target_ops): Install arch_setup.
11006 * server.c (start_inferior): Call the_target->arch_setup.
11007 * target.h (struct target_ops) <arch_setup>: New field.
11008 (target_arch_setup): New marco.
11009 * lynx-low.c (lynx_target_ops): Update.
11010 * nto-low.c (nto_target_ops): Update.
11011 * spu-low.c (spu_target_ops): Update.
11012 * win32-low.c (win32_target_ops): Update.
11013
5ae3ebba
YQ
110142015-07-24 Yao Qi <yao.qi@linaro.org>
11015
11016 * linux-low.c (linux_add_process): Don't set
11017 proc->priv->new_inferior.
11018 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11019 (linux_attach): Likewise.
11020
eb97750b
YQ
110212015-07-24 Yao Qi <yao.qi@linaro.org>
11022
11023 * server.c (start_inferior): Code refactor.
11024
51aee833
YQ
110252015-07-24 Yao Qi <yao.qi@linaro.org>
11026
11027 * server.c (process_serial_event): Set general_thread.
11028
af1b22f3
YQ
110292015-07-21 Yao Qi <yao.qi@linaro.org>
11030
11031 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11032 aarch64_linux_get_debug_reg_capacity.
11033
554717a3
YQ
110342015-07-17 Yao Qi <yao.qi@linaro.org>
11035
11036 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11037 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11038 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11039 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11040 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11041 (AARCH64_HWP_ALIGNMENT): Likewise.
11042 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11043 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11044 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11045 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11046 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11047 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11048 (struct aarch64_debug_reg_state): Likewise.
11049 (struct arch_lwp_info): Likewise.
11050 (aarch64_align_watchpoint): Likewise.
11051 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11052 (aarch64_watchpoint_length): Likewise.
11053 (aarch64_point_encode_ctrl_reg): Likewise
11054 (aarch64_point_is_aligned): Likewise.
11055 (aarch64_align_watchpoint): Likewise.
11056 (aarch64_linux_set_debug_regs):
11057 (aarch64_dr_state_insert_one_point): Likewise.
11058 (aarch64_dr_state_remove_one_point): Likewise.
11059 (aarch64_handle_breakpoint): Likewise.
11060 (aarch64_handle_aligned_watchpoint): Likewise.
11061 (aarch64_handle_unaligned_watchpoint): Likewise.
11062 (aarch64_handle_watchpoint): Likewise.
11063
c67ca4de
YQ
110642015-07-17 Yao Qi <yao.qi@linaro.org>
11065
11066 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11067 and don't aarch64_get_debug_reg_state. All callers update.
11068 (aarch64_handle_aligned_watchpoint): Likewise.
11069 (aarch64_handle_unaligned_watchpoint): Likewise.
11070 (aarch64_handle_watchpoint): Likewise.
11071 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11072 (aarch64_remove_point): Likewise.
11073
25abf979
YQ
110742015-07-17 Yao Qi <yao.qi@linaro.org>
11075
11076 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11077 debug_printf.
11078 (aarch64_handle_unaligned_watchpoint): Likewise.
11079
db1ff28b
JK
110802015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11081
11082 Revert the previous 3 commits:
11083 Move gdb_regex* to common/
11084 Move linux_find_memory_regions_full & co.
11085 gdbserver build-id attribute generator
11086
700ca40f
JK
110872015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11088 Jan Kratochvil <jan.kratochvil@redhat.com>
11089
11090 gdbserver build-id attribute generator.
11091 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11092 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11093 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11094 (find_phdr): New.
11095 (get_dynamic): Use find_pdhr to traverse program headers.
11096 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11097 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11098 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11099 (get_hex_build_id): New.
11100 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11101 to reply XML document.
11102
9904185c
JK
111032015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11104 Jan Kratochvil <jan.kratochvil@redhat.com>
11105
11106 * target.c: Include target/target-utils.h and fcntl.h.
11107 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11108 (target_fileio_read_stralloc): New functions.
11109
6e5b4429
JK
111102015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11111
11112 * Makefile.in (OBS): Add gdb_regex.o.
11113 (gdb_regex.o): New.
11114 * config.in: Rebuilt.
11115 * configure: Rebuilt.
11116
ddc98fbf
JK
111172015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11118 Jan Kratochvil <jan.kratochvil@redhat.com>
11119
11120 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11121 * Makefile.in (OBS): Add target-utils.o.
11122 (linux-maps.o, target-utils.o): New.
11123 * configure.srv (srv_linux_obj): Add linux-maps.o.
11124
e57bb7a0
PL
111252015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11126
11127 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11128 function, return 1.
11129 (the_low_target): Install it.
11130
586b02a9
PA
111312015-07-14 Pedro Alves <palves@redhat.com>
11132
11133 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11134 Instead, ignore ECHILD, and throw an error for other errnos.
11135
58c1b36c
PA
111362015-07-10 Pedro Alves <palves@redhat.com>
11137
11138 * event-loop.c (struct callback_event) <data>: Change type to
11139 gdb_client_data instance instead of gdb_client_data pointer.
11140 (append_callback_event): Adjust.
11141
421530db
PL
111422015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11143
11144 * linux-aarch64-low.c: Add comments for each linux_target_ops
11145 method. Remove comments already covered in target_ops and
11146 linux_target_ops definitions.
11147 (the_low_target): Add comments for each unimplemented method.
11148
c2d65f38
YQ
111492015-07-09 Yao Qi <yao.qi@linaro.org>
11150
11151 * linux-aarch64-low.c (aarch64_regmap): Remove.
11152 (aarch64_usrregs_info): Remove.
11153 (regs_info): Set field usrregs to NULL.
11154
b20a6524
MM
111552015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11156
11157 * linux-low.c: Include "rsp-low.h"
11158 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11159 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11160 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11161 (handle_btrace_enable_pt): New.
11162 (handle_btrace_general_set): Support "pt".
11163 (handle_btrace_conf_general_set): Support "pt:size".
11164
96c97461
PL
111652015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11166
11167 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11168 Z_PACKET_SW_BP.
11169
37d66942
PL
111702015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11171
11172 * linux-aarch64-low.c: Remove comment about endianness.
11173 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11174 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11175 memcmp.
11176
dc06243f
GB
111772015-06-24 Gary Benson <gbenson@redhat.com>
11178
11179 * linux-i386-ipa.c (stdint.h): Do not include.
11180 * lynx-i386-low.c (stdint.h): Likewise.
11181 * lynx-ppc-low.c (stdint.h): Likewise.
11182 * mem-break.c (stdint.h): Likewise.
11183 * thread-db.c (stdint.h): Likewise.
11184 * tracepoint.c (stdint.h): Likewise.
11185 * win32-low.c (stdint.h): Likewise.
11186
124e13d9
SM
111872015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11188
11189 * server.c (write_qxfer_response): Update call to
11190 remote_escape_output.
11191
909c2cda
JK
111922015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11193 Jan Kratochvil <jan.kratochvil@redhat.com>
11194
11195 Merge multiple hex conversions.
11196 * gdbreplay.c (tohex): Rename to 'fromhex'.
11197 (logchar): Use fromhex.
11198
24c05f46
JK
111992015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11200
11201 * server.c (handle_qxfer_libraries): Set `version' attribute for
11202 <library-list>.
11203
14d2069a
GB
112042015-06-10 Gary Benson <gbenson@redhat.com>
11205
11206 * target.h (struct target_ops) <multifs_open>: New field.
11207 <multifs_unlink>: Likewise.
11208 <multifs_readlink>: Likewise.
11209 * linux-low.c (nat/linux-namespaces.h): New include.
11210 (linux_target_ops): Initialize the_target->multifs_open,
11211 the_target->multifs_unlink and the_target->multifs_readlink.
11212 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11213 * hostio.c (hostio_fs_pid): New static variable.
11214 (hostio_handle_new_gdb_connection): New function.
11215 (handle_setfs): Likewise.
11216 (handle_open): Use the_target->multifs_open as appropriate.
11217 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11218 (handle_readlink): Use the_target->multifs_readlink as
11219 appropriate.
11220 (handle_vFile): Handle vFile:setfs packets.
11221 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11222 after target_handle_new_gdb_connection.
11223
4b8b5e72
GB
112242015-06-10 Gary Benson <gbenson@redhat.com>
11225
11226 * configure.ac (AC_CHECK_FUNCS): Add setns.
11227 * config.in: Regenerate.
11228 * configure: Likewise.
11229 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11230 (linux-namespaces.o): New rule.
11231 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11232
3ac2e371
GB
112332015-06-09 Gary Benson <gbenson@redhat.com>
11234
11235 * hostio.c (handle_open): Process mode argument with
11236 fileio_to_host_mode.
11237
ca9b78ce
YQ
112382015-06-01 Yao Qi <yao.qi@linaro.org>
11239
11240 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11241 * linux-x86-low.c: Likewise.
11242
bfacd19d
DB
112432015-05-28 Don Breazeal <donb@codesourcery.com>
11244
11245 * linux-low.c (handle_extended_wait): Initialize
11246 thread_info.last_resume_kind for new fork children.
11247
452003ef
PA
112482015-05-15 Pedro Alves <palves@redhat.com>
11249
11250 * target.h (target_handle_new_gdb_connection): Rewrite using if
11251 wrapped in do/while.
11252
1041a03c
JB
112532015-05-14 Joel Brobecker <brobecker@adacore.com>
11254
11255 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11256 * configure, config.in: Regenerate.
11257 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11258 Declare typedef.
11259
c269dbdb
DB
112602015-05-12 Don Breazeal <donb@codesourcery.com>
11261
11262 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11263 PTRACE_EVENT_VFORK_DONE.
11264 (linux_low_ptrace_options, extended_event_reported): Add vfork
11265 events.
11266 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11267 and "vforkdone" for RSP 'T' Stop Reply Packet.
11268 * server.h (report_vfork_events): Declare
11269 global variable.
11270
3a8a0396
DB
112712015-05-12 Don Breazeal <donb@codesourcery.com>
11272
11273 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11274 (the_low_target) <new_fork>: Initialize new member.
11275 * linux-arm-low.c (arm_new_fork): New function.
11276 (the_low_target) <new_fork>: Initialize new member.
11277 * linux-low.c (handle_extended_wait): Call new target function
11278 new_fork.
11279 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11280 * linux-mips-low.c (mips_add_watchpoint): New function
11281 extracted from mips_insert_point.
11282 (the_low_target) <new_fork>: Initialize new member.
11283 (mips_linux_new_fork): New function.
11284 (mips_insert_point): Call mips_add_watchpoint.
11285 * linux-x86-low.c (x86_linux_new_fork): New function.
11286 (the_low_target) <new_fork>: Initialize new member.
11287
de0d863e
DB
112882015-05-12 Don Breazeal <donb@codesourcery.com>
11289
11290 * linux-low.c (handle_extended_wait): Implement return value,
11291 rename argument 'event_child' to 'event_lwp', handle
11292 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11293 (linux_low_ptrace_options): New function.
11294 (linux_low_filter_event): Call linux_low_ptrace_options,
11295 use different argument fo linux_enable_event_reporting,
11296 use return value from handle_extended_wait.
11297 (extended_event_reported): New function.
11298 (linux_wait_1): Call extended_event_reported and set
11299 status to report fork events.
11300 (linux_write_memory): Add pid to debug message.
11301 (reset_lwp_ptrace_options_callback): New function.
11302 (linux_handle_new_gdb_connection): New function.
11303 (linux_target_ops): Initialize new structure member.
11304 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11305 * lynx-low.c: Initialize new structure member.
11306 * remote-utils.c (prepare_resume_reply): Implement stop reason
11307 "fork" for "T" stop message.
11308 * server.c (handle_query): Call handle_new_gdb_connection.
11309 * server.h (report_fork_events): Declare global flag.
11310 * target.h (struct target_ops) <handle_new_gdb_connection>:
11311 New member.
11312 (target_handle_new_gdb_connection): New macro.
11313 * win32-low.c: Initialize new structure member.
11314
ddcbc397
DB
113152015-05-12 Don Breazeal <donb@codesourcery.com>
11316
11317 * mem-break.c (APPEND_TO_LIST): Define macro.
11318 (clone_agent_expr): New function.
11319 (clone_one_breakpoint): New function.
11320 (clone_all_breakpoints): New function.
11321 * mem-break.h: Declare new functions.
11322
89245bc0
DB
113232015-05-12 Don Breazeal <donb@codesourcery.com>
11324
11325 * linux-low.c (linux_supports_fork_events): New function.
11326 (linux_supports_vfork_events): New function.
11327 (linux_target_ops): Initialize new structure members.
11328 (initialize_low): Call linux_check_ptrace_features.
11329 * lynx-low.c (lynx_target_ops): Initialize new structure
11330 members.
11331 * server.c (report_fork_events, report_vfork_events):
11332 New global flags.
11333 (handle_query): Add new features to qSupported packet and
11334 response.
11335 (captured_main): Initialize new global variables.
11336 * target.h (struct target_ops) <supports_fork_events>:
11337 New member.
11338 <supports_vfork_events>: New member.
11339 (target_supports_fork_events): New macro.
11340 (target_supports_vfork_events): New macro.
11341 * win32-low.c (win32_target_ops): Initialize new structure
11342 members.
11343
835205d0
GB
113442015-05-12 Gary Benson <gbenson@redhat.com>
11345
11346 * server.c (handle_qxfer_exec_file): Use current process
11347 if annex is empty.
11348
21e94bd9
SL
113492015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11350
11351 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11352 Remove HAVE_PTRACE_GETREGS conditionals.
11353 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11354 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11355
45614f15
YQ
113562015-05-08 Yao Qi <yao.qi@linaro.org>
11357
11358 * linux-low.c (linux_supports_conditional_breakpoints): New
11359 function.
11360 (linux_target_ops): Install new target method.
11361 * lynx-low.c (lynx_target_ops): Install NULL hook for
11362 supports_conditional_breakpoints.
11363 * nto-low.c (nto_target_ops): Likewise.
11364 * spu-low.c (spu_target_ops): Likewise.
11365 * win32-low.c (win32_target_ops): Likewise.
11366 * server.c (handle_query): Check
11367 target_supports_conditional_breakpoints.
11368 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11369 New field.
11370 (target_supports_conditional_breakpoints): New macro.
11371
80ad801e
PA
113722015-05-06 Pedro Alves <palves@redhat.com>
11373
11374 PR server/18081
11375 * server.c (start_inferior): If the process exits, mourn it.
11376
819843c7
GB
113772015-04-21 Gary Benson <gbenson@redhat.com>
11378
11379 * hostio.c (fileio_open_flags_to_host): Factored out to
11380 fileio_to_host_openflags in common/fileio.c. Single use
11381 updated.
11382
a2d5a9d7
MF
113832015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11384
11385 * linux-xtensa-low.c (xtensa_fill_gregset)
11386 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11387 XCHAL_HAVE_LOOP.
11388
deb44829
MF
113892015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11390
11391 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11392 (regs_info): Replace usrregs pointer with NULL.
11393
e57f1de3
GB
113942015-04-17 Gary Benson <gbenson@redhat.com>
11395
11396 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11397 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11398 * server.c (handle_qxfer_exec_file): New function.
11399 (qxfer_packets): Add exec-file entry.
11400 (handle_query): Report qXfer:exec-file:read as supported packet.
11401
62828379
RN
114022015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11403
11404 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11405
b88bb450
GB
114062015-04-09 Gary Benson <gbenson@redhat.com>
11407
11408 * hostio-errno.c (errno_to_fileio_error): Remove function.
11409 Update caller to use remote_fileio_to_fio_error.
11410
c8f4bfdd
YQ
114112015-04-09 Yao Qi <yao.qi@linaro.org>
11412
11413 * linux-low.c (linux_insert_point): Call
11414 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11415 (linux_remove_point): Call remove_memory_breakpoint if type is
11416 raw_bkpt_type_sw.
11417 * linux-x86-low.c (x86_insert_point): Don't call
11418 insert_memory_breakpoint.
11419 (x86_remove_point): Don't call remove_memory_breakpoint.
11420
41f98f02
PA
114212015-04-01 Pedro Alves <palves@redhat.com>
11422 Cleber Rosa <crosa@redhat.com>
11423
11424 * server.c (gdbserver_usage): Reorganize and extend the usage
11425 message.
11426
2bf6fb9d
PA
114272015-03-24 Pedro Alves <palves@redhat.com>
11428
11429 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11430 output. Also dump TRAP_TRACE.
11431 (linux_low_filter_event): In debug output, distinguish a
11432 resume_stop SIGSTOP from a delayed SIGSTOP.
11433
369f6daa
GB
114342015-03-24 Gary Benson <gbenson@redhat.com>
11435
11436 * linux-x86-low.c (x86_linux_new_thread): Moved to
11437 nat/x86-linux.c.
11438 (x86_linux_prepare_to_resume): Likewise.
11439
8e5d4070
GB
114402015-03-24 Gary Benson <gbenson@redhat.com>
11441
11442 * Makefile.in (x86-linux-dregs.o): New rule.
11443 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11444 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11445 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11446 (x86_linux_dr_get): Likewise.
11447 (x86_linux_dr_set): Likewise.
11448 (update_debug_registers_callback): Likewise.
11449 (x86_linux_dr_set_addr): Likewise.
11450 (x86_linux_dr_get_addr): Likewise.
11451 (x86_linux_dr_set_control): Likewise.
11452 (x86_linux_dr_get_control): Likewise.
11453 (x86_linux_dr_get_status): Likewise.
11454 (x86_linux_update_debug_registers): Likewise.
11455
2b95d440
GB
114562015-03-24 Gary Benson <gbenson@redhat.com>
11457
11458 * linux-x86-low.c (x86_linux_update_debug_registers):
11459 New function, factored out from...
11460 (x86_linux_prepare_to_resume): ...this.
11461
14b0bc68
GB
114622015-03-24 Gary Benson <gbenson@redhat.com>
11463
11464 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11465 (x86_linux_dr_set): Likewise.
11466 (update_debug_registers_callback): Likewise.
11467 (x86_linux_dr_set_addr): Likewise.
11468 (x86_linux_dr_get_addr): Likewise.
11469 (x86_linux_dr_set_control): Likewise.
11470 (x86_linux_dr_get_control): Likewise.
11471 (x86_linux_dr_get_status): Likewise.
11472 (x86_linux_prepare_to_resume): Likewise.
11473
5dfe6ca8
GB
114742015-03-24 Gary Benson <gbenson@redhat.com>
11475
11476 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11477 Use perror_with_name. Pass string through gettext.
11478 (x86_linux_dr_set): Likewise.
11479
d33472ad
GB
114802015-03-24 Gary Benson <gbenson@redhat.com>
11481
11482 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11483 (x86_linux_dr_set_addr): ...this.
11484 (x86_dr_low_get_addr): Rename to...
11485 (x86_linux_dr_get_addr): ...this.
11486 (x86_dr_low_set_control): Rename to...
11487 (x86_linux_dr_set_control): ...this.
11488 (x86_dr_low_get_control): Rename to...
11489 (x86_linux_dr_get_control): ...this.
11490 (x86_dr_low_get_status): Rename to...
11491 (x86_linux_dr_get_status): ...this.
11492 (x86_dr_low): Update with new function names.
11493
4b134ca1
GB
114942015-03-24 Gary Benson <gbenson@redhat.com>
11495
11496 * Makefile.in (x86-linux.o): New rule.
11497 * configure.srv: Add x86-linux.o to relevant targets.
11498 * linux-low.c (lwp_set_arch_private_info): New function.
11499 (lwp_arch_private_info): Likewise.
11500 * linux-x86-low.c: Include nat/x86-linux.h.
11501 (arch_lwp_info): Removed structure.
11502 (update_debug_registers_callback):
11503 Use lwp_set_debug_registers_changed.
11504 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11505 and lwp_set_debug_registers_changed.
11506 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11507
34c703da
GB
115082015-03-24 Gary Benson <gbenson@redhat.com>
11509
11510 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11511 * linux-arm-low.c (arm_new_thread): Likewise.
11512 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11513 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11514 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11515 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11516
cff068da
GB
115172015-03-24 Gary Benson <gbenson@redhat.com>
11518
11519 * linux-low.c (ptid_of_lwp): New function.
11520 (lwp_is_stopped): Likewise.
11521 (lwp_stop_reason): Likewise.
11522 * linux-x86-low.c (update_debug_registers_callback):
11523 Use lwp_is_stopped.
11524 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11525 lwp_stop_reason.
11526
b2f7c7e8
GB
115272015-03-24 Gary Benson <gbenson@redhat.com>
11528
11529 * linux-low.h (linux_stop_lwp): Remove declaration.
11530
6d4ee8c6
GB
115312015-03-24 Gary Benson <gbenson@redhat.com>
11532
11533 * linux-low.h: Include nat/linux-nat.h.
11534 * linux-low.c (iterate_over_lwps_args): New structure.
11535 (iterate_over_lwps_filter): New function.
11536 (iterate_over_lwps): Likewise.
11537 * linux-x86-low.c (update_debug_registers_callback):
11538 Update signature to what iterate_over_lwps expects.
11539 Remove PID check that iterate_over_lwps now performs.
11540 (x86_dr_low_set_addr): Use iterate_over_lwps.
11541 (x86_dr_low_set_control): Likewise.
11542
70a0bb6b
GB
115432015-03-24 Gary Benson <gbenson@redhat.com>
11544
11545 * linux-x86-low.c (x86_debug_reg_state): New function.
11546 (x86_linux_prepare_to_resume): Use the above.
11547
7b669087
GB
115482015-03-24 Gary Benson <gbenson@redhat.com>
11549
11550 * linux-low.c (current_lwp_ptid): New function.
11551 * linux-x86-low.c: Include nat/linux-nat.h.
11552 (x86_dr_low_get_addr): Use current_lwp_ptid.
11553 (x86_dr_low_get_control): Likewise.
11554 (x86_dr_low_get_status): Likewise.
11555
eef49a3d
PA
115562015-03-20 Pedro Alves <palves@redhat.com>
11557
11558 * tracepoint.c (cmd_qtstatus): Make "str" const.
11559
b2333d22
PA
115602015-03-20 Pedro Alves <palves@redhat.com>
11561
11562 * server.c (handle_general_set): Make "req_str" const.
11563
23f238d3
PA
115642015-03-19 Pedro Alves <palves@redhat.com>
11565
11566 * linux-low.c (linux_resume_one_lwp): Rename to ...
11567 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11568 instead call perror_with_name.
11569 (check_ptrace_stopped_lwp_gone): New function.
11570 (linux_resume_one_lwp): Reimplement as wrapper around
11571 linux_resume_one_lwp_throw that swallows errors if the LWP is
11572 gone.
11573
91baf43f
PA
115742015-03-19 Pedro Alves <palves@redhat.com>
11575
11576 * linux-low.c (count_events_callback, select_event_lwp_callback):
11577 No longer check whether the thread has resume_stop as last resume
11578 kind.
11579
8bf3b159
PA
115802015-03-19 Pedro Alves <palves@redhat.com>
11581
11582 * linux-low.c (count_events_callback, select_event_lwp_callback):
11583 Use the lwp's status_pending_p field, not the thread's.
11584
b90fc188
PA
115852015-03-19 Pedro Alves <palves@redhat.com>
11586
11587 * linux-low.c (select_event_lwp_callback): Update comments to
11588 no longer mention SIGTRAP.
11589
464b0089
GB
115902015-03-18 Gary Benson <gbenson@redhat.com>
11591
11592 * server.c (handle_query): Do not report vFile:fstat as supported.
11593
aa9e327f
GB
115942015-03-11 Gary Benson <gbenson@redhat.com>
11595
11596 * hostio.c (sys/types.h): New include.
11597 (sys/stat.h): Likewise.
11598 (common-remote-fileio.h): Likewise.
11599 (handle_fstat): New function.
11600 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 11601
791c0056
GB
116022015-03-11 Gary Benson <gbenson@redhat.com>
11603
11604 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11605 struct stat.st_blocks and struct stat.st_blksize.
11606 * configure: Regenerate.
11607 * config.in: Likewise.
11608 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11609 (OBS): Add common-remote-fileio.o.
11610 (common-remote-fileio.o): New rule.
11611
9a9df970
PA
116122015-03-09 Pedro Alves <palves@redhat.com>
11613
11614 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11615 'struct sockaddr' pointer in 'accept' call.
11616
9eb1356e
PA
116172015-03-09 Pedro Alves <palves@redhat.com>
11618
11619 Revert:
11620 2015-03-07 Pedro Alves <palves@redhat.com>
11621 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11622 or <winsock2.h> here. Instead include "gdb_socket.h".
11623 (remote_open): Use union gdb_sockaddr_u.
11624 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11625 or <winsock2.h> here. Instead include "gdb_socket.h".
11626 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11627 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11628 or <sys/un.h>.
11629 (init_named_socket, gdb_agent_helper_thread): Use union
11630 gdb_sockaddr_u.
11631
aac331e4
PA
116322015-03-07 Pedro Alves <palves@redhat.com>
11633
11634 * configure.ac (build_warnings): Move
11635 -Wdeclaration-after-statement to the C-specific set.
11636 * configure: Regenerate.
11637
366c75fc
PA
116382015-03-07 Pedro Alves <palves@redhat.com>
11639
11640 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11641 or <winsock2.h> here. Instead include "gdb_socket.h".
11642 (remote_open): Use union gdb_sockaddr_u.
11643 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11644 or <winsock2.h> here. Instead include "gdb_socket.h".
11645 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11646 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11647 or <sys/un.h>.
11648 (init_named_socket, gdb_agent_helper_thread): Use union
11649 gdb_sockaddr_u.
11650
492d29ea
PA
116512015-03-07 Pedro Alves <palves@redhat.com>
11652
11653 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11654 instead.
11655
60a191ed
YQ
116562015-03-06 Yao Qi <yao.qi@linaro.org>
11657
11658 * linux-aarch64-low.c (aarch64_insert_point): Use
11659 show_debug_regs as a boolean.
11660 (aarch64_remove_point): Likewise.
11661
f5771b1d
PA
116622015-03-05 Pedro Alves <palves@redhat.com>
11663
11664 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11665 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11666 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11667 * nto-low.c (nto_target_ops): Likewise.
11668 * spu-low.c (spu_target_ops): Likewise.
11669 * win32-low.c (win32_target_ops): Likewise.
11670
3e572f71
PA
116712015-03-04 Pedro Alves <palves@redhat.com>
11672
72f4393d 11673 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
11674 Decide whether a breakpoint triggered based on the SIGTRAP's
11675 siginfo.si_code.
72f4393d
L
11676 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11677 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
11678 (linux_low_filter_event): Check for breakpoints before checking
11679 watchpoints.
11680 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11681 siginfo.si_code.
72f4393d
L
11682 (linux_stopped_by_sw_breakpoint)
11683 (linux_supports_stopped_by_sw_breakpoint)
11684 (linux_stopped_by_hw_breakpoint)
11685 (linux_supports_stopped_by_hw_breakpoint): New functions.
11686 (linux_target_ops): Install new target methods.
3e572f71 11687
1ec68e26
PA
116882015-03-04 Pedro Alves <palves@redhat.com>
11689
11690 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11691 * server.c (swbreak_feature, hwbreak_feature): New globals.
11692 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11693 (captured_main): Clear swbreak_feature and hwbreak_feature.
11694 * server.h (swbreak_feature, hwbreak_feature): Declare.
11695 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11696 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11697 supports_stopped_by_hw_breakpoint>: New fields.
11698 (target_supports_stopped_by_sw_breakpoint)
11699 (target_stopped_by_sw_breakpoint)
11700 (target_supports_stopped_by_hw_breakpoint)
11701 (target_stopped_by_hw_breakpoint): Declare.
11702
15c66dd6
PA
117032015-03-04 Pedro Alves <palves@redhat.com>
11704
11705 enum lwp_stop_reason -> enum target_stop_reason
11706 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11707 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11708 (linux_wait_1, stuck_in_jump_pad_callback)
11709 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11710 (linux_stopped_by_watchpoint):
11711 * linux-low.h (enum lwp_stop_reason): Delete.
11712 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11713 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11714
98fc70d6
YQ
117152015-03-04 Yao Qi <yao.qi@linaro.org>
11716
11717 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11718
dd2ac174
GB
117192015-03-03 Gary Benson <gbenson@redhat.com>
11720
11721 * hostio.c (handle_vFile): Fix prefix lengths.
11722
d68e53f4
MM
117232015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11724
11725 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11726 ptr_bits.
11727
bf2d68ab
AA
117282015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11729
11730 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11731 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11732 (clean): Add "rm -f" for above C files.
11733 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11734 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11735 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11736 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11737 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11738 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11739 (init_registers_s390x_vx_linux64)
11740 (init_registers_s390x_tevx_linux64)
11741 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11742 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11743 declarations.
11744 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11745 (s390_store_vxrs_high): New functions.
11746 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11747 NT_S390_VXRS_HIGH.
11748 (s390_arch_setup): Add logic for selecting one of the new target
11749 descriptions. Activate the new vector regsets if applicable.
11750 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11751 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11752 and init_registers_s390x_tevx_linux64.
11753
c966a859
PA
117542015-03-01 Pedro Alves <palves@redhat.com>
11755
11756 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11757 parameter.
11758
4180215b
PA
117592015-02-27 Pedro Alves <palves@redhat.com>
11760
11761 * linux-x86-low.c (u_debugreg_offset): New function.
11762 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11763
749bab01
PA
117642015-02-27 Pedro Alves <palves@redhat.com>
11765
11766 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11767 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11768 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11769 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11770 (ps_lsetfpregs, ps_getpid)
11771 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11772 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11773 (ps_lsetxregs, ps_plog): Declare.
11774
3c14e5a3
PA
117752015-02-27 Pedro Alves <palves@redhat.com>
11776
11777 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11778 IP_AGENT_EXPORT_FUNC.
11779 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11780 IP_AGENT_EXPORT_FUNC.
11781 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11782 (IP_AGENT_EXPORT): Delete.
11783 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11784 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11785 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11786 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11787 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11788 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11789 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11790 (traceframe_read_count, traceframe_write_count)
11791 (traceframes_created, trace_state_variables, get_raw_reg)
11792 (get_trace_state_variable_value, set_trace_state_variable_value)
11793 (ust_loaded, helper_thread_id, cmd_buf): Use
11794 IPA_SYM_EXPORTED_NAME.
11795 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11796 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11797 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11798 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11799 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11800 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11801 EXTERN_C_PUSH/EXTERN_C_POP.
11802 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11803 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11804 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11805 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11806 (traceframe_write_count, traceframe_read_count)
11807 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11808 (about_to_request_buffer_space, get_trace_state_variable_value)
11809 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11810 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11811 EXTERN_C_PUSH/EXTERN_C_POP.
11812 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11813 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11814 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11815 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11816 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11817 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11818 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11819 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11820 Define.
11821 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11822 (IP_AGENT_EXPORT_VAR_DECL): Define.
11823 (tracing): Declare.
11824 (gdb_agent_get_raw_reg): Declare.
11825
fe978cb0
PA
118262015-02-27 Tom Tromey <tromey@redhat.com>
11827 Pedro Alves <palves@redhat.com>
11828
11829 Rename symbols whose names are reserved C++ keywords throughout.
11830
3bc3d82a
PA
118312015-02-27 Pedro Alves <palves@redhat.com>
11832
11833 * Makefile.in (COMPILER): New, get it from autoconf.
11834 (CXX): Get from autoconf instead.
11835 (COMPILE.pre): Use COMPILER.
11836 (CC-LD): Rename to ...
11837 (CC_LD): ... this. Use COMPILER.
11838 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11839 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11840 * acinclude.m4: Include build-with-cxx.m4.
11841 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11842 Disable -Werror by default if building in C++ mode.
11843 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11844 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11845 the C++ compiler. Save/restore CXXFLAGS too.
11846 * configure: Regenerate.
11847
07697489
PA
118482015-02-27 Pedro Alves <palves@redhat.com>
11849
11850 * acinclude.m4: Include libiberty.m4.
11851 * configure.ac: Call libiberty_INIT.
11852 * config.in, configure: Regenerate.
11853
9beb7c4e
PA
118542015-02-26 Pedro Alves <palves@redhat.com>
11855
11856 * linux-low.c (linux_wait_1): When incrementing the PC past a
11857 program breakpoint always use the_low_target.breakpoint_len as
11858 increment, rather than the maximum between that and
11859 the_low_target.decr_pc_after_break.
11860
8090aef2
PA
118612015-02-23 Pedro Alves <palves@redhat.com>
11862
11863 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11864 thread was doing a step-over; always adjust the PC if
11865 we stepped over a permanent breakpoint.
11866 (linux_wait_1): If we stepped over breakpoint that was on top of a
11867 permanent breakpoint, manually advance the PC past it.
11868
bc9540e8
PA
118692015-02-23 Pedro Alves <palves@redhat.com>
11870
11871 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11872 modes.
11873 (x86_fill_gregset, x86_store_gregset): Use it when handling
11874 $orig_eax.
11875
2db9a427
PA
118762015-02-20 Pedro Alves <palves@redhat.com>
11877
11878 * thread-db.c: Include "nat/linux-procfs.h".
11879 (thread_db_init): Skip listing new threads if the kernel supports
11880 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11881
afa8d396
PA
118822015-02-20 Pedro Alves <palves@redhat.com>
11883
11884 * linux-low.c (status_pending_p_callback): Use ptid_match.
11885
c9587f88
AT
118862015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11887
11888 PR breakpoints/16812
11889 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11890 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11891 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11892
b05ec7a5
AT
118932015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11894
11895 PR breakpoints/15956
11896 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11897
d33501a5
MM
118982015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11899
11900 * linux-low.c (linux_low_btrace_conf): Print size.
11901 * server.c (handle_btrace_conf_general_set): New.
11902 (hanle_general_set): Call handle_btrace_conf_general_set.
11903 (handle_query): Report Qbtrace-conf:bts:size as supported.
11904
f4abbc16
MM
119052015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11906
11907 * linux-low.c (linux_low_enable_btrace): Update parameters.
11908 (linux_low_btrace_conf): New.
11909 (linux_target_ops)<to_btrace_conf>: Initialize.
11910 * server.c (current_btrace_conf): New.
11911 (handle_btrace_enable): Rename to ...
11912 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
11913 to target_enable_btrace. Update comment. Update users.
11914 (handle_qxfer_btrace_conf): New.
11915 (qxfer_packets): Add btrace-conf entry.
11916 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11917 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11918 (target_ops)<read_btrace_conf>: New.
11919 (target_enable_btrace): Update parameters.
11920 (target_read_btrace_conf): New.
11921
043c3577
MM
119222015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11923
11924 * server.c (handle_btrace_general_set): Remove call to
11925 target_supports_btrace.
11926 (supported_btrace_packets): New.
11927 (handle_query): Call supported_btrace_packets.
11928 * target.h: include btrace-common.h.
11929 (btrace_target_info): Removed.
11930 (supports_btrace, target_supports_btrace): Update parameters.
11931
734b0e4b
MM
119322015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11933
11934 * Makefile.in (SFILES): Add common/btrace-common.c.
11935 (OBS): Add common/btrace-common.o.
11936 (btrace-common.o): Add build rules.
11937 * linux-low: Include btrace-common.h.
11938 (linux_low_read_btrace): Use struct btrace_data. Call
11939 btrace_data_init and btrace_data_fini.
11940
d6c146e9
PA
119412015-02-06 Pedro Alves <palves@redhat.com>
11942
11943 * thread-db.c (find_new_threads_callback): Add debug output.
11944
20ba1ce6
PA
119452015-02-04 Pedro Alves <palves@redhat.com>
11946
11947 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11948 (resume_stopped_resumed_lwps): New function.
11949 (linux_wait_for_event_filtered): Use it.
11950
8cc73a39
SDJ
119512015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11952
11953 * Makefile.in (SFILES): Add linux-personality.c.
11954 (linux-personality.o): New rule.
11955 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11956 list of objects to be built.
11957 * linux-low.c: Include nat/linux-personality.h.
11958 (linux_create_inferior): Remove code to disable address space
11959 randomization (moved to ../nat/linux-personality.c). Create
11960 cleanup to disable address space randomization.
11961
fb23d554
SDJ
119622015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11963
11964 * Makefile.in (posix-strerror.o): New rule.
11965 (mingw-strerror.o): Likewise.
11966 * configure: Regenerated.
11967 * configure.ac: Source file ../common/common.host. Initialize new
11968 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11969
cdf43629
YQ
119702015-01-14 Yao Qi <yao@codesourcery.com>
11971
11972 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11973 (ppc-linux.o): New rule.
11974 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11975 * configure.ac: AC_CHECK_FUNCS(getauxval).
11976 * config.in: Re-generated.
11977 * configure: Re-generated.
11978 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11979 ppc64_64bit_inferior_p
11980
514c5338
YQ
119812015-01-14 Yao Qi <yao@codesourcery.com>
11982
11983 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11984 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11985 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11986 (PT_ORIG_R3, PT_TRAP): Likewise.
11987 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11988 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11989 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11990
3368c1e5
JB
119912015-01-10 Joel Brobecker <brobecker@adacore.com>
11992
11993 * i387-fp.c (i387_cache_to_xsave): In look over
11994 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11995 zmmh_low_space field by use of zmmh_high_space.
11996
582511be
PA
119972015-01-09 Pedro Alves <palves@redhat.com>
11998
11999 * linux-low.c (step_over_bkpt): Move higher up in the file.
12000 (handle_extended_wait): Don't store the stop_pc here.
12001 (get_stop_pc): Adjust comments and rename to ...
12002 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12003 stopped for a software breakpoint or hardware breakpoint.
12004 (thread_still_has_status_pending_p): New function.
12005 (status_pending_p_callback): Use
12006 thread_still_has_status_pending_p. If the event is no longer
12007 interesting, resume the LWP.
12008 (handle_tracepoints): Add assert.
12009 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12010 (wstatus_maybe_breakpoint): New function.
12011 (cancel_breakpoint): Delete function.
12012 (check_stopped_by_watchpoint): New function, factored out from
12013 linux_low_filter_event.
12014 (lp_status_maybe_breakpoint): Delete function.
12015 (linux_low_filter_event): Remove filter_ptid argument.
12016 Leave thread group exits pending here. Store the LWP's stop PC.
12017 Always leave events pending.
12018 (linux_wait_for_event_filtered): Pull all events out of the
12019 kernel, and leave them all pending.
12020 (count_events_callback, select_event_lwp_callback): Consider all
12021 events.
12022 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12023 (select_event_lwp): Only give preference to the stepping LWP in
12024 all-stop mode. Adjust comments.
12025 (ignore_event): New function.
12026 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12027 references to cancel_breakpoints. Adjust to renames. Also give
12028 equal priority to all LWPs that have had events in non-stop mode.
12029 If reporting a software breakpoint event, unadjust the LWP's PC.
12030 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12031 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12032 Adjust.
12033 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12034 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12035 (linux_stopped_by_watchpoint): Adjust.
12036 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12037 * linux-low.h (enum lwp_stop_reason): New.
12038 (struct lwp_info) <stop_pc>: Adjust comment.
12039 <stopped_by_watchpoint>: Delete field.
12040 <stop_reason>: New field.
12041 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12042 * mem-break.c (software_breakpoint_inserted_here)
12043 (hardware_breakpoint_inserted_here): New function.
12044 * mem-break.h (software_breakpoint_inserted_here)
12045 (hardware_breakpoint_inserted_here): Declare.
12046 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12047 (cancel_breakpoints): Delete.
12048 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12049 (upload_fast_traceframes): Remove references to
12050 cancel_breakpoints.
12051
a33e3959
PA
120522015-01-09 Pedro Alves <palves@redhat.com>
12053
12054 * thread-db.c (find_new_threads_callback): Ignore thread if the
12055 kernel thread ID is -1.
12056
8784d563
PA
120572015-01-09 Pedro Alves <palves@redhat.com>
12058
12059 * linux-low.c (linux_attach_fail_reason_string): Move to
12060 nat/linux-ptrace.c, and rename.
12061 (linux_attach_lwp): Update comment.
12062 (attach_proc_task_lwp_callback): New function.
12063 (linux_attach): Adjust to rename and use
12064 linux_proc_attach_tgid_threads.
12065 (linux_attach_fail_reason_string): Delete declaration.
12066
76f2b779
JB
120672015-01-01 Joel Brobecker <brobecker@adacore.com>
12068
12069 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12070 * server.c (gdbserver_version): Likewise.
12071
fafcc06a
SDJ
120722014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12073
12074 * remote-utils.c: Include ctype.h.
12075 (input_interrupt): Explicitly handle the case when the char
12076 received is the NUL byte. Improve the printing of non-ASCII
12077 characters.
12078
beed38b8
JB
120792014-12-16 Joel Brobecker <brobecker@adacore.com>
12080
12081 * linux-low.c (linux_low_filter_event): Update call to
12082 linux_enable_event_reporting following the addition of
12083 a new parameter to that function.
12084
bf330350
CU
120852014-12-16 Catalin Udma <catalin.udma@freescale.com>
12086
12087 PR server/17457
12088 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12089 (AARCH64_FPCR_REGNO): Likewise.
12090 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12091 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12092 (aarch64_store_fpregset): Likewise.
12093
5227d625
JB
120942014-12-15 Joel Brobecker <brobecker@adacore.com>
12095
12096 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12097 Remove FIXME comment about assumption about N.
12098
f93b65a0
JB
120992014-12-13 Joel Brobecker <brobecker@adacore.com>
12100
12101 * configure.ac: If large-file support is disabled in GDBserver,
12102 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12103 * configure: Regenerate.
12104
e5a9158d
AA
121052014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12106
12107 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12108 warning upon ENODATA from ptrace.
12109 * linux-s390-low.c (s390_store_tdb): New.
12110 (s390_regsets): Add regset for NT_S390_TDB.
12111
feea5f36
AA
121122014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12113
12114 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12115 without a fill_function.
12116 * linux-s390-low.c (s390_fill_last_break): Remove.
12117 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12118 (s390_arch_setup): Use regset's size instead of fill_function for
12119 loop end condition.
12120
098dbe61
AA
121212014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12122
12123 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12124 the regset's store function when ptrace returned an error.
12125 * regcache.c (get_thread_regcache): Invalidate register cache
12126 before fetching inferior's registers.
12127
28eef672
AA
121282014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12129
12130 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12131 while-loop as for-loop.
12132 (regsets_store_inferior_registers): Likewise.
12133
bdca27a2
YQ
121342014-11-28 Yao Qi <yao@codesourcery.com>
12135
12136 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12137 * config.in, configure: Re-generate.
12138 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12139 is defined.
12140
9c232dda
YQ
121412014-11-21 Yao Qi <yao@codesourcery.com>
12142
12143 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12144 (AC_CHECK_HEADERS): Remove malloc.h.
12145 * configure: Re-generated.
12146 * config.in: Re-generated.
12147 * server.h: Don't include alloca.h and malloc.h.
12148 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12149 Don't include malloc.h.
12150
43968415
JB
121512014-11-17 Joel Brobecker <brobecker@adacore.com>
12152
12153 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12154 corresponding ERRNO check in same block.
12155
40e91bc7
PA
121562014-11-12 Pedro Alves <palves@redhat.com>
12157
12158 * server.c (cont_thread): Update comment.
12159 (start_inferior, attach_inferior): No longer clear cont_thread.
12160 (handle_v_cont): No longer set cont_thread.
12161 (captured_main): Clear cont_thread each time a GDB connects.
12162
c2c118cf
PA
121632014-11-12 Pedro Alves <palves@redhat.com>
12164
12165 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12166 thread, and don't resume all threads if the Hc thread has exited.
12167
78708b7c
PA
121682014-11-12 Pedro Alves <palves@redhat.com>
12169
12170 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12171 the process group instead of to a specific LWP.
12172
a2abc7de
PA
121732014-10-15 Pedro Alves <palves@redhat.com>
12174
12175 PR server/17487
12176 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12177 parameter.
12178 (arm_set_thread_context): Delete.
12179 (the_low_target): Adjust.
12180 * win32-i386-low.c (debug_registers_changed)
12181 (debug_registers_used): Delete.
12182 (update_debug_registers_callback): New function.
12183 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12184 needing to update their debug registers.
12185 (win32_get_current_dr): New function.
12186 (x86_dr_low_get_addr, x86_dr_low_get_control)
12187 (x86_dr_low_get_status): Fetch the debug register from the thread
12188 record's context.
12189 (i386_initial_stuff): Adjust.
12190 (i386_get_thread_context): Remove current_event parameter. Don't
12191 clear debug_registers_changed nor copy DR values to
12192 debug_reg_state.
12193 (i386_set_thread_context): Delete.
12194 (i386_prepare_to_resume): New function.
12195 (i386_thread_added): Mark the thread as needing to update irs
12196 debug registers.
12197 (the_low_target): Remove i386_set_thread_context and install
12198 i386_prepare_to_resume.
12199 * win32-low.c (win32_get_thread_context): Adjust.
12200 (win32_set_thread_context): Use SetThreadContext
12201 directly.
12202 (win32_prepare_to_resume): New function.
12203 (win32_require_context): New function, factored out from ...
12204 (thread_rec): ... this.
12205 (continue_one_thread): Call win32_prepare_to_resume on each thread
12206 we're about to continue.
12207 (win32_resume): Call win32_prepare_to_resume on the event thread.
12208 * win32-low.h (struct win32_thread_info)
12209 <debug_registers_changed>: New field.
12210 (struct win32_target_ops): Change prototype of set_thread_context,
12211 delete set_thread_context and add prepare_to_resume.
12212 (win32_require_context): New declaration.
12213
a442d071
GB
122142014-10-08 Gary Benson <gbenson@redhat.com>
12215
12216 * server.h: Do not include common-exceptions.h.
12217
6f1947e8
GB
122182014-10-08 Gary Benson <gbenson@redhat.com>
12219
12220 * server.h: Do not include cleanups.h.
12221
63b434a4
JH
122222014-09-30 James Hogan <james.hogan@imgtec.com>
12223
12224 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12225 mips64-dsp-linux.c.
12226
c4d9ceb6
YQ
122272014-09-23 Yao Qi <yao@codesourcery.com>
12228
12229 * linux-low.c (lp_status_maybe_breakpoint): New function.
12230 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12231 (count_events_callback): Likewise.
12232 (select_event_lwp_callback): Likewise.
12233 (cancel_breakpoints_callback): Likewise.
12234
89a5711c
DB
122352014-09-19 Don Breazeal <donb@codesourcery.com>
12236
12237 * linux-low.c (handle_extended_wait): Call
12238 linux_ptrace_get_extended_event.
12239 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12240 linux_is_extended_waitstatus.
12241
bffc0964
JB
122422014-09-16 Joel Brobecker <brobecker@adacore.com>
12243
12244 * Makefile.in (CPPFLAGS): Define.
12245 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12246 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12247
0bfdf32f
GB
122482014-09-16 Gary Benson <gbenson@redhat.com>
12249
12250 * inferiors.h (current_inferior): Renamed as...
12251 (current_thread): New variable. All uses updated.
12252 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12253 (maybe_move_out_of_jump_pad): Likewise.
12254 (cancel_breakpoint): Likewise.
12255 (linux_low_filter_event): Likewise.
12256 (wait_for_sigstop): Likewise.
12257 (linux_resume_one_lwp): Likewise.
12258 (need_step_over_p): Likewise.
12259 (start_step_over): Likewise.
12260 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12261 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12262 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12263 and save_inferior as saved_thread.
12264 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12265 saved_thread.
12266 (regcache_invalidate_thread): Likewise.
12267 * remote-utils.c (prepare_resume_reply): Likewise.
12268 * thread-db.c (thread_db_get_tls_address): Likewise.
12269 (disable_thread_event_reporting): Likewise.
12270 (remove_thread_event_breakpoints): Likewise.
12271 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12272 as saved_thread.
12273 * target.h (set_desired_inferior): Renamed as...
12274 (set_desired_thread): New declaration. All uses updated.
12275 * server.c (myresume): Updated comment to reference thread instead
12276 of inferior.
12277 (handle_serial_event): Likewise.
12278 (handle_target_event): Likewise.
12279
361c8ade
GB
122802014-09-12 Tom Tromey <tromey@redhat.com>
12281 Gary Benson <gbenson@redhat.com>
12282
12283 * regcache.h: Include common-regcache.h.
12284 (regcache_read_pc): Don't declare.
12285 * regcache.c (get_thread_regcache_for_ptid): New function.
12286
bd9269f7
GB
122872014-09-11 Tom Tromey <tromey@redhat.com>
12288 Gary Benson <gbenson@redhat.com>
12289
12290 * symbol.c: New file.
12291 * Makefile.in (SFILES): Add symbol.c.
12292 (OBS): Add symbol.o.
12293
f8c1d06b
GB
122942014-09-11 Gary Benson <gbenson@redhat.com>
12295
12296 * target.c (target_stop_ptid, target_continue_ptid): New
12297 functions.
12298
721ec300
GB
122992014-09-11 Tom Tromey <tromey@redhat.com>
12300 Gary Benson <gbenson@redhat.com>
12301
12302 * target.h: Include target/target.h.
12303 * target.c (target_read_memory, target_read_uint32)
12304 (target_write_memory): New functions.
12305
c5e92cca
GB
123062014-09-11 Gary Benson <gbenson@redhat.com>
12307
12308 * server.h (debug_hw_points): Don't declare.
12309 * server.c (debug_hw_points): Don't define. Replace all uses
12310 with show_debug_regs.
12311 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12312 all uses with show_debug_regs.
12313
2e4bb98a
EBM
123142014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12315
12316 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12317 endianness into account.
12318 (ppc_supply_ptrace_register): Likewise.
12319
ac740bc7
JH
123202014-09-03 James Hogan <james.hogan@imgtec.com>
12321
12322 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12323 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12324
97ea6506
GB
123252014-09-03 Gary Benson <gbenson@redhat.com>
12326
12327 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12328 ALL_DEBUG_ADDRESS_REGISTERS.
12329
df7e5265
GB
123302014-09-02 Gary Benson <gbenson@redhat.com>
12331
12332 * i386-low.h: Renamed as...
12333 * x86-low.h: New file. All type, function and variable name
12334 prefixes changed from "i386_" to "x86_". All references updated.
12335 * i386-low.c: Renamed as...
12336 * x86-low.c: New file. All type, function and variable name
12337 prefixes changed from "i386_" to "x86_". All references updated.
12338
ed859da7
GB
123392014-09-02 Gary Benson <gbenson@redhat.com>
12340
12341 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12342 (x86_linux_new_thread): Likewise.
12343
860789c7
GB
123442014-08-29 Gary Benson <gbenson@redhat.com>
12345
12346 * server.h (setjmp.h): Do not include.
12347 (toplevel): Do not declare.
12348 (common-exceptions.h): Include.
12349 (cleanups.h): Likewise.
12350 * server.c (toplevel): Do not define.
12351 (exit_code): New static global.
12352 (detach_or_kill_for_exit_cleanup): New function.
12353 (main): New function. Original main renamed to...
12354 (captured_main): New function.
12355 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12356
ff55e1b5
GB
123572014-08-29 Gary Benson <gbenson@redhat.com>
12358
12359 * Makefile.in (SFILES): Add common/common-exceptions.c.
12360 (OBS): Add common-exceptions.o.
12361 (common-exceptions.o): New rule.
12362 * utils.c (prepare_to_throw_exception): New function.
12363
e9bcb658
GB
123642014-08-29 Gary Benson <gbenson@redhat.com>
12365
12366 * config.in: Regenerate.
12367 * configure: Likewise.
12368
e3180625
GB
123692014-08-29 Gary Benson <gbenson@redhat.com>
12370
12371 * Makefile.in (SFILES): Add common/cleanups.c.
12372 (OBS): cleanups.o.
12373 (cleanups.o): New rule.
12374
e3d6ba5d
GB
123752014-08-29 Gary Benson <gbenson@redhat.com>
12376
12377 * utils.c (internal_vwarning): New function.
12378
7096e886
GB
123792014-08-28 Gary Benson <gbenson@redhat.com>
12380
12381 * utils.h (fatal): Remove declaration.
12382 * utils.c (fatal): Remove function.
12383
14ce3192
GB
123842014-08-28 Gary Benson <gbenson@redhat.com>
12385
12386 * tracepoint.c (gdb_agent_init): Replace fatal with
12387 perror_with_name.
12388 (initialize_tracepoint): Likewise.
12389
50278d59
GB
123902014-08-28 Gary Benson <gbenson@redhat.com>
12391
12392 * remote-utils.c (remote_prepare): Replace fatal with error.
12393
aa96c426
GB
123942014-08-28 Gary Benson <gbenson@redhat.com>
12395
12396 * linux-low.c (linux_async): Replace fatal with warning.
12397 Tidy up and return.
12398 (linux_start_non_stop): Return -1 if linux_async failed.
12399
f7160e97
GB
124002014-08-28 Gary Benson <gbenson@redhat.com>
12401
12402 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12403 gdb_assert.
12404 (i386_dr_low_get_addr): Remove vague comment.
12405 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12406 gdb_assert.
12407
38e08fca
GB
124082014-08-28 Gary Benson <gbenson@redhat.com>
12409
12410 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12411 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12412 internal_error.
12413 (linux_resume_one_lwp): Likewise.
12414 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12415 gdb_assert.
12416 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12417 with internal_error.
12418 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12419 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12420 (find_register_by_name): Replace fatal with internal_error.
12421 (find_regno): Likewise.
12422 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12423 * thread-db.c (thread_db_create_event): Likewise.
12424 (thread_db_load_search): Likewise.
12425 (try_thread_db_load_1): Likewise.
12426 * tracepoint.c (get_jump_space_head): Replace fatal with
12427 internal_error.
12428 (claim_trampoline_space): Likewise.
12429 (have_fast_tracepoint_trampoline_buffer): Likewise.
12430 (cmd_qtstart): Likewise.
12431 (stop_tracing): Likewise.
12432 (fast_tracepoint_collecting): Likewise.
12433 (target_malloc): Likewise.
12434 (download_tracepoint): Likewise.
12435 (download_trace_state_variables): Replace check with gdb_assert.
12436 (upload_fast_traceframes): Replace fatal with internal_error.
12437
34abf635
GB
124382014-08-19 Tom Tromey <tromey@redhat.com>
12439 Gary Benson <gbenson@redhat.com>
12440
12441 * Makefile.in (SFILES): Add common/common-debug.c.
12442 (OBS): Add common-debug.o.
12443 (common-debug.o): New rule.
12444 * debug.h (debug_printf): Don't declare.
12445 * debug.c (debug_printf): Renamed and rewritten as...
12446 (debug_vprintf): New function.
12447
f6e94d78
GB
124482014-08-19 Gary Benson <gbenson@redhat.com>
12449
12450 * utils.h: Do not include print-utils.h.
12451
9239eeab
GB
124522014-08-19 Tom Tromey <tromey@redhat.com>
12453 Gary Benson <gbenson@redhat.com>
12454
12455 * server.h: Add static assertion.
12456 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12457
ef87c8bb
GB
124582014-08-19 Tom Tromey <tromey@redhat.com>
12459 Gary Benson <gbenson@redhat.com>
12460
12461 * Makefile.in (SFILES): Add common/errors.c.
12462 (OBS): Add errors.o.
12463 (IPA_OBS): Add errors-ipa.o.
12464 (errors.o): New rule.
12465 (errors-ipa.o): Likewise.
12466 * utils.h (perror_with_name, error, warning): Don't declare.
12467 * utils.c (warning): Renamed and rewritten as...
12468 (vwarning): New function.
12469 (error): Renamed and rewritten as...
12470 (verror): New function.
12471 (internal_error): Renamed and rewritten as...
12472 (internal_verror): New function.
12473
bb974a24
GB
124742014-08-07 Gary Benson <gbenson@redhat.com>
12475
12476 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12477 * configure: Regenerate.
12478 * config.in: Likewise.
12479 * server.h: Do not include errno.h.
12480 * event-loop.c: Likewise.
12481 * hostio-errno.c: Likewise.
12482 * linux-low.c: Likewise.
12483 * remote-utils.c: Likewise.
12484 * spu-low.c: Likewise.
12485 * utils.c: Likewise.
12486 * gdbreplay.c: Unconditionally include errno.h.
12487
6d3d12eb
GB
124882014-08-07 Gary Benson <gbenson@redhat.com>
12489
12490 * server.h: Do not include string.h.
12491 * event-loop.c: Likewise.
12492 * linux-low.c: Likewise.
12493 * regcache.c: Likewise.
12494 * remote-utils.c: Likewise.
12495 * spu-low.c: Likewise.
12496 * utils.c: Likewise.
12497
dccbb609
GB
124982014-08-07 Gary Benson <gbenson@redhat.com>
12499
12500 * server.h: Do not include gdb_assert.h.
12501
e76df0d0
GB
125022014-08-07 Gary Benson <gbenson@redhat.com>
12503
12504 * server.h: Do not include common-utils.h.
12505
4cb9c816
GB
125062014-08-07 Gary Benson <gbenson@redhat.com>
12507
12508 * server.h: Do not include ptid.h.
12509 * notif.h: Likewise.
12510
3995eeee
GB
125112014-08-07 Gary Benson <gbenson@redhat.com>
12512
12513 * server.h: Do not include gdb_locale.h.
12514
cb9f1a9b
GB
125152014-08-07 Gary Benson <gbenson@redhat.com>
12516
12517 * server.h: Do not include gdb/signals.h.
12518 * win32-low.c: Likewise.
12519
a5fceff8
GB
125202014-08-07 Gary Benson <gbenson@redhat.com>
12521
12522 * server.h: Do not include pathmax.h.
12523
b9391142
GB
125242014-08-07 Gary Benson <gbenson@redhat.com>
12525
12526 * server.h: Do not include libiberty.h.
12527 * linux-bfin-low.c: Likewise.
12528
0e443c87
GB
125292014-08-07 Gary Benson <gbenson@redhat.com>
12530
12531 * server.h: Do not include ansidecl.h.
12532
8ebb3f56
GB
125332014-08-07 Gary Benson <gbenson@redhat.com>
12534
12535 * linux-x86-low.c: Do not include stddef.h.
12536 * lynx-ppc-low.c: Likewise.
12537 * tracepoint.c: Likewise.
12538
8980bdf6
GB
125392014-08-07 Gary Benson <gbenson@redhat.com>
12540
12541 * server.h: Do not include stdarg.h.
12542 * nto-low.c: Likewise.
12543
d7096f71
GB
125442014-08-07 Gary Benson <gbenson@redhat.com>
12545
12546 * server.h: Do not include stdlib.h.
12547 * inferiors.c: Likewise.
12548 * linux-low.c: Likewise.
12549 * regcache.c: Likewise.
12550 * spu-low.c: Likewise.
12551 * tracepoint.c: Likewise.
12552 * utils.c: Likewise.
12553
d02f550d
GB
125542014-08-07 Gary Benson <gbenson@redhat.com>
12555
12556 * server.h: Do not include stdio.h.
12557 * linux-low.c: Likewise.
12558 * remote-utils.c: Likewise.
12559 * spu-low.c: Likewise.
12560 * utils.c: Likewise.
12561 * wincecompat.c: Likewise.
12562
87f6c4e3
GB
125632014-08-06 Gary Benson <gbenson@redhat.com>
12564
12565 * regcache.c (init_register_cache): Move conditionals inside if.
12566
7089dca4
GB
125672014-08-06 Gary Benson <gbenson@redhat.com>
12568
12569 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12570
462f517e
GB
125712014-07-31 Gary Benson <gbenson@redhat.com>
12572
12573 * ax.h: Do not include server.h.
12574 * gdbthread.h: Likewise.
12575 * lynx-low.h: Likewise.
12576 * notif.h: Likewise.
12577
976411d6
GB
125782014-07-30 Gary Benson <gbenson@redhat.com>
12579
12580 * server.h: Include common-defs.h.
12581 Do not include config.h or build-gnulib-gdbserver/config.h.
12582
d41f6d8e
GB
125832014-07-30 Gary Benson <gbenson@redhat.com>
12584
12585 * hostio-errno.c: Move server.h to top of includes list.
12586 * inferiors.c: Likewise.
12587 * linux-x86-low.c: Likewise.
12588 * notif.c: Include server.h.
12589
314c6a35
TT
125902014-07-24 Tom Tromey <tromey@redhat.com>
12591 Gary Benson <gbenson@redhat.com>
12592
12593 * server.h (CORE_ADDR): Now unsigned.
12594
69ff6be5
PA
125952014-07-16 Pedro Alves <palves@redhat.com>
12596
12597 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12598
ce9e3fe7
PA
125992014-07-15 Pedro Alves <palves@redhat.com>
12600
12601 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12602 copy.
12603
e76126e8
PA
126042014-07-11 Pedro Alves <palves@redhat.com>
12605
12606 * linux-low.c (kill_wait_lwp): New function, based on
12607 kill_one_lwp_callback, but use my_waitpid directly.
12608 (kill_one_lwp_callback, linux_kill): Use it.
12609
8e9db26e
PA
126102014-06-23 Pedro Alves <palves@redhat.com>
12611
12612 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12613 before setting DR0..DR3.
12614
698b3e08
GB
126152014-06-20 Gary Benson <gbenson@redhat.com>
12616
12617 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12618 * configure: Regenerated.
12619 * config.in: Likewise.
12620
125f8a3d
GB
126212014-06-20 Gary Benson <gbenson@redhat.com>
12622
12623 * Makefile.in (SFILES): Update locations for files moved
12624 from common to nat.
12625 (object file files): Reordered.
12626
42995dbd
GB
126272014-06-20 Gary Benson <gbenson@redhat.com>
12628
12629 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12630 (i386_dr_low_set_addr): Likewise.
12631 (i386_dr_low_get_addr): Likewise.
12632 (i386_dr_low_can_set_control): Likewise.
12633 (i386_dr_low_set_control): Likewise.
12634 (i386_dr_low_get_control): Likewise.
12635 (i386_dr_low_get_status): Likewise.
12636 (i386_get_debug_register_length): Likewise.
12637 * linux-x86-low.c (i386_dr_low_set_addr):
12638 Changed signature. Made static.
12639 (i386_dr_low_get_addr): Likewise.
12640 (i386_dr_low_set_control): Likewise.
12641 (i386_dr_low_get_control): Likewise.
12642 (i386_dr_low_get_status): Likewise.
12643 (i386_dr_low): New global variable.
12644 * win32-i386-low.c (i386_dr_low_set_addr):
12645 Changed signature. Made static.
12646 (i386_dr_low_get_addr): Likewise.
12647 (i386_dr_low_set_control): Likewise.
12648 (i386_dr_low_get_control): Likewise.
12649 (i386_dr_low_get_status): Likewise.
12650 (i386_dr_low): New global variable.
12651
e1d2394b
MS
126522014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12653
12654 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12655 * Makefile.in (AR, AR_FLAGS): Define.
12656 * configure: Regenerate.
12657
3a8ee006
GB
126582014-06-19 Gary Benson <gbenson@redhat.com>
12659
12660 * Makefile.in (i386-dregs.o): New rule.
12661 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12662 * i386-low.c (target.h): Remove include.
12663 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12664 (DR_CONTROL_SHIFT): Likewise.
12665 (DR_CONTROL_SIZE): Likewise.
12666 (DR_RW_EXECUTE): Likewise.
12667 (DR_RW_WRITE): Likewise.
12668 (DR_RW_READ): Likewise.
12669 (DR_RW_IORW): Likewise.
12670 (DR_LEN_1): Likewise.
12671 (DR_LEN_2): Likewise.
12672 (DR_LEN_4): Likewise.
12673 (DR_LEN_8): Likewise.
12674 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12675 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12676 (DR_ENABLE_SIZE): Likewise.
12677 (DR_LOCAL_SLOWDOWN): Likewise.
12678 (DR_GLOBAL_SLOWDOWN): Likewise.
12679 (DR_CONTROL_RESERVED): Likewise.
12680 (I386_DR_CONTROL_MASK): Likewise.
12681 (I386_DR_VACANT): Likewise.
12682 (I386_DR_LOCAL_ENABLE): Likewise.
12683 (I386_DR_GLOBAL_ENABLE): Likewise.
12684 (I386_DR_DISABLE): Likewise.
12685 (I386_DR_SET_RW_LEN): Likewise.
12686 (I386_DR_GET_RW_LEN): Likewise.
12687 (I386_DR_WATCH_HIT): Likewise.
12688 (i386_wp_op_t): Likewise.
12689 (i386_show_dr): Likewise.
12690 (i386_length_and_rw_bits): Likewise.
12691 (i386_insert_aligned_watchpoint): Likewise.
12692 (i386_remove_aligned_watchpoint): Likewise.
12693 (i386_handle_nonaligned_watchpoint): Likewise.
12694 i386_update_inferior_debug_regs(): Likewise.
12695 (i386_dr_insert_watchpoint): Likewise.
12696 (i386_dr_remove_watchpoint): Likewise.
12697 (i386_dr_region_ok_for_watchpoint): Likewise.
12698 (i386_dr_stopped_data_address): Likewise.
12699 (i386_dr_stopped_by_watchpoint): Likewise.
12700
8f26655c
GB
127012014-06-19 Gary Benson <gbenson@redhat.com>
12702
12703 * i386-low.c (i386_dr_show): Renamed to
12704 i386_show_dr and made static. All uses updated.
12705 (i386_dr_length_and_rw_bits): Renamed to
12706 i386_length_and_rw_bits and made static.
12707 All uses updated.
12708 (i386_dr_insert_aligned_watchpoint): Renamed to
12709 i386_insert_aligned_watchpoint and made static.
12710 All uses updated.
12711 (i386_dr_remove_aligned_watchpoint): Renamed to
12712 i386_remove_aligned_watchpoint and made static.
12713 All uses updated.
12714 (i386_dr_update_inferior_debug_regs): Renamed to
12715 i386_update_inferior_debug_regs and made static.
12716 All uses updated.
12717
b9228891
GB
127182014-06-18 Gary Benson <gbenson@redhat.com>
12719
5171def3
GB
12720 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12721 (i386_dr_low_can_set_control): Likewise.
12722 (i386_get_debug_register_length): Likewise.
12723 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12724 (i386_dr_low_can_set_control): Likewise.
12725 (i386_get_debug_register_length): Likewise.
12726
127272014-06-17 Gary Benson <gbenson@redhat.com>
12728
b9228891
GB
12729 * i386-low.h (i386-dregs.h): New include.
12730 (DR_FIRSTADDR): Now in i386-dregs.h.
12731 (DR_LASTADDR): Likewise.
12732 (DR_NADDR): Likewise.
12733 (DR_STATUS): Likewise.
12734 (DR_CONTROL): Likewise.
12735 (i386_debug_reg_state): Likewise.
12736 (i386_dr_insert_watchpoint): Likewise.
12737 (i386_dr_remove_watchpoint): Likewise.
12738 (i386_dr_region_ok_for_watchpoint): Likewise.
12739 (i386_dr_stopped_data_address): Likewise.
12740 (i386_dr_stopped_by_watchpoint): Likewise.
12741 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12742
4be83cc2
GB
127432014-06-18 Gary Benson <gbenson@redhat.com>
12744
12745 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12746 i386_dr_insert_watchpoint.
12747 (i386_low_remove_watchpoint): Renamed to
12748 i386_dr_remove_watchpoint.
12749 (i386_low_region_ok_for_watchpoint): Renamed to
12750 i386_dr_region_ok_for_watchpoint.
12751 (i386_low_stopped_data_address): Renamed to
12752 i386_dr_stopped_data_address.
12753 (i386_low_stopped_by_watchpoint): Renamed to
12754 i386_dr_stopped_by_watchpoint.
12755 * i386-low.c (i386_show_dr): Renamed to
12756 i386_dr_show and made nonstatic. All uses updated.
12757 (i386_length_and_rw_bits): Renamed to
12758 i386_dr_length_and_rw_bits and made nonstatic.
12759 All uses updated.
12760 (i386_insert_aligned_watchpoint): Renamed to
12761 i386_dr_insert_aligned_watchpoint and made nonstatic.
12762 All uses updated.
12763 (i386_remove_aligned_watchpoint): Renamed to
12764 i386_dr_remove_aligned_watchpoint and made nonstatic.
12765 All uses updated.
12766 (i386_update_inferior_debug_regs): Renamed to
12767 i386_dr_update_inferior_debug_regs and made nonstatic.
12768 All uses updated.
12769 (i386_low_insert_watchpoint): Renamed to
12770 i386_dr_insert_watchpoint. All uses updated.
12771 (i386_low_remove_watchpoint): Renamed to
12772 i386_dr_remove_watchpoint. All uses updated.
12773 (i386_low_region_ok_for_watchpoint): Renamed to
12774 i386_dr_region_ok_for_watchpoint. All uses updated.
12775 (i386_low_stopped_data_address): Renamed to
12776 i386_dr_stopped_data_address. All uses updated.
12777 (i386_low_stopped_by_watchpoint): Renamed to
12778 i386_dr_stopped_by_watchpoint. All uses updated.
12779
131aa0d4
GB
127802014-06-18 Gary Benson <gbenson@redhat.com>
12781
12782 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12783 (i386_dr_low_can_set_control): Likewise.
12784 (i386_insert_aligned_watchpoint): New check.
12785
d9305f7f
GB
127862014-06-18 Gary Benson <gbenson@redhat.com>
12787
12788 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12789 Renamed to state.
12790
e927c9fc
GB
127912014-06-18 Gary Benson <gbenson@redhat.com>
12792
12793 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12794 instead of fatal and error.
12795 (i386_handle_nonaligned_watchpoint): Likewise.
12796
1b6d4134
GB
127972014-06-18 Gary Benson <gbenson@redhat.com>
12798
12799 * i386-low.c (i386_get_debug_register_length): New macro.
12800 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12801 (i386_show_dr): Use debug_printf instead of fprintf. Use
12802 phex to format values.
12803
6e62758f
GB
128042014-06-18 Gary Benson <gbenson@redhat.com>
12805
12806 * i386-low.h: Comment changes.
12807 * i386-low.c: Likewise.
12808
fc6e2f03
GB
128092014-06-18 Gary Benson <gbenson@redhat.com>
12810
12811 * i386-low.c: Whitespace changes.
12812
f9d1eeed
TT
128132014-06-12 Tom Tromey <tromey@redhat.com>
12814
12815 * utils.c (freeargv): Remove.
12816
0b04e523
TT
128172014-06-12 Tom Tromey <tromey@redhat.com>
12818
12819 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12820 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12821 (parse_debug_format_options): Likewise.
12822 (gdbserver_usage): Likewise.
12823 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12824 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12825 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12826 against libiberty.
12827 ($(LIBGNU)): Depend on libiberty.
12828 (all-lib): Recurse into all subdirs.
12829 (install-only): Invoke "install" target in subdirs.
12830 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12831 targets.
12832 * configure: Rebuild.
12833 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12834 for vasprintf, vsnprintf, or gettimeofday.
12835 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12836 srv_tgtobj.
12837
270c9937
JB
128382014-06-05 Joel Brobecker <brobecker@adacore.com>
12839
12840 * development.sh: Delete.
12841 * Makefile.in (config.status): Adjust dependency on development.sh.
12842 * configure.ac: Adjust development.sh source call.
12843 * configure: Regenerate.
12844
0a261ed8
PA
128452014-06-02 Pedro Alves <palves@redhat.com>
12846
12847 * ax.c (gdb_free_agent_expr): New function.
12848 * ax.h (gdb_free_agent_expr): New declaration.
12849 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12850 list.
12851 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12852 static.
12853 (clear_breakpoint_conditions_and_commands): New function.
12854 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12855 (clear_breakpoint_conditions_and_commands): New declaration.
12856
e9dae05e
RR
128572014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12858
12859 * linux-aarch64-low.c (asm/ptrace.h): Include.
12860
5876f503
JK
128612014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12862
12863 Fix TLS access for -static -pthread.
12864 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12865 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12866 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12867
802e8e6d
PA
128682014-05-20 Pedro Alves <palves@redhat.com>
12869
12870 * linux-aarch64-low.c (aarch64_insert_point)
12871 (aarch64_remove_point): No longer check whether the type is
12872 supported here. Adjust to new interface.
12873 (the_low_target): Install aarch64_supports_z_point_type as
12874 supports_z_point_type method.
12875 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12876 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12877 instead of a Z packet char. Adjust.
12878 (arm_supports_z_point_type): New function.
12879 (arm_insert_point, arm_remove_point): Adjust to new interface.
12880 (the_low_target): Install arm_supports_z_point_type.
12881 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12882 (cris_insert_point, cris_remove_point): Adjust to new interface.
12883 Don't check whether the type is supported here.
12884 (the_low_target): Install cris_supports_z_point_type.
12885 * linux-low.c (linux_supports_z_point_type): New function.
12886 (linux_insert_point, linux_remove_point): Adjust to new interface.
12887 * linux-low.h (struct linux_target_ops) <insert_point,
12888 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12889 raw_breakpoint pointer parameter.
12890 <supports_z_point_type>: New method.
12891 * linux-mips-low.c (mips_supports_z_point_type): New function.
12892 (mips_insert_point, mips_remove_point): Adjust to new interface.
12893 Use mips_supports_z_point_type.
12894 (the_low_target): Install mips_supports_z_point_type.
12895 * linux-ppc-low.c (the_low_target): Install NULL as
12896 supports_z_point_type method.
12897 * linux-s390-low.c (the_low_target): Install NULL as
12898 supports_z_point_type method.
12899 * linux-sparc-low.c (the_low_target): Install NULL as
12900 supports_z_point_type method.
12901 * linux-x86-low.c (x86_supports_z_point_type): New function.
12902 (x86_insert_point): Adjust to new insert_point interface. Use
12903 insert_memory_breakpoint. Adjust to new
12904 i386_low_insert_watchpoint interface.
12905 (x86_remove_point): Adjust to remove_point interface. Use
12906 remove_memory_breakpoint. Adjust to new
12907 i386_low_remove_watchpoint interface.
12908 (the_low_target): Install x86_supports_z_point_type.
12909 * lynx-low.c (lynx_target_ops): Install NULL as
12910 supports_z_point_type callback.
12911 * nto-low.c (nto_supports_z_point_type): New.
12912 (nto_insert_point, nto_remove_point): Adjust to new interface.
12913 (nto_target_ops): Install nto_supports_z_point_type.
12914 * mem-break.c: Adjust intro comment.
12915 (struct raw_breakpoint) <raw_type, size>: New fields.
12916 <inserted>: Update comment.
12917 <shlib_disabled>: Delete field.
12918 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12919 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12920 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12921 (raw_bkpt_type_to_target_hw_bp_type): New function.
12922 (find_enabled_raw_code_breakpoint_at): New function.
12923 (find_raw_breakpoint_at): New type and size parameters. Use them.
12924 (insert_memory_breakpoint): New function, based off
12925 set_raw_breakpoint_at.
12926 (remove_memory_breakpoint): New function.
12927 (set_raw_breakpoint_at): Reimplement.
12928 (set_breakpoint): New, based on set_breakpoint_at.
12929 (set_breakpoint_at): Reimplement.
12930 (delete_raw_breakpoint): Go through the_target->remove_point
12931 instead of assuming memory breakpoints.
12932 (find_gdb_breakpoint_at): Delete.
12933 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12934 (find_gdb_breakpoint): New function.
12935 (set_gdb_breakpoint_at): Delete.
12936 (z_type_supported): New function.
12937 (set_gdb_breakpoint_1): New function, loosely based off
12938 set_gdb_breakpoint_at.
12939 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12940 (delete_gdb_breakpoint_at): Delete.
12941 (delete_gdb_breakpoint_1): New function, loosely based off
12942 delete_gdb_breakpoint_at.
12943 (delete_gdb_breakpoint): New function.
12944 (clear_gdb_breakpoint_conditions): Rename to ...
12945 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12946 breakpoint.
12947 (add_condition_to_breakpoint): Make static.
12948 (add_breakpoint_condition): Take a struct breakpoint pointer
12949 instead of an address. Adjust.
12950 (gdb_condition_true_at_breakpoint): Rename to ...
12951 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12952 z_type parameter.
12953 (gdb_condition_true_at_breakpoint): Reimplement.
12954 (add_breakpoint_commands): Take a struct breakpoint pointer
12955 instead of an address. Adjust.
12956 (gdb_no_commands_at_breakpoint): Rename to ...
12957 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12958 parameter. Return true if no breakpoint was found. Change debug
12959 output.
12960 (gdb_no_commands_at_breakpoint): Reimplement.
12961 (run_breakpoint_commands): Rename to ...
12962 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12963 and change return type to boolean.
12964 (run_breakpoint_commands): New function.
12965 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12966 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12967 breakpoint. Go through the_target->remove_point instead of
12968 assuming memory breakpoint.
12969 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12970 software and hardware breakpoints.
12971 (reinsert_raw_breakpoint): Go through the_target->insert_point
12972 instead of assuming memory breakpoint.
12973 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12974 software and hardware breakpoints.
12975 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12976 Check both software and hardware breakpoints.
12977 (validate_inserted_breakpoint): Assert the breakpoint is a
12978 software breakpoint. Set the inserted flag to -1 instead of
12979 setting shlib_disabled.
12980 (delete_disabled_breakpoints): Adjust.
12981 (validate_breakpoints): Only validate software breakpoints.
12982 Adjust to inserted flag change.
12983 (check_mem_read, check_mem_write): Skip breakpoint types other
12984 than software breakpoints. Adjust to inserted flag change.
12985 * mem-break.h (enum raw_bkpt_type): New enum.
12986 (raw_breakpoint, struct process_info): Forward declare.
12987 (Z_packet_to_target_hw_bp_type): Delete declaration.
12988 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12989 (set_gdb_breakpoint, delete_gdb_breakpoint)
12990 (clear_breakpoint_conditions): New declarations.
12991 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12992 (breakpoint_inserted_here): Update comment.
12993 (add_breakpoint_condition, add_breakpoint_commands): Replace
12994 address parameter with a breakpoint pointer parameter.
12995 (gdb_breakpoint_here): Update comment.
12996 (delete_gdb_breakpoint_at): Delete.
12997 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12998 * server.c (process_point_options): Take a struct breakpoint
12999 pointer instead of an address. Adjust.
13000 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13001 delete_gdb_breakpoint.
13002 * spu-low.c (spu_target_ops): Install NULL as
13003 supports_z_point_type method.
13004 * target.h: Include mem-break.h.
13005 (struct target_ops) <prepare_to_access_memory>: Update comment.
13006 <supports_z_point_type>: New field.
13007 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13008 instead of a char. Also take a raw breakpoint pointer.
13009 * win32-arm-low.c (the_low_target): Install NULL as
13010 supports_z_point_type.
13011 * win32-i386-low.c (i386_supports_z_point_type): New function.
13012 (i386_insert_point, i386_remove_point): Adjust to new interface.
13013 (the_low_target): Install i386_supports_z_point_type.
13014 * win32-low.c (win32_supports_z_point_type): New function.
13015 (win32_insert_point, win32_remove_point): Adjust to new interface.
13016 (win32_target_ops): Install win32_supports_z_point_type.
13017 * win32-low.h (struct win32_target_ops):
13018 <supports_z_point_type>: New method.
13019 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13020 instead of a char. Also take a raw breakpoint pointer.
13021
932539e3
PA
130222014-05-20 Pedro Alves <palves@redhat.com>
13023
13024 * mem-break.h: Include break-common.h.
13025 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13026 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13027 (Z_packet_to_target_hw_bp_type): New declaration.
13028 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13029 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13030 (Z_PACKET_ACCESS_WP): Delete macros.
13031 (Z_packet_to_hw_type): Delete function.
13032 * i386-low.h: Don't include break-common.h here.
13033 (Z_packet_to_hw_type): Delete declaration.
13034 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13035 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13036 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13037 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13038 * linux-aarch64-low.c: Don't include break-common.h here.
13039 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13040 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13041 (Z_packet_to_target_hw_bp_type): Delete function.
13042 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13043 function.
13044 (mips_insert_point, mips_remove_point): Use
13045 Z_packet_to_target_hw_bp_type.
13046
4ff0d3d8
PA
130472014-05-20 Pedro Alves <palves@redhat.com>
13048
13049 * linux-aarch64-low.c: Include break-common.h.
13050 (enum target_point_type): Delete.
13051 (Z_packet_to_point_type): Rename to ...
13052 (Z_packet_to_target_hw_bp_type): ... this, and return a
13053 target_hw_bp_type instead.
13054 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13055 instead of an enum target_point_type.
13056 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13057 breakpoint type.
13058 (aarch64_dr_state_insert_one_point)
13059 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13060 (aarch64_handle_aligned_watchpoint)
13061 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13062 Take an enum target_hw_bp_type instead of an enum
13063 target_point_type.
13064 (aarch64_supports_z_point_type): New function.
13065 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13066 use Z_packet_to_target_hw_bp_type.
13067
786dc519
JB
130682014-05-20 Joel Brobecker <brobecker@adacore.com>
13069
13070 * configure.ac: Only use -Werror by default when DEVELOPMENT
13071 is true.
13072 * configure: Regenerate.
13073
9e0aa64f
JK
130742014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13075
13076 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13077 * linux-x86-low.c (X86_64_USER_REGS): New.
13078 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13079
2b577b92
YQ
130802014-04-28 Yao Qi <yao@codesourcery.com>
13081
13082 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13083 name.
13084
94611da2
PA
130852014-04-25 Pedro Alves <palves@redhat.com>
13086
13087 PR server/16255
13088 * linux-low.c (linux_attach_fail_reason_string): New function.
13089 (linux_attach_lwp): Delete.
13090 (linux_attach_lwp_1): Rename to ...
13091 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13092 argument. Remove "initial" parameter. Return int instead of
13093 void. Don't error or warn here.
13094 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13095 failure to attach to the tgid. Call warning when failing to
13096 attach to an lwp.
13097 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13098 argument. Remove "initial" parameter. Return int instead of
13099 void. Don't error or warn here.
13100 (linux_attach_fail_reason_string): New declaration.
13101 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13102 interface change. Use linux_attach_fail_reason_string.
13103
01f9f808
MS
131042014-04-24 Michael Sturm <michael.sturm@mintel.com>
13105 Walfred Tedeschi <walfred.tedeschi@intel.com>
13106
13107 * Makefile.in: Added rules to handle new files
13108 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13109 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13110 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13111 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13112 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13113 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13114 x32-avx512-linux.o.
13115 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13116 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13117 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13118 i386/x32-avx512.xml.
13119 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13120 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13121 i386/x32-avx512-linux.xml.
13122 * i387-fp.c (num_avx512_k_registers): New constant for number
13123 of K registers.
13124 (num_avx512_zmmh_low_registers): New constant for number of
13125 lower ZMM registers (0-15).
13126 (num_avx512_zmmh_high_registers): New constant for number of
13127 higher ZMM registers (16-31).
13128 (num_avx512_ymmh_registers): New contant for number of higher
13129 YMM registers (ymm16-31 added by avx521 on x86_64).
13130 (num_avx512_xmm_registers): New constant for number of higher
13131 XMM registers (xmm16-31 added by AVX512 on x86_64).
13132 (struct i387_xsave): Add space for AVX512 registers.
13133 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13134 Add code to handle AVX512 registers.
13135 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13136 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13137 prototypei from generated file.
13138 (tdesc_amd64_avx512_linux): Likewise.
13139 (init_registers_x32_avx512_linux): Likewise.
13140 (tdesc_x32_avx512_linux): Likewise.
13141 (init_registers_i386_avx512_linux): Likewise.
13142 (tdesc_i386_avx512_linux): Likewise.
13143 (x86_64_regmap): Add AVX512 registers.
13144 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13145 mask.
13146 (initialize_low_arch): Add code to initialize AVX512 registers.
13147
51aa91f9
PA
131482014-04-23 Pedro Alves <palves@redhat.com>
13149
13150 * mem-break.c (find_gdb_breakpoint_at): Make static.
13151 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13152
a4165e94
PA
131532014-04-23 Pedro Alves <palves@redhat.com>
13154
13155 * i386-low.c: Don't include break-common.h here.
13156 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13157 prototype to take target_hw_bp_type as argument instead of a Z
13158 packet char.
13159 * i386-low.h: Include break-common.h here.
13160 (Z_packet_to_hw_type): Declare.
13161 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13162 prototypes.
13163 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13164 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13165 (x86_remove_point): Convert the packet number to a
13166 target_hw_bp_type before calling i386_low_remove_watchpoint.
13167 * win32-i386-low.c (i386_insert_point): Convert the packet number
13168 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13169 (i386_remove_point): Convert the packet number to a
13170 target_hw_bp_type before calling i386_low_remove_watchpoint.
13171
b8acf843
PA
131722014-04-23 Pedro Alves <palves@redhat.com>
13173
13174 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13175
d708bcd1
PA
131762014-04-10 Pedro Alves <palves@redhat.com>
13177
13178 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13179 Check if the condition or command is NULL before checking if the
13180 breakpoint is known. On success, return true.
13181 * mem-break.h (add_breakpoint_condition): Document return.
13182 (add_breakpoint_commands): Add describing comment.
13183 * server.c (skip_to_semicolon): New function.
13184 (process_point_options): Use it.
13185
2eec7d5b
PA
131862014-04-09 Pedro Alves <palves@redhat.com>
13187
13188 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13189 to lwpid_of.
13190
fa96cb38
PA
131912014-02-27 Pedro Alves <palves@redhat.com>
13192
13193 PR 12702
13194 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13195 macros.
13196 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13197 output.
13198 (last_thread_of_process_p): Take a PID argument instead of a
13199 thread pointer.
13200 (linux_wait_for_lwp): Delete.
13201 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13202 functions.
13203 (linux_low_filter_event): New function, party factored out from
13204 linux_wait_for_event.
13205 (linux_wait_for_event): Rename to ...
13206 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13207 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13208 sigsuspend. Check for zombie leaders.
13209 (linux_wait_for_event): Reimplement as wrapper around
13210 linux_wait_for_event_filtered.
13211 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13212 a normal or signal exit is seen, it's the whole process exiting.
13213 (wait_for_sigstop): No longer a for_each_inferior callback.
13214 Rewrite on top of linux_wait_for_event_filtered.
13215 (stop_all_lwps): Call wait_for_sigstop directly.
13216 * server.c (resume, handle_target_event): Handle
13217 TARGET_WAITKIND_NO_RESUMED.
13218
d763de10
JB
132192014-02-26 Joel Brobecker <brobecker@adacore.com>
13220
13221 * win32-low.c (psapi_get_dll_name,
13222 * win32_CreateToolhelp32Snapshot): Delete.
13223 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13224 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13225 Delete.
13226 (handle_load_dll): Add function description.
13227 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13228
850a0f76
JB
132292014-02-26 Joel Brobecker <brobecker@adacore.com>
13230
13231 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13232 Add comment.
13233 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13234 base address when calling win32_add_one_solib.
13235 (handle_load_dll): Delete local variable load_addr.
13236 Remove 0x1000 offset applied to DLL base address when calling
13237 win32_add_one_solib.
13238 (handle_unload_dll): Add comment.
13239
f25b3fc3
JB
132402014-02-26 Joel Brobecker <brobecker@adacore.com>
13241
13242 * win32-low.c (win32_add_all_dlls): Renames
13243 win32_ensure_ntdll_loaded. Rewrite function documentation.
13244 Adjust implementation to always load all DLLs.
13245 Add 0x1000 offset to DLL base address when calling
13246 win32_add_one_solib.
13247 (child_initialization_done): New static global.
13248 (do_initial_child_stuff): Set child_initialization_done to
13249 zero during child initialization, and 1 after. Replace call
13250 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13251 Add comment.
13252 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13253 (handle_unload_dll): Add function documentation.
13254 (get_child_debug_event): Ignore load and unload DLL events
13255 during child initialization.
13256
d86d4aaf
DE
132572014-02-20 Doug Evans <dje@google.com>
13258
3bc32da3 13259 Remove global all_lwps.
d86d4aaf
DE
13260 * inferiors.h (ptid_of): Move here from linux-low.h.
13261 (pid_of, lwpid_of): Ditto.
13262 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13263 parameter is a struct thread_info * now.
13264 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13265 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13266 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13267 directly.
13268 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13269 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13270 * linux-arm-low.c (update_registers_callback): Update, "entry"
13271 parameter is a struct thread_info * now.
13272 Fetch lwpid from current_inferior directly.
13273 (arm_insert_point): Pass &all_threads to find_inferior instead of
13274 &all_lwps.
13275 (arm_remove_point): Ditto.
13276 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13277 (arm_prepare_to_resume): Fetch pid from thread.
13278 (arm_read_description): Fetch lwpid from current_inferior directly.
13279 * linux-low.c (all_lwps): Delete.
13280 (delete_lwp): Delete call to remove_inferior.
13281 (handle_extended_wait): Fetch lwpid from thread.
13282 (add_lwp): Don't set lwp->entry.id. Remove call to
13283 add_inferior_to_list.
13284 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13285 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13286 (kill_one_lwp_callback): Ditto.
13287 (linux_kill): Don't dereference NULL pointer.
13288 Fetch ptid,lwpid from thread.
13289 (get_detach_signal): Fetch ptid from thread.
13290 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13291 Simplify call to regcache_invalidate_thread.
13292 (delete_lwp_callback): Update, "entry" parameter is a
13293 struct thread_info * now. Fetch pid from thread.
13294 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13295 (status_pending_p_callback): Update, "entry" parameter is a
13296 struct thread_info * now. Fetch ptid from thread.
13297 (find_lwp_pid): Update, "entry" parameter is a
13298 struct thread_info * now.
13299 (linux_wait_for_lwp): Fetch pid from thread.
13300 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13301 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13302 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13303 (dequeue_one_deferred_signal): Ditto.
13304 (cancel_breakpoint): Fetch ptid from current_inferior.
13305 (linux_wait_for_event): Pass &all_threads to find_inferior,
13306 not &all_lwps. Fetch ptid, lwpid from thread.
13307 (count_events_callback): Update, "entry" parameter is a
13308 struct thread_info * now.
13309 (select_singlestep_lwp_callback): Ditto.
13310 (select_event_lwp_callback): Ditto.
13311 (cancel_breakpoints_callback): Ditto.
13312 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13313 not &all_lwps.
13314 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13315 (unsuspend_one_lwp): Update, "entry" parameter is a
13316 struct thread_info * now.
13317 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13318 not &all_lwps.
13319 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13320 Fetch lwpid from thread, not lwp.
13321 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13322 Pass &all_threads to find_inferior, not &all_lwps.
13323 (send_sigstop): Fetch lwpid from thread, not lwp.
13324 (send_sigstop_callback): Update, "entry" parameter is a
13325 struct thread_info * now.
13326 (suspend_and_send_sigstop_callback): Ditto.
13327 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13328 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13329 struct thread_info * now.
13330 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13331 from thread, lwp.
13332 (lwp_running): Update, "entry" parameter is a
13333 struct thread_info * now.
13334 (stop_all_lwps): Fetch ptid from thread.
13335 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13336 (linux_resume_one_lwp): Fetch lwpid from thread.
13337 (linux_set_resume_request): Update, "entry" parameter is a
13338 struct thread_info * now. Fetch pid, lwpid from thread.
13339 (resume_status_pending_p): Update, "entry" parameter is a
13340 struct thread_info * now.
13341 (need_step_over_p): Ditto. Fetch lwpid from thread.
13342 (start_step_over): Fetch lwpid from thread.
13343 (linux_resume_one_thread): Update, "entry" parameter is a
13344 struct thread_info * now. Fetch lwpid from thread.
13345 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13346 (proceed_one_lwp): Update, "entry" parameter is a
13347 struct thread_info * now. Fetch lwpid from thread.
13348 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13349 struct thread_info * now.
13350 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13351 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13352 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13353 directly.
13354 (regsets_store_inferior_registers): Ditto.
13355 (fetch_register, store_register): Ditto.
13356 (linux_read_memory, linux_write_memory): Ditto.
13357 (linux_request_interrupt): Ditto.
13358 (linux_read_auxv): Ditto.
13359 (linux_xfer_siginfo): Ditto.
13360 (linux_qxfer_spu): Ditto.
13361 (linux_qxfer_libraries_svr4): Ditto.
13362 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13363 moved to inferiors.h.
13364 (get_lwp): Delete.
13365 (get_thread_lwp): Update.
13366 (struct lwp_info): Delete member "entry". Simplify comment for
13367 member "thread".
13368 (all_lwps): Delete.
13369 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13370 current_inferior directly.
13371 (update_watch_registers_callback): Update, "entry" parameter is a
13372 struct thread_info * now. Fetch pid from thread.
13373 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13374 (mips_insert_point): Fetch lwpid from current_inferior.
13375 Pass &all_threads to find_inferior, not &all_lwps.
13376 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13377 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13378 directly.
13379 (mips_stopped_data_address): Ditto.
13380 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13381 directly.
13382 * linux-tile-low.c (tile_arch_setup): Ditto.
13383 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13384 (update_debug_registers_callback): Update, "entry" parameter is a
13385 struct thread_info * now. Fetch pid from thread.
13386 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13387 Pass &all_threads to find_inferior, not &all_lwps.
13388 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13389 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13390 Pass &all_threads to find_inferior, not &all_lwps.
13391 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13392 (i386_dr_low_get_status): Ditto.
13393 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13394 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13395 (x86_linux_read_description): Ditto.
13396 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13397
3b8361aa
DE
133982014-02-20 Doug Evans <dje@google.com>
13399
13400 * inferiors.c (get_first_inferior): Fix buglet.
13401
f7667f0d
DE
134022014-02-19 Doug Evans <dje@google.com>
13403
13404 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13405 * inferiors.c (add_thread): Change result type to struct thread_info *.
13406 All callers updated.
13407 (add_lwp): Call add_thread here instead of in callers.
13408 All callers updated.
13409 * linux-low.h (get_lwp_thread): Rewrite.
13410 (struct lwp_info): New member "thread".
13411
b3312d80
DE
134122014-02-19 Doug Evans <dje@google.com>
13413
13414 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13415 All callers updated.
13416
ecc6f45c
DE
134172014-02-19 Doug Evans <dje@google.com>
13418
13419 * inferiors.c (add_thread): Fix whitespace.
13420
649ebbca
DE
134212014-02-19 Doug Evans <dje@google.com>
13422
13423 * dll.c (clear_dlls): Replace accessing list implemention details
13424 with API function.
13425 * gdbthread.h (get_first_thread): Declare.
13426 * inferiors.c (for_each_inferior_with_data): New function.
13427 (get_first_thread): New function.
13428 (find_thread_ptid): Simplify.
13429 (get_first_inferior): New function.
13430 (clear_list): Delete.
13431 (one_inferior_p): New function.
13432 (clear_inferior_list): New function.
13433 (clear_inferiors): Update.
13434 * inferiors.h (for_each_inferior_with_data): Declare.
13435 (clear_inferior_list): Declare.
13436 (one_inferior_p): Declare.
13437 (get_first_inferior): Declare.
13438 * linux-low.c (linux_wait_for_event): Replace accessing list
13439 implemention details with API function.
13440 * server.c (target_running): Ditto.
13441 (accumulate_file_name_length): New function.
13442 (emit_dll_description): New function.
13443 (handle_qxfer_libraries): Replace accessing list implemention
13444 details with API function.
13445 (handle_qxfer_threads_worker): New function.
13446 (handle_qxfer_threads_proper): Replace accessing list implemention
13447 details with API function.
13448 (handle_query): Ditto.
13449 (visit_actioned_threads_callback_ftype): New typedef.
13450 (visit_actioned_threads_data): New struct.
13451 (visit_actioned_threads): Rewrite to be find_inferior callback.
13452 (resume): Call find_inferior.
13453 (handle_status): Replace accessing list implemention
13454 details with API function.
13455 (process_serial_event): Replace accessing list implemention details
13456 with API function.
13457 * target.c (set_desired_inferior): Replace accessing list implemention
13458 details with API function.
13459 * tracepoint.c (same_process_p): New function.
13460 (gdb_agent_about_to_close): Replace accessing list implemention
13461 details with API function.
13462 * win32-low.c (child_delete_thread): Replace accessing list
13463 implemention details with API function.
13464 (match_dll_by_basename): New function.
13465 (dll_is_loaded_by_basename): New function.
13466 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13467 details call to dll_is_loaded_by_basename.
13468
80894984
DE
134692014-02-19 Doug Evans <dje@google.com>
13470
13471 * dll.h (struct dll_info): Add comment.
13472 * gdbthread.h (struct thread_info): Add comment.
13473 (current_ptid): Simplify.
13474 * inferiors.c (add_process): Update.
13475 (remove_process): Update.
13476 * inferiors.h (struct process_info): Rename member "head" to "entry".
13477 * linux-low.c (delete_lwp): Update.
13478 (add_lwp): Update.
13479 (last_thread_of_process_p): Update.
13480 (kill_one_lwp_callback, linux_kill): Update.
13481 (status_pending_p_callback): Update.
13482 (wait_for_sigstop): Update. Simplify read of ptid.
13483 (start_step_over): Update.
13484 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13485 (get_lwp_thread): Update.
13486 (struct lwp_info): Rename member "head" to "entry".
13487 * regcache.h (inferior_list_entry): Delete.
13488 * server.c (kill_inferior_callback): Update.
13489 (detach_or_kill_inferior_callback): Update.
13490 (print_started_pid): Update.
13491 (print_attached_pid): Update.
13492 (process_serial_event): Simplify read of ptid.
13493 * thread-db.c (thread_db_create_event): Update.
13494 (thread_db_get_tls_address): Update.
13495 * win32-low.c (current_inferior_ptid): Simplify.
13496
46917d26
TT
134972014-02-19 Tom Tromey <tromey@redhat.com>
13498
13499 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13500 argument.
13501 (target_supports_btrace): Update.
13502
0759a81e
YQ
135032014-02-14 Yao Qi <yao@codesourcery.com>
13504
13505 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13506 (rsp-low-ipa.o): New target.
13507
a7191e8b
TT
135082014-02-12 Tom Tromey <tromey@redhat.com>
13509
13510 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13511 convert_ascii_to_int.
13512 * regcache.c (registers_to_string): Likewise.
13513 * remote-utils.c (decode_M_packet): Likewise.
13514 * server.c (process_serial_event): Likewise.
13515
ff0e980e
TT
135162014-02-12 Tom Tromey <tromey@redhat.com>
13517
13518 * server.c (handle_query, handle_v_run): Use hex2bin, not
13519 unhexify.
13520 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13521
e9371aff
TT
135222014-02-12 Tom Tromey <tromey@redhat.com>
13523
13524 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13525 convert_int_to_ascii.
13526 * regcache.c (registers_to_string, collect_register_as_string):
13527 Likewise.
13528 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13529 Likewise.
13530 * server.c (process_serial_event): Likewise.
13531 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13532 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13533
971dc0b8
TT
135342014-02-12 Tom Tromey <tromey@redhat.com>
13535
13536 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13537 bin2hex, not hexify.
13538 * tracepoint.c (cmd_qtstatus): Likewise.
13539
0a822afb
TT
135402014-02-12 Tom Tromey <tromey@redhat.com>
13541
13542 * remote-utils.c (monitor_output): Pass explicit length to
13543 hexify.
13544
9c3d6531
TT
135452014-02-12 Tom Tromey <tromey@redhat.com>
13546
13547 * tracepoint.c: Include rsp-low.h.
13548 * server.c: Include rsp-low.h.
13549 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13550 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13551 declare.
13552 * remote-utils.c: Include rsp-low.h.
13553 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13554 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13555 (convert_int_to_ascii, convert_ascii_to_int): Move to
13556 common/rsp-low.c.
13557 * regcache.c: Include rsp-low.h.
13558 * ax.c: Include rsp-low.h.
13559 * Makefile.in (SFILES): Add common/rsp-low.c.
13560 (OBS): Add rsp-low.o.
13561 (rsp-low.o): New target.
13562
01fd3ea5
TT
135632014-02-12 Tom Tromey <tromey@redhat.com>
13564
13565 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13566 Include print-utils.h.
13567 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13568 (plongest, thirty_two, phex_nz): Remove.
13569 * Makefile.in (SFILES): Add common/print-utils.c.
13570 (OBS): Add print-utils.o.
13571 (print-utils-ipa.o): New target.
13572 (print-utils.o): New target.
13573 (IPA_OBJS): Add print-utils-ipa.o.
13574
e99dc820
TT
135752014-02-06 Tom Tromey <tromey@redhat.com>
13576
13577 * Makefile.in (SFILES): Fix indentation.
13578
ee1e2d4f
DE
135792014-02-05 Doug Evans <dje@google.com>
13580
13581 * linux-low.c (linux_wait_for_event): Improve comment.
13582 (linux_wait_1): Keep current_inferior in sync with event_child.
13583
f5a02773
DE
135842014-01-22 Doug Evans <dje@google.com>
13585
13586 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13587
87ce2a04
DE
135882014-01-22 Doug Evans <dje@google.com>
13589
13590 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13591 * configure: Regenerate.
13592 * config.in: Regenerate.
13593 * Makefile.in (SFILES): Add debug.c.
13594 (OBS): Add debug.o.
13595 * debug.c: New file.
13596 * debug.h: New file.
13597 * linux-aarch64-low.c (*): Update all debugging printfs to use
13598 debug_printf instead of fprintf.
13599 * linux-arm-low.c (*): Ditto.
13600 * linux-cris-low.c (*): Ditto.
13601 * linux-crisv32-low.c (*): Ditto.
13602 * linux-m32r-low.c (*): Ditto.
13603 * linux-sparc-low.c (*): Ditto.
13604 * linux-x86.c (*): Ditto.
13605 * linux-low.c (*): Ditto.
13606 (linux_wait_1): Add calls to debug_enter, debug_exit.
13607 (linux_wait): Remove redundant debugging printf.
13608 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13609 (linux_resume, unstop_all_lwps): Ditto.
13610 * mem-break.c (*): Update all debugging printfs to use
13611 debug_printf instead of fprintf.
13612 * remote-utils.c (*): Ditto.
13613 * thread-db.c (*): Ditto.
13614 * server.c #include <ctype.h>, "gdb_vecs.h".
13615 (debug_threads): Moved to debug.c.
13616 (*): Update all debugging printfs to use debug_printf instead of
13617 fprintf.
13618 (start_inferior): Replace call to fflush with call to debug_flush.
13619 (monitor_show_help): Mention set debug-format.
13620 (parse_debug_format_options): New function.
13621 (handle_monitor_command): Handle "monitor set debug-format".
13622 (gdbserver_usage): Mention --debug-format.
13623 (main): Parse --debug-format.
13624 * server.h (debug_threads): Declaration moved to debug.h.
13625 #include "debug.h".
13626 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13627 trace_debug_1 that uses debug_printf.
13628 (tracepoint_look_up_symbols): Update all debugging printfs to use
13629 debug_printf instead of fprintf.
13630
e671835b
BS
136312014-01-20 Baruch Siach <baruch@tkos.co.il>
13632
13633 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13634 sys/ptrace.h.
13635
b5737fa9
PA
136362014-01-17 Pedro Alves <palves@redhat.com>
13637
ea38d2a9 13638 PR build/16445
c7faa97a
PA
13639 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13640 defined after including gdb_proc_service.h.
b5737fa9 13641
40ed484e
DE
136422014-01-16 Doug Evans <dje@google.com>
13643
13644 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13645 (match_dll): Use it.
13646
969c39fb
MM
136472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13648
13649 * target.h (target_ops) <read_btrace>: Change parameters and
13650 return type to allow error reporting.
13651 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13652 trace reading errors on.
13653 * linux-low.c (linux_low_read_btrace): Pass trace reading
13654 errors on.
13655 (linux_low_disable_btrace): New.
13656
ab7f45ba
DE
136572014-01-15 Doug Evans <dje@google.com>
13658
13659 * inferiors.c (thread_id_to_gdb_id): Delete.
13660 * inferiors.h (thread_id_to_gdb_id): Delete.
13661
66af0f44
EZ
136622014-01-13 Eli Zaretskii <eliz@gnu.org>
13663
13664 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13665 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13666 versions.
13667
9939e131
PA
136682014-01-08 Pedro Alves <palves@redhat.com>
13669
13670 * server.c (handle_status): Don't discard previous queued stop
13671 replies or thread's pending status here.
13672 (main) <disconnection>: Do it here instead.
13673
b7ea362b
PA
136742014-01-08 Pedro Alves <palves@redhat.com>
13675
13676 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13677 * server.c (visit_actioned_threads, handle_pending_status): New
13678 function.
13679 (handle_v_cont): Factor out parts to ...
13680 (resume): ... this new function. If in all-stop, and a thread
13681 being resumed has a pending status, report it without actually
13682 resuming.
13683 (myresume): Adjust to use the new 'resume' function.
13684 (clear_pending_status_callback, set_pending_status_callback)
13685 (find_status_pending_thread_callback): New functions.
13686 (handle_status): Handle the case of multiple threads having
13687 interesting statuses to report. Report threads' real last signal
13688 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13689 with an interesting thread to report the status for, instead of
13690 always reporting the status of the first thread.
13691
28498c42
JB
136922014-01-01 Joel Brobecker <brobecker@adacore.com>
13693
13694 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13695 * gdbreplay.c (gdbreplay_version): Likewise.
13696
f45c82da
YZ
136972013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13698
13699 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13700 iov.iov_len with the real length in use.
13701
379a5e2d
JB
137022013-12-13 Joel Brobecker <brobecker@adacore.com>
13703
13704 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13705 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13706 for all targets that use win32-low.c.
13707 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13708 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13709
4210d83e
PA
137102013-12-13 Pedro Alves <palves@redhat.com>
13711
13712 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13713 if equal to TARGET_WAITKIND_LOADED.
13714 * win32-low.c (cached_status): New static global.
13715 (win32_wait): Add declaration.
13716 (do_initial_child_stuff): Flush all initial pending debug events
13717 up to the initial breakpoint.
13718 (win32_wait): If CACHED_STATUS was set, return that instead
13719 of doing a real wait. Remove the code resuming the execution
13720 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13721 during the initial phase. Also remove the code changing
13722 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13723 TARGET_WAITKIND_STOPPED.
13724
e7f0d979
YQ
137252013-12-11 Yao Qi <yao@codesourcery.com>
13726
13727 * notif.c (handle_notif_ack): Return 0 if no notification
13728 matches.
13729
ebcf782c
DE
137302013-11-20 Doug Evans <dje@google.com>
13731
13732 * linux-low.c (linux_set_resume_request): Fix comment.
13733
20ad9378
DE
137342013-11-20 Doug Evans <dje@google.com>
13735
13736 * linux-low.c (resume_status_pending_p): Tweak comment.
13737
a196ebeb
WT
137382013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13739
13740 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13741 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13742 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13743 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13744 (srv_amd64_regobj): Add amd64-mpx.o.
13745 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13746 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13747 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13748 * i387-fp.c (num_pl_bnd_register) Added constant.
13749 (num_pl_bnd_cfg_registers) Added constant.
13750 (struct i387_xsave) Added reserved area and MPX fields.
13751 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13752 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13753 function.
13754 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13755 (init_registers_amd64_mpx_linux): Declare new function.
13756 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13757 (x86_64_regmap): Add MPX registers.
13758 (x86_linux_read_description): Add MPX case.
13759 (initialize_low_arch): Initialize MPX targets.
13760
0080a2f6
TT
137612013-11-18 Tom Tromey <tromey@redhat.com>
13762
13763 * configure: Rebuild.
13764 * configure.ac: Don't check for stdlib.h.
13765 * gdbreplay.c: Unconditionally include stdlib.h.
13766
2978b111
TT
137672013-11-18 Tom Tromey <tromey@redhat.com>
13768
13769 * config.in: Rebuild.
13770 * configure: Rebuild.
13771 * configure.ac: Don't use AC_HEADER_DIRENT.
13772
a3d08894
TT
137732013-11-18 Tom Tromey <tromey@redhat.com>
13774
13775 * server.h: Don't check HAVE_STRING_H.
13776 * gdbreplay.c: Don't check HAVE_STRING_H.
13777 * configure: Rebuild.
13778
0a5dd17d
TT
137792013-11-18 Tom Tromey <tromey@redhat.com>
13780
13781 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13782 LIBGNU.
13783
1bd2f0ba
TT
137842013-11-08 Tom Tromey <tromey@redhat.com>
13785
13786 * configure, config.in: Rebuild.
13787 * configure.ac: Remove unused configury.
13788
3266f10b
TT
137892013-11-08 Tom Tromey <tromey@redhat.com>
13790
13791 * acinclude.m4: Include common.m4, codeset.m4.
13792 * configure, config.in: Rebuild.
13793 * configure.ac: Use GDB_AC_COMMON.
13794
6682d959
AA
137952013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13796
13797 * linux-s390-low.c (HWCAP_S390_TE): New define.
13798 (s390_arch_setup): Consider the TE field in the HWCAP for
13799 determining 'have_regset_tdb'.
13800
fd0a4d76
SDJ
138012013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13802
13803 PR gdb/16014
13804 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13805 call to sizeof.
13806
1a3d890b
PA
138072013-10-02 Pedro Alves <palves@redhat.com>
13808
13809 * server.c (process_serial_event): Don't output "GDBserver
13810 exiting" if GDB is connected through stdio.
13811 * target.c (mywait): Likewise, be silent if GDB is connected
13812 through stdio.
13813
97ad4581
JB
138142013-10-01 Joel Brobecker <brobecker@adacore.com>
13815
13816 * lynx-low.c (lynx_add_threads_after_attach): New function.
13817 (lynx_attach): Remove call to add_thread. Add call to
13818 lynx_add_threads_after_attach instead.
13819
5b4e221c
MF
138202013-09-28 Mike Frysinger <vapier@gentoo.org>
13821
13822 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13823 * config.in, configure: Regenerated.
13824
ee47b2f8
YQ
138252013-09-18 Yao Qi <yao@codesourcery.com>
13826
13827 PR server/15959
13828 * server.c (start_inferior): Clear 'resume_info'.
13829
d6707650 138302013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13831
d6707650
JW
13832 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13833 for each register.
13834
9243dd0e 138352013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 13836
9243dd0e
JW
13837 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13838 linux-tile-low.o to srv_tgtobj.
13839
c623a6ef
WN
138402013-09-16 Will Newton <will.newton@linaro.org>
13841
13842 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13843 out regs.
13844
fb71d39e
PA
138452013-09-06 Pedro Alves <palves@redhat.com>
13846
13847 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13848 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13849 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13850 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13851 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13852 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13853
8e7e9910
PA
138542013-09-06 Pedro Alves <palves@redhat.com>
13855
13856 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13857 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13858
7c3a12ca
PA
138592013-09-06 Pedro Alves <palves@redhat.com>
13860
13861 * linux-amd64-ipa.c: Include tracepoint.h.
13862 * linux-i386-ipa.c: Include tracepoint.h.
13863
8eb3d7b6
RW
138642013-09-06 Ricard Wanderlof <ricardw@axis.com>
13865
13866 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13867 (ps_get_thread_area): New function.
13868
eddddb9d
RW
138692013-09-06 Ricard Wanderlof <ricardw@axis.com>
13870
13871 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13872 (initialize_low_arch): Call init_registers_crisv32 rather than
13873 init_register_crisv32.
13874
533b0600
PA
138752013-09-05 Pedro Alves <palves@redhat.com>
13876
13877 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13878 to ...
13879 * hostio.h: ... this new file.
13880 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13881 win32-low.c: Include hostio.h.
13882
0ce3d3b5
PA
138832013-09-05 Pedro Alves <palves@redhat.com>
13884
13885 * server.h (gdb_client_data, handler_func, callback_handler_func)
13886 (delete_file_handler, add_file_handler, append_callback_event)
13887 (delete_callback_event, start_event_loop, initialize_event_loop):
13888 Move to event-loop.h and include it.
13889 * event-loop.h: New file.
13890
799cdc37
PA
138912013-09-05 Pedro Alves <palves@redhat.com>
13892
13893 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13894 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13895 (loaded_dll, unloaded_dll): Move to ...
13896 * dll.h: ... this new file.
13897 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13898
6a6bbd9d
PA
138992013-09-05 Pedro Alves <palves@redhat.com>
13900
13901 * server.h (current_process, get_thread_process, all_processes)
13902 (add_inferior_to_list, for_each_inferior, current_inferior)
13903 (remove_inferior, add_process, remove_process, find_process_pid)
13904 (have_started_inferiors_p, have_attached_inferiors_p)
13905 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13906 (clear_inferiors, find_inferior, find_inferior_id)
13907 (inferior_target_data, set_inferior_target_data)
13908 (inferior_regcache_data, set_inferior_regcache_data): Move to
13909 inferiors.h, and include it.
13910 * inferiors.h: New file.
13911
f699aaba
PA
139122013-09-05 Pedro Alves <palves@redhat.com>
13913
13914 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13915 Move ...
72f4393d 13916 * ax.h: ... here.
f699aaba 13917
c144c7a0
PA
139182013-09-05 Pedro Alves <palves@redhat.com>
13919
13920 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13921 tracepoint.h.
13922 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13923 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13924 (handle_tracepoint_general_set, handle_tracepoint_query)
13925 (tracepoint_finished_step, tracepoint_was_hit)
13926 (release_while_stepping_state_list, current_traceframe)
13927 (in_readonly_region, traceframe_read_mem)
13928 (fetch_traceframe_registers, traceframe_read_sdata)
13929 (traceframe_read_info, struct fast_tpoint_collect_status)
13930 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13931 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13932 (supply_fast_tracepoint_registers)
13933 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13934 (ipa_tdesc, claim_trampoline_space)
13935 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13936 (agent_mem_read, agent_get_trace_state_variable_value)
13937 (agent_set_trace_state_variable_value, agent_tsv_read)
13938 (agent_mem_read_string, get_raw_reg_func_addr)
13939 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13940 * tracepoint.h: ... this new file.
13941
ff42e6ab
PA
139422013-09-05 Pedro Alves <palves@redhat.com>
13943
13944 * server.h (perror_with_name, error, fatal, warning, paddress)
13945 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13946 include it.
13947 * utils.h: New file.
13948
541af0f4
PA
139492013-09-05 Pedro Alves <palves@redhat.com>
13950
13951 * server.h (remote_debug, noack_mode, transport_is_reliable)
13952 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13953 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13954 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13955 (write_enn, initialize_async_io, enable_async_io)
13956 (disable_async_io, check_remote_input_interrupt_request)
13957 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13958 (dead_thread_notify, prepare_resume_reply)
13959 (decode_address_to_semicolon, decode_address, decode_m_packet)
13960 (decode_M_packet, decode_X_packet, decode_xfer_write)
13961 (decode_search_memory_packet, unhexify, hexify)
13962 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13963 (look_up_one_symbol, relocate_instruction)
13964 (monitor_output): Move to remote-utils.h, and include it.
13965 * remote-utils.h: New file.
13966
eebdf26b
PA
139672013-09-05 Pedro Alves <palves@redhat.com>
13968
13969 * server.h (_): Delete.
13970
3aafd2ff
PA
139712013-09-02 Pedro Alves <palves@redhat.com>
13972
13973 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13974 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13975 allocated.
13976 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13977
cee83bcb
PM
139782013-09-02 Pierre Muller <muller@sourceware.org>
13979
13980 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13981 or WriteProcessMemory complete successfully and handle
13982 ERROR_PARTIAL_COPY error.
13983
9a13b2fa
PA
139842013-09-02 Pedro Alves <palves@redhat.com>
13985
13986 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13987 error instead of EIO.
13988
602e3198
JK
139892013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13990
13991 PR server/15604
13992 * linux-low.c: Include filestuff.h.
13993 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13994 * lynx-low.c: Include filestuff.h.
13995 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13996 * server.c: Include filestuff.h.
13997 (main): Call notice_open_fds.
13998 * spu-low.c: Include filestuff.h.
13999 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14000
96d7229d
LM
140012013-08-22 Luis Machado <lgustavo@codesourcery.com>
14002
14003 * Makefile.in: Explain why ../target and ../nat are not
14004 listed as include file search paths.
14005 (linux-waitpid.o): New object file rule.
14006 * configure.srv (srv_native_linux_obj): New variable.
14007 Replace all occurrences of linux native object files with
14008 $srv_native_linux_obj.
14009 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14010 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14011 (linux_enable_event_reporting): Remove declaration.
14012 (my_waitpid): Moved to common/linux-waitpid.c.
14013 (linux_wait_for_event): Pass ptid when calling
14014 linux_enable_event_reporting.
14015 (linux_supports_tracefork_flag): Remove.
14016 (linux_enable_event_reporting): Likewise.
14017 (linux_tracefork_grandchild): Remove.
14018 (STACK_SIZE): Moved to common/linux-ptrace.c.
14019 (linux_tracefork_child): Remove.
14020 (linux_test_for_tracefork): Remove.
14021 (linux_look_up_symbols): Call linux_supports_traceclone.
14022 (initialize_low): Remove call to linux_test_for_tracefork.
14023 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14024 common/linux-ptrace.h.
14025 (PTRACE_TYPE_ARG4): Likewise.
14026 Include linux-ptrace.h.
14027
32940073
PA
140282013-08-21 Pedro Alves <palves@redhat.com>
14029
14030 * config.in: Renegerate.
14031
33b60d58 140322013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 14033
33b60d58
LM
14034 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14035 (SFILES): Remove $(srcdir)/common/target-common.c and
14036 add $(srcdir)/target/waitstatus.c.
14037 (OBS): Remove target-common.o and add waitstatus.o.
14038 (server_h): Remove $(srcdir)/../common/target-common.h and
14039 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14040 and $(srcdir)/../target/waitstatus.h.
14041 (target-common.o): Remove.
14042 (waitstatus.o): New target object file.
14043 * target.h: Do not include target-common.h and
14044 include target/resume.h, target/wait.h and
14045 target/waitstatus.h.
14046
b8e1b30e
LM
140472013-08-13 Luis Machado <lgustavo@codesourcery.com>
14048
14049 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14050 to PTRACE_TYPE_ARG3.
14051 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14052 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14053 PTRACE_TYPE_ARG4.
14054 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14055 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14056
7a60ad40
YQ
140572013-07-27 Jie Zhang <jie@codesourcery.com>
14058 Daniel Jacobowitz <dan@codesourcery.com>
14059 Yao Qi <yao@codesourcery.com>
14060
14061 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14062 (mips-linux-watch.o): New rule.
14063 (mips_linux_watch_h): New variable.
14064 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14065 srv_tgtobj.
14066 * linux-mips-low.c: Include mips-linux-watch.h.
14067 (struct arch_process_info, struct arch_lwp_info): New.
14068 (update_watch_registers_callback): New function.
14069 (mips_linux_new_process, mips_linux_new_thread) New functions.
14070 (mips_linux_prepare_to_resume, mips_insert_point): New
14071 functions.
14072 (mips_remove_point, mips_stopped_by_watchpoint): New
14073 functions.
14074 (rsp_bp_type_to_target_hw_bp_type): New function.
14075 (mips_stopped_data_address): New function.
14076 (the_low_target): Add watchpoint support functions.
14077
de6f69ad
YQ
140782013-07-27 Yao Qi <yao@codesourcery.com>
14079
14080 * i386-low.c: Include break-common.h.
14081 (enum target_hw_bp_type): Remove.
14082
3360c0bf
LM
140832013-07-24 Luis Machado <lgustavo@codesourcery.com>
14084
14085 * Makefile.in (SFILES): /common/target-common.c.
14086 (OBS): Add target-common.o.
14087 (server_h): Add $(srcdir)/../common/target-common.h.
14088 (target-common.o): New target.
14089 * server.c (queue_stop_reply_callback): Free
14090 status string after use.
14091 * target.c (target_waitstatus_to_string): Remove.
14092 * target.h: Include target-common.h.
14093 (resume_kind): Likewise.
14094 (target_waitkind): Likewise.
14095 (target_waitstatus): Likewise.
14096 (TARGET_WNOHANG): Likewise.
14097
bd885420
YQ
140982013-07-04 Yao Qi <yao@codesourcery.com>
14099
14100 * Makefile.in (host_alias): Use @host_noncanonical@.
14101 (target_alias): Use @target_noncanonical@.
14102 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14103 ACX_NONCANONICAL_HOST.
14104 * configure: Regenerated.
14105
14106 Revert:
14107 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14108
14109 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14110 * configure: Rebuild.
14111 * Makefile.in (version_host, version_target): Get from configure.
14112 (version.c): Use $(version_host) and $(version_target).
14113
17ef446e
PA
141142013-07-03 Pedro Alves <palves@redhat.com>
14115
14116 * Makefile.in (config.status): Depend on development.sh.
14117 * acinclude.m4: Include libmcheck.m4.
14118 * configure: Regenerate.
14119
7a9a7487
MG
141202013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14121
14122 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14123 attribute inside the parentheses.
14124 (winapi_DebugSetProcessKillOnExit): Ditto.
14125 (winapi_DebugBreakProcess): Ditto.
14126 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 14127
49b64de6
MG
141282013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14129
14130 * notif.h (notif_event): Add a dummy member to avoid compiler
14131 errors.
14132
d5749ee7
PA
141332013-07-01 Pedro Alves <palves@redhat.com>
14134
14135 * hostio.c (HOSTIO_PATH_MAX): Define.
14136 (require_filename, handle_open, handle_unlink, handle_readlink):
14137 Use it.
14138
d8d2a3ee
PA
141392013-07-01 Pedro Alves <palves@redhat.com>
14140
14141 * server.h: Include "pathmax.h".
14142 * linux-low.c: Don't include sys/param.h.
14143 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14144 MAXPATHLEN.
14145 * win32-low.c: Don't include sys/param.h.
14146 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14147
bc7dea8d
PA
141482013-07-01 Pedro Alves <palves@redhat.com>
14149
14150 * event-loop.c: Don't check HAVE_UNISTD_H before including
14151 <unistd.h>.
14152 * gdbreplay.c: Likewise.
14153 * remote-utils.c: Likewise.
14154 * server.c: Likewise.
14155 * configure.ac: Don't check for unistd.h.
14156 * configure: Regenerate.
14157
d6c2da54
TT
141582013-06-28 Tom Tromey <tromey@redhat.com>
14159
14160 * Makefile.in (version.c): Use version.in, not
14161 common/version.in.
14162
257b6bec
MG
141632013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14164
14165 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14166 * configure: Rebuild.
14167 * Makefile.in (version_host, version_target): Get from configure.
14168 (version.c): Use $(version_host) and $(version_target).
14169
86ebe149
DK
141702013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14171
14172 Fix trace-status to output user name without trailing colon.
14173 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14174
f30aa5af
DK
141752013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14176
14177 Fix trace-status to output proper start-time and stop-time.
14178 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14179 output start time and stop time in hex as gdb expects.
14180
28a93511
YQ
141812013-06-26 Pedro Alves <pedro@codesourcery.com>
14182
14183 * tracepoint.c (build_traceframe_info_xml): Output trace state
14184 variables present in the trace buffer.
14185
01208463
TT
141862013-06-24 Tom Tromey <tromey@redhat.com>
14187
14188 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14189 create-version.sh.
14190 (version.o): Remove.
14191 * gdbreplay.c: Include version.h.
14192 (version, host_name): Don't declare.
14193 * server.h: Include version.h.
14194 (version, host_name): Don't declare.
14195
760256f9
PA
141962013-06-12 Pedro Alves <palves@redhat.com>
14197
14198 * linux-x86-low.c (linux_is_elf64): Delete global.
14199 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14200 with local linux_pid_exe_is_elf_64_file use.
14201
030031ee
PA
142022013-06-11 Pedro Alves <palves@redhat.com>
14203
14204 * linux-low.c (regset_disabled, disable_regset): New functions.
14205 (regsets_fetch_inferior_registers)
14206 (regsets_store_inferior_registers): Use them.
14207 (initialize_regsets_info); Don't allocate the disabled_regsets
14208 array here.
14209 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14210 comment.
14211
5da6eb0a
PA
142122013-06-11 Pedro Alves <palves@redhat.com>
14213
14214 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14215 xmalloc.
14216
7e5aaa09
PA
142172013-06-11 Pedro Alves <palves@redhat.com>
14218
14219 * linux-x86-low.c (initialize_low_arch): Call
14220 init_registers_x32_avx_linux.
14221
d878444c
JK
142222013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14223
14224 Fix compatibility with Android Bionic.
14225 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14226 it is not empty.
14227
3aee8918
PA
142282013-06-07 Pedro Alves <palves@redhat.com>
14229
5f2b57b5 14230 PR server/14823
3aee8918
PA
14231 * Makefile.in (OBS): Add tdesc.o.
14232 (IPA_OBJS): Add tdesc-ipa.o.
14233 (tdesc-ipa.o): New rule.
14234 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14235 interface.
14236 * linux-low.c (new_inferior): Delete.
14237 (disabled_regsets, num_regsets): Delete.
14238 (linux_add_process): Adjust to set the new per-process
14239 new_inferior flag.
14240 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14241 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14242 was a stop. When calling arch_setup, switch the current inferior
14243 to the thread that got an event.
14244 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14245 (regsets_fetch_inferior_registers)
14246 (regsets_store_inferior_registers): New regsets_info parameter.
14247 Adjust to use it.
14248 (linux_register_in_regsets): New regs_info parameter. Adjust to
14249 use it.
14250 (register_addr, fetch_register, store_register): New usrregs_info
14251 parameter. Adjust to use it.
14252 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14253 parameter regs_info. Adjust to use it.
14254 (linux_fetch_registers): Get the current inferior's regs_info, and
14255 adjust to use it.
14256 (linux_store_registers): Ditto.
14257 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14258 (initialize_low): Don't initialize the target_regsets here. Call
14259 initialize_low_arch.
14260 * linux-low.h (target_regsets): Delete declaration.
14261 (struct regsets_info): New.
14262 (struct usrregs_info): New.
14263 (struct regs_info): New.
14264 (struct process_info_private) <new_inferior>: New field.
14265 (struct linux_target_ops): Delete the num_regs, regmap, and
14266 regset_bitmap fields. New field regs_info.
14267 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14268 * i387-fp.c (num_xmm_registers): Delete.
14269 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14270 calls to new interface.
14271 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14272 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14273 Infer the number of xmm registers from the regcache's target
14274 description.
14275 * i387-fp.h (num_xmm_registers): Delete.
14276 * inferiors.c (add_thread): Don't install the thread's regcache
14277 here.
14278 * proc-service.c (gregset_info): Fetch the current inferior's
14279 regs_info. Adjust to use it.
14280 * regcache.c: Include tdesc.h.
14281 (register_bytes, reg_defs, num_registers)
14282 (gdbserver_expedite_regs): Delete.
14283 (get_thread_regcache): If the thread doesn't have a regcache yet,
14284 create one, instead of aborting gdbserver.
14285 (regcache_invalidate_one): Rename to ...
14286 (regcache_invalidate_thread): ... this.
14287 (regcache_invalidate_one): New.
14288 (regcache_invalidate): Only invalidate registers of the current
14289 process.
14290 (init_register_cache): Add target_desc parameter, and use it.
14291 (new_register_cache): Ditto. Assert the target description has a
14292 non zero registers_size.
14293 (regcache_cpy): Add assertions. Adjust.
14294 (realloc_register_cache, set_register_cache): Delete.
14295 (registers_to_string, registers_from_string): Adjust.
14296 (find_register_by_name, find_regno, find_register_by_number)
14297 (register_cache_size): Add target_desc parameter, and use it.
14298 (free_register_cache_thread, free_register_cache_thread_one)
14299 (regcache_release, register_cache_size): New.
14300 (register_size): Add target_desc parameter, and use it.
14301 (register_data, supply_register, supply_register_zeroed)
14302 (supply_regblock, supply_register_by_name, collect_register)
14303 (collect_register_as_string, collect_register_by_name): Adjust.
14304 * regcache.h (struct target_desc): Forward declare.
14305 (struct regcache) <tdesc>: New field.
14306 (init_register_cache, new_register_cache): Add target_desc
14307 parameter.
14308 (regcache_invalidate_thread): Declare.
14309 (regcache_invalidate_one): Delete declaration.
14310 (regcache_release): Declare.
14311 (find_register_by_number, register_cache_size, register_size)
14312 (find_regno): Add target_desc parameter.
14313 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14314 declarations.
14315 * remote-utils.c: Include tdesc.h.
14316 (outreg, prepare_resume_reply): Adjust.
14317 * server.c: Include tdesc.h.
14318 (gdbserver_xmltarget): Delete declaration.
14319 (get_features_xml, process_serial_event): Adjust.
14320 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14321 declare.
14322 (struct process_info) <tdesc>: New field.
14323 (ipa_tdesc): Declare.
14324 * tdesc.c: New file.
14325 * tdesc.h: New file.
14326 * tracepoint.c: Include tdesc.h.
14327 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14328 (get_context_regcache): Adjust to pass ipa_tdesc down.
14329 (do_action_at_tracepoint): Adjust to get the register cache size
14330 from the context regcache's description.
14331 (traceframe_walk_blocks): Adjust to get the register cache size
14332 from the current trace frame's description.
14333 (traceframe_get_pc): Adjust to get current trace frame's
14334 description and pass it down.
14335 (gdb_collect): Adjust to get the register cache size from the
14336 IPA's description.
14337 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14338 (gdbserver_xmltarget): Delete.
14339 (initialize_low_tracepoint): Set the ipa's target description.
14340 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14341 (initialize_low_tracepoint): Set the ipa's target description.
14342 * linux-x86-low.c: Include tdesc.h.
14343 [__x86_64__] (is_64bit_tdesc): New.
14344 (ps_get_thread_area, x86_get_thread_area): Use it.
14345 (i386_cannot_store_register): Rename to ...
14346 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14347 (i386_cannot_fetch_register): Rename to ...
14348 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14349 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14350 to new interface.
14351 (target_regsets): Rename to ...
14352 (x86_regsets): ... this.
14353 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14354 interface.
14355 (x86_siginfo_fixup): Use is_64bit_tdesc.
14356 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14357 (tdesc_x32_avx_linux, tdesc_x32_linux)
14358 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14359 Declare.
14360 (x86_linux_update_xmltarget): Delete.
14361 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14362 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14363 (AMD64_LINUX_USER64_CS): New.
14364 (x86_linux_read_description): New, based on
14365 x86_linux_update_xmltarget.
14366 (same_process_callback): New.
14367 (x86_arch_setup_process_callback): New.
14368 (x86_linux_update_xmltarget): New.
14369 (x86_regsets_info): New.
14370 (amd64_linux_regs_info): New.
14371 (i386_linux_usrregs_info): New.
14372 (i386_linux_regs_info): New.
14373 (x86_linux_regs_info): New.
14374 (x86_arch_setup): Reimplement.
14375 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14376 (x86_emit_ops): Ditto.
14377 (the_low_target): Adjust. Install x86_linux_regs_info,
14378 x86_cannot_fetch_register, and x86_cannot_store_register.
14379 (initialize_low_arch): New.
14380 * linux-ia64-low.c (tdesc_ia64): Declare.
14381 (ia64_fetch_register): Adjust.
14382 (ia64_usrregs_info, regs_info): New globals.
14383 (ia64_regs_info): New function.
14384 (the_low_target): Adjust.
14385 (initialize_low_arch): New function.
14386 * linux-sparc-low.c (tdesc_sparc64): Declare.
14387 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14388 Adjust.
14389 (sparc_arch_setup): New function.
14390 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14391 (the_low_target): Adjust.
14392 (initialize_low_arch): New function.
14393 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14394 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14395 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14396 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14397 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14398 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14399 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14400 (tdesc_powerpc_isa205_vsx64l): Declare.
14401 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14402 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14403 (ppc_set_pc, ppc_get_hwcap): Adjust.
14404 (ppc_usrregs_info): Forward declare.
14405 (!__powerpc64__) ppc_regmap_adjusted: New global.
14406 (ppc_arch_setup): Adjust to the current process'es target
14407 description.
14408 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14409 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14410 (ppc_store_evrregset): Adjust.
14411 (target_regsets): Rename to ...
14412 (ppc_regsets): ... this, and make static.
14413 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14414 (ppc_regs_info): New function.
14415 (the_low_target): Adjust.
14416 (initialize_low_arch): New function.
14417 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14418 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14419 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14420 (tdesc_s390x_linux64v2): Declare.
14421 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14422 (s390_fill_gregset, s390_store_last_break): Adjust.
14423 (target_regsets): Rename to ...
14424 (s390_regsets): ... this, and make static.
14425 (s390_get_pc, s390_set_pc): Adjust.
14426 (s390_get_hwcap): New target_desc parameter, and use it.
14427 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14428 (s390_arch_setup): Adjust to set the current process'es target
14429 description. Don't adjust the regmap.
14430 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14431 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14432 (regs_info_3264): New globals.
14433 (s390_regs_info): New function.
14434 (the_low_target): Adjust.
14435 (initialize_low_arch): New function.
14436 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14437 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14438 [__mips64] (init_registers_mips_linux)
14439 (init_registers_mips_dsp_linux): Delete defines.
14440 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14441 (have_dsp): New global.
14442 (mips_read_description): New, based on mips_arch_setup.
14443 (mips_arch_setup): Reimplement.
14444 (get_usrregs_info): New function.
14445 (mips_cannot_fetch_register, mips_cannot_store_register)
14446 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14447 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14448 (target_regsets): Rename to ...
14449 (mips_regsets): ... this, and make static.
14450 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14451 (dsp_regs_info, regs_info): New globals.
14452 (mips_regs_info): New function.
14453 (the_low_target): Adjust.
14454 (initialize_low_arch): New function.
14455 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14456 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14457 Declare.
14458 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14459 (arm_read_description): New, with bits factored from
14460 arm_arch_setup.
14461 (arm_arch_setup): Reimplement.
14462 (target_regsets): Rename to ...
14463 (arm_regsets): ... this, and make static.
14464 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14465 (arm_regs_info): New function.
14466 (the_low_target): Adjust.
14467 (initialize_low_arch): New function.
14468 * linux-m68k-low.c (tdesc_m68k): Declare.
14469 (target_regsets): Rename to ...
14470 (m68k_regsets): ... this, and make static.
14471 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14472 (m68k_regs_info): New function.
14473 (m68k_arch_setup): New function.
14474 (the_low_target): Adjust.
14475 (initialize_low_arch): New function.
14476 * linux-sh-low.c (tdesc_sharch): Declare.
14477 (target_regsets): Rename to ...
14478 (sh_regsets): ... this, and make static.
14479 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14480 (sh_regs_info, sh_arch_setup): New functions.
14481 (the_low_target): Adjust.
14482 (initialize_low_arch): New function.
14483 * linux-bfin-low.c (tdesc_bfin): Declare.
14484 (bfin_arch_setup): New function.
14485 (bfin_usrregs_info, regs_info): New globals.
14486 (bfin_regs_info): New function.
14487 (the_low_target): Adjust.
14488 (initialize_low_arch): New function.
14489 * linux-cris-low.c (tdesc_cris): Declare.
14490 (cris_arch_setup): New function.
14491 (cris_usrregs_info, regs_info): New globals.
14492 (cris_regs_info): New function.
14493 (the_low_target): Adjust.
14494 (initialize_low_arch): New function.
14495 * linux-cris-low.c (tdesc_crisv32): Declare.
14496 (cris_arch_setup): New function.
14497 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14498 (cris_regs_info): New function.
14499 (the_low_target): Adjust.
14500 (initialize_low_arch): New function.
14501 * linux-m32r-low.c (tdesc_m32r): Declare.
14502 (m32r_arch_setup): New function.
14503 (m32r_usrregs_info, regs_info): New globals.
14504 (m32r_regs_info): Adjust.
14505 (initialize_low_arch): New function.
14506 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14507 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14508 (tic6x_usrregs_info): Forward declare.
14509 (tic6x_read_description): New function, based on ...
14510 (tic6x_arch_setup): ... this. Reimplement.
14511 (target_regsets): Rename to ...
14512 (tic6x_regsets): ... this, and make static.
14513 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14514 (tic6x_regs_info): New function.
14515 (the_low_target): Adjust.
14516 (initialize_low_arch): New function.
14517 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14518 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14519 (target_regsets): Rename to ...
14520 (xtensa_regsets): ... this, and make static.
14521 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14522 globals.
14523 (xtensa_arch_setup, xtensa_regs_info): New functions.
14524 (the_low_target): Adjust.
14525 (initialize_low_arch): New function.
14526 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14527 (nios2_arch_setup): Set the current process'es tdesc.
14528 (target_regsets): Rename to ...
14529 (nios2_regsets): ... this.
14530 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14531 (nios2_regs_info): New function.
14532 (the_low_target): Adjust.
14533 (initialize_low_arch): New function.
a261b8f5
PA
14534 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14535 (aarch64_arch_setup): Set the current process'es tdesc.
14536 (target_regsets): Rename to ...
14537 (aarch64_regsets): ... this.
14538 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14539 (aarch64_regs_info): New function.
14540 (the_low_target): Adjust.
14541 (initialize_low_arch): New function.
3aee8918
PA
14542 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14543 globals.
14544 (target_regsets): Rename to ...
14545 (tile_regsets): ... this.
14546 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14547 (tile_regs_info): New function.
14548 (tile_arch_setup): Set the current process'es tdesc.
14549 (the_low_target): Adjust.
14550 (initialize_low_arch): New function.
14551 * spu-low.c (tdesc_spu): Declare.
14552 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14553 * win32-arm-low.c (tdesc_arm): Declare.
14554 (arm_arch_setup): New function.
14555 (the_low_target): Install arm_arch_setup instead of
14556 init_registers_arm.
14557 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14558 (init_windows_x86): Rename to ...
14559 (i386_arch_setup): ... this. Set `win32_tdesc'.
14560 (the_low_target): Adjust.
14561 * win32-low.c (win32_tdesc): New global.
14562 (child_add_thread): Don't create the thread cache here.
14563 (do_initial_child_stuff): Set the new process'es tdesc.
14564 * win32-low.h (struct target_desc): Forward declare.
14565 (win32_tdesc): Declare.
14566 * lynx-i386-low.c (tdesc_i386): Declare global.
14567 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14568 * lynx-low.c (lynx_tdesc): New global.
14569 (lynx_add_process): Set the new process'es tdesc.
14570 * lynx-low.h (struct target_desc): Forward declare.
14571 (lynx_tdesc): Declare global.
14572 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14573 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14574 * nto-low.c (nto_tdesc): New global.
14575 (do_attach): Set the new process'es tdesc.
14576 * nto-low.h (struct target_desc): Forward declare.
14577 (nto_tdesc): Declare.
14578 * nto-x86-low.c (tdesc_i386): Declare.
14579 (nto_x86_arch_setup): Set `nto_tdesc'.
14580
b1fbec62
GB
145812013-06-04 Gary Benson <gbenson@redhat.com>
14582
14583 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14584 to qSupported response when appropriate.
14585 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14586 with nonzero-length annex.
14587 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14588 arguments supplied in annex.
14589
d1ec4ce7
DE
145902013-05-31 Doug Evans <dje@google.com>
14591
ac44adcb 14592 PR server/15594
d1ec4ce7
DE
14593 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14594 64 bits in 64-cross-32 environment.
14595
9b25f2d3
PA
145962013-05-28 Pedro Alves <palves@redhat.com>
14597
14598 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14599 (aarch64-without-fpu.c): Delete rule.
14600 * configure.srv (aarch64*-*-linux*): Remove references to
14601 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14602 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14603 declaration.
14604
6740dc9c
PA
146052013-05-24 Pedro Alves <palves@redhat.com>
14606
14607 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14608 instead of strchr/decode_address. Error if the range isn't split
14609 with a ','. Don't assume there's be a ':' in the action.
14610
c2d6af84
PA
146112013-05-23 Yao Qi <yao@codesourcery.com>
14612 Pedro Alves <palves@redhat.com>
14613
14614 * linux-low.c (lwp_in_step_range): New function.
14615 (linux_wait_1): If the thread was range stepping and stopped
14616 outside the stepping range, report the stop to GDB. Otherwise,
14617 continue stepping. Add range stepping debug output.
14618 (linux_set_resume_request): Copy the step range from the resume
14619 request to the lwp.
14620 (linux_supports_range_stepping): New.
14621 (linux_target_ops) <supports_range_stepping>: Set to
14622 linux_supports_range_stepping.
14623 * linux-low.h (struct linux_target_ops)
14624 <supports_range_stepping>: New field.
14625 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14626 * linux-x86-low.c (x86_supports_range_stepping): New.
14627 (the_low_target) <supports_range_stepping>: Set to
14628 x86_supports_range_stepping.
14629 * server.c (handle_v_cont): Handle 'r' action.
14630 (handle_v_requests): Append ";r" if the target supports range
14631 stepping.
14632 * target.h (struct thread_resume) <step_range_start,
14633 step_range_end>: New fields.
14634 (struct target_ops) <supports_range_stepping>:
14635 New field.
14636 (target_supports_range_stepping): New macro.
14637
58794e1a
JB
146382013-05-17 Joel Brobecker <brobecker@adacore.com>
14639
14640 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14641 confusion in comment.
14642
d631c5a7
JB
146432013-05-17 Joel Brobecker <brobecker@adacore.com>
14644
14645 * lynx-low.c (struct process_info_private): New type.
14646 (lynx_add_process): New function.
14647 (lynx_create_inferior, lynx_attach): Replace calls to
14648 add_process by calls to lynx_add_process.
14649 (lynx_resume): If PTID is null, then try using
14650 current_process()->private->last_wait_event_ptid.
14651 Add comments.
14652 (lynx_clear_inferiors): Delete. The contents of that function
14653 has been inlined in lynx_mourn;
14654 (lynx_wait_1): Save the ptid in the process's private data.
14655 (lynx_mourn): Free the process' private data. Replace call
14656 to lynx_clear_inferiors by call to clear_inferiors.
14657
96f7a20f
YQ
146582013-05-17 Yao Qi <yao@codesourcery.com>
14659
14660 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14661 the right place.
14662
db0dfaa0
LM
146632013-05-16 Luis Machado <lgustavo@codesourcery.com>
14664
14665 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14666 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14667 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14668 PT_TEXT_END_ADDR guards. Update comments.
14669 (linux_target_op) <read_offsets>: Conditionally define to
14670 linux_read_offsets if the target is UCLIBC and if it defines
14671 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14672
68f5f838
SL
146732013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14674 Andrew Jenner <andrew@codesourcery.com>
14675
14676 * Makefile.in (SFILES): Add linux-nios2-low.c.
14677 (clean): Add action to delete nios2-linux.c.
14678 (nios2-linux.c): New rule.
14679 * configure.srv: Add nios2*-*-linux*.
14680 * linux-nios2-low.c: New.
14681
1ebff1fd
HAQ
146822013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14683
14684 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14685
f6150862
HZ
146862013-04-25 Hui Zhu <hui@codesourcery.com>
14687
14688 PR gdb/15186
f6150862
HZ
14689 * ax.c (ax_printf): Add fflush.
14690
614c279d
TT
146912013-04-22 Tom Tromey <tromey@redhat.com>
14692
14693 * Makefile.in (SFILES): Add filestuff.c.
14694 (OBS): Add filestuff.o.
14695 (filestuff.o): New target.
14696 * config.in, configure: Rebuild.
14697 * configure.ac: Check for fdwalk, pipe2.
14698
7d4e5717
PA
146992013-04-17 Pedro Alves <palves@redhat.com>
14700
14701 * configure.ac (USE_THREAD_DB): Delete variable.
14702 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14703 Don't AC_SUBST USE_THREAD_DB.
14704 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14705 * config.in, configure: Regenerate.
14706
d5c93e41
PA
147072013-04-16 Pedro Alves <palves@redhat.com>
14708
14709 * linux-low.h (struct lwp_info) <thread_known>: Move under
14710 the USE_THREAD_DB #ifdef.
14711
04f5fe89
PA
147122013-04-16 Pedro Alves <palves@redhat.com>
14713
14714 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14715 (linux-low.o): Delete rule.
14716 * linux-low.h: Always include "gdb_thread_db.h" instead of
14717 conditionally including thread_db.h.
14718 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14719 HAVE_THREAD_DB_H.
14720
480b27bf
JK
147212013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14722
14723 * Makefile.in (install-only): Fix make install regression.
14724
43662968
JK
147252013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14726
14727 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14728 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14729 installation.
14730 * gdbserver.1: Remove.
14731
3e74e146
PA
147322013-03-22 Pedro Alves <palves@redhat.com>
14733
14734 * linux-low.c (handle_extended_wait): Don't call
14735 linux_enable_event_reporting.
14736
a8347a2a
TT
147372013-03-15 Tony Theodore <tonyt@logyst.com>
14738
14739 PR build/9098:
14740 * Makefile.in (SHELL): Use @SHELL@.
14741
eeb56fa7
SDJ
147422013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14743
14744 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14745 compiler warning.
14746
4fa7e2ff
JB
147472013-03-13 Joel Brobecker <brobecker@adacore.com>
14748
14749 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14750 Remove extraneous NULL element.
14751
8ddb1965
YQ
147522013-03-13 Yao Qi <yao@codesourcery.com>
14753
14754 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14755 'V' block in trace frame.
14756
9accd112
MM
147572013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14758
14759 * target.h (struct target_ops): Add btrace ops.
14760 (target_supports_btrace): New macro.
14761 (target_enable_btrace): New macro.
14762 (target_disable_btrace): New macro.
14763 (target_read_btrace): New macro.
14764 * gdbthread.h (struct thread_info): Add btrace field.
14765 * server.c: Include btrace-common.h.
14766 (handle_btrace_general_set): New function.
14767 (handle_btrace_enable): New function.
14768 (handle_btrace_disable): New function.
14769 (handle_general_set): Call handle_btrace_general_set.
14770 (handle_qxfer_btrace): New function.
14771 (struct qxfer qxfer_packets[]): Add btrace entry.
14772 * inferiors.c (remove_thread): Disable btrace.
14773 * linux-low: Include linux-btrace.h.
14774 (linux_low_enable_btrace): New function.
14775 (linux_low_read_btrace): New function.
14776 (linux_target_ops): Add btrace ops.
14777 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14778 Add srv_linux_btrace=yes.
14779 (x86_64-*-linux*): Add linux-btrace.o.
14780 Add srv_linux_btrace=yes.
14781 * configure.ac: Define HAVE_LINUX_BTRACE.
14782 * config.in: Regenerated.
14783 * configure: Regenerated.
14784
5cc22e4c
MM
147852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14786
14787 * server.c (handle_qxfer): Preserve error message if -3 is
14788 returned.
14789 (qxfer): Document the -3 return value.
14790
7c97f91e
MM
147912013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14792
14793 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14794 (linux_btrace_h): New variable.
14795 (linux-btrace.o): New rule.
14796
be9a119c 147972013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
14798 Hafiz Abid Qadeer <abidh@codesourcery.com>
14799
14800 * tracepoint.c (trace_buffer_size): New global.
14801 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14802 (init_trace_buffer): Change to one-argument function. Allocate
14803 trace buffer memory.
14804 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14805 handle QTBuffer:size packet.
14806 (cmd_bigqtbuffer_size): New function.
14807 (initialize_tracepoint): Call init_trace_buffer with
14808 DEFAULT_TRACE_BUFFER_SIZE.
14809 * server.c (handle_query): Add QTBuffer:size in the
14810 supported packets.
14811
e64f7499
YQ
148122013-03-07 Yao Qi <yao@codesourcery.com>
14813
14814 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14815 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14816 of -1.
14817 (cmd_qtsp): Adjust condition. Do post increment.
14818 Set cur_action and cur_step_action back to 0.
14819
f0ae6fc3
PA
148202013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14821
14822 PR server/15236
14823 * linux-low.c (linux_write_memory): Return early success if LEN is
14824 zero.
14825
b5b0b0af
CV
148262013-03-05 Corinna Vinschen <vinschen@redhat.de>
14827
334ad4a8 14828 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 14829
589bc927
TT
148302013-02-28 Tom Tromey <tromey@redhat.com>
14831
14832 * configure.ac: Invoke AC_SYS_LARGEFILE.
14833 * configure, config.in: Rebuild.
14834
dfe07582
CV
148352013-02-28 Corinna Vinschen <vinschen@redhat.com>
14836
14837 * win32-low.c: Throughout, fix format strings and casts of
14838 printf-like functions to avoid type related warnings on all
14839 platforms.
14840 (get_child_debug_event): Print dwDebugEventCode as hex since
14841 that's how it's usually documented.
14842
736cd585
YQ
148432013-02-28 Yao Qi <yao@codesourcery.com>
14844
14845 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14846 pulongest.
14847
e1f58301
JW
148482013-02-27 Jiong Wang <jiwang@tilera.com>
14849
14850 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14851 (reg-tilegx32.c): New rule.
14852 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14853 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14854 different register info initializer according to elf class.
14855 (init_registers_tilgx32): New function. The tilegx32 register info
14856 initializer.
14857 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14858 (tile_store_gregset): Likewise.
14859
d171ca78
YQ
148602013-02-27 Yao Qi <yao@codesourcery.com>
14861
14862 * server.c (process_point_options): Print debug message when
14863 debug_threads is true.
14864
282bbdf3
YQ
148652013-02-26 Yao Qi <yao@codesourcery.com>
14866
14867 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14868
aca22551
PA
148692013-02-19 Pedro Alves <palves@redhat.com>
14870 Kai Tietz <ktietz@redhat.com>
14871
14872 PR gdb/15161
14873
14874 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14875 instead of strtoul to extract address from packet.
14876 (process_serial_event) <'z'>: Likewise.
14877
4f3cee1c
YQ
148782013-02-18 Yao Qi <yao@codesourcery.com>
14879
14880 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14881
8e1d55a3
PA
148822013-02-14 Pedro Alves <palves@redhat.com>
14883
14884 Plug memory leak.
14885
14886 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14887 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14888
458820da
PA
148892013-02-14 Pedro Alves <palves@redhat.com>
14890
14891 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14892
baea0dae
PA
148932013-02-14 Pedro Alves <palves@redhat.com>
14894
14895 * tracepoint.c (save_string): Delete.
14896 (add_tracepoint_action): Use savestring instead of save_string.
14897
0b1afbb3
PA
148982013-02-12 Pedro Alves <palves@redhat.com>
14899
14900 * linux-xtensa-low.c: Ditto.
14901 * xtensa-xtregs.c: Ditto.
14902
8a4ac37e
PA
149032013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14904
14905 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14906 thread_db.
14907
148de6bb
MS
149082013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14909
14910 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14911 aarch64_num_wp_regs and aarch64_num_bp_regs to
14912 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14913
55fac6e0
MS
149142013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14915
14916 * linux-aarch64-low.c (ps_get_thread_area): Replace
14917 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14918
176eb98c
MS
149192013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14920 Marcus Shawcroft <marcus.shawcroft@arm.com>
14921 Nigel Stephens <nigel.stephens@arm.com>
14922 Yufeng Zhang <yufeng.zhang@arm.com>
14923
14924 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14925 (aarch64.c, aarch64-without-fpu.c): New targets.
14926 * configure.srv (aarch64*-*-linux*): New.
14927 * linux-aarch64-low.c: New file.
14928
56f7af9c
MS
149292013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14930
43aaf8b6 14931 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
14932 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14933 (dequeue_one_deferred_signal, linux_resume_one_thread)
14934 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14935 (linux_tracefork_grandchild, linux_test_for_tracefork)
14936 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14937 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14938 where the argument is 0.
14939
60f662b0
YQ
149402013-01-25 Yao Qi <yao@codesourcery.com>
14941
14942 * event-loop.c: Include "queue.h".
14943 (gdb_event_p): New typedef.
14944 (struct gdb_event) <next_event>: Remove.
14945 (event_queue): Change to QUEUE(gdb_event_p).
14946 (async_queue_event): Remove.
14947 (gdb_event_xfree): New.
14948 (initialize_event_loop): New.
14949 (process_event): Use API from QUEUE.
14950 (wait_for_event): Likewise.
14951 * server.c (main): Call initialize_event_loop.
14952 * server.h (initialize_event_loop): Declare.
14953
5ae4861a
YQ
149542013-01-18 Yao Qi <yao@codesourcery.com>
14955
14956 * ax.h (struct eval_agent_expr_context): New.
14957 (gdb_eval_agent_expr): Update declaration.
14958 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14959 TFRAME. Add new argument CTX.
14960 * server.h (struct eval_agent_expr_context): Declare.
14961 (agent_mem_read, agent_tsv_read): Update declaration.
14962 (agent_mem_read_string): Likewise.
14963 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14964 (add_traceframe_block): Add new argument TPOINT.
14965 Increase TPOINT->traceframe_usage.
14966 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14967 eval_tracepoint_agent_expr.
14968 (condition_true_at_tracepoint): Likewise.
14969 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14970 (agent_mem_read_string, agent_tsv_read): Likewise.
14971
85e00e85
YQ
149722013-01-16 Yao Qi <yao@codesourcery.com>
14973
14974 * linux-low.c (linux_resume_one_lwp): Don't check
14975 'lwp->bp_reinsert != 0'.
14976
4039cf45
JB
149772013-01-07 Joel Brobecker <brobecker@adacore.com>
14978 Pedro Alves <palves@redhat.com>
14979
14980 * lynx-low.c (ptrace_request_to_str): Define a temporary
14981 macro and use it to simplify this function's implementation.
14982
9044dee2
JB
149832013-01-07 Joel Brobecker <brobecker@adacore.com>
14984
14985 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14986 sets errno.
14987
e6352c8f
JB
149882013-01-07 Joel Brobecker <brobecker@adacore.com>
14989
14990 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14991
50681a27
JB
149922013-01-07 Joel Brobecker <brobecker@adacore.com>
14993
14994 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14995
3f6e77ef
JB
149962013-01-07 Joel Brobecker <brobecker@adacore.com>
14997
14998 * lynx-low.c (lynx_resume): Use the resume_info parameter
14999 to determine the ptid for the lynx_ptrace call, unless
15000 it is equal to minus_one_ptid, in which case we use the
15001 ptid of the current_inferior.
15002 (lynx_wait_1): After having received a thread create/exit
15003 event, resume the inferior's execution using the signaling
15004 thread's ptid, rather than the old ptid.
15005
7fda33ae
JB
150062013-01-07 Joel Brobecker <brobecker@adacore.com>
15007
15008 * lynx-low.c (lynx_resume): Delete variable ret.
15009
b9786c74
JB
150102013-01-01 Joel Brobecker <brobecker@adacore.com>
15011
15012 * gdbreplay.c (gdbreplay_version): Update copyright year.
15013 * server.c (gdbserver_version): Likewise.
15014
8b93d60f
JB
150152012-12-17 Joel Brobecker <brobecker@adacore.com>
15016
15017 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15018 new thread.
15019
037335a7
JB
150202012-12-17 Joel Brobecker <brobecker@adacore.com>
15021
15022 * lynx-low.c (ptrace_request_to_str): Add handling for
15023 PTRACE_GETTRACESIG.
15024
52d4cbd8
JB
150252012-12-17 Joel Brobecker <brobecker@adacore.com>
15026
15027 * lynx-low.c (lynx_attach): Delete variable new_process.
15028
ab8f6ca9
JB
150292012-12-17 Joel Brobecker <brobecker@adacore.com>
15030
15031 * lynx-low.c (lynx_create_inferior): Delete variable
15032 new_process.
15033
78cbc024
JB
150342012-12-17 Joel Brobecker <brobecker@adacore.com>
15035
15036 * lynx-low.c (ptrace_request_to_str): Do not handle
15037 PTRACE_GETTHREADLIST if this macro does not exist.
15038
14a00470
YQ
150392012-12-15 Yao Qi <yao@codesourcery.com>
15040
15041 * Makefile.in (OBS): Add notif.o.
15042 * notif.c, notif.h: New.
15043 * server.c: Include "notif.h".
15044 (struct vstop_notif) <next>: Remove.
15045 <base>: New field.
15046 (queue_stop_reply): Update.
15047 (push_event, send_next_stop_reply): Remove.
15048 (discard_queued_stop_replies): Update.
15049 (notif_stop): New variable.
15050 (handle_v_stopped): Remove.
15051 (handle_v_requests): Don't call handle_v_stopped. Call
15052 handle_ack_notif instead.
15053 (queue_stop_reply_callback): Call notif_event_enque instead
15054 of queue_stop_reply.
15055 (handle_status): Don't call send_next_stop_reply, call
15056 notif_write_event instead.
15057 (kill_inferior_callback): Likewise.
15058 (detach_or_kill_inferior_callback): Likewise.
15059 (main): Call initialize_notif.
15060 (process_serial_event): Call QUEUE_is_empty.
15061 (handle_target_event): Call notif_push instead of push event.
15062 * server.h (push_event): Remove declaration.
15063
61c125b9
TT
150642012-12-10 Tom Tromey <tromey@redhat.com>
15065
15066 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15067 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15068 macros.
15069 (.c.o): Rewrite.
15070 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15071 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15072 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15073 (amd64-linux-ipa.o, ax.o): Rewrite.
15074 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15075 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15076 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15077 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15078 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15079 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15080 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15081 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15082 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15083 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15084 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15085 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15086 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15087 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15088 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15089 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15090 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15091 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15092 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15093 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15094 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15095 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15096 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15097 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15098 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15099 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15100 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15101 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15102 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15103 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15104 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15105 (reg-tilegx.o): Remove.
15106 (all_object_files): New macro.
15107 Include .deps files.
15108 * aclocal.m4, configure: Rebuild.
15109 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15110 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15111 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15112
e90e9ad9
TT
151132012-12-05 Tom Tromey <tromey@redhat.com>
15114
15115 PR gdb/14917:
15116 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15117
02d403bf 151182012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
15119
15120 * configure.ac: Check for linux/perf_event.h.
15121 * config.in: Regenerated.
15122 * configure: Regenerated.
15123
0270a750
PA
151242012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15125
15126 * hostio.c (handle_readlink): Decrease buffer size
15127 parameter passed to readlink by one byte.
15128
8c29b58e
YQ
151292012-11-26 Yao Qi <yao@codesourcery.com>
15130
15131 * configure.ac (build_warnings): Append '-Wempty-body'.
15132 * configure: Regenerated.
15133 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15134 body.
15135
8bdce1ff
PM
151362012-11-15 Pierre Muller <muller@sourceware.org>
15137
15138 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15139 * config.in: Regenerate.
15140 * configure: Regenerate.
15141 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15142 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15143 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15144 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15145 header.
15146 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15147 instead of <sys/wait.h> header.
15148 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15149
02d403bf 151502012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
15151
15152 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15153 (various make rules): Remove -DGDBSERVER
15154
fbd5db48
YQ
151552012-11-09 Yao Qi <yao@codesourcery.com>
15156
15157 * spu-low.c (current_ptid): Move it to ..
15158 * gdbthread.h: ... here. New.
15159 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15160 * server.c (myresume, process_serial_event): Likewise.
15161 * thread-db.c (thread_db_find_new_threads): Likewise.
15162 * tracepoint.c (run_inferior_command): Likewise.
15163
b3dc46ff
AB
151642012-10-01 Andrew Burgess <aburgess@broadcom.com>
15165
15166 * server.c (handle_search_memory_1): Include access length in
15167 warning message.
15168
07c04788
HPN
151692012-09-05 Michael Brandt <michael.brandt@axis.com>
15170
15171 * linux-crisv32-low.c: Fix compile errors.
15172
918d227b
YQ
151732012-09-04 Yao Qi <yao@codesourcery.com>
15174
15175 * tracepoint.c (cmd_qtsv): Adjust debug message.
15176 Don't check CUR_TPOINT.
15177
18c1b81a
YQ
151782012-08-28 Yao Qi <yao@codesourcery.com>
15179
15180 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15181 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15182 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15183 Remove declarations of xmalloc, xreallloc, xstrdup and
15184 freeargv.
15185 * Makefile.in (libiberty_h): New.
15186 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15187 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15188
dc82f37b
YQ
151892012-08-23 Yao Qi <yao@codesourcery.com>
15190
15191 * server.h: Remove declaration of 'xsnprintf'.
15192
406b1477
KS
151932012-08-22 Keith Seitz <keiths@redhat.com>
15194
15195 * server.h: Include build-gnulib-gbserver/config.h.
15196 * gdbreplay.c: Likewise.
15197
e6712ff1
DE
151982012-08-08 Doug Evans <dje@google.com>
15199
15200 * Makefile.in (SFILES): Add gdb_vecs.c.
15201 (OBS): Add gdb_vecs.o.
15202 (gdb_vecs_h, host_defs_h): New variables.
15203 (thread-db.o): Add $(gdb_vecs_h) dependency.
15204 (gdb_vecs.o): New rule.
15205 * thread-db.c: #include "gdb_vecs.h".
15206 (thread_db_load_search): Use a vector to iterate over path elements.
15207 Handle text appearing after "$pdir".
15208
15209 * configure.ac: Add check for strstr.
15210 * config.in: Regenerate.
15211 * configure: Regenerate.
15212
7c3270ae
UW
152132012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15214
15215 * hostio.c (handle_pread): If pread fails, fall back to attempting
15216 lseek/read.
15217 (handle_pwrite): Likewise for pwrite.
15218
b62e2b27
UW
152192012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15220
15221 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15222 between unsupported TYPE and unimplementable ADDR/LEN combination.
15223 (arm_insert_point): Act on new return value.
15224
78a99e91
PA
152252012-07-31 Pedro Alves <palves@redhat.com>
15226
15227 * server.c (process_point_options): Only skip tokens if we find
15228 one that is unrecognized. Don't treat 'X' specially while
15229 skipping unrecognized tokens.
15230
fcf303ab
UW
152312012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15232
15233 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15234 to 4-byte-align HW breakpoint addresses for Thumb.
15235
7255706c
YQ
152362012-07-27 Yao Qi <yao@codesourcery.com>
15237
15238 PR remote/14161.
15239
15240 * server.h: Declare gdb_agent_about_to_close.
15241 * target.c (kill_inferior): Include "agent.h".
15242 New. Send command 'kill'.
15243 * target.h (kill_inferior): Removed macro.
15244 * tracepoint.c (gdb_agent_about_to_close): New.
15245 (gdb_agent_helper_thread): Handle command 'close'.
15246 Wait endlessly until the inferior stops.
15247 Install gdb_agent_remove_socket to atexit hook.
15248 (agent_socket_name): New static variable.
15249 (gdb_agent_socket_init): Replace local variable 'name' with
15250 'agent_socket_name'.
15251 (gdb_agent_remove_socket): New.
15252
5a3f286f
YQ
152532012-07-27 Yao Qi <yao@codesourcery.com>
15254
15255 * server.c (process_point_options): Stop at 'X' when parsing.
15256
961bd387
ME
152572012-07-19 Michael Eager <eager@eagercon.com>
15258
a261b8f5 15259 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
15260 to hw_execute.
15261 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15262 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15263 hardware breakpoint.
15264
aa7c7447
JK
152652012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15266
15267 * gdbserver/linux-low.c (initialize_low): Call
15268 linux_ptrace_init_warnings.
15269
7f216e7c
DE
152702012-07-02 Doug Evans <dje@google.com>
15271
15272 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15273 pointer to int.
15274
d3ce09f5
SS
152752012-07-02 Stan Shebs <stan@codesourcery.com>
15276
15277 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15278 (ax.o): Add it to build rule.
15279 (ax-ipa.o): Ditto.
15280 (OBS): Add format.o.
15281 (IPA_OBS): Add format.o.
15282 * server.c (handle_query): Claim support for breakpoint commands.
15283 (process_point_options): Add command case.
15284 (process_serial_event): Leave running if there are printfs in
15285 effect.
15286 * mem-break.h (any_persistent_commands): Declare.
15287 (add_breakpoint_commands): Declare.
15288 (gdb_no_commands_at_breakpoint): Declare.
15289 (run_breakpoint_commands): Declare.
15290 * mem-break.c (struct point_command_list): New struct.
15291 (struct breakpoint): New field command_list.
15292 (any_persistent_commands): New function.
15293 (add_commands_to_breakpoint): New function.
15294 (add_breakpoint_commands): New function.
15295 (gdb_no_commands_at_breakpoint): New function.
15296 (run_breakpoint_commands): New function.
15297 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15298 locally.
15299 * ax.c: Include format.h.
15300 (ax_printf): New function.
15301 (gdb_eval_agent_expr): Add printf opcode.
15302
2f8f6aed
YQ
153032012-06-13 Yao Qi <yao@codesourcery.com>
15304
15305 * server.c (start_inferior): Remove duplicated writes to fields
15306 'last_resume_kind' and 'last_status' of 'current_inferior'.
15307
0c9070b3
YQ
153082012-06-12 Yao Qi <yao@codesourcery.com>
15309 Pedro Alves <palves@redhat.com>
15310
15311 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15312 comment.
15313 * server.c (handle_v_cont): Extend comment.
15314
c52daf70
YQ
153152012-06-11 Yao Qi <yao@codesourcery.com>
15316
15317 * linux-low.c (linux_attach): Add 'static'.
15318
d38bbb0a
YQ
153192012-06-06 Yao Qi <yao@codesourcery.com>
15320
15321 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15322
89dc0afd
JK
153232012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15324
15325 Fix gcc -flto compilation warning.
15326 * server.c (main): Make variable multi_mode and attach volatile.
15327
75f62ce7
TJB
153282012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15329
15330 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15331 if the platform doesn't know about it.
15332
65f479b6
PA
153332012-05-30 Jeff Kenton <jkenton@tilera.com>
15334
15335 * Makefile.in (SFILES): Add linux-tile-low.c.
15336 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15337 * configure.srv: Handle tilegx-*-linux*.
15338 * linux-tile-low.c: New file.
15339
0c5bf5a9
JK
153402012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15341
15342 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15343
a493e3e2
PA
153442012-05-24 Pedro Alves <palves@redhat.com>
15345
15346 PR gdb/7205
15347
43aaf8b6 15348 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 15349
2ea28649
PA
153502012-05-24 Pedro Alves <palves@redhat.com>
15351
15352 PR gdb/7205
15353
15354 Replace target_signal with gdb_signal throughout.
15355
8d409d16
MR
153562012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15357
15358 * linux-low.c (linux_store_registers): Avoid the copying sequence
15359 when no data has been retrieved by ptrace.
15360
23512c01
MGD
153612012-05-22 Will Deacon <will.deacon@arm.com>
15362
15363 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15364 Include asm/ptrace.h.
15365 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15366 already defined.
15367
4934b29e
MR
153682012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15369
15370 * linux-low.c (linux_store_registers): Don't re-retrieve data
15371 with ptrace that has already been obtained from /proc. Always
15372 copy any data retrieved with ptrace to the buffer supplied.
15373
bde24c0a
PA
153742012-05-11 Yao Qi <yao@codesourcery.com>
15375 Pedro Alves <palves@redhat.com>
15376
15377 * linux-low.c (enum stopping_threads_kind): New.
15378 (stopping_threads): Change type to `enum stopping_threads_kind'.
15379 (handle_extended_wait): If stopping and suspending threads, leave
15380 the new_lwp suspended too.
15381 (linux_wait_for_event): Adjust.
15382 (stop_all_lwps): Set `stopping_threads' to
15383 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15384 whether we're suspending threads or just stopping them. Assert no
15385 recursion happens.
15386
623b6bdf
YQ
153872012-04-29 Yao Qi <yao@codesourcery.com>
15388
15389 * server.h: Move some code to ...
15390 * gdbthread.h: ... here. New.
15391 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15392 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15393 (nto-low.o, win32-low.o): Likewise.
15394 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15395 * regcache.c, remote-utils.c, server.c: Likewise.
15396 * target.c, tracepoint.c, win32-low.c: Likewise.
15397
f15f9948
TJB
153982012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15399
15400 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15401 (PTRACE_ARG4_TYPE): Likewise.
15402 (PTRACE_XFER_TYPE): Likewise.
15403 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15404 ptrace to PTRACE_ARG3_TYPE.
15405 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15406 (PTRACE_ARG4_TYPE): Likewise.
15407 (PTRACE_XFER_TYPE): Likewise.
15408 (linux_detach_one_lwp): Cast fourth argument of
15409 ptrace to long then PTRACE_ARG4_TYPE.
15410 (regsets_fetch_inferior_registers): Cast third argument of
15411 ptrace to long then PTRACE_ARG3_TYPE.
15412 (regsets_store_inferior_registers): Likewise.
15413
38ea300a
PA
154142012-04-20 Pedro Alves <palves@redhat.com>
15415
15416 * configure: Regenerate.
15417
c971b7fa
PA
154182012-04-19 Pedro Alves <palves@redhat.com>
15419
43aaf8b6 15420 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 15421 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
15422 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15423 (all, install-only, uninstall, clean-info, all-lib, clean): No
15424 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15425 (maintainer-clean realclean distclean): Use subdir_do.
15426 (subdir_do): New.
15427 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 15428 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
15429 * acinclude.m4: Include acx_configure_dir.m4.
15430 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15431 calls. Call AC_PROG_RANLIB. Configure gnulib using
15432 ACX_CONFIGURE_DIR.
15433 (GNULIB): New.
15434 (GNULIB_STDINT_H): Adjust.
15435 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15436 * gdbreplay.c: Include build-gnulib/config.h.
15437 * server.h: Likewise.
15438 * aclocal.m4: Regenerate.
15439 * config.in: Regenerate.
15440 * configure: Regenerate.
c971b7fa 15441
809277f8
PA
154422012-04-19 Pedro Alves <palves@redhat.com>
15443
15444 * Makefile.in (LIBGNU, INCGNU): Adjust.
15445 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15446 (all, install-only, uninstall, clean-info, all-lib, clean)
15447 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15448 * configure.ac: Adjust AC_OUTPUT output.
15449 * aclocal.m4: Regenerate.
15450 * configure: Regenerate.
15451
fd9bb8b8
PA
154522012-04-19 Pedro Alves <palves@redhat.com>
15453
15454 * Makefile.in (generated_files): New.
15455 (server_h): Remove the explicit dependency on config.h, and depend
15456 on $generated_files.
15457
1c298c66
PA
154582012-04-19 Pedro Alves <palves@redhat.com>
15459
15460 * Makefile.in (INCGNU): Add -Ignulib.
15461
57c4b50b
PA
154622012-04-19 Pedro Alves <palves@redhat.com>
15463
15464 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15465 (INCGNU): ... this, and spell out -I here.
15466 (GNULIB_LIB): Rename to ...
15467 (LIBGNU): ... this.
15468 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15469
1030e047
PA
154702012-04-19 Pedro Alves <palves@redhat.com>
15471
15472 * config.in: Regenerate.
15473
447d4319
PA
154742012-04-19 Pedro Alves <palves@redhat.com>
15475
15476 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15477 * server.h (memmem): Remove declaration.
15478 * config.in: Regenerate.
15479 * configure: Regenerate.
15480
aad9eab9
YQ
154812012-04-19 Yao Qi <yao@codesourcery.com>
15482
15483 * Makefile.in (SFILES): Add common/vec.c.
15484 (OBS): Add vec.o.
15485 (vec.o): New rule.
15486
3e10640f
YQ
154872012-04-19 Yao Qi <yao@codesourcery.com>
15488
15489 * remote-utils.c (prepare_resume_reply): Replace with macro
15490 target_core_of_thread.
15491 * server.c (handle_qxfer_threads_proper): Likewise.
15492 * target.h (traget_core_of_thread): New macro.
15493
71622373
PA
154942012-04-18 Pedro Alves <palves@redhat.com>
15495
15496 * aclocal.m4: Regenerate.
15497 * configure: Regenerate.
15498
80d26939
YQ
154992012-04-16 Yao Qi <yao@codesourcery.com>
15500
15501 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15502 duplicated on address.
15503
42476b70
YQ
155042012-04-16 Yao Qi <yao@codesourcery.com>
15505
15506 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15507 (struct tracepoint_action_ops) <send>: New field.
15508 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15509 (agent_expr_send, x_tracepoint_action_send): New.
15510 (l_tracepoint_action_send): New.
15511 (cmd_qtdp): Download and install tracepoint
15512 according to `use_agent'.
15513 (run_inferior_command): Add one more parameter `len'.
15514 Update callers.
15515 (tracepoint_send_agent): New.
15516 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15517
7bc83639
YQ
155182012-04-16 Yao Qi <yao@codesourcery.com>
15519
15520 * tracepoint.c (download_tracepoints): Moved to ...
15521 (cmd_qtstart): ... here.
15522
5f18041e
YQ
155232012-04-14 Yao Qi <yao@codesourcery.com>
15524
15525 * tracepoint.c: Include inttypes.h.
15526 (struct collect_memory_action): Use sized types.
15527 (struct tracepoint): Likewise.
15528 (cmd_qtdp, stop_tracing): Update print specifiers.
15529 (cmd_qtp, response_tracepoint): Likewise.
15530 (collect_data_at_tracepoint): Likewise.
15531 (collect_data_at_step): Likewise.
15532
55a8c076
YQ
155332012-04-14 Yao Qi <yao@codesourcery.com>
15534
15535 Import gnulib module inttypes.
15536 * aclocal.m4, config.in, configure: Regenerated.
15537
dc750257
YQ
155382012-04-14 Yao Qi <yao@codesourcery.com>
15539
15540 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15541 Makefile and config.status at last.
15542
0ab5faf9
YQ
155432012-04-13 Yao Qi <yao@codesourcery.com>
15544
15545 * tracepoint.c: Include stdint.h unconditionally.
15546
18f5fd81
TJB
155472012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15548
15549 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15550 on BFD_HAVE_SYS_PROCFS_TYPE.
15551 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15552 * configure: Regenerate.
15553 * config.in: Likewise.
15554
4d47af5c
L
155552012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15556
15557 * Makefile.in (clean): Also remove x32.c x32-linux.c
15558 x32-avx.c x32-avx-linux.c.
15559 (x32.o): New target.
15560 (x32.c): Likewise.
15561 (x32-linux.o): Likewise.
15562 (x32-linux.c): Likewise.
15563 (x32-avx.o): Likewise.
15564 (x32-avx.c): Likewise.
15565 (x32-avx-linux.o): Likewise.
15566 (x32-avx-linux.c): Likewise.
15567
15568 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15569 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15570 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15571 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15572 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15573 i386/x32-avx-linux.xml.
15574
15575 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15576 (init_registers_x32_avx_linux): Likwise.
15577 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15578 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15579
ecedbe58
PA
155802012-04-13 Pedro Alves <palves@redhat.com>
15581
15582 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15583 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15584 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15585 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15586 the sub-make.
15587
c92b5177
L
155882012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15589
15590 * linux-x86-low.c (compat_x32_clock_t): New.
15591 (compat_x32_siginfo_t): Likewise.
15592 (compat_x32_siginfo_from_siginfo): Likewise.
15593 (siginfo_from_compat_x32_siginfo): Likewise.
15594 (linux_is_elf64): Likewise.
15595 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15596 and siginfo_from_compat_x32_siginfo for x32.
15597 (x86_arch_setup): Set linux_is_elf64.
15598
214d508e
L
155992012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15600
15601 PR gdb/13969
15602 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15603 e_machine field.
15604 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15605 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15606 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15607 compatible with process.
15608
c9a1864a
YQ
156092012-04-12 Yao Qi <yao@codesourcery.com>
15610
15611 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15612 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15613 (install-only, install-info, clean): Handle sub dir gnulib.
15614 (all-lib, am--refresh): New targets.
15615 (memmem.o): Remove target.
15616 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15617 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15618 (AC_REPLACE_FUNCS): Remove memmem.
15619 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15620 (AC_OUTPUT): Generate Makefile in gnulib/.
15621 * aclocal.m4, config.in, configure: Regenerated.
15622
367ba2c2
MR
156232012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15624
15625 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15626
9d236627
PA
156272012-04-05 Pedro Alves <palves@redhat.com>
15628
15629 -Werror=strict-aliasing
15630
15631 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15632 pointer.
15633
111217b3
PA
156342012-04-04 Pedro Alves <palves@redhat.com>
15635
15636 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15637 (sparc_store_gregset_from_stack, sparc_store_gregset)
15638 (sparc_breakpoint_at): Fix formatting.
15639
8365dcf5
TJB
156402012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15641
15642 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15643 are available.
15644 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15645 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15646 * config.in: Regenerate.
15647 * configure: Likewise.
15648
689cc2ae
PA
156492012-03-29 Pedro Alves <palves@redhat.com>
15650
15651 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15652 Correct ptrace arguments.
15653
c14dfd32
PA
156542012-03-28 Pedro Alves <palves@redhat.com>
15655
15656 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15657 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15658 (IA64_FR1_REGNUM): New defines.
15659 (ia64_fetch_register): New.
15660 (the_low_target): Install it.
15661 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15662 field.
15663 * linux-low.c (linux_fetch_registers): Try the
15664 the_low_target.fetch_register hook first.
15665
15666 * linux-arm-low.c (the_low_target): Adjust.
15667 * linux-bfin-low.c (the_low_target): Adjust.
15668 * linux-cris-low.c (the_low_target): Adjust.
15669 * linux-crisv32-low.c (the_low_target): Adjust.
15670 * linux-m32r-low.c (the_low_target): Adjust.
15671 * linux-m68k-low.c (the_low_target): Adjust.
15672 * linux-mips-low.c (the_low_target): Adjust.
15673 * linux-ppc-low.c (the_low_target): Adjust.
15674 * linux-s390-low.c (the_low_target): Adjust.
15675 * linux-sh-low.c (the_low_target): Adjust.
15676 * linux-sparc-low.c (the_low_target): Adjust.
15677 * linux-tic6x-low.c (the_low_target): Adjust.
15678 * linux-x86-low.c (the_low_target): Adjust.
15679 * linux-xtensa-low.c (the_low_target): Adjust.
15680
63c88e13
PA
156812012-03-26 Pedro Alves <palves@redhat.com>
15682
15683 * server.c (handle_qxfer_libraries): Don't bail early if
15684 the_target->qxfer_libraries_svr4 is not NULL.
15685
fb723180
PA
156862012-03-26 Pedro Alves <palves@redhat.com>
15687
15688 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15689
0afae3cf
PA
156902012-03-23 Pedro Alves <palves@redhat.com>
15691
15692 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15693 "library-list-svr4" element's start tag when the the DSO list is
15694 empty.
15695
485f1ee4
PA
156962012-03-23 Pedro Alves <palves@redhat.com>
15697
15698 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15699 a variable whose type size is the same as the inferior's pointer
15700 size.
15701
a5362b9a
TS
157022012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15703
15704 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15705 struct siginfo.
15706 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15707 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15708 * linux-low.h: Include <signal.h>.
15709 (struct siginfo): Remove forward declaration.
15710 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15711 struct siginfo.
15712
d226c142
MF
157132012-03-21 Mike Frysinger <vapier@gentoo.org>
15714
15715 * .gitignore: Ignore more files.
15716
122f36ef
PA
157172012-03-19 Pedro Alves <palves@redhat.com>
15718 Jan Kratochvil <jan.kratochvil@redhat.com>
15719
15720 * server.c (cont_thread, general_thread): Add describing comments.
15721 (start_inferior): Clear `cont_thread'.
15722 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15723 of a process.
15724
fc3e5175
YQ
157252012-03-15 Yao Qi <yao@codesourcery.com>
15726
15727 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15728 handling to ...
15729 (cmd_qtdp): ... here.
15730
8d0d92cd
YQ
157312012-03-15 Yao Qi <yao@codesourcery.com>
15732
15733 * tracepoint.c (struct tracepoint_action_ops): New.
15734 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15735 (m_tracepoint_action_download): New.
15736 (r_tracepoint_action_download): New.
15737 (x_tracepoint_action_download): New.
15738 (l_tracepoint_action_download): New.
15739 (add_tracepoint_action): Install `action->ops' according type.
15740 (download_tracepoint_1): Move code `download' function pointer
15741 of various tracepoint_action_ops.
15742
87b0bb13
JK
157432012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15744
15745 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15746 linux_ptrace_attach_warnings.
15747
5f572dec
JK
157482012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15749
15750 * Makefile.in (linux-ptrace.o): New.
15751 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15752 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15753 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15754 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15755 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15756 of these targets.
15757 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15758
f4647387
YQ
157592012-03-08 Yao Qi <yao@codesourcery.com>
15760 Pedro Alves <palves@redhat.com>
15761
15762 Fix PR server/13392.
15763 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15764 offset of JMP insn.
15765 * tracepoint.c (remove_tracepoint): New.
15766 (cmd_qtdp): Call remove_tracepoint when failed to install.
15767
9b224c5e
PA
157682012-03-07 Pedro Alves <palves@redhat.com>
15769
15770 * linux-low.c (get_detach_signal): New.
15771 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15772 Pass on pending signals to PTRACE_DETACH. Check the result of the
15773 ptrace call.
15774 * server.c (program_signals, program_signals_p): New.
15775 (handle_general_set): Handle QProgramSignals.
15776 * server.h (program_signals, program_signals_p): Declare.
15777
e237a7e2
JK
157782012-03-05 Pedro Alves <palves@redhat.com>
15779 Jan Kratochvil <jan.kratochvil@redhat.com>
15780
15781 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15782 New comment why.
15783
5808517f
YQ
157842012-03-03 Yao Qi <yao@codesourcery.com>
15785
15786 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15787 agent_look_up_symbols.
15788
58b4daa5
YQ
157892012-03-03 Yao Qi <yao@codesourcery.com>
15790
15791 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15792 (linux-x86-low.o): Likewise.
15793 * server.h: Remove in_process_agent_loaded.
15794 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15795 common/agent.c.
15796 Update callers.
15797
8ffcbaaf
YQ
157982012-03-03 Yao Qi <yao@codesourcery.com>
15799
15800 * tracepoint.c (gdb_agent_capability): New global.
15801 (in_process_agent_loaded_ust): Renamed to
15802 `in_process_agent_supports_ust'.
15803 Update callers.
15804 (in_process_agent_supports_ust): Call agent_capability_check.
15805 (clear_installed_tracepoints): Assert that agent supports
15806 agent.
15807
d1feda86
YQ
158082012-03-03 Yao Qi <yao@codesourcery.com>
15809
15810 * linux-low.c (linux_supports_agent): New.
15811 (linux_target_ops): Initialize field `supports_agent' with
15812 linux_supports_agent.
15813 * target.h (struct target_ops) <supports_agent>: New.
15814 (target_supports_agent): New macro.
15815 * server.c (handle_general_set): Handle packet 'QAgent'.
15816 (handle_query): Send `QAgent+'.
15817 * Makefile.in (server.o): Depends on agent.h.
15818
2fa291ac
YQ
158192012-03-03 Yao Qi <yao@codesourcery.com>
15820
15821 * Makefile.in (OBS): Add agent.o.
15822 Add new rule for agent.o.
15823 Track dependence of tracepoint.c on agent.h.
15824 * tracepoint.c (run_inferior_command_1):
15825 (run_inferior_command): Call agent_run_command.
15826 (gdb_ust_connect_sync_socket): Deleted. Move it to
15827 common/agent.c.
15828 (resume_thread, stop_thread): Likewise.
15829 (gdb_ust_socket_init): Renamed to ...
15830 (gdb_agent_socket_init): ... New.
15831 (gdb_ust_thread): Renamed to ...
15832 (gdb_agent_helper_thread): ... New.
15833 (gdb_ust_init): Move some code to ...
15834 (gdb_agent_init): ... here. New.
15835 [HAVE_UST]: Call gdb_ust_init.
15836 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15837 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15838 * config.in, configure: Regenerated.
15839
05044653
PA
158402012-03-02 Pedro Alves <palves@redhat.com>
15841
15842 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15843 * linux-low.c (struct simple_pid_list): New.
15844 (stopped_pids): New a struct simple_pid_list pointer.
15845 (add_to_pid_list, pull_pid_from_list): New.
15846 (handle_extended_wait): Don't assume the first signal new children
15847 report is SIGSTOP. Adjust call to pull_pid_from_list.
15848 (linux_wait_for_lwp): Adjust.
15849
8d00225b
YQ
158502012-03-02 Yao Qi <yao@codesourcery.com>
15851
15852 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15853 debug log.
15854
19560ba5
YQ
158552012-03-02 Yao Qi <yao@codesourcery.com>
15856
15857 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15858 `stop_pc' and `tpoint'. Update caller.
15859
1faeff08
MR
158602012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15861
15862 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15863 * linux-low.c (use_linux_regsets): New macro.
15864 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15865 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15866 (linux_register_in_regsets): New function.
15867 (usr_fetch_inferior_registers): Skip registers covered by
15868 regsets.
15869 (usr_store_inferior_registers): Likewise.
15870 (usr_fetch_inferior_registers): New macro.
15871 (usr_store_inferior_registers): Likewise.
15872 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15873 (linux_store_registers): Likewise.
15874 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15875 prototype.
15876 (init_registers_mips64_dsp_linux): Likewise.
15877 (init_registers_mips_linux): New macro.
15878 (init_registers_mips_dsp_linux): Likewise.
15879 (mips_dsp_num_regs): Likewise.
15880 (DSP_BASE, DSP_CONTROL): New fallback macros.
15881 (mips_base_regs): New macro.
15882 (mips_regmap): Use it. Fix the size.
15883 (mips_dsp_regmap): New variable.
15884 (mips_dsp_regset_bitmap): Likewise.
15885 (mips_arch_setup): New function.
15886 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15887 than mips_regmap.
15888 (mips_cannot_store_register): Likewise.
15889 (the_low_target): Update .arch_setup, .num_regs and .regmap
15890 initializers. Add .regset_bitmap initializer.
15891 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15892 initializer.
15893 * linux-bfin-low.c (the_low_target): Likewise.
15894 * linux-cris-low.c (the_low_target): Likewise.
15895 * linux-crisv32-low.c (the_low_target): Likewise.
15896 * linux-ia64-low.c (the_low_target): Likewise.
15897 * linux-m32r-low.c (the_low_target): Likewise.
15898 * linux-m68k-low.c (the_low_target): Likewise.
15899 * linux-ppc-low.c (the_low_target): Likewise.
15900 * linux-s390-low.c (the_low_target): Likewise.
15901 * linux-sh-low.c (the_low_target): Likewise.
15902 * linux-sparc-low.c (the_low_target): Likewise.
15903 * linux-tic6x-low.c (the_low_target): Likewise.
15904 * linux-x86-low.c (the_low_target): Likewise.
15905 * linux-xtensa-low.c (the_low_target): Likewise.
15906 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15907 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15908 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15909 srv_xmlfiles.
15910 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15911 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15912
c03e6ccc
YQ
159132012-02-29 Yao Qi <yao@codesourcery.com>
15914 Pedro Alves <palves@redhat.com>
15915
15916 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15917 `step_over_finished' is true.
15918
644cebc9
PA
159192012-02-27 Pedro Alves <palves@redhat.com>
15920
15921 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15922 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15923
c14d7ab2
PA
159242012-02-27 Pedro Alves <palves@redhat.com>
15925
15926 PR server/9684
15927 * linux-low.c (pid_is_stopped): New.
15928 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15929
412c89dd
LM
159302012-02-25 Luis Machado <lgustavo@codesourcery.com>
15931
15932 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15933 of conditions.
15934
b745defe
MR
159352012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15936
15937 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15938
9f3a5c85
LM
159392012-02-24 Luis Machado <lgustavo@codesourcery>
15940
15941 * server.c (handle_query): Advertise support for target-side
15942 breakpoint condition evaluation.
15943 (process_point_options): New function.
15944 (process_serial_event): When inserting a breakpoint, check for
15945 a target-side condition that should be evaluated.
15946
15947 * mem-break.c: Include regcache.h and ax.h.
15948 (point_cond_list_t): New data structure.
15949 (breakpoint) <cond_list>: New field.
15950 (find_gdb_breakpoint_at): Make non-static.
15951 (delete_gdb_breakpoint_at): Clear any target-side
15952 conditions.
15953 (clear_gdb_breakpoint_conditions): New function.
15954 (add_condition_to_breakpoint): Likewise.
15955 (add_breakpoint_condition): Likewise.
15956 (gdb_condition_true_at_breakpoint): Likewise.
15957 (gdb_breakpoint_here): Return result directly instead
15958 of going through a local variable.
15959
15960 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15961 (clear_gdb_breakpoint_conditions): Likewise.
15962 (add_breakpoint_condition): Likewise.
15963 (gdb_condition_true_at_breakpoint): Likewise.
15964
15965 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15966 (need_step_over_p): Take target-side breakpoint condition into
15967 consideration.
15968
5e1dc496
LM
159692012-02-24 Luis Machado <lgustavo@codesourcery>
15970
15971 * server.h: Include tracepoint.h.
15972 (agent_mem_read, agent_get_trace_state_variable_value,
15973 agent_set_trace_state_variable_value,
15974 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15975 get_set_tsv_func_addr): New prototypes.
15976
15977 * ax.h: New include file.
15978 * ax.c: New source file.
15979
15980 * tracepoint.c: Include ax.h.
15981 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15982 agent_expr, eval_result_type): Move to ax.h.
15983 (parse_agent_expr): Rename to ...
15984 (gdb_parse_agent_expr): ... this, make it non-static and move
15985 to ax.h.
15986 (unparse_agent_expr) Rename to ...
15987 (gdb_unparse_agent_expr): ... this, make it non-static and move
15988 to ax.h.
15989 (eval_agent_expr): Rename to ...
15990 (eval_tracepoint_agent_expr): ... this.
15991 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15992 forward declarations.
15993 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15994 (agent_get_trace_state_variable_value): New function.
15995 (agent_set_trace_state_variable_value): New function.
15996 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15997 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15998 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15999 (condition_true_at_tracepoint): Likewise.
16000 (parse_agent_expr): Rename to ...
16001 (gdb_parse_agent_expr): ... this and move to ax.c.
16002 (unparse_agent_expr): Rename to ...
16003 (gdb_unparse_agent_expr): ... this and move to ax.c.
16004 (gdb_agent_op_name): Move to ax.c.
16005 (eval_agent_expr): Rename to ...
16006 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16007 and move to ax.c.
16008 (eval_tracepoint_agent_expr): New function.
16009 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 16010 non-static.
5e1dc496
LM
16011 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16012 ax.c.
16013 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16014 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16015 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16016 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16017 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16018 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16019 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16020 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16021 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16022 (compile_bytecodes): Remove forward declaration.
16023 (is_goto_target): Move to ax.c.
16024 (compile_bytecodes): Move to ax.c and call
16025 agent_get_trace_state_variable_value (...) and
16026 agent_set_trace_state_variable_value (...).
16027
16028 * Makefile.in: Update ax.c and IPA dependencies.
16029
277e4e52
PA
160302012-02-24 Pedro Alves <palves@redhat.com>
16031
16032 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16033 (cmd_bigqtbuffer_circular): ... this. Only handle
16034 'QTBuffer:circular:'.
16035 (handle_tracepoint_general_set): Adjust.
16036
bf4c19f7
YQ
160372012-02-16 Yao Qi <yao@codesourcery.com>
16038
16039 * inferiors.c: Move code to ...
16040 * dll.c: .... here. New.
16041 * server.h: Declare clear_dlls.
16042 * Makefile.in (SFILES): Add dll.c.
16043 (OBS): Add dll.o
16044 (dll.o): New rule.
16045
d73f2619
YQ
160462012-02-11 Yao Qi <yao@codesourcery.com>
16047
16048 * server.c: (handle_monitor_command): Add a new parameter
16049 `own_buf'.
16050 (handle_query): Update caller.
16051
f8255c2a
JB
160522012-02-09 Joel Brobecker <brobecker@adacore.com>
16053
16054 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16055 * configure, config.in: Regenerate.
16056 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16057 is not defined.
16058
da84f473
PA
160592012-02-02 Pedro Alves <palves@redhat.com>
16060
16061 Try SIGKILL first, then PTRACE_KILL.
16062 * linux-low.c (linux_kill_one_lwp): New.
16063 (linux_kill_one_lwp): Rename to ...
16064 (kill_one_lwp_callback): ... this. Use the new
16065 linux_kill_one_lwp.
16066
e886a173
PA
160672012-02-02 Pedro Alves <palves@redhat.com>
16068
16069 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16070 inferior.
16071
be07f1a2
PA
160722012-01-27 Pedro Alves <palves@redhat.com>
16073
16074 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16075 (elf_64_file_p): Make static.
16076 (linux_pid_exe_is_elf_64_file): New.
16077 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16078 Delete declarations.
16079 (linux_pid_exe_is_elf_64_file): Declare.
16080 * linux-x86-low.c (x86_arch_setup): Use
16081 linux_pid_exe_is_elf_64_file.
16082
d8301ad1
JK
160832012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16084
16085 * linux-low.c (linux_wait_for_event_1): Rename to ...
16086 (linux_wait_for_event): ... here and merge it with former
16087 linux_wait_for_event - new variable wait_ptid, use it.
16088 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16089
01b17894
PA
160902012-01-23 Pedro Alves <palves@redhat.com>
16091
16092 * server.c (main): Avoid yet another case of infinite loop while
16093 detaching/killing after a longjmp.
16094
e825046f
JK
160952012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16096
16097 Code cleanup.
16098 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16099
b9e7b9c3
UW
161002012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16101
16102 * hostio.c (handle_readlink): New function.
16103 (handle_vFile): Call it to handle "vFile:readlink" packets.
16104
901f9912
UW
161052012-01-20 Pedro Alves <palves@redhat.com>
16106 Ulrich Weigand <ulrich.weigand@linaro.org>
16107
16108 * server.c (handle_v_requests): Only support vAttach and vRun to
16109 start multiple processes when in extended protocol mode.
16110
fc1ab1a0
PA
161112012-01-17 Pedro Alves <palves@redhat.com>
16112
16113 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16114 memalign plus mprotect to allocate the scratch buffer.
16115
7d5d4e98
PA
161162012-01-13 Pedro Alves <palves@redhat.com>
16117
16118 * server.c (attach_inferior): Clear `cont_thread'.
16119
f128d5e9
PA
161202012-01-13 Pedro Alves <palves@redhat.com>
16121
16122 * server.c (main): Avoid infinite loop while detaching/killing
16123 after a longjmp.
16124
06db92f0
DE
161252012-01-09 Doug Evans <dje@google.com>
16126
16127 * server.c (start_inferior): Set last_ptid in --wrapper case.
16128
32d92999
YQ
161292012-01-06 Yao Qi <yao@codesourcery.com>
16130
16131 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16132 defined.
16133 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16134
5e0a92a9
YQ
161352012-01-04 Yao Qi <yao@codesourcery.com>
16136
16137 * tracepoint.c (cmd_qtdp): Print debug message
16138 for static tracepoint.
16139
ae639e8c
YQ
161402012-01-04 Yao Qi <yao@codesourcery.com>
16141
16142 * tracepoint.c (trace_vdebug): Differentiate debug message
16143 between gdbserver and IPA.
16144
f72429c5
YQ
161452012-01-03 Yao Qi <yao@codesourcery.com>
16146
16147 * tracepoint.c (tracepoint_was_hit): Don't collect for
16148 static tracepoint.
16149
12c3e59c
JB
161502012-01-02 Joel Brobecker <brobecker@adacore.com>
16151
16152 * terminal.h: Reformat copyright header.
16153
67827812
JB
161542012-01-02 Joel Brobecker <brobecker@adacore.com>
16155
16156 * server.c (gdbserver_version): Update copyright year.
16157 * gdbreplay.c (gdbreplay_version): Likewise.
16158
3e52c33d
JK
161592011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16160
16161 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16162
16163 Revert:
16164 2011-12-18 Hui Zhu <teawater@gmail.com>
16165 * linux-low.c (linux_create_inferior): Save return value to ret.
16166
66f1260e
HZ
161672011-12-18 Hui Zhu <teawater@gmail.com>
16168
16169 * linux-low.c (linux_create_inferior): Save return value to ret.
16170
e77616d7
DE
161712011-12-16 Doug Evans <dje@google.com>
16172
e7b06c57
DE
16173 * linux-low.c (linux_create_inferior): If stdio connection,
16174 redirect stdin from /dev/null, stdout to stderr.
16175 * remote-utils.c (remote_is_stdio): New static global.
16176 (remote_connection_is_stdio): New function.
16177 (remote_prepare): Handle stdio connection.
16178 (remote_open): Ditto.
16179 (remote_close): Don't close stdin for stdio connections.
16180 (read_prim,write_prim): New functions. Replace all calls to
16181 read/write to these.
16182 * server.c (main): Watch for "-" argument. Move call to
16183 remote_prepare before start_inferior.
16184 * server.h (STDIO_CONNECTION_NAME): New macro.
16185 (remote_connection_is_stdio): Declare.
16186
e77616d7
DE
16187 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16188 in debugging output.
16189
82067193
YQ
161902011-12-15 Yao Qi <yao@codesourcery.com>
16191
16192 * tracepoint.c: Include sys/syscall.h.
16193 (gdb_ust_thread): Remove preprocessor conditional.
16194
82bfbe7e
PA
161952011-12-14 Pedro Alves <pedro@codesourcery.com>
16196
16197 * linux-low.c (linux_detach_one_lwp): Call
16198 the_low_target.prepare_to_resume before detaching.
16199
712c6575
YQ
162002011-12-14 Yao Qi <yao@codesourcery.com>
16201
16202 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16203 of write.
16204
d54d1edf
YQ
162052011-12-14 Yao Qi <yao@codesourcery.com>
16206
16207 * i386-low.c (i386_low_stopped_data_address): Initialize local
16208 variable `control'.
16209
6210a125
PA
162102011-12-13 Pedro Alves <pedro@codesourcery.com>
16211
16212 PR remote/13492
16213
16214 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16215 DR_CONTROL unless necessary. Extend comments.
16216 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16217 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16218
2ece8244
YQ
162192011-12-13 Yao Qi <yao@codesourcery.com>
16220
16221 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16222 macros.
16223 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16224
784867a5
JK
162252011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16226
16227 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16228 Print new debug message for such case.
16229
6bf36717
JK
162302011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16231
16232 Fix overlapping memcpy.
16233 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16234 the read_inferior_memory transfer.
16235 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16236 write_inferior_memory transfer.
16237 (set_fast_tracepoint_jump): New variable buf. Use it for the
16238 read_inferior_memory and write_inferior_memory transfers.
16239 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16240 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16241 Use it for the write_inferior_memory transfer.
16242 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16243 buffers.
16244
50275556
MR
162452011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16246
16247 * linux-low.c (fetch_register, store_register): Make code
16248 consistent, fix formatting.
16249
7325beb4
MR
162502011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16251
16252 * linux-low.c (usr_store_inferior_registers): Factor out code
16253 to handle individual registers into...
16254 (store_register): ... this new function.
16255
c642a434
UW
162562011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16257
16258 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16259 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16260 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16261 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16262 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16263 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16264 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16265 (srv_xmlfiles): Add new XML files.
16266
16267 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16268 and <sys/uio.h>.
16269 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16270 (init_registers_s390_linux32v1): Add prototype.
16271 (init_registers_s390_linux32v2): Likewise.
16272 (init_registers_s390_linux64v1): Likewise.
16273 (init_registers_s390_linux64v2): Likewise.
16274 (init_registers_s390x_linux64v1): Likewise.
16275 (init_registers_s390x_linux64v2): Likewise.
16276 (s390_num_regs): Increment to 52.
16277 (s390_regmap): Add orig_r2 register.
16278 (s390_num_regs_3264): Increment to 68.
16279 (s390_regmap_3264): Add orig_r2 register.
16280 (s390_collect_ptrace_register): Handle orig_r2 register.
16281 (s390_supply_ptrace_register): Likewise.
16282 (s390_fill_last_break): New function.
16283 (s390_store_last_break): Likewise.
16284 (s390_fill_system_call): New function.
16285 (s390_store_system_call): Likewise.
16286 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16287 register sets.
16288 (s390_check_regset): New function.
16289 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16290 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16291 Update target_regsets for available register sets.
16292
2268b414
JK
162932011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16294 Jan Kratochvil <jan.kratochvil@redhat.com>
16295
16296 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16297 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16298 New.
16299 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16300 * linux-low.h (struct process_info_private): New member r_debug.
16301 * server.c (handle_qxfer_libraries): Call
16302 the_target->qxfer_libraries_svr4.
16303 (handle_qxfer_libraries_svr4): New function.
16304 (qxfer_packets): New entry "libraries-svr4".
16305 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16306 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16307 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16308 PACKET_qXfer_libraries_svr4.
16309
d6db1fab
UW
163102011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16311
16312 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16313 PSW address/mask between 8-byte and 16-byte formats.
16314 (s390_supply_ptrace_register): Likewise.
16315 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16316 basic addressing mode bit.
16317
242f5f1c
SS
163182011-11-24 Stan Shebs <stan@codesourcery.com>
16319
16320 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16321
f196051f
SS
163222011-11-17 Stan Shebs <stan@codesourcery.com>
16323
16324 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16325 (tracing_start_time): New global.
16326 (tracing_stop_time): New global.
16327 (tracing_user_name): New global.
16328 (tracing_notes): New global.
16329 (tracing_stop_note): New global.
16330 (cmd_qtstart): Set traceframe_usage, start_time.
16331 (stop_tracing): Set stop_time.
16332 (cmd_qtstatus): Report additional status.
16333 (cmd_qtp): New function.
16334 (handle_tracepoint_query): Call it.
16335 (cmd_qtnotes): New function.
16336 (handle_tracepoint_general_set): Call it.
16337 (get_timestamp): Rename from tsv_get_timestamp.
16338
405f8e94
SS
163392011-11-14 Stan Shebs <stan@codesourcery.com>
16340 Kwok Cheung Yeung <kcy@codesourcery.com>
16341
16342 * linux-x86-low.c (small_jump_insn): New.
16343 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16344 trampoline and error message, build a trampoline and issue a small
16345 jump instruction to it.
16346 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16347 trampoline and error message.
16348 (x86_get_min_fast_tracepoint_insn_len): New.
16349 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16350 * linux-low.h (struct linux_target_ops): Add arguments to
16351 install_fast_tracepoint_jump_pad operation, add new operation.
16352 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16353 arguments.
16354 (linux_get_min_fast_tracepoint_insn_len): New function.
16355 (linux_target_op): Add new operation.
16356 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16357 (gdb_trampoline_buffer_end): Ditto.
16358 (gdb_trampoline_buffer_error): Ditto.
16359 (struct ipa_sym_addresses): Add fields for new IPA variables.
16360 (symbol_list): Add entries for new IPA variables.
16361 (struct tracepoint): Add fields to hold the address range of the
16362 trampoline used by the tracepoint.
16363 (trampoline_buffer_head): New static variable.
16364 (trampoline_buffer_tail): Ditto.
16365 (claim_trampoline_space): New function.
16366 (have_fast_tracepoint_trampoline_buffer): New function.
16367 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16368 structure.
16369 (install_fast_tracepoint): Ditto, also add error buffer argument.
16370 (cmd_qtminftpilen): New function.
16371 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16372 (fast_tracepoint_from_trampoline_address): New function.
16373 (fast_tracepoint_collecting): Handle trampoline as part of jump
16374 pad space.
16375 (set_trampoline_buffer_space): New function.
16376 (initialize_tracepoint): Initialize new IPA variables.
16377 * target.h (struct target_ops): Add arguments to
16378 install_fast_tracepoint_jump_pad operation, add new
16379 get_min_fast_tracepoint_insn_len operation.
16380 (target_get_min_fast_tracepoint_insn_len): New.
16381 (install_fast_tracepoint_jump_pad): Add arguments.
16382 * server.h (IPA_BUFSIZ): Define.
16383 * linux-i386-ipa.c: Include extra header files.
16384 (initialize_fast_tracepoint_trampoline_buffer): New function.
16385 (initialize_low_tracepoint): Call it.
16386 * server.h (set_trampoline_buffer_space): Declare.
16387 (claim_trampoline_space): Ditto.
16388 (have_fast_tracepoint_trampoline_buffer): Ditto.
16389
1e4d1764
YQ
163902011-11-14 Yao Qi <yao@codesourcery.com>
16391
16392 * server.c (handle_query): Handle InstallInTrace for qSupported.
16393 * tracepoint.c (add_tracepoint): Sort list.
16394 (install_tracepoint, download_tracepoint): New.
16395 (cmd_qtdp): Call them to install and download tracepoints.
16396 (sort_tracepoints): Removed.
16397 (cmd_qtstart): Update.
16398
5c73ff4e
YQ
163992011-11-14 Yao Qi <yao@codesourcery.com>
16400
16401 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16402 * mem-break.h: Declare.
16403 * tracepoint.c (cmd_qtstart): Move some code to ...
16404 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16405 New.
16406 (download_tracepoints): Move some code to ...
16407 (download_tracepoint_1): ... here. New.
16408
86a30030
YQ
164092011-11-08 Yao Qi <yao@codesourcery.com>
16410
16411 * remote-utils.c (relocate_instruction): A comment fix.
16412
8d26e50c
JB
164132011-11-07 Joel Brobecker <brobecker@adacore.com>
16414
16415 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16416 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16417 dr_status_mirror and dr_control_mirror from debug_reg_state.
16418 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16419 (i386_initial_stuff): Remove use of deleted globals.
16420 (i386_get_thread_context, i386_set_thread_context,
16421 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16422 from debug_reg_state.
16423
a59306a3
YQ
164242011-11-05 Yao Qi <yao@codesourcery.com>
16425
16426 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16427 address as TPOINT's.
16428
3065dfb6
SS
164292011-11-02 Stan Shebs <stan@codesourcery.com>
16430
16431 * tracepoint.c (agent_mem_read_string): New function.
16432 (eval_agent_expr): Call it for tracenz.
16433 * server.c (handle_query): Report support for tracenz.
16434
fd0d8c7c
YQ
164352011-11-02 Yao Qi <yao@codesourcery.com>
16436
16437 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16438
609086b1
YQ
164392011-11-02 Yao Qi <yao@codesourcery.com>
16440
16441 * target.h: Fix a typo in comment.
16442
b9fd1791
PA
164432011-10-31 Pedro Alves <pedro@codesourcery.com>
16444
16445 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16446 clobber the breakpoints' shadows with fast tracepoint jumps.
16447 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16448 * target.c (write_inferior_memory): Also pass MYADDR down to
16449 check_mem_write.
16450
03583c20
UW
164512011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16452
16453 * configure.ac: Check support for personality routine.
16454 * configure: Regenerate.
16455 * config.in: Likewise.
16456 * linux-low.c: Include <sys/personality.h>.
16457 Define ADDR_NO_RANDOMIZE if necessary.
16458 (linux_create_inferior): Disable address space randomization when
16459 forking inferior, if requested.
16460 (linux_supports_disable_randomization): New function.
16461 (linux_target_ops): Install it.
16462 * server.h (disable_randomization): Declare.
16463 * server.c (disable_randomization): New global variable.
16464 (handle_general_set): Handle QDisableRandomization.
16465 (handle_query): Likewise for qSupported.
16466 (main): Support --disable-randomization and --no-disable-randomization
16467 command line arguments.
16468 * target.h (struct target_ops): Add supports_disable_randomization.
16469 (target_supports_disable_randomization): New macro.
16470
723b724b
MF
164712011-09-29 Mike Frysinger <vapier@gentoo.org>
16472
16473 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16474 ifdef check.
16475 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16476 [!PT_GETDSBT] (target_loadmap): New definition.
16477 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16478 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16479 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16480 and PT_GETDSBT to LINUX_LOADMAP.
16481 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16482 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16483
55329a5c 164842011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
16485
16486 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16487 (arm_linux_hwbp_cap): New static variable.
16488 (arm_linux_get_hwbp_cap): Replace by ...
16489 (arm_linux_init_hwbp_cap): ... this new function.
16490 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16491 (arm_linux_get_hw_watchpoint_count): Likewise.
16492 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16493 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16494 (arm_prepare_to_resume): Use perror_with_name instead of error.
16495
55329a5c 164962011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
16497
16498 * linux-arm-low.c: Include <signal.h>.
16499 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16500 (struct arm_linux_hwbp_cap): New data type.
16501 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16502 (struct arm_linux_hw_breakpoint): New data type.
16503 (MAX_BPTS, MAX_WPTS): Define.
16504 (struct arch_process_info, struct arch_lwp_info): New data types.
16505 (arm_linux_get_hwbp_cap): New function.
16506 (arm_linux_get_hw_breakpoint_count): Likewise.
16507 (arm_linux_get_hw_watchpoint_count): Likewise.
16508 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16509 (arm_hwbp_control_initialize): Likewise.
16510 (arm_hwbp_control_is_enabled): Likewise.
16511 (arm_hwbp_control_is_initialized): Likewise.
16512 (arm_hwbp_control_disable): Likewise.
16513 (arm_linux_hw_breakpoint_equal): Likewise.
16514 (arm_linux_hw_point_initialize): Likewise.
16515 (struct update_registers_data): New data structure.
16516 (update_registers_callback: New function.
16517 (arm_insert_point): Likewise.
16518 (arm_remove_point): Likewise.
16519 (arm_stopped_by_watchpoint): Likewise.
16520 (arm_stopped_data_address): Likewise.
16521 (arm_new_process): Likewise.
16522 (arm_new_thread): Likewise.
16523 (arm_prepare_to_resume): Likewise.
16524 (the_low_target): Register arm_insert_point, arm_remove_point,
16525 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16526 arm_new_thread, and arm_prepare_to_resume.
16527
6b9801d4
SS
165282011-09-15 Stan Shebs <stan@codesourcery.com>
16529
16530 * server.h (struct emit_ops): Add compare-goto fields.
16531 * tracepoint.c (gdb_agent_op_sizes): New table.
16532 (emit_eq_goto): New function.
16533 (emit_ne_goto): New function.
16534 (emit_lt_goto): New function.
16535 (emit_le_goto): New function.
16536 (emit_gt_goto): New function.
16537 (emit_ge_goto): New function.
16538 (is_goto_target): New function.
16539 (compile_bytecodes): Recognize special cases of compare-goto
16540 combinations and call specialized emitters for them.
16541 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16542 (amd64_emit_ne_goto): New function.
16543 (amd64_emit_lt_goto): New function.
16544 (amd64_emit_le_goto): New function.
16545 (amd64_emit_gt_goto): New function.
16546 (amd64_emit_ge_goto): New function.
16547 (amd64_emit_ops): Add the new functions.
16548 (i386_emit_eq_goto): New function.
16549 (i386_emit_ne_goto): New function.
16550 (i386_emit_lt_goto): New function.
16551 (i386_emit_le_goto): New function.
16552 (i386_emit_gt_goto): New function.
16553 (i386_emit_ge_goto): New function.
16554 (i386_emit_ops): Add the new functions.
16555
bf15cbda
SS
165562011-09-08 Stan Shebs <stan@codesourcery.com>
16557
16558 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16559 (i386_emit_epilogue): Restore %ebx.
16560
943ca1dd
JZ
165612011-08-31 Jie Zhang <jzhang918@gmail.com>
16562
16563 * server.c (step_thread): Remove definition.
16564 (process_serial_event): Don't handle Hs.
16565 * server.h (step_thread): Remove declaration.
16566 * target.c (set_desired_inferior): Remove use of step_thread.
16567
e3deef73
LM
165682011-08-24 Luis Machado <lgustavo@codesourcery.com>
16569
16570 * linux-low.c: Include linux-procfs.h.
16571 (linux_attach_lwp_1): Update comments.
16572 (linux_attach): Scan for existing threads when attaching to a
16573 process that is the tgid.
16574 * Makefile.in: Update dependencies.
16575
13da1c97
LM
165762011-08-24 Luis Machado <lgustavo@codesourcery.com>
16577
16578 * configure.srv: Add linux-procfs.o dependencies.
16579
881127c9
YQ
165802011-08-14 Yao Qi <yao@codesourcery.com>
16581
16582 * target.h (struct target_ops): Fix indent.
16583 * win32-low.c (win32_target_ops): Fix comment.
16584
58dbd541
YQ
165852011-08-14 Andrew Jenner <andrew@codesourcery.com>
16586 Yao Qi <yao@codesourcery.com>
16587
16588 * Makefile.in (clean): Remove tic6x-*.c files.
16589 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16590 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16591 (tic6x-c64xp-linux.c): Likewise.
16592 * configure.srv: Add support for tic6x-*-uclinux.
16593 * linux-tic6x-low.c: New.
16594 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16595
78d85199
YQ
165962011-08-14 Andrew Stubbs <ams@codesourcery.com>
16597 Yao Qi <yao@codesourcery.com>
16598
16599 * target.h (struct target_ops): Add read_loadmap.
16600 * linux-low.c (struct target_loadseg): New type.
16601 (struct target_loadmap): New type.
16602 (linux_read_loadmap): New function.
16603 (linux_target_ops): Add linux_read_loadmap.
16604 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
16605 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16606 to NULL.
78d85199 16607
a959a88d
EZ
166082011-08-05 Eli Zaretskii <eliz@gnu.org>
16609
16610 * win32-low.c: Include <stdint.h>.
16611
1ced966e
PA
166122011-07-22 Pedro Alves <pedro@codesourcery.com>
16613
16614 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16615 to the inferior here.
16616 (i386_remove_aligned_watchpoint): Ditto.
16617 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16618 fit part of the watchpoint in the debug registers.
16619 (i386_update_inferior_debug_regs): New.
16620 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16621 registers, and only update the inferior on success.
16622 (i386_low_remove_watchpoint): Ditto.
16623
d26e3629
KY
166242011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16625
16626 * linux-low.c (compare_ints, unique, list_threads, show_process,
16627 linux_core_of_thread): Delete.
16628 (linux_target_ops): Change linux_core_of_thread to
16629 linux_common_core_of_thread.
16630 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16631 * utils.c (malloc_failure): Change type of argument.
16632 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16633 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16634 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16635 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16636 (IPA_OBJS): Add common-utils-ipa.o.
16637 (ptid_h, linux_osdata_h): New macros.
16638 (server_h): Add common/common-utils.h, common/xml-utils.h,
16639 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16640 common/ptid.h.
16641 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16642 ptid.o, buffer.o): New rules.
16643 (linux-low.o): Add common/linux-osdata.h as a dependency.
16644 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16645 * configure.ac: Add AC_HEADER_DIRENT check.
16646 * config.in: Regenerate.
16647 * configure: Regenerate.
16648 * remote-utils.c (xml_escape_text): Delete.
16649 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16650 buffer_xml_printf): Move to common/buffer.c.
16651 * server.c (main): Remove call to initialize_inferiors.
16652 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16653 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16654 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16655 internal_error, gdb_assert, gdb_assert_fail): Delete.
16656 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16657 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16658 common/buffer.h.
16659 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16660 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16661 initialize_inferiors): Delete.
16662
2275a1a7
PA
166632011-07-20 Pedro Alves <pedro@codesourcery.com>
16664
16665 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16666 symbol error.
16667
0a5b1e09
PA
166682011-05-31 Pedro Alves <pedro@codesourcery.com>
16669
16670 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16671 assertion.
16672 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16673
6938fd34
YQ
166742011-05-26 Yao Qi <yao@codesourcery.com>
16675
16676 * Makefile.in (thread-db.o): Track dependence to
16677 common/gdb_thread_db.h.
16678 * thread-db.c: include gdb_thread_db.h from right place.
16679
b481f9e0
TT
166802011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16681
16682 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16683 __FILE__ and __LINE__ to internal_error.
16684
98a5dd13
DE
166852011-05-13 Doug Evans <dje@google.com>
16686
16687 * thread-db.c (try_thread_db_load_from_sdir): New function.
16688 (try_thread_db_load_from_dir): New function.
16689 (thread_db_load_search): Handle $sdir, ignore $pdir.
16690 Remove trying of system directories if search of
16691 libthread-db-search-path fails, that is now done via $sdir.
16692
d248b706
KY
166932011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16694
16695 * server.c (handle_query): Add EnableDisableTracepoints to the list
16696 of supported features.
43aaf8b6 16697 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 16698 tracepoints.
43aaf8b6
PA
16699 (cmd_qtenable_disable): New.
16700 (cmd_qtstart): Install tracepoints even if disabled.
16701 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16702 receiving a QTEnable or QTDisable packet.
16703 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16704 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16705 tracepoints.
16706 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 16707
84e578fb
DE
167082011-05-10 Doug Evans <dje@google.com>
16709
16710 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16711
71f55dd8
DE
167122011-05-04 Doug Evans <dje@google.com>
16713
16714 * linux-low.c (linux_join): Skip process lookup.
16715 * spu-low.c (spu_join): Ditto.
16716 * server.c (join_inferiors_callback): Delete.
16717 (process_serial_event): For 'D' packet (detach) call join_inferior
16718 directly.
16719
4d393d60
JM
167202011-05-04 Joseph Myers <joseph@codesourcery.com>
16721
16722 * README: Don't mention xscale*-*-linux*.
16723 * configure.srv (xscale*-*-linux*): Don't handle target.
16724
b00ad6ff
NF
167252011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16726
16727 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16728 casting pointers.
16729 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16730 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16731 (i386_emit_void_call_2): Likewise.
16732
af96c192
YQ
167332011-04-26 Yao Qi <yao@codesourcery.com>
16734
43aaf8b6
PA
16735 * linux-low.c: Move common macros to linux-ptrace.h.
16736 Include linux-ptrace.h.
af96c192
YQ
16737 * Makefile.in (linux_ptrace_h): New.
16738 (linux-low.o): Depends on linux-ptrace.h.
16739
03f2bd59
JK
167402011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16741
16742 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16743 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16744 (remote_prepare): New function with most of the TCP code from ...
16745 (remote_open): ... here. Detect PORT here unconditionally. Move also
16746 setting transport_is_reliable.
16747 * server.c (run_once): New variable.
16748 (gdbserver_usage): Document it.
16749 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16750 the first run if RUN_ONCE.
16751 * server.h (run_once, remote_prepare): New declarations.
16752
7a9dd1b2
TT
167532011-04-19 Tom Tromey <tromey@redhat.com>
16754
16755 * win32-low.c (handle_load_dll): Remove duplicate "the".
16756
81239425
PM
167572011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16758
16759 Remove support for old Cygwin 1.5 versions.
16760 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16761 function to avoid warning.
16762 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16763 warning.
16764
9e0627f1
PM
167652011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16766
16767 * gdbserver/server.h (Macro _): Define it if not available.
16768
588eebee
MS
167692011-03-14 Michael Snyder <msnyder@vmware.com>
16770
348af9f7 16771 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 16772
43f70d4c
JB
167732011-03-10 Joel Brobecker <brobecker@adacore.com>
16774
16775 * Makefile.in (maintainer-clean realclean distclean): Remove
16776 "make ... subdir_do" command.
16777
348af9f7
MS
167782011-03-10 Michael Snyder <msnyder@vmware.com>
16779
16780 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16781
16782 * server.c (handle_v_run): Free alloced buffer on early return.
16783
e637a4f5
YQ
167842011-03-09 Yao Qi <yao@codesourcery.com>
16785
16786 Revert:
16787 2011-03-04 Yao Qi <yao@codesourcery.com>
16788
16789 * Makefile.in: Remove GNU make feature --directory.
16790
16791 2011-03-05 Yao Qi <yao@codesourcery.com>
16792
16793 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16794 (subdir_do): New make target. Copied from gdb/Makefile.
16795 (maintainer-clean, realclean, distclean, clean): Call corresponding
16796 make targets in common/Makefile.
16797
16798 2011-02-11 Yao Qi <yao@codesourcery.com>
16799
16800 * configure.ac: Call AC_PROG_RANLIB.
16801 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16802 * configure: Regenerate.
16803
e6edda56
JK
168042011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16805
16806 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16807
e5141119
JB
168082011-03-06 Yao Qi <yao@codesourcery.com>
16809
16810 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16811
64794aa4
JB
168122011-03-05 Yao Qi <yao@codesourcery.com>
16813
16814 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16815 (subdir_do): New make target. Copied from gdb/Makefile.
16816 (maintainer-clean, realclean, distclean, clean): Call corresponding
16817 make targets in common/Makefile.
16818
7a762829
YQ
168192011-03-04 Yao Qi <yao@codesourcery.com>
16820
16821 * Makefile.in: Remove GNU make feature --directory.
16822
348af9f7
MS
168232011-03-04 Michael Snyder <msnyder@vmware.com>
16824
16825 * server.c (queue_stop_reply): Call xmalloc not malloc.
16826
168272011-03-02 Michael Snyder <msnyder@vmware.com>
16828
16829 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16830
9f72fee2
MS
168312011-02-28 Michael Snyder <msnyder@vmware.com>
16832
588eebee
MS
16833 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16834 (cmd_qtframe): Ditto.
16835 (cmd_qtbuffer): Ditto.
16836 (cmd_bigqtbuffer): Ditto.
16837
9f72fee2
MS
16838 * utils.c (decimal2str): Initialize 'width' to nine, then
16839 don't mess with it.
16840
8040bd49
UW
168412011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16842
16843 * hostio.c (require_data): Free *data, not data.
16844
7e52cbd0
JK
168452011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16846
16847 * hostio.c (require_data): Use free, not xfree.
16848
9130f83e
MS
168492011-02-27 Michael Snyder <msnyder@vmware.com>
16850
4b812f4e
MS
16851 * server.c (handle_query): Discard unused value.
16852
9130f83e
MS
16853 * hostio.c (require_data): Free malloc memory before returning
16854 error.
16855
69d37113
MS
168562011-02-26 Michael Snyder <msnyder@vmware.com>
16857
16858 * linux-low.c (list_threads): Call closedir for dirent.
16859
35f5825a
MS
168602011-02-27 Michael Snyder <msnyder@vmware.com>
16861
2a589cef
MS
16862 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16863 a case statement falls through.
16864
0adea5f7
MS
16865 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16866
35f5825a
MS
16867 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16868 in comparison.
16869
238f1c74
MS
168702011-02-26 Michael Snyder <msnyder@vmware.com>
16871
16872 * utils.c (decimal2str): Eliminate dead code and dead param.
16873 (pulongest): Drop dead param from call to decimal2str.
16874 (plongest): Ditto.
16875
633ff500
JB
168762011-02-24 Joel Brobecker <brobecker@adacore.com>
16877
16878 Revert the following patch (not approved yet):
16879 2011-02-21 Hui Zhu <teawater@gmail.com>
16880 * tracepoint.c (tp_printf): New function.
16881 (eval_agent_expr): Handle gdb_agent_op_printf.
16882
f9c6ff72
HZ
168832011-02-21 Hui Zhu <teawater@gmail.com>
16884
16885 * tracepoint.c (tp_printf): New function.
16886 (eval_agent_expr): Handle gdb_agent_op_printf.
16887
94d5e490
TT
168882011-02-18 Tom Tromey <tromey@redhat.com>
16889
16890 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16891 (tracepoint.o): Likewise.
16892 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16893 (gdb_agent_op_names): Likewise.
16894
c7f96d2b
TT
168952011-02-18 Tom Tromey <tromey@redhat.com>
16896
16897 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16898 gdb_agent_op_rot>: New constants.
16899 (gdb_agent_op_names): Add pick and roll.
16900 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16901 cases.
16902
0feedb2c
JK
169032011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16904
16905 * aclocal.m4: Regenerated with aclocal-1.11.1.
16906
b3b9301e
PA
169072011-02-14 Pedro Alves <pedro@codesourcery.com>
16908
16909 * server.c (handle_qxfer_traceframe_info): New.
16910 (qxfer_packets): Register "traceframe-info".
16911 (handle_query): Report support for qXfer:traceframe-info:read+.
16912 * tracepoint.c (match_blocktype): New.
16913 (traceframe_find_block_type): Rename to ...
16914 (traceframe_walk_blocks): ... this. Add callback filter argument,
16915 and use it.
16916 (traceframe_find_block_type): New, reimplemented on top of
16917 traceframe_walk_blocks.
16918 (build_traceframe_info_xml): New.
16919 (traceframe_read_info): New.
16920 * server.h (traceframe_read_info): Declare.
16921
4f3e6fb7
YQ
169222011-02-11 Yao Qi <yao@codesourcery.com>
16923
16924 * configure.ac: Call AC_PROG_RANLIB.
16925 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16926 * configure: Regenerate.
16927
764880b7
PA
169282011-02-07 Pedro Alves <pedro@codesourcery.com>
16929
16930 * server.c (gdb_read_memory): Change return semantics to allow
16931 partial transfers.
16932 (handle_search_memory_1): Adjust.
16933 (process_serial_event) <'m' packet>: Handle partial transfers.
16934 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16935
1c79eb8a
PA
169362011-01-28 Pedro Alves <pedro@codesourcery.com>
16937
16938 * regcache.c (init_register_cache): Initialize
16939 regcache->register_status.
16940 (free_register_cache): Release regcache->register_status.
16941 (regcache_cpy): Copy register_status.
16942 (registers_to_string): Print 'x's for unavailable registers.
16943 (supply_register): Mark the register's status valid or
16944 unavailable, depending on whether a buffer was passed in or not.
16945 (supply_register_zeroed): New.
16946 (supply_regblock): Mark the registers' status valid or
16947 unavailable, depending on whether a buffer was passed in or not.
16948 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16949 (struct regcache): New `register_status' field.
16950 (supply_register_zeroed): Declare.
16951 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16952 supply_register_zeroed, rather than passing a NULL buffer to
16953 supply_register.
16954 * tracepoint.c (fetch_traceframe_registers): Update comment.
16955
85724a0e
PA
169562011-01-28 Pedro Alves <pedro@codesourcery.com>
16957
16958 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16959 buffer explicit.
16960
d08aafef
PA
169612011-01-25 Pedro Alves <pedro@codesourcery.com>
16962
16963 * server.h (decode_xfer_write): Change prototype.
16964 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16965 and don't extract the annex here.
16966 * server.c (decode_xfer_read): Remove `annex' parameter,
16967 and don't extract the annex here.
16968 (decode_xfer): New.
16969 (struct qxfer): New.
16970 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16971 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16972 (handle_qxfer_statictrace): New functions, abstracted out from
16973 handle_query, and made to use the struct qxfer interface.
16974 (handle_threads_qxfer_proper): Rename to ...
16975 (handle_qxfer_threads_proper): ... this.
16976 (handle_threads_qxfer): Rename to ...
16977 (handle_qxfer_threads): ... this. Adjust.
16978 (qxfer_packets): New array.
16979 (handle_qxfer): New function.
16980 (handle_query): Use handle_qxfer.
16981
493e2a69
MS
169822011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16983
16984 * gdbreplay.c: Shorten lines of >= 80 columns.
16985 * linux-low.c: Ditto.
16986 * linux-ppc-low.c: Ditto.
16987 * linux-s390-low.c: Ditto.
16988 * linux-sparc-low.c: Ditto.
16989 * linux-x86-low.c: Ditto.
16990 * linux-xtensa-low.c: Ditto.
16991 * mem-break.c: Ditto.
16992 * nto-low.c: Ditto.
16993 * regcache.h: Ditto.
16994 * remote-utils.c: Ditto.
16995 * server.c: Ditto.
16996 * server.h: Ditto.
16997 * thread-db.c: Ditto.
16998 * tracepoint.c: Ditto.
16999 * utils.c: Ditto.
17000 * win32-low.h: Ditto.
17001
44944448
JB
170022011-01-05 Joel Brobecker <brobecker@adacore.com>
17003
17004 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17005 update.
17006
71ce852c
JB
170072011-01-01 Joel Brobecker <brobecker@adacore.com>
17008
17009 * server.c (gdbserver_version): Update copyright year in version
17010 output.
17011 * gdbreplay.c (gdbreplay_version): Ditto.
17012
eb826dc6
MF
170132010-12-29 Jie Zhang <jie.zhang@analog.com>
17014
17015 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17016 * linux-bfin-low.c: New file.
17017 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17018 PT_DATA_ADDR for BFIN targets.
17019 * Makefile.in (SFILES): Add linux-bfin-low.c.
17020 (clean): Remove reg-bfin.c.
17021 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17022 * README: Mention supported Blackfin targets.
17023
39ab222a
MF
170242010-12-23 Mike Frysinger <vapier@gentoo.org>
17025
17026 * .gitignore: New file.
17027
a1f2ce7d
MF
170282010-11-16 Mike Frysinger <vapier@gentoo.org>
17029
17030 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17031
f474844c
JZ
170322010-10-22 Jie Zhang <jie@codesourcery.com>
17033
17034 * Makefile.in: Add FLAGS_TO_PASS variable.
17035 (install): Remove dependency of install-only and recursively
17036 invoke make for install-only.
17037
f1048712
DE
170382010-10-04 Doug Evans <dje@google.com>
17039
17040 * Makefile.in (uninstall): Use $(DESTDIR).
17041
b53a1623
PA
170422010-09-24 Pedro Alves <pedro@codesourcery.com>
17043
e6ee044d
PA
17044 PR gdb/11842
17045
b53a1623
PA
17046 * linux-x86-low.c (compat_siginfo_from_siginfo)
17047 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17048 si_code is < 0. Check for si_code == SI_TIMER before checking for
17049 si_code < 0.
17050
fa1bd1e4
JB
170512010-09-13 Joel Brobecker <brobecker@adacore.com>
17052
17053 * lynx-i386-low.c: New file.
17054 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17055
47fac8f8
JB
170562010-09-13 Joel Brobecker <brobecker@adacore.com>
17057
17058 * lynx-low.c (ptrace_request_to_str): Remove handling for
17059 request values that have been removed in LynxOS 5.x.
17060
1adfc54d
JB
170612010-09-13 Joel Brobecker <brobecker@adacore.com>
17062
17063 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17064 <ptrace.h>
17065
c2a66c29
NS
170662010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17067
17068 * configure.ac: Add --enable-inprocess-agent option.
17069 * configure: Rebuilt.
17070
32fcada3
YQ
170712010-09-06 Yao Qi <yao@codesourcery.com>
17072
17073 * linux-low.c (linux_kill): Remove unused variable.
17074 (linux_stabilize_threads): Likewise.
17075 * server.c (start_inferior): Likewise.
17076 (queue_stop_reply_callback): Likewise.
17077 * tracepoint.c (do_action_at_tracepoint): Likewise.
17078
0cccb683
YQ
170792010-09-06 Yao Qi <yao@codesourcery.com>
17080
17081 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17082 on return.
17083
423ec54c
JK
170842010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17085
17086 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17087
12ac6819
PA
170882010-09-06 Pedro Alves <pedro@codesourcery.com>
17089
17090 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17091 "$(IPA_DEPFILES)".
17092
8ed54b31
JB
170932010-09-01 Joel Brobecker <brobecker@adacore.com>
17094
17095 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17096 gdbserver/lynx-ppc-low.c: New files.
17097 * Makefile.in (lynx_low_h): New variable.
17098 (lynx-low.o, lynx-ppc-low.o): New rules.
17099 * configure.ac: On LynxOS, link with -lnetinet.
17100 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17101 * configure: regenerate.
17102
bb0116a4
JB
171032010-09-01 Joel Brobecker <brobecker@adacore.com>
17104
17105 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17106 * configure.ac: Add check for vasprintf and vsnprintf.
17107 * configure, config.in: Regenerate.
17108 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17109
a778ab81 171102010-09-01 Joel Brobecker <brobecker@adacore.com>
17111
17112 * gdbreplay.c: Move include of alloca.h up, next to include of
17113 malloc.h.
17114 * server.h: Add include of malloc.h.
17115 * mem-break.c: Remove include of malloc.h.
17116 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17117
8b034a19 171182010-09-01 Joel Brobecker <brobecker@adacore.com>
17119
17120 * Makefile.in (memmem.o): Build with -Wno-error.
17121
171222010-09-01 Joel Brobecker <brobecker@adacore.com>
17123
17124 * utils.c (xsnprintf): Make non-static.
17125 * server.h: Add xsnprintf declaration.
17126 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17127 replace calls to snprintf by calls to xsnprintf throughout.
17128
171292010-09-01 Joel Brobecker <brobecker@adacore.com>
17130
17131 * configure.ac: Add configure check for alloca.
17132 * configure, config.in: Regenerate.
17133 * server.h: Include alloca.h if it exists.
17134 * gdbreplay.c: Include alloca.h if it exists.
17135
1a981360
PA
171362010-08-28 Pedro Alves <pedro@codesourcery.com>
17137
17138 * linux-low.c (__SIGRTMIN): Define if not already defined.
17139 (linux_create_inferior): Check for __ANDROID__ rather than
17140 __SIGRTMIN.
17141 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17142 are already deferred.
17143 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17144 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17145 stopped and already has a pending signal to report.
17146 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17147 a pending signal to report or is moving out of a jump pad.
17148 (linux_init_signals): Check for __ANDROID__ rather than
17149 __SIGRTMIN.
17150
b4d51a55
PA
171512010-08-28 Pedro Alves <pedro@codesourcery.com>
17152
17153 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17154 debug_threads check. Avoid a linear search when not doing debug
17155 output.
17156
ec48365d
PA
171572010-08-27 Pedro Alves <pedro@codesourcery.com>
17158
17159 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17160 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17161 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17162 (process_event): Change local fd's type to gdb_fildes_t.
17163 (create_file_handler): Adjust prototype.
17164 (delete_file_handler): Adjust prototype.
17165 (handle_file_event): Adjust prototype. Use pfildes.
17166 (create_file_event): Adjsut prototype.
17167 * remote-utils.c (remote_desc, listen_desc): Change type to
17168 gdb_fildes_t.
17169 * server.h: New gdb_fildes_t typedef.
17170 [USE_WIN32API]: Include winsock2.h.
17171 (delete_file_handler, add_file_handler): Adjust prototypes.
17172 (pfildes): Declare.
17173 * utils.c (pfildes): New.
17174
854d88f0
PA
171752010-08-27 Pedro Alves <pedro@codesourcery.com>
17176
17177 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17178 * configure: Regenerate.
17179
0146f85b
PA
171802010-08-27 Pedro Alves <pedro@codesourcery.com>
17181
17182 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17183 (linux_done_accessing_memory): ... this.
17184 (linux_target_ops): Adjust.
17185 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17186 * nto-low.c (nto_target_ops): Adjust comment.
17187 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17188 * spu-low.c (spu_target_ops): Adjust comment.
17189 * target.h (target_ops): Rename unprepare_to_access_memory field
17190 to done_accessing_memory.
17191 (unprepare_to_access_memory): Rename to ...
17192 (done_accessing_memory): ... this.
17193
90d74c30
PA
171942010-08-26 Pedro Alves <pedro@codesourcery.com>
17195
17196 * linux-low.c (linux_prepare_to_access_memory): New.
17197 (linux_unprepare_to_access_memory): New.
17198 (linux_target_ops): Install them.
17199 * server.c (read_memory): Rename to ...
17200 (gdb_read_memory): ... this. Use
17201 prepare_to_access_memory/prepare_to_access_memory.
17202 (write_memory): Rename to ...
17203 (gdb_write_memory): ... this. Use
17204 prepare_to_access_memory/prepare_to_access_memory.
17205 (handle_search_memory_1): Adjust.
17206 (process_serial_event): Adjust.
17207 * target.h (struct target_ops): New fields
17208 prepare_to_access_memory and unprepare_to_access_memory.
17209 (prepare_to_access_memory, unprepare_to_access_memory): New.
17210 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17211 prepare_to_access_memory/prepare_to_access_memory.
17212 * nto-low.c (nto_target_ops): Adjust.
17213 * spu-low.c (spu_target_ops): Adjust.
17214 * win32-low.c (win32_target_ops): Adjust.
17215
fd467969
PA
172162010-08-26 Pedro Alves <pedro@codesourcery.com>
17217
17218 * Makefile.in (WARN_CFLAGS): Get it from configure.
17219 (WERROR_CFLAGS): New.
17220 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17221 * configure.ac: Introduce --enable-werror, which adds -Werror to
17222 the compiler command line. Enabled by default. Disable with
17223 --disable-werror. Add -Wdeclaration-after-statement
17224 Wpointer-arith and -Wformat-nonliteral to warning flags.
17225 * configure: Regenerate.
17226
331e2f5f
PA
172272010-08-26 Pedro Alves <pedro@codesourcery.com>
17228
17229 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17230
e581f2b4
PA
172312010-08-26 Pedro Alves <pedro@codesourcery.com>
17232
17233 * gdbreplay.c (remote_error): New.
17234 (gdbchar): New.
17235 (expect): Use gdbchar. Check for error reading from GDB.
17236 Clarify sync error output.
17237 (play): Check for errors writing to GDB.
17238 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17239 * remote-utils.c (getpkt): Check for errors writing to the remote
17240 descriptor.
17241
3c11dd79
PA
172422010-08-25 Pedro Alves <pedro@codesourcery.com>
17243
17244 * linux-low.c (linux_wait_1): Move non-debugging code out of
17245 `debug_threads' control.
17246
d20a8ad9
PA
172472010-08-25 Pedro Alves <pedro@codesourcery.com>
17248
17249 * linux-low.c (linux_wait_1): Don't set last_status here.
17250 * server.c (push_event, queue_stop_reply_callback): Assert we're
17251 not pushing a TARGET_WAITKIND_IGNORE event.
17252 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17253 (myresume, handle_target_event): Set the thread's last_resume_kind
17254 and last_status from the target returned status.
17255
964e4306
PA
172562010-08-25 Pedro Alves <pedro@codesourcery.com>
17257
17258 PR threads/10729
17259
17260 * linux-x86-low.c (update_debug_registers_callback): New.
17261 (i386_dr_low_set_addr): Use it.
17262 (i386_dr_low_get_addr): New.
17263 (i386_dr_low_set_control): Use update_debug_registers_callback.
17264 (i386_dr_low_get_control): New.
17265 (i386_dr_low_get_status): Adjust.
17266 * linux-low.c (linux_stop_lwp): New.
17267 * linux-low.h (linux_stop_lwp): Declare.
17268
17269 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17270 argument instead of a i386_debug_reg_state.
17271 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17272 a i386_debug_reg_state.
17273 (i386_insert_aligned_watchpoint): Adjust.
17274 (i386_remove_aligned_watchpoint): Adjust.
17275 (i386_low_stopped_data_address): Read the debug registers from the
17276 inferior instead of from the mirrors.
17277 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17278 (i386_dr_low_get_addr): Declare.
17279 (i386_dr_low_get_control): Declare.
17280 (i386_dr_low_get_status): Change prototype.
17281
17282 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17283 (i386_dr_low_get_addr): New.
17284 (i386_dr_low_get_control): New.
17285 (i386_dr_low_get_status): Adjust prototype. Return
17286 dr_status_mirror.
17287 (i386_initial_stuff): Clear dr_status_mirror and
17288 dr_control_mirror.
17289 (i386_get_thread_context): Adjust.
17290 (i386_set_thread_context): Adjust.
17291 (i386_thread_added): Adjust.
17292
5f21a75b
PA
172932010-08-24 Pedro Alves <pedro@codesourcery.com>
17294
17295 * linux-low.h (linux_thread_area): Delete declaration.
17296
3e4c1235
TS
172972010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17298
17299 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17300 after its termination.
17301
1971b033
PA
173022010-08-09 Pedro Alves <pedro@codesourcery.com>
17303
17304 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17305 (gdb_wants_all_stopped): Delete.
17306 (linux_wait_1): Don't call them.
17307 * server.c (handle_v_cont): Tag all threads as want-stopped.
17308 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17309 stopped as "client-wants-stopped".
17310
310444ac
PA
173112010-07-31 Pedro Alves <pedro@codesourcery.com>
17312
17313 * Makefile.in (signals_h): New.
17314 (server_h): Depend on it.
17315 (server.o): Don't depend on $(signals_def).
17316 (signals.o): Depend on $(signals_def).
17317
a19cae16
JK
173182010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17319
17320 * Makefile.in (signals_def): New.
17321 (server_h): Append include/gdb/signals.h and signals_def.
17322 (server.o): Append signals_def.
17323
30d50328
JK
173242010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17325
17326 * server.c (handle_target_event): Use target_signal_to_host for
17327 resume_info.sig initialization.
17328 * target.h (struct thread_resume) <sig>: New comment.
17329
5c3216e2
OS
173302010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17331
c6f46ca0
OS
17332 * server.c (handle_query): strcpy() the returned string from paddress()
17333 instead of sprintf().
5c3216e2
OS
17334 * utils.c (paddress): Return phex_nz().
17335
6bd31874
JB
173362010-07-07 Joel Brobecker <brobecker@adacore.com>
17337
17338 * server.c (handle_v_cont): Call mourn_inferior if process
17339 just exited.
17340 (myresume): Likewise.
17341
0fb4aa4b
PA
173422010-07-01 Pedro Alves <pedro@codesourcery.com>
17343
17344 Static tracepoints, and integration with UST.
17345
17346 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17347 * mem-break.c (uninsert_all_breakpoints)
17348 (reinsert_all_breakpoints): New.
17349 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17350 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17351 (gdb_agent_ust_loaded, helper_thread_id)
17352 (gdb_agent_helper_thread_id): New macros.
17353 (struct ipa_sym_addresses): Add addr_ust_loaded,
17354 addr_helper_thread_id, addr_cmd_buf.
17355 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17356 (in_process_agent_loaded_ust): New.
17357 (write_e_ust_not_loaded): New.
17358 (maybe_write_ipa_ust_not_loaded): New.
17359 (struct collect_static_trace_data_action): New.
17360 (enum tracepoint_type) <static_tracepoint>: New.
17361 (struct tracepoint) <handle>: Mention static tracepoints.
17362 (struct static_tracepoint_ctx): New.
17363 (CMD_BUF_SIZE): New.
17364 (add_tracepoint_action): Handle static tracepoint actions.
17365 (unprobe_marker_at): New.
17366 (clear_installed_tracepoints): Handle static tracepoints.
17367 (cmd_qtdp): Handle static tracepoints.
17368 (probe_marker_at): New.
17369 (cmd_qtstart): Handle static tracepoints.
17370 (response_tracepoint): Handle static tracepoints.
17371 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17372 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17373 (get_context_regcache): Handle static tracepoints.
17374 (do_action_at_tracepoint): Handle static tracepoint actions.
17375 (traceframe_find_block_type): Handle static trace data blocks.
17376 (traceframe_read_sdata): New.
17377 (download_tracepoints): Download static tracepoint actions.
17378 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17379 (GDB_PROBE_NAME): New.
17380 (ust_ops): New.
17381 (GET_UST_SYM): New.
17382 (USTF): New.
17383 (dlsym_ust): New.
17384 (ust_marker_to_static_tracepoint): New.
17385 (gdb_probe): New.
17386 (collect_ust_data_at_tracepoint): New.
17387 (gdb_ust_probe): New.
17388 (UNIX_PATH_MAX, SOCK_DIR): New.
17389 (gdb_ust_connect_sync_socket): New.
17390 (resume_thread, stop_thread): New.
17391 (run_inferior_command): New.
17392 (init_named_socket): New.
17393 (gdb_ust_socket_init): New.
17394 (cstr_to_hexstr): New.
17395 (next_st): New.
17396 (first_marker, next_marker): New.
17397 (response_ust_marker): New.
17398 (cmd_qtfstm, cmd_qtsstm): New.
17399 (unprobe_marker_at, probe_marker_at): New.
17400 (cmd_qtstmat, gdb_ust_thread): New.
17401 (gdb_ust_init): New.
17402 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17403 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17404 (ST_REGENTRY): New.
17405 (x86_64_st_collect_regmap): New.
17406 (X86_64_NUM_ST_COLLECT_GREGS): New.
17407 (AMD64_RIP_REGNUM): New.
17408 (supply_static_tracepoint_registers): New.
17409 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17410 (ST_REGENTRY): New.
17411 (i386_st_collect_regmap): New.
17412 (i386_NUM_ST_COLLECT_GREGS): New.
17413 (supply_static_tracepoint_registers): New.
17414 * server.c (handle_query): Handle qXfer:statictrace:read.
17415 <qSupported>: Report support for StaticTracepoints, and
17416 qXfer:statictrace:read features.
17417 * server.h (traceframe_read_sdata)
17418 (supply_static_tracepoint_registers): Declare.
17419 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17420 (unpack_varlen_hex): Include in IPA build.
17421 * Makefile.in (ustlibs, ustinc): New.
17422 (IPA_OBJS): Add remote-utils-ipa.o.
17423 ($(IPA_LIB)): Link -ldl and -lpthread.
17424 (UST_CFLAGS): New.
17425 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17426 * config.in, configure: Regenerate.
17427
9e4344e5
PA
174282010-06-20 Ian Lance Taylor <iant@google.com>
17429 Pedro Alves <pedro@codesourcery.com>
17430
17431 * linux-x86-low.c (always_true): Delete.
17432 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17433 trying to fool the compiler with always_true.
17434
c6beb2cb
PA
174352010-06-20 Pedro Alves <pedro@codesourcery.com>
17436
17437 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17438 conditions in gdbserver.
17439
d2ed6730
UW
174402010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17441
17442 * spu-low.c (spu_read_memory): Wrap around local store limit.
17443 (spu_write_memory): Likewise.
17444
4e29fb54
PA
174452010-06-15 Pedro Alves <pedro@codesourcery.com>
17446
17447 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17448 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17449 LONGEST uses.
17450 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17451 uses.
17452 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17453 uses with LONGEST uses.
17454
6a271cae
PA
174552010-06-14 Stan Shebs <stan@codesourcery.com>
17456 Pedro Alves <pedro@codesourcery.com>
17457
17458 Bytecode compiler.
17459
17460 * linux-x86-low.c: Include limits.h.
17461 (add_insns): New.
17462 (always_true): New.
17463 (EMIT_ASM): New.
17464 (EMIT_ASM32): New.
17465 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17466 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17467 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17468 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17469 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17470 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17471 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17472 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17473 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17474 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17475 (amd64_emit_void_call_2): New.
17476 (amd64_emit_ops): New.
17477 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17478 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17479 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17480 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17481 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17482 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17483 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17484 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17485 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17486 (i386_emit_stack_adjust, i386_emit_int_call_1)
17487 (i386_emit_void_call_2): New.
17488 (i386_emit_ops): New.
17489 (x86_emit_ops): New.
17490 (the_low_target): Install x86_emit_ops.
17491 * server.h (struct emit_ops): New.
17492 (get_raw_reg_func_addr): Declare.
17493 (current_insn_ptr, emit_error): Declare.
17494 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17495 (set_trace_state_variable_value): New defines.
17496 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17497 addr_get_trace_state_variable_value and
17498 addr_set_trace_state_variable_value.
17499 (symbol_list): New fields for get_raw_reg,
17500 get_trace_state_variable_value and set_trace_state_variable_value.
17501 (condfn): New typedef.
17502 (struct tracepoint): New field `compiled_cond'.
17503 (do_action_at_tracepoint): Clear compiled_cond.
17504 (get_trace_state_variable_value, set_trace_state_variable_value):
17505 Export in the IPA.
17506 (condition_true_at_tracepoint): If there's a compiled condition,
17507 run that.
17508 (current_insn_ptr, emit_error): New globals.
17509 (struct bytecode_address): New.
17510 (get_raw_reg_func_addr): New.
17511 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17512 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17513 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17514 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17515 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17516 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17517 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17518 (compile_tracepoint_condition, compile_bytecodes): New.
17519 * target.h (emit_ops): Forward declare.
17520 (struct target_ops): New field emit_ops.
17521 (target_emit_ops): New.
17522 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17523 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17524 * linux-low.c (linux_emit_ops): New.
17525 (linux_target_ops): Install it.
17526 * linux-low.h (struct linux_target_ops): New field emit_ops.
17527
92b72907
UW
175282010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17529
17530 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17531 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17532
fa593d66
PA
175332010-06-01 Pedro Alves <pedro@codesourcery.com>
17534 Stan Shebs <stan@codesourcery.com>
17535
17536 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17537 (all): Depend on $(extra_libraries).
17538 (install-only): Install the IPA.
17539 (IPA_OBJS, IPA_LIB): New.
17540 (clean): Remove the IPA lib.
17541 (IPAGENT_CFLAGS): New.
17542 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17543 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17544 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17545 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17546 * configure.ac: Check for atomic builtins support in the compiler.
17547 (IPA_DEPFILES, extra_libraries): Define.
17548 * configure.srv (ipa_obj): Add description.
17549 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17550 (i[34567]86-*-linux*): Set ipa_obj.
17551 (x86_64-*-linux*): Set ipa_obj.
17552 * linux-low.c (stabilizing_threads): New.
17553 (supports_fast_tracepoints): New.
17554 (linux_detach): Stabilize threads before detaching.
17555 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17556 the lwp is either not stabilizing, or is moving out of a jump pad.
17557 (linux_fast_tracepoint_collecting): New.
17558 (maybe_move_out_of_jump_pad): New.
17559 (enqueue_one_deferred_signal): New.
17560 (dequeue_one_deferred_signal): New.
17561 (linux_wait_for_event_1): If moving out of a jump pad, defer
17562 pending signals to later.
17563 (linux_stabilize_threads): New.
17564 (linux_wait_1): Check if threads need moving out of jump pads, and
17565 do it if so.
17566 (stuck_in_jump_pad_callback): New.
17567 (move_out_of_jump_pad_callback): New.
17568 (lwp_running): New.
17569 (linux_resume_one_lwp): Handle moving out of jump pads.
17570 (linux_set_resume_request): Dequeue deferred signals.
17571 (need_step_over_p): Also step over fast tracepoint jumps.
17572 (start_step_over): Also uninsert fast tracepoint jumps.
17573 (finish_step_over): Also reinsert fast tracepoint jumps.
17574 (linux_install_fast_tracepoint_jump): New.
17575 (linux_target_ops): Install linux_stabilize_threads and
17576 linux_install_fast_tracepoint_jump_pad.
17577 * linux-low.h (linux_target_ops) <get_thread_area,
17578 install_fast_tracepoint_jump_pad>: New fields.
17579 (struct lwp_info) <collecting_fast_tracepoint,
17580 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17581 (linux_get_thread_area): Declare.
17582 * linux-x86-low.c (jump_insn): New.
17583 (x86_get_thread_area): New.
17584 (append_insns): New.
17585 (push_opcode): New.
17586 (amd64_install_fast_tracepoint_jump_pad): New.
17587 (i386_install_fast_tracepoint_jump_pad): New.
17588 (x86_install_fast_tracepoint_jump_pad): New.
17589 (the_low_target): Install x86_get_thread_area and
17590 x86_install_fast_tracepoint_jump_pad.
17591 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17592 (struct fast_tracepoint_jump): New.
17593 (fast_tracepoint_jump_insn): New.
17594 (fast_tracepoint_jump_shadow): New.
17595 (find_fast_tracepoint_jump_at): New.
17596 (fast_tracepoint_jump_here): New.
17597 (delete_fast_tracepoint_jump): New.
17598 (set_fast_tracepoint_jump): New.
17599 (uninsert_fast_tracepoint_jumps_at): New.
17600 (reinsert_fast_tracepoint_jumps_at): New.
17601 (set_breakpoint_at): Use write_inferior_memory.
17602 (uninsert_raw_breakpoint): Use write_inferior_memory.
17603 (check_mem_read): Mask out fast tracepoint jumps.
17604 (check_mem_write): Mask out fast tracepoint jumps.
17605 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17606 (set_fast_tracepoint_jump): Declare.
17607 (delete_fast_tracepoint_jump)
17608 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17609 (reinsert_fast_tracepoint_jumps_at): Declare.
17610 * regcache.c: Don't compile many functions when building the
17611 in-process agent library.
17612 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17613 the register buffer in the heap.
17614 (free_register_cache): If the register buffer isn't owned by the
17615 regcache, don't free it.
17616 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17617 pre-existing register caches.
17618 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17619 type.
17620 (convert_ascii_to_int): : Constify `from' parameter type.
17621 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17622 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17623 the needed buffer in-place.
17624 (relocate_instruction): New.
17625 * server.c (handle_query) <qSymbols>: If the target supports
17626 tracepoints, give it a chance of looking up symbols. Report
17627 support for fast tracepoints.
17628 (handle_status): Stabilize threads.
17629 (process_serial_event): Adjust.
17630 * server.h (struct fast_tracepoint_jump): Forward declare.
17631 (struct process_info) <fast_tracepoint_jumps>: New field.
17632 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17633 (decode_X_packet, decode_M_packet): Adjust.
17634 (relocate_instruction): Declare.
17635 (in_process_agent_loaded): Declare.
17636 (tracepoint_look_up_symbols): Declare.
17637 (struct fast_tpoint_collect_status): Declare.
17638 (fast_tracepoint_collecting): Declare.
17639 (force_unlock_trace_buffer): Declare.
17640 (handle_tracepoint_bkpts): Declare.
17641 (initialize_low_tracepoint)
17642 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17643 * target.h (struct target_ops) <stabilize_threads,
17644 install_fast_tracepoint_jump_pad>: New fields.
17645 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17646 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17647 [HAVE_STDINT_H]: Include stdint.h.
17648 (trace_debug_1): Rename to ...
17649 (trace_vdebug): ... this.
17650 (trace_debug): Rename to ...
17651 (trace_debug_1): ... this. Add `level' parameter.
17652 (trace_debug): New.
17653 (ATTR_USED, ATTR_NOINLINE): New.
17654 (IP_AGENT_EXPORT): New.
17655 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17656 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17657 (about_to_request_buffer_space, trace_buffer_is_full)
17658 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17659 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17660 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17661 (traceframe_write_count, traceframes_created)
17662 (trace_state_variables)
17663 New renaming defines.
17664 (struct ipa_sym_addresses): New.
17665 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17666 (symbol_list): New.
17667 (ipa_sym_addrs): New.
17668 (all_tracepoint_symbols_looked_up): New.
17669 (in_process_agent_loaded): New.
17670 (write_e_ipa_not_loaded): New.
17671 (maybe_write_ipa_not_loaded): New.
17672 (tracepoint_look_up_symbols): New.
17673 (debug_threads) [IN_PROCESS_AGENT]: New.
17674 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17675 (UNKNOWN_SIDE_EFFECTS): New.
17676 (stop_tracing): New.
17677 (flush_trace_buffer): New.
17678 (stop_tracing_bkpt): New.
17679 (flush_trace_buffer_bkpt): New.
17680 (read_inferior_integer): New.
17681 (read_inferior_uinteger): New.
17682 (read_inferior_data_pointer): New.
17683 (write_inferior_data_pointer): New.
17684 (write_inferior_integer): New.
17685 (write_inferior_uinteger): New.
17686 (struct collect_static_trace_data_action): Delete.
17687 (enum tracepoint_type): New.
17688 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
17689 <actions_str, step_actions, step_actions_str>: Only include in
17690 GDBserver.
fa593d66
PA
17691 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17692 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17693 (tracepoints): Use IP_AGENT_EXPORT.
17694 (last_tracepoint): Don't include in the IPA.
17695 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17696 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17697 (alloced_trace_state_variables): New.
17698 (trace_state_variables): Use IP_AGENT_EXPORT.
17699 (traceframe_t): Delete unused variable.
17700 (circular_trace_buffer): Don't include in the IPA.
17701 (trace_buffer_start): Delete.
17702 (struct trace_buffer_control): New.
17703 (trace_buffer_free): Delete.
17704 (struct ipa_trace_buffer_control): New.
17705 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17706 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17707 New.
17708 (trace_buffer_ctrl): New.
17709 (TRACE_BUFFER_CTRL_CURR): New.
17710 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17711 Reimplement as macros.
17712 (trace_buffer_wrap): Delete.
17713 (traceframe_write_count, traceframe_read_count)
17714 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17715 (struct tracepoint_hit_ctx) <type>: New field.
17716 (struct fast_tracepoint_ctx): New.
17717 (memory_barrier): New.
17718 (cmpxchg): New.
17719 (record_tracepoint_error): Update atomically in the IPA.
17720 (clear_inferior_trace_buffer): New.
17721 (about_to_request_buffer_space): New.
17722 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17723 updating the same buffer.
17724 (add_tracepoint): Default the tracepoint's type to trap
17725 tracepoint, and orig_size to -1.
17726 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17727 internal variables.
17728 (create_trace_state_variable): New parameter `gdb'. Handle it.
17729 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17730 (cmd_qtdp): Handle fast tracepoints.
17731 (cmd_qtdv): Adjust.
17732 (max_jump_pad_size): New.
17733 (gdb_jump_pad_head): New.
17734 (get_jump_space_head): New.
17735 (claim_jump_space): New.
17736 (sort_tracepoints): New.
17737 (MAX_JUMP_SIZE): New.
17738 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17739 IPA.
17740 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17741 support. Upload fast traceframes, and delete internal IPA
17742 breakpoints.
17743 (stop_tracing_handler): New.
17744 (flush_trace_buffer_handler): New.
17745 (cmd_qtstop): Upload fast tracepoints.
17746 (response_tracepoint): Handle fast tracepoints.
17747 (tracepoint_finished_step): Upload fast traceframes. Set the
17748 tracepoint hit context's tracepoint type.
17749 (handle_tracepoint_bkpts): New.
17750 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17751 type. Add comment about fast tracepoints.
17752 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17753 non-existing action_str field.
17754 (get_context_regcache): Handle fast tracepoints.
17755 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17756 to the regcache.
17757 (fast_tracepoint_from_jump_pad_address): New.
17758 (fast_tracepoint_from_ipa_tpoint_address): New.
17759 (collecting_t): New.
17760 (force_unlock_trace_buffer): New.
17761 (fast_tracepoint_collecting): New.
17762 (collecting): New.
17763 (gdb_collect): New.
17764 (write_inferior_data_ptr): New.
17765 (target_tp_heap): New.
17766 (target_malloc): New.
17767 (download_agent_expr): New.
17768 (UALIGN): New.
17769 (download_tracepoints): New.
17770 (download_trace_state_variables): New.
17771 (upload_fast_traceframes): New.
17772 (IPA_FIRST_TRACEFRAME): New.
17773 (IPA_NEXT_TRACEFRAME_1): New.
17774 (IPA_NEXT_TRACEFRAME): New.
17775 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17776 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17777 (gdb_jump_pad_buffer_end): New.
17778 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17779 (initialize_tracepoint): Adjust.
17780 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17781 buffer. Initialize the low module.
17782 * utils.c (PREFIX, TOOLNAME): New.
17783 (malloc_failure): Use PREFIX.
17784 (error): In the IPA, an error causes an exit.
17785 (fatal, warning): Use PREFIX.
17786 (internal_error): Use TOOLNAME.
17787 (NUMCELLS): Increase to 10.
17788 * configure, config.in: Regenerate.
17789
d149dd1d
PA
177902010-06-01 Pedro Alves <pedro@codesourcery.com>
17791
17792 * server.c (handle_query) <qSupported>: Do two passes over the
17793 qSupported string to avoid nesting strtok.
17794
f6528abd
JK
177952010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17796
17797 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17798 (CDEPS): New.
17799 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17800 -Wl,--dynamic-list.
17801 * configure: Regenerate.
17802 * proc-service.list: New.
17803
ca2a87a0
JK
178042010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17805
17806 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17807 New comment.
17808
363a6e9f
OS
178092010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17810
17811 * gdbreplay.c (remote_open): Check error return from socket() call by
17812 its equality to -1 not by it being negative.
17813 * remote-utils.c (remote_open): Likewise.
17814
d23b6cb1
PA
178152010-05-23 Pedro Alves <pedro@codesourcery.com>
17816
17817 * config.h: Regenerate.
17818
28d3cf85
MK
178192010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17820
17821 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17822 doesn't provide PTRACE_GET_THREAD_AREA.
17823
fea36a59
MK
178242010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17825
17826 * linux-m68k-low.c: Include <asm/ptrace.h>
17827 (ps_get_thread_area): Implement.
17828
24b066ba
DE
178292010-05-03 Doug Evans <dje@google.com>
17830
17831 * event-loop.c (struct callback_event): New struct.
17832 (callback_list): New global.
17833 (append_callback_event, delete_callback_event): New functions.
17834 (process_callback): New function.
17835 (start_event_loop): Call it.
17836 * remote-utils.c (NOT_SCHEDULED): Define.
17837 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17838 moved out of readchar.
17839 (readchar): Rewrite. Call reschedule before returning.
17840 (reset_readchar): New function.
17841 (remote_close): Call it.
17842 (process_remaining, reschedule): New functions.
17843 * server.h (callback_handler_func): New typedef.
17844 (append_callback_event, delete_callback_event): Declare.
17845
9836d6ea
PA
178462010-05-03 Pedro Alves <pedro@codesourcery.com>
17847
17848 * proc-service.c (ps_pglobal_lookup): Use
17849 thread_db_look_up_one_symbol.
17850 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17851 parameter. Use it instead of all_symbols_looked_up.
17852 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17853 field.
17854 (all_symbols_looked_up): Don't declare.
17855 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17856 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17857 field.
17858 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17859 Set all_symbols_looked_up here.
17860 (thread_db_look_up_one_symbol): New.
17861 (thread_db_get_tls_address): Adjust.
17862 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17863 thread_db object on the heap, and tentatively set it in the
17864 process structure.
17865 (thread_db_init): Don't set all_symbols_looked_up here.
17866 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17867
7984d532
PA
178682010-05-03 Pedro Alves <pedro@codesourcery.com>
17869
17870 * linux-low.c (linux_kill, linux_detach): Adjust.
17871 (status_pending_p_callback): Remove redundant statement. Check
17872 for !TARGET_WAITIKIND_IGNORE, instead of
17873 TARGET_WAITKIND_STOPPED.
17874 (handle_tracepoints): Make sure LWP is locked. Adjust.
17875 (linux_wait_for_event_1): Adjust.
17876 (linux_cancel_breakpoints): New.
17877 (unsuspend_one_lwp): New.
17878 (unsuspend_all_lwps): New.
17879 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17880 (send_sigstop_callback): Change return type to int, add new
17881 `except' parameter and handle it.
17882 (suspend_and_send_sigstop_callback): New.
17883 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17884 pass them down. If SUSPEND, also increment the lwp's suspend
17885 count.
17886 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17887 (need_step_over_p): Don't consider suspended LWPs.
17888 (start_step_over): Adjust.
17889 (proceed_one_lwp): Change return type to int, add new `except'
17890 parameter and handle it.
17891 (unsuspend_and_proceed_one_lwp): New.
17892 (proceed_all_lwps): Use find_inferior instead of
17893 for_each_inferior.
17894 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17895 also decrement the suspend count of LWPs. Pass `except' down,
17896 instead of hacking its suspend count.
17897 (linux_pause_all): Add `freeze' parameter. Adjust.
17898 (linux_unpause_all): New.
17899 (linux_target_ops): Install linux_unpause_all.
17900 * server.c (handle_status): Adjust.
17901 * target.h (struct target_ops): New fields `unpause_all' and
17902 `cancel_breakpoints'. Add new parameter to `pause_all'.
17903 (pause_all): Add new `freeze' parameter.
17904 (unpause_all): New.
17905 (cancel_breakpoints): New.
17906 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17907 cancel breakpoints.
17908 (cmd_qtstart): Pause threads.
17909 (stop_tracing): Pause threads, and cancel breakpoints.
17910 * win32-low.c (win32_target_ops): Adjust.
17911
e471f25b
PA
179122010-05-03 Pedro Alves <pedro@codesourcery.com>
17913
17914 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17915 the inferior right away from here...
17916 (linux_wait_1): ... to here, and adjust to check the thread's
17917 last_resume_kind instead of the lwp's step or stop_expected flags.
17918
1915ef4f
PA
179192010-05-02 Pedro Alves <pedro@codesourcery.com>
17920
17921 * README: Use consistent `GDB' and `GDBserver' spellings.
17922
f9e39928
PA
179232010-05-02 Pedro Alves <pedro@codesourcery.com>
17924
17925 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17926 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17927 (linux_detach_one_lwp): Assume the lwp is stopped.
17928 (any_thread_of): Delete.
17929 (linux_detach): Stop all lwps here. Don't blindly delete all
17930 breakpoints.
17931 (delete_lwp_callback): New.
17932 (linux_mourn): Delete all lwps of the process that is gone.
17933 (linux_wait_1): Don't delete the last lwp of the process here.
17934 * mem-break.h (mark_breakpoints_out): Declare.
17935 * mem-break.c (mark_breakpoints_out): New.
17936 (free_all_breakpoints): Use it.
17937 * server.c (handle_target_event): If the process is gone, mark
17938 breakpoints out.
17939 * thread-db.c (struct thread_db) <create_bp>: New field.
17940 (thread_db_enable_reporting): Fix prototype. Store a thread event
17941 breakpoint reference in the thread_db struct.
17942 (thread_db_load_search): Clear the thread_db object.
17943 (try_thread_db_load_1): Ditto.
17944 (switch_to_process): New.
17945 (disable_thread_event_reporting): Use it.
17946 (remove_thread_event_breakpoints): New.
17947 (thread_db_detach, thread_db_mourn): Use it.
17948
1e7fc18c
PA
179492010-05-01 Pedro Alves <pedro@codesourcery.com>
17950
17951 * linux-low.c (linux_enable_event_reporting): New.
17952 (linux_wait_for_event_1, handle_extended_wait): Use it.
17953
02fc4de7
PA
179542010-04-30 Pedro Alves <pedro@codesourcery.com>
17955
17956 * linux-low.c (linux_kill_one_lwp, linux_kill)
17957 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17958 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17959 SIGSTOP even if the LWP is stopped.
17960 (send_sigstop_callback): New.
17961 (stop_all_lwps): Use send_sigstop_callback instead.
17962 (linux_resume_one_thread): Adjust.
17963 (proceed_one_lwp): Still proceed an LWP that the client has
17964 requested to stop, if we haven't reported it as stopped yet. Make
17965 sure that LWPs the client want stopped, have a pending SIGSTOP.
17966
bc3b5632
DE
179672010-04-26 Doug Evans <dje@google.com>
17968
ae1ada35
DE
17969 * server.c (handle_general_set): Make static.
17970
bc3b5632
DE
17971 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17972 Print received char after testing for error/eof instead of before.
17973 (input_interrupt): Tweak comment.
17974
65730243
DE
179752010-04-23 Doug Evans <dje@google.com>
17976
17977 * server.c (start_inferior): Print inferior argv if --debug.
17978
a8ae7dc0
AR
179792010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17980
17981 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17982 * nto-x86-low.c: Include server.h
17983
1c07cc19
PM
179842010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17985
17986 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17987 be consistent with other sources of this directory.
17988 (init_registers_amd64): Correct name of source file of this function
17989 in the comment.
17990
e0a61e09
PM
179912010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17992
17993 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17994 64-bit executables.
17995
54709339
PM
179962010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17997
17998 * win32-i386-low.c: Add 64-bit support.
17999 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18000 (init_registers_amd64): Declare.
18001 (mappings): Add 64-bit version of array.
18002 (init_windows_x86): New function.
18003 (the_low_target): Change init_arch field to init_windows_x86.
18004
e8f0053d
PM
180052010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18006
18007 * win32-low.c: Adapt to support also 64-bit architecture.
18008 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18009 (get_image_name): Use SIZE_T type for local variable `done'.
18010 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18011 (toolhelp_get_dll_name): Idem.
18012 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18013 Use uintptr_t typecast to avoid warning.
18014 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18015 (handle_exception): Use phex_nz to avoid warning.
18016 (win32_wait): Remove unused local variable `process'.
18017
c481e77e
PM
180182010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18019
18020 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18021 `amd64-avx.o'.
18022
12ea4b69
PM
180232010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18024
18025 * configure.ac: Use `ws2_32' library for srv_mingw.
18026 * configure: Regenerate.
18027 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18028 * remote-utils.c: Likewise.
18029
f6d1620c
L
180302010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18031
18032 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18033 if __x86_64__ is defined.
18034
8e642873
PM
180352010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18036
18037 * configure: Regenerate.
18038
711e434b
PM
180392010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18040
18041 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18042 * target.h (target_ops): New get_tib_address field.
18043 * win32-low.h (win32_thread_info): Add thread_local_base field.
18044 * win32-low.c (child_add_thread): Add tlb argument.
18045 Set thread_local_base field to TLB.
18046 (get_child_debug_event): Adapt to child_add_thread change.
18047 (win32_get_tib_address): New function.
18048 (win32_target_ops): Set get_tib_address field to
18049 win32_get_tib_address.
18050 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18051
505106cd
PA
180522010-04-12 Pedro Alves <pedro@codesourcery.com>
18053
505106cd
PA
18054 * linux-low.c (linux_mourn): Also remove the process.
18055 * server.c (handle_target_event): Don't remove the process here.
18056 * nto-low.c (nto_mourn): New.
18057 (nto_target_ops): Install it.
18058 * spu-low.c (spu_mourn): New.
18059 (spu_target_ops): Install it.
18060 * win32-low.c (win32_mourn): New.
18061 (win32_target_ops): Install it.
18062
e8470a06
PA
180632010-04-12 Pedro Alves <pedro@codesourcery.com>
18064
18065 * server.h (buffer_xml_printf): Remove redundant `;'.
18066
45ba0d02
PA
180672010-04-12 Pedro Alves <pedro@codesourcery.com>
18068
18069 * regcache.c (set_register_cache): Invalidate regcaches before
18070 changing the register cache layout.
18071 (regcache_invalidate_one): Allow a NULL regcache.
18072 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18073 regcaches before changing the register cache layout or the target
18074 regsets.
18075
59e04013
L
180762010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18077
18078 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18079 variable warning on Linux/x86-64.
18080
8336d594
PA
180812010-04-11 Pedro Alves <pedro@codesourcery.com>
18082
18083 GDBserver disconnected tracing support.
18084
18085 * linux-low.c (linux_remove_process): Delete.
18086 (add_lwp): Don't set last_resume_kind here.
18087 (linux_kill): Use `mourn'.
18088 (linux_detach): Use `thread_db_detach', and `mourn'.
18089 (linux_mourn): New.
18090 (linux_attach_lwp_1): Adjust comment.
18091 (linux_attach): last_resume_kind moved the thread_info; adjust.
18092 (status_pending_p_callback): Adjust.
18093 (linux_wait_for_event_1): Adjust.
18094 (count_events_callback, select_singlestep_lwp_callback)
18095 (select_event_lwp_callback, cancel_breakpoints_callback)
18096 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18097 (proceed_one_lwp): Adjust.
18098 (linux_async): Add debug output.
18099 (linux_thread_stopped): New.
18100 (linux_pause_all): New.
18101 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18102 linux_pause_all.
18103 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18104 (thread_db_free): Delete declaration.
18105 (thread_db_detach, thread_db_mourn): Declare.
18106 * thread-db.c (thread_db_init): Use thread_db_mourn.
18107 (thread_db_free): Delete, split in two.
18108 (disable_thread_event_reporting): New.
18109 (thread_db_detach): New.
18110 (thread_db_mourn): New.
18111
18112 * server.h (struct thread_info) <last_resume_kind>: New field.
18113 <attached>: Add comment.
18114 <gdb_detached>: New field.
18115 (handler_func): Change return type to int.
18116 (handle_serial_event, handle_target_event): Ditto.
18117 (gdb_connected): Declare.
18118 (tracing): Delete.
18119 (disconnected_tracing): Declare.
18120 (stop_tracing): Declare.
18121
18122 * server.c (handle_query) <qSupported>: Report support for
18123 disconnected tracing.
18124 (queue_stop_reply_callback): Account for running threads.
18125 (gdb_wants_thread_stopped): New.
18126 (gdb_wants_all_threads_stopped): New.
18127 (gdb_reattached_process): New.
18128 (handle_status): Clear the `gdb_detached' flag of all processes.
18129 In all-stop, stop all threads.
18130 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18131 (process_serial_event): If the remote connection breaks, or if an
18132 exit was forced with "monitor exit", force an event loop exit.
18133 Handle disconnected tracing on detach.
18134 (handle_serial_event): Adjust.
18135 (handle_target_event): If GDB isn't connected, forward events back
18136 to the inferior, unless the last process exited, in which case,
18137 exit gdbserver. Adjust interface.
18138
18139 * remote-utils.c (remote_open): Don't block in accept. Instead
18140 register an event loop source on the listen socket file
18141 descriptor. Refactor bits into ...
18142 (listen_desc): ... this new global.
18143 (gdb_connected): ... this new function.
18144 (enable_async_notification): ... this new function.
18145 (handle_accept_event): ... this new function.
18146 (remote_close): Clear remote_desc.
18147
18148 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18149
18150 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18151 New fields.
18152 (mourn_inferior): Define.
18153 (target_process_qsupported): Avoid the dangling else problem.
18154 (thread_stopped): Define.
18155 (pause_all): Define.
18156 (target_waitstatus_to_string): Declare.
18157 * target.c (target_waitstatus_to_string): New.
18158
18159 * tracepoint.c (tracing): Make extern.
18160 (disconnected_tracing): New.
18161 (stop_tracing): Make extern. Handle tracing stops due to GDB
18162 disconnecting.
18163 (cmd_qtdisconnected): New.
18164 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18165 (handle_tracepoint_general_set): Handle QTDisconnected.
18166
18167 * event-loop.c (event_handler_func): Change return type to int.
18168 (process_event): Bail out if the event handler wants the event
18169 loop to stop.
18170 (handle_file_event): Ditto.
18171 (start_event_loop): Bail out if the event handler wants the event
18172 loop to stop.
18173
18174 * nto-low.c (nto_target_ops): Adjust.
18175 * spu-low.c (spu_wait): Don't remove the process here.
18176 (spu_target_ops): Adjust.
18177 * win32-low.c (win32_wait): Don't remove the process here.
18178 (win32_target_ops): Adjust.
18179
5d267c4c
PA
181802010-04-11 Pedro Alves <pedro@codesourcery.com>
18181
18182 * regcache.c (realloc_register_cache): Invalidate inferior's
18183 regcache before recreating it.
18184
623ccd72
PA
181852010-04-09 Pedro Alves <pedro@codesourcery.com>
18186
18187 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18188
219f2f23
PA
181892010-04-09 Stan Shebs <stan@codesourcery.com>
18190 Pedro Alves <pedro@codesourcery.com>
18191
18192 * server.h (LONGEST): New.
18193 (struct thread_info) <while_stepping>: New field.
18194 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18195 Declare.
18196 (initialize_tracepoint, handle_tracepoint_general_set)
18197 (handle_tracepoint_query, tracepoint_finished_step)
18198 (tracepoint_was_hit, release_while_stepping_state_list):
18199 (current_traceframe): Declare.
18200 * server.c (handle_general_set): Handle tracepoint packets.
18201 (read_memory): New.
18202 (write_memory): New.
18203 (handle_search_memory_1): Use read_memory.
18204 (handle_query): Report support for conditional tracepoints, trace
18205 state variables, and tracepoint sources. Handle tracepoint
18206 queries.
18207 (main): Initialize the tracepoints module.
18208 (process_serial_event): Handle traceframe reads/writes.
18209
18210 * linux-low.c (handle_tracepoints): New.
18211 (linux_wait_1): Call it.
18212 (linux_resume_one_lwp): Handle while-stepping.
18213 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18214 (linux_target_ops): Install them.
18215 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18216 New field.
18217 * linux-x86-low.c (x86_supports_tracepoints): New.
18218 (the_low_target). Install it.
18219
18220 * mem-break.h (delete_breakpoint): Declare.
18221 * mem-break.c (delete_breakpoint): Make external.
18222
18223 * target.h (struct target_ops): Add `supports_tracepoints',
18224 `read_pc', and `write_pc' fields.
18225 (target_supports_tracepoints): Define.
18226 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18227 (phex_nz): New.
18228
18229 * regcache.h (struct regcache) <registers_owned>: New field.
18230 (init_register_cache, regcache_cpy): Declare.
18231 (regcache_read_pc, regcache_write_pc): Declare.
18232 (register_cache_size): Declare.
18233 (supply_regblock): Declare.
18234 * regcache.c (init_register_cache): New.
18235 (new_register_cache): Use it.
18236 (regcache_cpy): New.
18237 (register_cache_size): New.
18238 (supply_regblock): New.
18239 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 18240
219f2f23
PA
18241 * tracepoint.c: New.
18242
18243 * Makefile.in (OBS): Add tracepoint.o.
18244 (tracepoint.o): New rule.
18245
3a13a53b
L
182462010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18247
18248 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18249 (i386-mmx.o): New.
18250 (i386-mmx.c): Likewise.
18251 (i386-mmx-linux.o): Likewise.
18252 (i386-mmx-linux.c): Likewise.
18253
18254 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18255 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18256 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18257 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18258
18259 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18260 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18261 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18262
1570b33e
L
182632010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18264
18265 * Makefile.in (clean): Updated.
18266 (i386-avx.o): New.
18267 (i386-avx.c): Likewise.
18268 (i386-avx-linux.o): Likewise.
18269 (i386-avx-linux.c): Likewise.
18270 (amd64-avx.o): Likewise.
18271 (amd64-avx.c): Likewise.
18272 (amd64-avx-linux.o): Likewise.
18273 (amd64-avx-linux.c): Likewise.
18274
18275 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18276 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18277 (srv_amd64_regobj): Add amd64-avx.o.
18278 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18279 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18280 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18281 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18282 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18283 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18284 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18285
18286 * i387-fp.c: Include "i386-xstate.h".
18287 (i387_xsave): New.
18288 (i387_cache_to_xsave): Likewise.
18289 (i387_xsave_to_cache): Likewise.
18290 (x86_xcr0): Likewise.
18291
18292 * i387-fp.h (i387_cache_to_xsave): Likewise.
18293 (i387_xsave_to_cache): Likewise.
18294 (x86_xcr0): Likewise.
18295
18296 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18297 * linux-crisv32-low.c (target_regsets): Likewise.
18298 * linux-m68k-low.c (target_regsets): Likewise.
18299 * linux-mips-low.c (target_regsets): Likewise.
18300 * linux-ppc-low.c (target_regsets): Likewise.
18301 * linux-s390-low.c (target_regsets): Likewise.
18302 * linux-sh-low.c (target_regsets): Likewise.
18303 * linux-sparc-low.c (target_regsets): Likewise.
18304 * linux-xtensa-low.c (target_regsets): Likewise.
18305
18306 * linux-low.c: Include <sys/uio.h>.
18307 (regsets_fetch_inferior_registers): Support nt_type.
18308 (regsets_store_inferior_registers): Likewise.
18309 (linux_process_qsupported): New.
18310 (linux_target_ops): Add linux_process_qsupported.
18311
18312 * linux-low.h (regset_info): Add nt_type.
18313 (linux_target_ops): Add process_qsupported.
18314
18315 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18316 and <sys/uio.h>.
18317 (init_registers_i386_avx_linux): New.
18318 (init_registers_amd64_avx_linux): Likewise.
18319 (xmltarget_i386_linux_no_xml): Likewise.
18320 (xmltarget_amd64_linux_no_xml): Likewise.
18321 (PTRACE_GETREGSET): Likewise.
18322 (PTRACE_SETREGSET): Likewise.
18323 (x86_fill_xstateregset): Likewise.
18324 (x86_store_xstateregset): Likewise.
18325 (use_xml): Likewise.
18326 (x86_linux_update_xmltarget): Likewise.
18327 (x86_linux_process_qsupported): Likewise.
18328 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18329 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18330 init_registers_i386_linux here. Call
18331 x86_linux_update_xmltarget.
18332 (the_low_target): Add x86_linux_process_qsupported.
18333
18334 * server.c (handle_query): Call target_process_qsupported.
18335
18336 * target.h (target_ops): Add process_qsupported.
18337 (target_process_qsupported): New.
18338
fc7238bb
PA
183392010-04-03 Pedro Alves <pedro@codesourcery.com>
18340
18341 * inferiors.c (add_thread): Set last_status kind to
18342 TARGET_WAITKIND_IGNORE.
18343 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18344 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18345 (linux_wait_1): Move `thread' local definition to block that uses
18346 it. Don't NULL initialize `event_child'.
18347 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18348 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18349 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18350
bdabb078
PA
183512010-04-01 Pedro Alves <pedro@codesourcery.com>
18352
18353 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18354 an extended waitstatus, or by a watchpoint.
18355 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18356 thread was stepping or has been stopped by a watchpoint.
18357
d3bbe7a0
PA
183582010-04-01 Pedro Alves <pedro@codesourcery.com>
18359
18360 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18361 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18362 of another, then delete the previous, and validate all
18363 breakpoints.
18364 (validate_inserted_breakpoint): New.
18365 (delete_disabled_breakpoints): New.
18366 (validate_breakpoints): New.
18367 (check_mem_read): Validate breakpoints before trusting their
18368 shadow. Delete disabled breakpoints.
18369 (check_mem_write): Validate breakpoints before trusting they
18370 should be inserted. Delete disabled breakpoints.
18371 * mem-break.h (validate_breakpoints):
18372 * server.c (handle_query): Validate breakpoints when we see a
18373 qSymbol query.
18374
8b07ae33
PA
183752010-04-01 Pedro Alves <pedro@codesourcery.com>
18376
18377 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18378 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18379 if we could tell there's a GDB breakpoint at stop_pc.
18380 (need_step_over_p): Don't do a step over if we find a GDB
18381 breakpoint at the resume PC.
18382
18383 * mem-break.c (struct raw_breakpoint): New.
18384 (enum bkpt_type): New type `gdb_breakpoint'.
18385 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18386 fields. New field `raw'.
18387 (find_raw_breakpoint_at): New.
18388 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18389 breakpoint instead.
18390 (set_breakpoint_at): Adjust.
18391 (delete_raw_breakpoint): New.
18392 (release_breakpoint): New.
18393 (delete_breakpoint): Rename to...
18394 (delete_breakpoint_1): ... this. Add proc parameter. Use
18395 release_breakpoint. Return ENOENT.
18396 (delete_breakpoint): Reimplement.
18397 (find_breakpoint_at): Delete.
18398 (find_gdb_breakpoint_at): New.
18399 (delete_breakpoint_at): Delete.
18400 (set_gdb_breakpoint_at): New.
18401 (delete_gdb_breakpoint_at): New.
18402 (gdb_breakpoint_here): New.
18403 (set_reinsert_breakpoint): Use release_breakpoint.
18404 (uninsert_breakpoint): Rename to ...
18405 (uninsert_raw_breakpoint): ... this.
18406 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18407 (reinsert_raw_breakpoint): Change parameter type to
18408 raw_breakpoint.
18409 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18410 instead.
18411 (check_breakpoints): Adjust. Use release_breakpoint.
18412 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18413 (breakpoint_inserted_here): Ditto.
18414 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18415 Don't trust the breakpoint's shadow if it is not inserted.
18416 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18417 (delete_all_breakpoints): Adjust.
18418 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18419 use delete_breakpoint_1.
18420
18421 * mem-break.h (breakpoints_supported): Delete declaration.
18422 (set_gdb_breakpoint_at): Declare.
18423 (gdb_breakpoint_here): Declare.
18424 (delete_breakpoint_at): Delete.
18425 (delete_gdb_breakpoint_at): Declare.
18426
18427 * server.h (struct raw_breakpoint): Forward declare.
18428 (struct process_info): New field `raw_breakpoints'.
18429
18430 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18431 breakpoints.
18432
6bf5e0ba
PA
184332010-03-24 Pedro Alves <pedro@codesourcery.com>
18434
18435 * linux-low.c (status_pending_p_callback): Fix comment.
18436 (linux_wait_for_event_1): Move most of the internal breakpoint
18437 handling from here...
18438 (linux_wait_1): ... to here.
18439 (count_events_callback): New.
18440 (select_singlestep_lwp_callback): New.
18441 (select_event_lwp_callback): New.
18442 (cancel_breakpoints_callback): New.
18443 (select_event_lwp): New.
18444 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18445 priority to all LWPs that have had events that should be reported
18446 to the client. Cancel breakpoints when about to reporting the
18447 event to the client, not while stopping lwps. No longer cancel
18448 finished single-steps here.
18449 (cancel_finished_single_step): Delete.
18450 (cancel_finished_single_steps): Delete.
18451
414a389f
PA
184522010-03-24 Pedro Alves <pedro@codesourcery.com>
18453
18454 * mem-break.c (enum bkpt_type): New.
18455 (struct breakpoint): New field `type'.
18456 (set_breakpoint_at): Change return type to struct breakpoint
18457 pointer. Set type to `other_breakpoint' by default.
18458 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18459 in the breakpoint list.
18460 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18461 (reinsert_breakpoint): Rename to ...
18462 (reinsert_raw_breakpoint): ... this.
18463 (reinsert_breakpoints_at): Adjust.
18464 * mem-break.h (struct breakpoint): Declare.
18465 (set_breakpoint_at): Change return type to struct breakpoint
18466 pointer.
18467
2280c721
PA
184682010-03-24 Pedro Alves <pedro@codesourcery.com>
18469
18470 * server.c (handle_query): Assign, not compare.
18471
d50171e4
PA
184722010-03-24 Pedro Alves <pedro@codesourcery.com>
18473
18474 Teach linux gdbserver to step-over-breakpoints.
18475
18476 * linux-low.c (can_hardware_single_step): New.
18477 (supports_breakpoints): New.
18478 (handle_extended_wait): If stopping threads, read the stop pc of
18479 the new cloned LWP.
18480 (get_pc): New.
18481 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18482 low target doesn't support retrieving the PC.
18483 (add_lwp): Set last_resume_kind to resume_continue.
18484 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18485 (linux_attach): Don't clear stop_expected. Set the lwp's
18486 last_resume_kind to resume_stop.
18487 (linux_detach_one_lwp): Don't check for removed breakpoints.
18488 (check_removed_breakpoint): Delete.
18489 (status_pending_p): Rename to ...
18490 (status_pending_p_callback): ... this. Don't check for removed
18491 breakpoints. Don't consider threads that are stopped from GDB's
18492 perspective.
18493 (linux_wait_for_lwp): Always read the stop_pc here.
18494 (cancel_breakpoint): New.
18495 (step_over_bkpt): New global.
18496 (linux_wait_for_event_1): Implement stepping over breakpoints.
18497 (gdb_wants_lwp_stopped): New.
18498 (gdb_wants_all_stopped): New.
18499 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18500 single-step traps here. Store the thread's last reported target
18501 wait status.
18502 (send_sigstop): Don't clear stop_expected. Always set it,
18503 instead.
18504 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18505 (cancel_finished_single_step): New.
18506 (cancel_finished_single_steps): New.
18507 (wait_for_sigstop): Don't cancel finished single-step traps here.
18508 (linux_resume_one_lwp): Don't check for removed breakpoints.
18509 Don't set `step' on non-hardware step archs.
18510 (linux_set_resume_request): Ignore resume_stop requests if already
18511 stopping or stopped. Set the lwp's last_resume_kind.
18512 (resume_status_pending_p): Don't check for removed breakpoints.
18513 (need_step_over_p): New.
18514 (start_step_over): New.
18515 (finish_step_over): New.
18516 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18517 requests. Clear the thread's last reported target waitstatus.
18518 Don't use the `suspended' flag. Don't consider pending breakpoints.
18519 (linux_resume): Start a step-over if necessary.
18520 (proceed_one_lwp): New.
18521 (proceed_all_lwps): New.
18522 (unstop_all_lwps): New.
18523 * linux-low.h (struct lwp_info): Rewrite comment for the
18524 `suspended' flag. Add the `stop_pc' field. Delete the
18525 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18526 Add `'last_resume_kind' and `need_step_over' fields.
18527 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18528 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18529 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18530 (set_raw_breakpoint_at): New.
18531 (set_breakpoint_at): Rewrite to use it.
18532 (reinsert_breakpoint_handler): Delete.
18533 (set_reinsert_breakpoint): New.
18534 (reinsert_breakpoint_by_bp): Delete.
18535 (delete_reinsert_breakpoints): New.
18536 (uninsert_breakpoint): Rewrite.
18537 (uninsert_breakpoints_at): New.
18538 (reinsert_breakpoint): Rewrite.
18539 (reinsert_breakpoints_at): New.
18540 (check_breakpoints): Rewrite.
18541 (breakpoint_here): New.
18542 (breakpoint_inserted_here): New.
18543 (check_mem_read): Adjust.
18544 * mem-break.h (breakpoints_supported, breakpoint_here)
18545 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18546 (reinsert_breakpoint_by_bp): Delete declaration.
18547 (delete_reinsert_breakpoints): Declare.
18548 (reinsert_breakpoint): Delete declaration.
18549 (reinsert_breakpoints_at): Declare.
18550 (uninsert_breakpoint): Delete declaration.
18551 (uninsert_breakpoints_at): Declare.
18552 (check_breakpoints): Adjust prototype.
18553 * server.h: Adjust include order.
18554 (struct thread_info): Declare here. Add a `last_status' field.
18555
30ba68cb
MS
185562010-03-23 Michael Snyder <msnyder@vmware.com>
18557
18558 * server.c (crc32): New function.
18559 (handle_query): Add handling for 'qCRC:' request.
18560
b9a881c2
PA
185612010-03-23 Pedro Alves <pedro@codesourcery.com>
18562
18563 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18564 lwp had been stopped by a watchpoint.
18565
e92d13d5
PA
185662010-03-16 Pedro Alves <pedro@codesourcery.com>
18567
18568 * server.h (internal_error): Declare.
18569 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18570 * utils.c (internal_error): New function.
18571
64daa791
AS
185722010-03-15 Andreas Schwab <schwab@redhat.com>
18573
18574 * configure.srv: Fix typo setting srv_regobj.
18575
f52cd8cd
PA
185762010-03-15 Pedro Alves <pedro@codesourcery.com>
18577
18578 * linux-low.c (fetch_register): Avoid passing a non string literal
18579 format to `error'.
18580 (usr_store_inferior_registers): Ditto.
18581
93ae6fdc
PA
185822010-03-14 Pedro Alves <pedro@codesourcery.com>
18583
18584 * linux-low.c (linux_write_memory): Bail out early if peeking
18585 memory failed.
18586
c3adc08c
PA
185872010-03-14 Pedro Alves <pedro@codesourcery.com>
18588
18589 * linux-low.h (struct lwp_info): New fields
18590 `stopped_by_watchpoint' and `stopped_data_address'.
18591 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18592 here, and cache them in the lwp object.
18593 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18594 directly.
18595 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18596 field.
18597 (linux_stopped_by_watchpoint): Rewrite.
18598 (linux_stopped_data_address): Rewrite.
18599
bce522a2
PA
186002010-03-06 Simo Melenius <simo.melenius@iki.fi>
18601
18602 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18603 switching the current inferior, not before.
18604
90884b2b
L
186052010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18606
18607 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18608 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18609 i386-linux.c and amd64-linux.c.
18610 (reg-i386.o): Removed.
18611 (reg-i386.c): Likewise.
18612 (reg-i386-linux.o): Likewise.
18613 (reg-i386-linux.c): Likewise.
18614 (reg-x86-64.o): Likewise.
18615 (reg-x86-64.c): Likewise.
18616 (reg-x86-64-linux.o): Likewise.
18617 (reg-x86-64-linux.c): Likewise.
18618 (i386.o): New.
18619 (i386.c): Likewise.
18620 (i386-linux.o): Likewise.
18621 (i386-linux.c): Likewise.
18622 (amd64.o): Likewise.
18623 (amd64.c): Likewise.
18624 (amd64-linux.o): Likewise.
18625 (amd64-linux.c): Likewise.
18626
18627 * configure.srv (srv_i386_regobj): New.
18628 (srv_i386_linux_regobj): Likewise.
18629 (srv_amd64_regobj): Likewise.
18630 (srv_amd64_linux_regobj): Likewise.
18631 (srv_i386_32bit_xmlfiles): Likewise.
18632 (srv_i386_64bit_xmlfiles): Likewise.
18633 (srv_i386_xmlfiles): Likewise.
18634 (srv_amd64_xmlfiles): Likewise.
18635 (srv_i386_linux_xmlfiles): Likewise.
18636 (srv_amd64_linux_xmlfiles): Likewise.
18637 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18638 srv_xmlfiles to $srv_i386_xmlfiles.
18639 (i[34567]86-*-mingw32ce*): Likewise.
18640 (i[34567]86-*-mingw*): Likewise.
18641 (i[34567]86-*-nto*): Likewise.
18642 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18643 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18644 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18645 (x86_64-*-linux*): Likewise.
18646
18647 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18648 (init_registers_amd64_linux): New.
18649 (x86_arch_setup): Replace init_registers_x86_64_linux with
18650 init_registers_amd64_linux.
18651
193f13e6
MK
186522010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18653
18654 * configure.ac: Check for libdl. If it is not available link against
18655 static libthread_db.
18656 * configure: Regenerate.
18657
85d721b8
PA
186582010-02-22 Pedro Alves <pedro@codesourcery.com>
18659
18660 PR9605
18661
18662 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18663 handing a read watchpoint.
18664 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18665
6076632b
DE
186662010-02-12 Doug Evans <dje@google.com>
18667
18668 * linux-low.c (linux_supports_tracefork_flag): Document.
18669 (linux_look_up_symbols): Add comment.
18670
3327ccf7
L
186712010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18672
18673 * regcache.c (supply_register): Clear regcache if buf is NULL.
18674
0718675c 186752010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 18676 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
18677
18678 * inferiors.c (find_inferior): Add function documentation.
18679 (unloaded_dll): Handle the case where the unloaded dll has not
18680 been previously registered in the dll list.
18681
177321bd
DJ
186822010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18683
18684 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18685 (thumb2_breakpoint): New.
18686 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18687
2b009048
DJ
186882010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18689
18690 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18691 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18692 breakpoints.
18693
3be029c7
PA
186942010-01-21 Pedro Alves <pedro@codesourcery.com>
18695
18696 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18697
18f5de3b
JK
186982010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18699
18700 * linux-s390-low.c (s390_collect_ptrace_register)
18701 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18702
3743bb4f
DE
187032010-01-21 Doug Evans <dje@google.com>
18704
14ce3065
DE
18705 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18706 (PTRACE_ARG4_TYPE): New macro.
18707 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18708 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18709 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18710 (usr_store_inferior_registers): Ditto.
18711 (linux_read_memory, linux_write_memory): Ditto.
18712 (linux_test_for_tracefork): Ditto.
18713
3743bb4f
DE
18714 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18715 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18716
8b315be5
PA
187172010-01-21 Pedro Alves <pedro@codesourcery.com>
18718
18719 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18720 target.
18721
85492558
PA
187222010-01-21 Pedro Alves <pedro@codesourcery.com>
18723
18724 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18725 prototype to take a regcache. Adjust.
18726
442ea881
PA
187272010-01-20 Pedro Alves <pedro@codesourcery.com>
18728
18729 * regcache.h (struct thread_info): Forward declare.
18730 (struct regcache): New.
18731 (new_register_cache): Adjust prototype.
18732 (get_thread_regcache): Declare.
18733 (free_register_cache): Adjust prototype.
18734 (registers_to_string, registers_from_string): Ditto.
18735 (supply_register, supply_register_by_name, collect_register)
18736 (collect_register_as_string, collect_register_by_name): Ditto.
18737 * regcache.c (struct inferior_regcache_data): Delete.
18738 (get_regcache): Rename to ...
18739 (get_thread_regcache): ... this. Adjust. Switch inferior before
18740 fetching registers.
18741 (regcache_invalidate_one): Adjust.
18742 (regcache_invalidate): Fix prototype.
18743 (new_register_cache): Return the new register cache.
18744 (free_register_cache): Change prototype.
18745 (realloc_register_cache): Adjust.
18746 (registers_to_string): Change prototype to take a regcache. Adjust.
18747 (registers_from_string): Ditto.
18748 (register_data): Ditto.
18749 (supply_register): Ditto.
18750 (supply_register_by_name): Ditto.
18751 (collect_register): Ditto.
18752 (collect_register_as_string): Ditto.
18753 (collect_register_by_name): Ditto.
18754 * server.c (process_serial_event): Adjust.
18755 * linux-low.h (regset_fill_func, regset_store_func): Change
18756 prototype.
18757 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18758 Change prototype.
18759 * linux-low.c (get_stop_pc): Adjust.
18760 (check_removed_breakpoint): Adjust.
18761 (linux_wait_for_event): Adjust.
18762 (linux_resume_one_lwp): Adjust.
18763 (fetch_register): Add regcache parameter. Adjust.
18764 (usr_store_inferior_registers): Ditto.
18765 (regsets_fetch_inferior_registers): Ditto.
18766 (regsets_store_inferior_registers): Ditto.
18767 (linux_fetch_registers, linux_store_registers): Ditto.
18768 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18769 regcache. Adjust.
43aaf8b6
PA
18770 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18771 Ditto.
442ea881
PA
18772 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18773 prototype to take a regcache.
18774 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18775 * remote-utils.c (convert_ascii_to_int, outreg)
18776 (prepare_resume_reply): Change prototype to take a regcache.
18777 Adjust.
18778 * target.h (struct target_ops) <fetch_registers, store_registers>:
18779 Change prototype to take a regcache.
18780 (fetch_inferior_registers, store_inferior_registers): Change
18781 prototype to take a regcache. Adjust.
18782 * proc-service.c (ps_lgetregs): Adjust.
18783 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18784 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18785 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18786 take a regcache. Adjust.
18787 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18788 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18789 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18790 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18791 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18792 (cris_cannot_fetch_register):
18793 (cris_breakpoint_at): Change prototype to take a regcache.
18794 Adjust.
18795 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18796 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18797 to take a regcache. Adjust.
18798 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18799 Adjust.
18800 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18801 take a regcache. Adjust.
18802 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18803 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18804 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18805 * linux-mips-low.c (mips_get_pc):
18806 (mips_set_pc): Change prototype to take a regcache. Adjust.
18807 (mips_reinsert_addr): Adjust.
18808 (mips_collect_register): Change prototype to take a regcache.
18809 Adjust.
18810 (mips_supply_register):
18811 (mips_collect_register_32bit, mips_supply_register_32bit)
18812 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18813 (mips_store_fpregset): Ditto.
43aaf8b6
PA
18814 * linux-ppc-low.c (ppc_supply_ptrace_register)
18815 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
18816 (parse_spufs_run): Adjust.
18817 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18818 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18819 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18820 take a regcache. Adjust.
18821 * linux-s390-low.c (s390_collect_ptrace_register)
18822 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18823 (s390_set_pc): Change prototype to take a regcache. Adjust.
18824 (s390_arch_setup): Adjust.
18825 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18826 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18827 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18828 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18829 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18830 regcache. Adjust.
18831 (sparc_breakpoint_at): Adjust.
18832 * linux-xtensa-low.c (xtensa_fill_gregset):
18833 (xtensa_store_gregset):
18834 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18835 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18836 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18837 prototype to take a regcache. Adjust.
18838 * win32-arm-low.c (arm_fetch_inferior_register)
18839 (arm_store_inferior_register): Change prototype to take a
18840 regcache. Adjust.
18841 * win32-i386-low.c (i386_fetch_inferior_register)
18842 (i386_store_inferior_register): Change prototype to take a
18843 regcache. Adjust.
18844 * win32-low.c (child_fetch_inferior_registers)
18845 (child_store_inferior_registers): Change prototype to take a
18846 regcache. Adjust.
18847 (win32_wait): Adjust.
18848 (win32_fetch_inferior_registers): Change prototype to take a
18849 regcache. Adjust.
18850 (win32_store_inferior_registers): Adjust.
18851 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18852 store_inferior_register>: Change prototype to take a regcache.
18853
60c3d7b0
DE
188542010-01-20 Doug Evans <dje@google.com>
18855
18856 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18857 #ifdef.
18858 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 18859 (W_STOPCODE): Provide definition if missing.
60c3d7b0 18860
dc146f7c
VP
188612010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18862
18863 * linux-low.c (linux_core_of_thread): New.
18864 (compare_ints, show_process, list_threads): New.
18865 (linux_qxfer_osdata): Report threads and cores.
18866 (linux_target_op): Register linux_core_of_thread.
18867 * remote-utils.c (prepare_resume_reply): Report the core.
18868 (buffer_xml_printf): Support %d specifier.
18869 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18870 New.
18871 (handle_query): Handle qXfer:threads. Announce availability
18872 thereof.
18873 * target.h (struct target_ops): New field core_of_thread.
18874
7803799a
UW
188752010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18876
18877 * Makefile.in (clean): Remove new generated files.
18878 (reg-s390.o, reg-s390.c): Remove rules.
18879 (reg-s390x.o, reg-s390x.c): Likewise.
18880 (s390-linux32.o, s390-linux32.c): Add rules.
18881 (s390-linux64.o, s390-linux64.c): Likewise.
18882 (s390x-linux64.o, s390x-linux64.c): Likewise.
18883 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18884 * linux-s390-low.c: Include <elf.h>.
18885 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18886 (init_registers_s390): Remove prototype.
18887 (init_registers_s390x): Likewise.
18888 (init_registers_s390_linux32): Add prototype.
18889 (init_registers_s390_linux64): Likewise.
18890 (init_registers_s390x_linux64): Likewise.
18891 (s390_num_regs_3264): New define.
18892 (s390_regmap_3264): New global variable.
18893 (s390_cannot_fetch_register): Remove obsolete check.
18894 (s390_cannot_store_register): Likewise.
18895 (s390_collect_ptrace_register): Handle upper/lower register halves.
18896 (s390_supply_ptrace_register): Likewise.
18897 (s390_fill_gregset): Update to register number changes.
18898 (s390_get_hwcap): New routine.
18899 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18900 Install appropriate regmap and register set.
18901
6e7ffa39
JB
189022010-01-01 Joel Brobecker <brobecker@adacore.com>
18903
18904 * server.c (gdbserver_version): Update copyright year to 2010.
18905 * gdbreplay.c (gdbreplay_version): Likewise.
18906
957f3f49
DE
189072009-12-28 Doug Evans <dje@google.com>
18908
18909 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18910 elf/external.h. Include <elf.h> instead but only if necessary.
18911
ca5c370d
PA
189122009-12-28 Pedro Alves <pedro@codesourcery.com>
18913
18914 * linux-low.c (linux_remove_process): Remove `detaching'
18915 parameter. Don't release/detach from thread_db here.
18916 (linux_kill): Release/detach from thread_db here, ...
18917 (linux_detach): ... and here, before actually detaching.
18918 (linux_wait_1): ... and here, when a process exits.
18919 * thread-db.c (any_thread_of): New.
18920 (thread_db_free): Switch the current inferior to a thread of the
18921 passed in process.
18922
4ee62156
DE
189232009-12-21 Doug Evans <dje@google.com>
18924
d90e6a88
DE
18925 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18926
c5f62d5f
DE
18927 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18928 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18929 warning ifndef __NR_tkill. Move setting of errno there too.
18930 Delete unnecessary resetting of errno after syscall.
18931 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18932
10e86dd7
DE
18933 * configure.ac: Check for dladdr.
18934 * config.in: Regenerate.
18935 * configure: Regenerate.
18936 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18937 (try_thread_db_load): Update.
18938
4ee62156
DE
18939 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18940
00f515da
DE
189412009-12-18 Doug Evans <dje@google.com>
18942
e9464885
DE
18943 * event-loop.c: Include unistd.h if it exists.
18944
07d4f67e
DE
18945 * linux-low.c (my_waitpid): Move definition away from being in
18946 between linux_tracefork_child/linux_test_for_tracefork.
18947
00f515da
DE
18948 * gdb_proc_service.h (psaddr_t): Fix type.
18949 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18950 signature to match glibc.
18951
1de1badb
DE
189522009-12-16 Doug Evans <dje@google.com>
18953
18954 * linux-low.c (linux_read_memory): Fix argument to read.
18955
aeeb81d1
PA
189562009-11-26 Pedro Alves <pedro@codesourcery.com>
18957
18958 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18959 events, don't leave current_inferior pointing at null.
18960
10357975
PA
189612009-11-26 Pedro Alves <pedro@codesourcery.com>
18962
18963 * win32-low.c (LOG): Delete.
18964 (OUTMSG): Output to stderr.
18965 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18966 on compile time LOG macro.
18967 (win32_wait): Fix debug output.
18968
cf6e3471
PA
189692009-11-26 Pedro Alves <pedro@codesourcery.com>
18970
18971 * win32-low.c (win32_add_one_solib): If the dll name is
18972 "ntdll.dll", prepend the system directory to the dll path.
18973
0c85e18e
MK
189742009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18975
18976 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18977
9ac544ce 189782009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 18979 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
18980
18981 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18982 * configure.ac: Check for __mcoldfire__ and set
18983 gdb_cv_m68k_is_coldfire.
18984 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18985 reg-cf.o and reg-m68k.o.
18986 * configure: Regenerated.
18987
fd7dd3e6
PA
189882009-11-16 Pedro Alves <pedro@codesourcery.com>
18989
18990 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18991 Pass it to thread_db_free.
18992 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18993 proper `detaching' argument to linux_remove_process.
18994 * linux-low.h (thread_db_free): Add `detaching' parameter.
18995 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18996 to thread_db_free.
18997 (thread_db_free): Add `detaching' parameter. Only
18998 call td_ta_clear_event if detaching from process.
18999
75aa492e
MK
190002009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19001
19002 * thread-db.c (thread_db_free): Fix typo.
19003
21e1bee4
PP
190042009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19005
19006 PR gdb/10838
19007 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19008
8838b45e
NS
190092009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19010
19011 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19012 with an i686 compiler.
19013 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19014 needed.
19015 * configure: Rebuilt.
19016
8a35fb51
SL
190172009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19018
19019 PR gdb/10783
19020
19021 * server.c (handle_search_memory_1): Correct read_addr initialization
19022 in loop for searching subsequent chunks.
19023
96f15937
PP
190242009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19025
19026 * configure.ac: New --with-libthread-db option.
19027 * thread-db.c: Allow direct dependence on libthread_db.
19028 (thread_db_free): Adjust.
19029 * config.in: Regenerate.
19030 * configure: Likewise.
889bf7c5 19031
5f7d1694
PP
190322009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19033
19034 PR gdb/10757
19035 * thread-db.c (attach_thread): New function.
19036 (maybe_attach_thread): Return success/failure.
19037 (find_new_threads_callback): Adjust.
889bf7c5
PA
19038 (thread_db_find_new_threads): Loop until no new threads.
19039
88e3b899
PA
190402009-10-13 Pedro Alves <pedro@codesourcery.com>
19041
19042 * proc-service.c (ps_lgetregs): Formatting.
19043
cdbfd419
PP
190442009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19045
19046 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19047 * configure.ac: Adjust.
19048 * linux-low.h (struct process_info_private): Move members to struct
19049 thread_db.
19050 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19051 * linux-low.c (linux_remove_process): Adjust.
19052 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19053 * server.c (handle_query): Move code ...
19054 (handle_monitor_command): ... here. New function.
19055 * target.h (struct target_ops): New member.
19056 * thread-db.c (struct thread_db): New.
19057 (libthread_db_search_path): New variable.
19058 (thread_db_create_event, thread_db_enable_reporting)
19059 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19060 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19061 (try_thread_db_load_1, dladdr_to_soname): New functions.
19062 (try_thread_db_load, thread_db_load_search): New functions.
19063 (thread_db_init): Search for libthread_db.
19064 (thread_db_free): New function.
19065 (thread_db_handle_monitor_command): Likewise.
19066 * config.in: Regenerate.
19067 * configure: Regenerate.
889bf7c5 19068
4168d2d6
UW
190692009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19070
19071 * spu-low.c (spu_kill): Wait for inferior to terminate.
19072 Call clear_inferiors.
19073 (spu_detach): Call clear_inferiors.
19074
81ecdfbb
RW
190752009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19076
19077 * aclocal.m4: Regenerate.
19078 * config.in: Likewise.
19079 * configure: Likewise.
19080
0b9ff2c0
UW
190812009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19082
19083 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19084 (parse_spufs_run): New function.
19085 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19086 (ppc_breakpoint_at): Handle SPU breakpoints.
19087
efcbbd14
UW
190882009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19089
19090 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19091 (SPUFS_MAGIC): Define.
19092 (spu_enumerate_spu_ids): New function.
19093 (linux_qxfer_spu): New function.
19094 (linux_target_ops): Install linux_qxfer_spu.
19095
f4d9bade
UW
190962009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19097
19098 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19099 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19100 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19101 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19102 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19103 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19104 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19105 (init_registers_powerpc_cell32l): Add prototype.
19106 (init_registers_powerpc_cell64l): Likewise.
19107 (ppc_arch_setup): Detect Cell/B.E. architecture.
19108
96e946ca
RW
191092009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19110
19111 * Makefile.in (datarootdir): New variable.
19112
58d6951d
DJ
191132009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19114
19115 * linux-low.c (linux_write_memory): Update debugging output.
19116 * Makefile.in (clean): Add new descriptions.
19117 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19118 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19119 * configure.srv: Add new files for arm*-*-linux*.
19120 * linux-arm-low.c: Add new declarations.
19121 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19122 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19123 (HWCAP_VFPv3D16): New.
19124 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19125 instead of __IWMMXT__.
19126 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19127 (arm_arch_setup): New.
19128 (target_regsets): Remove #ifdef. Add VFP regset.
19129 (the_low_target): Use arm_arch_setup.
19130
12b42a12
DJ
191312009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19132
19133 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19134 the main thread again.
19135
ac8c974e
AR
191362009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19137
19138 Adding Neutrino gdbserver.
19139 * configure: Regenerated.
19140 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19141 * configure.srv (i[34567]86-*-nto*): New target.
19142 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19143 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19144 (nto_comctrl) [__QNX__]: New function.
19145 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19146
4424e0c3 191472009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
19148
19149 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19150 srv_tgtobj.
19151
912cf4ba
PA
191522009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19153 Pedro Alves <pedro@codesourcery.com>
19154
19155 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19156 don't support CONTEXT_EXTENDED_REGISTERS.
19157 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19158 (the_low_target): Install them.
19159 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19160 failing with ERROR_PIPE_NOT_CONNECTED.
19161
aa5ca48f
DE
191622009-06-30 Doug Evans <dje@google.com>
19163 Pierre Muller <muller@ics.u-strasbg.fr>
19164
19165 Add h/w watchpoint support to x86-linux, win32-i386.
19166 * Makefile.in (SFILES): Add i386-low.c
19167 (i386_low_h): Define.
19168 (i386-low.o): Add dependencies.
19169 (linux-x86-low.o): Add i386-low.h dependency.
19170 (win32-i386-low.o): Ditto.
19171 * i386-low.c: New file.
19172 * i386-low.h: New file.
19173 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19174 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19175 * linux-low.c (linux_add_process): Initialize arch_private.
19176 (linux_remove_process): Free arch_private.
19177 (add_lwp): Initialize arch_private.
19178 (delete_lwp): Free arch_private.
19179 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19180 provided.
19181 * linux-low.h (process_info_private): New member arch_private.
19182 (lwp_info): New member arch_private.
19183 (linux_target_ops): New members new_process, new_thread,
19184 prepare_to_resume.
19185 (ptid_of): New macro.
19186 * linux-x86-low.c: Include stddef.h, i386-low.h.
19187 (arch_process_info): New struct.
19188 (arch_lwp_info): New struct.
19189 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19190 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19191 (i386_dr_low_get_status): New function.
19192 (x86_insert_point, x86_remove_point): New functions.
19193 (x86_stopped_by_watchpoint): New function.
19194 (x86_stopped_data_address): New function.
19195 (x86_linux_new_process, x86_linux_new_thread): New functions.
19196 (x86_linux_prepare_to_resume): New function.
19197 (the_low_target): Add entries for insert_point, remove_point,
19198 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19199 prepare_to_resume.
19200 * server.c (debug_hw_points): New global.
19201 (monitor_show_help): Document set debug-hw-points.
19202 (handle_query): Process "set debug-hw-points".
19203 * server.h (debug_hw_points): Declare.
19204 (paddress): Declare.
19205 * utils.c (NUMCELLS, CELLSIZE): New macros.
19206 (get_sell, xsnprintf, paddress): New functions.
19207 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19208 remove_point, stopped_by_watchpoint, stopped_data_address.
19209 * win32-i386-low.c: Include i386-low.h.
19210 (debug_reg_state): Replaces dr.
19211 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19212 (i386_dr_low_get_status): New function.
19213 (i386_insert_point, i386_remove_point): New functions.
19214 (i386_stopped_by_watchpoint): New function.
19215 (i386_stopped_data_address): New function.
19216 (i386_initial_stuff): Update.
19217 (get_thread_context,set_thread_context,i386_thread_added): Update.
19218 (the_low_target): Add entries for insert_point,
19219 remove_point, stopped_by_watchpoint, stopped_data_address.
19220 * win32-low.c (win32_insert_watchpoint): New function.
19221 (win32_remove_watchpoint): New function.
19222 (win32_stopped_by_watchpoint): New function.
19223 (win32_stopped_data_address): New function.
19224 (win32_target_ops): Add entries for insert_watchpoint,
19225 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19226 * win32-low.h (win32_target_ops): New members insert_point,
19227 remove_point, stopped_by_watchpoint, stopped_data_address.
19228
d993e290
PA
192292009-06-25 Pedro Alves <pedro@codesourcery.com>
19230
19231 * server.c (process_serial_event): Re-return unsupported, not
19232 error, if the type isn't recognized. Re-allow supporting only
19233 insert or remove packets. Also call require_running for
19234 breakpoints. Add missing break statement to default case. Tidy.
19235 * target.h (struct target_ops): Rename insert_watchpoint to
19236 insert_point, and remove_watchpoint to remove_point.
19237
19238 * linux-low.h (struct linux_target_ops): Likewise.
19239 * linux-low.c (linux_insert_watchpoint): Rename to ...
19240 (linux_insert_point): ... this. Adjust.
19241 (linux_remove_watchpoint): Rename to ...
19242 (linux_remove_point): ... this. Adjust.
19243 (linux_target_ops): Adjust.
19244 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19245 (cris_insert_point): ... this.
19246 (cris_remove_watchpoint): Rename to ...
19247 (cris_remove_point): ... this.
19248 (the_low_target): Adjust.
19249
0f54c268
PM
192502009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19251
19252 * server.c (handle_v_kill): Pass signal_pid to
19253 kill_inferior if multi_process is zero.
19254
c6314022
AR
192552009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19256
19257 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19258 * target.h (target_ops): Comment for *_watchpoint to make it clear
19259 the functions can get types '0' and '1'.
19260
4463ce24
AR
192612009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19262
19263 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19264 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19265 * regcache.c (get_regcache): Likewise.
19266 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19267 * win32-low.c (child_fetch_inferior_registers): Remove check for
19268 regno 0.
19269
cf8fd78b
PA
192702009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19271 Pedro Alves <pedro@codesourcery.com>
19272
19273 * target.h (struct target_ops) <supports_multi_process>: New
19274 callback.
19275 (target_supports_multi_process): New.
19276 * server.c (handle_query): Even if GDB reports support, only
19277 enable multi-process if the target also supports it. Report
19278 multi-process support only if the target backend supports it.
19279 * linux-low.c (linux_supports_multi_process): New function.
19280 (linux_target_ops): Install it as target_supports_multi_process
19281 callback.
19282
47c0c975
DE
192832009-05-24 Doug Evans <dje@google.com>
19284
e09875d4
DE
19285 Global renaming of find_thread_pid to find_thread_ptid.
19286 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19287 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19288 All callers updated.
19289
e27d73f6
DE
19290 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19291 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19292 directly.
19293
47c0c975
DE
19294 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19295 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19296 (linux_resume_one_lwp): Ditto.
19297
2acc282a
DE
192982009-05-23 Doug Evans <dje@google.com>
19299
19300 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19301 from struct inferior_list_entry * to struct lwp_info *.
19302 All callers updated.
19303
9f1036c1
DE
193042009-05-13 Doug Evans <dje@google.com>
19305
19306 * linux-x86-low.c: Don't include assert.h.
19307 (x86_siginfo_fixup): Use fatal, not assert.
19308 (x86_arch_setup): Fix comment.
19309
d0722149
DE
193102009-05-12 Doug Evans <dje@google.com>
19311
19312 Biarch support for i386/amd64 gdbserver.
19313 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19314 Add linux-x86-low.c.
19315 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19316 (linux-x86-low.o): Add.
19317 * linux-x86-64-low.c: Delete.
19318 * linux-i386-low.c: Delete.
19319 * linux-x86-low.c: New file.
19320 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19321 linux-x86-low.o.
19322 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19323 linux-x86-low.o.
19324 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19325 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19326 (linux_child_pid_to_exec_file): New function.
19327 (elf_64_header_p, elf_64_file_p): New functions.
19328 (siginfo_fixup): New function.
19329 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19330 give target a chance to convert layout.
19331 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19332 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19333
fdeb2a12
DE
193342009-05-07 Doug Evans <dje@google.com>
19335
19336 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19337 (regsets_store_inferior_registers): Ditto.
19338
a6dbe5df
PA
193392009-05-06 Pedro Alves <pedro@codesourcery.com>
19340
19341 PR server/10048
19342
19343 * linux-low.c (must_set_ptrace_flags): Delete.
19344 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19345 of the global.
19346 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19347 `lwp->must_set_ptrace_flags' instead.
ba42693b 19348 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
19349 (linux_wait_1): ... not here.
19350
5091eb23
DE
193512009-04-30 Doug Evans <dje@google.com>
19352
9f767825
DE
19353 * inferiors.c (started_inferior_callback): New function.
19354 (attached_inferior_callback): New function.
19355 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19356 * server.c (print_started_pid, print_attached_pid): New functions.
19357 (detach_or_kill_for_exit): New function.
19358 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19359 * server.h (have_started_inferiors_p): Declare.
19360 (have_attached_inferiors_p): Declare.
19361
5091eb23
DE
19362 * inferiors.c (remove_process): Fix memory leak, free process.
19363 * linux-low.c (linux_remove_process): New function.
19364 (linux_kill): Call it instead of remove_process.
19365 (linux_detach, linux_wait_1): Ditto.
19366
155c8968
PA
193672009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19368
19369 * configure.srv: Add x86 Windows CE target.
19370
7fe519cb
UW
193712009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19372
19373 * inferiors.c (get_thread_process): Make global.
19374 * server.h (get_thread_process): Add prototype.
19375 * thread-db.c (find_one_thread): Use get_thread_process
19376 instead of current_process.
19377 (thread_db_get_tls_address): Do not crash if called when
19378 thread layer is not yet initialized.
19379
5472f405
UW
193802009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19381
19382 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19383 * spu-low.c (current_tid): Rename to ...
19384 (current_ptid): ... this.
19385 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19386 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19387 ptid_get_lwp (current_ptid) instead of current_tid.
19388 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19389 instead of current_tid. Use find_process_pid to verify pid
19390 argument is valid. Pass proper argument to remove_process.
19391 (spu_thread_alive): Compare current_ptid instead of current_tid.
19392 (spu_resume): Likewise.
19393
55ac2b99
PA
193942009-04-02 Pedro Alves <pedro@codesourcery.com>
19395
19396 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19397 variable.
19398
95954743
PA
193992009-04-01 Pedro Alves <pedro@codesourcery.com>
19400
19401 Implement the multiprocess extensions, and add linux multiprocess
19402 support.
19403
19404 * server.h (ULONGEST): Declare.
19405 (struct ptid, ptid_t): New.
19406 (minus_one_ptid, null_ptid): Declare.
19407 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19408 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19409 (struct inferior_list_entry): Change `id' type from unsigned from
19410 to ptid_t.
19411 (struct sym_cache, struct breakpoint, struct
19412 process_info_private): Forward declare.
19413 (struct process_info): Declare.
19414 (current_process): Declare.
19415 (all_processes): Declare.
19416 (initialize_inferiors): Declare.
19417 (add_thread): Adjust to use ptid_t.
19418 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19419 (add_process, remove_process, find_thread_pid): Declare.
19420 (find_inferior_id): Adjust to use ptid_t.
19421 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19422 (multi_process): Declare.
19423 (push_event): Adjust to use ptid_t.
19424 (read_ptid, write_ptid): Declare.
19425 (prepare_resume_reply): Adjust to use ptid_t.
19426 (clear_symbol_cache): Declare.
19427 * inferiors.c (all_processes): New.
19428 (null_ptid, minus_one_ptid): New.
19429 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19430 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19431 (add_thread): Change unsigned long to ptid. Remove gdb_id
19432 parameter. Adjust.
19433 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19434 (gdb_id_to_thread): Rename to ...
19435 (find_thread_pid): ... this. Change unsigned long to ptid.
19436 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19437 (loaded_dll, pull_pid_from_list): Adjust.
19438 (add_process, remove_process, find_process_pid)
19439 (get_thread_process, current_process, initialize_inferiors): New.
19440 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19441 (struct target_waitstatus) <related_pid>: Ditto.
19442 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19443 return type to int.
19444 (struct target_ops) <join>: Add `pid' argument.
19445 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19446 (struct target_ops) <wait>: Add `ptid' field. Change return type
19447 to ptid.
19448 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19449 (mywait): Add `ptid' argument. Change return type to ptid_t.
19450 (target_pid_to_str): Declare.
19451 * target.c (set_desired_inferior): Adjust to use ptids.
19452 (mywait): Add new `ptid' argument. Adjust.
19453 (target_pid_to_str): New.
19454 * mem-break.h (free_all_breakpoints): Declare.
19455 * mem-break.c (breakpoints): Delelete.
19456 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19457 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19458 to use per-process breakpoint list.
19459 (free_all_breakpoints): New.
19460 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19461 (symbol_cache, all_symbols_looked_up): Delete.
19462 (hexchars): New.
19463 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19464 read_ptid): New.
19465 (prepare_resume_reply): Change ptid argument's type from unsigned
19466 long to ptid_t. Adjust. Implement W;process and X;process.
19467 (free_sym_cache, clear_symbol_cache): New.
19468 (look_up_one_symbol): Adjust to per-process symbol cache. *
19469 * server.c (cont_thread, general_thread, step_thread): Change type
19470 to ptid_t.
19471 (attached): Delete.
19472 (multi_process): New.
19473 (last_ptid): Change type to ptid_t.
19474 (struct vstop_notif) <ptid>: Change type to ptid_t.
19475 (queue_stop_reply, push_event): Change `ptid' argument's type to
19476 ptid_t.
19477 (discard_queued_stop_replies): Add `pid' argument.
19478 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19479 changes. Don't reference the `attached' global.
19480 (attach_inferior): Adjust to mywait interface changes.
19481 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19482 features. Handle and report "multiprocess+". Handle
19483 "qAttached:PID".
19484 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19485 changes.
19486 (handle_v_kill): New.
19487 (handle_v_stopped): Adjust to use target_pid_to_str.
19488 (handle_v_requests): Allow multiple attaches and runs when
19489 multiprocess extensions are in effect. Handle "vKill".
19490 (myresume): Adjust to use ptids.
19491 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19492 (handle_status): Adjust to discard_queued_stop_replies interface
19493 change.
19494 (first_thread_of, kill_inferior_callback)
19495 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19496 (main): Call initialize_inferiors. Adjust to use ptids, killing
19497 and detaching from all inferiors. Handle multiprocess packet
19498 variants.
19499 * linux-low.h: Include gdb_proc_service.h.
19500 (struct process_info_private): New.
19501 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19502 <lwpid_of>: Use ptid_get_lwp.
19503 (get_lwp_thread): Adjust.
19504 (struct lwp_info): Add `dead' member.
19505 (find_lwp_pid): Declare.
19506 * linux-low.c (thread_db_active): Delete.
19507 (new_inferior): Adjust comment.
19508 (inferior_pid): Delete.
19509 (linux_add_process): New.
19510 (handle_extended_wait): Adjust.
19511 (add_lwp): Change unsigned long to ptid.
19512 (linux_create_inferior): Add process to processes table. Adjust
19513 to use ptids. Don't set new_inferior here.
19514 (linux_attach_lwp): Rename to ...
19515 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19516 it. Adjust to use ptids.
19517 (linux_attach_lwp): New.
19518 (linux_attach): Add process to processes table. Don't set
19519 new_inferior here.
19520 (struct counter): New.
19521 (second_thread_of_pid_p, last_thread_of_process_p): New.
19522 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19523 multiple processes.
19524 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19525 processes. Remove process from process table.
19526 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19527 to multiple processes.
19528 (any_thread_of): New.
19529 (linux_detach): Add `pid' argument, and handle it. Remove process
19530 from processes table.
19531 (linux_join): Add `pid' argument. Handle it.
19532 (linux_thread_alive): Change unsighed long argument to ptid_t.
19533 Consider dead lwps as not being alive.
19534 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19535 threads we're not interested in.
19536 (same_lwp, find_lwp_pid): New.
19537 (linux_wait_for_lwp): Change `pid' argument's type from int to
19538 ptid_t. Adjust.
19539 (linux_wait_for_event): Rename to ...
19540 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19541 from int to ptid_t. Adjust.
19542 (linux_wait_for_event): New.
19543 (linux_wait_1): Add `ptid' argument. Change return type to
19544 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19545 that exit from the process table.
19546 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19547 Adjust.
19548 (mark_lwp_dead): New.
19549 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19550 stopping all threads, mark its main lwp as dead.
19551 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19552 ptids.
19553 (fetch_register, usr_store_inferior_registers)
19554 (regsets_fetch_inferior_registers)
19555 (regsets_store_inferior_registers, linux_read_memory)
19556 (linux_write_memory): Inline `inferior_pid'.
19557 (linux_look_up_symbols): Adjust to use per-process
19558 `thread_db_active'.
19559 (linux_request_interrupt): Adjust to use ptids.
19560 (linux_read_auxv): Inline `inferior_pid'.
19561 (initialize_low): Don't reference thread_db_active.
19562 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19563 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19564 (ps_getpid): Return the pid of the current inferior.
19565 * thread-db.c (proc_handle, thread_agent): Delete.
19566 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19567 per-process data.
19568 (find_one_thread): Change argument type to ptid_t. Adjust to
19569 per-process data.
19570 (maybe_attach_thread): Adjust to per-process data and ptids.
19571 (thread_db_find_new_threads): Ditto.
19572 (thread_db_init): Ditto.
19573 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19574 processes table. Adjust to use ptids.
19575 (spu_kill, spu_detach): Adjust interface. Remove process from
19576 processes table.
19577 (spu_join, spu_thread_alive): Adjust interface.
19578 (spu_wait): Adjust interface. Remove process from processes
19579 table. Adjust to use ptids.
19580 * win32-low.c (current_inferior_tid): Delete.
19581 (current_inferior_ptid): New.
19582 (debug_event_ptid): New.
19583 (thread_rec): Take a ptid. Adjust.
19584 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19585 (child_delete_thread): Ditto.
19586 (do_initial_child_stuff): Add `attached' argument. Add process to
19587 processes table.
19588 (child_fetch_inferior_registers, child_store_inferior_registers):
19589 Adjust.
19590 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19591 (win32_attach): Pass 1 to do_initial_child_stuff.
19592 (win32_kill): Adjust interface. Remove process from processes
19593 table.
19594 (win32_detach): Ditto.
19595 (win32_join): Adjust interface.
19596 (win32_thread_alive): Take a ptid.
19597 (win32_resume): Adjust to use ptids.
19598 (get_child_debug_event): Ditto.
19599 (win32_wait): Adjust interface. Remove exiting process from
19600 processes table.
19601
bd99dc85
PA
196022009-04-01 Pedro Alves <pedro@codesourcery.com>
19603
19604 Non-stop mode support.
19605
19606 * server.h (non_stop): Declare.
19607 (gdb_client_data, handler_func): Declare.
19608 (delete_file_handler, add_file_handler, start_event_loop):
19609 Declare.
19610 (handle_serial_event, handle_target_event, push_event)
19611 (putpkt_notif): Declare.
19612 * target.h (enum resume_kind): New.
19613 (struct thread_resume): Replace `step' field by `kind' field.
19614 (TARGET_WNOHANG): Define.
19615 (struct target_ops) <wait>: Add `options' argument.
19616 <supports_non_stop, async, start_non_stop>: New fields.
19617 (target_supports_non_stop, target_async): New.
19618 (start_non_stop): Declare.
19619 (mywait): Add `options' argument.
19620 * target.c (mywait): Add `options' argument. Print child exit
19621 notifications here.
19622 (start_non_stop): New.
19623 * server.c (non_stop, own_buf, mem_buf): New globals.
19624 (struct vstop_notif): New.
19625 (notif_queue): New global.
19626 (queue_stop_reply, push_event, discard_queued_stop_replies)
19627 (send_next_stop_reply): New.
19628 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19629 interface changes.
19630 (attach_inferior): In non-stop mode, don't wait for the target
19631 here.
19632 (handle_general_set): Handle QNonStop.
19633 (handle_query): When handling qC, return the current general
19634 thread, instead of the first thread of the list.
19635 (handle_query): If the backend supports non-stop mode, include
19636 QNonStop+ in the qSupported query response.
19637 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19638 and non-stop mode.
19639 (handle_v_attach, handle_v_run): Handle non-stop mode.
19640 (handle_v_stopped): New.
19641 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19642 (myresume): Adjust to use resume_kind. Handle non-stop.
19643 (queue_stop_reply_callback): New.
19644 (handle_status): Handle non-stop mode.
19645 (main): Clear non_stop flag on reconnection. Use the event-loop.
19646 Refactor serial protocol handling from here ...
19647 (process_serial_event): ... to this new function. When GDB
19648 selects any thread, select one here. In non-stop mode, wait until
19649 GDB acks all pending events before exiting.
19650 (handle_serial_event, handle_target_event): New.
19651 * remote-utils.c (remote_open): Install remote_desc in the event
19652 loop.
19653 (remote_close): Remove remote_desc from the event loop.
19654 (putpkt_binary): Rename to...
19655 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19656 (putpkt_binary): New as wrapper around putpkt_binary_1.
19657 (putpkt_notif): New.
19658 (prepare_resume_reply): In non-stop mode, don't change the
19659 general_thread.
19660 * event-loop.c: New.
19661 * Makefile.in (OBJ): Add event-loop.o.
19662 (event-loop.o): New rule.
19663
19664 * linux-low.h (pid_of): Moved here.
19665 (lwpid_of): New.
19666 (get_lwp_thread): Use lwpid_of.
19667 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19668 * linux-low.c (pid_of): Delete.
19669 (inferior_pid): Use lwpid_of.
19670 (linux_event_pipe): New.
19671 (target_is_async_p): New.
19672 (delete_lwp): New.
19673 (handle_extended_wait): Use lwpid_of.
19674 (add_lwp): Don't set lwpid field.
19675 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19676 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19677 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19678 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19679 first. Adjust to linux_wait_for_event interface changes. Use
19680 lwpid_of.
19681 (linux_detach): Don't delete the main lwp here.
19682 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19683 (status_pending_p): Don't consider explicitly suspended lwps.
19684 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19685 pointer. Add OPTIONS argument. Change return type to int. Use
19686 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19687 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19688 pointer. Add status pointer argument. Return a pid instead of a
19689 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19690 changes. In non-stop mode, don't switch to a random thread.
19691 (linux_wait): Rename to...
19692 (linux_wait_1): ... this. Add target_options argument, and handle
19693 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19694 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19695 clean exit and signal exit code. Don't stop all threads in
19696 non-stop mode. In all-stop mode, only stop all threads when
19697 reporting a stop to GDB. Handle explicit thread stop requests.
19698 (async_file_flush, async_file_mark): New.
19699 (linux_wait): New.
19700 (send_sigstop): Use lwpid_of.
19701 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19702 interface changes. In non-stop mode, don't switch to a random
19703 thread.
19704 (linux_resume_one_lwp): Use lwpid_of.
19705 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19706 (linux_resume_one_thread): ... this. Handle resume_stop. In
19707 non-stop mode, don't look for pending flag in all threads.
19708 (resume_status_pending_p): Don't consider explicitly suspended
19709 threads.
19710 (my_waitpid): Reimplement. Emulate __WALL.
19711 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19712 Use lwpid_of.
19713 (sigchld_handler, linux_supports_non_stop, linux_async)
19714 (linux_start_non_stop): New.
19715 (linux_target_ops): Register linux_supports_non_stop, linux_async
19716 and linux_start_non_stop.
19717 (initialize_low): Install SIGCHLD handler.
19718 * thread-db.c (thread_db_create_event, find_one_thread)
19719 (thread_db_get_tls_address): Use lwpid_of.
19720 * win32-low.c (win32_detach): Adjust to use resume_kind.
19721 (win32_wait): Add `options' argument.
19722 * spu-low.c (spu_resume): Adjust to use resume_kind.
19723 (spu_wait): Add `options' argument.
19724
5b1c542e
PA
197252009-04-01 Pedro Alves <pedro@codesourcery.com>
19726
19727 Decouple target code from remote protocol.
19728
19729 * target.h (enum target_waitkind): New.
19730 (struct target_waitstatus): New.
19731 (struct target_ops) <wait>: Return an unsigned long. Take a
19732 target_waitstatus pointer instead of a char pointer.
19733 (mywait): Likewise.
19734 * target.c (mywait): Change prototype to return an unsigned long.
19735 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19736 * server.h (thread_from_wait, old_thread_from_wait): Delete
19737 declarations.
19738 (prepare_resume_reply): Change prototype to take a
19739 target_waitstatus.
19740 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19741 (last_status, last_ptid): New.
19742 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19743 pid instead of a signal.
19744 (attach_inferior): Remove "status" and "signal" parameters.
19745 Adjust.
19746 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19747 not as an address.
19748 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19749 (handle_v_requests, myresume): Remove "status" and "signal"
19750 parameters. Adjust.
19751 (handle_status): New.
19752 (main): Delete local `status'. Adjust.
19753 * remote-utils.c: Include target.h.
19754 (prepare_resume_reply): Change prototype to take a
19755 target_waitstatus. Adjust.
19756
19757 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19758 interface.
19759 * spu-low.c (spu_wait): Adjust.
19760 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19761 Delete.
19762 (win32_wait): Adjust.
19763
2bd7c093
PA
197642009-04-01 Pedro Alves <pedro@codesourcery.com>
19765
19766 * target.h (struct thread_resume): Delete leave_stopped member.
19767 (struct target_ops): Add a `n' argument to the `resume' callback.
19768 * server.c (start_inferior): Adjust.
19769 (handle_v_cont, myresume): Adjust.
19770 * linux-low.c (check_removed_breakpoint): Adjust to resume
19771 interface change, and to removed leave_stopped field.
19772 (resume_ptr): Delete.
19773 (struct thread_resume_array): New.
19774 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19775 resume interface change.
19776 (linux_continue_one_thread, linux_queue_one_thread)
19777 (resume_status_pending_p): Check if the resume field is NULL
19778 instead of checking the leave_stopped member.
19779 (linux_resume): Adjust to the target resume interface change.
19780 * spu-low.c (spu_resume): Adjust to the target resume interface
19781 change.
19782 * win32-low.c (win32_detach, win32_resume): Ditto.
19783
c35fafde
PA
197842009-04-01 Pedro Alves <pedro@codesourcery.com>
19785
19786 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19787 flag.
19788 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19789 pending.
19790 (linux_continue_one_thread): Only preserve the stepping flag if
19791 there's a pending breakpoint.
19792
0a59d50b
PA
197932009-03-31 Pedro Alves <pedro@codesourcery.com>
19794
19795 * server.c (main): After the inferior having exited, call
19796 remote_close before exiting gdbserver.
19797
f04c6d38
TJB
197982009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19799
19800 Fix size of FPSCR in Power 7 processors.
19801 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19802 (PPC_FEATURE_HAS_DFP): New #define.
19803 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19804 size of the FPSCR.
19805
78e5cee6
PA
198062009-03-23 Pedro Alves <pedro@codesourcery.com>
19807
19808 * server.c (handle_query) Whitespace and formatting.
19809
1b3f6016
PA
198102009-03-22 Pedro Alves <pedro@codesourcery.com>
19811
19812 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19813 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19814 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19815 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19816 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19817 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19818 Makefile.in, configure.ac: Fix whitespace throughout.
19819 * configure: Regenerate.
19820
a07b2135
PA
198212009-03-22 Pedro Alves <pedro@codesourcery.com>
19822
19823 * inferiors.c (find_inferior): Make it safe for the callback
19824 function to delete the currently iterated inferior.
19825
67cc2626
PA
198262009-03-22 Pedro Alves <pedro@codesourcery.com>
19827
19828 * Makefile.in (linuw_low_h): Move higher.
19829 (thread-db.o): Depend on $(linux_low_h).
19830
54a0b537
PA
198312009-03-17 Pedro Alves <pedro@codesourcery.com>
19832
19833 Rename "process" to "lwp" throughout.
19834
19835 * linux-low.c (all_processes): Rename to...
19836 (all_lwps): ... this.
19837 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19838 (add_process): Rename to ...
19839 (add_lwp): ... this. Adjust.
19840 (linux_create_inferior): Adjust.
19841 (linux_attach_lwp): Adjust.
19842 (linux_attach): Adjust.
19843 (linux_kill_one_process): Rename to ...
19844 (linux_kill_one_lwp): ... this. Adjust.
19845 (linux_kill): Adjust.
19846 (linux_detach_one_process): Rename to ...
19847 (linux_detach_one_lwp): ... this. Adjust.
19848 (linux_detach): Adjust.
19849 (check_removed_breakpoint): Adjust.
19850 (status_pending_p): Adjust.
19851 (linux_wait_for_process): Rename to ...
19852 (linux_wait_for_lwp): ... this. Adjust.
19853 (linux_wait_for_event): Adjust.
19854 (send_sigstop): Adjust.
19855 (wait_for_sigstop): Adjust.
19856 (stop_all_processes): Rename to ...
19857 (stop_all_lwps): ... this.
19858 (linux_resume_one_process): Rename to ...
19859 (linux_resume_one_lwp): ... this. Adjust.
19860 (linux_set_resume_request, linux_continue_one_thread)
19861 (linux_queue_one_thread, resume_status_pending_p)
19862 (usr_store_inferior_registers, regsets_store_inferior_registers)
19863 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19864 Adjust.
19865 * linux-low.h (get_process): Rename to ...
19866 (get_lwp): ... this. Adjust.
19867 (get_thread_process): Rename to ...
19868 (get_thread_lwp): ... this. Adjust.
19869 (get_process_thread): Rename to ...
19870 (get_lwp_thread): ... this. Adjust.
19871 (struct process_info): Rename to ...
19872 (struct lwp_info): ... this.
19873 (all_processes): Rename to ...
19874 (all_lwps): ... this.
19875 * proc-service.c (ps_lgetregs): Adjust.
19876 * thread-db.c (thread_db_create_event, find_one_thread)
19877 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19878
0b16c5cf
PA
198792009-03-14 Pedro Alves <pedro@codesourcery.com>
19880
19881 * server.c (handle_query): Handle "qAttached".
19882
32de4b9d
NS
198832009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19884
19885 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19886 GPLv3, update license URL.
19887
2aecd87f
DE
198882009-03-01 Doug Evans <dje@google.com>
19889
93efd302 19890 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
19891 (server_h): Add gdb_signals.h.
19892 (signals.o): Update.
19893 * server.h (target_signal_from_host,target_signal_to_host_p)
19894 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19895
86b1f9c5
PM
198962009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19897
19898 * remote-utils.c (getpkt): Also generate remote-debug
19899 information if noack_mode is set.
19900
4aa995e1
PA
199012009-02-06 Pedro Alves <pedro@codesourcery.com>
19902
19903 * server.c (handle_query): Report qXfer:siginfo:read and
19904 qXfer:siginfo:write as supported and handle them.
19905 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19906 * linux-low.c (linux_xfer_siginfo): New.
19907 (linux_target_ops): Set it.
19908
62709adf
PA
199092009-01-26 Pedro Alves <pedro@codesourcery.com>
19910
19911 * server.c (gdbserver_usage): Mention --remote-debug.
19912 (main): Accept '--remote-debug' switch.
19913
aef93bd7
DE
199142009-01-18 Doug Evans <dje@google.com>
19915
19916 * regcache.c (new_register_cache): No need to check result of xcalloc.
19917 * server.c (handle_search_memory): Back out calls to xmalloc,
19918 result is checked and error is returned to user upon failure.
19919 (handle_query): Ditto. Add more checks for result of malloc.
19920 (handle_v_cont): Check result of malloc, report error back to
19921 user upon failure.
19922 (handle_v_run): Ditto. Call freeargv.
19923 * server.h (freeargv): Declare.
19924 * utils.c (freeargv): New fn.
19925
54363045
DE
199262009-01-15 Doug Evans <dje@google.com>
19927
f626972c
DE
19928 * gdbreplay.c (perror_with_name): Make arg const char *.
19929 * server.h (target_signal_to_name): Make return type const char *.
0842e787 19930 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 19931 * utils.c (perror_with_name): Make arg const char *.
54363045 19932
18aae699
PA
199332009-01-14 Pedro Alves <pedro@codesourcery.com>
19934
19935 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19936 when handling a EXIT_PROCESS_DEBUG_EVENT.
19937
ff703abe
JB
199382009-01-06 Joel Brobecker <brobecker@adacore.com>
19939
19940 * gdbreplay.c (gdbreplay_version): Update copyright year.
19941 * server.c (gdbserver_version): Likewise.
19942
f21cc1a2 199432009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
19944
19945 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 19946 (handle_extended_wait): Improve comment.
0e21c1ec 19947
bca929d3
DE
199482008-12-13 Doug Evans <dje@google.com>
19949
19950 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19951 * server.h (ATTR_MALLOC): New macro.
19952 (xmalloc,xcalloc,xstrdup): Declare.
19953 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19954 * inferiors.c: Ditto.
19955 * linux-low.c: Ditto.
19956 * mem-break.c: Ditto.
19957 * regcache.c: Ditto.
19958 * remote-utils.c: Ditto.
19959 * server.c: Ditto.
19960 * target.c: Ditto.
19961 * win32-low.c: Ditto.
19962
97438e3f
DE
199632008-12-12 Doug Evans <dje@google.com>
19964
896c7fbb
DE
19965 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19966 in debugging printf.
19967
97438e3f
DE
19968 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19969
e3b886f8
DE
199702008-12-09 Doug Evans <dje@google.com>
19971
19972 * linux-low.h (struct process_info): Delete member tid, unused.
19973 * thread-db.c (find_one_thread): Update.
19974 (maybe_attach_thread): Update.
19975
07e059b5
VP
199762008-12-02 Pedro Alves <pedro@codesourcery.com>
19977
889bf7c5
PA
19978 * target.h (struct target_ops): Add qxfer_osdata member.
19979 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19980 and dirent.h.
19981 (linux_qxfer_osdata): New functions.
19982 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19983 callback.
19984 * server.c (handle_query): Handle "qXfer:osdata:read:".
19985 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19986 (buffer_xml_printf): New functions.
19987 * server.h (struct buffer): New.
19988 (buffer_grow_str, buffer_grow_str0): New macros.
19989 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19990 (buffer_xml_printf): Declare.
07e059b5 19991
4cab47ab
DE
199922008-11-24 Doug Evans <dje@google.com>
19993
19994 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19995
f142445f
DJ
199962008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19997
19998 * server.c (handle_v_run): Always use the supplied argument list.
19999
d0107bb6 200002008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 20001
d0107bb6
BW
20002 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20003 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 20004
2c4ad781
TJB
200052008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20006
20007 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20008 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20009 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20010 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20011 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20012 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20013 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20014 XML target descriptions.
20015 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20016 when inferior is running on an ISA 2.05 or later processor. Add
20017 special case to return offset for full 64-bit slot of FPSCR when
20018 in 32-bits.
20019
dfb64f85
DJ
200202008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20021
20022 * Makefile.in (SFILES, clean): Added sparc64 files.
20023 (reg-sparc64.o, reg-sparc64.c): New.
20024 * configure.srv (sparc*-*-linux*): New configuration.
20025 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20026 syscall arguments for SPARC.
20027 (regsets_store_inferior_registers): Likewise.
20028 * linux-sparc-low.c: New file.
20029
66b6e1dd
DE
200302008-10-21 Doug Evans <dje@google.com>
20031
20032 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20033 (READLINE_DIR,READLINE_DEP): Delete.
20034 (INTERNAL_CFLAGS): Update.
20035 (LINTFLAGS): Update.
20036
9b710a42
PA
200372008-10-10 Pedro Alves <pedro@codesourcery.com>
20038
20039 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20040 whole argv from the last run, not just argv[0].
20041
5822d809
PA
200422008-09-08 Pedro Alves <pedro@codesourcery.com>
20043
20044 * regcache.c (new_register_cache): Return NULL if the register
20045 cache size isn't known yet.
20046 (free_register_cache): Avoid dereferencing a NULL regcache.
20047
74aac56f
DJ
200482008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20049
20050 * configure.srv: Merge MIPS and MIPS64.
20051
400b20f5
MR
200522008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20053
20054 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20055
677c5bb1
LM
200562008-08-18 Luis Machado <luisgpm@br.ibm.com>
20057
20058 * Makefile.in: Add required vsx dependencies.
20059
20060 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20061 Declare init_registers_powerpc_vsx32l.
20062 Declare init_registers_powerpc_vsx64l.
20063 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20064 (ppc_arch_setup): Check for VSX in hwcap.
20065 (ppc_fill_vsxregset): New function.
20066 (ppc_store_vsxregset): New function.
20067 Add new VSX entry in regset_info target_regsets.
20068
20069 * configure.srv: Add new VSX dependencies.
20070
a6f3e723
SL
200712008-08-12 Pedro Alves <pedro@codesourcery.com>
20072
20073 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20074 (remote_open): Set or clear transport_is_reliable.
20075 (putpkt_binary): Don't expect acks in noack mode.
20076 (getpkt): Don't send ack/nac in noack mode.
20077 * server.c (handle_general_set): Handle QStartNoAckMode.
20078 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20079 qSupported.
20080 (main): Reset noack_mode on every connection.
20081 * server.h (noack_mode): Declare.
20082
a417dc56
RW
200832008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20084
20085 * Makefile.in (GDBREPLAY_OBS): New variable.
20086 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20087
3221518c
UW
200882008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20089 Daniel Jacobowitz <dan@codesourcery.com>
20090
20091 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20092 (usr_store_inferior_registers): Likewise.
20093 (regsets_store_inferior_registers): Likewise.
20094
ec56be1b
PA
200952008-07-31 Rolf Jansen <rj@surtec.com>
20096 Pedro Alves <pedro@codesourcery.com>
20097
20098 * configure.ac: Check for memmem declaration.
20099 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20100 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20101 (disable_packet_qfThreadInfo): Unconditionally compile.
20102 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20103 * configure, config.in: Regenerate.
20104
2fe5e3ff
DE
201052008-07-28 Doug Kwan <dougkwan@google.com>
20106
20107 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20108 (linux_write_memory): Remove declaration of errno.
20109
836acd6d
UW
201102008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20111
20112 * linux-low.c (handle_extended_wait): Do not use "status"
20113 variable uninitialized.
20114
aeba519e
PA
201152008-07-07 Pedro Alves <pedro@codesourcery.com>
20116
20117 * server.c (handle_v_attach): Inhibit reporting dll changes.
20118
db42f210
PA
201192008-06-27 Pedro Alves <pedro@codesourcery.com>
20120
20121 * remote-utils.c (prepare_resume_reply): If requested, don't
20122 output "thread:TID" in the T stop reply.
20123
20124 * server.c (disable_packet_vCont, disable_packet_Tthread)
20125 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20126 (handle_query): If requested, disable support for qC, qfThreadInfo
20127 and qsThreadInfo.
20128 (handle_v_requests): If requested, disable support for vCont.
20129 (gdbserver_show_disableable): New.
20130 (main): Handle --disable-packet and --disable-packet=LIST.
20131
20132 * server.h (disable_packet_vCont, disable_packet_Tthread)
20133 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20134
8e4c5421
CD
201352008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20136
20137 * server.c (gdbserver_usage): Mention --version.
20138
6e23a804
DJ
201392008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20140
20141 * Makefile.in (gdbreplay.o): New rule.
20142
90aa6a40
JM
201432008-06-06 Joseph Myers <joseph@codesourcery.com>
20144
20145 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20146 message, not gdbserver.
20147
c16158bc 201482008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
20149 Nathan Sidwell <nathan@codesourcery.com>
20150 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
20151
20152 * acinclude.m4: Include ../../config/acx.m4.
20153 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20154 * configure, config.in: Regenerate.
20155 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20156 * server.c (gdbserver_version): Print PKGVERSION.
20157 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20158 (main): Adjust gdbserver_usage calls.
20159 * gdbreplay.c (version, host_name): Add declarations.
20160 (gdbreplay_version, gdbreplay_usage): New.
20161 (main): Accept --version and --help options.
20162
aeb75bf5
DJ
201632008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20164
20165 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20166 (arm_breakpoint_at): Handle Thumb.
20167 (the_low_target): Add comment.
20168
76b233dd
UW
201692008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20170
20171 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20172
08388c79
DE
201732008-05-09 Doug Evans <dje@google.com>
20174
a3c83fae
DE
20175 * server.h (decode_search_memory_packet): Declare.
20176 * remote-utils.c (decode_search_memory_packet): New fn.
20177 * server.c (handle_search_memory_1): New fn.
08388c79
DE
20178 (handle_search_memory): New fn.
20179 (handle_query): Process qSearch:memory packets.
20180
bb9c3d36
UW
201812008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20182
20183 * regcache.c (registers_length): Remove.
20184 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20185 full register packet.
20186 * regcache.h (registers_length): Remove prototype.
20187 * server.h (PBUFSIZ): Define to 16384.
20188
7284e1be
UW
201892008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20190
20191 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20192 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20193 powerpc-64l.o, and powerpc-altivec64l.o.
20194 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20195 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20196 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20197 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20198 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20199 to srv_xmlfiles.
20200
20201 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20202 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20203 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20204 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20205 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20206 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20207 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20208 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20209 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20210 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20211 (clean): Update.
20212
20213 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20214 (init_registers_powerpc_32l): ... this new prototype.
20215 (init_registers_powerpc_32): Remove, replace by ...
20216 (init_registers_powerpc_altivec32l): ... this new prototype.
20217 (init_registers_powerpc_e500): Remove, replace by ...
20218 (init_registers_powerpc_e500l): ... this new prototype.
20219 (init_registers_ppc64): Remove, replace by ...
20220 (init_registers_powerpc_64l): ... this new prototype.
20221 (init_registers_powerpc_64): Remove, replace by ...
20222 (init_registers_powerpc_altivec64l): ... this new prototype.
20223 (ppc_num_regs): Set to 73.
20224 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20225 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20226 (ppc_cannot_store_register): Handle orig_r3 and trap.
20227 (ppc_arch_setup): Update init_registers_... calls.
20228 (ppc_fill_gregset): Handle orig_r3 and trap.
20229
20230 * inferiors.c (clear_inferiors): Reset current_inferior.
20231
fdc59709
PB
202322008-04-23 Paolo Bonzini <bonzini@gnu.org>
20233
889bf7c5
PA
20234 * acinclude.m4: Add override.m4.
20235 * configure: Regenerate.
fdc59709 20236
c9b2f845
UW
202372008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20238
20239 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20240 initial call to init_register_ppc64.
20241
550512b8
UW
202422008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20243
43aaf8b6
PA
20244 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20245 single powerpc*-*-linux* case.
550512b8
UW
20246 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20247
b6430ec3
UW
202482008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20249
20250 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 20251 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
20252 from reg_xmlfiles.
20253 * linux-ppc-low.c: Include <elf.h>.
20254 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20255 (ppc_hwcap): New global variable.
20256 (ppc_regmap): Remove __SPE__ #ifdef sections.
20257 (ppc_regmap_e500): New global variable.
20258 (ppc_cannot_store_register): Update __SPE__ special case.
20259 (ppc_get_hwcap): New function.
20260 (ppc_arch_setup): Use it to determine whether inferior supports
20261 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20262 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20263 Do not access registers if target does not support AltiVec.
20264 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20265 Do not access registers if target does not support SPE.
20266 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20267
52fa2412
UW
202682008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20269
20270 * linux-low.c (disabled_regsets, num_regsets): New.
20271 (use_regsets_p): Delete.
20272 (linux_wait_for_process): Clear disabled_regsets.
20273 (regsets_fetch_inferior_registers): Check and set it.
20274 (regsets_store_inferior_registers): Likewise.
20275 (linux_fetch_registers, linux_store_registers): Do not use
20276 use_regsets_p.
20277 (initialize_low): Allocate disabled_regsets.
20278
e28b3332
DJ
202792008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20280
20281 * Makefile.in (LIBOBJS): New.
20282 (OBS): Use LIBOBJS.
20283 (memmem.o): New rule.
20284 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20285 * configure: Regenerated.
20286
4536995d
UW
202872008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20288
20289 * server.c (handle_query): Never return "unsupported" for
20290 qXfer:features:read queries.
20291
221c031f
UW
202922008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20293
20294 * server.c (get_features_xml): Fix inverted condition.
20295 (handle_query): Always support qXfer:feature:read.
20296
ccd213ac
DJ
202972008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20298
20299 * server.c (wrapper_argv): New.
20300 (start_inferior): Handle wrapper_argv. If set, expect an extra
20301 trap.
20302 (gdbserver_usage): Document --wrapper.
20303 (main): Parse --wrapper.
20304
6fe305f7
UW
203052008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20306
20307 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20308 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20309 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20310 (ppc_set_pc): Likewise.
20311 (ppc_arch_setup): New function.
20312 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20313 of collect_register.
889bf7c5 20314 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 20315
5b0a002e
UW
203162008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20317
20318 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20319 instead of linux-ppc64-low.o.
20320 * linux-ppc64-low.c: Remove file.
20321 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20322 (linux-ppc64-low.o): Remove rule.
20323
20324 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20325 (init_registers_powerpc_64): Likewise.
20326 (ppc_regmap): Conditionally define depending on __powerpc64__.
20327 (ppc_cannot_store_register): Do not special-case "fpscr" when
20328 compiled on __powerpc64__.
20329 (ppc_collect_ptrace_register): New function.
20330 (ppc_supply_ptrace_register): New function.
20331 (ppc_breakpoint): Change type to "unsigned int".
20332 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20333 (the_low_target): Conditionally provide initializers for the
889bf7c5 20334 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
20335 collect_ptrace_register and supply_ptrace_register members.
20336
9b4b61c8
UW
203372008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20338
20339 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20340 * server.c (gdbserver_xmltarget): Define.
20341 (get_features_xml): Use it to replace "target.xml" and arch_string.
20342
20343 * configure.srv: Remove srv_xmltarget. Add XML files that were
20344 mentioned there to srv_xmlfiles instead. Remove conditional tests
20345 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20346 srv_xmlfiles and srv_regobj to include all possible choices.
20347 * configure.ac (srv_xmltarget): Remove.
20348 (srv_xmlfiles): Do not add "target.xml".
20349 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20350 checks for supplementary target information.
20351 * configure: Regenerate.
20352 * Makefile.in (XML_TARGET): Remove.
20353 (target.xml): Remove rule.
20354 (clean): Do not clean up target.xml.
20355 (.PRECIOUS): Do not mention target.xml.
20356
20357 * target.h (struct target_ops): Remove arch_string member.
20358 * linux-low.c (linux_arch_string): Remove.
20359 (linux_target_ops): Remove arch_string initializer.
20360 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20361 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20362 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20363 * spu-low.c (spu_arch_string): Remove.
20364 (spu_target_ops): Remove arch_string initializer.
20365 * win32-low.c (win32_arch_string): Remove.
20366 (win32_target_ops): Remove arch_string initializer.
20367 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20368 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20369 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20370
ee1a7ae4
UW
203712008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20372
20373 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20374 by collect_ptrace_register and supply_ptrace_register hooks.
20375 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20376 instead of checking for the_low_target.left_pad_xfer.
20377 (usr_store_inferior_registers): Use collect_ptrace_register callback
20378 instead of checking for the_low_target.left_pad_xfer.
20379
20380 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20381 (s390_supply_ptrace_register): Likewise.
20382 (s390_fill_gregset): Call s390_collect_ptrace_register.
20383 (the_low_target): Update.
20384
20385 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20386 (ppc_supply_ptrace_register): Likewise.
20387 (the_low_target): Update.
20388
20389 * linux-i386-low.c (the_low_target): Update.
20390 * linux-x86-64-low.c (the_low_target): Update.
20391
d61ddec4
UW
203922008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20393
20394 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20395 reg-s390.o and reg-s390x.o.
20396
20397 * linux-low.c (new_inferior): New global variable.
20398 (linux_create_inferior, linux_attach): Set it.
20399 (linux_wait_for_process): Call the_low_target.arch_setup after the
20400 target has stopped for the first time.
20401 (initialize_low): Do not call the_low_target.arch_setup.
20402
20403 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20404 (s390_set_pc): Likewise.
20405 (s390_arch_setup): New function.
20406 (the_low_target): Use s390_arch_setup as arch_setup routine.
20407
20408 * regcache.c (realloc_register_cache): New function.
20409 (set_register_cache): Call it for each existing regcache.
20410
d05b4ac3
UW
204112008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20412
20413 * server.h (init_registers): Remove prototype.
20414
20415 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20416 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20417 instead of init_registers ().
20418 * linux-arm-low.c (init_registers_arm): Add prototype.
20419 (init_registers_arm_with_iwmmxt): Likewise.
20420 (the_low_target): Add initializer for arch_setup field.
20421 * linux-cris-low.c (init_registers_cris): Add prototype.
20422 (the_low_target): Add initializer for arch_setup field.
20423 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20424 (the_low_target): Add initializer for arch_setup field.
20425 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20426 (the_low_target): Add initializer for arch_setup field.
20427 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20428 (the_low_target): Add initializer for arch_setup field.
20429 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20430 (the_low_target): Add initializer for arch_setup field.
20431 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20432 (the_low_target): Add initializer for arch_setup field.
20433 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20434 (init_registers_mips64_linux): Likewise.
20435 (the_low_target): Add initializer for arch_setup field.
20436 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20437 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20438 (the_low_target): Add initializer for arch_setup field.
20439 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20440 (init_registers_powerpc_64): Likewise.
20441 (the_low_target): Add initializer for arch_setup field.
20442 * linux-s390-low.c (init_registers_s390): Add prototype.
20443 (init_registers_s390x): Likewise.
20444 (the_low_target): Add initializer for arch_setup field.
20445 * linux-sh-low.c (init_registers_sh): Add prototype.
20446 (the_low_target): Add initializer for arch_setup field.
20447 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20448 (the_low_target): Add initializer for arch_setup field.
20449 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20450 (the_low_target): Add initializer for arch_setup field.
20451
20452 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20453 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20454 instead of init_registers ().
20455 * win32-arm-low.c (init_registers_arm): Add prototype.
20456 (the_low_target): Add initializer for arch_setup field.
20457 * win32-i386-low.c (init_registers_i386): Add prototype.
20458 (the_low_target): Add initializer for arch_setup field.
20459
20460 * spu-low.c (init_registers_spu): Add prototype.
20461 (initialize_low): Call initialie_registers_spu () instead of
20462 initialize_registers ().
20463
fd96d250
PA
204642008-02-19 Pedro Alves <pedro@codesourcery.com>
20465
20466 * server.c (handle_v_requests): When handling the vRun and vAttach
20467 packets, if already debugging a process, don't kill it. Return an
20468 error instead.
20469
d41b6bb4
DJ
204702008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20471
20472 * server.c (handle_query): Correct length check.
20473
5ac588cf
PA
204742008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20475
20476 * win32-low.c (do_initial_child_stuff): Add process handle
20477 parameter. Set current_process_handle and current_process_id from the
20478 parameters. Clear globals.
20479 (win32_create_inferior): Don't set current_process_handle and
20480 current_process_id here. Instead pass them on the call to
20481 do_initial_child_stuff.
20482 (win32_attach): Likewise.
20483 (win32_clear_inferiors): New.
20484 (win32_kill): Don't close the current process handle or the
20485 current thread handle here. Instead call win32_clear_inferiors.
20486 (win32_detach): Don't open a new handle to the process. Call
20487 win32_clear_inferiors.
20488 (win32_join): Don't rely on current_process_handle; open a new
20489 handle using the process id.
20490 (win32_wait): Call win32_clear_inferiors when the inferior process
20491 has exited.
20492
ecd7ecbc
DJ
204932008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20494
20495 * server.c (monitor_show_help): Add "exit".
20496
1525d545
MG
204972008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20498
ecd7ecbc 20499 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
20500 (clean): Add reg-xtensa.c.
20501 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
20502 * configure.srv (xtensa*-*-linux*) New target.
20503 * linux-xtensa-low.c: New.
20504 * xtensa-xtregs.c: New.
1525d545 20505
59a016f0
PA
205062008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20507
20508 * hostio.c: Don't include errno.h.
20509 (errno_to_fileio_errno): Move to hostio-errno.
20510 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20511 error number outputting to the target->hostio_last_error callback.
20512 (hostio_packet_error): Use FILEIO_EINVAL directly.
20513 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20514 calls to hostio_error.
20515 * hostio-errno.c: New.
20516 * server.h (hostio_last_error_from_errno): Declare.
20517 * target.h (target_ops): Add hostio_last_error member.
20518 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20519 as hostio_last_error handler.
889bf7c5 20520 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
20521 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20522 (wince_hostio_last_error): New functions.
20523 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20524 as hostio_last_error handler.
20525 (win32_target_ops) [!_WIN32_WCE]: Register
20526 hostio_last_error_from_errno as hostio_last_error handler.
20527 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20528 (hostio-errno.o): New rule.
20529 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20530 * configure.srv (srv_hostio_err_objs): New variable. Default to
20531 hostio-errno.o.
20532 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20533 * configure: Regenerate.
20534
2d717e4f
DJ
205352008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20536
20537 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20538 (linux_kill, linux_detach): Clean up the process list.
20539 * remote-utils.c (remote_open): Improve port number parsing.
20540 (putpkt_binary, input_interrupt): Only send interrupts if the target
20541 is running.
20542 * server.c (extended_protocol): Make static.
20543 (attached): Define earlier.
20544 (exit_requested, response_needed, program_argv): New variables.
20545 (target_running): New.
20546 (start_inferior): Clear attached here.
20547 (attach_inferior): Set attached here.
20548 (require_running): Define.
20549 (handle_query): Use require_running and target_running. Implement
20550 "monitor exit".
20551 (handle_v_attach, handle_v_run): New.
20552 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20553 (gdbserver_usage): Update.
20554 (main): Redo argument parsing. Handle --debug and --multi. Handle
20555 --attach along with other options or after the port. Save
20556 program_argv. Support no initial program. Resynchronize
20557 communication with GDB after an error. Handle "monitor exit".
20558 Use require_running and target_running. Always allow the extended
20559 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20560 restart in extended mode.
20561 * README: Refer to the GDB manual. Update --attach usage.
20562
7407e2de
AS
205632007-12-20 Andreas Schwab <schwab@suse.de>
20564
20565 * linux-low.c (STACK_SIZE): Define.
20566 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20567 (linux_test_for_tracefork): Likewise.
20568
b65d95c5
DJ
205692007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20570
20571 * linux-low.c (linux_wait_for_event): Update messages. Do not
20572 reinsert auto-delete breakpoints.
20573 * mem-break.c (struct breakpoint): Change return type of handler to
20574 int.
20575 (set_breakpoint_at): Update handler type.
20576 (reinsert_breakpoint_handler): Return 1 instead of calling
20577 delete_breakpoint.
20578 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20579 setting a new one.
20580 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20581 * mem-break.h (set_breakpoint_at): Update handler type.
20582 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20583 * win32-low.c (auto_delete_breakpoint): New.
20584 (get_child_debug_event): Use it.
20585
4e799345
DJ
205862007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20587
20588 * configure.ac: Check for pread and pwrite.
20589 * hostio.c (handle_pread): Fall back to lseek and read.
20590 (handle_pwrite): Fall back to lseek and write.
20591 * config.in, configure: Regenerated.
20592
27524b67
DJ
205932007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20594
20595 * server.c (myresume): Add own_buf argument.
20596 (main): Update calls.
20597
a20d5e98
DJ
205982007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20599
20600 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20601 * remote-utils.c (remote_open): Do not call disable_async_io.
20602 (block_async_io): Delete.
20603 (unblock_async_io): Make static.
20604 (initialize_async_io): New.
20605 * server.c (handle_v_cont): Handle async I/O here.
20606 (myresume): Likewise. Move other common resume tasks here...
20607 (main): ... from here. Call initialize_async_io. Disable async
20608 I/O before the main loop.
20609 * server.h (initialize_async_io): Declare.
20610 (block_async_io, unblock_async_io): Delete prototypes.
20611 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20612
b79d787e
DJ
206132007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20614
20615 * remote-utils.c (readchar): Allow binary data in received messages.
20616
d97903b2
PA
206172007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20618
20619 * win32-low.c (attaching): New global.
20620 (win32_create_inferior): Clear the `attaching' global.
20621 (win32_attach): Set the `attaching' global.
20622 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20623 attaching. Only set a breakpoint at the entry point if not
20624 attaching.
20625
311de423
PA
206262007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20627
20628 * server.c (main): Don't report dll events on the initial
20629 connection on attaches.
20630
6c2d16d2
PA
206312007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20632
20633 * server.c (main): Relax numerical bases supported for the pid of
20634 the --attach command line argument.
20635
5ca906e6
PA
206362007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20637
20638 * win32-low.c (win32_attach): Call OpenProcess before
20639 DebugActiveProcess, not after. Add last error output to error
20640 call.
20641
9c6c8194
PA
206422007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20643
20644 * win32-low.c (win32_get_thread_context)
20645 (win32_set_thread_context): New functions.
20646 (thread_rec): Use win32_get_thread_context.
20647 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20648 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20649 field.
20650
4d5d1aaa
PA
206512007-12-03 Leo Zayas
20652 Pedro Alves <pedro_alves@portugalmail.pt>
20653
20654 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20655 global variables.
20656 (child_add_thread): Minor cleanup.
20657 (child_continue): Resume artificially suspended threads before
20658 calling ContinueDebugEvent.
20659 (suspend_one_thread): New.
20660 (fake_breakpoint_event): New.
20661 (get_child_debug_event): Change return type to int. Check here if
20662 gdb sent an interrupt request. If a soft interrupt was requested,
20663 fake a breakpoint event. Return 0 if there is no event to handle,
20664 and 1 otherwise.
20665 (win32_wait): Don't check here if gdb sent an interrupt request.
20666 Ensure there is a valid event to handle.
20667 (win32_request_interrupt): Add soft interruption method as last
20668 resort.
20669
c436e841
PA
206702007-12-03 Leo Zayas
20671 Pedro Alves <pedro_alves@portugalmail.pt>
20672
20673 * win32-low.h (win32_thread_info): Add descriptions to the
20674 structure members. Replace `suspend_count' counter by a
20675 `suspended' flag.
20676 * win32-low.c (thread_rec): Update condition of when to get the
20677 context from the inferior. Rely on ContextFlags being set if it
20678 has already been retrieved. Only suspend the inferior thread if
20679 we haven't already. Warn if that fails.
20680 (continue_one_thread): s/suspend_count/suspended/. Only call
20681 ResumeThread once. Warn if that fails.
20682
e7b5fa67
PA
206832007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20684
20685 * win32-low.c (win32_wait): Don't read from the inferior when it
20686 has already exited.
20687
a385171d
PA
206882007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20689
20690 * Makefile.in (win32_low_h): New variable.
20691 (win32-low.o): Add dependency on $(win32_low_h).
20692 (win32-arm-low.o, win32-i386-low.o): New rules.
20693
f80c84b3
DJ
206942007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20695
20696 * hostio.c: Correct copyright year.
20697
a6b151f1
DJ
206982007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20699
20700 * Makefile.in (OBS): Add hostio.o.
20701 (hostio.o): New rule.
20702 * server.h (handle_vFile): Declare.
20703 * hostio.c: New file.
20704 * server.c (handle_v_requests): Take packet_len and new_packet_len
20705 for binary packets. Call handle_vFile.
20706 (main): Update call to handle_v_requests.
20707
f9387fc3
DJ
207082007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20709
20710 * linux-low.c: Include <sched.h>.
20711
51c2684e
DJ
207122007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20713
20714 * linux-low.c (linux_tracefork_grandchild): New.
20715 (linux_tracefork_child): Use clone.
20716 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20717
75f83163
JB
207182007-10-31 Joel Brobecker <brobecker@adacore.com>
20719
20720 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20721
da5898ce
DJ
207222007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20723
20724 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20725
24a09b5f
DJ
207262007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20727
20728 * inferiors.c (change_inferior_id): Delete.
20729 (add_pid_to_list, pull_pid_from_list): New.
20730 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20731 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20732 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20733 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20734 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20735 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20736 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20737 (using_threads): Always set to 1.
20738 (handle_extended_wait): New.
20739 (add_process): Do not set TID.
20740 (linux_create_inferior): Set must_set_ptrace_flags.
20741 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20742 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20743 (linux_thread_alive): Rename TID argument to LWPID.
20744 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20745 (linux_wait_for_event): Do not use TID or check using_threads. Update
20746 call to dead_thread_notify. Call handle_extended_wait.
20747 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20748 (send_sigstop): Delete sigstop_sent.
20749 (wait_for_sigstop): Avoid TID.
20750 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20751 (linux_test_for_tracefork): New.
20752 (linux_lookup_signals): Use thread_db_active and
20753 linux_supports_tracefork_flag.
20754 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20755 * linux-low.h (get_process_thread): Avoid TID.
20756 (struct process_ifo): Move thread_known and tid to the end. Remove
20757 sigstop_sent.
20758 (linux_attach_lwp, thread_db_init): Update prototypes.
20759 * server.h (change_inferior_id): Delete prototype.
20760 (add_pid_to_list, pull_pid_from_list): New prototypes.
20761 * thread-db.c (thread_db_use_events): New.
20762 (find_first_thread): Rename to...
20763 (find_one_thread): ...this. Update callers and messages. Do not
20764 call fatal. Check thread_db_use_events. Do not call
20765 change_inferior_id or new_thread_notify.
20766 (maybe_attach_thread): Update. Do not call new_thread_notify.
20767 (thread_db_init): Set thread_db_use_events. Check use_events.
20768 * utils.c (fatal, warning): Correct message prefix.
20769
30ed0a8f
DJ
207702007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20771
20772 * Makefile.in (clean): Remove new files.
20773 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20774 (powerpc-64.o, powerpc-64.c): New rules.
20775 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20776 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20777 with SPE.
20778 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20779 SPE targets.
20780 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20781 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20782 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20783 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20784 (target_regsets): Add AltiVec and SPE register sets.
20785 * configure.ac: Check for AltiVec and SPE.
20786 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20787 (ppc_fill_vrregset, ppc_store_vrregset): New.
20788 (target_regsets): Add AltiVec register set.
20789 * configure: Regenerated.
20790
fd462a61
DJ
207912007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20792
20793 * linux-low.c (O_LARGEFILE): Define.
20794 (linux_read_memory): Use /proc/PID/mem.
20795 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20796 * configure, config.in: Regenerated.
20797
69f223ed
DJ
207982007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20799
20800 * linux-low.c (linux_wait_for_event): Do not pass signals while
20801 single-stepping.
20802
aec18585
PA
208032007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20804
20805 * win32-low.c (create_process): New.
20806 (win32_create_inferior): Use create_process instead of
20807 CreateProcess. If create_process failed retry appending an ".exe"
20808 suffix. Store the GetLastError result immediatelly after
20809 create_process calls and use it on the call to error.
20810
34d86ddd
PA
208112007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20812
20813 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20814
5a0e3bd0
JB
208152007-08-23 Joel Brobecker <brobecker@adacore.com>
20816
20817 * configure.ac: Switch license to GPLv3.
20818
f88c79e6
MS
208192007-08-01 Michael Snyder <msnyder@access-company.com>
20820
20821 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20822
6b3d9b83
PA
208232007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20824
20825 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20826 typedef.
20827 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20828 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20829 CloseToolhelp32Snapshot.
20830 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20831 CloseToolhelp32Snapshot.
20832
c588c53c
MS
208332007-07-27 Michael Snyder <michael.snyder@access-company.com>
20834
20835 * server.c (main): Check for inferior exit before main loop.
20836
aa0403d9
PA
208372007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20838
20839 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20840 instead of on tmp_desc.
20841
255e7678
DJ
208422007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20843 Daniel Jacobowitz <dan@codesourcery.com>
20844
20845 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20846 (add_thread): Minor cleanups.
20847 (clear_inferiors): Move lower in the file. Clear the DLL
20848 list.
20849 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20850 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20851 (xml_escape_text): New.
20852 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20853 for qSupported.
20854 (handle_v_cont): Report errors.
20855 (gdbserver_version): Update.
20856 (main): Correct size of own_buf. Do not report initial DLL events.
20857 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20858 (unloaded_dll, xml_escape_text): New.
20859 * win32-low.c (enum target_waitkind): Update comments.
20860 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20861 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20862 (win32_EnumProcessModules, win32_GetModuleInformation)
20863 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20864 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20865 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20866 (win32_Module32First, win32_Module32Next, load_toolhelp)
20867 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20868 (get_child_debug_event): Handle DLL events.
20869 (win32_wait): Likewise.
20870
0d37add9
DJ
208712007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20872
20873 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20874 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20875
45e2715e
PA
208762007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20877
20878 * win32-low.c (handle_output_debug_string): Ignore event if not
20879 waiting.
20880
c5674cf1
PA
208812007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20882
20883 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20884
2bbe3cc1
DJ
208852007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20886
20887 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20888
ae13219e
DJ
208892007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20890
20891 * inferiors.c (change_inferior_id): Add comment.
20892 * linux-low.c (check_removed_breakpoint): Add an early
20893 prototype. Improve debug output.
20894 (linux_attach): Doc update.
20895 (linux_detach_one_process, linux_detach): Clean up before releasing
20896 each process.
20897 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20898 * linux-low.h (struct process_info): Doc improvement.
20899 * mem-break.c (delete_all_breakpoints): New.
20900 * mem-break.h (delete_all_breakpoints): New prototype.
20901 * thread-db.c (find_first_thread): New.
20902 (thread_db_create_event): Call it instead of
20903 thread_db_find_new_threads. Clean up unused variables.
20904 (maybe_attach_thread): Remove first thread handling.
20905 (thread_db_find_new_threads): Use find_first_thread.
20906 (thread_db_get_tls_address): Likewise.
20907
4105de34
DJ
209082007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20909
20910 * thread-db.c (thread_db_find_new_threads): Add prototype.
20911 (thread_db_create_event): Check for the main thread before adding
20912 a new thread.
20913 (maybe_attach_thread): Only enable event reporting if TID == 0.
20914 (thread_db_get_tls_address): Check for new threads.
20915
2b876972
DJ
209162007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20917
20918 * linux-low.c (linux_create_inferior): Try execv before execvp.
20919 * spu-low.c (spu_create_inferior): Likewise.
20920
7a245884
DJ
209212007-06-13 Mike Frysinger <vapier@gentoo.org>
20922
20923 * linux-low.c (linux_create_inferior): Change execv to execvp.
20924 * spu-low.c (spu_create_inferior): Likewies.
20925
117ce543
DJ
209262007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20927
20928 * Makefile.in (clean): Clean new files instead of deleted ones.
20929 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20930 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20931 rules.
20932 * configure.srv: Specify XML files and new regformats for MIPS and
20933 MIPS64 GNU/Linux.
20934 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20935 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20936 an entry for the restart register.
20937 (mips_cannot_fetch_register, mips_cannot_store_register)
20938 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20939 register names to match the XML descriptions.
20940 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20941 restart register instead of $0.
20942
0e7f50da
UW
209432007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20944 Markus Deuling <deuling@de.ibm.com>
20945
20946 * remote-utils.c (decode_xfer_write): New function.
20947 * server.h (decode_xfer_write): Add prototype.
20948 * server.c (handle_query): Add PACKET_LEN argument. Support
20949 qXfer:spu:read and qXfer:spu:write packets.
20950 (main): Pass packet_len to handle_query.
20951 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20952 * target.h (target_ops): Add qxfer_spu.
20953
374c1d38
UW
209542007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20955
20956 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20957 accessing non-seekable spufs files.
20958
bb63802a
UW
209592007-05-16 Markus Deuling <deuling@de.ibm.com>
20960
889bf7c5 20961 * server.c (handle_query): Add reply for qC packet.
bb63802a 20962
7390519e
PA
209632007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20964 Leo Zayas <lerele@champenstudios@com>
20965
20966 * server.h (check_remote_input_interrupt_request): New function.
20967 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20968 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20969 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20970 (check_remote_input_interrupt_request): New function.
20971 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 20972 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
20973 winapi_GenerateConsoleCtrlEvent): New typedefs.
20974 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20975 to 250 ms.
20976 (win32_wait): Check for remote interrupt request
20977 with check_remote_input_interrupt_request.
20978 (win32_request_interrupt): New function.
20979 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20980
34b34921
PA
209812007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20982
20983 * win32-low.c (debug_registers_changed,
20984 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20985 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20986 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20987 (thread_rec): Get context using the low target.
20988 (child_add_thread): Call thread_added on the low target,
20989 which does the same thing.
20990 (regptr): Delete.
20991 (do_initial_child_stuff): Remove debug registers references.
20992 Set context using the low target. Resume threads after
20993 setting the contexts.
20994 (child_continue): Remove dead variable. Remove debug
20995 registers references.
20996 (child_fetch_inferior_registers): Go through the low target.
20997 (do_child_store_inferior_registers): Remove.
20998 (child_store_inferior_registers): Go through the low target.
20999 (win32_resume): Remove debug registers references.
21000 Set context using the low target.
21001 (handle_exception): Change return type to void. Don't record
21002 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21003 first chance exception.
889bf7c5 21004 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
21005 goto loop. Always return after waiting for debug event.
21006 (win32_wait): Convert to switch statement. Handle spurious
21007 events.
21008
21009 * win32-i386-low.c (debug_registers_changed,
21010 debug_registers_used): New.
21011 (initial_stuff): Rename to ...
21012 (i386_initial_stuff): ... this. Clear debug registers
21013 state variables.
21014 (store_debug_registers): Delete.
21015 (i386_get_thread_context): New.
21016 (load_debug_registers): Delete.
21017 (i386_set_thread_context): New.
21018 (i386_thread_added): New.
21019 (single_step): Rename to ...
21020 (i386_single_step): ... this.
21021 (do_fetch_inferior_registers): Rename to ...
21022 (i386_fetch_inferior_register): ... this.
21023 (i386_store_inferior_register): New.
21024 (the_low_target): Adapt to new interface.
21025
21026 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21027 (arm_get_thread_context): New.
21028 (arm_set_thread_context): New.
21029 (regptr): New.
21030 (do_fetch_inferior_registers): Rename to ...
21031 (arm_fetch_inferior_register): ... this.
21032 (arm_store_inferior_register): New.
21033 (arm_wince_breakpoint): Reimplement as unsigned long.
21034 (arm_wince_breakpoint_len): Define.
21035 (the_low_target): Adapt to new interface.
21036
21037 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21038 load_debug_registers. Add get_thread_context, set_thread_context,
21039 thread_added and store_inferior_register. Rename
21040 fetch_inferior_registers to fetch_inferior_register.
21041 (regptr): Remove declaration.
21042
dd6953e1
PA
210432007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21044
21045 * linux-low.c (linux_detach): Change return type to int. Return 0.
21046 * spu-low.c (spu_detach): Likewise.
21047
444d6139
PA
210482007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21049
21050 * target.h (target_ops): Change return type of detach to int.
21051 Add join.
21052 (join_inferior): New.
21053 * server.c (main): Don't skip detach support on mingw32.
21054 If the inferior doesn't support detaching return error.
21055 Call join_inferior instead of using waitpid.
21056 * linux-low.c (linux_join): New.
21057 (linux_target_op): Add linux_join.
21058 * spu-low.c (spu_join): New.
21059 (spu_target_ops): Add spu_join.
21060 * win32-low.c (win32_detach): Adapt to new interface.
21061 Reopen current_process_handle before detaching. Issue a child
21062 resume before detaching.
21063 (win32_join): New.
21064 (win32_target_op): Add win32_join.
21065
1d5315fe
PA
210662007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21067
21068 * win32-low.c (win32-attach): Fix return value.
21069 * target.h (target_ops): Describe ATTACH return values.
21070
bf914831
PA
210712007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21072
21073 * win32-low.c (GETPROCADDRESS): Define.
21074 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21075 (winapi_DebugSetProcessKillOnExit): Likewise.
21076 (win32_create_inferior): Force usage of ansi CreateProcessA.
21077 (win32_attach): Use GETPROCADDRESS.
21078 (win32_detach): Likewise.
21079
f72f3e60
PA
210802007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21081
21082 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21083
ed50f18f
PA
210842007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21085
21086 * win32-low.c: Commit leftover changes from 2007-03-29.
21087
0c2ead7e
DJ
210882007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21089
21090 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21091 fields short instead of int. Add explicit padding.
21092 (i387_cache_to_fsave): Remove unnecessary casts.
21093 (i387_fsave_to_cache): Doc fix.
21094 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21095
73725ff3
DJ
210962007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21097
21098 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21099 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21100
d99f33d8
PA
211012007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21102
21103 * configure.srv (arm*-*-mingw32ce*): Move near the other
21104 arm targets.
21105
68070c10
PA
211062007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21107
2482afc6 21108 * configure.ac: Add errno checking.
68070c10
PA
21109 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21110 sys/file.h and malloc.h.
21111 (AC_CHECK_DECLS): Add perror.
21112 (srv_mingwce): Handle.
2482afc6 21113 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
21114 win32-i386-low.o to srv_tgtobj.
21115 (i[34567]86-*-mingw*): Likewise.
21116 (arm*-*-mingw32ce*): Add case.
21117 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21118 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21119 [__MINGW32CE__] (strerror): New function.
21120 [__MINGW32CE__] (errno): Define to GetLastError.
21121 [__MINGW32CE__] (COUNTOF): New macro.
21122 (remote_open): Remove extra close call.
21123 * mem-break.c (delete_breakpoint_at): New function.
21124 * mem-break.h (delete_breakpoint_at): Declare.
21125 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21126 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21127 [USE_WIN32API] (read, write): Add char* casts.
21128 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21129 * server.h: Include wincecompat.h on Windows CE.
21130 [HAVE_ERRNO_H]: Check.
21131 (perror): Declare if not declared.
21132 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21133 (perror_with_name): Remove errno declaration.
21134 * wincecompat.h: New.
21135 * wincecompat.c: New.
21136 * win32-low.h: New.
21137 * win32-arm-low.c: New.
21138 * win32-i386-low.c: New.
21139 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21140 (OUTMSG2): Make it safe.
21141 (_T): New macro.
21142 (COUNTOF): New macro.
21143 (NUM_REGS): Get it from the low target.
21144 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21145 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21146 (thread_rec): Let low target handle debug registers.
21147 (child_add_thread): Likewise.
21148 (child_init_thread_list): Likewise.
21149 (continue_one_thread): Likewise.
21150 (regptr): New.
21151 (do_child_fetch_inferior_registers): Move to ...
21152 * win32-i386-low.c: ... here, and rename to ...
21153 (do_fetch_inferior_registers): ... this.
889bf7c5 21154 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
21155 Go through the low target.
21156 (do_child_store_inferior_registers): Use regptr.
21157 (strwinerror): New function.
21158 (win32_create_inferior): Handle Windows CE.
21159 Use strwinerror instead of strerror on Windows error
21160 codes. Add program to the error output.
21161 Don't close the main thread handle on Windows CE.
21162 (win32_attach): Use coredll.dll on Windows CE.
21163 (win32_kill): Close current process and current
21164 thread handles.
21165 (win32_detach): Use coredll.dll on Windows CE.
21166 (win32_resume): Let low target handle debug registers, and
21167 step request.
21168 (handle_exception): Add/Remove initial breakpoint. Avoid
21169 non-existant WSTOPSIG on Windows CE.
21170 (win32_read_inferior_memory): Cast to remove warning.
21171 (win32_arch_string): Go through the low target.
21172 (initialize_low): Call set_breakpoint_data with the low
21173 target's breakpoint.
21174 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21175 FOP_REGNUM, mappings): Move to ...
21176 * win32-i386-low.c: ... here.
21177 * win32-low.c (win32_thread_info): Move to ...
21178 * win32-low.h: ... here.
21179 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21180 win32-arm-low.c and wincecompat.c.
21181 (all:): Add $EXEEXT.
21182 (install-only:): Likewise.
21183 (gdbserver:): Likewise.
21184 (gdbreplay:): Likewise.
21185 * config.in: Regenerate.
21186 * configure: Regenerate.
21187
41093d81
PA
211882007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21189
21190 * win32-low.c: Rename typedef thread_info to
21191 win32_thread_info throughout.
21192
544afa54
PA
211932007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21194
21195 * win32-i386-low.c: Rename to ...
21196 * win32-low.c: ... this.
21197 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21198 * Makefile.in: Likewise.
21199
bce7165d
PA
212002007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21201
21202 * remote-utils.c (monitor_output): Constify msg parameter.
21203 * server.h (monitor_output): Likewise.
21204 * win32-i386-low.c (handle_output_debug_string): New.
21205 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21206 handle_output_debug_string.
21207 (get_child_debug_event): Likewise.
21208
506c7aa0
DJ
212092007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21210
21211 * server.c (main): Correct strtoul check.
21212
42c81e2a
DJ
212132007-03-27 Jon Ringle <jon@ringle.org>
21214
21215 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21216
9453113a
DJ
212172007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21218
21219 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21220
64a69107
DJ
212212007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21222
21223 * terminal.h: Check HAVE_SGTTY_H.
21224
212252007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
21226
21227 * remote-utils.c (remote_open): Print out the assigned port number.
21228
c74d0ad8
DJ
212292007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21230
21231 * remote-utils.c (monitor_output): New function.
21232 * server.c (debug_threads): Define here.
21233 (monitor_show_help): New function.
21234 (handle_query): Handle qRcmd.
21235 (main): Do not handle 'd' packet.
21236 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21237 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21238 of debug_threads.
21239
de7c3b4a
PA
212402007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21241
21242 * Makefile.in (EXEEXT): New.
21243 (clean): Use $(EXEEXT).
21244
ef57601b
PA
212452007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21246
21247 * target.h (target_ops): Rename send_signal to request_interrupt,
21248 and remove enum target_signal parameter.
21249 * linux-low.c (linux_request_interrupt): Rename from
21250 linux_send_signal, and always send SIGINT.
21251 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21252 and always send SIGINT.
21253 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21254 of send_signal.
21255 (input_interrupt): Likewise.
21256
820f2bda
PA
212572007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21258
21259 * server.c (get_features_xml): Check if target implemented
21260 arch_string.
21261 * win32-i386-low.c (win32_arch_string): New.
21262 (win32_target_ops): Add win32_arch_string as arch_string member.
21263
ab39bf24
UW
212642007-02-22 Markus Deuling <deuling@de.ibm.com>
21265
21266 * spu-low.c (spu_arch_string): New.
21267 (spu_target_ops): Add spu_arch_string.
21268
61ff6e04
DJ
212692007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21270
21271 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21272 * configure.ac: Do not check for terminal.h.
21273 * configure, config.in: Regenerated.
21274
fb1e4ffc
DJ
212752007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21276
21277 * Makefile.in (OBS): Add $(XML_BUILTIN).
21278 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21279 (clean): Update.
21280 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21281 (arm-with-iwmmxt.c): New.
21282 * config.in, configure: Regenerate.
21283 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21284 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21285 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21286 (arm*-*-linux*): Add iWMMXt and regset support.
21287 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21288 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21289 (arm_store_wmmxregset, target_regsets): New.
21290 * server.c (get_features_xml): Take annex argument. Check builtin
21291 XML documents.
21292 (handle_query): Handle multiple annexes.
21293
0f48aa01
DJ
212942007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21295
21296 * remote-utils.c [USE_WIN32API] (read, write): Define.
21297 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21298 write.
21299
23181151
DJ
213002007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21301
21302 * linux-i386-low.c (the_low_target): Set arch_string.
21303 * linux-x86-64-low.c (the_low_target): Likewise.
21304 * linux-low.c (linux_arch_string): New.
21305 (linux_target_ops): Add it.
21306 * linux-low.h (struct linux_target_ops): Add arch_string.
21307 * server.c (write_qxfer_response): Use const void * for DATA.
21308 (get_features_xml): New.
21309 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21310 * target.h (struct target_ops): Add arch_string method.
21311
9d606399
DJ
213122007-01-03 Denis Pilat <denis.pilat@st.com>
21313 Daniel Jacobowitz <dan@codesourcery.com>
21314
21315 * linux-low.c (linux_kill): Handle being called with no threads.
21316 * win32-i386-low.c (win32_kill): Likewise.
21317 (get_child_debug_event): Clear current_process_handle.
21318
213192006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
21320 Daniel Jacobowitz <dan@codesourcery.com>
21321
21322 * remote-utils.c (remote_open): Check the type of specified
21323 serial port devices before opening them.
21324 * server.c (main): Kill the inferior if an error occurs during
21325 the first remote_open.
21326
a5e13d24
DJ
213272006-12-05 Markus Deuling <deuling@de.ibm.com>
21328
21329 * README: Update supported targets.
21330
186947f7
DJ
213312006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21332
21333 * Makefile.in (clean): Remove reg-mips64.c.
21334 (reg-mips64.c, reg-mips64.o): New rules.
21335 * configure.srv: Handle mips64. Include regset support for mips.
21336 * linux-mips-low.c (union mips_register): New.
21337 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21338 (mips_breakpoint, mips_breakpoint_at): Use int.
21339 (mips_collect_register, mips_supply_register)
21340 (mips_collect_register_32bit, mips_supply_register_32bit)
21341 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21342 (mips_store_fpregset, target_regsets): New.
21343 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21344
a13e2c95
UW
213452006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21346
21347 * configure.srv: Add target "spu*-*-*".
21348 * Makefile.in (clean): Remove reg-spu.c.
21349 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21350 * spu-low.c: New file.
21351
cb7283db
DJ
213522006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21353
21354 * configure.ac: Correct td_thr_tls_get_addr test.
21355 * configure: Regenerated.
21356
89be2091
DJ
213572006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21358
21359 * linux-low.c (linux_wait_for_event): Reformat. Use the
21360 pass_signals array.
21361 * remote-utils.c (decode_address_to_semicolon): New.
21362 * server.c (pass_signals, handle_general_set): New.
21363 (handle_query): Mention QPassSignals for qSupported.
21364 (main): Call handle_general_set.
21365 * server.h (pass_signals, decode_address_to_semicolon): New.
21366
000ef4f0
DJ
213672006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21368
21369 * server.c (handle_query): Correct error handling for read_auxv.
21370
b7149293
UW
213712005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21372
21373 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21374 and srv_linux_thread_db to yes.
21375 * linux-s390-low.c (s390_fill_gregset): New function.
21376 (target_regsets): Define data structure.
21377
dae5f5cf
DJ
213782006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21379
21380 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21381 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21382 * config.in, configure: Regenerated.
21383 * inferiors.c (gdb_id_to_thread): New function.
21384 (gdb_id_to_thread_id): Use it.
21385 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21386 * linux-low.h (struct process_info): Add th member.
21387 (thread_db_get_tls_address): New prototype.
21388 * remote-utils.c (decode_address): Make non-static.
21389 * server.c (handle_query): Handle qGetTLSAddr.
21390 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21391 * target.h (struct target_ops): Add get_tls_address.
21392 * thread-db.c (maybe_attach_thread): Save the thread handle.
21393 (thread_db_get_tls_address): New.
21394
32ca6d61
DJ
213952006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21396
21397 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21398 (linux_resume_one_process): Take a siginfo_t *. Update all
21399 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21400 (struct pending_signals): Add a siginfo_t.
21401 (linux_wait_for_process): Always set last_status.
21402 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21403 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21404 * linux-low.h (struct process_info): Add last_status.
21405
5ffff7c1
DJ
214062006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21407
21408 * remote-utils.c (try_rle): New function.
21409 (putpkt_binary): Use it.
21410
8695c747
DJ
214112006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21412
21413 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21414 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21415 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21416 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21417 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21418 point registers.
21419
290fadea
RS
214202006-08-08 Richard Sandiford <richard@codesourcery.com>
21421
21422 * server.c (terminal_fd): New variable.
21423 (old_foreground_pgrp): Likewise.
21424 (restore_old_foreground_pgrp): New function.
21425 (start_inferior): Record the terminal file descriptor in terminal_fd
21426 and its original foreground group in old_foreground_pgrp. Register
21427 restore_old_foreground_pgrp with atexit().
21428
9f2e1e63
DJ
214292006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21430
21431 * server.c (handle_query): Correct qPart to qXfer.
21432
b80864fb
DJ
214332006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21434
21435 * configure.ac: Check for more headers which are missing on
21436 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21437 * configure.srv: Add Cygwin and mingw32.
21438 * remote-utils.c: Don't include headers unconditionally which
21439 are missing on mingw32. Include <winsock.h> for mingw32.
21440 (remote_open): Adjust for mingw32 support. Flush
21441 standard error after writing to it.
21442 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21443 (unblock_async_io, enable_async_io, disable_async_io)
21444 (readchar, getpkt): Update for Winsock support.
21445 (prepare_resume_reply): Expect a protocol signal number.
21446 * server.c: Disable <sys/wait.h> on mingw32.
21447 (start_inferior): Adjust for mingw32 support. Flush
21448 standard error after writing to it.
21449 (attach_inferior): Likewise. Use protocol signal
21450 numbers.
21451 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21452 and names.
21453 * win32-i386-low.c: New file.
21454 * Makefile.in (XM_CLIBS): Set.
21455 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21456 (win32-i386-low.o): New dependency rule.
21457 * linux-low.c (linux_wait): Use target signal numbers.
21458 * target.h (struct target_ops): Doc fix.
21459 * server.h (target_signal_to_name): New prototype.
21460 * gdbreplay.c: Don't include headers unconditionally which
21461 are missing on mingw32. Include <winsock.h> for mingw32.
21462 (remote_close, remote_open): Adjust for Winsock support.
21463 * configure, config.in: Regenerated.
21464
0876f84a
DJ
214652006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21466
21467 * server.c (decode_xfer_read, write_qxfer_response): New.
21468 (handle_query): Take a packet length argument. Handle
21469 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21470 the qSupported response.
21471 (main): Update call to handle_query.
21472
01f9e8fa
DJ
214732006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21474
21475 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21476 (putpkt_binary): Renamed from putpkt and adjusted for binary
21477 data.
21478 (putpkt): New wrapper for putpkt_binary.
21479 (readchar): Don't mask off the high bit.
21480 (decode_X_packet): New function.
21481 * server.c (main): Call putpkt_binary if a handler sets the packet
21482 length. Save the length of the incoming packet. Handle 'X'.
21483 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21484
be2a5f71
DJ
214852006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21486
21487 * server.c (handle_query): Handle qSupported.
21488
ea025f5f
DJ
214892006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21490
21491 * remote-utils.c (all_symbols_looked_up): New variable.
21492 (look_up_one_symbol): Check it.
21493 * server.h (look_up_one_symbol): New declaration.
21494 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21495
9308fc88
DJ
214962006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21497
21498 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 21499 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
21500 (PTRACE_GET_THREAD_AREA): Define.
21501 (ps_get_thread_area): New function.
21502
52fb6437
NS
215032006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21504
21505 * configure.srv (m68k*-*-uclinux*): New target.
21506 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21507 (linux_resume_one_process): Remove extraneous cast.
21508 (linux_read_offsets): New.
21509 (linux_target_op): Add linux_read_offsets on mmuless systems.
21510 * server.c (handle_query): Add qOffsets logic.
21511 * target.h (struct target_ops): Add read_offsets.
21512
21b0f40c
DJ
215132006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21514
21515 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21516 (PTRACE_GET_THREAD_AREA): Define.
21517 (ps_get_thread_area): New function.
21518 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21519 (linux-x86-64-low.o): Update.
21520
0050a760
DJ
215212006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21522
21523 * configure.ac: Remove checks for prfpregset_t.
21524 * gdb_proc_service.h: New file.
21525 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21526 new "gdb_proc_service.h".
21527 * proc-service.c: Likewise.
21528 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21529 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21530 * Makefile.in (gdb_proc_service_h): Updated.
21531 * configure, config.in: Regenerated.
21532
b92a518e
DJ
215332006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21534
21535 * remote-utils.c (prepare_resume_reply): Move declaration
21536 of gdb_id_from_wait to the top of the block.
21537
545587ee
DJ
215382006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21539
21540 * linux-low.c (regsets_store_inferior_registers): Read the regset
21541 from the target before filling it.
21542
9db87ebd
DJ
215432006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21544
21545 * server.c (attach_inferior): Return SIGTRAP for a successful
21546 attach.
21547
dd24457d
DJ
215482006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21549
21550 * Makefile.in (OBS): Add version.o.
21551 (STAGESTUFF): Delete.
21552 (version.o): Add dependencies.
21553 (version.c): Replace rule.
21554 (clean): Remove version.c.
21555 * server.c (gdbserver_version): New.
21556 (gdbserver_usage): Use printf.
21557 (main): Handle --version and --help.
21558 * server.h (version, host_name): Add declarations.
21559
6f0f660e
EZ
215602005-12-23 Eli Zaretskii <eliz@gnu.org>
21561
889bf7c5
PA
21562 * linux-arm-low.c:
21563 * linux-arm-low.c:
21564 * inferiors.c:
21565 * i387-fp.h:
21566 * i387-fp.c:
21567 * gdbreplay.c:
21568 * regcache.c:
21569 * proc-service.c:
21570 * mem-break.h:
21571 * mem-break.c:
21572 * linux-x86-64-low.c:
21573 * linux-sh-low.c:
21574 * linux-s390-low.c:
21575 * linux-ppc64-low.c:
21576 * linux-ppc-low.c:
21577 * linux-mips-low.c:
21578 * linux-m68k-low.c:
21579 * linux-m32r-low.c:
21580 * linux-low.h:
21581 * linux-low.c:
21582 * linux-ia64-low.c:
21583 * linux-i386-low.c:
21584 * linux-crisv32-low.c:
21585 * thread-db.c:
21586 * terminal.h:
21587 * target.h:
21588 * target.c:
21589 * server.h:
21590 * server.c:
21591 * remote-utils.c:
21592 * regcache.h:
21593 * utils.c:
21594 * Makefile.in:
21595 * configure.ac:
6f0f660e
EZ
21596 * gdbserver.1: Add (C) after Copyright. Update the FSF
21597 address.
21598
9d1fb177
DJ
215992005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21600
21601 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21602 (arm_breakpoint_at): Recognize both breakpoints.
21603 (the_low_target): Use the correct breakpoint instruction.
21604
011a70c2
DJ
216052005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21606
21607 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21608 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21609 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21610 (the_low_target): Update.
21611
7fb85e41
AS
216122005-10-25 Andreas Schwab <schwab@suse.de>
21613
21614 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21615
21616 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21617 (ia64_num_regs): Reduce to 462.
21618
3db0444b
DJ
216192005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21620
21621 * acinclude.m4: Correct quoting.
21622 * aclocal.m4: Regenerated.
21623
21624 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21625 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21626 (thread_db_init): Call thread_db_err_str.
21627 * configure.ac: Check for TD_VERSION.
21628 * config.in, configure: Regenerated.
21629
bee0189a
DJ
216302005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21631
21632 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21633
e9d25b98
DJ
216342005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21635
21636 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21637 is not available. Define HAVE_PTRACE_GETREGS if it is.
21638 * config.in, configure: Regenerated.
21639 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21640 * linux-i386-low.c, linux-m68k-low.c: Update to use
21641 HAVE_PTRACE_GETREGS.
21642 * linux-low.c (regsets_fetch_inferior_registers)
21643 (regsets_store_inferior_registers): Only return 0 if we processed
21644 GENERAL_REGS.
21645 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21646 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21647
a06660f7
DJ
216482005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21649
21650 * inferiors.c (struct thread_info): Add gdb_id.
21651 (add_thread): Add gdb_id argument.
21652 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21653 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21654 calls to add_thread.
21655 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21656 * server.c (handle_query): Use thread_to_gdb_id.
21657 (handle_v_cont, main): Use gdb_id_to_thread_id.
21658 * server.h (add_thread): Update prototype.
21659 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21660 prototypes.
21661
5a1f5858
DJ
216622005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21663
21664 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21665 left-padded registers.
21666 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21667 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21668
e122f1f5
SE
216692005-07-01 Steve Ellcey <sje@cup.hp.com>
21670
21671 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21672 * configure: Regenerate.
21673 * config.in: Regenerate.
21674 * server.h (NEED_DECLARATION_STRERROR):
21675 Replace with !HAVE_DECL_STRERROR.
21676
d592fa2f
DJ
216772005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21678
21679 * linux-low.c (linux_wait, linux_send_signal): Don't test
21680 an unsigned long variable for > 0 if it could be MAX_ULONG.
21681 * server.c (myresume): Likewise.
21682 * target.c (set_desired_inferior): Likewise.
21683
ccbd4912
MK
216842005-06-13 Mark Kettenis <kettenis@gnu.org>
21685
21686 * configure.ac: Simplify and improve check for socklen_t.
21687 * configure, config.in: Regenerate.
21688
f450004a
DJ
216892005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21690
21691 * acconfig.h: Remove.
21692 * configure.ac: Add a test for socklen_t. Use three-argument
21693 AC_DEFINE throughout.
21694 * config.in: Regenerated using autoheader 2.59.
21695 * configure: Regenerated.
21696
21697 * gdbreplay.c (socklen_t): Provide a default.
21698 (remote_open): Use socklen_t.
21699 * remote-utils.c (socklen_t): Provide a default.
21700 (remote_open): Use socklen_t.
21701 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21702 unsigned char.
21703
21704 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21705 char for buffers.
21706 * linux-low.c (linux_read_memory, linux_write_memory)
21707 (linux_read_auxv): Likewise.
21708 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21709 (check_mem_write): Likewise.
21710 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21711 Likewise.
21712 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21713 (registers_from_string, register_data): Likewise.
21714 * server.c (handle_query, main): Likewise.
21715 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21716 (decode_M_packet): Likewise.
21717 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21718 * target.h (struct target_ops): Update read_memory, write_memory,
21719 and read_auxv.
21720 (read_inferior_memory, write_inferior_memory): Update.
21721 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21722 to unsigned char *.
21723 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21724 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21725 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21726 linux-s390-low.c, linux-sh-low.c: Update for changes in
21727 read_inferior_memory and the_low_target->breakpoint.
21728
eee84df1
DJ
217292005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21730
21731 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21732 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21733 * configure.srv: Add powerpc64-*-linux*.
21734 * linux-ppc64-low.c: New file.
21735
45b134e5
OF
217362005-05-23 Orjan Friberg <orjanf@axis.com>
21737
21738 * linux-cris-low.c: New file with support for CRIS.
21739 * linux-crisv32-low.c: Ditto for CRISv32.
21740 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21741 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 21742 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
21743 reg-crisv32.o, and reg-crisv32.c to make rules.
21744 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21745 recognized targets.
21746
48d93c75
UW
217472005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21748
21749 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21750 of sizeof (PTRACE_XFER_TYPE).
21751 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21752
e013ee27
OF
217532005-05-12 Orjan Friberg <orjanf@axis.com>
21754
889bf7c5 21755 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
21756 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21757 pointers for hardware watchpoint support.
21758 * linux-low.h (struct linux_target_ops): Ditto.
21759 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21760 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21761 to linux_target_ops.
21762 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21763 reply packet.
21764 * server.c (main): Recognize 'Z' and 'z' packets.
21765
b0ded00b
UW
217662005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21767
21768 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21769 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21770 (the_low_target): Add new members.
21771
8643e2ad
DJ
217722005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21773
21774 * proc-service.c (ps_lgetregs): Search all_processes instead of
21775 all_threads.
21776
fc620387
DJ
217772005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21778
21779 * server.c (start_inferior): Change return type to int.
21780 (attach_inferior): Change sigptr to int *.
21781 (handle_v_cont, handle_v_requests): Change signal to int *.
21782 (main): Change signal to int.
21783
217842005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
21785
21786 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21787 * configure.srv: Add m32r*-*-linux*.
21788 * linux-m32r-low.c: New file.
21789
e0e76420
DJ
217902005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21791
21792 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21793
a1928bad
DJ
217942005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21795
21796 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21797 Take unsigned long arguments for PIDs.
21798 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21799 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21800 (wait_for_sigstop, linux_resume_one_process)
21801 (regsets_fetch_inferior_registers, linux_send_signal)
21802 (linux_read_auxv): Likewise. Update the types of variables holding
21803 PIDs. Update format string specifiers.
21804 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21805 * remote-utils.c (prepare_resume_reply): Likewise.
21806 * server.c (cont_thread, general_thread, step_thread)
21807 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21808 unsigned long.
21809 (handle_query): Update format specifiers.
21810 (handle_v_cont, main): Use strtoul for thread IDs.
21811 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21812 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21813 (general_thread, step_thread, thread_from_wait)
21814 (old_thread_from_wait): Update.
21815 * target.h (struct thread_resume): Use unsigned long for THREAD.
21816 (struct target_ops): Use unsigned long for arguments to attach and
21817 thread_alive.
21818
dcdb98d2
DJ
218192005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21820
21821 * acinclude.m4: Include bfd/bfd.m4 directly.
21822 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21823 <agriffis@toolchain.org>.
21824 * aclocal.m4, configure: Regenerated.
21825
bec39cab
AC
218262005-01-07 Andrew Cagney <cagney@gnu.org>
21827
21828 * configure.ac: Rename configure.in, require autoconf 2.59.
21829 * configure: Re-generate.
21830
434c4c77
DJ
218312004-12-08 Daniel Jacobowitz <dan@debian.org>
21832
21833 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21834 LIBS when finished.
21835 * aclocal.m4: Regenerated.
21836 * configure: Regenerated.
21837
db1d3e1b
AS
218382004-11-21 Andreas Schwab <schwab@suse.de>
21839
21840 * linux-m68k-low.c (m68k_num_gregs): Define.
21841 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21842 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21843 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21844 (m68k_breakpoint_at): New. Add to the_low_target.
21845
21846 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21847 srv_linux_thread_db to yes.
21848
43360365
JB
218492004-10-20 Joel Brobecker <brobecker@gnat.com>
21850
21851 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21852 (ARCH_SET_FS): Likewise.
21853 (ARCH_GET_FS): Likewise.
21854 (ARCH_GET_GS): Likewise.
21855
fd500816
DJ
218562004-10-16 Daniel Jacobowitz <dan@debian.org>
21857
21858 * linux-i386-low.c (ps_get_thread_area): New.
21859 * linux-x86-64-low.c (ps_get_thread_area): New.
21860 * linux-low.c: Include <sys/syscall.h>.
21861 (linux_kill_one_process): Don't kill the first thread here.
21862 (linux_kill): Kill the first thread here.
21863 (kill_lwp): New function.
21864 (send_sigstop, linux_send_signal): Use it.
21865 * proc-service.c: Clean up #ifdefs.
21866 (fpregset_info): Delete.
21867 (ps_lgetregs): Update and enable implementation.
21868 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21869 implementations.
21870 * remote-utils.c (struct sym_cache, symbol_cache): New.
21871 (input_interrupt): Print a clearer message.
21872 (async_io_enabled): New variable.
21873 (enable_async_io, disable_async_io): Use it. Update comments.
21874 (look_up_one_symbol): Use the symbol cache.
21875 * thread-db.c (thread_db_look_up_symbols): New function.
21876 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21877
f6de3c42
DJ
218782004-10-16 Daniel Jacobowitz <dan@debian.org>
21879
21880 * configure.in: Test for -rdynamic.
21881 * configure: Regenerated.
21882 * Makefile (INTERNAL_LDFLAGS): New.
21883 (gdbserver, gdbreplay): Use it.
21884
2c0fc042
AC
218852004-09-02 Andrew Cagney <cagney@gnu.org>
21886
21887 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21888
075b3282
DJ
218892004-03-23 Daniel Jacobowitz <drow@mvista.com>
21890
21891 * linux-low.c (linux_wait): Clear all_processes list also.
21892
fa6a77dc
DJ
218932004-03-12 Daniel Jacobowitz <drow@mvista.com>
21894
21895 * linux-low.c: Include <errno.h>. Remove extern declaration of
21896 errno.
21897
6d782a97
DJ
218982004-03-12 Daniel Jacobowitz <drow@mvista.com>
21899
21900 * gdbreplay.c, server.h, utils.c: Update copyright years.
21901
3a7fb99b
DJ
219022004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21903
21904 * server.c (main): Print child status or termination signal from
21905 variable 'signal', not 'sig'.
21906
c3e735a6
DJ
219072004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21908
21909 * linux-low.c (linux_read_memory): Change return type to
21910 int. Check for and return error from ptrace().
21911 * target.c (read_inferior_memory): Change return type to int. Pass
21912 back return status from the_target->read_memory().
21913 * target.h (struct target_ops): Adapt *read_memory() prototype.
21914 Update comment.
21915 (read_inferior_memory): Adapt prototype.
21916 * server.c (main): Return an error packet if
21917 read_inferior_memory() returns an error.
21918
a59d1c82
DJ
219192004-03-04 Daniel Jacobowitz <drow@mvista.com>
21920
21921 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21922 Unify with other clean targets.
21923
dc3f8883
DJ
219242004-02-29 Daniel Jacobowitz <drow@mvista.com>
21925
21926 * server.c (handle_v_cont): Call set_desired_inferior.
21927
89a208da
DJ
219282004-02-29 Daniel Jacobowitz <drow@mvista.com>
21929
21930 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21931
62ea82f5
DJ
219322004-02-29 Daniel Jacobowitz <drow@mvista.com>
21933
21934 * linux-low.c (linux_wait): Unblock async I/O.
21935 (linux_resume): Block and enable async I/O.
21936 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21937 * server.h (block_async_io, unblock_async_io): Add prototypes.
21938
6910d122
DJ
219392004-02-29 Daniel Jacobowitz <drow@mvista.com>
21940
21941 * remote-utils.c (remote_open): Print a status notice after
21942 opening a TCP port.
21943 * server.c (attach_inferior): Print a status notice after
21944 attaching.
21945
219462004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
21947
21948 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21949
c89dc5d4
DJ
219502004-02-26 Daniel Jacobowitz <drow@mvista.com>
21951
21952 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21953 error packet.
21954 * server.c, target.h: Update copyright years.
21955
4b8dad4a
RM
219562004-02-25 Roland McGrath <roland@redhat.com>
21957
21958 * target.h (struct target_ops): New member `read_auxv'.
21959 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21960 * linux-low.c (linux_read_auxv): New function.
21961 (linux_target_ops): Initialize `read_auxv' member to that.
21962
d7446758
JB
219632004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21964
21965 Committed by Jim Blandy <jimb@redhat.com>.
21966
21967 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 21968 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
21969 instead of GPR_SIZE to distiguish s390 and s390x targets.
21970
5544ad89
DJ
219712004-01-31 Daniel Jacobowitz <drow@mvista.com>
21972
21973 * linux-low.c: Update copyright year.
21974 (check_removed_breakpoint): Clear pending_is_breakpoint.
21975 (linux_set_resume_request, linux_queue_one_thread)
21976 (resume_status_pending_p): New functions.
21977 (linux_continue_one_thread): Use process->resume.
21978 (linux_resume): Only resume threads if there are no pending events.
21979 * linux-low.h (struct process_info): Add resume request
21980 pointer.
21981
2a68b70e
DJ
219822004-01-30 Daniel Jacobowitz <drow@mvista.com>
21983
21984 * regcache.c (new_register_cache): Clear the allocated register
21985 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21986
64386c31
DJ
219872003-10-13 Daniel Jacobowitz <drow@mvista.com>
21988
21989 * linux-low.c (linux_resume): Take a struct thread_resume *
21990 argument.
21991 (linux_wait): Update call.
21992 (resume_ptr): New static variable.
21993 (linux_continue_one_thread): Renamed from
21994 linux_continue_one_process. Use resume_ptr.
21995 (linux_resume): Use linux_continue_one_thread.
21996 * server.c (handle_v_cont, handle_v_requests): New functions.
21997 (myresume): New function.
21998 (main): Handle 'v' case.
21999 * target.h (struct thread_resume): New type.
22000 (struct target_ops): Change argument of "resume" to struct
22001 thread_resume *.
22002 (myresume): Delete macro.
22003
c938e9b0
L
220042003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22005
22006 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22007 (uninstall): Support DESTDIR.
22008
7f313d07
BC
22009Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22010
22011 * configure.srv: Add xscale*linux copy of arm*linux entry.
22012
3b2fc2ea
DJ
220132003-07-24 Daniel Jacobowitz <drow@mvista.com>
22014
22015 * linux-arm-low.c (arm_reinsert_addr): New function.
22016 (the_low_target): Add arm_reinsert_addr.
22017
1c0a559e
MK
220182003-07-08 Mark Kettenis <kettenis@gnu.org>
22019
22020 * mem-break.c: Remove whitespace at end of file.
22021
43d5792c
DJ
220222003-06-28 Daniel Jacobowitz <drow@mvista.com>
22023
22024 * configure.in: Check whether we need to prototype strerror.
22025 * server.h: Optionally prototype strerror.
22026 * gdbreplay.c (perror_with_name): Use strerror.
22027 * linux-low.c (linux_attach_lwp): Use strerror.
22028 * utils.c (perror_with_name): Use strerror.
22029 * config.in, configure: Regenerated.
22030
c8a86edf
DJ
220312003-06-28 Daniel Jacobowitz <drow@mvista.com>
22032
22033 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22034 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22035
73d37363
DJ
220362003-06-20 Daniel Jacobowitz <drow@mvista.com>
22037
22038 * Makefile.in (SFILES): Update.
22039 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22040 low-sun3.c: Remove files.
22041
6ad8ae5c
DJ
220422003-06-17 Daniel Jacobowitz <drow@mvista.com>
22043
22044 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22045 (linux_detach_one_process, linux_detach): New functions.
22046 (linux_target_ops): Add linux_detach.
22047 * server.c (main): Handle 'D' packet.
22048 * target.h (struct target_ops): Add "detach" member.
22049 (detach_inferior): Define.
22050
1581182a
MK
220512003-06-13 Mark Kettenis <kettenis@gnu.org>
22052
22053 From Kelley Cook <kelleycook@wideopenwest.com>:
22054 * configure.srv: Accept i[34567]86 variants.
22055
e5379b03
DJ
220562003-06-05 Daniel Jacobowitz <drow@mvista.com>
22057
22058 * linux-low.c (linux_wait_for_event): Correct comment typos.
22059 (linux_resume_one_process): Call check_removed_breakpoint.
22060 (linux_send_signal): New function.
22061 (linux_target_ops): Add linux_send_signal.
22062 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22063 of kill.
22064 * target.h (struct target_ops): Add send_signal.
22065
2ff29de4
JB
220662003-05-29 Jim Blandy <jimb@redhat.com>
22067
22068 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22069 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22070 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22071 away part of the register's value.
22072
254787d4
DJ
220732003-03-26 Daniel Jacobowitz <drow@mvista.com>
22074
22075 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22076 (linux_wait_for_event, linux_init_signals): Likewise.
22077
94e10508
DJ
220782003-03-17 Daniel Jacobowitz <drow@mvista.com>
22079
22080 * configure.in: Check for stdlib.h.
22081 * configure: Regenerated.
22082 * config.in: Regenerated.
22083
4c0711e0
DJ
220842003-01-04 Andreas Schwab <schwab@suse.de>
22085
22086 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22087
ef66e766
AC
220882003-01-02 Andrew Cagney <ac131313@redhat.com>
22089
22090 * Makefile.in: Remove obsolete code.
22091
a1358604
DJ
220922002-11-20 Daniel Jacobowitz <drow@mvista.com>
22093
22094 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22095 defined(PT_FPR0_HI).
22096
23ce3b1c
DJ
220972002-11-17 Stuart Hughes <seh@zee2.com>
22098
22099 * linux-arm-low.c (arm_num_regs): Increase.
22100 (arm_regmap): Include status register.
22101
221022002-11-17 Daniel Jacobowitz <drow@mvista.com>
22103
22104 * linux-low.c (register_addr): Remove incorrect -1 check.
22105
a9fa9f7d
DJ
221062002-08-29 Daniel Jacobowitz <drow@mvista.com>
22107
22108 * linux-low.c (linux_create_inferior): Call setpgid. Return
22109 the new PID.
22110 (unstopped_p, linux_signal_pid): Remove.
22111 (linux_target_ops): Remove linux_signal_pid.
22112 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22113 global instead of target method.
22114 * target.h (struct target_ops): Remove signal_pid. Update comment
22115 for create_inferior.
22116 * server.c (signal_pid): New variable.
22117 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 22118 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
22119 (attach_inferior): Set signal_pid.
22120
17574093
DJ
221212002-08-23 Daniel Jacobowitz <drow@mvista.com>
22122
22123 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22124
221252002-08-20 Jim Blandy <jimb@redhat.com>
22126
22127 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22128 default for this.
22129
221302002-08-01 Andrew Cagney <cagney@redhat.com>
22131
22132 * Makefile.in: Make chill references obsolete.
22133
221342002-07-24 Kevin Buettner <kevinb@redhat.com>
22135
22136 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22137 * configure: Regenerate.
22138 * config.in: Regenerate.
22139
221402002-07-09 David O'Brien <obrien@FreeBSD.org>
22141
22142 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22143 (perror_with_name, remote_close, remote_open, expect, play): Static.
22144
221452002-07-04 Michal Ludvig <mludvig@suse.cz>
22146
4b8dad4a 22147 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
22148 byte offsets instead of an array of indexes.
22149 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22150
221512002-06-13 Daniel Jacobowitz <drow@mvista.com>
22152
22153 * regcache.c: Add comment.
22154
221552002-06-11 Daniel Jacobowitz <drow@mvista.com>
22156
22157 * thread-db.c: New file.
22158 * proc-service.c: New file.
22159 * acinclude.m4: New file.
22160 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22161 proc-service.o, and thread-db.o.
22162 (linux-low.o): Add USE_THREAD_DB.
22163 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22164 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22165 * aclocal.m4: Regenerated.
22166 * config.in: Regenerated.
22167 * configure: Regenerated.
22168 * configure.in: Check for proc_service.h, sys/procfs.h,
22169 thread_db.h, and linux/elf.h headrs.
22170 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22171 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22172 Check for -lthread_db and thread support.
22173 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22174 PowerPC, and SuperH.
22175 * i387-fp.c: Constify arguments.
22176 * i387-fp.h: Likewise.
22177 * inferiors.c: (struct thread_info): Renamed from
22178 `struct inferior_info'. Remove PID member. Use generic inferior
22179 list header. All uses updated.
22180 (inferiors, signal_pid): Removed.
22181 (all_threads): New variable.
22182 (get_thread): Define.
22183 (add_inferior_to_list): New function.
22184 (for_each_inferior): New function.
22185 (change_inferior_id): New function.
22186 (add_inferior): Removed.
22187 (remove_inferior): New function.
22188 (add_thread): New function.
22189 (free_one_thread): New function.
22190 (remove_thread): New function.
22191 (clear_inferiors): Use for_each_inferior and free_one_thread.
22192 (find_inferior): New function.
22193 (find_inferior_id): New function.
22194 (inferior_target_data): Update argument type.
22195 (set_inferior_target_data): Likewise.
22196 (inferior_regcache_data): Likewise.
22197 (set_inferior_regcache_data): Likewise.
22198 * linux-low.c (linux_bp_reinsert): Remove.
22199 (all_processes, stopping_threads, using_thrads)
22200 (struct pending_signals, debug_threads, pid_of): New.
22201 (inferior_pid): Replace with macro.
22202 (struct inferior_linux_data): Remove.
22203 (get_stop_pc, add_process): New functions.
22204 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22205 Use add_process and add_thread.
22206 (linux_attach_lwp): New function, based on old linux_attach. Use
22207 add_process and add_thread. Set stop_expected for new threads.
22208 (linux_attach): New function.
22209 (linux_kill_one_process): New function.
22210 (linux_kill): Kill all LWPs.
22211 (linux_thread_alive): Use find_inferior_id.
22212 (check_removed_breakpoints, status_pending_p): New functions.
22213 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22214 Update. Use WNOHANG. Wait for cloned processes also. Update process
22215 struct for the found process.
22216 (linux_wait_for_event): New function.
22217 (linux_wait): Use it. Support LWPs.
22218 (send_sigstop, wait_for_sigstop, stop_all_processes)
22219 (linux_resume_one_process, linux_continue_one_process): New functions.
22220 (linux_resume): Support LWPs.
22221 (REGISTER_RAW_SIZE): Remove.
22222 (fetch_register): Use register_size instead. Call supply_register.
22223 (usr_store_inferior_registers): Likewise. Call collect_register.
22224 Fix recursive case.
22225 (regsets_fetch_inferior_registers): Improve error message.
22226 (regsets_store_inferior_registers): Add debugging.
22227 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22228 (unstopped_p, linux_signal_pid): New functions.
22229 (linux_target_ops): Add linux_signal_pid.
22230 (linux_init_signals): New function.
22231 (initialize_low): Call it. Initialize using_threads.
22232 * regcache.c (inferior_regcache_data): Add valid
22233 flag.
22234 (get_regcache): Fetch registers lazily. Add fetch argument
22235 and update all callers.
22236 (regcache_invalidate_one, regcache_invalidate): New
22237 functions.
22238 (new_register_cache): Renamed from create_register_cache.
22239 Return the new regcache.
22240 (free_register_cache): Change argument to a void *.
22241 (registers_to_string, registers_from_string): Call get_regcache
22242 with fetch flag set.
22243 (register_data): Make static. Pass fetch flag to get_regcache.
22244 (supply_register): Call get_regcache with fetch flag clear.
22245 (collect_register): Call get_regcache with fetch flag set.
22246 (collect_register_as_string): New function.
22247 * regcache.h: Update.
22248 * remote-utils.c (putpkt): Flush after debug output and use
22249 stderr.
22250 Handle input interrupts while waiting for an ACK.
22251 (input_interrupt): Use signal_pid method.
22252 (getpkt): Flush after debug output and use stderr.
22253 (outreg): Use collect_register_as_string.
22254 (new_thread_notify, dead_thread_notify): New functions.
22255 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22256 and general_thread.
22257 (look_up_one_symbol): Flush after debug output.
22258 * server.c (step_thread, server_waiting): New variables.
22259 (start_inferior): Don't use signal_pid. Update call to mywait.
22260 (attach_inferior): Update call to mywait.
22261 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22262 (main): Don't fetch/store registers explicitly. Use
22263 set_desired_inferior. Support proposed ``Hs'' packet. Update
22264 calls to mywait.
22265 * server.h: Update.
22266 (struct inferior_list, struct_inferior_list_entry): New.
22267 * target.c (set_desired_inferior): New.
22268 (write_inferior_memory): Constify.
22269 (mywait): New function.
22270 * target.h: Update.
22271 (struct target_ops): New signal_pid method.
22272 (mywait): Removed macro, added prototype.
22273
22274 * linux-low.h (regset_func): Removed.
22275 (regset_fill_func, regset_store_func): New.
22276 (enum regset_type): New.
22277 (struct regset_info): Add type field. Use new operation types.
22278 (struct linux_target_ops): stop_pc renamed to get_pc.
22279 Add decr_pc_after_break and breakpoint_at.
22280 (get_process, get_thread_proess, get_process_thread)
22281 (strut process_info, all_processes, linux_attach_lwp)
22282 (thread_db_init): New.
22283
22284 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22285 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22286 (the_low_target): Add new members.
22287 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22288 (i386_store_fpxregset): Constify.
22289 (target_regsets): Add new kind identifier.
22290 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22291 (i386_set_pc): Add debugging.
22292 (i386_breakpoint_at): New function.
22293 (the_low_target): Add new members.
22294 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22295 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22296 (mips_breakpoint_at): New.
22297 (the_low_target): Add new members.
22298 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22299 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22300 (the_low_target): Add new members.
22301 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22302 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22303 (the_low_target): Add new members.
22304 * linux-x86-64-low.c (target_regsets): Add new kind
22305 identifier.
22306
223072002-05-15 Daniel Jacobowitz <drow@mvista.com>
22308
22309 From Martin Pool <mbp@samba.org>:
22310 * server.c (gdbserver_usage): New function.
22311 (main): Call it.
22312
223132002-05-14 Daniel Jacobowitz <drow@mvista.com>
22314
22315 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22316 stop_at -> stop_pc.
22317
223182002-05-04 Andrew Cagney <ac131313@redhat.com>
22319
22320 * Makefile.in: Remove obsolete code.
22321
223222002-04-24 Michal Ludvig <mludvig@suse.cz>
22323
22324 * linux-low.c (regsets_fetch_inferior_registers),
22325 (regsets_store_inferior_registers): Removed cast to int from
22326 ptrace() calls.
22327 * regcache.h: Added declaration of struct inferior_info.
22328
223292002-04-20 Daniel Jacobowitz <drow@mvista.com>
22330
22331 * inferiors.c (struct inferior_info): Add regcache_data.
22332 (add_inferior): Call create_register_cache.
22333 (clear_inferiors): Call free_register_cache.
22334 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22335 * regcache.c (struct inferior_regcache_data): New.
22336 (registers): Remove.
22337 (get_regcache): New function.
22338 (create_register_cache, free_register_cache): New functions.
22339 (set_register_cache): Don't initialize the register cache here.
22340 (registers_to_string, registers_from_string, register_data): Call
22341 get_regcache.
22342 * regcache.h: Add prototypes.
22343 * server.h: Likewise.
22344
223452002-04-20 Daniel Jacobowitz <drow@mvista.com>
22346
22347 * mem-break.c: New file.
22348 * mem-break.h: New file.
22349 * Makefile.in: Add mem-break.o rule; update server.h
22350 dependencies.
22351 * inferiors.c (struct inferior_info): Add target_data
22352 member.
22353 (clear_inferiors): Free target_data member if set.
22354 (inferior_target_data, set_inferior_target_data): New functions.
22355 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22356 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22357 * linux-low.c (linux_bp_reinsert): New variable.
22358 (struct inferior_linux_data): New.
22359 (linux_create_inferior): Use set_inferior_target_data.
22360 (linux_attach): Likewise. Call add_inferior.
22361 (linux_wait_for_one_inferior): New function.
22362 (linux_wait): Call it.
22363 (linux_write_memory): Add const.
22364 (initialize_low): Call set_breakpoint_data.
22365 * linux-low.h (struct linux_target_ops): Add breakpoint
22366 handling members.
22367 * server.c (attach_inferior): Remove extra add_inferior
22368 call.
22369 * server.h: Include mem-break.h. Update inferior.c
22370 prototypes.
22371 * target.c (read_inferior_memory)
22372 (write_inferior_memory): New functions.
22373 * target.h (read_inferior_memory)
22374 (write_inferior_memory): Change macros to prototypes.
22375 (struct target_ops): Update comments. Add const to write_memory
22376 definition.
22377
223782002-04-11 Daniel Jacobowitz <drow@mvista.com>
22379
22380 * linux-low.c (usr_store_inferior_registers): Support
22381 registers which are allowed to fail to store.
22382 * linux-low.h (linux_target_ops): Likewise.
22383 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22384 (ppc_cannot_store_register): FPSCR may not be storable.
22385
223862002-04-09 Daniel Jacobowitz <drow@mvista.com>
22387
22388 * server.h: Include <string.h> if HAVE_STRING_H.
22389 * ChangeLog: Correct paths in last ChangeLog entry.
22390
223912002-04-09 Daniel Jacobowitz <drow@mvista.com>
22392
22393 * linux-low.h: Remove obsolete prototypes.
22394 (struct linux_target_ops): New.
22395 (extern the_low_target): New.
22396 * linux-low.c (num_regs, regmap): Remove declarations.
22397 (register_addr): Use the_low_target explicitly.
22398 (fetch_register): Likewise.
22399 (usr_fetch_inferior_registers): Likewise.
22400 (usr_store_inferior_registers): Likewise.
22401 * linux-arm-low.c (num_regs): Remove.
22402 (arm_num_regs): Define.
22403 (arm_regmap): Renamed from regmap, made static.
22404 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22405 made static.
22406 (arm_cannot_store_register): Renamed from cannot_store_register,
22407 made static.
22408 (the_low_target): New.
22409 * linux-i386-low.c (num_regs): Remove.
22410 (i386_num_regs): Define.
22411 (i386_regmap): Renamed from regmap, made static.
22412 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22413 made static.
22414 (i386_cannot_store_register): Renamed from cannot_store_register,
22415 made static.
22416 (the_low_target): New.
22417 * linux-ia64-low.c (num_regs): Remove.
22418 (ia64_num_regs): Define.
22419 (ia64_regmap): Renamed from regmap, made static.
22420 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22421 made static.
22422 (ia64_cannot_store_register): Renamed from cannot_store_register,
22423 made static.
22424 (the_low_target): New.
22425 * linux-m68k-low.c (num_regs): Remove.
22426 (m68k_num_regs): Define.
22427 (m68k_regmap): Renamed from regmap, made static.
22428 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22429 made static.
22430 (m68k_cannot_store_register): Renamed from cannot_store_register,
22431 made static.
22432 (the_low_target): New.
22433 * linux-mips-low.c (num_regs): Remove.
22434 (mips_num_regs): Define.
22435 (mips_regmap): Renamed from regmap, made static.
22436 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22437 made static.
22438 (mips_cannot_store_register): Renamed from cannot_store_register,
22439 made static.
22440 (the_low_target): New.
22441 * linux-ppc-low.c (num_regs): Remove.
22442 (ppc_num_regs): Define.
22443 (ppc_regmap): Renamed from regmap, made static.
22444 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22445 made static.
22446 (ppc_cannot_store_register): Renamed from cannot_store_register,
22447 made static.
22448 (the_low_target): New.
22449 * linux-s390-low.c (num_regs): Remove.
22450 (s390_num_regs): Define.
22451 (s390_regmap): Renamed from regmap, made static.
22452 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22453 made static.
22454 (s390_cannot_store_register): Renamed from cannot_store_register,
22455 made static.
22456 (the_low_target): New.
22457 * linux-sh-low.c (num_regs): Remove.
22458 (sh_num_regs): Define.
22459 (sh_regmap): Renamed from regmap, made static.
22460 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22461 made static.
22462 (sh_cannot_store_register): Renamed from cannot_store_register,
22463 made static.
22464 (the_low_target): New.
22465 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22466 (the_low_target): New.
22467
224682002-04-09 Daniel Jacobowitz <drow@mvista.com>
22469
22470 * Makefile.in: Add stamp-h target.
22471 * configure.in: Create stamp-h.
22472 * configure: Regenerated.
22473
224742002-04-09 Daniel Jacobowitz <drow@mvista.com>
22475
22476 * inferiors.c: New file.
22477 * target.c: New file.
22478 * target.h: New file.
22479 * Makefile.in: Add target.o and inferiors.o. Update
22480 dependencies.
22481 * linux-low.c (inferior_pid): New static variable,
22482 moved from server.c.
22483 (linux_create_inferior): Renamed from create_inferior.
22484 Call add_inferior. Return 0 on success instead of a PID.
22485 (linux_attach): Renamed from myattach.
22486 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22487 (linux_thread_alive): Renamed from mythread_alive.
22488 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22489 child dies.
22490 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22491 (regsets_store_inferior_registers): Correct error message.
22492 Add missing ``return 0''.
22493 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22494 (linux_store_registers): Renamed from store_inferior_registers.
22495 (linux_read_memory): Renamed from read_inferior_memory.
22496 (linux_write_memory): Renamed from write_inferior_memory.
22497 (linux_target_ops): New structure.
22498 (initialize_low): Call set_target_ops ().
22499 * remote-utils.c (unhexify): New function.
22500 (hexify): New function.
22501 (input_interrupt): Send signals to ``signal_pid''.
22502 * server.c (inferior_pid): Remove.
22503 (start_inferior): Update create_inferior call.
22504 (attach_inferior): Call add_inferior.
22505 (handle_query): New function.
22506 (main): Call handle_query for `q' packets.
22507 * server.h: Include "target.h". Remove obsolete prototypes.
22508 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22509
225102002-04-09 Daniel Jacobowitz <drow@mvista.com>
22511
22512 * Makefile.in: Add WARN_CFLAGS. Update configury
22513 dependencies.
22514 * configure.in: Check for <string.h>
22515 * configure: Regenerate.
22516 * config.in: Regenerate.
22517 * gdbreplay.c: Include needed system headers.
22518 (remote_open): Remove strchr prototype.
22519 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22520 * regcache.c (supply_register): Change buf argument to const void *.
22521 (supply_register_by_name): Likewise.
22522 (collect_register): Change buf argument to void *.
22523 (collect_register_by_name): Likewise.
22524 * regcache.h: Add missing prototypes.
22525 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22526 * server.c (handle_query): New function.
22527 (attached): New static variable, moved out of main.
22528 (main): Quiet longjmp clobber warnings.
22529 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22530 * utils.c (error): Remove NORETURN.
22531 (fatal): Likewise.
This page took 2.4725 seconds and 4 git commands to generate.